Remove unused overload of exit_inferior_silent
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b926335f
SM
12019-11-26 Simon Marchi <simon.marchi@efficios.com>
2
3 * inferior.c (exit_inferior_silent): Remove.
4
b62f6f54
SM
52019-11-26 Simon Marchi <simon.marchi@efficios.com>
6
7 * dictionary.c (dict_empty, mdict_empty): Remove.
8 * dictionary.c (mdict_empty): Remove.
9
cb8c24b6
SM
102019-11-26 Simon Marchi <simon.marchi@efficios.com>
11
12 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
13 (arc_insn_get_memory_offset): Likewise.
14 (arc_insn_dump): Likewise.
15 * cp-support.c (test_cp_symbol_name_matches): Likewise.
16 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
17 * dictionary.c (dict_iterator_next): Likewise.
18 (dict_iter_match_first): Likewise.
19 (dict_iter_match_next): Likewise.
20 * f-lang.c (evaluate_subexp_f): Likewise.
21 * hppa-tdep.c (hppa_read_pc): Likewise.
22 * i386-tdep.c (i386_floatformat_for_type): Likewise.
23 * parse.c (write_exp_elt_msym): Likewise.
24 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
25 * remote.c (remote_packet_size): Likewise.
26 (remote_notif_stop_parse): Likewise.
27 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
28 * s12z-tdep.c (s12z_disassemble_info): Likewise.
29 * source.c (prepare_path_for_appending): Likewise.
30 * sparc64-linux-tdep.c
31 (sparc64_linux_handle_segmentation_fault); Likewise.
32 * stack.c (frame_selection_by_function_completer): Likewise.
33
781597ff
SM
342019-11-26 Simon Marchi <simon.marchi@efficios.com>
35
36 * completer.c (set_gdb_completion_word_break_characters):
37 Remove.
38
23baa4cc
SM
392019-11-26 Simon Marchi <simon.marchi@efficios.com>
40
41 * dwarf-index-write.c: Include dwarf-index-write.h.
42 * mi/mi-interp.c: Include mi/mi-interp.h.
43
23767560
SM
442019-11-26 Simon Marchi <simon.marchi@efficios.com>
45
46 * aarch32-tdep.c: Include aarch32-tdep.h.
47 * aarch32-tdep.h: Forward-declare struct target_desc.
48
6d91ce9a
CB
492019-11-26 Christian Biesinger <cbiesinger@google.com>
50
51 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
52 strerror.
53 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
54 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
55
3cf2f237
TV
562019-11-25 Tom de Vries <tdevries@suse.de>
57
58 * contrib/words.sh: Add -c option.
59
5b89c67a
CB
602019-11-25 Christian Biesinger <cbiesinger@google.com>
61
62 * solib.c (solib_find_1): Change int to bool.
63 (exec_file_find): Change int to bool.
64 (solib_find): Change int to bool.
65 (solib_read_symbols): Change int to bool.
66 (solib_used): Change int to bool.
67 (solib_add): Change int to bool.
68 (info_sharedlibrary_command): Change int to bool.
69 (solib_contains_address_p): Change int to bool.
70 (solib_keep_data_in_core): Change int to bool.
71 (in_solib_dynsym_resolve_code): Change int to bool.
72 (reload_shared_libraries_1): Change int to bool.
73 (gdb_sysroot_changed): Change int to bool.
74 * solib.h (solib_read_symbols): Change int to bool.
75 (solib_contains_address_p): Change int to bool.
76 (solib_keep_data_in_core): Change int to bool.
77 (in_solib_dynsym_resolve_code): Change int to bool.
78 (libpthread_name_p): Change int to bool.
79
6cc8564b
LM
802019-11-25 Luis Machado <luis.machado@linaro.org>
81
82 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
83 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
84 (remote_packet_max_chars): New static global.
85 (show_remote_packet_max_chars): New function.
86 (remote_target::putpkt_binary): Adjust to use new
87 remote_packet_max_chars option.
88 (remote_target::getpkt_or_notif_sane_1): Likewise.
89 (_initialize_remote): Register new remote-packet-max-chars option.
90
a7cdaa91
SM
912019-11-24 Simon Marchi <simon.marchi@efficios.com>
92
93 * m68k-linux-nat.c: Include gdbarch.h.
94
26abc753
TT
952019-11-24 Tom Tromey <tom@tromey.com>
96
97 * symfile.c (read_symbols): Update.
98 * psymtab.c (require_partial_symbols): Change type of "verbose" to
99 bool.
100 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
101 (psym_lookup_symbol, psym_find_last_source_symtab)
102 (psym_forget_cached_source_info, psym_print_stats)
103 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
104 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
105 (psym_map_matching_symbols, psym_expand_symtabs_matching)
106 (psym_find_compunit_symtab_by_address)
107 (maintenance_print_psymbols, maintenance_info_psymtabs)
108 (maintenance_check_psymtabs): Update.
109 * psymtab.h (require_partial_symbols): Change type of "verbose" to
110 bool.
111
012fc909
TT
1122019-11-22 Tom Tromey <tom@tromey.com>
113
114 * observable.h: Update comments.
115
c83d8d32
TT
1162019-11-22 Tom Tromey <tromey@adacore.com>
117
118 * ada-tasks.c (ada_task_is_alive): Make parameter const.
119 (print_ada_task_info): Don't try to fetch thread id if task is not
120 alive.
121
987012b8
CB
1222019-11-22 Christian Biesinger <cbiesinger@google.com>
123
124 * ada-exp.y: Update.
125 * ada-lang.c (sort_choices): Update.
126 (ada_print_symbol_signature): Update.
127 (resolve_subexp): Update.
128 (ada_parse_renaming): Update.
129 (ada_read_renaming_var_value): Update.
130 (lesseq_defined_than): Update.
131 (remove_extra_symbols): Update.
132 (remove_irrelevant_renamings): Update.
133 (ada_add_block_symbols): Update.
134 (ada_collect_symbol_completion_matches): Update.
135 (ada_is_renaming_symbol): Update.
136 (aggregate_assign_from_choices): Update.
137 (ada_evaluate_subexp): Update.
138 (ada_has_this_exception_support): Update.
139 (ada_is_non_standard_exception_sym): Update.
140 (ada_add_exceptions_from_frame): Update.
141 (ada_add_global_exceptions): Update.
142 (ada_print_subexp): Update.
143 * ax-gdb.c (gen_var_ref): Update.
144 (gen_maybe_namespace_elt): Update.
145 (gen_expr_for_cast): Update.
146 (gen_expr): Update.
147 * block.h: Update.
148 * blockframe.c (find_pc_partial_function): Update.
149 * breakpoint.c (print_breakpoint_location): Update.
150 (update_static_tracepoint): Update.
151 * btrace.c (ftrace_print_function_name): Update.
152 (ftrace_function_switched): Update.
153 * buildsym.c (find_symbol_in_list): Update.
154 * c-exp.y: Update.
155 * c-typeprint.c (c_print_typedef): Update.
156 (c_type_print_template_args): Update.
157 * cli/cli-cmds.c (edit_command): Update.
158 (list_command): Update.
159 (print_sal_location): Update.
160 * coffread.c (patch_opaque_types): Update.
161 (process_coff_symbol): Update.
162 (coff_read_enum_type): Update.
163 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
164 (convert_one_symbol): Update.
165 (hash_symname): Update.
166 (eq_symname): Update.
167 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
168 * compile/compile-cplus-types.c (debug_print_scope): Update.
169 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
170 * compile/compile-object-load.c (get_out_value_type): Update.
171 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
172 (search_symbol_list): Update.
173 (cp_lookup_symbol_imports_or_template): Update.
174 * cp-support.c (overload_list_add_symbol): Update.
175 * ctfread.c (psymtab_to_symtab): Update.
176 * dbxread.c (cp_set_block_scope): Update.
177 * dictionary.c (iter_match_first_hashed): Update.
178 (iter_match_next_hashed): Update.
179 (insert_symbol_hashed): Update.
180 (iter_match_next_linear): Update.
181 * dictionary.h: Update.
182 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
183 (locexpr_describe_location_piece): Update.
184 (locexpr_describe_location_1): Update.
185 (locexpr_generate_c_location): Update.
186 (loclist_describe_location): Update.
187 (loclist_generate_c_location): Update.
188 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
189 (read_func_scope): Update.
190 (process_enumeration_scope): Update.
191 (new_symbol): Update.
192 (dwarf2_const_value): Update.
193 (dwarf2_symbol_mark_computed): Update.
194 * eval.c (evaluate_funcall): Update.
195 (evaluate_subexp_standard): Update.
196 * expprint.c (print_subexp_standard): Update.
197 (dump_subexp_body_standard): Update.
198 * f-valprint.c (info_common_command_for_block): Update.
199 * findvar.c (get_hosting_frame): Update.
200 (default_read_var_value): Update.
201 * go-lang.c (go_symbol_package_name): Update.
202 * guile/scm-block.c (bkscm_print_block_smob): Update.
203 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
204 (gdbscm_symbol_name): Update.
205 (gdbscm_symbol_linkage_name): Update.
206 (gdbscm_symbol_print_name): Update.
207 * infcall.c (get_function_name): Update.
208 * infcmd.c (jump_command): Update.
209 (finish_command): Update.
210 * infrun.c (insert_exception_resume_breakpoint): Update.
211 * linespec.c (canonicalize_linespec): Update.
212 (create_sals_line_offset): Update.
213 (convert_linespec_to_sals): Update.
214 (complete_label): Update.
215 (find_label_symbols_in_block): Update.
216 * m2-typeprint.c (m2_print_typedef): Update.
217 * mdebugread.c (mdebug_reg_to_regnum): Update.
218 (parse_symbol): Update.
219 (mylookup_symbol): Update.
220 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
221 (list_args_or_locals): Update.
222 * objc-lang.c (compare_selectors): Update.
223 (info_selectors_command): Update.
224 (compare_classes): Update.
225 (info_classes_command): Update.
226 (find_imps): Update.
227 * p-typeprint.c (pascal_print_typedef): Update.
228 * printcmd.c (build_address_symbolic): Update.
229 (info_address_command): Update.
230 (print_variable_and_value): Update.
231 * python/py-framefilter.c (extract_sym): Update.
232 (py_print_single_arg): Update.
233 * python/py-symbol.c (sympy_str): Update.
234 (sympy_get_name): Update.
235 (sympy_get_linkage_name): Update.
236 * python/python.c (gdbpy_rbreak): Update.
237 * record-btrace.c (btrace_get_bfun_name): Update.
238 (btrace_call_history): Update.
239 * rust-lang.c (rust_print_typedef): Update.
240 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
241 * stabsread.c (stab_reg_to_regnum): Update.
242 (define_symbol): Update.
243 (read_enum_type): Update.
244 (common_block_end): Update.
245 (cleanup_undefined_types_1): Update.
246 (scan_file_globals): Update.
247 * stack.c (print_frame_arg): Update.
248 (print_frame_args): Update.
249 (find_frame_funname): Update.
250 (info_frame_command_core): Update.
251 (iterate_over_block_locals): Update.
252 (print_block_frame_labels): Update.
253 (do_print_variable_and_value): Update.
254 (iterate_over_block_arg_vars): Update.
255 (return_command): Update.
256 * symmisc.c (dump_symtab_1): Update.
257 (print_symbol): Update.
258 * symtab.c (eq_symbol_entry): Update.
259 (symbol_cache_dump): Update.
260 (lookup_language_this): Update.
261 (find_pc_sect_line): Update.
262 (skip_prologue_sal): Update.
263 (symbol_search::compare_search_syms): Update.
264 (treg_matches_sym_type_name): Update.
265 (search_symbols): Update.
266 (print_symbol_info): Update.
267 (rbreak_command): Update.
268 (completion_list_add_symbol): Update.
269 (find_gnu_ifunc): Update.
270 (get_symbol_address): Update.
271 (search_module_symbols): Update.
272 (info_module_subcommand): Update.
273 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
274 (SYMBOL_LINKAGE_NAME): Remove.
275 (SYMBOL_DEMANGLED_NAME): Remove.
276 (SYMBOL_PRINT_NAME): Remove.
277 (SYMBOL_SEARCH_NAME): Remove.
278 * tracepoint.c (set_traceframe_context): Update.
279 (validate_actionline): Update.
280 (collection_list::collect_symbol): Update.
281 (encode_actions_1): Update.
282 (info_scope_command): Update.
283 (print_one_static_tracepoint_marker): Update.
284 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
285 * valops.c (address_of_variable): Update.
286 (find_overload_match): Update.
287 (find_oload_champ): Update.
288
c9d95fa3
CB
2892019-11-22 Christian Biesinger <cbiesinger@google.com>
290
291 * ada-lang.c (ada_lookup_simple_minsym): Update.
292 (ada_collect_symbol_completion_matches): Update.
293 * ada-tasks.c (read_atcb): Update.
294 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
295 (amd64_windows_skip_trampoline_code): Update.
296 * arm-tdep.c (skip_prologue_function): Update.
297 (arm_skip_stack_protector): Update.
298 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
299 (arm_wince_skip_main_prologue): Update.
300 * ax-gdb.c (gen_expr): Update.
301 * block.c (call_site_for_pc): Update.
302 * blockframe.c (find_pc_partial_function): Update.
303 * breakpoint.c (set_breakpoint_location_function): Update.
304 * btrace.c (ftrace_print_function_name): Update.
305 (ftrace_function_switched): Update.
306 * c-valprint.c (print_unpacked_pointer): Update.
307 * coffread.c (coff_symfile_read): Update.
308 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
309 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
310 * dwarf-index-write.c (write_psymbols): Update.
311 * dwarf2loc.c (call_site_to_target_addr): Update.
312 (func_verify_no_selftailcall): Update.
313 (tailcall_dump): Update.
314 (call_site_find_chain_1): Update.
315 (dwarf_expr_reg_to_entry_parameter): Update.
316 * elfread.c (elf_gnu_ifunc_record_cache): Update.
317 * eval.c (evaluate_funcall): Update.
318 (evaluate_subexp_standard): Update.
319 (evaluate_subexp_for_sizeof): Update.
320 * expprint.c (print_subexp_standard): Update.
321 (dump_subexp_body_standard): Update.
322 * frame.c (get_prev_frame_always_1): Update.
323 * frv-tdep.c (frv_skip_main_prologue): Update.
324 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
325 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
326 (gnuv3_get_typename_from_type_info): Update.
327 (gnuv3_skip_trampoline): Update.
328 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
329 * i386-tdep.c (i386_skip_main_prologue): Update.
330 (i386_pe_skip_trampoline_code): Update.
331 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
332 * infcall.c (get_function_name): Update.
333 * linespec.c (minsym_found): Update.
334 * linux-fork.c (info_checkpoints_command): Update.
335 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
336 (m32c_m16c_pointer_to_address): Update.
337 * maint.c (maintenance_translate_address): Update.
338 * minsyms.c (add_minsym_to_hash_table): Update.
339 (add_minsym_to_demangled_hash_table): Update.
340 (lookup_minimal_symbol_mangled): Update.
341 (lookup_minimal_symbol_demangled): Update.
342 (lookup_minimal_symbol_linkage): Update.
343 (lookup_minimal_symbol_text): Update.
344 (lookup_minimal_symbol_by_pc_name): Update.
345 (minimal_symbol_is_less_than): Update.
346 (compact_minimal_symbols): Update.
347 (build_minimal_symbol_hash_tables): Update.
348 (find_solib_trampoline_target): Update.
349 * mips-tdep.c (mips_stub_frame_sniffer): Update.
350 (mips_skip_pic_trampoline_code): Update.
351 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
352 * objc-lang.c (info_selectors_command): Update.
353 (info_classes_command): Update.
354 (find_methods): Update.
355 (find_imps): Update.
356 * p-valprint.c (pascal_val_print): Update.
357 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
358 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
359 * printcmd.c (build_address_symbolic): Update.
360 (info_symbol_command): Update.
361 * psymtab.c (psymbol_name_matches): Update.
362 (match_partial_symbol): Update.
363 (lookup_partial_symbol): Update.
364 (print_partial_symbols): Update.
365 (sort_pst_symbols): Update.
366 (maintenance_check_psymtabs): Update.
367 * python/py-framefilter.c (py_print_frame): Update.
368 * python/python.c (gdbpy_rbreak): Update.
369 * record-btrace.c (btrace_get_bfun_name): Update.
370 (btrace_call_history): Update.
371 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
372 (rs6000_skip_trampoline_code): Update.
373 * sol-thread.c (info_cb): Update.
374 * stabsread.c (scan_file_globals): Update.
375 * stack.c (find_frame_funname): Update.
376 (info_frame_command_core): Update.
377 * symmisc.c (dump_msymbols): Update.
378 * symtab.c (symbol_natural_name): Rename to..,
379 (general_symbol_info::natural_name): ...this.
380 (symbol_demangled_name): Rename to...
381 (general_symbol_info::demangled_name): ...this.
382 (symbol_search_name): Rename to...
383 (general_symbol_info::search_name): ...this.
384 (symbol_matches_search_name): Update.
385 (find_pc_sect_line): Update.
386 (skip_prologue_sal): Update.
387 (search_symbols): Update.
388 (print_msymbol_info): Update.
389 (rbreak_command): Update.
390 (completion_list_add_msymbol): Update.
391 (completion_list_objc_symbol): Update.
392 (get_msymbol_address): Update.
393 * symtab.h (struct general_symbol_info): Add member functions
394 natural_name (), linkage_name (), print_name (), demangled_name (),
395 and search_name ().
396 (SYMBOL_NATURAL_NAME): Update.
397 (symbol_natural_name): Move to a member function on general_symbol_info.
398 (SYMBOL_DEMANGLED_NAME): Update.
399 (symbol_demangled_name): Move to a member function on
400 general_symbol_info.
401 (SYMBOL_SEARCH_NAME): Update.
402 (symbol_search_name): Move to a member function on general_symbol_info.
403 (MSYMBOL_NATURAL_NAME): Remove.
404 (MSYMBOL_LINKAGE_NAME): Remove.
405 (MSYMBOL_PRINT_NAME): Remove.
406 (MSYMBOL_DEMANGLED_NAME): Remove.
407 (MSYMBOL_SEARCH_NAME): Remove.
408 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
409
f8bab2d6
CB
4102019-11-22 Christian Biesinger <cbiesinger@google.com>
411
412 * symtab.c (create_demangled_names_hash): Use per_bfd->
413 minimal_symbol_count for computing the initial size, if greater
414 than our default size.
415
85e7588d
TV
4162019-11-22 Tom de Vries <tdevries@suse.de>
417
418 * contrib/words.sh: Improve words extraction.
419
f6180073
TV
4202019-11-22 Tom de Vries <tdevries@suse.de>
421
422 * contrib/words.sh: Combine sed invocations.
423
f10ffa41
CB
4242019-11-21 Christian Biesinger <cbiesinger@google.com>
425
426 * Makefile.in: Update.
427 * demangle.c: Rename to...
428 * gdb-demangle.c: ..this.
429 (is_cplus_marker): Change return type to bool.
430 (_initialize_demangler): Rename to...
431 (_initialize_gdb_demangle): ...this.
432 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
433 * symtab.h (demangle): Remove declaration; instead include
434 gdb-demangle.h.
435
6ba18521
TT
4362019-11-21 Tom Tromey <tromey@adacore.com>
437
438 * gdbsupport/format.c (format_pieces): Parse %I64d.
439 * unittests/format_pieces-selftests.c (test_windows_formats): New
440 function.
441 (run_tests): Call it.
442
34877895
PJ
4432019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
444
445 Byte reverse display of variables with DW_END_big, DW_END_little
446 (DW_AT_endianity) dwarf attributes if different than the native
447 byte order.
448 * ada-lang.c (ada_value_binop):
449 Use type_byte_order instead of gdbarch_byte_order.
450 * ada-valprint.c (printstr):
451 (ada_val_print_string):
452 * ada-lang.c (value_pointer):
453 (ada_value_binop):
454 Use type_byte_order instead of gdbarch_byte_order.
455 * c-lang.c (c_get_string):
456 Use type_byte_order instead of gdbarch_byte_order.
457 * c-valprint.c (c_val_print_array):
458 Use type_byte_order instead of gdbarch_byte_order.
459 * cp-valprint.c (cp_print_class_member):
460 Use type_byte_order instead of gdbarch_byte_order.
461 * dwarf2loc.c (rw_pieced_value):
462 Use type_byte_order instead of gdbarch_byte_order.
463 * dwarf2read.c (read_base_type): Handle DW_END_big,
464 DW_END_little
465 * f-lang.c (f_get_encoding):
466 Use type_byte_order instead of gdbarch_byte_order.
467 * findvar.c (default_read_var_value):
468 Use type_byte_order instead of gdbarch_byte_order.
469 * gdbtypes.c (check_types_equal):
470 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
471 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
472 and TYPE_ENDIANITY_LITTLE if set.
473 (type_byte_order): new function.
474 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
475 (struct main_type) <flag_endianity_not_default>:
476 New field.
477 (type_byte_order): New function.
478 * infcmd.c (default_print_one_register_info):
479 Use type_byte_order instead of gdbarch_byte_order.
480 * p-lang.c (pascal_printstr):
481 Use type_byte_order instead of gdbarch_byte_order.
482 * p-valprint.c (pascal_val_print):
483 Use type_byte_order instead of gdbarch_byte_order.
484 * printcmd.c (print_scalar_formatted):
485 Use type_byte_order instead of gdbarch_byte_order.
486 * solib-darwin.c (darwin_current_sos):
487 Use type_byte_order instead of gdbarch_byte_order.
488 * solib-svr4.c (solib_svr4_r_ldsomap):
489 Use type_byte_order instead of gdbarch_byte_order.
490 * stap-probe.c (stap_modify_semaphore):
491 Use type_byte_order instead of gdbarch_byte_order.
492 * target-float.c (target_float_same_format_p):
493 Use type_byte_order instead of gdbarch_byte_order.
494 * valarith.c (scalar_binop):
495 (value_bit_index):
496 Use type_byte_order instead of gdbarch_byte_order.
497 * valops.c (value_cast):
498 Use type_byte_order instead of gdbarch_byte_order.
499 * valprint.c (generic_emit_char):
500 (generic_printstr):
501 (val_print_string):
502 Use type_byte_order instead of gdbarch_byte_order.
503 * value.c (unpack_long):
504 (unpack_bits_as_long):
505 (unpack_value_bitfield):
506 (modify_field):
507 (pack_long):
508 (pack_unsigned_long):
509 Use type_byte_order instead of gdbarch_byte_order.
510 * findvar.c (unsigned_pointer_to_address):
511 (signed_pointer_to_address):
512 (unsigned_address_to_pointer):
513 (address_to_signed_pointer):
514 (default_read_var_value):
515 (default_value_from_register):
516 Use type_byte_order instead of gdbarch_byte_order.
517 * gnu-v3-abi.c (gnuv3_make_method_ptr):
518 Use type_byte_order instead of gdbarch_byte_order.
519 * riscv-tdep.c (riscv_print_one_register_info):
520 Use type_byte_order instead of gdbarch_byte_order.
521
87fb00ea
SM
5222019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
523
524 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
525 (current_ui_gdb_stdin_ptr): Likewise.
526 (current_ui_gdb_stderr_ptr): Likewise.
527 (current_ui_gdb_stdlog_ptr): Likewise.
528 (current_ui_current_uiout_ptr): Likewise.
529 (gen_ret_current_ui_field_ptr): Remove.
530
65d1cd5f
TV
5312019-11-21 Tom de Vries <tdevries@suse.de>
532
533 PR gdb/24956
534 * cli/cli-script.c (execute_control_command): Only switch to
535 INTERP_CONSOLE's ui_out when INTERP_MI is active.
536
9f6ad286
TT
5372019-11-19 Tom Tromey <tom@tromey.com>
538
539 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
540 Now static. Change type of "name".
541 (tui_set_win_height_command): Don't copy "arg".
542 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
543 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
544
435d3d88
AT
5452019-11-19 Ali Tamur <tamur@google.com>
546
547 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
548 "if (attr != nullptr)".
549 (dwarf2_find_base_address): Likewise.
550 (dwarf2_build_include_psymtabs): Likewise.
551 (read_cutu_die_from_dwo): Likewise.
552 (read_func_scope): Likewise.
553 (read_call_site_scope): Likewise.
554 (dwarf2_get_pc_bounds): Likewise.
555 (dwarf2_record_block_ranges): Likewise.
556 (dwarf2_add_field): Likewise.
557 (dwarf2_add_member_fn): Likewise.
558 (read_structure_type): Likewise.
559 (read_enumeration_type): Likewise.
560 (read_array_type): Likewise.
561 (read_array_order): Likewise.
562 (read_set_type): Likewise.
563 (read_common_block): Likewise.
564 (read_tag_reference_type): Likewise.
565 (read_tag_string_type): Likewise.
566 (read_subroutine_type): Likewise.
567 (read_base_type): Likewise.
568 (read_subrange_type): Likewise.
569 (new_symbol): Likewise.
570 (prepare_one_comp_unit): Likewise.
571
c9739b6a
TT
5722019-11-19 Tom Tromey <tromey@adacore.com>
573
574 * windows-nat.c (windows_nat_target::attach): Include GetLastError
575 result in error when DebugActiveProcess fails.
576
494409bb
SDJ
5772019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
578 Pedro Alves <palves@redhat.com>
579
580 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
581 * target.c (target_stack::push): Call 'unpush' if there's a
582 target on top of the stack.
583
2e953aca
PW
5842019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
585
586 * python/py-block.c (blpy_dealloc): Call tp_free.
587 (blpy_block_syms_dealloc): Likewise.
588 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
589 * python/py-inferior.c (infpy_dealloc): Likewise.
590 * python/py-lazy-string.c (stpy_dealloc): Likewise.
591 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
592 * python/py-symbol.c (sympy_dealloc): Likewise.
593 * python/py-symtab.c (stpy_dealloc): Likewise.
594 * python/py-type.c (typy_iterator_dealloc): Likewise.
595
6edc43ec
CB
5962019-11-18 Christian Biesinger <cbiesinger@google.com>
597
598 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
599 constructor instead of using a class initializer.
600
cd850b40
CB
6012019-11-15 Christian Biesinger <cbiesinger@google.com>
602
603 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
604 * configure: Regenerate.
605 * configure.ac: Don't source common.host.
606 * gdbsupport/common.host: Remove.
607 * gdbsupport/mingw-strerror.c: Remove.
608 * gdbsupport/posix-strerror.c: Rename to...
609 * gdbsupport/safe-strerror.c: ...this.
610
53fea9c7
CB
6112019-11-15 Christian Biesinger <cbiesinger@google.com>
612
613 * maint.c (scoped_command_stats::print_time): Use localtime_r
614 instead of localtime (provided through gnulib if necessary).
615 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
616 of ctime.
617
f8e27d88
CB
6182019-11-15 Christian Biesinger <cbiesinger@google.com>
619
620 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
621 avoid compile errors.
622
5abebf3c
CB
6232019-11-15 Christian Biesinger <cbiesinger@google.com>
624
625 * config.in: Regenerate.
626 * configure: Regenerate.
627 * gdbsupport/common.m4: No longer check for strerror_r.
628 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
629 POSIX version of strerror_r, now that gnulib provides it if
630 necessary.
631
9a351667
CB
6322019-11-14 Christian Biesinger <cbiesinger@google.com>
633
634 * README (`configure' options): Update.
635
55708e99
TT
6362019-11-14 Tom Tromey <tromey@adacore.com>
637
638 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
639 expected type for the RHS if the LHS is a convenience variable.
640
4b09bb2e
SM
6412019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
642
643 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
644 Provide explicit default and copy constructor.
645
bd454f8b
PW
6462019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
647
648 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
649 only call Py_INCREF (newbp) in the bppy_pending_object case.
650
d1aa3cf0
TT
6512019-11-13 Tom Tromey <tromey@adacore.com>
652
653 PR build/25182:
654 * psympriv.h (partial_symbol): Remove static assert.
655 * symtab.h (general_symbol_info, symbol): Remove static assert.
656
e06f3d6e
AB
6572019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
658
659 * gdbsupport/format.c (format_pieces::format_pieces): Support
660 printf 'z' size modifier.
661 * gdbsupport/format.h (enum argclass): Add size_t_arg.
662 * printcmd.c (ui_printf): Handle size_t_arg.
663 * ui-out.c (ui_out::vmessage): Likewise.
664 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
665 function.
666 (run_tests): Call test_format_int_sizes.
667
468c0cbb
CB
6682019-11-12 Christian Biesinger <cbiesinger@google.com>
669
670 * ada-exp.y (write_ambiguous_var): Update.
671 * buildsym.c (add_symbol_to_list): Update.
672 * dwarf2read.c (read_variable): Update.
673 (new_symbol): Update.
674 * jit.c (finalize_symtab): Update.
675 * language.c (language_alloc_type_symbol): Update.
676 * symtab.c (fixup_symbol_section): Update.
677 (initialize_objfile_symbol_1): Move code to...
678 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
679 (allocate_symbol): Update.
680 (allocate_template_symbol): Update.
681 (get_symbol_address): Update.
682 * symtab.h (struct symbol): Inherit from general_symbol_info instead
683 of having as a field, and add a constructor.
684 (SYMBOL_VALUE): Update.
685 (SYMBOL_VALUE_ADDRESS): Update.
686 (SET_SYMBOL_VALUE_ADDRESS): Update.
687 (SYMBOL_VALUE_BYTES): Update.
688 (SYMBOL_VALUE_COMMON_BLOCK): Update.
689 (SYMBOL_BLOCK_VALUE): Update.
690 (SYMBOL_VALUE_CHAIN): Update.
691 (SYMBOL_LANGUAGE): Update.
692 (SYMBOL_SECTION): Update.
693 (SYMBOL_OBJ_SECTION): Update.
694 (SYMBOL_SET_LANGUAGE): Update.
695 (SYMBOL_SET_LINKAGE_NAME): Update.
696 (SYMBOL_SET_NAMES): Update.
697 (SYMBOL_NATURAL_NAME): Update.
698 (SYMBOL_LINKAGE_NAME): Update.
699 (SYMBOL_DEMANGLED_NAME): Update.
700 (SYMBOL_SEARCH_NAME): Update.
701 (SYMBOL_MATCHES_SEARCH_NAME): Update.
702 (struct symbol): Update.
703 (struct template_symbol): Update.
704 (struct rust_vtable_symbol): Update.
705 * xcoffread.c (SYMBOL_DUP): Update.
706
ed2c82c3
TT
7072019-11-12 Tom Tromey <tom@tromey.com>
708
709 * tui/tui-layout.c (show_layout): Set current_layout.
710 (show_source_disasm_command, show_data)
711 (show_source_or_disasm_and_command): Don't set current_layout.
712
d9fcefd5
TT
7132019-11-12 Tom Tromey <tom@tromey.com>
714
715 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
716
45e42163
TT
7172019-11-12 Tom Tromey <tom@tromey.com>
718
719 * tui/tui-win.c (resize_message): New global.
720 (show_tui_resize_message): New function.
721 (tui_async_resize_screen): Print message if requested.
722 (_initialize_tui_win): Add tui-resize-message setting.
723 * NEWS: Add entry for new commands.
724
c86d74cc
TT
7252019-11-11 Tom Tromey <tom@tromey.com>
726
727 * tui/tui.c (tui_initialize_readline): Add new bindable readline
728 functions.
729
7b7b9424
CB
7302019-11-11 Christian Biesinger <cbiesinger@google.com>
731
732 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
733
086baaf1
AB
7342019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
735
736 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
737 function.
738 * python/python-internal.h (gdbpy_lookup_static_symbols):
739 Declare new function.
740 * python/python.c (python_GdbMethods): Add
741 gdb.lookup_static_symbols method.
742 * NEWS: Mention gdb.lookup_static_symbols.
743
09ff83af
AB
7442019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
745
746 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
747 static block of current object file first. Also fix typo in
748 header comment.
749
eb2dd8df
AB
7502019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
751
752 * stack.c (set_last_displayed_sal): Delete.
753 (last_displayed_sal_valid): Delete.
754 (last_displayed_pspace): Delete.
755 (last_displayed_addr): Delete.
756 (last_displayed_symtab): Delete.
757 (last_displayed_line): Delete.
758 (class last_displayed_symtab_info_type): New.
759 (last_displayed_symtab_info): New static global variable.
760 (print_frame_info): Call methods on last_displayed_symtab_info.
761 (clear_last_displayed_sal): Update header comment, and make use of
762 last_displayed_symtab_info.
763 (last_displayed_sal_is_valid): Likewise.
764 (get_last_displayed_pspace): Likewise.
765 (get_last_displayed_addr): Likewise.
766 (get_last_displayed_symtab): Likewise.
767 (get_last_displayed_line): Likewise.
768 (get_last_displayed_sal): Likewise.
769 * stack.h (clear_last_displayed_sal): Update header comment.
770 (last_displayed_sal_is_valid): Likewise.
771 (get_last_displayed_pspace): Likewise.
772 (get_last_displayed_addr): Likewise.
773 (get_last_displayed_symtab): Likewise.
774 (get_last_displayed_line): Likewise.
775 (get_last_displayed_sal): Likewise.
776
62137775
AB
7772019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
778
779 * stack.c (frame_show_address): Convert return type to bool.
780 * stack.h (frame_show_address): Likewise, and update header
781 comment.
782
cf57ad6d
AB
7832019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
784
785 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
786 * unittests/vec-utils-selftests.c: New file.
787 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
788
0b026263
TT
7892019-11-10 Tom Tromey <tom@tromey.com>
790
791 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
792 (tui_highlight_win): Likewise.
793 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
794 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
795 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
796 Don't set can_highlight.
797
b049ce2d
TT
7982019-11-10 Tom Tromey <tom@tromey.com>
799
800 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
801 Remove unused declaration.
802
992a7040
TT
8032019-11-08 Tom Tromey <tromey@adacore.com>
804
805 * top.c (read_command_file): Update.
806 (command_line_input): Make return type const.
807 * python/py-gdb-readline.c: Update.
808 * linespec.c (decode_line_2): Update.
809 * defs.h (command_line_input): Make return type const.
810 * cli/cli-script.c (read_next_line): Make return type const.
811 * ada-lang.c (get_selections): Update.
812
ca3a04f6
CB
8132019-11-06 Christian Biesinger <cbiesinger@google.com>
814
815 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
816 * mi/mi-main.c (output_cores): Likewise.
817 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
818 (linux_xfer_osdata_modules): Likewise.
819 * remote.c (register_remote_support_xml): Likewise.
820 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
821 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
822
e0eac551
TT
8232019-11-06 Tom Tromey <tom@tromey.com>
824
825 * tui/tui-interp.c: Don't include readline.h.
826 * tui/tui-hooks.c: Don't include readline.h.
827 * symmisc.c: Include tilde.h, not readline.h.
828 * symfile.c: Include tilde.h, not readline.h.
829 * source.c: Include tilde.h, not readline.h.
830 * solib.c: Include tilde.h, not readline.h.
831 * psymtab.c: Include tilde.h, not readline.h.
832 * exec.c: Include tilde.h, not readline.h.
833 * corelow.c: Include tilde.h, not readline.h.
834 * cli/cli-dump.c: Include tilde.h, not readline.h.
835 * cli/cli-cmds.c: Don't include readline.h.
836
825165c5
TT
8372019-11-05 Tom Tromey <tom@tromey.com>
838
839 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
840 (tui_disassemble): Set addr_size.
841 (tui_disasm_window::set_contents): Use addr_size.
842
91ae903f
TT
8432019-11-05 Tom Tromey <tom@tromey.com>
844
845 * rust-lang.c (rust_language_defn): Update.
846 * python/py-value.c (valpy_string): Call c_get_string.
847 * p-lang.c (pascal_language_defn): Update.
848 * opencl-lang.c (opencl_language_defn): Update.
849 * objc-lang.c (objc_language_defn): Update.
850 * m2-lang.c (m2_language_defn): Update.
851 * language.c (unknown_language_defn, auto_language_defn): Update.
852 (default_get_string): Remove.
853 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
854 * go-lang.c (go_language_defn): Update.
855 * f-lang.c (f_language_defn): Update.
856 * d-lang.c (d_language_defn): Update.
857 * c-lang.c (c_language_defn, cplus_language_defn)
858 (asm_language_defn, minimal_language_defn): Update.
859 * ada-lang.c (ada_language_defn): Update.
860 * language.h (struct language_defn) <la_get_string>: Remove.
861 (LA_GET_STRING): Remove.
862 (default_get_string): Don't declare.
863
1df2f9ef
TT
8642019-11-05 Tom Tromey <tom@tromey.com>
865
866 * tui/tui-source.h (struct tui_source_window): Inline
867 constructor. Remove destructor.
868 <style_changed, m_observable>: Move to superclass.
869 * tui/tui-winsource.h (tui_copy_source_line): Declare.
870 (struct tui_source_window_base): Move private members to end.
871 <style_changed, m_observable>: Move from tui_source_window.
872 * tui/tui-winsource.c (tui_copy_source_line): Move from
873 tui-source.c. Rename from copy_source_line. Add special handling
874 for negative line number.
875 (tui_source_window_base::style_changed): Move from
876 tui_source_window.
877 (tui_source_window_base): Register observer.
878 (~tui_source_window_base): New.
879 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
880 rename.
881 (tui_source_window::set_contents): Use tui_copy_source_line.
882 (tui_source_window::tui_source_window): Move to tui-source.h.
883 (tui_source_window::~tui_source_window): Remove.
884 (tui_source_window::style_changed): Move to superclass.
885 * tui/tui-disasm.c (tui_disassemble): Create string file with
886 styling, when possible. Add "addr_size" parameter.
887 (tui_disasm_window::set_contents): Use tui_copy_source_line.
888 Don't compute maximum size.
889 (len_without_escapes): New function
890
5d051055
TT
8912019-11-05 Tom Tromey <tom@tromey.com>
892
893 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
894 std::string.
895 * tui/tui-winsource.c (tui_show_source_line): Update.
896 * tui/tui-source.c (tui_source_window::set_contents): Update.
897 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
898
ade7beea
CB
8992019-11-05 Christian Biesinger <cbiesinger@google.com>
900
901 * symtab.h (gdb_static_assert): Put && operator at the beginning
902 of the line instead of the end.
903
3573abe1
CB
9042019-11-04 Christian Biesinger <cbiesinger@google.com>
905
906 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
907 and sizeof (symbol).
908 * symtab.h: Add a static_assert for sizeof (partial_symbol).
909
dae8b3eb
RO
9102019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
911
912 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
913 * configure.host: Mark *-*-solaris2.10* obsolete.
914 * configure.tgt: Mark Solaris < 11 obsolete.
915 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
916 Update target triplet.
917
5df96a4e
TT
9182019-11-01 Tom Tromey <tromey@adacore.com>
919
920 * utils.c (print_sys_errmsg): Simplify.
921
b7481649
TT
9222019-11-01 Tom Tromey <tromey@adacore.com>
923
924 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
925
e48f6033
CB
9262019-11-01 Christian Biesinger <cbiesinger@google.com>
927
928 * configure: Regenerate.
929 * configure.ac: Remove check for strerror_r.
930 * gdbsupport/common.m4: Check for strerror_r.
931
bd5766ec
LM
9322019-11-01 Luis Machado <luis.machado@linaro.org>
933
934 PR gdb/25124
935
936 * arm-tdep.c (arm_per_objfile): Rename to ...
937 (arm_per_bfd): ... this.
938 (arm_objfile_data_key): Rename to ...
939 (arm_bfd_data_key): ... this.
940 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
941 data.
942 (arm_record_special_symbol): Likewise.
943
e1709896
AB
9442019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
945
946 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
947 end.
948 * c-typeprint.c (c_print_typedef): Likewise.
949 * f-typeprint.c (f_print_typedef): Likewise.
950 * m2-typeprint.c (m2_print_typedef): Likewise.
951 * p-typeprint.c (pascal_print_typedef): Likewise.
952 * rust-lang.c (rust_print_typedef): Likewise.
953 * symtab.c (print_symbol_info): Print a newline after calling
954 typedef_print.
955
165f8965
AB
9562019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
957
958 * symtab.c (info_module_cmdlist): New variable.
959 (info_module_command): New function.
960 (search_module_symbols): New function.
961 (info_module_subcommand): New function.
962 (struct info_modules_var_func_options): New struct.
963 (info_modules_var_func_options_defs): New variable.
964 (make_info_modules_var_func_options_def_group): New function.
965 (info_module_functions_command): New function.
966 (info_module_variables_command): New function.
967 (info_module_var_func_command_completer): New function.
968 (_initialize_symtab): Register new 'info module functions' and
969 'info module variables' commands.
970 * symtab.h (typedef symbol_search_in_module): New typedef.
971 (search_module_symbols): Declare new function.
972 * NEWS: Mention new commands.
973
59c35742
AB
9742019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
975
976 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
977 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
978 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
979 MODULES_DOMAIN.
980 (scan_partial_symbols): Only create partial module symbols for non
981 declarations.
982 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
983 and MODULES_DOMAIN.
984 * symtab.c (search_domain_name): Likewise.
985 (search_symbols): Likewise.
986 (print_symbol_info): Likewise.
987 (symtab_symbol_info): Likewise.
988 (info_modules_command): New function.
989 (_initialize_symtab): Register 'info modules' command.
990 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
991 * NEWS: Mention new 'info modules' command.
992
aed61d02
PW
9932019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
994
995 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
996 and $_gdb_maint_setting_str.
997
9ad9b77d
PW
9982019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
999
1000 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1001 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1002 (str_value_from_setting, gdb_setting_str_internal_fn)
1003 (gdb_maint_setting_str_internal_fn): New functions.
1004 (_initialize_cli_cmds): Define the new convenience functions.
1005 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1006 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1007
8d6efaa2
CB
10082019-10-31 Christian Biesinger <cbiesinger@google.com>
1009
1010 * agent.c (set_can_use_agent): When the setting is turned on,
1011 look up agent symbols if we don't have them yet.
1012 (agent_new_objfile): Don't look up agent symbols when the agent
1013 setting is off.
1014
33cb1647
CB
10152019-10-31 Christian Biesinger <cbiesinger@google.com>
1016
1017 * config.in: Regenerate.
1018
b231e86a
CB
10192019-10-31 Christian Biesinger <cbiesinger@google.com>
1020
1021 * configure: Regenerate.
1022 * configure.ac: Check for strerror_r.
1023 * gdbsupport/common-utils.h (safe_strerror): Change return value
1024 to const char * and document that this function is now threadsafe.
1025 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1026 thread_local and call strerror_r, if available.
1027 * utils.c (perror_string): Update.
1028 (print_sys_errmsg): Update.
1029
a2726d4f
LM
10302019-10-31 Luis Machado <luis.machado@linaro.org>
1031
1032 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1033 objfile_key.
1034 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1035 objfile to fetch per-bfd data.
1036 (arm_find_exidx_entry): Likewise.
1037
75cafaa6
CB
10382019-10-31 Christian Biesinger <cbiesinger@google.com>
1039
1040 * gdbsupport/agent.c (debug_agent): Change type to bool.
1041 (use_agent): Likewise.
1042 (all_agent_symbols_look_up): Likewise.
1043 (agent_loaded_p): Change return value to bool.
1044 (agent_look_up_symbols): Update.
1045 (agent_capability_check): Change return value to bool.
1046 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1047 (debug_agent): Change type to bool.
1048 (use_agent): Likewise.
1049 (agent_capability_check): Change return value to bool.
1050
808590ec
CB
10512019-10-30 Christian Biesinger <cbiesinger@google.com>
1052
1053 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1054 (build_minimal_symbol_hash_tables): Code to clear the table moved
1055 to clear_minimal_symbol_hash_tables.
1056 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1057 when needed.
1058
f18ad8a1
SM
10592019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1060
1061 * infcmd.c: Remove includes.
1062 * infrun.c: Remove includes.
1063
de93309a
SM
10642019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1065
1066 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1067 (grow_vect): Remove declaration.
1068 (ada_type_of_array): Remove declaration.
1069 (ada_update_initial_language): Remove declaration.
1070 (ada_fold_name): Remove declaration.
1071 (ada_fill_in_ada_prototype): Remove declaration.
1072 (user_select_syms): Remove declaration.
1073 (get_selections): Remove declaration.
1074 (ada_tag_type): Remove declaration.
1075 (ada_value_tag): Remove declaration.
1076 (ada_is_others_clause): Remove declaration.
1077 (ada_in_variant): Remove declaration.
1078 (ada_value_struct_elt): Remove declaration.
1079 (ada_attribute_name): Remove declaration.
1080 (ada_system_address_type): Remove declaration.
1081 * ada-lang.c (ada_watch_location_expression): Make static.
1082 (GROW_VECT): Move here from ada-lang.h.
1083 (grow_vect): Make static.
1084 (ada_update_initial_language): Make static.
1085 (ada_fold_name): Make static.
1086 (ada_type_of_array): Make static.
1087 (encoded_ordered_before): Move up.
1088 (sort_choices): Move up.
1089 (print_signatures): Move up.
1090 (ada_print_symbol_signature): Move up.
1091 (get_selections): Move up and make static.
1092 (user_select_syms): Move up and make static.
1093 (ada_value_struct_elt): Move up and make static.
1094 (ada_tag_type): Make static.
1095 (ada_value_tag): Make static.
1096 (ada_is_others_clause): Make static.
1097 (ada_in_variant): Make static.
1098 (ada_attribute_name): Make static.
1099
cdc46a9f
SM
11002019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1101
1102 * ada-lang.c: Remove includes.
1103 * ada-typeprint.c: Remove includes.
1104 * ada-valprint.c: Remove includes.
1105
90421c56
SM
11062019-10-29 Simon Marchi <simon.marchi@efficios.com>
1107
1108 * addrmap.c: Add static assertions of type size, moved from
1109 _initialize_addrmap.
1110 (_initialize_addrmap): Remove.
1111
31edb802
CB
11122019-10-29 Christian Biesinger <cbiesinger@google.com>
1113
1114 * coffread.c (record_minimal_symbol): Update.
1115 (process_coff_symbol): Update.
1116 * dbxread.c (read_dbx_symtab): Update.
1117 * dwarf2read.c (add_partial_symbol): Update.
1118 (fixup_go_packaging): Update.
1119 (load_partial_dies): Update.
1120 (new_symbol): Update.
1121 * elfread.c (record_minimal_symbol): Change signature to use
1122 gdb::string_view instead of name+len.
1123 (elf_symtab_read): Update.
1124 (elf_rel_plt_read): Update.
1125 * mdebugread.c (parse_partial_symbols): Update.
1126 (handle_psymbol_enumerators): Update.
1127 (new_symbol): Update.
1128 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1129 to use gdb::string_view instead of name+len.
1130 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1131 * psympriv.h (add_psymbol_to_list): Likewise.
1132 * psymtab.c (add_psymbol_to_bcache): Likewise.
1133 (add_psymbol_to_list): Likewise.
1134 * stabsread.c (define_symbol): Update.
1135 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1136 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1137 (symbol_set_names): Likewise.
1138 * xcoffread.c (scan_xcoff_symtab): Update.
1139
0c921b21
CB
11402019-10-29 Christian Biesinger <cbiesinger@google.com>
1141
1142 * symtab.h (symbol_set_names): Document that copy_name must be
1143 set to true for non-nullterminated strings.
1144 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1145 linkage_name if the entry was not found and we need to demangle.
1146
35e65c49
CB
11472019-10-29 Christian Biesinger <cbiesinger@google.com>
1148
1149 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1150 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1151 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1152 * gdbsupport/gdb_binary_search.h: New file.
1153
ed2a2229
CB
11542019-10-29 Christian Biesinger <cbiesinger@google.com>
1155
1156 * NEWS: Mention new --with-system-gdbinit-dir option.
1157 * config.in: Regenerate.
1158 * configure: Regenerate.
1159 * configure.ac: Add new option --with-system-gdbinit-dir.
1160 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1161 for a ".gdb" suffix.
1162 * main.c (get_init_files): Change system_gdbinit argument to
1163 a vector and return the files in SYSTEM_GDBINIT_DIR in
1164 addition to SYSTEM_GDBINIT.
1165 (captured_main_1): Update.
1166 (print_gdb_help): Update.
1167 * top.c (print_gdb_configuration): Also print the value of
1168 SYSTEM_GDBINIT_DIR.
1169
87f34879
CB
11702019-10-28 Christian Biesinger <cbiesinger@google.com>
1171
1172 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1173 that takes gdb::string_view arguments.
1174
30baf67b
TV
11752019-10-26 Tom de Vries <tdevries@suse.de>
1176
1177 * aarch64-linux-tdep.c: Fix typos in comments.
1178 * aarch64-tdep.c: Same.
1179 * ada-lang.c: Same.
1180 * amd64-nat.c: Same.
1181 * arc-tdep.c: Same.
1182 * arch/aarch64-insn.c: Same.
1183 * block.c: Same.
1184 * breakpoint.h: Same.
1185 * btrace.h: Same.
1186 * c-varobj.c: Same.
1187 * cli/cli-decode.c: Same.
1188 * cli/cli-script.c: Same.
1189 * cli/cli-utils.h: Same.
1190 * coff-pe-read.c: Same.
1191 * coffread.c: Same.
1192 * compile/compile-cplus-symbols.c: Same.
1193 * compile/compile-object-run.c: Same.
1194 * completer.c: Same.
1195 * corelow.c: Same.
1196 * cp-support.c: Same.
1197 * demangle.c: Same.
1198 * dwarf-index-write.c: Same.
1199 * dwarf2-frame.c: Same.
1200 * dwarf2-frame.h: Same.
1201 * eval.c: Same.
1202 * frame-base.h: Same.
1203 * frame.h: Same.
1204 * gdbcmd.h: Same.
1205 * gdbtypes.h: Same.
1206 * gnu-nat.c: Same.
1207 * guile/scm-objfile.c: Same.
1208 * i386-tdep.c: Same.
1209 * i386-tdep.h: Same.
1210 * infcall.c: Same.
1211 * infcall.h: Same.
1212 * linux-nat.c: Same.
1213 * m68k-tdep.c: Same.
1214 * macroexp.c: Same.
1215 * memattr.c: Same.
1216 * mi/mi-cmd-disas.c: Same.
1217 * mi/mi-getopt.h: Same.
1218 * mi/mi-main.c: Same.
1219 * minsyms.c: Same.
1220 * nat/aarch64-sve-linux-sigcontext.h: Same.
1221 * objfiles.h: Same.
1222 * ppc-linux-nat.c: Same.
1223 * ppc-linux-tdep.c: Same.
1224 * ppc-tdep.h: Same.
1225 * progspace.h: Same.
1226 * prologue-value.h: Same.
1227 * python/py-evtregistry.c: Same.
1228 * python/py-instruction.h: Same.
1229 * record-btrace.c: Same.
1230 * record-full.c: Same.
1231 * remote.c: Same.
1232 * rs6000-tdep.c: Same.
1233 * ser-tcp.c: Same.
1234 * sol-thread.c: Same.
1235 * sparc-sol2-tdep.c: Same.
1236 * sparc64-tdep.c: Same.
1237 * stabsread.c: Same.
1238 * symfile.c: Same.
1239 * symtab.h: Same.
1240 * target.c: Same.
1241 * tracepoint.c: Same.
1242 * tui/tui-data.h: Same.
1243 * tui/tui-io.c: Same.
1244 * tui/tui-win.c: Same.
1245 * tui/tui.c: Same.
1246 * unittests/rsp-low-selftests.c: Same.
1247 * user-regs.h: Same.
1248 * utils.c: Same.
1249 * utils.h: Same.
1250 * valarith.c: Same.
1251 * valops.c: Same.
1252 * valprint.c: Same.
1253 * valprint.h: Same.
1254 * value.c: Same.
1255 * value.h: Same.
1256 * varobj.c: Same.
1257 * x86-nat.h: Same.
1258 * xtensa-tdep.c: Same.
1259
1834d45f
AT
12602019-10-25 Ali Tamur <tamur@google.com>
1261
1262 * charset.c (find_charset_names): Reflect API change.
1263
5396ae17
CB
12642019-10-25 Christian Biesinger <cbiesinger@google.com>
1265
1266 * symtab.c (struct demangled_name_entry): Change demangled name
1267 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1268 part of the struct anymore.
1269 (symbol_set_names): No longer obstack allocate + copy the demangled
1270 name, just store the allocated name from bfd.
1271
93878f47
TT
12722019-10-25 Tom Tromey <tromey@adacore.com>
1273
1274 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1275 (bsearch_cie_cmp, add_cie): Remove.
1276 (find_cie): Reimplement.
1277 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1278 (dwarf2_build_frame_info): Update.
1279
7b71fc97
L
12802019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1281
1282 PR gdb/25126
1283 * symfile.c (reread_symbols): Call forget_cached_source_info to
1284 clear the stale source cache.
1285
cbb5a2ea
CB
12862019-10-24 Christian Biesinger <cbiesinger@google.com>
1287
1288 * configure: Regenerate.
1289 * configure.ac: Remove code that sets python_has_threads.
1290
71737c43
CB
12912019-10-24 Christian Biesinger <cbiesinger@google.com>
1292
1293 * config.in: Regenerate.
1294 * configure: Regenerate.
1295 * configure.ac: Remove the code that uses sed to get the python
1296 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1297
33d569b7
AB
12982019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1299
1300 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1301 error paths.
1302
f16f7b7c
TT
13032019-10-23 Tom Tromey <tom@tromey.com>
1304
1305 * arc-tdep.c: Remove ".." from include.
1306 * frv-tdep.c: Remove ".." from include.
1307 * lm32-tdep.c: Remove ".." from include.
1308 * microblaze-tdep.c: Remove ".." from include.
1309 * or1k-tdep.h: Remove ".." from include.
1310 * s12z-tdep.c: Remove ".." from include.
1311 * Makefile.in (OPCODES_CFLAGS): Add comment.
1312 (TOP_CFLAGS): New variable.
1313 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1314
6999161a
TT
13152019-10-23 Tom Tromey <tom@tromey.com>
1316
1317 * Makefile.in (READLINE_DIR): Update.
1318
12e7c35e
TBA
13192019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1320
1321 * infcall.c (call_function_by_hand_dummy): Fix the function
1322 comment. And extract out a code section into...
1323 (reserve_stack_space): ...this new function.
1324
37055cad
TBA
13252019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1326
1327 * infcall.c (value_arg_coerce): Remove an unused parameter.
1328 (call_function_by_hand_dummy): Update the call to
1329 'value_arg_coerce'.
1330
39bcc47c
TBA
13312019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1332
1333 * infcall.c (call_function_by_hand_dummy): Refactor.
1334
bd888c0f
TBA
13352019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1336
1337 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1338
c12d372d
TT
13392019-10-23 Tom Tromey <tom@tromey.com>
1340
1341 * configure: Rebuild.
1342 * configure.ac: Don't check for sigprocmask.
1343 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1344
4d0b984b
TT
13452019-10-23 Tom Tromey <tom@tromey.com>
1346
1347 * configure: Rebuild.
1348 * acinclude.m4: Use m4_include, not sinclude.
1349
7e785608
TV
13502019-10-23 Tom de Vries <tdevries@suse.de>
1351
1352 PR breakpoints/24687
1353 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1354
403772ef
CB
13552019-10-22 Christian Biesinger <cbiesinger@google.com>
1356
1357 * symtab.c (struct demangled_name_entry) <language>: Change from
1358 bitfield to regular variable.
1359
3a494279
CB
13602019-10-22 Christian Biesinger <cbiesinger@google.com>
1361
1362 * symtab.c (struct demangled_name_entry): Add a constructor.
1363 (free_demangled_name_entry): New function to call the destructor
1364 for demangled_name_entry.
1365 (create_demangled_names_hash): Pass free_demangled_name_entry to
1366 htab_create_alloc.
1367 (symbol_set_names): Call placement new for demangled_name_entry.
1368 * utils.c: No longer include xxhash.h here, now that fast_hash
1369 is inlined in the header.
1370 * utils.h: Instead, include it here.
1371
ccb1ba62
CB
13722019-10-22 Christian Biesinger <cbiesinger@google.com>
1373
1374 * Makefile.in: Link with libxxhash.
1375 * config.in: Regenerate.
1376 * configure: Regenerate.
1377 * configure.ac: Search for libxxhash.
1378 * utils.c (fast_hash): Use xxhash if present.
1379
1a6ff1a9
CB
13802019-10-22 Christian Biesinger <cbiesinger@google.com>
1381
1382 * utils.h (fast_hash): New function.
1383 * symtab.c (hash_demangled_name_entry): Call new function
1384 fast_hash.
1385
7bb43059
CB
13862019-10-22 Christian Biesinger <cbiesinger@google.com>
1387
1388 * symtab.c (struct demangled_name_entry): Change type of mangled
1389 to gdb::string_view. Also adds a constructor that takes the
1390 mangled name.
1391 (hash_demangled_name_entry): Update.
1392 (eq_demangled_name_entry): Update.
1393 (free_demangled_name_entry): New function to call the destructor
1394 now that this is not a POD anymore.
1395 (create_demangled_names_hash): Pass free_demangled_name_entry to
1396 htab_create_alloc.
1397 (symbol_set_names): Update.
1398
7ba99d21
AT
13992019-10-21 Ali Tamur <tamu@google.com>
1400
1401 * dwarf2read.c (dir_index): Change type.
1402 (file_name_index): Likewise.
1403 (line_header::include_dir_at): Change comment and implementation on
1404 whether it is DWARF 5.
1405 (line_header::is_valid_file_index): New function.
1406 (line_header::file_name_at): Change comment and implementation on
1407 whether it is DWARF 5.
1408 (line_header::file_names): Change to private field renamed as
1409 m_file_names and introduce a new accessor method.
1410 (line_header::file_names_size): New method.
1411 (line_header::include_dirs): Change to private field and rename as
1412 m_include_dirs.
1413 (dw2_get_file_names_reader): Define local var at a smaller scope and
1414 reflect API change.
1415 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1416 (process_structure_scope): Likewise.
1417 (line_header::add_include_dir): Change message and reflect renaming.
1418 (line_header::add_file_name): Likewise.
1419 (read_formatted_entries): Handle DW_FORM_data16.
1420 (dwarf_decode_line_header): Fix line header length calculation.
1421 (psymtab_include_file_name): Change comment and API.
1422 (lnp_state_machine::m_file): Update comment and reflect type change.
1423 (lnp_state_machine::record_line): Reflect type change.
1424 (dwarf_decode_lines): Reflect API change.
1425 (file_file_name): Likewise.
1426 (file_full_name): Likewise.
1427
45f47c3a
AB
14282019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1429
1430 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1431
e5f3c0e3
TT
14322019-10-21 Tom Tromey <tom@tromey.com>
1433
1434 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1435
a0a461e5
TT
14362019-10-21 Tom Tromey <tom@tromey.com>
1437
1438 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1439 NM_H. Use AC_CONFIG_LINKS.
1440 * configure: Rebuild.
1441 * Makefile.in (NM_H): New variable.
1442 (generated_files): Add NM_H. Remove gcore.
1443 (nm.h, stamp-nmh): New targets.
1444
54d83b8d
TT
14452019-10-20 Tom Tromey <tom@tromey.com>
1446
1447 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1448 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1449 obsolete comment.
1450 (put_objfile_before): Now static.
1451
23771117
SM
14522019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1453
1454 * gdbsupport/common-utils.h (startswith): Change return type to
1455 bool.
1456
39ef2f62
CB
14572019-10-19 Christian Biesinger <cbiesinger@google.com>
1458
1459 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1460 * breakpoint.c (bp_locations_compare): Rename to...
1461 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1462 (update_global_location_list): Use std::sort instead of qsort.
1463 * buildsym.c (compare_line_numbers): Rename to...
1464 (lte_is_less_than): ...this, and change to std::sort semantics.
1465 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1466 instead of qsort.
1467 * disasm.c (compare_lines): Rename to...
1468 (line_is_less_than): ...this, and change to std::sort semantics.
1469 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1470 of qsort.
1471 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1472 (fde_is_less_than): ...this, and change to std::sort semantics.
1473 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1474 * mdebugread.c (compare_blocks):
1475 (block_is_less_than): ...this, and change to std::sort semantics.
1476 (sort_blocks): Call std::sort instead of qsort.
1477 * objfiles.c (qsort_cmp): Rename to...
1478 (sort_cmp): ...this, and change to std::sort semantics.
1479 (update_section_map): Call std::sort instead of qsort.
1480 * remote.c (compare_pnums): Remove.
1481 (map_regcache_remote_table): Call std::sort instead of qsort.
1482 * utils.c (compare_positive_ints): Remove.
1483 * utils.h (compare_positive_ints): Remove.
1484 * xcoffread.c (compare_lte): Remove.
1485 (arrange_linetable): Call std::sort instead of qsort.
1486
f71433ee
SDJ
14872019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1488
1489 * symfile.c (init_entry_point_info): Fix typo.
1490 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1491
85102364
TV
14922019-10-18 Tom de Vries <tdevries@suse.de>
1493
1494 * aarch64-tdep.c: Fix typos in comments.
1495 * ada-lang.c: Same.
1496 * ada-tasks.c: Same.
1497 * alpha-tdep.c: Same.
1498 * alpha-tdep.h: Same.
1499 * amd64-nat.c: Same.
1500 * amd64-windows-tdep.c: Same.
1501 * arc-tdep.c: Same.
1502 * arc-tdep.h: Same.
1503 * arch-utils.c: Same.
1504 * arm-nbsd-tdep.c: Same.
1505 * arm-tdep.c: Same.
1506 * ax-gdb.c: Same.
1507 * blockframe.c: Same.
1508 * btrace.c: Same.
1509 * c-varobj.c: Same.
1510 * coff-pe-read.c: Same.
1511 * coffread.c: Same.
1512 * cris-tdep.c: Same.
1513 * darwin-nat.c: Same.
1514 * dbxread.c: Same.
1515 * dcache.c: Same.
1516 * disasm.c: Same.
1517 * dtrace-probe.c: Same.
1518 * dwarf-index-write.c: Same.
1519 * dwarf2-frame-tailcall.c: Same.
1520 * dwarf2-frame.c: Same.
1521 * dwarf2read.c: Same.
1522 * eval.c: Same.
1523 * exceptions.c: Same.
1524 * fbsd-tdep.c: Same.
1525 * findvar.c: Same.
1526 * frame.c: Same.
1527 * frv-tdep.c: Same.
1528 * gnu-v3-abi.c: Same.
1529 * go32-nat.c: Same.
1530 * h8300-tdep.c: Same.
1531 * hppa-tdep.c: Same.
1532 * i386-linux-tdep.c: Same.
1533 * i386-tdep.c: Same.
1534 * ia64-libunwind-tdep.c: Same.
1535 * ia64-tdep.c: Same.
1536 * infcmd.c: Same.
1537 * infrun.c: Same.
1538 * linespec.c: Same.
1539 * linux-nat.c: Same.
1540 * linux-thread-db.c: Same.
1541 * machoread.c: Same.
1542 * mdebugread.c: Same.
1543 * mep-tdep.c: Same.
1544 * mn10300-tdep.c: Same.
1545 * namespace.c: Same.
1546 * objfiles.c: Same.
1547 * opencl-lang.c: Same.
1548 * or1k-tdep.c: Same.
1549 * osabi.c: Same.
1550 * ppc-linux-nat.c: Same.
1551 * ppc-linux-tdep.c: Same.
1552 * ppc-sysv-tdep.c: Same.
1553 * printcmd.c: Same.
1554 * procfs.c: Same.
1555 * record-btrace.c: Same.
1556 * record-full.c: Same.
1557 * remote-fileio.c: Same.
1558 * remote.c: Same.
1559 * rs6000-tdep.c: Same.
1560 * s12z-tdep.c: Same.
1561 * score-tdep.c: Same.
1562 * ser-base.c: Same.
1563 * ser-go32.c: Same.
1564 * skip.c: Same.
1565 * sol-thread.c: Same.
1566 * solib-svr4.c: Same.
1567 * solib.c: Same.
1568 * source.c: Same.
1569 * sparc-nat.c: Same.
1570 * sparc-sol2-tdep.c: Same.
1571 * sparc-tdep.c: Same.
1572 * sparc64-tdep.c: Same.
1573 * stabsread.c: Same.
1574 * stack.c: Same.
1575 * symfile.c: Same.
1576 * symtab.c: Same.
1577 * target-descriptions.c: Same.
1578 * target-float.c: Same.
1579 * thread.c: Same.
1580 * utils.c: Same.
1581 * valops.c: Same.
1582 * valprint.c: Same.
1583 * value.c: Same.
1584 * varobj.c: Same.
1585 * windows-nat.c: Same.
1586 * xcoffread.c: Same.
1587 * xstormy16-tdep.c: Same.
1588 * xtensa-tdep.c: Same.
1589
c5adaa19
TT
15902019-10-17 Tom Tromey <tromey@adacore.com>
1591
1592 * configure: Rebuild.
1593 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1594 in AC_CONFIG_FILES invocation.
1595 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1596 new-style config.status invocation.
1597
405feb71
TV
15982019-10-17 Tom de Vries <tdevries@suse.de>
1599
1600 * arm-nbsd-nat.c: Fix typos in comments.
1601 * arm-tdep.c: Same.
1602 * darwin-nat-info.c: Same.
1603 * dwarf2read.c: Same.
1604 * elfread.c: Same.
1605 * event-top.c: Same.
1606 * findvar.c: Same.
1607 * gdbtypes.c: Same.
1608 * hppa-tdep.c: Same.
1609 * i386-tdep.c: Same.
1610 * jit.c: Same.
1611 * main.c: Same.
1612 * mdebugread.c: Same.
1613 * moxie-tdep.c: Same.
1614 * nto-procfs.c: Same.
1615 * osabi.c: Same.
1616 * ppc-linux-tdep.c: Same.
1617 * remote.c: Same.
1618 * riscv-tdep.c: Same.
1619 * s390-tdep.c: Same.
1620 * sh-tdep.c: Same.
1621 * sparc-linux-tdep.c: Same.
1622 * sparc-nat.c: Same.
1623 * stack.c: Same.
1624 * target-descriptions.c: Same.
1625 * top.c: Same.
1626 * varobj.c: Same.
1627
befcd486
TT
16282019-10-16 Tom Tromey <tom@tromey.com>
1629
1630 * objfiles.h (struct objfile) <original_name>: Now const.
1631
17bfe554
CB
16322019-10-16 Christian Biesinger <cbiesinger@google.com>
1633
1634 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1635 pass on to sigsetjmp's second argument.
1636 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1637
950b7495
KS
16382019-10-16 Keith Seitz <keiths@redhat.com>
1639
1640 PR gdb/23567
1641 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1642 sections whose size is greater than the file size.
1643
ff371ec9
JW
16442019-10-16 Jim Wilson <jimw@sifive.com>
1645
1646 * riscv-tdep.c (riscv_gcc_target_options): New.
1647 (riscv_gnu_triplet_regexp): New.
1648 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1649 set_gdbarch_gnu_triplet_regexp.
1650
fec4e896
CB
16512019-10-16 Christian Biesinger <cbiesinger@google.com>
1652
1653 * Makefile.in: Add xml-builtin.h.
1654 * features/feature_to_c.sh: Add an include for xml-builtin.h
1655 to ensure that the compiler checks that the types match.
1656 * xml-builtin.h: New file.
1657 * xml-support.c (fetch_xml_builtin): Add missing const.
1658 * xml-support.h: Remove declaration of xml_builtins.
1659
d10eccaa
TV
16602019-10-16 Tom de Vries <tdevries@suse.de>
1661
1662 PR tdep/25096
1663 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1664 (amd64_classify_aggregate): ... here.
1665 (amd64_classify_aggregate_field): Handled fiels of nested structs
1666 recursively.
1667
745ff14e
TV
16682019-10-16 Tom de Vries <tdevries@suse.de>
1669
1670 PR tdep/24104
1671 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1672 that handles 'theclass'.
1673
791b7405
AB
16742019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1675
1676 * linespec.c (decode_digits_ordinary): Update comment.
1677 * make-target-delegates: No longer need to handle VEC case.
1678 * memrange.c (normalize_mem_ranges): Update comment.
1679 * namespace.c (add_using_directive): Update comment.
1680 * objc-lang.c (uniquify_strings): Update comment.
1681 * ppc-linux-nat.c (struct thread_points): Update comment.
1682 * probe.h (find_probes_in_objfile): Update comment.
1683 * target.h (enum flash_preserve_mode): Update comment.
1684 * varobj.c (varobj_restrict_range): Update comment.
1685 * varobj.h (varobj_list_children): Update comment.
1686
0dc32745
AB
16872019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1688
1689 * Makefile.in: Remove references to vec.h and vec.c.
1690 * aarch64-tdep.c: No longer include vec.h.
1691 * ada-lang.c: Likewise.
1692 * ada-lang.h: Likewise.
1693 * arm-tdep.c: Likewise.
1694 * ax.h: Likewise.
1695 * breakpoint.h: Likewise.
1696 * charset.c: Likewise.
1697 * cp-support.h: Likewise.
1698 * dtrace-probe.c: Likewise.
1699 * dwarf2read.c: Likewise.
1700 * extension.h: Likewise.
1701 * gdb_bfd.c: Likewise.
1702 * gdbsupport/gdb_vecs.h: Likewise.
1703 * gdbsupport/vec.c: Remove.
1704 * gdbsupport/vec.h: Remove.
1705 * gdbthread.h: Likewise.
1706 * guile/scm-type.c: Likewise.
1707 * inline-frame.c: Likewise.
1708 * machoread.c: Likewise.
1709 * memattr.c: Likewise.
1710 * memrange.h: Likewise.
1711 * namespace.h: Likewise.
1712 * nat/linux-btrace.h: Likewise.
1713 * osdata.c: Likewise.
1714 * parser-defs.h: Likewise.
1715 * progspace.h: Likewise.
1716 * python/py-type.c: Likewise.
1717 * record-btrace.c: Likewise.
1718 * rust-exp.y: Likewise.
1719 * solib-target.c: Likewise.
1720 * stap-probe.c: Likewise.
1721 * target-descriptions.c: Likewise.
1722 * target-memory.c: Likewise.
1723 * target.h: Likewise.
1724 * varobj.c: Likewise.
1725 * varobj.h: Likewise.
1726 * xml-support.h: Likewise.
1727
ae640021
AB
17282019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1729
1730 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1731 Update for new std::vector based implementation.
1732 (process_psymtab_comp_unit_reader): Likewise.
1733 (scan_partial_symbols): Likewise.
1734 (recursively_compute_inclusions): Likewise.
1735 (compute_compunit_symtab_includes): Likewise.
1736 (process_imported_unit_die): Likewise.
1737 (queue_and_load_dwo_tu): Likewise.
1738 (follow_die_sig_1): Likewise.
1739 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1740 (typedef dwarf2_per_cu_ptr): Remove.
1741 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1742 function.
1743 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1744 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1745 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1746 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1747 std::vector.
1748
55dfc88f
TT
17492019-10-15 Tom Tromey <tromey@adacore.com>
1750
1751 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1752 TID.
1753
96b49c5e
TT
17542019-10-15 Tom Tromey <tromey@adacore.com>
1755
1756 * windows-nat.c (windows_nat_target::fetch_registers)
1757 (windows_nat_target::store_registers): Rename "pid" to "tid".
1758
953cff56
TT
17592019-10-15 Tom Tromey <tromey@adacore.com>
1760
1761 * gdbarch.h, gdbarch.c: Rebuild.
1762 * gdbarch.sh (gcc_target_options): Change return type to
1763 std::string.
1764 * compile/compile.c (get_args): Update.
1765 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1766 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1767 std::string.
1768 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1769 std::string.
1770 * arch-utils.c (default_gcc_target_options): Return std::string.
1771 * arch-utils.h (default_gcc_target_options): Return std::string.
1772 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1773
81e6b8eb
CB
17742019-10-15 Christian Biesinger <cbiesinger@google.com>
1775
1776 * breakpoint.c (breakpoint_chain): Make static.
1777 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1778 of accessing breakpoint_chain.
1779
95da600f
CB
17802019-10-15 Christian Biesinger <cbiesinger@google.com>
1781
1782 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1783 to a gdb::function_view and return value to bool.
1784 * breakpoint.h (iterate_over_breakpoints): Likewise.
1785 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1786 (pop_dummy_frame): Update.
1787 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1788 (gdbscm_breakpoints): Update.
1789 * python/py-breakpoint.c (build_bp_list): Update.
1790 (gdbpy_breakpoints): Update.
1791 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1792 Update.
1793 (bpfinishpy_handle_stop): Update.
1794 (bpfinishpy_handle_exit): Update.
1795 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1796 (svr4_update_solib_event_breakpoints): Update.
1797
ba18312d
AA
17982019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1799
1800 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1801 when unwrapping single-field structs.
1802
6acc1a0b
SM
18032019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1804
1805 * dwarf2read.c: Remove includes.
1806
284782de
SM
18072019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1808
1809 * ui-out.c (ui_out::call_do_message): Silence
1810 -Wformat-nonliteral warning.
1811
073bbbb0
SM
18122019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1813
1814 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1815 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1816 include: readline/tilde.h.
1817
7b9a15e1
CB
18182019-10-12 Christian Biesinger <cbiesinger@google.com>
1819
1820 * remote.c (remote_target::get_trace_status): Remove declaration of
1821 trace_regblock_size.
1822
cc8dee1f
CB
18232019-10-12 Christian Biesinger <cbiesinger@google.com>
1824
1825 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1826 (show_user): Remove declaration of cmdlist.
1827 * cli/cli-cmds.h (max_user_call_depth): Declare.
1828 * cli/cli-script.c (execute_user_command): Remove declaration
1829 of max_user_call_depth.
1830
a83d4ef6
JW
18312019-10-11 Jim Wilson <jimw@sifive.com>
1832
5f93c5a6
JW
1833 * gdbsupport/print-utils.h (pulongest): Fix comment.
1834 (plongest): Likewise.
1835 (phex): Add missing comment, mention leading zeros.
1836 (phex_nz): Add mention of no leading zeros to comment.
1837
a83d4ef6
JW
1838 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1839 plongest instead of unsigned long long cast.
1840
26344e0c
CB
18412019-10-10 Christian Biesinger <cbiesinger@google.com>
1842
1843 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1844 for external_editor_command and gdbtk_test.
1845
c2c440a9
CB
18462019-10-10 Christian Biesinger <cbiesinger@google.com>
1847
1848 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1849 * varobj.c (varobjdebug): Move comment to...
1850 * varobj.h (varobjdebug): ...here, and declare.
1851
a31bff9d
TT
18522019-10-09 Tom Tromey <tom@tromey.com>
1853
1854 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1855 erase_data_content.
1856
7523da63
TT
18572019-10-09 Tom Tromey <tom@tromey.com>
1858
1859 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1860 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1861 * tui/tui-command.c (tui_cmd_window::resize)
1862 (tui_refresh_cmd_win): Update.
1863 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1864 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1865 * tui/tui-data.c (~tui_gen_win_info): Remove.
1866 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1867 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1868 (tui_redisplay_readline, tui_mld_flush)
1869 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1870 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1871 (tui_data_window::erase_data_content)
1872 (tui_data_item_window::rerender)
1873 (tui_data_item_window::refresh_window): Update.
1874 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1875 (box_win, tui_gen_win_info::make_window)
1876 (tui_gen_win_info::make_visible): Update.
1877 (tui_delete_win): Remove.
1878 * tui/tui-winsource.c
1879 (tui_source_window_base::do_erase_source_content): Update.
1880 (tui_show_source_line, tui_source_window_base::update_tab_width)
1881 (tui_source_window_base::update_exec_info): Update.
1882 * tui/tui-data.h (struct curses_deleter): New.
1883 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1884 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1885
a7798e7f
TT
18862019-10-09 Tom Tromey <tom@tromey.com>
1887
1888 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1889
5c45899e
TT
18902019-10-09 Tom Tromey <tom@tromey.com>
1891
1892 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
1893 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
1894
6d7fd9aa
TT
18952019-10-09 Tom Tromey <tom@tromey.com>
1896
1897 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
1898 window height directly.
1899 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
1900 declare.
1901 * tui/tui-layout.c (tui_default_win_height): Remove.
1902 (tui_default_win_viewport_height): Remove.
1903
d2dd1084
TT
19042019-10-09 Tom Tromey <tom@tromey.com>
1905
1906 * tui/tui.h: Remove comments.
1907
cff32449
TV
19082019-10-09 Tom de Vries <tdevries@suse.de>
1909
1910 * python/lib/gdb/printer/bound_registers.py: Use
1911 '^builtin_type_bound128' as regexp argument for
1912 add_builtin_pretty_printer.
1913
6a25e8a2
CB
19142019-10-09 Christian Biesinger <cbiesinger@google.com>
1915
1916 * guile/guile.c (guile_extension_script_ops): Remove forward
1917 declaration and mark as static.
1918 (guile_script_ops): Likewise.
1919 (extension_language_guile): Move further down in the file so
1920 it can reference the definitions for guile_{extension_,}script_ops.
1921
6d9d6da4
AA
19222019-10-09 Andreas Arnez <arnez@linux.ibm.com>
1923
1924 * s390-tdep.c (390_process_record): Handle new arch13 instructions
1925 except SORTL, DFLTCC, and KDSA.
1926
3abea05d
TT
19272019-10-08 Tom Tromey <tromey@adacore.com>
1928
1929 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
1930 (struct safe_symbol_file_add_args): Remove.
1931
dde996e2
TT
19322019-10-08 Tom Tromey <tromey@adacore.com>
1933
1934 * windows-nat.c: Don't include buildsym-legacy.h.
1935
cd6fdaa1
TT
19362019-10-08 Tom Tromey <tromey@adacore.com>
1937
1938 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
1939
79bb1944
CB
19402019-10-08 Christian Biesinger <cbiesinger@google.com>
1941
1942 * gdbtypes.c (overload_debug): Move comment to header.
1943 * gdbtypes.h (overload_debug): Declare.
1944 * valops.c: Remove declaration of overload_debug, instead
1945 include gdbtypes.h.
1946
34916edc
CB
19472019-10-08 Christian Biesinger <cbiesinger@google.com>
1948
1949 * language.c (show_language_command): Pass lang_frame_mismatch_warn
1950 through _().
1951 (lang_frame_mismatch_warn): Make const, mark with N_(), and
1952 move comment...
1953 * language.h (lang_frame_mismatch_warn): ... here. Also add
1954 declaration.
1955 * top.c (lang_frame_mismatch_warn): Remove declaration.
1956 (check_frame_language_change): Pass lang_frame_mismatch_warn
1957 through _().
1958
bad5c026
CB
19592019-10-07 Christian Biesinger <cbiesinger@google.com>
1960
1961 * c-lang.h (vtbl_ptr_name): Declare.
1962 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
1963 it from the header.
1964 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
1965
51f1fdc3
CB
19662019-10-07 Christian Biesinger <cbiesinger@google.com>
1967
1968 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
1969 gdb_static_assert.
1970
30d1f018
WP
19712019-10-07 Weimin Pan <weimin.pan@oracle.com>
1972
606813d5
WP
1973 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1974 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
1975 * ctfread.c: New file.
1976 * ctfread.h: New file.
1977 * elfread.c: Include ctfread.h.
1978 (struct elfinfo text_p): New member ctfsect.
1979 (elf_locate_sections): Mark CTF section.
1980 (elf_symfile_read): Call elfctf_build_psymtabs.
1981 * Makefile.in (LIBCTF): Add.
1982 (CLIBS): Use it.
1983 (CDEPS): Likewise.
1984 (DIST): Add ctfread.c.
606813d5
WP
1985
19862019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1987
1988 * ctfread.c (struct nextfield): Renamed to ...
1989 (struct ctf_nextfield): ... this.
1990 (struct field_info): Renamed to ...
1991 (strut ctf_field_info): ... this.
1992 (attach_fields_to_type): Update for renamed structures.
1993 (ctf_add_member_cb): Likewise.
1994 (ctf_add_enum_member_cb): Likewise.
1995 (process_struct_members): Likewise.
1996 (process_enum_type): Likewise.
30d1f018 1997
518fe38c
WP
19982019-10-07 Weimin Pan <weimin.pan@oracle.com>
1999
2000 * tracectf.h: Rename, was ctf.h.
2001 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2002 * tracefile.c: Likewise.
2003 * tracepoint.c: Remove unused include ctf.h.
2004 * mi/mi-main.c: Likewise.
2005 * Makefile.in Replace ctf.c with tracectf.c.
2006
225f296a
JB
20072019-10-06 Joel Brobecker <brobecker@adacore.com>
2008
2009 * version.in: Change version number to "9.0.50.DATE-git".
2010
77c2dba3
TT
20112019-10-03 Tom Tromey <tom@tromey.com>
2012
2013 PR rust/24976:
2014 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2015
179aed7f
AB
20162019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2017
2018 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2019 cp_search_name_hash.
2020 * NEWS: Add entry about nested function support.
2021
0a4b0913
AB
20222019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2023 Andrew Burgess <andrew.burgess@embecosm.com>
2024
2025 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2026 for nested static variables when searchin VAR_DOMAIN.
2027 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2028 global scope, update comment.
2029 (add_partial_subprogram): Call add_partial_subprogram recursively
2030 for nested subroutines when processinng Fortran.
2031 (load_partial_dies): Process the child entities of a subprogram
2032 when processing Fortran.
2033 (partial_die_parent_scope): Handle building scope
2034 for Fortran nested functions.
2035 (process_die): Record that nested functions have a scope.
2036 (new_symbol): Always record Fortran subprograms on the global
2037 symbol list.
2038 (determine_prefix): How to build the prefix for Fortran
2039 subprograms.
2040
d8c06f22
AB
20412019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2042
2043 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2044 have just sent the thread a SIGSTOP and are waiting for it to
2045 arrive.
2046
a8b3b8e9
AB
20472019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2048
2049 * btrace.c (btrace_add_pc): Remove whitespace before the template
2050 parameter in 'std::vector <...>'.
2051 (parse_xml_btrace_block): Likewise.
2052 (btrace_maint_decode_pt): Likewise.
2053 (btrace_maint_update_packets): Likewise.
2054 (btrace_maint_print_packets): Likewise.
2055 * btrace.h (struct btrace_maint_info): Likewise.
2056 * dwarf2read.c (struct type_unit_group): Likewise.
2057 (build_type_psymtabs_reader): Likewise.
2058 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2059 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2060 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2061
4d825eab
TV
20622019-10-03 Tom de Vries <tdevries@suse.de>
2063
2064 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2065 the first line of the help text for set/show style metadata.
2066
80fd2826
TT
20672019-10-02 Tom Tromey <tromey@adacore.com>
2068
2069 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2070 * gdbsupport/common-inferior.c: New file.
2071 * infcmd.c (startup_with_shell): Don't define.
2072 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2073 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2074 * inferior.h (startup_with_shell): Don't declare.
2075
70054538
CB
20762019-10-02 Christian Biesinger <cbiesinger@google.com>
2077
2078 * gdbsupport/gdb_assert.h: Include errors.h.
2079 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2080
37f6a7f4
TT
20812019-10-02 Tom Tromey <tromey@adacore.com>
2082
2083 * NEWS: Add $_ada_exception entry.
2084 * ada-lang.c (struct ada_catchpoint): Add constructor.
2085 <m_kind>: New member.
2086 (allocate_location_exception, re_set_exception): Remove
2087 "ex" parameter.
2088 (should_stop_exception): Compute $_ada_exception.
2089 (check_status_exception, print_it_exception)
2090 (print_one_exception, print_mention_exception): Remove
2091 "ex" parameter.
2092 (allocate_location_catch_exception, re_set_catch_exception)
2093 (check_status_exception, print_it_catch_exception)
2094 (print_one_catch_exception, print_mention_catch_exception)
2095 (print_recreate_catch_exception)
2096 (allocate_location_catch_exception_unhandled)
2097 (re_set_catch_exception_unhandled)
2098 (check_status_exception, print_it_catch_exception_unhandled)
2099 (print_one_catch_exception_unhandled)
2100 (print_mention_catch_exception_unhandled)
2101 (print_recreate_catch_exception_unhandled)
2102 (allocate_location_catch_assert, re_set_catch_assert)
2103 (check_status_assert, print_it_catch_assert)
2104 (print_one_catch_assert, print_mention_catch_assert)
2105 (print_recreate_catch_assert)
2106 (allocate_location_catch_handlers, re_set_catch_handlers)
2107 (check_status_handlers, print_it_catch_handlers)
2108 (print_one_catch_handlers, print_mention_catch_handlers)
2109 (print_recreate_catch_handlers): Remove.
2110 (create_ada_exception_catchpoint): Update.
2111 (initialize_ada_catchpoint_ops): Update.
2112
fccf9de1
TT
21132019-10-02 Tom Tromey <tromey@adacore.com>
2114
2115 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2116 (create_excep_cond_exprs): Simplify exception string computation.
2117 (ada_exception_catchpoint_cond_string): Likewise.
2118
4b610737
TT
21192019-10-02 Tom Tromey <tromey@adacore.com>
2120
2121 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2122 * ada-lang.c (lesseq_defined_than): Handle
2123 LOC_STATIC.
2124 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2125 parameter.
2126 (dwarf2_has_info): Likewise.
2127 (new_symbol): Set maybe_copied on symbol when
2128 appropriate.
2129 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2130 parameter.
2131 <can_copy>: New member.
2132 * elfread.c (record_minimal_symbol): Set maybe_copied
2133 on symbol when appropriate.
2134 (elf_symfile_read): Update call to dwarf2_has_info.
2135 * minsyms.c (lookup_minimal_symbol_linkage): New
2136 function.
2137 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2138 * symtab.c (get_symbol_address, get_msymbol_address):
2139 New functions.
2140 * symtab.h (get_symbol_address, get_msymbol_address):
2141 Declare.
2142 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2143 maybe_copied.
2144 (struct symbol, struct minimal_symbol) <maybe_copied>:
2145 New member.
2146
1dd58850
TT
21472019-10-02 Tom Tromey <tromey@adacore.com>
2148
2149 * source.c (struct current_source_location): New.
2150 (current_source_key): New global.
2151 (current_source_symtab, current_source_line)
2152 (current_source_pspace): Remove.
2153 (get_source_location): New function.
2154 (get_current_source_symtab_and_line)
2155 (set_default_source_symtab_and_line)
2156 (set_current_source_symtab_and_line)
2157 (clear_current_source_symtab_and_line, select_source_symtab)
2158 (info_source_command, print_source_lines_base)
2159 (info_line_command, search_command_helper, _initialize_source):
2160 Update.
2161
5c281dbb
TT
21622019-10-02 Tom Tromey <tromey@adacore.com>
2163
2164 * source.c (select_source_symtab): Don't call
2165 decode_line_with_current_source.
2166
d3d32391
AB
21672019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2168
2169 * symtab.c (lookup_global_symbol): Search global block.
2170
38583298
TT
21712019-10-02 Tom Tromey <tromey@adacore.com>
2172
2173 * coffread.c (process_coff_symbol): Update.
2174 * dwarf2read.c (var_decode_location, new_symbol): Update.
2175 * mdebugread.c (parse_symbol): Update.
2176 * objfiles.c (relocate_one_symbol): Update.
2177 * stabsread.c (define_symbol, fix_common_block)
2178 (scan_file_globals): Update.
2179 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2180 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2181 * xcoffread.c (process_xcoff_symbol): Update.
2182
9344c18f
AA
21832019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2184
2185 * MAINTAINERS: Update my email address.
2186
df07e2c7
AB
21872019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2188
2189 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2190 std::vector.
2191 (build_type_psymtabs_reader): Update for std::vector.
2192 (build_type_psymtab_dependencies): Likewise.
2193 * dwarf2read.h: Remove use of DEF_VEC_P.
2194 (typedef sig_type_ptr): Delete.
2195
554ac434
AB
21962019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2197
2198 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2199 to std::vector.
2200 (btrace_maint_decode_pt): Likewise, and move allocation of the
2201 vector outside of the loop.
2202 (btrace_maint_update_packets): Update to handle change from VEC to
2203 std::vector.
2204 (btrace_maint_print_packets): Likewise.
2205 (maint_info_btrace_cmd): Likewise.
2206 * btrace.h: Remove use of DEF_VEC_O.
2207 (typedef btrace_pt_packet_s): Delete.
2208 (struct btrace_maint_info) <packets>: Change fromm VEC to
2209 std::vector.
2210 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2211
46f29a9a
AB
22122019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2213
2214 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2215 make accesses into the vector constant references.
2216 (btrace_add_pc): Update for std::vector.
2217 (btrace_stitch_bts): Likewise.
2218 (parse_xml_btrace_block): Likewise.
2219 (btrace_maint_update_packets): Likewise.
2220 (btrace_maint_print_packets): Likewise.
2221 (maint_info_btrace_cmd): Likewise.
2222 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2223 std::vector.
2224 (btrace_data::empty): Likewise.
2225 (btrace_data_append): Likewise.
2226 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2227 (typedef btrace_block_s): Delete.
2228 (struct btrace_block): Add constructor.
2229 (struct btrace_data_bts) <blocks>: Change to std::vector.
2230 * nat/linux-btrace.c (perf_event_read_bts): Update for
2231 std::vector.
2232 (linux_read_bts): Likewise.
2233
d770d56f
TT
22342019-10-01 Tom Tromey <tom@tromey.com>
2235
2236 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2237
9d636d67
TT
22382019-10-01 Tom Tromey <tom@tromey.com>
2239
2240 * stack.c (print_frame, info_frame_command_core): Use
2241 styled_string.
2242 * linux-thread-db.c (try_thread_db_load_1)
2243 (try_thread_db_load_from_pdir_1): Use styled_string.
2244 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2245 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2246 (maybe_print_unsupported_script_warning)
2247 (maybe_print_script_not_found_warning): Use styled_string.
2248 * ada-lang.c (user_select_syms): Use styled_string.
2249
7f6aba03
TT
22502019-10-01 Tom Tromey <tom@tromey.com>
2251
2252 * p-lang.c (pascal_printstr): Use metadata style.
2253 * value.c (show_convenience): Use metadata style.
2254 * valprint.c (valprint_check_validity, val_print_optimized_out)
2255 (val_print_not_saved, val_print_unavailable)
2256 (val_print_invalid_address, generic_val_print, val_print)
2257 (value_check_printable, val_print_array_elements): Use metadata
2258 style.
2259 * ui-out.h (class ui_out) <field_fmt>: New overload.
2260 <do_field_fmt>: Add style parameter.
2261 * ui-out.c (ui_out::field_fmt): New overload.
2262 * typeprint.c (type_print_unknown_return_type)
2263 (val_print_not_allocated, val_print_not_associated): Use metadata
2264 style.
2265 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2266 parameter.
2267 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2268 * tracepoint.c (tvariables_info_1): Use metadata style.
2269 * stack.c (print_frame_arg, print_frame_info, print_frame)
2270 (info_frame_command_core): Use metadata style.
2271 * skip.c (info_skip_command): Use metadata style.
2272 * rust-lang.c (rust_print_enum): Use metadata style.
2273 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2274 metadata style.
2275 * python/py-framefilter.c (py_print_single_arg): Use metadata
2276 style.
2277 * printcmd.c (do_one_display, print_variable_and_value): Use
2278 metadata style.
2279 * p-valprint.c (pascal_val_print)
2280 (pascal_object_print_value_fields): Use metadata style.
2281 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2282 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2283 parameter.
2284 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2285 * m2-valprint.c (m2_print_long_set): Use metadata style.
2286 * m2-typeprint.c (m2_print_type): Use metadata style.
2287 * infcmd.c (print_return_value_1): Use metadata style.
2288 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2289 * f-valprint.c (info_common_command_for_block): Use metadata
2290 style.
2291 * f-typeprint.c (f_type_print_base): Use metadata style.
2292 * expprint.c (print_subexp_standard): Use metadata style.
2293 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2294 * cli/cli-style.h (class cli_style_option): Add constructor.
2295 (metadata_style): Declare.
2296 * cli/cli-style.c (metadata_style): New global.
2297 (_initialize_cli_style): Register metadata style.
2298 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2299 parameter.
2300 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2301 * c-typeprint.c (c_type_print_base_struct_union)
2302 (c_type_print_base_1): Use metadata style.
2303 * breakpoint.c (watchpoint_value_print)
2304 (print_one_breakpoint_location): Use metadata style.
2305 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2306 style.
2307 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2308 style.
2309 * ada-valprint.c (val_print_packed_array_elements, printstr)
2310 (print_field_values, ada_val_print_ref, ada_val_print): Use
2311 metadata style.
2312 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2313 style.
2314 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2315 style.
2316 * ada-lang.c (user_select_syms): Use metadata style.
2317
14309bb6
TT
23182019-10-01 Tom Tromey <tom@tromey.com>
2319
2320 * cli/cli-cmds.c (pwd_command): Style output.
2321
6a831f06
PA
23222019-10-01 Pedro Alves <palves@redhat.com>
2323 Tom Tromey <tom@tromey.com>
2324
2325 * symtab.c (print_symbol_info): Use %ps.
2326 (print_msymbol_info): Use %ps.
2327 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2328 * printcmd.c (print_variable_and_value): Use %ps.
2329 * macrocmd.c (show_pp_source_pos): Use %ps.
2330 * infrun.c (print_exited_reason): Use ui_out::message.
2331 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2332 (describe_other_breakpoints): Use ui_out::message and new
2333 formats.
2334 (say_where): Use new formats.
2335 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2336 and new formats.
2337
2a3c1174
PA
23382019-10-01 Pedro Alves <palves@redhat.com>
2339 Tom Tromey <tom@tromey.com>
2340
2341 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2342 (test_gdb_formats): New function.
2343 (run_tests): Call it.
2344 (test_format_specifier): Update.
2345 * utils.h (fputs_filtered): Update comment.
2346 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2347 (fputs_styled_unfiltered): Declare.
2348 * utils.c (fputs_styled_unfiltered): New function.
2349 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2350 (vfprintf_filtered): Update.
2351 (vfprintf_unfiltered, vprintf_filtered): Update.
2352 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2353 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2354 disallow_ui_out_field>: New constants.
2355 (enum class field_kind): New.
2356 (struct base_field_s, struct signed_field_s): New.
2357 (signed_field): New function.
2358 (struct string_field_s): New.
2359 (string_field): New function.
2360 (struct styled_string_s): New.
2361 (styled_string): New function.
2362 (class ui_out) <message>: Add comment.
2363 <vmessage, call_do_message>: New methods.
2364 <do_message>: Add style parameter.
2365 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2366 methods.
2367 (ui_out::message): Rewrite.
2368 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2369 parameter.
2370 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2371 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2372 gdb_extensions parameter.
2373 (class format_piece): Add parameter to constructor.
2374 (n_int_args): New field.
2375 * gdbsupport/format.c (format_pieces::format_pieces): Add
2376 gdb_extensions parameter. Handle '*'.
2377 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2378 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2379 vfprintf_styled_no_gdbfmt.
2380 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2381 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2382 unfiltered output.
2383 * ui-style.h (struct ui_file_style) <ptr>: New method.
2384
0dfe5bfb
TT
23852019-10-01 Tom Tromey <tom@tromey.com>
2386
2387 * unittests/format_pieces-selftests.c: Update. Add final format.
2388 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2389 empty literal pieces.
2390
e43b10e1
TT
23912019-10-01 Tom Tromey <tom@tromey.com>
2392
2393 * ui-out.h (enum class ui_out_style_kind): Remove.
2394 (class ui_out) <field_string, field_stsream, do_field_string>:
2395 Change type of "style".
2396 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2397 (ui_out::field_string): Update.
2398 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2399 of "style".
2400 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2401 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2402 * stack.c (print_frame_arg, print_frame_info, print_frame):
2403 Update.
2404 * source.c (print_source_lines_base): Update.
2405 * solib.c (info_sharedlibrary_command): Update.
2406 * skip.c (info_skip_command): Update.
2407 * record-btrace.c (btrace_call_history_src_line)
2408 (btrace_call_history): Update.
2409 * python/py-framefilter.c (py_print_frame): Update.
2410 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2411 "style".
2412 * mi/mi-out.c (mi_ui_out::do_table_header)
2413 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2414 (mi_ui_out::do_field_string): Update.
2415 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2416 Update.
2417 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2418 "style".
2419 * cli-out.c (cli_ui_out::do_table_header)
2420 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2421 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2422 (cli_ui_out::do_field_fmt): Update.
2423 * breakpoint.c (print_breakpoint_location): Update.
2424 (update_static_tracepoint): Update.
2425
cd7c32c3
PW
24262019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2427
2428 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2429 conversion of gdb_datadir.
2430 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2431 remove not needed c_str ().
2432
8fe0f950
AT
24332019-09-30 Ali Tamur <tamur@google.com>
2434
2435 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2436 (dwarf2_string_attr): Likewise.
2437
5f48f8f3
AT
24382019-09-30 Ali Tamur <tamur@google.com>
2439
2440 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2441 (process_full_type_unit): Likewise.
2442 (dump_die_shallow): Likewise.
2443 (cu_debug_loc_section): Likewise.
2444
6fb08628
CB
24452019-09-28 Christian Biesinger <cbiesinger@google.com>
2446
2447 * minsyms.c (compare_minimal_symbols): Rename to...
2448 (minimal_symbol_is_less_than): ...this, and adjust to STL
2449 conventions (return bool, take arguments as references)
2450 (minimal_symbol_reader::install): Call std::sort instead
2451 of qsort.
2452
c7ee338a
CB
24532019-09-29 Christian Biesinger <cbiesinger@google.com>
2454
2455 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2456 hash and why.
2457 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2458 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2459
703a86c2
SM
24602019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2461
2462 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2463 * psympriv.h (add_psymbol_to_list): Move comment here and update
2464 it.
2465
0df0352a
TV
24662019-09-29 Tom de Vries <tdevries@suse.de>
2467
2468 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2469 Use $tmpdir/$(basename "$output_file").dwz instead of
2470 "${output_file}.dwz".
2471
ad75efa6
SM
24722019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2473
2474 PR gdb/25045
2475 * hppa-linux-nat.c: Include gdbarch.h.
2476
ececd218
CB
24772019-09-26 Christian Biesinger <cbiesinger@google.com>
2478
2479 * blockframe.c (find_pc_partial_function): Change return type to bool.
2480 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2481 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2482 (stub_gnu_ifunc_resolve_name): Likewise.
2483 * symtab.c (compare_filenames_for_search): Likewise.
2484 (compare_glob_filenames_for_search): Likewise.
2485 (matching_obj_sections): Likewise.
2486 (symbol_matches_domain): Likewise.
2487 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2488 (find_line_pc): Change return type to bool.
2489 (find_line_pc_range): Likewise.
2490 (producer_is_realview): Likewise.
2491 * symtab.h (symbol_matches_domain): Likewise.
2492 (find_pc_partial_function): Likewise.
2493 (find_pc_line_pc_range): Likewise.
2494 (in_gnu_ifunc_stub): Likewise.
2495 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2496 (find_line_pc): Likewise.
2497 (find_line_pc_range): Likewise.
2498 (matching_obj_sections): Likewise.
2499 (find_line_symtab): Change out parameter to bool.
2500 (producer_is_realview): Change return type to bool.
2501 (compare_filenames_for_search): Likewise.
2502 (compare_glob_filenames_for_search): Likewise.
2503
27a900b8
TT
25042019-09-26 Tom Tromey <tom@tromey.com>
2505
2506 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2507 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2508 * gdb_usleep.h: Remove.
2509 * gdb_usleep.c: Remove.
2510 * utils.c: Don't include gdb_usleep.h.
2511
5d63b30a
TT
25122019-09-26 Tom Tromey <tromey@adacore.com>
2513
2514 * python/py-type.c (type_to_type_object): Call check_typedef
2515 for stub types.
2516
12904d37
TT
25172019-09-26 Tom Tromey <tom@tromey.com>
2518
2519 * utils.h (initialize_utils): Don't declare.
2520 * top.c (gdb_init): Don't call initialize_utils.
2521 * utils.c (initialize_utils): Remove. Move contents...
2522 (_initialize_utils): ... here.
2523
858f25f0
TT
25242019-09-25 Tom Tromey <tom@tromey.com>
2525
2526 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2527 * utils.h (make_hex_string): Don't declare.
2528 * utils.c (make_hex_string): Remove.
2529
3d435220
TV
25302019-09-24 Tom de Vries <tdevries@suse.de>
2531
2532 PR gdb/23815
2533 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2534 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2535
ddd44b70
DD
25362019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2537
2538 * NEWS: Mention new simulator port for PRU.
2539
f945dedf
CB
25402019-09-23 Christian Biesinger <cbiesinger@google.com>
2541
2542 * ada-exp.y (write_object_remaining): Update.
2543 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2544 and eliminate the static buffer.
2545 (ada_decode_symbol): Update.
2546 (ada_la_decode): Update.
2547 (ada_sniff_from_mangled_name): Update.
2548 (is_valid_name_for_wild_match): Update.
2549 (ada_lookup_name_info::matches): Update and simplify.
2550 (name_matches_regex): Update.
2551 (ada_add_global_exceptions): Update.
2552 * ada-lang.h (ada_decode): Update signature.
2553 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2554 * dwarf-index-write.c (debug_names::insert): Update.
2555
7ab78ccb
SM
25562019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2557
2558 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2559 formatting.
2560
9252448b
SM
25612019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2562
2563 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2564 Change "nonzero" to "true" in documentation.
2565
626ca2c0
CB
25662019-09-20 Christian Biesinger <cbiesinger@google.com>
2567
2568 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2569 (_initialize_darwin_solib): Don't set
2570 darwin_so_ops.lookup_lib_global_symbol.
2571 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2572 set_gdbarch_iterate_over_objfiles_in_search_order.
2573 (elf_lookup_lib_symbol): Rename to...
2574 (svr4_iterate_over_objfiles_in_search_order): this, and update
2575 to iterate semantics.
2576 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2577 * solib.c (solib_global_lookup): Remove.
2578 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2579 (solib_global_lookup): Remove.
2580 * symtab.c (lookup_global_or_static_symbol): Remove call to
2581 solib_global_lookup.
2582
5a3a0d63
JB
25832019-09-20 Joel Brobecker <brobecker@adacore.com>
2584
2585 * NEWS: Move entries about default MI version now being
2586 version 3, and about the GDB/MI fix for multi-location
2587 breakpoints to the "since GDB 8.3" section.
2588
ffea1427
JB
25892019-09-20 Joel Brobecker <brobecker@adacore.com>
2590
2591 GDB 8.3.1 released.
2592
abf516c6
UW
25932019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2594
2595 * NEWS: Mention that Cell/B.E. debugging support was removed.
2596 * MAINTAINERS: Remove spu target.
2597
2598 * config/djgpp/fnchange.lst: Remove entries for removed files.
2599
2600 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2601 spu-multiarch.o, and spu-tdep.o.
2602 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2603 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2604 spu-multiarch.c, and spu-tdep.c.
2605 * spu-linux-nat.c: Remove file.
2606 * spu-multiarch.c: Remove file.
2607 * spu-tdep.c: Remove file.
2608 * spu-tdep.h: Remove file.
2609 * solib-spu.c: Remove file.
2610 * solib-spu.h: Remove file.
2611
2612 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2613 * configure.nat (spu-linux): Remove.
2614 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2615 solib-multiarch.o from gdb_target_obs.
2616 (spu*-*-*): Remove.
2617
2618 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2619 feature flag.
2620 (ppc_linux_no_features): Update.
2621 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2622 Cell/B.E. support.
2623 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2624 (tdesc_powerpc_cell64l): Likewise.
2625 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2626 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2627 Cell/B.E. support.
2628 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2629 Do not include "features/rs6000/powerpc-cell32l.c" or
2630 "features/rs6000/powerpc-cell64l.c".
2631 (ppc_linux_spu_section): Remove.
2632 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2633 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2634 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2635 (ppc_linux_spe_context_lookup): Remove.
2636 (ppc_linux_spe_context_inferior_created): Remove.
2637 (ppc_linux_spe_context_solib_loaded): Remove.
2638 (ppc_linux_spe_context_solib_unloaded): Remove.
2639 (ppc_linux_spe_context): Remove.
2640 (struct ppu2spu_cache): Remove.
2641 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2642 (struct ppu2spu_data): Remove.
2643 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2644 ppu2spu_unwind): Remove.
2645 (ppc_linux_init_abi): Remove Cell/B.E. support.
2646 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2647
2648 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2649 (rs6000/powerpc-cell64l-expedite): Likewise
2650 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2651 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2652 rs6000/powerpc-cell64l.xml.
2653 * features/rs6000/powerpc-cell32l.xml: Remove.
2654 * features/rs6000/powerpc-cell64l.xml: Likewise.
2655 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2656 * features/rs6000/powerpc-cell64l.c: Likewise.
2657 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2658 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2659 * regformats/reg-spu.dat: Remove.
2660
2661 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2662 * corelow.c (struct spuid_list): Remove.
2663 (add_to_spuid_list): Remove.
2664 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2665 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2666 (remote_protocol_features): Remove associated entries.
2667 (_initialize_remote): No longer initialize them.
2668 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2669 * linux-nat.c (SPUFS_MAGIC): Remove.
2670 (linux_proc_xfer_spu): Remove.
2671 (spu_enumerate_spu_ids): Remove.
2672 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2673 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2674 (linux_make_corefile_notes): No longer call it.
2675
2676 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2677 (cooked_write_test): Likewise.
2678
78e8cb91
TT
26792019-09-20 Tom Tromey <tom@tromey.com>
2680
2681 * NEWS: Mention case-sensitivity of TUI commands.
2682 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2683 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2684 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2685
f074b67e
TT
26862019-09-20 Tom Tromey <tom@tromey.com>
2687
2688 * tui/tui-source.c (tui_source_window::set_contents): Use
2689 make_unique_xstrdup.
2690 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2691 make_unique_xstrdup.
2692
63c4bf19
TT
26932019-09-20 Tom Tromey <tom@tromey.com>
2694
2695 * tui/tui-data.c: Remove separator comments.
2696 * tui/tui-layout.c: Remove separator comments.
2697 * tui/tui-win.c: Remove separator comments.
2698 * tui/tui-wingeneral.c: Remove separator comments.
2699
43df9b2f
TT
27002019-09-20 Tom Tromey <tom@tromey.com>
2701
2702 * tui/tui.h (strcat_to_buf): Don't declare.
2703 * tui/tui.c (strcat_to_buf): Remove.
2704
7226433c
TT
27052019-09-20 Tom Tromey <tom@tromey.com>
2706
2707 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2708 from "fullname".
2709 * tui/tui-source.c (tui_source_window::set_contents)
2710 (tui_source_window::location_matches_p)
2711 (tui_source_window::maybe_update): Update.
2712
80df3337
TT
27132019-09-20 Tom Tromey <tom@tromey.com>
2714
2715 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2716 Update.
2717 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2718 prefix.
2719 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2720 (tui_data_window::line_from_reg_element_no)
2721 (tui_data_window::first_reg_element_no_inline)
2722 (tui_data_window::show_registers)
2723 (tui_data_window::show_register_group)
2724 (tui_data_window::display_registers_from)
2725 (tui_data_window::display_registers_from_line)
2726 (tui_data_window::first_data_item_displayed)
2727 (tui_data_window::delete_data_content_windows)
2728 (tui_data_window::erase_data_content)
2729 (tui_data_window::do_scroll_vertical)
2730 (tui_data_window::refresh_window)
2731 (tui_data_window::check_register_values): Update.
2732
9923f347
TT
27332019-09-20 Tom Tromey <tom@tromey.com>
2734
2735 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2736 (struct tui_locator_window) <full_name, proc_name>: Now
2737 std::string.
2738 * tui/tui-stack.c (tui_locator_window::make_status_line)
2739 (tui_locator_window::set_locator_fullname)
2740 (tui_locator_window::set_locator_info): Update.
2741 * tui/tui-source.c (tui_source_window::set_contents)
2742 (tui_source_window::showing_source_p): Update.
2743
b76251ab
TT
27442019-09-20 Tom Tromey <tom@tromey.com>
2745
2746 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2747 Don't call tui_locator_win_info_ptr.
2748
0891be08
TT
27492019-09-20 Tom Tromey <tom@tromey.com>
2750
2751 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2752
1b935acf
TT
27532019-09-20 Tom Tromey <tom@tromey.com>
2754
2755 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2756 height for locator.
2757 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2758 * tui/tui-layout.c (show_source_disasm_command, show_data)
2759 (show_source_or_disasm_and_command): Use 1 as height for locator.
2760
9abd8a65
TT
27612019-09-20 Tom Tromey <tom@tromey.com>
2762
2763 * tui/tui.c (tui_enable): Update.
2764 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2765 Update.
2766 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2767 Update.
2768 * tui/tui-data.c (win_resized): Now bool.
2769 (tui_win_resized): Return bool.
2770 (tui_set_win_resized_to): Accept a bool.
2771
b5457826
TT
27722019-09-20 Tom Tromey <tom@tromey.com>
2773
2774 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2775 Change type of "refresh_values_only".
2776 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2777 type of "refresh_values_only".
2778
6b915f7d
TT
27792019-09-20 Tom Tromey <tom@tromey.com>
2780
2781 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2782 std::string.
2783 (tui_disassemble): Add "pos" parameter.
2784 (tui_disasm_window::set_contents): Simplify.
2785
2ad52f6f
TT
27862019-09-20 Tom Tromey <tom@tromey.com>
2787
2788 * tui/tui-winsource.h (struct tui_source_window_base)
2789 <show_source_content>: Now private.
2790 * tui/tui-winsource.c
2791 (tui_source_window_base::show_source_content): Don't handle empty
2792 content case.
2793
b3b1bde6
TT
27942019-09-20 Tom Tromey <tom@tromey.com>
2795
2796 * tui/tui-layout.c (show_source_disasm_command)
2797 (show_source_or_disasm_and_command): Don't call
2798 show_source_content.
2799
71a25ed2
TT
28002019-09-20 Tom Tromey <tom@tromey.com>
2801
2802 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2803 Declare.
2804 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2805 from tui_make_status_line.
2806 (tui_locator_window::rerender): Update.
2807
f8532154
TT
28082019-09-20 Tom Tromey <tom@tromey.com>
2809
2810 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2811 (tui_locator_window::rerender): Update.
2812
2d81b349
TT
28132019-09-20 Tom Tromey <tom@tromey.com>
2814
2815 * tui/tui-winsource.h (struct tui_source_window_base)
2816 <~tui_source_window_base>: Don't declare.
2817 <fullname>: Remove.
2818 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2819 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2820 member.
2821 * tui/tui-source.c (tui_source_window::set_contents): Update.
2822 (tui_source_window::location_matches_p)
2823 (tui_source_window::maybe_update): Update.
2824
f14bec58
TT
28252019-09-20 Tom Tromey <tom@tromey.com>
2826
2827 * tui/tui-winsource.h (~tui_source_element): Remove.
2828 (tui_source_element): Update.
2829 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2830 * tui/tui-winsource.c (tui_show_source_line): Update.
2831 * tui/tui-source.c (tui_source_window::set_contents): Update.
2832 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2833
78d5933a
TT
28342019-09-20 Tom Tromey <tom@tromey.com>
2835
2836 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2837 declare.
2838 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2839 tui_clear_source_windows_detail.
2840 * tui/tui-winsource.h (struct tui_source_window_base)
2841 <clear_detail>: Don't declare.
2842 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2843 Remove.
2844 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2845
d4207696
TT
28462019-09-20 Tom Tromey <tromey@adacore.com>
2847
2848 PR ada/24919:
2849 * block.c (contained_in): Fix final return value.
2850
00f93c44
AM
28512019-09-20 Alan Modra <amodra@gmail.com>
2852
2853 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2854 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2855 (read_indirect_string_from_dwz): Use bfd accessor.
2856 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2857 * machoread.c (macho_symfile_read_all_oso): Likewise.
2858 * solib.c (solib_bfd_open): Likewise.
2859
e4153ae6
CB
28602019-09-19 Christian Biesinger <cbiesinger@google.com>
2861
2862 * eval.c: Move declaration of overload_resolution to...
2863 * value.h: ...here.
2864
c7ae7675
CB
28652019-09-19 Christian Biesinger <cbiesinger@google.com>
2866
2867 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2868 * arm-linux-tdep.c: Likewise.
2869 * arm-nbsd-nat.c: Likewise.
2870 * arm-tdep.h: Declare arm_apcs_32.
2871 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2872
e86f08d2
CB
28732019-09-19 Christian Biesinger <cbiesinger@google.com>
2874
2875 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2876 * dwarf2read.h: Declare dwarf_always_disassemble.
2877
f64e2f40
TV
28782019-09-19 Tom de Vries <tdevries@suse.de>
2879
2880 PR gdb/25009
2881 * source-cache.c (source_cache::ensure): Catch exception thrown during
2882 construction of the highlighter.
2883
fd361982
AM
28842019-09-18 Alan Modra <amodra@gmail.com>
2885
2886 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2887 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2888 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2889 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2890 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2891 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2892 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
2893 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
2894 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
2895 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
2896 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
2897 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
2898 * solib-spu.c, * solib-svr4.c, * solib-target.c,
2899 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
2900 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
2901 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
2902 * mi/mi-interp.c: Update throughout for bfd section macro and
2903 function changes.
2904 * gcore (gcore_create_callback): Use bfd_set_section_lma.
2905 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
2906
11061048
TT
29072019-09-18 Tom Tromey <tom@tromey.com>
2908
2909 * NEWS: Add entry.
2910 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
2911 call rl_initialize.
2912 (tui_enable): Do not call rl_initialize.
2913
7a27b85f
CG
29142019-09-18 Christian Groessler <chris@groessler.org>
2915
2916 * alpha-linux-nat.c: Include gdbarch.h.
2917
f64eea3a
SM
29182019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2919
2920 * ui-file.c: Include cli/cli-style.h.
2921 (term_cli_styling): Remove cli_styling declaration.
2922
e6f7f6d1
AM
29232019-09-18 Alan Modra <amodra@gmail.com>
2924
2925 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
2926 to bfd_asymbol_section.
2927
1d38e9d1
AM
29282019-09-18 Alan Modra <amodra@gmail.com>
2929
2930 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
2931 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2932 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
2933
90d92a63
AM
29342019-09-18 Alan Modra <amodra@gmail.com>
2935
2936 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
2937 * spu-linux-nat.c (spu_bfd_open): Likewise.
2938
a3d181d2
CB
29392019-09-18 Christian Biesinger <cbiesinger@google.com>
2940
2941 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
2942 to bool to match definition in dwarf2read.c.
2943
491144b5
CB
29442019-09-17 Christian Biesinger <cbiesinger@google.com>
2945
2946 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
2947 (print_signatures): Likewise.
2948 (trust_pad_over_xvs): Likewise.
2949 * arch/aarch64-insn.c (aarch64_debug): Likewise.
2950 * arch/aarch64-insn.h (aarch64_debug): Likewise.
2951 * arm-linux-nat.c (arm_apcs_32): Likewise.
2952 * arm-linux-tdep.c (arm_apcs_32): Likewise.
2953 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
2954 * arm-tdep.c (arm_debug): Likewise.
2955 (arm_apcs_32): Likewise.
2956 * auto-load.c (debug_auto_load): Likewise.
2957 (auto_load_gdb_scripts): Likewise.
2958 (global_auto_load): Likewise.
2959 (auto_load_local_gdbinit): Likewise.
2960 (auto_load_local_gdbinit_loaded): Likewise.
2961 * auto-load.h (global_auto_load): Likewise.
2962 (auto_load_local_gdbinit): Likewise.
2963 (auto_load_local_gdbinit_loaded): Likewise.
2964 * breakpoint.c (disconnected_dprintf): Likewise.
2965 (breakpoint_proceeded): Likewise.
2966 (automatic_hardware_breakpoints): Likewise.
2967 (always_inserted_mode): Likewise.
2968 (target_exact_watchpoints): Likewise.
2969 (_initialize_breakpoint): Update.
2970 * breakpoint.h (target_exact_watchpoints): Change to bool.
2971 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
2972 * cli/cli-cmds.c (trace_commands): Likewise.
2973 * cli/cli-cmds.h (trace_commands): Likewise.
2974 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2975 to bool*.
2976 * cli/cli-logging.c (logging_overwrite): Change to bool.
2977 (logging_redirect): Likewise.
2978 (debug_redirect): Likewise.
2979 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2980 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2981 to bool.
2982 <boolean_option_def>: Update.
2983 (struct flag_option_def): Change default type of Context to bool
2984 from int.
2985 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2986 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2987 (get_setshow_command_value_string): Likewise.
2988 * cli/cli-style.c (cli_styling): Change to bool.
2989 (source_styling): Likewise.
2990 * cli/cli-style.h (source_styling): Likewise.
2991 (cli_styling): Likewise.
2992 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
2993 to bool.
2994 * command.h (var_types): Update comment.
2995 (add_setshow_boolean_cmd): Change int* var argument to bool*.
2996 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
2997 bool.
2998 (debug_compile_cplus_scopes): Likewise.
2999 * compile/compile-internal.h (compile_debug): Likewise.
3000 * compile/compile.c (compile_debug): Likewise.
3001 (struct compile_options) <raw>: Likewise.
3002 * cp-support.c (catch_demangler_crashes): Likewise.
3003 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3004 (usr_cmd_cris_dwarf2_cfi): Likewise.
3005 * csky-tdep.c (csky_debug): Likewise.
3006 * darwin-nat.c (enable_mach_exceptions): Likewise.
3007 * dcache.c (dcache_enabled_p): Likewise.
3008 * defs.h (info_verbose): Likewise.
3009 * demangle.c (demangle): Likewise.
3010 (asm_demangle): Likewise.
3011 * dwarf-index-cache.c (debug_index_cache): Likewise.
3012 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3013 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3014 * dwarf2read.c (check_physname): Likewise.
3015 (use_deprecated_index_sections): Likewise.
3016 (dwarf_always_disassemble): Likewise.
3017 * eval.c (overload_resolution): Likewise.
3018 * event-top.c (set_editing_cmd_var): Likewise.
3019 (exec_done_display_p): Likewise.
3020 * event-top.h (set_editing_cmd_var): Likewise.
3021 (exec_done_display_p): Likewise.
3022 * exec.c (write_files): Likewise.
3023 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3024 (debug_fbsd_nat): Likewise.
3025 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3026 Likewise.
3027 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3028 <backtrace_past_entry> Likewise.
3029 * gdb-demangle.h (demangle): Likewise.
3030 (asm_demangle): Likewise.
3031 * gdb_bfd.c (bfd_sharing): Likewise.
3032 * gdbcore.h (write_files): Likewise.
3033 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3034 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3035 * gdbthread.h (print_thread_events): Likewise.
3036 * gdbtypes.c (opaque_type_resolution): Likewise.
3037 (strict_type_checking): Likewise.
3038 * gnu-nat.c (gnu_debug_flag): Likewise.
3039 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3040 * guile/scm-param.c (pascm_variable): Add boolval.
3041 (add_setshow_generic): Update.
3042 (pascm_param_value): Update.
3043 (pascm_set_param_value_x): Update.
3044 * hppa-tdep.c (hppa_debug): Change to bool..
3045 * infcall.c (may_call_functions_p): Likewise.
3046 (coerce_float_to_double_p): Likewise.
3047 (unwind_on_signal_p): Likewise.
3048 (unwind_on_terminating_exception_p): Likewise.
3049 * infcmd.c (startup_with_shell): Likewise.
3050 * inferior.c (print_inferior_events): Likewise.
3051 * inferior.h (startup_with_shell): Likewise.
3052 (print_inferior_events): Likewise.
3053 * infrun.c (step_stop_if_no_debug): Likewise.
3054 (detach_fork): Likewise.
3055 (debug_displaced): Likewise.
3056 (disable_randomization): Likewise.
3057 (non_stop): Likewise.
3058 (non_stop_1): Likewise.
3059 (observer_mode): Likewise.
3060 (observer_mode_1): Likewise.
3061 (set_observer_mode): Update.
3062 (sched_multi): Change to bool.
3063 * infrun.h (debug_displaced): Likewise.
3064 (sched_multi): Likewise.
3065 (step_stop_if_no_debug): Likewise.
3066 (non_stop): Likewise.
3067 (disable_randomization): Likewise.
3068 * linux-tdep.c (use_coredump_filter): Likewise.
3069 (dump_excluded_mappings): Likewise.
3070 * linux-thread-db.c (auto_load_thread_db): Likewise.
3071 (check_thread_db_on_load): Likewise.
3072 * main.c (captured_main_1): Update.
3073 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3074 xx2_opt, boolean_opt>: Change to bool.
3075 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3076 * maint.c (maintenance_profile_p): Likewise.
3077 (per_command_time): Likewise.
3078 (per_command_space): Likewise.
3079 (per_command_symtab): Likewise.
3080 * memattr.c (inaccessible_by_default): Likewise.
3081 * mi/mi-main.c (mi_async): Likewise.
3082 (mi_async_1): Likewise.
3083 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3084 * nat/fork-inferior.h (startup_with_shell): Likewise.
3085 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3086 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3087 * nios2-tdep.c (nios2_debug): Likewise.
3088 * or1k-tdep.c (or1k_debug): Likewise.
3089 * parse.c (parser_debug): Likewise.
3090 * parser-defs.h (parser_debug): Likewise.
3091 * printcmd.c (print_symbol_filename): Likewise.
3092 * proc-api.c (procfs_trace): Likewise.
3093 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3094 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3095 (set_parameter_value): Update.
3096 (add_setshow_generic): Update.
3097 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3098 to bool*.
3099 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3100 int*.
3101 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3102 * record-btrace.c (record_btrace_target::store_registers): Update.
3103 * record-full.c (record_full_memory_query): Change to bool.
3104 (record_full_stop_at_limit): Likewise.
3105 * record-full.h (record_full_memory_query): Likewise.
3106 * remote-notif.c (notif_debug): Likewise.
3107 * remote-notif.h (notif_debug): Likewise.
3108 * remote.c (use_range_stepping): Likewise.
3109 (interrupt_on_connect): Likewise.
3110 (remote_break): Likewise.
3111 * ser-tcp.c (tcp_auto_retry): Likewise.
3112 * ser-unix.c (serial_hwflow): Likewise.
3113 * skip.c (debug_skip): Likewise.
3114 * solib-aix.c (solib_aix_debug): Likewise.
3115 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3116 (spu_auto_flush_cache_p): Likewise.
3117 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3118 Likewise.
3119 (struct info_print_options) <quiet>: Likewise.
3120 * symfile-debug.c (debug_symfile): Likewise.
3121 * symfile.c (auto_solib_add): Likewise.
3122 (separate_debug_file_debug): Likewise.
3123 * symfile.h (auto_solib_add): Likewise.
3124 (separate_debug_file_debug): Likewise.
3125 * symtab.c (basenames_may_differ): Likewise.
3126 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3127 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3128 (struct info_types_options) <quiet>: Likewise.
3129 * symtab.h (demangle): Likewise.
3130 (basenames_may_differ): Likewise.
3131 * target-dcache.c (stack_cache_enabled_1): Likewise.
3132 (code_cache_enabled_1): Likewise.
3133 * target.c (trust_readonly): Likewise.
3134 (may_write_registers): Likewise.
3135 (may_write_memory): Likewise.
3136 (may_insert_breakpoints): Likewise.
3137 (may_insert_tracepoints): Likewise.
3138 (may_insert_fast_tracepoints): Likewise.
3139 (may_stop): Likewise.
3140 (auto_connect_native_target): Likewise.
3141 (target_stop_and_wait): Update.
3142 (target_async_permitted): Change to bool.
3143 (target_async_permitted_1): Likewise.
3144 (may_write_registers_1): Likewise.
3145 (may_write_memory_1): Likewise.
3146 (may_insert_breakpoints_1): Likewise.
3147 (may_insert_tracepoints_1): Likewise.
3148 (may_insert_fast_tracepoints_1): Likewise.
3149 (may_stop_1): Likewise.
3150 * target.h (target_async_permitted): Likewise.
3151 (may_write_registers): Likewise.
3152 (may_write_memory): Likewise.
3153 (may_insert_breakpoints): Likewise.
3154 (may_insert_tracepoints): Likewise.
3155 (may_insert_fast_tracepoints): Likewise.
3156 (may_stop): Likewise.
3157 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3158 (make_thread_apply_all_options_def_group): Change argument from int*
3159 to bool*.
3160 (thread_apply_all_command): Update.
3161 (print_thread_events): Change to bool.
3162 * top.c (confirm): Likewise.
3163 (command_editing_p): Likewise.
3164 (history_expansion_p): Likewise.
3165 (write_history_p): Likewise.
3166 (info_verbose): Likewise.
3167 * top.h (confirm): Likewise.
3168 (history_expansion_p): Likewise.
3169 * tracepoint.c (disconnected_tracing): Likewise.
3170 (circular_trace_buffer): Likewise.
3171 * typeprint.c (print_methods): Likewise.
3172 (print_typedefs): Likewise.
3173 * utils.c (debug_timestamp): Likewise.
3174 (sevenbit_strings): Likewise.
3175 (pagination_enabled): Likewise.
3176 * utils.h (sevenbit_strings): Likewise.
3177 (pagination_enabled): Likewise.
3178 * valops.c (overload_resolution): Likewise.
3179 * valprint.h (struct value_print_options) <prettyformat_arrays,
3180 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3181 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3182 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3183 Likewise.
3184 * windows-nat.c (new_console): Likewise.
3185 (cygwin_exceptions): Likewise.
3186 (new_group): Likewise.
3187 (debug_exec): Likewise.
3188 (debug_events): Likewise.
3189 (debug_memory): Likewise.
3190 (debug_exceptions): Likewise.
3191 (useshell): Likewise.
3192 * windows-tdep.c (maint_display_all_tib): Likewise.
3193 * xml-support.c (debug_xml): Likewise.
3194
f1b620e9
MG
31952019-09-17 Mike Gulick <mgulick@mathworks.com>
3196
3197 * source.c (prepare_path_for_appending): New function.
3198 (openp): Make use of new function.
3199 (find_and_open_source): Search for the compilation directory and
3200 source file as a relative path beneath the directory search path.
3201
67f3ed6a
AB
32022019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3203
3204 * source-cache.c (source_cache::get_line_charpos): Catch
3205 exceptions and return false, this matches the behaviour documented
3206 in the header file.
3207
74332189
JB
32082019-09-17 Joel Brobecker <brobecker@adacore.com>
3209
3210 * ada-tasks.c (info_task): Remove quoting of the task's name.
3211
f2f24aa9
CB
32122019-09-16 Christian Biesinger <cbiesinger@google.com>
3213
3214 * symfile.c (auto_solib_add): Replace comment with a reference
3215 to the header file.
3216
6a062a93
CB
32172019-09-14 Christian Biesinger <cbiesinger@google.com>
3218
3219 * NEWS: Mention that gdb can now be compiled with Python 3
3220 on Windows.
3221
ec6c8338
AB
32222019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3223
3224 * maint.c (maint_print_section_data::maint_print_section_data):
3225 Force use of 'float log10 (float)' by casting the argument to
3226 float.
3227
aa17805f
AB
32282019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3229
3230 * maint.c: Add 'cmath' include.
3231 (struct maint_print_section_data): New structure.
3232 (print_section_index): New function.
3233 (print_bfd_section_info): Add header comment, small whitespace
3234 cleanup, and update to call new print_section_index function.
3235 (print_objfile_section_info): Likewise.
3236 (maint_obj_section_from_bfd_section): New function.
3237 (print_bfd_section_info_maybe_relocated): New function.
3238 (maintenance_info_sections): Add header comment, always use
3239 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3240
3dd9bb46
AB
32412019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3242
3243 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3244 inner scope, add check that the objfile has psymtabs before
3245 checking psymtabs_addrmap.
3246 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3247
4993045d
PW
32482019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3249
3250 * NEWS: Announce that Ada task names are now shown at more places,
3251 and between quotes (except in info task output).
3252 * gdb/ada-tasks.c (task_to_str): New function.
3253 (display_current_task_id): Call task_to_str.
3254 (task_command_1): Likewise.
3255 (print_ada_task_info): In non-mi mode, Properly align headers and data
3256 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3257
7a289707
RO
32582019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3259
3260 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3261 prstatus.pr_lwp.pr_info instead of making it up.
3262
f2aec7f6
CB
32632019-09-11 Christian Biesinger <cbiesinger@google.com>
3264
3265 * auto-load.c (auto_load_expand_dir_vars): Update.
3266 * defs.h (gdb_datadir): Change to std::string.
3267 (python_libdir): Likewise.
3268 (relocate_gdb_directory): Change return type to std::string.
3269 * guile/guile.c (gdbscm_data_directory): Update.
3270 (initialize_scheme_side): Update.
3271 * jit.c (jit_reader_dir): Change to std::string.
3272 (jit_reader_load_command): Update.
3273 * main.c (gdb_datadir): Change to std::string.
3274 (python_libdir): Likewise.
3275 (set_gdb_data_directory): Update.
3276 (relocate_path): Change to return std::string.
3277 (relocate_gdb_directory): Change to return std::string.
3278 (relocate_gdbinit_path_maybe_in_datadir): Update.
3279 (captured_main_1): Update.
3280 * python/python.c (do_start_initialization): Update.
3281 * top.c (show_gdb_datadir): Update.
3282 * xml-syscall.c (xml_init_syscalls_info): Update.
3283 (init_syscalls_info): Update.
3284
9224a013
CB
32852019-09-11 Christian Biesinger <cbiesinger@google.com>
3286
3287 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3288 out of get_init_files.
3289 (get_init_files): Update.
3290
f48cd836
CB
32912019-09-11 Christian Biesinger <cbiesinger@google.com>
3292
3293 * main.c (get_init_files): Change to use std::string.
3294 (captured_main_1): Update.
3295 (print_gdb_help): Update.
3296
9cab7ecd
AT
32972019-09-11 Ali Tamur <tamur@google.com>
3298
3299 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3300 implementation.
3301
67547d89
CB
33022019-09-11 Christian Biesinger <cbiesinger@google.com>
3303
3304 * dbxread.c (read_dbx_symtab): Update.
3305 * dwarf2read.c (load_partial_dies): Update.
3306 * mdebugread.c (parse_partial_symbols): Update.
3307 (handle_psymbol_enumerators): Update.
3308 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3309 * psymtab.c (add_psymbol_to_bcache): Likewise.
3310 (add_psymbol_to_list): Likewise.
3311 * symtab.c (symbol_set_names): Likewise.
3312 * symtab.h (symbol_set_names): Likewise.
3313 * xcoffread.c (scan_xcoff_symtab): Update.
3314
64b2d4a0
TT
33152019-09-11 Tom Tromey <tom@tromey.com>
3316
3317 * symfile-mem.c (symbol_file_add_from_memory): Use
3318 bfd_set_filename.
3319 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3320 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3321
3b00ef10
TT
33222019-09-10 Tom Tromey <tromey@adacore.com>
3323
3324 * dwarf-index-write.c (write_psymbols): Extend error message.
3325 (debug_names::insert): Add Ada code.
3326 (debug_names::write_psymbols): Remove Ada check.
3327 (debug_names) <m_string_obstack>: New member.
3328 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3329 (gdb_index_symbol_name_matcher::matches): Remove.
3330 (mapped_index_base::find_name_components_bounds): Add "lang"
3331 parameter.
3332 (mapped_index_base::build_name_components): Also split names
3333 according to Ada syntax.
3334 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3335 type of "match_callback".
3336 (check_match, check_find_bounds_finds)
3337 (dw2_expand_symtabs_matching): Update.
3338 (dw2_debug_names_iterator): Add new constructor.
3339 (dw2_debug_names_map_matching_symbols): New function.
3340 (dw2_debug_names_expand_symtabs_matching): Update.
3341 (dwarf2_debug_names_functions): Use
3342 dw2_debug_names_map_matching_symbols.
3343
aa391654
TT
33442019-09-10 Tom Tromey <tromey@adacore.com>
3345
3346 * dwarf2read.c (dw2_get_file_names_reader): Add the
3347 CU's file name to the results.
3348
b054970d
TT
33492019-09-10 Tom Tromey <tromey@adacore.com>
3350
3351 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3352 map_matching_symbols. Update.
3353 * dwarf2read.c (dw2_map_matching_symbols): Update.
3354 * psymtab.c (match_partial_symbol): Change type; update.
3355 (psym_map_matching_symbols): Likewise.
3356 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3357 type; update.
3358 * symfile.h (struct quick_symbol_functions)
3359 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3360 Remove "match".
3361
6a3dbf1b
TT
33622019-09-10 Tom Tromey <tromey@adacore.com>
3363
3364 * psymtab.c (map_block): Remove.
3365 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3366 * symtab.c (iterate_over_symbols_terminated): New function.
3367 * symtab.c (iterate_over_symbols_terminated): Declare.
3368
6969f124
TT
33692019-09-10 Tom Tromey <tromey@adacore.com>
3370
3371 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3372 * language.h (struct language_defn) <la_iterate_over_symbols>:
3373 Return bool.
3374 * symtab.c (iterate_over_symbols): Return bool.
3375 * symtab.h (iterate_over_symbols): Return bool.
3376
199b4314
TT
33772019-09-10 Tom Tromey <tromey@adacore.com>
3378
3379 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3380 (add_nonlocal_symbols): Update.
3381 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3382 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3383 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3384 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3385 Change type of "callback". Remove "data".
3386
a084a2a6
AT
3387
33882019-09-09 Ali Tamur <tamur@google.com>
3389
3390 * dwarf2read.c (comp_unit_head): Update comment.
3391 (dwarf2_dwo_name): New function declaration.
3392 (dwarf_unit_type_name): New function declaration.
3393 (read_comp_unit_head): Add support for new compilation units,
3394 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3395 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3396 (currently named as "signature") in their header. Also clarify error
3397 messages.
3398 (lookup_dwo_id): New function. Returns the dwo id of the given
3399 compile unit.
3400 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3401 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3402 functions.
3403 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3404 (dwarf2_dwo_name): Get the dwo name if present.
3405 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3406 purposes.
3407
25a2915e
TT
34082019-09-09 Tom Tromey <tom@tromey.com>
3409
3410 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3411
e4df0874
PW
34122019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3413
3414 * python/python.c (do_start_initialization): Make progname_copy static,
3415 to avoid a leak report.
3416
8634b462
TT
34172019-09-08 Tom Tromey <tom@tromey.com>
3418
3419 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3420
c7f839cb
SM
34212019-09-07 Simon Marchi <simon.marchi@efficios.com>
3422
3423 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3424 Change type to gdb::optional<block_enum>.
3425 (dw2_symtab_iter_init): Change block_index parameter type
3426 to gdb::optional<block_enum>.
3427 (dw2_lookup_symbol): Change block_index parameter
3428 type to block_enum.c
3429 (dw2_debug_names_lookup_symbol): Likewise.
3430 * psymtab.c (psym_lookup_symbol): Likewise.
3431 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3432 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3433 Likewise.
3434
ead0e69a
CB
34352019-09-06 Christian Biesinger <cbiesinger@google.com>
3436
3437 * defs.h (relocate_gdb_directory): Change int to bool in
3438 signature and rename flag to relocatable.
3439 * main.c (relocate_path): Likewise.
3440 (relocate_gdb_directory): Likewise.
3441
b16c44de
AM
34422019-09-06 Alan Modra <amodra@gmail.com>
3443
3444 * coffread.c (coff_symfile_read): Constify filename variable.
3445 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3446 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3447 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3448 * solib.c (reload_shared_libraries_1): Likewise.
3449 * symfile.c (reread_symbols): Likewise.
3450 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3451 * solib-darwin.c (darwin_bfd_open): Likewise.
3452 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3453
06ff036e
AB
34542019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3455
3456 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3457 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3458
4e962e74
TT
34592019-09-03 Tom Tromey <tromey@adacore.com>
3460
3461 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3462 types.
3463 (has_negatives): Unbias a range type bound.
3464 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3465 * gdbtypes.c (operator==): Handle new field.
3466 (create_range_type): Add "bias" parameter.
3467 (create_static_range_type, resolve_dynamic_range): Update.
3468 * gdbtypes.h (struct range_bounds) <bias>: New member.
3469 (create_range_type): Add bias parameter.
3470 * printcmd.c (print_scalar_formatted): Unbias range types.
3471 * value.c (unpack_long): Unbias range types.
3472 (pack_long): Bias range types.
3473
d90b8f26
AH
34742019-09-02 Alan Hayward <alan.hayward@arm.com>
3475
3476 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3477 probe arguments.
3478
fe01123e
AH
34792019-09-02 Alan Hayward <alan.hayward@arm.com>
3480
3481 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3482 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3483 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3484 (compile_probe_arg): Likewise.
3485 * probe.h (get_argument_count): Likewise.
3486 * solib-svr4.c (solib_event_probe_action): Likewise.
3487 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3488
e661ef01
AH
34892019-09-02 Alan Hayward <alan.hayward@arm.com>
3490
3491 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3492 code to here...
3493 (svr4_create_solib_event_breakpoints): ...from here.
3494
47a536d9
SDJ
34952019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3496
3497 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3498 suffix from warning message.
3499
d6a00eba
TT
35002019-08-30 Tom Tromey <tom@tromey.com>
3501
3502 * tui/tui-winsource.h (struct tui_source_window_base)
3503 <refresh_all>: Don't declare.
3504 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3505 Remove.
3506 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3507 tui_show_locator_content.
3508 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3509 declare.
3510 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3511 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3512 declare.
3513
55b2657b
TT
35142019-08-30 Tom Tromey <tom@tromey.com>
3515
3516 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3517
12a8555a
TT
35182019-08-30 Tom Tromey <tom@tromey.com>
3519
3520 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3521 Remove unnecessary forward declarations.
3522
900ac242
TT
35232019-08-30 Tom Tromey <tom@tromey.com>
3524
3525 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3526 rerender.
3527 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3528 tui_show_locator_content.
3529
99ab33fb
TT
35302019-08-30 Tom Tromey <tom@tromey.com>
3531
3532 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3533 (tui_locator_window::rerender): Rewrite using body of previous
3534 tui_show_locator_content.
3535
e594a5d1
TT
35362019-08-30 Tom Tromey <tom@tromey.com>
3537
3538 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3539 set_locator_fullname>: New methods.
3540 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3541 Rename from tui_set_locator_fullname.
3542 (tui_locator_window::set_locator_info): Rename from
3543 tui_set_locator_info. Return bool.
3544 (tui_update_locator_fullname, tui_show_frame_info): Update.
3545
715bb467
TT
35462019-08-30 Tom Tromey <tom@tromey.com>
3547
3548 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3549
772f3f03
TT
35502019-08-30 Tom Tromey <tom@tromey.com>
3551
3552 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3553 call touchwin.
3554
108e13ab
TT
35552019-08-30 Tom Tromey <tom@tromey.com>
3556
3557 * tui/tui-wingeneral.c (box_win): Assume win_info and
3558 win_info->handle cannot be NULL.
3559
cdaa6eb4
TT
35602019-08-30 Tom Tromey <tom@tromey.com>
3561
3562 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3563 refresh_window>: Declare.
3564 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3565 resize.
3566 (tui_data_item_window::rerender): Rename from
3567 tui_display_register.
3568 (tui_data_item_window::refresh_window): New method.
3569 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3570 no-op.
3571
89df7f90
TT
35722019-08-30 Tom Tromey <tom@tromey.com>
3573
3574 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3575 regs_column_count, current_group>: Move later. Now private.
3576 <get_current_group>: New method.
3577 * tui/tui-regs.c (tui_reg_command): Update.
3578 * tui/tui-layout.c (tui_set_layout): Update.
3579
1bf2866a
TT
35802019-08-30 Tom Tromey <tom@tromey.com>
3581
3582 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3583 (tui_data_window::rerender): Don't call
3584 check_and_display_highlight_if_needed.
3585 (tui_data_window::refresh_all): Remove call to
3586 erase_data_content.
3587
0670413d
TT
35882019-08-30 Tom Tromey <tom@tromey.com>
3589
3590 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3591 (tui_data_window::display_registers_from)
3592 (tui_data_window::display_reg_element_at_line)
3593 (tui_data_window::display_registers_from_line): Remove checks of
3594 "empty".
3595
18bb55c7
TT
35962019-08-30 Tom Tromey <tom@tromey.com>
3597
3598 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3599 Don't declare.
3600 * tui/tui-regs.c (tui_data_window::show_registers): Call
3601 rerender.
3602 (tui_data_window::rerender): Rename from display_all_data.
3603 (tui_data_window::rerender): Remove old implementation.
3604
1f6d2f10
TT
36052019-08-30 Tom Tromey <tom@tromey.com>
3606
3607 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3608 text.
3609 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3610
16d01f9c
BW
36112019-08-29 Bernhard Wodok <barto@gmx.net>
3612 Sergio Durigan Junior <sergiodj@redhat.com>
3613
3614 PR win32/24284
3615 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3616
d8f27c60
AB
36172019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3618
3619 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3620 when searching for types.
3621
1f20c35e
AB
36222019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3623
3624 * f-lang.c (f_language_defn): Use f_print_typedef.
3625 * f-lang.h (f_print_typedef): Declare.
3626 * f-typeprint.c (f_print_typedef): Define.
3627
550105b7
CB
36282019-08-27 Christian Biesinger <cbiesinger@google.com>
3629
3630 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3631
4acfdd20
AB
36322019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3633
3634 * cli/cli-utils.c (info_print_options_defs): Delete.
3635 (make_info_print_options_def_group): Delete.
3636 (extract_info_print_options): Delete.
3637 (info_print_command_completer): Delete.
3638 (info_print_args_help): Add extra parameter, and optionally
3639 include text about -n flag.
3640 * cli/cli-utils.h (struct info_print_options): Delete.
3641 (extract_info_print_options): Delete declaration.
3642 (info_print_command_completer): Delete declaration.
3643 (info_print_args_help): Add extra parameter, extend header
3644 comment.
3645 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3646 search_symbols.
3647 * stack.c (struct info_print_options): New type.
3648 (info_print_options_defs): New file scoped variable.
3649 (make_info_print_options_def_group): New static function.
3650 (info_print_command_completer): New static function.
3651 (info_locals_command): Update to use new local functions.
3652 (info_args_command): Likewise.
3653 (_initialize_stack): Add extra parameter to calls to
3654 info_print_args_help.
3655 * symtab.c (search_symbols): Add extra parameter, use this to
3656 possibly excluse non-debug symbols.
3657 (symtab_symbol_info): Add extra parameter, which is passed on to
3658 search_symbols.
3659 (struct info_print_options): New type.
3660 (info_print_options_defs): New file scoped variable.
3661 (make_info_print_options_def_group): New static function.
3662 (info_print_command_completer): New static function.
3663 (info_variables_command): Update to use local functions, and pass
3664 extra parameter through to symtab_symbol_info.
3665 (info_functions_command): Likewise.
3666 (info_types_command): Pass additional argument through to
3667 symtab_symbol_info.
3668 (rbreak_command): Pass extra argument to search_symbols.
3669 (_initialize_symtab): Add extra arguments for calls to
3670 info_print_args_help, and update help text for 'info variables',
3671 'whereis', and 'info functions' commands.
3672 * symtab.h (search_symbols): Add extra argument to declaration.
3673 * NEWS: Mention new flags.
3674
9aa55206
CB
36752019-08-26 Christian Biesinger <cbiesinger@google.com>
3676
3677 * symtab.c (lookup_static_symbol): Call the new function (and move
3678 it down to be next to lookup_global_symbol).
3679 (struct global_sym_lookup_data): Add block_enum member and rename to...
3680 (struct global_or_static_sym_lookup_data): ...this.
3681 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3682 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3683 (lookup_symbol_global_or_static_iterator_cb): ...this.
3684 (lookup_global_or_static_symbol): New function.
3685 (lookup_global_symbol): Call new function.
3686
5c31b358
TV
36872019-08-26 Tom de Vries <tdevries@suse.de>
3688
3689 PR c++/24852
3690 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3691 when pc_probe.prob == NULL.
3692
23c13d42
SM
36932019-08-25 Simon Marchi <simon.marchi@efficios.com>
3694
3695 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3696 variable symbol_linkage to symbol_linkage_.
3697
beadd3e8
SM
36982019-08-25 Simon Marchi <simon.marchi@efficios.com>
3699
3700 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3701 represent whether the symbol is static, dynamic, or we don't
3702 know.
3703
e3ec872f
YS
37042019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3705
3706 * gdb/rx-tdep.c (rx_register_names): New.
3707 (rx_register_name): Delete.
3708 (rx_psw_type): Delete.
3709 (rx_fpsw_type): Delete.
3710 (rx_register_type): Delete.
3711 (rx_gdbarch_init): Convert target-descriptions.
3712 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3713 * gdb/features/Makefile: Add rx.xml.
3714 * gdb/features/rx.xml: New.
3715 * gdb/features/rx.c: Generated.
3716 * gdb/NEWS: Mention target description support.
3717
d0509ba4
CB
37182019-08-22 Christian Biesinger <cbiesinger@google.com>
3719
3720 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3721 *slot_ptr.
3722
2d41fa11
SDJ
37232019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3724
3725 * configure.ac: Don't check for 'dlfcn.h' (moved to
3726 gdbsupport/common.m4).
3727 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3728 'gdbsupport/'.
3729 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3730 * compile/compile-c-support.c: Include
3731 'gdbsupport/gdb-dlfcn.h'.
3732 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3733 * gdb-dlfcn.c: Move to...
3734 * gdbsupport/gdb-dlfcn.c: ... here.
3735 * gdb-dlfcn.h: Move to...
3736 * gdbsupport/gdb-dlfcn.h: ... here.
3737
de8af808
SL
37382019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3739
3740 * nios2-tdep.c (struct reg_value): Improve comments. Make
3741 the offset field signed.
3742
27204489
CB
37432019-08-22 Christian Biesinger <cbiesinger@google.com>
3744
3745 * python/lib/gdb/__init__.py (_execute_file): New function.
3746 * python/python.c (python_run_simple_file): Call gdb._execute_file
3747 on Windows.
3748
43771869
AB
37492019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3750
3751 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3752 all uses as this was never set to anything but a zero value.
3753
26c957f1
PA
37542019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3755
3756 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3757
c07aae6e
CB
37582019-08-21 Christian Biesinger <cbiesinger@google.com>
3759
3760 * tui/tui-data.h (tui_gen_win_info): Add an =default
3761 move constructor, required by some GCC versions.
3762
3960cb7a
JF
37632019-08-21 Jinke Fan <fanjinke51@yeah.net>
3764
3765 * go32-nat.c (go32_sysinfo): Add hygon_p.
3766
04c72a68
TT
37672019-08-20 Tom Tromey <tom@tromey.com>
3768
3769 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3770 line_from_reg_element_no, first_reg_element_no_inline,
3771 display_all_data, delete_data_content_windows,
3772 erase_data_content>: Now private.
3773
072272ce
TT
37742019-08-20 Tom Tromey <tom@tromey.com>
3775
3776 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3777 (tui_unhighlight_win, tui_highlight_win)
3778 (tui_win_info::make_window): Update.
3779 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3780
973961bd
TT
37812019-08-20 Tom Tromey <tom@tromey.com>
3782
3783 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3784 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3785 (MAX_PID_WIDTH): Move to tui-stack.c.
3786 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3787 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3788 (MAX_PID_WIDTH): Move from tui-data.h.
3789
ab0e1f1a
TT
37902019-08-20 Tom Tromey <tom@tromey.com>
3791
3792 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3793 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3794 (box_win): Update.
3795 (tui_gen_win_info::make_window): Rename from tui_make_window.
3796 (tui_win_info::make_window): New method.
3797 (tui_gen_win_info::make_visible): Update.
3798 * tui/tui-source.c (tui_source_window::set_contents): Update.
3799 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3800 (tui_data_window::display_registers_from): Update.
3801 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3802 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3803 Declare.
3804 <can_box>: Remove.
3805 <title>: Remove.
3806 (struct tui_win_info) <make_window>: Declare.
3807 <can_box>: Now virtual.
3808 <title>: New member.
3809 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3810 * tui/tui-command.c (tui_cmd_window::resize): Update.
3811
100c2bf3
TT
38122019-08-20 Tom Tromey <tom@tromey.com>
3813
3814 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3815 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3816 (tui_data_window::check_register_values): Update.
3817
fa4dc567
TT
38182019-08-20 Tom Tromey <tom@tromey.com>
3819
3820 * tui/tui-regs.h (struct tui_data_window): Use
3821 DISABLE_COPY_AND_ASSIGN.
3822 <regs_content>: Change type, removing unique_ptr.
3823 <tui_data_window>: Add move constructor.
3824 * tui/tui-regs.c (tui_data_window::show_registers)
3825 (tui_data_window::show_register_group)
3826 (tui_data_window::display_registers_from)
3827 (tui_data_window::display_registers_from)
3828 (tui_data_window::first_data_item_displayed)
3829 (tui_data_window::delete_data_content_windows)
3830 (tui_data_window::rerender, tui_data_window::refresh_window)
3831 (tui_data_window::check_register_values): Update.
3832
ca02d7c8
TT
38332019-08-20 Tom Tromey <tom@tromey.com>
3834
3835 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3836 show_register_group>: Declare.
3837 (tui_show_register_group): Don't declare.
3838 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3839 tui_show_registers.
3840 (tui_data_window::show_register_group): Rename from
3841 tui_show_register_group.
3842 (tui_data_window::check_register_values, tui_reg_command):
3843 Update.
3844 * tui/tui-layout.c (tui_set_layout): Update.
3845
63356bfd
TT
38462019-08-20 Tom Tromey <tom@tromey.com>
3847
3848 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3849 Declare.
3850 (tui_check_register_values): Don't declare.
3851 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3852 from tui_check_register_values.
3853 * tui/tui-hooks.c (tui_register_changed): Update.
3854
42cc14a7
TT
38552019-08-20 Tom Tromey <tom@tromey.com>
3856
3857 * tui/tui-regs.c (tui_reg_layout): Move later.
3858 (tui_show_registers): Don't enable TUI mode or change layout.
3859
b9ad3686
TT
38602019-08-20 Tom Tromey <tom@tromey.com>
3861
3862 * tui/tui-regs.h (struct tui_data_item_window)
3863 <~tui_data_item_window>: Remove.
3864 <content>: Now a unique_xmalloc_ptr.
3865 * tui/tui-regs.c (tui_register_format): Return a
3866 unique_xmalloc_ptr.
3867 (tui_get_register): Update.
3868 (~tui_data_item_window): Remove.
3869 (tui_data_window::display_registers_from, tui_display_register):
3870 Update.
3871 * tui/tui-io.h (tui_expand_tabs): Update.
3872 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3873 Remove "col" parameter.
3874
8e114aab
TT
38752019-08-20 Tom Tromey <tom@tromey.com>
3876
3877 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3878 field.
3879 * tui/tui-regs.c (~tui_data_item_window): Update.
3880
1a4f81dd
TT
38812019-08-20 Tom Tromey <tom@tromey.com>
3882
3883 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3884 earlier.
3885
0f8d8876
TT
38862019-08-20 Tom Tromey <tom@tromey.com>
3887
3888 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3889
605dc2c2
TT
38902019-08-20 Tom Tromey <tom@tromey.com>
3891
3892 * tui/tui-source.h (struct tui_source_window): Update.
3893 * tui/tui-regs.c (tui_show_registers): Update.
3894 * tui/tui-disasm.h (struct tui_disasm_window): Update.
3895 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
3896 (NO_REGS_STRING): Remove defines.
3897
aedbe3bb
CM
38982019-08-20 Conrad Meyer <cem@FreeBSD.org>
3899
3900 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
3901 unnecessary thread walk if remote doesn't support the packet.
3902
7ce8f214
TT
39032019-08-19 Tom Tromey <tromey@adacore.com>
3904
3905 * python/py-value.c (value_has_field): Fix indentation.
3906
f21c2bd7
TT
39072019-08-19 Tom Tromey <tromey@adacore.com>
3908
3909 * printcmd.c (do_one_display, info_display_command): Update.
3910 * block.h (contained_in): Return bool. Add allow_nested
3911 parameter.
3912 * block.c (contained_in): Return bool. Add allow_nested
3913 parameter.
3914
d806ea2d
TT
39152019-08-19 Tom Tromey <tom@tromey.com>
3916
3917 * configure: Rebuild.
3918 * configure.ac: Disallow the combination of -static-libstdc++ and
3919 source highlight.
3920 * source-cache.c (get_language_name): Handle rust.
3921 (source_cache::get_source_lines): Ignore highlighting exceptions.
3922
398fdd60
TT
39232019-08-16 Tom Tromey <tom@tromey.com>
3924
3925 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
3926 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
3927 (struct tui_source_window_base) <make_visible, refresh_window,
3928 resize>: Remove methods.
3929 <execution_info>: Remove field.
3930 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
3931 (tui_show_source_line, tui_source_window_base)
3932 (~tui_source_window_base): Update.
3933 (tui_source_window_base::resize)
3934 (tui_source_window_base::make_visible)
3935 (tui_source_window_base::refresh_window): Remove.
3936 (tui_source_window_base::update_exec_info): Update.
3937 * tui/tui-source.c (tui_source_window::set_contents): Update.
3938 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3939
e699d331
TT
39402019-08-16 Tom Tromey <tom@tromey.com>
3941
3942 * tui/tui-hooks.c (tui_remove_hooks): Don't set
3943 deprecated_query_hook.
3944
bb01dbfc
TT
39452019-08-16 Tom Tromey <tom@tromey.com>
3946
3947 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3948 (tui_update_source_windows_with_line): Update.
3949 * tui/tui-source.h (struct tui_source_window)
3950 <show_symtab_source>: Declare.
3951 (tui_show_symtab_source): Don't declare.
3952 * tui/tui-source.c (tui_show_symtab_source): Rename from
3953 tui_show_symtab_source.
3954
81c82c4b
TT
39552019-08-16 Tom Tromey <tom@tromey.com>
3956
3957 * tui/tui-winsource.h (struct tui_source_window_base)
3958 <set_contents>: Declare.
3959 * tui/tui-winsource.c
3960 (tui_source_window_base::update_source_window_as_is): Update.
3961 * tui/tui-source.h (struct tui_source_window) <set_contents>:
3962 Declare.
3963 (tui_set_source_content): Don't declare.
3964 * tui/tui-source.c (tui_source_window::set_contents): Rename from
3965 tui_set_source_content.
3966 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
3967 Declare.
3968 (tui_set_disassem_content): Don't declare.
3969 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
3970 tui_set_disassem_content.
3971
2ddaf614
TT
39722019-08-16 Tom Tromey <tom@tromey.com>
3973
3974 * tui/tui-winsource.h (struct tui_source_window_base)
3975 <update_breakpoint_info>: Declare.
3976 (tui_update_breakpoint_info): Don't declare.
3977 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3978 (tui_update_all_breakpoint_info): Update.
3979 (tui_source_window_base::update_breakpoint_info): Rename from
3980 tui_update_breakpoint_info.
3981 (tui_source_window_base::update_exec_info): Update.
3982
017f9828
TT
39832019-08-16 Tom Tromey <tom@tromey.com>
3984
3985 * tui/tui-winsource.h (struct tui_source_window_base)
3986 <update_source_window>: Declare.
3987 (tui_update_source_window): Don't declare.
3988 * tui/tui-winsource.c
3989 (tui_source_window_base::update_source_window): Rename from
3990 tui_update_source_window.
3991 (tui_source_window_base::rerender): Update.
3992 * tui/tui-source.c (tui_source_window::maybe_update): Update.
3993 * tui/tui-disasm.c (tui_show_disassem)
3994 (tui_show_disassem_and_update_source)
3995 (tui_disasm_window::maybe_update): Update.
3996
ed8358e9
TT
39972019-08-16 Tom Tromey <tom@tromey.com>
3998
3999 * tui/tui-winsource.h (struct tui_source_window_base)
4000 <update_source_window_as_is>: Declare.
4001 (tui_update_source_window_as_is): Don't declare.
4002 * tui/tui-winsource.c (tui_update_source_window): Update
4003 (tui_source_window_base::update_source_window_as_is): Rename from
4004 tui_update_source_window_as_is.
4005 (tui_source_window_base::refill): Update.
4006 * tui/tui-source.c (tui_show_symtab_source): Update.
4007 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4008 Update.
4009
20149b6b
TT
40102019-08-16 Tom Tromey <tom@tromey.com>
4011
4012 * tui/tui-winsource.h (tui_update_source_window)
4013 (tui_update_source_window_as_is): Remove "noerror" parameter.
4014 * tui/tui-winsource.c (tui_update_source_window)
4015 (tui_update_source_window_as_is): Remove "noerror" parameter.
4016 (tui_update_source_windows_with_addr)
4017 (tui_update_source_windows_with_line)
4018 (tui_source_window_base::rerender)
4019 (tui_source_window_base::refill): Update.
4020 * tui/tui-source.h (tui_set_source_content)
4021 (tui_show_symtab_source): Remove "noerror" parameter.
4022 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4023 parameter.
4024 (tui_show_symtab_source): Likewise.
4025 (tui_source_window::maybe_update): Update.
4026 * tui/tui-disasm.c (tui_show_disassem)
4027 (tui_show_disassem_and_update_source)
4028 (tui_disasm_window::do_scroll_vertical)
4029 (tui_disasm_window::maybe_update): Update.
4030
2d83e710
TT
40312019-08-16 Tom Tromey <tom@tromey.com>
4032
4033 * tui/tui.c (tui_is_window_visible): Update.
4034 * tui/tui-wingeneral.c (tui_make_window)
4035 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4036 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4037 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4038 (tui_set_win_height_command, parse_scrolling_args): Update.
4039 * tui/tui-source.c (tui_source_window::style_changed): Update.
4040 * tui/tui-regs.c (tui_show_registers)
4041 (tui_data_window::first_data_item_displayed)
4042 (tui_data_window::delete_data_content_windows)
4043 (tui_check_register_values, tui_reg_command): Update.
4044 * tui/tui-disasm.c (tui_show_disassem): Update.
4045 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4046 method.
4047 <is_visible>: Remove field.
4048 * tui/tui-data.c (tui_next_win, tui_prev_win)
4049 (tui_delete_invisible_windows): Update.
4050
d4ab829a
TT
40512019-08-16 Tom Tromey <tom@tromey.com>
4052
4053 * tui/tui-winsource.h (struct tui_source_window_base)
4054 <m_has_locator>: Remove.
4055 * tui/tui-layout.c (show_source_disasm_command, show_data)
4056 (show_source_or_disasm_and_command): Update.
4057
aa7ca1bb
AH
40582019-08-16 Alan Hayward <alan.hayward@arm.com>
4059
4060 * NEWS (Other MI changes): New subsection.
4061 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4062 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4063 * arch-utils.c (default_get_pc_address_flags): New function.
4064 * arch-utils.h (default_get_pc_address_flags): New declaration.
4065 * gdbarch.sh: Add get_pc_address_flags.
4066 * gdbarch.c: Regenerate.
4067 * gdbarch.h: Likewise.
4068 * stack.c (print_pc): New function.
4069 (print_frame_info) (print_frame): Call print_pc.
4070
6eac171f
TV
40712019-08-16 Tom de Vries <tdevries@suse.de>
4072
4073 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4074 print_objfile_section_info.
4075
3df505f6
TT
40762019-08-15 Tom Tromey <tom@tromey.com>
4077
4078 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4079 calling update_cmdwin_start_line.
4080 * tui/tui-winsource.h (struct tui_source_window_base)
4081 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4082 <rerender>: Declare.
4083 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4084 Call rerender.
4085 (tui_source_window_base::set_new_height): Remove.
4086 (tui_source_window_base::rerender): Rename from
4087 do_make_visible_with_new_height.
4088 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4089 resize method.
4090 (tui_win_info::make_invisible_and_set_new_height)
4091 (tui_win_info::make_visible_with_new_height): Remove.
4092 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4093 Declare.
4094 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4095 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4096 do_make_visible_with_new_height>: Don't declare.
4097 <rerender>: Declare.
4098 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4099 set_new_height.
4100 (tui_data_window::do_make_visible_with_new_height): Remove.
4101 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4102 call tui_show_locator_content.
4103 (tui_gen_win_info::resize): Call rerender.
4104 (show_source_or_disasm_and_command): Don't call
4105 tui_show_locator_content.
4106 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4107 method.
4108 (struct tui_win_info) <rerender>: Declare.
4109 <set_new_height, make_invisible_and_set_new_height,
4110 make_visible_with_new_height>: Don't declare.
4111 * tui/tui-data.c (tui_win_list::rerender): New method.
4112 * tui/tui-command.h (struct tui_cmd_window)
4113 <do_make_visible_with_new_height>: Don't declare.
4114 * tui/tui-command.c
4115 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4116
272560b5
TT
41172019-08-15 Tom Tromey <tromey@adacore.com>
4118
4119 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4120 * ada-lang.c (ada_enum_name): Likewise.
4121
08235187
CB
41222019-08-15 Christian Biesinger <cbiesinger@google.com>
4123
4124 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4125 leading underscore.
4126 (GdbOutputErrorFile): Likewise.
4127 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4128 accordingly.
4129 (execute_unwinders): Rename to have a leading underscore.
4130 (auto_load_packages): Likewise.
4131 (global scope): Adjust call to auto_load_packages accordingly.
4132 (GdbSetPythonDirectory): Likewise.
4133 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4134 instead of execute_unwinders.
4135
db502012
TT
41362019-08-15 Tom Tromey <tom@tromey.com>
4137
4138 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4139 (show_data): Don't change window visibility.
4140 (tui_gen_win_info::resize): Remove special case for command
4141 window. Use wresize, when available.
4142 (show_source_or_disasm_and_command): Don't change window
4143 visibility.
4144 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4145 <make_visible>: New method.
4146 * tui/tui-command.c (tui_cmd_window::resize): New method.
4147
3891b65e
TT
41482019-08-15 Tom Tromey <tom@tromey.com>
4149
4150 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4151 (struct tui_source_windows): New.
4152 * tui/tui-winsource.c (tui_display_main): Update.
4153 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4154 (new_height_ok, parse_scrolling_args): Update.
4155 * tui/tui-layout.c (show_layout, show_data): Update.
4156 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4157 (tui_add_to_source_windows): Don't declare.
4158 * tui/tui-data.c (source_windows, tui_source_windows)
4159 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4160
ee556432
TT
41612019-08-15 Tom Tromey <tom@tromey.com>
4162
4163 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4164 Rename from reset.
4165 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4166 * tui/tui-layout.c (show_source_disasm_command, show_data):
4167 Update.
4168 (tui_gen_win_info::resize): Rename.
4169 (show_source_or_disasm_and_command): Update.
4170 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4171 reset.
4172
46f438e3
TT
41732019-08-15 Tom Tromey <tom@tromey.com>
4174
4175 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4176 * tui/tui-interp.c (tui_interp::init): Don't call
4177 tui_initialize_static_data.
4178 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4179
f4ce562c
TT
41802019-08-15 Tom Tromey <tom@tromey.com>
4181
4182 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4183 examine tui_win_list.
4184
c398c3d0
TT
41852019-08-15 Tom Tromey <tom@tromey.com>
4186
4187 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4188 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4189 tui_clear_source_content.
4190 (tui_clear_source_content): Remove.
4191 (tui_source_window_base::do_erase_source_content): Hoist call to
4192 content.clear().
4193 * tui/tui-stack.c (tui_show_frame_info): Don't call
4194 tui_clear_source_content.
4195
e25d2004
TT
41962019-08-15 Tom Tromey <tom@tromey.com>
4197
4198 * tui/tui-winsource.h (struct tui_source_window_base)
4199 <do_erase_source_content>: New method.
4200 <erase_source_content>: New method.
4201 (tui_erase_source_content): Don't declare.
4202 * tui/tui-winsource.c (tui_clear_source_content): Update.
4203 (tui_source_window_base::do_erase_source_content): Rename from
4204 tui_erase_source_content.
4205 (tui_source_window_base::show_source_content): Update.
4206 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4207 * tui/tui-source.h (struct tui_source_window)
4208 <erase_source_content>: New method.
4209 * tui/tui-disasm.h (struct tui_disasm_window)
4210 <erase_source_content>: New method.
4211
002f15c2
TT
42122019-08-15 Tom Tromey <tom@tromey.com>
4213
4214 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4215 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4216 constructor.
4217 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4218 * tui/tui-source.c (tui_set_source_content): Update.
4219 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4220
c9033fe8
TT
42212019-08-15 Tom Tromey <tom@tromey.com>
4222
4223 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4224 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4225 tui-source.c.
4226 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4227 Declare.
4228 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4229 method.
4230 (tui_source_window::maybe_update): Update.
4231
088f37dd
TT
42322019-08-15 Tom Tromey <tom@tromey.com>
4233
4234 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4235 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4236 tui-disasm.c.
4237 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4238 Declare.
4239 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4240 method.
4241 (tui_disasm_window::maybe_update): Update.
4242
a54700c6
TT
42432019-08-15 Tom Tromey <tom@tromey.com>
4244
4245 * tui/tui-winsource.h (struct tui_source_window_base)
4246 <maybe_update>: Declare.
4247 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4248 method.
4249 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4250 Declare.
4251 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4252 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4253 Declare.
4254 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4255
e2a678a5
TT
42562019-08-15 Tom Tromey <tom@tromey.com>
4257
4258 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4259
f2dda477
TT
42602019-08-15 Tom Tromey <tom@tromey.com>
4261
4262 * tui/tui-wingeneral.c: Include tui-stack.h.
4263 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4264 (struct tui_locator_window): Move from tui-data.h.
4265 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4266 (tui_initialize_static_data): Move from tui-data.c.
4267 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4268 (struct tui_locator_window): Move to tui-stack.c.
4269 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4270 (tui_initialize_static_data): Move to tui-stack.c.
4271
ed4a1084
TT
42722019-08-15 Tom Tromey <tom@tromey.com>
4273
4274 * tui/tui-layout.c (show_source_disasm_command)
4275 (show_source_or_disasm_and_command): Use make_visible method, not
4276 tui_make_window.
4277 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4278 Remove.
4279
65962b20
TT
42802019-08-15 Tom Tromey <tom@tromey.com>
4281
4282 * tui/tui-wingeneral.h (tui_make_window): Update.
4283 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4284 parameter.
4285 (tui_gen_win_info::make_visible): Update.
4286 * tui/tui-regs.c (tui_data_window::display_registers_from):
4287 Update.
4288 * tui/tui-layout.c (show_source_disasm_command)
4289 (show_source_or_disasm_and_command): Update.
4290 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4291 (enum tui_box): Remove.
4292 (struct tui_win_info) <can_box>: New method.
4293 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4294 method.
4295
2208ee91
TV
42962019-08-15 Tom de Vries <tdevries@suse.de>
4297
4298 * linux-nat-trad.c: Include gdbarch.h.
4299
75faf5c4
AH
43002019-08-14 Alan Hayward <alan.hayward@arm.com>
4301
4302 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4303 register sizes.
4304
b1c896b3
TT
43052019-08-14 Tom Tromey <tromey@adacore.com>
4306
4307 * darwin-nat.c: Include gdbarch.h.
4308 * darwin-nat-info.c: Include gdbarch.h.
4309
6405cd73
TT
43102019-08-13 Tom Tromey <tom@tromey.com>
4311
4312 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4313 Remove.
4314 * tui/tui-data.c (tui_initialize_static_data): Update.
4315
5216580d
TT
43162019-08-13 Tom Tromey <tom@tromey.com>
4317
4318 * tui/tui-winsource.h (struct tui_exec_info_window)
4319 <~tui_exec_info_window, maybe_allocate_content, get_content,
4320 m_content>: Remove.
4321 (struct tui_source_window_base) <set_exec_info_content,
4322 show_exec_info_content>: Don't declare.
4323 * tui/tui-winsource.c
4324 (tui_exec_info_window::maybe_allocate_content): Remove.
4325 (tui_source_window_base::update_exec_info): Rename from
4326 set_exec_info_content.
4327 (tui_source_window_base::show_exec_info_content)
4328 (tui_source_window_base::update_exec_info): Remove.
4329
93858ad3
TT
43302019-08-13 Tom Tromey <tom@tromey.com>
4331
4332 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4333 declare.
4334 * tui/tui-winsource.c (tui_update_source_window_as_is)
4335 (tui_update_source_windows_with_addr, tui_erase_source_content):
4336 Update.
4337 (tui_clear_exec_info_content): Remove.
4338
e321e7ce
TT
43392019-08-13 Tom Tromey <tom@tromey.com>
4340
4341 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4342 declare.
4343 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4344 call tui_erase_exec_info_content.
4345 (tui_clear_exec_info_content): Rename from
4346 tui_erase_exec_info_content.
4347 (tui_clear_exec_info_content): Delete.
4348
8270ac62
TT
43492019-08-13 Tom Tromey <tom@tromey.com>
4350
4351 * tui/tui-winsource.h (struct tui_source_window_base)
4352 <show_exec_info_content>: Declare.
4353 (tui_show_exec_info_content): Don't declare.
4354 * tui/tui-winsource.c
4355 (tui_source_window_base::show_exec_info_content): Rename from
4356 tui_show_exec_info_content.
4357 (tui_source_window_base::update_exec_info): Update.
4358
7b56485d
TT
43592019-08-13 Tom Tromey <tom@tromey.com>
4360
4361 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4362 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4363 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4364 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4365 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4366 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4367 ... here.
4368
7ba913dc
TT
43692019-08-13 Tom Tromey <tom@tromey.com>
4370
4371 * tui/tui-winsource.h (struct tui_source_window_base)
4372 <update_exec_info>: Declare.
4373 (tui_update_exec_info): Don't declare.
4374 * tui/tui-winsource.c (tui_update_source_window_as_is)
4375 (tui_source_window_base::refresh_all)
4376 (tui_update_all_breakpoint_info): Update.
4377 (tui_source_window_base::update_exec_info): Rename from
4378 tui_update_exec_info.
4379 * tui/tui-stack.c (tui_show_frame_info): Update.
4380
37a4a131
TT
43812019-08-13 Tom Tromey <tom@tromey.com>
4382
4383 * tui/tui-winsource.h (struct tui_source_window_base)
4384 <set_exec_info_content>: Declare.
4385 (tui_set_exec_info_content): Don't declare.
4386 * tui/tui-winsource.c
4387 (tui_source_window_base::set_exec_info_content): Rename from
4388 tui_set_exec_info_content.
4389 (tui_update_exec_info): Update.
4390
0bd27e07
TT
43912019-08-13 Tom Tromey <tom@tromey.com>
4392
4393 * tui/tui-winsource.h (struct tui_source_window_base)
4394 <show_source_content>: Declare.
4395 (tui_show_source_content): Don't declare.
4396 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4397 (tui_source_window_base::show_source_content): Rename from
4398 tui_show_source_content.
4399 (tui_source_window_base::refresh_all): Update.
4400 * tui/tui-layout.c (show_source_disasm_command)
4401 (show_source_or_disasm_and_command): Update.
4402
b4ef5aeb
TT
44032019-08-13 Tom Tromey <tom@tromey.com>
4404
4405 * tui/tui-winsource.c (tui_erase_source_content)
4406 (tui_show_source_content, tui_source_window_base::refresh_all):
4407 Update.
4408 * tui/tui-wingeneral.h
4409 (tui_check_and_display_highlight_if_needed): Don't declare.
4410 * tui/tui-wingeneral.c
4411 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4412 check_and_display_highlight_if_needed.
4413 * tui/tui-win.c (tui_rehighlight_all)
4414 (tui_win_info::make_visible_with_new_height): Update.
4415 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4416 (tui_data_window::erase_data_content)
4417 (tui_data_window::display_all_data): Update.
4418 * tui/tui-data.h (struct tui_win_info)
4419 <check_and_display_highlight_if_needed>: Declare.
4420
fede5273
TT
44212019-08-13 Tom Tromey <tom@tromey.com>
4422
4423 * tui/tui-win.c (tui_resize_all): Call
4424 tui_delete_invisible_windows.
4425 * tui/tui-layout.c (show_layout): Call
4426 tui_delete_invisible_windows.
4427 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4428 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4429
22c3f490
TT
44302019-08-13 Tom Tromey <tom@tromey.com>
4431
4432 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4433 tui_add_win_to_layout.
4434
16cb7910
TT
44352019-08-13 Tom Tromey <tom@tromey.com>
4436
4437 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4438 * tui/tui-layout.c (tui_default_win_height): Now static.
4439
cc0c3ffb
TT
44402019-08-13 Tom Tromey <tom@tromey.com>
4441
4442 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4443 single switch.
4444 (show_source_disasm_command, show_source_or_disasm_and_command):
4445 Don't check current layout.
4446
3f3ffe54
TT
44472019-08-13 Tom Tromey <tom@tromey.com>
4448
4449 * tui/tui-wingeneral.c (make_all_visible): Remove.
4450 (tui_make_all_invisible): Simplify.
4451 * tui/tui-layout.c (tui_make_all_invisible): Move from
4452 tui-wingeneral.c; simplify.
4453 (show_layout): Hoist call to tui_make_all_invisible.
4454 (show_data): Don't call tui_make_all_invisible.
4455
69258091
TT
44562019-08-13 Tom Tromey <tom@tromey.com>
4457
4458 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4459 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4460
62cf57fe
TT
44612019-08-13 Tom Tromey <tom@tromey.com>
4462
4463 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4464 tui-data.c.
4465 (show_source_disasm_command, show_data)
4466 (show_source_or_disasm_and_command): Don't use
4467 tui_set_current_layout_to.
4468 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4469 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4470 tui-layout.c.
4471 (tui_set_current_layout_to): Remove.
4472
2afade5d
TT
44732019-08-13 Tom Tromey <tom@tromey.com>
4474
4475 * tui/tui-layout.c (tui_set_layout): Update.
4476 * tui/tui-data.h (struct tui_layout_def): Remove.
4477 (tui_layout_def): Don't declare.
4478 * tui/tui-data.c (layout_def): Remove.
4479 (tui_layout_def): Remove.
4480
a3504e96
TT
44812019-08-13 Tom Tromey <tom@tromey.com>
4482
4483 * tui/tui-winsource.h (struct tui_source_window_base)
4484 <clear_detail>: No longer "override".
4485 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4486 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4487 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4488 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4489 Remove.
4490 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4491
29c92911
TT
44922019-08-13 Tom Tromey <tromey@adacore.com>
4493
4494 * tracepoint.c: Don't include readline.h or history.h.
4495
86c6b807
TT
44962019-08-12 Tom Tromey <tom@tromey.com>
4497
4498 * configure: Rebuild.
4499 * configure.ac: Check for readline 7.
4500 * NEWS: Mention readline 7 requirement.
4501 * README: Update.
4502
5db2718c
TT
45032019-08-12 Tom Tromey <tom@tromey.com>
4504
4505 * mingw-hdep.c (gdb_select): Remove readline hack.
4506
dac36daf
PFC
45072019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4508
4509 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4510 when the function fails.
4511
1022c627
AA
45122019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4513
4514 * s390-tdep.c (s390_type_align): New function.
4515 (s390_gdbarch_init): Set it as type_align gdbarch method.
4516
eba4caf2
TV
45172019-08-09 Tom de Vries <tdevries@suse.de>
4518
4519 PR gdb/24591
4520 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4521 pc_low with relocation offset.
4522
123cd851
TT
45232019-08-07 Tom Tromey <tromey@adacore.com>
4524
4525 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4526 (print_frame_args): Update.
4527 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4528 Update.
4529 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4530 * frame.h (struct frame_arg): Add initializers.
4531 <error>: Now a unique_xmalloc_ptr.
4532
3d31bc39
AH
45332019-08-07 Alan Hayward <alan.hayward@arm.com>
4534
4535 * NEWS: Expand the Pointer Authentication entry.
4536 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4537 (aarch64_frame_unmask_lr): ... to this.
4538 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4539 Call aarch64_frame_unmask_lr.
4540 * frame.c (struct frame_info): Add "masked" variable.
4541 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4542 (fprint_frame): Check for masked pc.
4543 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4544 declarations.
4545 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4546 * stack.c (print_frame): Check for masked pc.
4547
0cf9feb9
TT
45482019-08-06 Tom Tromey <tom@tromey.com>
4549
4550 * stabsread.c (patch_block_stabs, read_one_struct_field)
4551 (read_enum_type): Use obstack_strndup.
4552 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4553 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4554 * dwarf2read.c (guess_full_die_structure_name)
4555 (anonymous_struct_prefix): Use obstack_strndup.
4556 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4557 * c-exp.y (yylex): Use obstack_strndup.
4558 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4559 (write_var_or_type): Use obstack_strndup.
4560
efba19b0
TT
45612019-08-06 Tom Tromey <tom@tromey.com>
4562
4563 * symfile.c (reread_symbols): Use obstack_strdup.
4564 * stabsread.c (read_type): Use obstack_strdup.
4565 * gdb_obstack.h (obstack_strdup): New overload.
4566 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4567 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4568 (dwarf2_canonicalize_name): Use obstack_strdup.
4569 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4570 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4571 Use obstack_strdup.
4572
f25102f7
TT
45732019-08-06 Tom Tromey <tom@tromey.com>
4574
4575 * gdb_obstack.h (obstack_strdup): Define.
4576 * gdb_obstack.c (obstack_strdup): Don't define.
4577
021887d8
TT
45782019-08-06 Tom Tromey <tom@tromey.com>
4579
4580 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4581 obstack_strdup.
4582 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4583 obstack_strdup.
4584 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4585 * stabsread.c (common_block_start): Use obstack_strdup.
4586 * objfiles.c (set_objfile_main_name, objfile): Use
4587 obstack_strdup.
4588 * namespace.c (add_using_directive): Use obstack_strdup.
4589 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4590 * jit.c (finalize_symtab): Use obstack_strdup.
4591 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4592 (guess_partial_die_structure_name, partial_die_info::fixup)
4593 (dwarf2_name): Use obstack_strdup.
4594 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4595 obstack_strdup.
4596 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4597 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4598 obstack_strdup.
4599 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4600
d2834edc
PW
46012019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4602
4603 * unittests/help-doc-selftests.c: New file.
4604 * Makefile.in: Add the new file.
4605
590042fc
PW
46062019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4607
4608 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4609 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4610 the full first line, except when FOR_VALUE_PREFIX. In this case,
4611 the trailing '.' is not output, and the first character is uppercased.
4612 (print_help_for_command): Update call to print_doc_line.
4613 (print_doc_of_command): Likewise.
4614 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4615 * cli/cli-option.c (append_indented_doc): Do not append newline.
4616 (build_help_option): Append newline after first appended_indented_doc
4617 only if a second call is done.
4618 (build_help): Append 2 new lines before each option, except the first
4619 one.
4620 * compile/compile.c (_initialize_compile): Add new lines after
4621 %OPTIONS%, when not at the end of the help.
4622 Change help doc or code
4623 producing the help doc to respect the invariants.
4624 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4625 Also removed the new line after 'Options:', as all other commands
4626 do not put an empty line between 'Options:' and the first option.
4627 * printcmd.c (_initialize_printcmd): Likewise.
4628 * stack.c (_initialize_stack): Likewise.
4629 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4630 incorrectly telling COMMAND is optional.
4631 * ada-lang.c (_initialize_ada_language): Change help doc or code
4632 producing the help doc to respect the invariants.
4633 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4634 * breakpoint.c (_initialize_breakpoint): Likewise.
4635 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4636 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4637 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4638 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4639 _initialize_cli_style): Likewise.
4640 * corelow.c (core_target_info): Likewise.
4641 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4642 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4643 * filesystem.c (_initialize_filesystem): Likewise.
4644 * frame.c (_initialize_frame): Likewise.
4645 * gnu-nat.c (add_task_commands): Likewise.
4646 * infcall.c (_initialize_infcall): Likewise.
4647 * infcmd.c (_initialize_infcmd): Likewise.
4648 * interps.c (_initialize_interpreter): Likewise.
4649 * language.c (_initialize_language): Likewise.
4650 * linux-fork.c (_initialize_linux_fork): Likewise.
4651 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4652 * maint.c (_initialize_maint_cmds): Likewise.
4653 * memattr.c (_initialize_mem): Likewise.
4654 * printcmd.c (_initialize_printcmd): Likewise.
4655 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4656 _RegEx): Likewise.
4657 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4658 * record-btrace.c (_initialize_record_btrace): Likewise.
4659 * record-full.c (_initialize_record_full): Likewise.
4660 * record.c (_initialize_record): Likewise.
4661 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4662 * regcache.c (_initialize_regcache): Likewise.
4663 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4664 _initialize_remote): Likewise.
4665 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4666 * serial.c (_initialize_serial): Likewise.
4667 * skip.c (_initialize_step_skip): Likewise.
4668 * source.c (_initialize_source): Likewise.
4669 * stack.c (_initialize_stack): Likewise.
4670 * symfile.c (_initialize_symfile): Likewise.
4671 * symtab.c (_initialize_symtab): Likewise.
4672 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4673 * top.c (init_main): Likewise.
4674 * tracefile-tfile.c (tfile_target_info): Likewise.
4675 * tracepoint.c (_initialize_tracepoint): Likewise.
4676 * tui/tui-win.c (_initialize_tui_win): Likewise.
4677 * utils.c (add_internal_problem_command): Likewise.
4678 * valprint.c (value_print_option_defs): Likewise.
4679
404f2902
FCE
46802019-08-06 Frank Ch. Eigler <fche@redhat.com>
4681
4682 PR build/24886
4683 * configure.ac: Drop enable-libmcheck support.
4684 * configure, config.in: Rebuild.
4685 * libmcheck.m4: Remove.
4686 * acinclude.m4: Don't include it.
4687 * Makefile.in: Don't distribute it.
4688 * top.c (print_gdb_configuration): Don't mention it.
4689
046bebe1
TT
46902019-08-06 Tom Tromey <tom@tromey.com>
4691
4692 * utils.c (set_output_style): Sometimes pass stream to
4693 emit_style_escape.
4694 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4695 * record-btrace.c (btrace_insn_history): Update.
4696 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4697 method.
4698 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4699 Update initializers.
4700 <m_uiout>: New field.
4701 <m_di>: Move lower.
4702 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4703 Remove "uiout" parameter.
4704 (dump_insns): Update.
4705 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4706 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4707
ddbcedf5
CB
47082019-08-06 Christian Biesinger <cbiesinger@google.com>
4709
4710 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4711 (error_in_psymtab_expansion): Likewise.
4712 (lookup_symbol_via_quick_fns): Likewise.
4713 (basic_lookup_transparent_type_quick): Likewise.
4714 (basic_lookup_transparent_type_1): Likewise.
4715
b08b16c8
TT
47162019-08-06 Tom Tromey <tromey@adacore.com>
4717
4718 * source.c (last_source_error): Now bool.
4719 (print_source_lines_base): Make "noprint" bool. Only open
4720 source file when last_source_visited changes.
4721
cb44333d
TT
47222019-08-06 Tom Tromey <tromey@adacore.com>
4723
4724 * annotate.c (annotate_source_line): Use g_source_cache.
4725 * source-cache.c (source_cache::get_plain_source_lines): Change
4726 parameters. Populate m_offset_cache.
4727 (source_cache::ensure): New method.
4728 (source_cache::get_line_charpos): New method.
4729 (extract_lines): Move lower. Change parameters.
4730 (source_cache::get_source_lines): Move lower.
4731 * source-cache.h (class source_cache): Update comment.
4732 <get_line_charpos>: New method.
4733 <get_source_lines>: Update comment.
4734 <clear>: Clear m_offset_cache.
4735 <get_plain_source_lines>: Change parameters.
4736 <ensure>: New method
4737 <m_offset_cache>: New member.
4738 * source.c (forget_cached_source_info_for_objfile): Update.
4739 (info_source_command): Use g_source_cache.
4740 (find_source_lines, open_source_file_with_line_charpos): Remove.
4741 (print_source_lines_base, search_command_helper): Use g_source_cache.
4742 * source.h (open_source_file_with_line_charpos): Don't declare.
4743 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4744 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4745 Use g_source_cache.
4746
872dceaa
TT
47472019-08-06 Tom Tromey <tromey@adacore.com>
4748
4749 * source-cache.c (source_cache::get_plain_source_lines):
4750 Remove "first_line" and "last_line" parameters.
4751 (source_cache::get_source_lines): Cache plain text.
4752 * source-cache.h (class source_cache)
4753 <get_plain_source_lines>: Update.
4754
269249d9
TT
47552019-08-06 Tom Tromey <tromey@adacore.com>
4756
4757 * source-cache.c (extract_lines): No longer a method.
4758 Changed type of parameter. Include final newline.
4759 (selftests::extract_lines_test): New function.
4760 (_initialize_source_cache): Likewise.
4761 * source-cache.h (class source_cache)
4762 <extract_lines>: Don't declare.
4763
c0e8dcd8
TT
47642019-08-06 Tom Tromey <tromey@adacore.com>
4765
4766 * breakpoint.c (init_breakpoint_sal): Update.
4767 (breakpoint): Update.
4768 * breakpoint.h (struct breakpoint) <filter>: Now a
4769 unique_xmalloc_ptr.
4770
0b27c27d
CB
47712019-08-05 Christian Biesinger <cbiesinger@google.com>
4772
4773 * NEWS: Mention dictionary access on blocks.
4774 * python/py-block.c (blpy_getitem): New function.
4775 (block_object_as_mapping): New struct.
4776 (block_object_type): Use new struct for tp_as_mapping field.
4777
4ee94178
CB
47782019-08-05 Christian Biesinger <cbiesinger@google.com>
4779
4780 * objfiles.h (objfile): Add a comment describing partial symbols.
4781
8abfcabc
TT
47822019-08-05 Tom Tromey <tromey@adacore.com>
4783
4784 * compile/compile.c (_initialize_compile): Use _(), not N_().
4785 * thread.c (_initialize_thread): Use _(), not N_().
4786 * stack.c (_initialize_stack): Use _(), not N_().
4787 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4788
2b79f376
SM
47892019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4790
4791 * dwarf2read.c (struct dw2_symtab_iterator):
4792 <want_specific_block>: Remove.
4793 <block_index>: Change type to gdb::optional.
4794 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4795 change type of BLOCK_INDEX parameter to gdb::optional.
4796 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4797 (dw2_lookup_symbol): Don't pass argument for
4798 WANT_SPECIFIC_BLOCK.
4799 (dw2_expand_symtabs_for_function): Don't pass argument for
4800 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4801 (class dw2_debug_names_iterator)
4802 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4803 parameter, change BLOCK_INDEX type to gdb::optional.
4804 <m_want_specific_block>: Remove.
4805 <m_block_index>: Change type to gdb::optional.
4806 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4807 gdb::optional. Re-write in function of gdb::optional.
4808 (dw2_debug_names_lookup_symbol): Don't pass argument for
4809 WANT_SPECIFIC_BLOCK.
4810 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4811 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4812 BLOCK_INDEX.
4813
ae60f04e
PW
48142019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4815
4816 * NEWS: Mention changes to "info sources" command.
4817
28cd9371
PW
48182019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4819
4820 * symtab.c (filename_partial_match_opts): New struct type.
4821 (struct output_source_filename_data): New members
4822 regexp, c_regexp, partial_match.
4823 (output_source_filename): Use new members to decide to print file.
4824 (info_sources_option_defs): New variable.
4825 (make_info_sources_options_def_group, print_info_sources_header,
4826 info_sources_command_completer):
4827 New functions.
4828 (info_sources_command): Read new optional arguments.
4829 (_initialize_symtab): Update info sources help.
4830
ca683e3a
AO
48312019-08-02 Alexandre Oliva <oliva@adacore.com>
4832
4833 * ada-lang.c (exception_support_info_v0): Renamed from...
4834 (default_exception_support_info): ... this. Create new
4835 definition for v1.
4836 (ada_has_this_exception_support): Look up catch_handlers_sym.
4837 (ada_exception_support_info_sniffer): Try v0 after default.
4838
f1264162
TT
48392019-08-01 Tom Tromey <tromey@adacore.com>
4840
4841 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4842 gdbarch.h.
4843
0a7b2485
CB
48442019-08-01 Christian Biesinger <cbiesinger@google.com>
4845
4846 * s12z-tdep.c: Fix include path for s12z-opc.h.
4847
c6bdbeb7
AH
48482019-08-01 Alan Hayward <alan.hayward@arm.com>
4849
4850 * NEWS: Require GNU make 3.82.
4851
a2bd7b82
TT
48522019-07-16 Tom Tromey <tom@tromey.com>
4853
4854 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4855 declare.
4856
aa3b6533
TT
48572019-07-30 Tom Tromey <tromey@adacore.com>
4858
4859 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4860
a1530dc7
KB
48612019-07-30 Kevin Buettner <kevinb@redhat.com>
4862
4863 * printcmd.c (print_address_symbolic): Print negative offsets.
4864 (build_address_symbolic): Force signed arithmetic when computing
4865 offset.
4866
2906593f
CB
48672019-07-30 Christian Biesinger <cbiesinger@google.com>
4868
4869 PR/24474: Add a function to lookup static variables.
4870 * NEWS: Mention this new function.
4871 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4872 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4873 * python/python.c (python_GdbMethods): Add new function.
4874
c620ed88
CB
48752019-07-29 Christian Biesinger <cbiesinger@google.com>
4876
4877 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4878 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4879 (objfpy_lookup_static_symbol): New function.
4880 (objfile_object_methods): Add new functions.
4881
bc4268a5
PW
48822019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4883
4884 * NEWS: Mention 'set|show print frame-info'. Mention new
4885 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4886 backtrace argument. Mention that python frame filtering code
4887 is now consistent with what 'backtrace' command prints.
4888
4b5e8d19
PW
48892019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4890
4891 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4892 comments.
4893 (print_frame_info_auto, print_frame_info_source_line,
4894 print_frame_info_location, print_frame_info_source_and_location,
4895 print_frame_info_location_and_address, print_frame_info_short_location):
4896 New declarations.
4897 (struct frame_print_options): New member print_frame_info.
4898 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
4899 * stack.h (get_user_print_what_frame_info): New declaration.
4900 (frame_show_address): New declaration.
4901 * stack.c (print_frame_arguments_choices): New value 'presence'.
4902 (print_frame_info_auto, print_frame_info_source_line,
4903 print_frame_info_location, print_frame_info_source_and_location,
4904 print_frame_info_location_and_address, print_frame_info_short_location,
4905 print_frame_info_choices, print_frame_info_print_what): New definitions.
4906 (print_frame_args): Only print dots for args if print frame-arguments
4907 is 'presence'.
4908 (frame_print_option_defs): New element for "frame-info".
4909 (get_user_print_what_frame_info): New function.
4910 (frame_show_address): Make non static. Move comment to stack.h.
4911 (print_frame_info_to_print_what): New function.
4912 (print_frame_info): Update comment. Use fp_opts.print_frame_info
4913 to decide what to print.
4914 (backtrace_command_1): Handle the new print_frame_arguments_presence
4915 value.
4916 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
4917 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
4918 (py_print_frame): In non-mi mode, use LOCATION as default for
4919 print_what, similarly to frame information printed directly by
4920 backtrace command. Handle frame-info user option in non MI mode.
4921
6bdfee81
KB
49222019-07-27 Kevin Buettner <kevinb@redhat.com>
4923
4924 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
4925 Add case for debugging 32-bit target on 64-bit host. Revise
4926 comment.
4927
98a617f8
KB
49282019-07-27 Kevin Buettner <kevinb@redhat.com>
4929
4930 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
4931 instead of find_function_entry_range_from_pc.
4932
567238c9
KB
49332019-07-27 Kevin Buettner <kevinb@redhat.com>
4934
4935 * stack.c (find_frame_funname): Remove code which preferred
4936 minsym over symtab sym in "certain pathological cases".
4937
2dc80cf8
KB
4938 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
4939 parameter. Change type of "do_demangle" to bool.
4940 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4941 Pass suitable "prefer_sym_over_minsym" flag to
4942 build_address_symbolic(). Don't output "+" for negative offsets.
4943 * printcmd.c (print_address_symbolic): Update invocation of
4944 build_address_symbolic to include a "prefer_sym_over_minsym"
4945 flag.
4946 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
4947 Restrict cases in which use of minimal symbol is preferred to that
4948 of a found symbol. Update comments.
4949
1aff7173
KB
4950 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
4951 for entry pc when entry pc is out of range for that FDE.
4952
89b085ac
BC
49532019-07-26 Brian Callahan <bcallah@openbsd.org>
4954
4955 PR gdb/24839:
4956 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
4957 type.
4958
f32feb4a
CB
49592019-07-25 Christian Biesinger <cbiesinger@google.com>
4960
4961 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4962 this function's Python signature.
4963
4964
49652019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
4966
4967 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
4968 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4969 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4970 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
4971 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
4972
4973
c54e4253
YS
49742019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4975
4976 * h8300-tdep.c (h8300_register_name_common): New.
4977 h8300_register_name): Use h8300_register_name_common.
4978 (h8300s_register_name): Likewise.
4979 (h8300sx_register_name): Likewise.
4980 (h8300h_register_nam): New.
4981 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4982
4983
40eadf04
SP
49842019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4985
4986 * arm-tdep.c (arm_skip_cmse_entry): New function.
4987 (arm_is_sgstubs_section): New function.
4988 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
4989
bfa2a36d
TT
49902019-07-22 Tom Tromey <tom@tromey.com>
4991
4992 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
4993 Don't self-assign.
4994
a8e9d247
AB
49952019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4996
4997 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
4998 type_print.
4999
eb86c5e2
AB
50002019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5001
5002 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5003 so that GDB doesn't match any msymbols when searching in the
5004 TYPES_DOMAIN.
5005 (print_symbol_info): Print using typedef_print or type_print based
5006 on the type of the symbol. Add updated FIXME comment moved from...
5007 (_initialize_symtab): ... move and update FIXME comment to above.
5008
a8eab7c6
AB
50092019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5010
5011 * NEWS: Mention adding -q option to "info types".
5012 * symtab.c (struct info_types_options): New struct.
5013 (info_types_options_defs): New variable.
5014 (make_info_types_options_def_group): New function.
5015 (info_types_command): Use gdb::option framework to parse options.
5016 (info_types_command_completer): New function.
5017 (_initialize_symtab): Extend the help text on "info types" and
5018 register command completer.
5019
b4603c34
CB
50202019-07-21 Christian Biesinger <cbiesinger@google.com>
5021
5022 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5023 (lookup_symbol_in_objfile): Change int to block_enum and add a
5024 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5025
c8cdc1e0
CB
50262019-07-20 Christian Biesinger <cbiesinger@google.com>
5027
5028 * MAINTAINERS (Write After Approval): Add self.
5029
01e175fe
AB
50302019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5031
5032 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5033 instruction to the dummy code region.
5034
56f79b63
TT
50352019-07-19 Tom Tromey <tromey@adacore.com>
5036
5037 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5038 (ARGSUSED, PARAMS, __func__): Remove rules.
5039
4c5aa8e0
AH
50402019-07-19 Alan Hayward <alan.hayward@arm.com>
5041
5042 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5043 * features/arm/arm-with-iwmmxt.c: Remove.
5044 * features/arm/arm-with-iwmmxt.xml: Remove.
5045 * features/arm/arm-with-m-fpa-layout.c: Remove.
5046 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5047 * features/arm/arm-with-m-vfp-d16.c: Remove.
5048 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5049 * features/arm/arm-with-m.c: Remove.
5050 * features/arm/arm-with-m.xml: Remove.
5051 * features/arm/arm-with-neon.c: Remove.
5052 * features/arm/arm-with-neon.xml: Remove.
5053 * features/arm/arm-with-vfpv2.c: Remove.
5054 * features/arm/arm-with-vfpv2.xml: Remove.
5055 * features/arm/arm-with-vfpv3.c: Remove.
5056 * features/arm/arm-with-vfpv3.xml: Remove.
5057
f42b2617
AH
50582019-07-19 Alan Hayward <alan.hayward@arm.com>
5059
5060 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5061
f29ec966
AH
50622019-07-19 Alan Hayward <alan.hayward@arm.com>
5063
5064 * arch/aarch32.c (aarch32_create_target_description): Create
5065 target descriptions using features.
5066 * arch/arm.c (arm_create_target_description)
5067 (arm_create_mprofile_target_description): Likewise.
5068 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5069
d105cce5
AH
50702019-07-19 Alan Hayward <alan.hayward@arm.com>
5071
5072 * Makefile.in: Add new files.
5073 * aarch32-tdep.c: New file.
5074 * aarch32-tdep.h: New file.
5075 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5076 Call aarch32_read_description.
5077 * arch/aarch32.c: New file.
5078 * arch/aarch32.h: New file.
5079 * arch/arm.c (arm_create_target_description)
5080 (arm_create_mprofile_target_description): New function.
5081 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5082 (arm_create_target_description)
5083 (arm_create_mprofile_target_description): New declaration.
5084 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5085 read_description functions.
5086 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5087 Likewise.
5088 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5089 * arm-tdep.c (tdesc_arm_list): New variable.
5090 (arm_register_g_packet_guesses): Call create description functions.
5091 (arm_read_description) (arm_read_mprofile_description): New
5092 function.
5093 * arm-tdep.h (arm_read_description)
5094 (arm_read_mprofile_description): Add declaration.
5095 * configure.tgt: Add new files.
5096
afe09f0b
GL
50972019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5098
5099 * top.c (new_ui_command): Open specified terminal just once.
5100
cd215b2e
TT
51012019-07-18 Tom Tromey <tromey@adacore.com>
5102
5103 * symtab.c (main_name): Constify return type.
5104 * symfile.c (set_initial_language): Update.
5105 * symtab.h (main_name): Constify return type.
5106
d8f68fcb
TT
51072019-07-17 Tom Tromey <tom@tromey.com>
5108
5109 * tui/tui-winsource.c (tui_update_source_window)
5110 (tui_update_source_window_as_is)
5111 (tui_update_source_windows_with_line): Remove return.
5112 * tui/tui-disasm.c (tui_show_disassem)
5113 (tui_show_disassem_and_update_source): Remove return.
5114 * tui/tui.c (tui_reset): Remove return.
5115 * tui/tui-wingeneral.c
5116 (tui_check_and_display_highlight_if_needed): Remove return.
5117
ca5af91e
TT
51182019-07-17 Tom Tromey <tom@tromey.com>
5119
5120 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5121
5104fe36
TT
51222019-07-17 Tom Tromey <tom@tromey.com>
5123
5124 * tui/tui-winsource.h (struct tui_exec_info_window)
5125 (struct tui_source_window_base): Move from tui-data.h.
5126 * tui/tui-winsource.c: Move many method definitions from
5127 elsewhere. Remove "structuring" comments.
5128 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5129 (tui_source_window_base::refresh_window): Move to
5130 tui-winsource.c.
5131 * tui/tui-win.c (tui_source_window_base::refresh_all)
5132 (tui_source_window_base::update_tab_width)
5133 (tui_source_window_base::set_new_height)
5134 (tui_source_window_base::do_make_visible_with_new_height): Move to
5135 tui-winsource.c.
5136 * tui/tui-source.h: Update.
5137 * tui/tui-source.c (tui_source_window_base::reset): Move to
5138 tui-winsource.c.
5139 * tui/tui-disasm.h: Update.
5140 * tui/tui-data.h (struct tui_exec_info_window): Move to
5141 tui-winsource.h.
5142 (struct tui_source_window_base): Likewise.
5143 * tui/tui-data.c (tui_source_window_base::clear_detail)
5144 (tui_source_window_base, ~tui_source_window_base): Move to
5145 tui-winsource.c.
5146
daa15dde
TT
51472019-07-17 Tom Tromey <tom@tromey.com>
5148
5149 * tui/tui-win.c (tui_resize_all)
5150 (tui_source_window_base::update_tab_width)
5151 (tui_adjust_win_heights): Update.
5152 (tui_win_info::make_invisible_and_set_new_height): Rename from
5153 make_invisible_and_set_new_height.
5154 * tui/tui-data.h (struct tui_win_info)
5155 <make_invisible_and_set_new_height>: New method.
5156
bfad4537
TT
51572019-07-17 Tom Tromey <tom@tromey.com>
5158
5159 * tui/tui.c: Update.
5160 * tui/tui-source.h (struct tui_source_window): Move from
5161 tui-data.h.
5162 * tui/tui-layout.c: Update.
5163 * tui/tui-disasm.c: Update.
5164 * tui/tui-data.h (struct tui_source_window): Move to
5165 tui-source.h.
5166
88f7e873
TT
51672019-07-17 Tom Tromey <tom@tromey.com>
5168
5169 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5170 tui-data.h.
5171 * tui/tui-data.h (struct tui_disasm_window): Move to
5172 tui-disasm.h.
5173
96bd6233
TT
51742019-07-17 Tom Tromey <tom@tromey.com>
5175
5176 * tui/tui-regs.h (struct tui_data_item_window): Move from
5177 tui-data.h.
5178 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5179 * tui/tui-data.h (struct tui_data_item_window): Move to
5180 tui-regs.h.
5181 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5182
ce38393b
TT
51832019-07-17 Tom Tromey <tom@tromey.com>
5184
5185 * tui/tui.c: Update.
5186 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5187 (tui_cmd_window::max_height): Move to tui-command.c.
5188 * tui/tui-layout.c: Update.
5189 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5190 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5191 tui-command.c.
5192 * tui/tui-command.h (struct tui_cmd_window): Move from
5193 tui-data.h.
5194 * tui/tui-command.c: Remove "structuring" comments.
5195 (tui_cmd_window::clear_detail)
5196 (tui_cmd_window::do_make_visible_with_new_height)
5197 (tui_cmd_window::max_height): Move from elsewhere.
5198
2d8b51cb
TT
51992019-07-17 Tom Tromey <tom@tromey.com>
5200
5201 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5202 Now static.
5203 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5204 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5205
18ab23af
TT
52062019-07-17 Tom Tromey <tom@tromey.com>
5207
5208 * tui/tui.c: Update.
5209 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5210 tui-regs.c.
5211 * tui/tui-windata.h: Remove file.
5212 * tui/tui-windata.c: Remove file.
5213 * tui/tui-win.c (tui_data_window::set_new_height)
5214 (tui_data_window::do_make_visible_with_new_height): Move to
5215 tui-regs.c.
5216 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5217 * tui/tui-regs.c: Remove "structuring" comments.
5218 (tui_data_window::first_data_item_displayed)
5219 (tui_data_window::delete_data_content_windows)
5220 (tui_data_window::erase_data_content)
5221 (tui_data_window::display_all_data)
5222 (tui_data_window::refresh_all)
5223 (tui_data_window::do_scroll_vertical)
5224 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5225 (tui_data_window::do_make_visible_with_new_height)
5226 (tui_data_window::refresh_window): Move from elsewhere.
5227 (_initialize_tui_regs): Move to end of file.
5228 * tui/tui-layout.c: Update.
5229 * tui/tui-hooks.c: Update.
5230 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5231 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5232 tui-regs.c.
5233 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5234
88b7e7cc
TT
52352019-07-17 Tom Tromey <tom@tromey.com>
5236
5237 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5238 seen.
5239
0fcd3711
TT
52402019-07-17 Tom Tromey <tom@tromey.com>
5241
5242 * tui/tui-win.c (tui_source_window_base::set_new_height)
5243 (tui_source_window_base::do_make_visible_with_new_height): Use
5244 m_has_locator field directly.
5245 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5246 method.
5247 (struct tui_source_window_base) <has_locator>: Likewise.
5248
4a38112d
TT
52492019-07-17 Tom Tromey <tom@tromey.com>
5250
5251 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5252 Don't declare.
5253 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5254 Remove.
5255 * tui/tui-win.c (tui_source_window_base::set_new_height)
5256 (tui_source_window_base::set_new_height)
5257 (make_invisible_and_set_new_height)
5258 (tui_source_window_base::do_make_visible_with_new_height)
5259 (tui_source_window_base::do_make_visible_with_new_height):
5260 Update.
5261 * tui/tui-layout.c (show_source_disasm_command, show_data)
5262 (show_source_or_disasm_and_command): Update.
5263 * tui/tui-layout.c (show_layout): Update.
5264
09129226
TT
52652019-07-17 Tom Tromey <tom@tromey.com>
5266
5267 * tui/tui-layout.c (make_data_window): Remove.
5268 (show_data): Unify creation and re-initialization cases.
5269
4a8a5e84
TT
52702019-07-17 Tom Tromey <tom@tromey.com>
5271
5272 * tui/tui-layout.c (make_source_window, make_disasm_window):
5273 Remove.
5274 (show_data): Unify creation and re-initialization cases.
5275
76d2be8e
TT
52762019-07-17 Tom Tromey <tom@tromey.com>
5277
5278 * tui/tui-layout.c (make_command_window): Remove.
5279 (show_source_disasm_command, show_source_or_disasm_and_command):
5280 Unify creation and re-initialization cases.
5281
890b8bde
TT
52822019-07-17 Tom Tromey <tom@tromey.com>
5283
5284 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5285 creation and re-initialization cases.
5286
2cdfa113
TT
52872019-07-17 Tom Tromey <tom@tromey.com>
5288
5289 * tui/tui-regs.c (tui_get_register): Return void.
5290
8e3cfd09
TT
52912019-07-17 Tom Tromey <tom@tromey.com>
5292
5293 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5294 Simplify.
5295
f4e04977
TT
52962019-07-17 Tom Tromey <tom@tromey.com>
5297
5298 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5299 resetting.
5300
0379b883
TT
53012019-07-17 Tom Tromey <tom@tromey.com>
5302
5303 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5304 * tui/tui-regs.c (tui_reg_layout): New function.
5305 (tui_show_registers, tui_reg_command): Use it.
5306 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5307 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5308 parameters.
5309 (tui_layout_command): Remove.
5310
b7fbad91
TT
53112019-07-17 Tom Tromey <tom@tromey.com>
5312
5313 * tui/tui-layout.h (tui/tui-layout): Return void.
5314 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5315
4e1e56b9
TT
53162019-07-17 Tom Tromey <tom@tromey.com>
5317
5318 * tui/tui-layout.c (show_source_disasm_command, show_data):
5319 Update.
5320 (reset_locator): Remove.
5321 (show_source_or_disasm_and_command): Update.
5322
1e0c09ba
TT
53232019-07-17 Tom Tromey <tom@tromey.com>
5324
5325 * tui/tui-source.c (tui_source_window_base::reset): Remove
5326 win_type parameter.
5327 * tui/tui-layout.c (make_command_window, make_source_window)
5328 (make_disasm_window, make_data_window)
5329 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5330 (reset_locator, show_source_or_disasm_and_command): Update.
5331 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5332 win_type parameter.
5333 (struct tui_source_window_base) <reset>: Likewise.
5334
1bf605de
TT
53352019-07-17 Tom Tromey <tom@tromey.com>
5336
5337 * tui/tui-layout.c (show_source_disasm_command): Use
5338 reset_locator.
5339 (reset_locator): New function.
5340 (init_and_make_win): Remove.
5341 (show_source_or_disasm_and_command): Use reset_locator.
5342
098f9ed4
TT
53432019-07-17 Tom Tromey <tom@tromey.com>
5344
5345 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5346 condition.
5347 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5348 Remove condition.
5349 * tui/tui-source.c (tui_source_window_base::reset): New method.
5350 * tui/tui-layout.c (make_command_window): Don't call
5351 init_and_make_win.
5352 (make_source_window, make_disasm_window): Don't call
5353 make_source_or_disasm_window.
5354 (make_data_window): Don't call init_and_make_win. Change calling
5355 convention.
5356 (show_source_disasm_command, show_data): Simplify.
5357 (make_source_or_disasm_window): Remove.
5358 (show_source_or_disasm_and_command): Simplify.
5359 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5360 (struct tui_source_window_base) <reset>: Likewise.
5361 <execution_info>: Remove initializer.
5362 * tui/tui-data.c (tui_source_window_base): Initialize
5363 execution_info.
5364
80110957
TT
53652019-07-17 Tom Tromey <tom@tromey.com>
5366
5367 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5368 variable.
5369
cf82af05
TT
53702019-07-17 Tom Tromey <tom@tromey.com>
5371
5372 * tui/tui.c (tui_rl_other_window): Update.
5373 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5374 superclass method first. Always iterate over regs_content.
5375 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5376 method.
5377 * tui/tui-win.c (tui_set_focus_command): Update.
5378
01aeb396
TT
53792019-07-17 Tom Tromey <tom@tromey.com>
5380
5381 * tui/tui-win.c (tui_set_focus_command): Rename from
5382 tui_set_focus. Call tui_enable.
5383 (tui_set_focus_command): Remove.
5384
fd6c75ee
TT
53852019-07-17 Tom Tromey <tom@tromey.com>
5386
5387 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5388 refresh_window.
5389 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5390 touchwin.
5391 (tui_data_window::refresh_window): Call refresh_window on data
5392 items. Always call superclass refresh_window.
5393 (tui_win_info::refresh): Remove.
5394 (tui_source_window_base::refresh_window): Update.
5395 (tui_refresh_all): Update.
5396 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5397 refresh_window.
5398 (show_source_or_disasm_and_command): Likewise.
5399 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5400 (struct tui_source_window_base) <refresh>: Likewise.
5401
f6cc34a9
TT
54022019-07-17 Tom Tromey <tom@tromey.com>
5403
5404 * tui/tui-winsource.c (tui_clear_source_content)
5405 (tui_show_source_content): Update.
5406 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5407 whether content is empty.
5408 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5409 Remove.
5410
f31ec9af
TT
54112019-07-17 Tom Tromey <tom@tromey.com>
5412
5413 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5414 window's contents.
5415 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5416 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5417
d1b6f1e5
TT
54182019-07-17 Tom Tromey <tom@tromey.com>
5419
5420 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5421 (struct tui_data_item_window): Update.
5422
d9743a13
TT
54232019-07-17 Tom Tromey <tom@tromey.com>
5424
5425 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5426 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5427 defines.
5428
caf0bc4e
TT
54292019-07-17 Tom Tromey <tom@tromey.com>
5430
5431 * tui/tui-winsource.h (tui_erase_source_content)
5432 (tui_clear_source_content): Remove "display_prompt" parameter.
5433 * tui/tui-winsource.c (tui_update_source_window_as_is)
5434 (tui_update_source_windows_with_addr): Update.
5435 (tui_clear_source_content): Remove "display_prompt" parameter.
5436 (tui_erase_source_content): Likewise. Simplify.
5437 (tui_show_source_content): Update.
5438 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5439 * tui/tui-stack.c (tui_show_frame_info): Update.
5440 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5441 Remove defines.
5442
9d391078
TT
54432019-07-17 Tom Tromey <tom@tromey.com>
5444
5445 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5446 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5447 parameter.
5448 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5449 parameter.
5450
a38da35d
TT
54512019-07-17 Tom Tromey <tom@tromey.com>
5452
5453 * tui/tui-winsource.c (tui_clear_source_content)
5454 (tui_show_source_content, tui_show_exec_info_content)
5455 (tui_clear_exec_info_content): Update.
5456 * tui/tui-stack.c (tui_show_locator_content): Update.
5457 (tui_show_frame_info): Update.
5458 * tui/tui-source.h (tui_source_window): Don't declare.
5459 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5460 from tui_source_is_displayed.
5461 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5462 Remove field.
5463 (struct tui_source_window_base) <content_in_use>: New field. Now
5464 bool.
5465 (struct tui_source_window) <showing_source_p>: New method.
5466 (TUI_SRC_WIN): Change cast.
5467 * tui/tui-data.c (tui_initialize_static_data): Update.
5468
c2cd8994
TT
54692019-07-17 Tom Tromey <tom@tromey.com>
5470
5471 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5472 location_matches_p.
5473 * tui/tui-source.c (tui_source_window::location_matches_p): New
5474 method.
5475 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5476 method.
5477 * tui/tui-data.h (struct tui_source_window_base)
5478 <location_matches_p>: New method.
5479 (struct tui_source_window, struct tui_disasm_window)
5480 <location_matches_p>: Likewise.
5481
4dde7b34
TT
54822019-07-17 Tom Tromey <tom@tromey.com>
5483
5484 * tui/tui-win.c (tui_set_win_height_command): Rename from
5485 tui_set_win_height.
5486 (tui_set_win_height_command): Remove.
5487
b73dd877
TT
54882019-07-17 Tom Tromey <tom@tromey.com>
5489
5490 * tui/tui-source.c (tui_source_window): New constructor. Add
5491 observer.
5492 (~tui_source_window): New destructor.
5493 (tui_source_window::style_changed): New method.
5494 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5495 (tui_attach_detach_observers): Update.
5496 * tui/tui-data.h (struct tui_source_window): Make constructor not
5497 inline. Add destructor.
5498 (struct tui_source_window) <style_changed>: New method.
5499 <m_observable>: New member.
5500
ae2b5380
TT
55012019-07-17 Tom Tromey <tom@tromey.com>
5502
5503 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5504 * tui/tui-win.c (tui_resize_all): Fix typo.
5505
1ce3e844
TT
55062019-07-17 Tom Tromey <tom@tromey.com>
5507
5508 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5509 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5510 (tui_refresh_all): Remove "list" parameter. Use foreach.
5511 * tui/tui-win.c (window_name_completer): Use foreach.
5512 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5513 (update_tab_width): Likewise.
5514 * tui/tui-layout.c (show_layout): Update.
5515 * tui/tui-data.h (class tui_window_iterator): New.
5516 (struct all_tui_windows): New.
5517 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5518
fe3eaf1c
TT
55192019-07-17 Tom Tromey <tom@tromey.com>
5520
5521 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5522 parameter. Don't reference globals.
5523 (tui_reg_command): Update.
5524
368c1354
TT
55252019-07-17 Tom Tromey <tom@tromey.com>
5526
5527 * tui/tui-regs.c (tui_show_registers): Simplify.
5528
e80cd204
TT
55292019-07-17 Tom Tromey <tom@tromey.com>
5530
5531 * tui/tui-regs.c (tui_show_registers): Update.
5532 (tui_show_register_group): Add win_info parameter.
5533
aca2dd16
TT
55342019-07-17 Tom Tromey <tom@tromey.com>
5535
5536 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5537 Rename from tui_display_reg_element_at_line.
5538 (tui_data_window::display_registers_from_line): Update.
5539 * tui/tui-data.h (struct tui_data_window)
5540 <display_reg_element_at_line>: New method.
5541
517e9505
TT
55422019-07-17 Tom Tromey <tom@tromey.com>
5543
5544 * tui/tui-regs.h (tui_display_registers_from)
5545 (tui_display_registers_from_line): Don't declare.
5546 * tui/tui-windata.c (tui_data_window::display_all_data)
5547 (tui_data_window::refresh_all)
5548 (tui_data_window::do_scroll_vertical): Update.
5549 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5550 from tui_display_registers_from.
5551 (tui_display_reg_element_at_line): Update.
5552 (tui_data_window::display_registers_from_line): Rename from
5553 tui_display_registers_from_line.
5554 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5555 display_registers_from_line>: New methods.
5556
f76d8b19
TT
55572019-07-17 Tom Tromey <tom@tromey.com>
5558
5559 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5560 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5561 from tui_erase_data_content.
5562 (tui_data_window::display_all_data)
5563 (tui_data_window::refresh_all)
5564 (tui_data_window::do_scroll_vertical): Update.
5565 * tui/tui-regs.c (tui_show_registers): Update.
5566 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5567 New method.
5568
b4094625
TT
55692019-07-17 Tom Tromey <tom@tromey.com>
5570
5571 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5572 declare.
5573 * tui/tui-windata.c
5574 (tui_data_window::delete_data_content_windows): Rename from
5575 tui_delete_data_content_windows.
5576 (tui_data_window::display_all_data)
5577 (tui_data_window::do_scroll_vertical): Update.
5578 * tui/tui-data.h (struct tui_data_window)
5579 <delete_data_content_windows>: New method.
5580
c223a729
TT
55812019-07-17 Tom Tromey <tom@tromey.com>
5582
5583 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5584 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5585
50daf268
TT
55862019-07-17 Tom Tromey <tom@tromey.com>
5587
5588 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5589 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5590 from tui_display_all_data.
5591 * tui/tui-win.c
5592 (tui_data_window::do_make_visible_with_new_height): Update.
5593 * tui/tui-regs.c (tui_show_registers): Update.
5594 * tui/tui-layout.c (tui_set_layout): Update.
5595 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5596 method.
5597
df5f8cab
TT
55982019-07-17 Tom Tromey <tom@tromey.com>
5599
5600 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5601 * tui/tui-windata.c (tui_display_data_from): Remove.
5602 (tui_data_window::refresh_all): Update.
5603
80cb6c27
TT
56042019-07-17 Tom Tromey <tom@tromey.com>
5605
5606 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5607 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5608 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5609 tui_display_registers_from_line.
5610 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5611 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5612 "force_display" parameter.
5613
baff0c28
TT
56142019-07-17 Tom Tromey <tom@tromey.com>
5615
5616 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5617 declare.
5618 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5619 Rename from tui_first_reg_element_no_inline.
5620 (tui_display_reg_element_at_line)
5621 (tui_display_registers_from_line): Update.
5622 * tui/tui-data.h (struct tui_data_window)
5623 <first_reg_element_no_inline>: New method.
5624
3b23c5f2
TT
56252019-07-17 Tom Tromey <tom@tromey.com>
5626
5627 * tui/tui-windata.c (tui_display_data_from)
5628 (tui_data_window::do_scroll_vertical): Update.
5629 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5630 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5631 Rename from tui_line_from_reg_element_no.
5632 (tui_display_registers_from_line): Update.
5633 * tui/tui-data.h (struct tui_data_window)
5634 <line_from_reg_element_no>: New method.
5635
0b5ec218
TT
56362019-07-17 Tom Tromey <tom@tromey.com>
5637
5638 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5639 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5640 tui_last_regs_line_no.
5641 (tui_display_reg_element_at_line)
5642 (tui_display_registers_from_line): Update.
5643 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5644 method.
5645
0807ab7b
TT
56462019-07-17 Tom Tromey <tom@tromey.com>
5647
5648 PR tui/24722:
5649 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5650 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5651 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5652 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5653 (tui_update_breakpoint_info): Likewise.
5654 * tui/tui-hooks.c (tui_event_create_breakpoint)
5655 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5656 Update.
5657
9ad7fdef
TT
56582019-07-17 Tom Tromey <tom@tromey.com>
5659
5660 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5661
5813316f
TT
56622019-07-17 Tom Tromey <tom@tromey.com>
5663
5664 * tui/tui-winsource.c (tui_update_source_window_as_is)
5665 (tui_update_source_windows_with_addr): Update.
5666 * tui/tui-source.h (tui_set_source_content)
5667 (tui_show_symtab_source): Add "win_info" parameter.
5668 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5669 parameter.
5670 (tui_show_symtab_source): Likewise.
5671
00e264e7
TT
56722019-07-17 Tom Tromey <tom@tromey.com>
5673
5674 * tui/tui-wingeneral.c
5675 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5676
06210ce4
TT
56772019-07-17 Tom Tromey <tom@tromey.com>
5678
5679 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5680 (struct tui_cmd_window) <can_scroll>: New method.
5681 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5682 method.
5683
381befee
TT
56842019-07-17 Tom Tromey <tromey@adacore.com>
5685
5686 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5687 do_field_signed>: Rename. Change type of "value".
5688 * ui-out.c (ui_out::field_signed): Rename from field_int.
5689 Change type of "value".
5690 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5691 type of "value".
5692 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5693 do_field_int. Change type of "value".
5694 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5695 do_field_int. Change type of "value".
5696 * tracepoint.c (trace_status_mi, tfind_1)
5697 (print_one_static_tracepoint_marker): Update.
5698 * thread.c (print_thread_info_1, print_selected_thread_frame):
5699 Update.
5700 * stack.c (print_frame, print_frame_info): Update.
5701 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5702 Update.
5703 * source.c (print_source_lines_base): Update.
5704 * skip.c (info_skip_command): Update.
5705 * record-btrace.c (btrace_ui_out_decode_error)
5706 (btrace_call_history_src_line): Update.
5707 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5708 Update.
5709 * progspace.c (print_program_space): Update.
5710 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5711 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5712 do_field_int. Change type of "value".
5713 * mi/mi-out.c (mi_ui_out::do_table_begin)
5714 (mi_ui_out::do_table_header): Update.
5715 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5716 type of "value".
5717 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5718 (mi_cmd_data_list_changed_registers, output_register)
5719 (mi_cmd_data_read_memory, mi_load_progress)
5720 (mi_cmd_trace_frame_collected): Update.
5721 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5722 Update.
5723 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5724 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5725 (mi_cmd_var_list_children, varobj_update_one): Update.
5726 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5727 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5728 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5729 * inferior.c (print_inferior): Update.
5730 * gdb_bfd.c (print_one_bfd): Update.
5731 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5732 Update.
5733 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5734 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5735 do_field_int. Change type of "value".
5736 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5737 do_field_int. Change type of "value".
5738 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5739 (print_one_breakpoint_location, print_it_catch_fork)
5740 (print_one_catch_fork, print_it_catch_vfork)
5741 (print_one_catch_vfork, print_it_catch_solib)
5742 (print_it_catch_exec, print_it_ranged_breakpoint)
5743 (print_mention_watchpoint, print_mention_masked_watchpoint)
5744 (bkpt_print_it, update_static_tracepoint): Update.
5745 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5746 * break-catch-syscall.c (print_it_catch_syscall): Update.
5747 * ada-tasks.c (print_ada_task_info): Update.
5748 * ada-lang.c (print_it_exception, print_mention_exception):
5749 Update.
5750
6b78c3f8
AB
57512019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5752
5753 PR breakpoints/24541
5754 * gdbarch.c: Regenerate.
5755 * gdbarch.h: Regenerate.
5756 * gdbarch.sh: Adjust return type and parameter types for
5757 'stap_adjust_register'.
5758 (i386_stap_adjust_register): Adjust signature and return new
5759 register name.
5760 * stap-probe.c (stap_parse_register_operand): Adjust use of
5761 'gdbarch_stap_adjust_register'.
5762
d72a9b85
TT
57632019-07-17 Tom Tromey <tromey@adacore.com>
5764
5765 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5766 declare VEC.
5767 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5768 std::vector.
5769 (struct s390_process_info): Add initializers.
5770 (s390_add_process): Use new.
5771 (s390_linux_nat_target::low_forget_process): Use delete.
5772 (s390_linux_nat_target::low_new_fork)
5773 (s390_linux_nat_target::stopped_by_watchpoint)
5774 (s390_linux_nat_target::low_prepare_to_resume)
5775 (s390_linux_nat_target::insert_watchpoint)
5776 (s390_linux_nat_target::insert_hw_breakpoint)
5777 (s390_linux_nat_target::remove_watchpoint)
5778 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5779
206e6c58
JB
57802019-07-16 John Baldwin <jhb@FreeBSD.org>
5781
5782 * aarch64-fbsd-nat.c: Include regcache.h.
5783 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5784 argument.
5785 (aarch64_fbsd_nat_target::fetch_registers)
5786 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5787 variable.
5788 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5789
cbde90f2
JB
57902019-07-16 John Baldwin <jhb@FreeBSD.org>
5791
5792 * fbsd-nat.c: Include gdbarch.h.
5793
07128006
TT
57942019-07-15 Tom Tromey <tromey@adacore.com>
5795
5796 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5797
1f77b012
TT
57982019-07-15 Tom Tromey <tromey@adacore.com>
5799
5800 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5801 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5802 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5803 * cli-out.c (cli_ui_out::do_field_int): New method.
5804 * ui-out.c (ui_out::field_unsigned): New method.
5805 * symfile.c (generic_load): Use field_unsigned.
5806 (print_transfer_performance): Likewise.
5807 * record-btrace.c (ui_out_field_uint): Remove.
5808 (btrace_call_history_insn_range, btrace_call_history): Use
5809 field_unsigned.
5810 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5811 field_unsigned.
5812 * ui-out.h (class ui_out) <field_unsigned>: New method.
5813 <do_field_unsigned>: Likewise.
5814
33eca680
TT
58152019-07-15 Tom Tromey <tromey@adacore.com>
5816
5817 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5818 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5819 * target.c (flash_erase_command): Use field_string.
5820 * infrun.c (print_signal_received_reason): Use field_string.
5821 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5822 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5823 field_string.
5824 * ada-tasks.c (print_ada_task_info): Use field_string.
5825
ca8d69be
TT
58262019-07-15 Tom Tromey <tromey@adacore.com>
5827
5828 * target.c (flash_erase_command): Use field_core_addr.
5829 * symfile.c (generic_load): Use field_core_addr.
5830 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5831 Use field_core_addr.
5832 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5833 field_core_addr.
5834
0d4e84ed
AB
58352019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5836
5837 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5838 value if its desired type is smaller than a CORE_ADDR and signed.
5839
9a49df9d
AB
58402019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5841
5842 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5843 of changes to field names, and use new is_reference field to
5844 decide if a property is a reference or not.
5845 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5846 field.
5847 (struct dwarf2_property_baton): Update header comment, rename
5848 'referenced_type' to 'property_type' and update comments.
5849 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5850 default property type, store in property baton, update to take
5851 accound of renamed field.
5852 (read_func_scope): Update call to attr_to_dynamic_prop.
5853 (read_array_type): Likewise.
5854 (dwarf2_per_cu_addr_sized_int_type): New function.
5855 (read_subrange_index_type): Move type finding code to
5856 dwarf2_per_cu_addr_sized_int_type.
5857 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5858 (dwarf2_per_cu_addr_type): New function.
5859 (set_die_type): Update calls to attr_to_dynamic_prop.
5860
b86352cf
AB
58612019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5862
5863 * dwarf2read.c (read_subrange_index_type): New function.
5864 (read_subrange_type): Move code into new function and call it.
5865 * gdbtypes.c (create_range_type): Add some asserts.
5866
603490bf
AB
58672019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5868
5869 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5870 update return statements.
5871 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5872 declaration, and update comment to match.
5873 * gdbtypes.c (resolve_dynamic_array): Update call to
5874 dwarf2_evaluate_property to match new return type.
5875
592f9d27
AB
58762019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5877
5878 * valarith.c (value_subscripted_rvalue): Change lowerbound
5879 parameter type from int to LONGEST.
5880 * value.h (value_subscripted_rvalue): Likewise in declaration.
5881
60cfcb20
AB
58822019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5883
5884 * cli/cli-utils.c (info_print_command_completer): New function.
5885 * cli/cli-utils.h: Add 'completer.h' include, and forward
5886 declaration for 'struct cmd_list_element'.
5887 (info_print_command_completer): Declare.
5888 * stack.c (_initialize_stack): Add completer for 'info locals' and
5889 'info args'.
5890 * symtab.c (_initialize_symtab): Add completer for 'info
5891 variables' and 'info functions'.
5892 * NEWS: Mention completion for additional info commands.
5893
b16507e0
AB
58942019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5895
5896 * cli/cli-utils.c (extract_info_print_args): Delete.
5897 (extract_arg_maybe_quoted): Delete.
5898 (info_print_options_defs): New variable.
5899 (make_info_print_options_def_group): New function.
5900 (extract_info_print_options): Define new function.
5901 * cli/cli-utils.h (extract_info_print_args): Delete.
5902 (struct info_print_options): New structure.
5903 (extract_info_print_options): Declare new function.
5904 * stack.c (info_locals_command): Update to use new
5905 extract_info_print_options, also add a header comment.
5906 (info_args_command): Likewise.
5907 * symtab.c (info_variables_command): Likewise.
5908 (info_functions_command): Likewise.
5909
021d8588
AB
59102019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5911
5912 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
5913 to extract string arguments.
5914 * common/common-utils.c (extract_string_maybe_quoted): New function.
5915 * common/common-utils.h (extract_string_maybe_quoted): Declare.
5916
b777eb6d
TT
59172019-07-11 Tom Tromey <tromey@adacore.com>
5918
5919 * main.c (get_init_files): Use GDBINIT, not gdbinit.
5920 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
5921 * top.h (gdbinit): Don't declare.
5922 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
5923 into...
5924 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
5925 * top.c (gdb_init): Don't call init_cli_cmds.
5926 (gdbinit): Remove.
5927 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
5928
72ee03ff
TT
59292019-07-11 Tom Tromey <tromey@adacore.com>
5930
5931 * python/py-inferior.c (add_thread_object): Don't use thread_obj
5932 after it has been moved.
5933
00db9531
SM
59342019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5935
5936 * valops.c (value_must_coerce_to_target): Change return type to
5937 bool.
5938 * value.h (value_must_coerce_to_target): Likewise.
5939
f2478a7e
SM
59402019-07-10 Simon Marchi <simon.marchi@efficios.com>
5941
5942 * breakpoint.c (is_hardware_watchpoint): Remove
5943 forward-declaration.
5944 (is_masked_watchpoint): Change return type to bool.
5945 (is_tracepoint): Likewise.
5946 (is_breakpoint): Likewise.
5947 (is_hardware_watchpoint): Likewise.
5948 (is_watchpoint): Likewise.
5949 (is_no_memory_software_watchpoint): Likewise.
5950 (is_catchpoint): Likewise.
5951 (breakpoint_1): Make FILTER parameter's return type bool.
5952 is_masked_watchpoint): Change return type to bool.
5953 (save_breakpoints): Make FILTER parameter's return type bool.
5954 * breakpoint.h (is_breakpoint): Change return type to bool.
5955 (is_watchpoint): Likewise.
5956 (is_catchpoint): Likewise.
5957 (is_tracepoint): Likewise.
5958
0d12e84c
TT
59592019-07-10 Tom Tromey <tom@tromey.com>
5960
5961 * defs.h: Don't include gdbarch.h.
5962 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5963 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
5964 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
5965 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
5966 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
5967 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
5968 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
5969 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
5970 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
5971 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
5972 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5973 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5974 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5975 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5976 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5977 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5978 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5979 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5980 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5981 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5982 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5983 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5984 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5985 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5986 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5987 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5988 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
5989
f06f1252
TT
59902019-07-10 Tom Tromey <tromey@adacore.com>
5991
5992 * ada-lang.h (is_ada_exception_catchpoint): Declare.
5993 * breakpoint.c (init_ada_exception_breakpoint): Register as
5994 bp_catchpoint.
5995 (print_one_breakpoint_location, print_one_breakpoint): Use
5996 is_ada_exception_catchpoint.
5997 * ada-lang.c (class ada_catchpoint_location): Pass
5998 bp_loc_software_breakpoint to bp_location constructor.
5999 (is_ada_exception_catchpoint): New function.
6000
7a5d944b
TT
60012019-07-10 Tom Tromey <tromey@adacore.com>
6002
6003 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6004 VEC.
6005 (struct arm_exidx_entry): New method operator<.
6006 (struct arm_exidx_data) <section_maps>: Change type.
6007 (arm_exidx_data_free): Remove.
6008 (arm_exidx_data_key): Change type. Move lower.
6009 (arm_exidx_new_objfile): Update.
6010 (arm_compare_exidx_entries): Remove.
6011 (arm_find_exidx_entry, _initialize_arm_tdep)
6012
48c66e1d
TT
60132019-07-10 Tom Tromey <tromey@adacore.com>
6014
6015 * solib-spu.c (ocl_program_data_key): Change type.
6016 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6017 Update.
6018
a269fbf1
TT
60192019-07-10 Tom Tromey <tromey@adacore.com>
6020
6021 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6022 (struct solib_aix_inferior_data) <library_list>: Change type.
6023 (solib_aix_inferior_data_handle): Change type.
6024 (get_solib_aix_inferior_data): Update.
6025 (solib_aix_free_library_list): Remove.
6026 (library_list_start_library): Update.
6027 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6028 return type.
6029 (solib_aix_get_library_list)
6030 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6031 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6032
c294730c
TT
60332019-07-10 Tom Tromey <tromey@adacore.com>
6034
6035 * solib-dsbt.c (struct dsbt_info): Add initializers.
6036 (solib_dsbt_pspace_data): Change type.
6037 (dsbt_pspace_data_cleanup): Remove.
6038 (get_dsbt_info, _initialize_dsbt_solib): Update.
6039
9d52077d
TT
60402019-07-10 Tom Tromey <tromey@adacore.com>
6041
6042 * spu-tdep.c (spu_overlay_data): Change type.
6043 (spu_get_overlay_table, spu_overlay_new_objfile)
6044 (_initialize_spu_tdep): Update.
6045
22a20dca
TT
60462019-07-10 Tom Tromey <tromey@adacore.com>
6047
6048 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6049 destructor.
6050 (dbx_objfile_data_key): Change type and declare later.
6051 (DBX_SYMFILE_INFO): Rewrite.
6052 * dbxread.c (dbx_objfile_data_key): Change type.
6053 (dbx_symfile_init): Update.
6054 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6055 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6056 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6057
cb60f420
TT
60582019-07-10 Tom Tromey <tromey@adacore.com>
6059
6060 * jit.c (jit_program_space_key): Change type. Move lower.
6061 (get_jit_program_space_data): Update.
6062 (jit_program_space_data_cleanup): Remove.
6063 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6064 Update.
6065 (struct jit_program_space_data): Add initializers.
6066
51df2ae3
TT
60672019-07-10 Tom Tromey <tromey@adacore.com>
6068
6069 * solib-darwin.c (struct darwin_info): Add initializers.
6070 (solib_darwin_pspace_data): Change type.
6071 (darwin_pspace_data_cleanup): Remove.
6072 (get_darwin_info, _initialize_darwin_solib): Update.
6073
18101a35
TT
60742019-07-10 Tom Tromey <tromey@adacore.com>
6075
6076 * remote-sim.c (struct sim_inferior_data): Add initializers,
6077 constructor, and destructor.
6078 (sim_inferior_data_key): Change type. Move lower.
6079 (check_for_duplicate_sim_descriptor): Update.
6080 (get_sim_inferior_data): Use new. Update.
6081 (~sim_inferior_data_cleanup): Rename from
6082 sim_inferior_data_cleanup. Simplify.
6083 (gdbsim_close_inferior, simulator_command)
6084 (sim_command_completer, _initialize_remote_sim): Update.
6085 (next_pid, INITIAL_PID): Move earlier.
6086
05b08ac1
TT
60872019-07-10 Tom Tromey <tromey@adacore.com>
6088
6089 * python/python-internal.h (create_thread_object): Return
6090 gdbpy_ref.
6091 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6092 * python/py-inferior.c (struct threadlist_entry): Add
6093 constructor.
6094 <thread_obj>: Now a gdbpy_ref.
6095 (thread_to_thread_object): Update.
6096 (add_thread_object): Use new.
6097 (delete_thread_object): Use delete.
6098 (infpy_threads): Update.
6099 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6100 GIL.
6101
32372d80
TT
61022019-07-10 Tom Tromey <tromey@adacore.com>
6103
6104 * valops.c (value_cast): Specialize error message for Ada.
6105
5c458ae8
SM
61062019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6107
6108 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6109
4c462cb0
SM
61102019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6111
6112 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6113 bpstat_should_step): Return bool, adjust comments.
6114 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6115 bpstat_should_step): Likewise.
6116
89abbcc2
AH
61172019-07-10 Alan Hayward <alan.hayward@arm.com>
6118
6119 * features/Makefile: Use feature target descriptions for Arm.
6120 * features/arm/arm-core.c: Generate new file.
6121 * features/arm/arm-fpa.c: Likewise.
6122 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6123 * features/arm/arm-m-profile.c: Likewise.
6124 * features/arm/arm-vfpv2.c: Likewise.
6125 * features/arm/arm-vfpv3.c: Likewise.
6126 * features/arm/xscale-iwmmxt.c: Likewise.
6127 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6128
166a82be
AH
61292019-07-10 Alan Hayward <alan.hayward@arm.com>
6130
6131 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6132 ptrace earlier.
6133
9fb4c7e9
AH
61342019-07-10 Alan Hayward <alan.hayward@arm.com>
6135
6136 * features/aarch64-pauth.c: Regenerate.
6137
e2d0f980
SM
61382019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6139
6140 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6141 bool.
6142 (bpstat_what): Use false instead of 0.
6143
a38118e5
PA
61442019-07-09 Pedro Alves <palves@redhat.com>
6145
6146 * break-catch-throw.c (is_exception_catchpoint): New.
6147 * breakpoint.c (print_one_breakpoint_location): New parameter
6148 'raw_loc'. Handle it. Use
6149 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6150 looking at the breakpoint's type.
6151 (print_one_breakpoint): If handling "maint info breakpoints", also
6152 print locations of exception catchpoints.
6153 * breakpoint.h (is_exception_catchpoint): Declare.
6154
cb1e4e32
PA
61552019-07-09 Pedro Alves <palves@redhat.com>
6156
6157 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6158 "addr" field.
6159 (allocate_location_exception_catchpoint): New.
6160 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6161 (initialize_throw_catchpoint_ops): Install
6162 allocate_location_exception_catchpoint as allocate_location
6163 method.
6164 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6165 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6166 bp_loc_other.
6167 (breakpoint_address_is_meaningful): Delete.
6168 (bl_address_is_meaningful): New.
6169 (breakpoint_locations_match): Adjust comment.
6170 (bp_location_from_bp_type): New, factored out of...
6171 (bp_location::bp_location(breakpoint *)): ... this.
6172 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6173 factored out of...
6174 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6175 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6176 breakpoint_address_is_meaningful.
6177 (bp_locations_compare): Adjust comment.
6178 (update_global_location_list): Use bl_address_is_meaningful
6179 instead of breakpoint_address_is_meaningful.
6180 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6181 explicit.
6182 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6183 * python/py-breakpoint.c (bppy_get_location): No longer check
6184 whether location is null.
6185
b58a68fe
PA
61862019-07-09 Pedro Alves <palves@redhat.com>
6187
6188 PR c++/15468
6189 * breakpoint.c (print_one_breakpoint_location): Remove
6190 single-location assert.
6191
268a13a5
TT
61922019-07-09 Tom Tromey <tom@tromey.com>
6193
6194 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6195 * configure: Rebuild.
6196 * configure.ac: Change common to gdbsupport.
6197 * gdbsupport: Rename from common.
6198 * acinclude.m4: Change common to gdbsupport.
6199 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6200 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6201 gdbsupport.
6202 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6203 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6204 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6205 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6206 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6207 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6208 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6209 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6210 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6211 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6212 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6213 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6214 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6215 coff-pe-read.c, command.h, compile/compile-c-support.c,
6216 compile/compile-c.h, compile/compile-cplus-symbols.c,
6217 compile/compile-cplus-types.c, compile/compile-cplus.h,
6218 compile/compile-loc2c.c, compile/compile.c, completer.c,
6219 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6220 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6221 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6222 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6223 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6224 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6225 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6226 features/aarch64-core.c, features/aarch64-fpu.c,
6227 features/aarch64-pauth.c, features/aarch64-sve.c,
6228 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6229 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6230 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6231 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6232 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6233 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6234 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6235 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6236 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6237 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6238 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6239 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6240 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6241 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6242 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6243 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6244 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6245 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6246 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6247 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6248 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6249 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6250 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6251 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6252 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6253 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6254 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6255 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6256 minsyms.c, mips-linux-tdep.c, namespace.h,
6257 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6258 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6259 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6260 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6261 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6262 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6263 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6264 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6265 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6266 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6267 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6268 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6269 procfs.c, producer.c, progspace.h, psymtab.h,
6270 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6271 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6272 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6273 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6274 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6275 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6276 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6277 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6278 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6279 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6280 target-memory.c, target.c, target.h, target/waitstatus.c,
6281 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6282 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6283 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6284 unittests/array-view-selftests.c,
6285 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6286 unittests/common-utils-selftests.c,
6287 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6288 unittests/format_pieces-selftests.c,
6289 unittests/function-view-selftests.c,
6290 unittests/lookup_name_info-selftests.c,
6291 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6292 unittests/mkdir-recursive-selftests.c,
6293 unittests/observable-selftests.c,
6294 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6295 unittests/parse-connection-spec-selftests.c,
6296 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6297 unittests/scoped_fd-selftests.c,
6298 unittests/scoped_mmap-selftests.c,
6299 unittests/scoped_restore-selftests.c,
6300 unittests/string_view-selftests.c, unittests/style-selftests.c,
6301 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6302 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6303 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6304 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6305 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6306 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6307
5b0e2db4
AB
63082019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6309
6310 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6311 bool value.
6312 (decode_digits_ordinary): Set explicit_line field in sal.
6313 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6314 symtab_and_line that was set on an explicit line number in
6315 assembler code. Do always update the recorded symtab and line if
6316 we do skip the prologue.
6317
0ba852ab
AB
63182019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6319
6320 * breakpoint.c (set_breakpoint_location_function): Remove
6321 explicit_loc parameter.
6322 (momentary_breakpoint_from_master): Update call to
6323 set_breakpoint_location_function.
6324 (add_location_to_breakpoint): Likewise.
6325
b3a7d171
AB
63262019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6327
6328 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6329 required features based on default bfd type when no specific bfd
6330 is present.
6331
1f6f6e21
PW
63322019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6333
6334 * NEWS: Mention that GDB printf and eval commands can now print
6335 C-style and Ada-style convenience var strings without
6336 calling the inferior.
6337 * printcmd.c (printf_c_string): Locally print GDB internal var
6338 instead of transiting via the inferior.
6339 (printf_wide_c_string): Likewise.
6340
63412019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 6342
5862c886 6343 PR breakpoints/25011
ea142fbf
AH
6344 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6345
0598af48
TT
63462019-07-04 Tom Tromey <tom@tromey.com>
6347
6348 PR tui/24724:
6349 * tui/tui-winsource.c (tui_clear_source_content): Update.
6350 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6351 (tui_update_breakpoint_info): Update.
6352 (tui_set_exec_info_content): Update.
6353 * tui/tui-source.c (tui_set_source_content_nil): Update.
6354 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6355 has_break.
6356 * tui/tui-data.h (enum tui_bp_flag): New.
6357 (tui_bp_flags): New enum flags type.
6358 (struct tui_source_element) <break_mode>: Change type. Rename
6359 from has_break.
6360 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6361 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6362 constants.
6363 * tui/tui-winsource.h: Fix comment.
6364
350fab54
AH
63652019-07-04 Alan Hayward <alan.hayward@arm.com>
6366
6367 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6368 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6369 (store_fpregs_to_thread)
6370 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6371 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6372 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6373 (IWMMXT_REGS_SIZE): Add define.
6374 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6375 (fetch_vfp_regs, store_vfp_regs)
6376 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6377 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6378
f0452268
AH
63792019-07-04 Alan Hayward <alan.hayward@arm.com>
6380
6381 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6382 defines.
6383 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6384 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6385 (ARM_INT_REGISTER_SIZE): ...to this.
6386 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6387 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6388 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6389 (arm_linux_collect_gregset, supply_nwfpe_register)
6390 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6391 defines.
6392 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6393 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6394 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6395 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6396 (arm_return_in_memory, arm_store_return_value)
6397 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6398 (arm_record_ld_st_multiple): Likewise.
6399 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6400 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6401
e935475c
AH
64022019-07-04 Alan Hayward <alan.hayward@arm.com>
6403
6404 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6405 AARCH64_DISPLACED_MODIFIED_INSNS.
6406 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6407 (aarch64_displaced_step_copy_insn): Likewise.
6408 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6409 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6410 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6411 ARM_DISPLACED_MODIFIED_INSNS.
6412 * arm-tdep.c (arm_gdbarch_init): Likewise.
6413 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6414 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6415 (struct arm_displaced_step_closure): Use
6416 ARM_DISPLACED_MODIFIED_INSNS.
6417
df0bb381
AH
64182019-07-04 Alan Hayward <alan.hayward@arm.com>
6419
6420 * features/Makefile: Remove unused xml files.
6421 * features/aarch64.xml: Remove.
6422 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6423 * features/i386/amd64-avx-avx512.xml: Remove.
6424 * features/i386/amd64-avx-linux.xml: Remove.
6425 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6426 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6427 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6428 * features/i386/amd64-avx-mpx.xml: Remove.
6429 * features/i386/amd64-avx.xml: Remove.
6430 * features/i386/amd64-linux.xml: Remove.
6431 * features/i386/amd64-mpx-linux.xml: Remove.
6432 * features/i386/amd64-mpx.xml: Remove.
6433 * features/i386/amd64.xml: Remove.
6434 * features/i386/i386-avx-avx512-linux.xml: Remove.
6435 * features/i386/i386-avx-avx512.xml: Remove.
6436 * features/i386/i386-avx-linux.xml: Remove.
6437 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6438 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6439 * features/i386/i386-avx-mpx-linux.xml: Remove.
6440 * features/i386/i386-avx-mpx.xml: Remove.
6441 * features/i386/i386-avx.xml: Remove.
6442 * features/i386/i386-linux.xml: Remove.
6443 * features/i386/i386-mmx-linux.xml: Remove.
6444 * features/i386/i386-mmx.xml: Remove.
6445 * features/i386/i386-mpx-linux.xml: Remove.
6446 * features/i386/i386-mpx.xml: Remove.
6447 * features/i386/i386.xml: Remove.
6448 * features/i386/x32-avx-avx512-linux.xml: Remove.
6449 * features/i386/x32-avx-linux.xml: Remove.
6450 * features/i386/x32-linux.xml: Remove.
6451
edd6266a
AH
64522019-07-04 Alan Hayward <alan.hayward@arm.com>
6453
6454 * regformats/aarch64.dat: Remove.
6455 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6456 * regformats/i386/amd64-avx-linux.dat: Remove.
6457 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6458 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6459 * regformats/i386/amd64-linux.dat: Remove.
6460 * regformats/i386/amd64-mpx-linux.dat: Remove.
6461 * regformats/i386/amd64.dat: Remove.
6462 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6463 * regformats/i386/i386-avx-linux.dat: Remove.
6464 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6465 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6466 * regformats/i386/i386-linux.dat: Remove.
6467 * regformats/i386/i386-mmx-linux.dat: Remove.
6468 * regformats/i386/i386-mpx-linux.dat: Remove.
6469 * regformats/i386/i386.dat: Remove.
6470 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6471 * regformats/i386/x32-avx-linux.dat: Remove.
6472 * regformats/i386/x32-linux.dat: Remove.
6473
2b40fda7
AH
64742019-07-04 Alan Hayward <alan.hayward@arm.com>
6475
6476 * aarch64-tdep.c: Remove xml self tests.
6477 * amd64-linux-tdep.c: Likewise.
6478 * amd64-tdep.c: Likewise.
6479 * i386-linux-tdep.c: Likewise.
6480 * i386-tdep.c: Likewise.
6481
5f4ba3e7
PA
64822019-07-03 Pedro Alves <palves@redhat.com>
6483
6484 PR cli/24732
6485 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6486 (pipe_cmd_option_defs): New.
6487 (make_pipe_cmd_options_def_group): New.
6488 (pipe_command): Use gdb::option::process_options.
6489 (pipe_command_completer): New function.
6490 (_initialize_cli_cmds): Install completer for "pipe" command.
6491
3d9be6f5
PA
64922019-07-03 Pedro Alves <palves@redhat.com>
6493
6494 * cli/cli-option.c (union option_value) <string>: New field.
6495 (struct option_def_and_value): Add ctor, move ctor, dtor and
6496 use DISABLE_COPY_AND_ASSIGN.
6497 (option_def_and_value::clear_value): New.
6498 (parse_option, save_option_value_in_ctx, get_val_type_str)
6499 (add_setshow_cmds_for_options): Handle var_string.
6500 * cli-option.h (union option_def::var_address) <string>: New
6501 field.
6502 (struct string_option_def): New.
6503 * maint-test-options.c (struct test_options_opts): Add default
6504 ctor and use DISABLE_COPY_AND_ASSIGN.
6505 <string_opt>: New field.
6506 (test_options_opts::~test_options_opts): New.
6507 (test_options_opts::dump): Also dump "-string".
6508 (test_options_option_defs): Install "string.
6509
41fc454c
PA
65102019-07-03 Pedro Alves <palves@redhat.com>
6511
6512 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6513 option_value with a null enumeration.
6514 (complete_options): Save the option values in the context.
6515 (save_option_value_in_ctx): New, factored out from ...
6516 (process_options): ... here.
6517 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6518 of the function.
6519 * maint-test-options.c (test_options_opts::dump): New, factored
6520 out from ...
6521 (maintenance_test_options_command_mode): ... here.
6522 (maintenance_test_options_command_completion_result): Delete.
6523 (maintenance_test_options_command_completion_text): Update
6524 comment.
6525 (maintenance_show_test_options_completion_result): Change
6526 prototype. Just print
6527 maintenance_test_options_command_completion_text.
6528 (save_completion_result): New.
6529 (maintenance_test_options_completer_mode): Pass options context to
6530 complete_options, and then save a dump.
6531 (_initialize_maint_test_options): Use add_cmd to install "maint
6532 show test-options-completion-result".
6533
fdbc9870
PA
65342019-07-03 Pedro Alves <palves@redhat.com>
6535
6536 * NEWS (New commands): Mention "with" and "maint with".
6537 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6538 (with_command, with_command_completer): New.
6539 (pipe_command): Adjust to new repeat_previous
6540 interface.
6541 (_initialize_cli_cmds): Install the "with" command and its "w"
6542 alias.
6543 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6544 declarations.
6545 * cli/cli-setshow.c (parse_cli_var_uinteger)
6546 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6547 argument strings for all var_types.
6548 (get_setshow_command_value_string): New, factored out from ...
6549 (do_show_command): ... this.
6550 * cli/cli-setshow.h: Include <string>.
6551 (get_setshow_command_value_string): Declare.
6552 * command.h (repeat_previous): Now returns const char *. Adjust
6553 comment.
6554 * maint.c: Include "cli/cli-cmds.h".
6555 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6556 (_initialize_maint_cmds): Register the "maintenance with" command.
6557 * top.c (repeat_previous): Move bits from pipe_command here:
6558 Return the saved command line, if any; error out if there's no
6559 command to relaunch.
6560
c6ac8931
PA
65612019-07-03 Pedro Alves <palves@redhat.com>
6562
6563 * NEWS (New commands): Mention "maint set/show test-settings"
6564 instead of "maint test-settings".
6565 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6566 (maintenance_test_settings_set_list): Rename to ...
6567 (maintenance_set_test_settings_list): ... this.
6568 (maintenance_test_settings_show_list): Rename to ...
6569 (maintenance_show_test_settings_list): ... this.
6570 (maintenance_test_settings_cmd): Delete.
6571 (maintenance_test_settings_set_cmd): ...
6572 (maintenance_set_test_settings_cmd): ... this.
6573 (maintenance_test_settings_show_cmd): ...
6574 (maintenance_show_test_settings_cmd): ... this.
6575 (maintenance_test_settings_show_value_cmd):
6576 (maintenance_show_test_settings_value_cmd): ... this.
6577 (_initialize_maint_test_settings): No longer install the "maint
6578 test-settings" prefix command. Rename "maint test-settings set"
6579 to "maint set test-settings", and "maint test-settings show" to
6580 "maint show test-settings". Adjust all subcommands.
6581
d1fcf2fd
PA
65822019-07-03 Pedro Alves <palves@redhat.com>
6583
6584 * maint-test-settings.c: Fix file's intro comment. Replace all
6585 references to "test-options" with references to "test-settings",
6586 in comments.
6587
970f9d09
PA
65882019-07-03 Pedro Alves <palves@redhat.com>
6589
6590 * maint-test-settings.c (maintenance_test_settings_xxx)
6591 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6592 New.
6593 (maintenance_test_settings_enums): Use them.
6594 (maintenance_test_settings_enum): Default to
6595 maintenance_test_settings_xxx.
6596 (_initialize_maint_test_settings): Initialize
6597 MAINTENANCE_TEST_SETTINGS_FILENAME.
6598
f3869b1a
SM
65992019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6600
6601 * breakpoint.h (remove_breakpoints_inf): Change return type to
6602 void, move function documentation here.
6603 * breakpoint.c (remove_breakpoints_inf): Change return type to
6604 void, move function documentation to header.
6605
54d66006
PA
66062019-07-02 Pedro Alves <palves@redhat.com>
6607
6608 * NEWS (Completion improvements): Mention "info threads".
6609 * thread.c (struct info_threads_opts, info_threads_option_defs)
6610 (make_info_threads_options_def_group): New.
6611 (info_threads_command): Use gdb::option::process_options.
6612 (info_threads_command_completer): New.
6613 (_initialize_thread): Use gdb::option::build_help to build the
6614 help text for "info threads".
6615
854f6088
SM
66162019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6617
6618 * defs.h (generic_load): Move from here...
6619 * symfile.h (generic_load): ... to here. Rename name parameter
6620 to args.
6621 * symfile.c (generic_load): Add comment.
6622
54ee4252
TT
66232019-07-01 Tom Tromey <tromey@adacore.com>
6624
6625 * dwarf2read.c
6626 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6627 declaration of without_params. Fix formatting.
6628
65392b3e
TT
66292019-07-01 Tom Tromey <tromey@adacore.com>
6630
6631 * ada-exp.y (find_primitive_type): Update.
6632 * ada-lang.h (ada_lookup_symbol): Update.
6633 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6634 parameter.
6635 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6636
7d7571f0
SDJ
66372019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6638
6639 PR breakpoints/24541
6640 * gdbarch.c: Regenerate.
6641 * gdbarch.h: Regenerate.
6642 * gdbarch.sh: Add 'stap_adjust_register'.
6643 * i386-tdep.c: Include '<unordered_set>'.
6644 (i386_stap_adjust_register): New function.
6645 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6646 * stap-probe.c (stap_parse_register_operand): Call
6647 'gdbarch_stap_adjust_register'.
6648
5af5392a
SDJ
66492019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6650
6651 PR python/24742
6652 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6653 * python/python.c (do_start_initialization): Use 'xmalloc'
6654 instead of 'PyMem_Malloc'.
6655
10d06d82
TT
66562019-06-28 Tom Tromey <tromey@adacore.com>
6657
6658 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6659 for Ada.
6660
1b7f24cd
TT
66612019-06-27 Tom Tromey <tromey@adacore.com>
6662
6663 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6664 objfile_key.
6665 (arm_find_mapping_symbol, arm_record_special_symbol)
6666 (_initialize_arm_tdep): Update.
6667 (arm_objfile_data_free): Remove.
6668
3d507ff2
TT
66692019-06-27 Tom Tromey <tromey@adacore.com>
6670
6671 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6672 to cp_print_static_field.
6673
762c164d
TT
66742019-06-26 Tom Tromey <tromey@adacore.com>
6675
6676 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6677 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6678 declare.
6679
aa2f9bcf
AH
66802019-06-26 Alan Hayward <alan.hayward@arm.com>
6681
6682 * features/aarch64-core.c (create_feature_aarch64_core):
6683 Regenerate.
6684 * features/aarch64-core.xml: Add cpsr flags.
6685
3426ae57
AH
66862019-06-26 Alan Hayward <alan.hayward@arm.com>
6687
6688 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6689 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6690
4838e44c
SM
66912019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6692
6693 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6694 field.
6695 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6696 use.
6697 (arm_record_special_symbol): Don't insert new symbol in sorted
6698 position, push it at the end.
6699
54cc7474
SM
67002019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6701
6702 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6703 (arm_mapping_symbol_s): Remove.
6704 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6705 (arm_mapping_symbol_vec): New typedef.
6706 (struct arm_per_objfile): Add constructor.
6707 <section_maps>: Change type to
6708 std::unique_ptr<arm_mapping_symbol_vec[]>.
6709 (arm_compare_mapping_symbols): Remove.
6710 (arm_find_mapping_symbol): Adjust to section_maps type change.
6711 (arm_objfile_data_free): Call delete on arm_per_objfile.
6712 (arm_record_special_symbol): Adjust to section_maps type change.
6713 Allocate arm_per_objfile with new.
6714
b65b566c
PW
67152019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6716
6717 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6718 with the command prefix.
6719
c2fc64f5
TT
67202019-06-25 Tom Tromey <tom@tromey.com>
6721
6722 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6723 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6724
fb54fa76
TT
67252019-06-25 Tom Tromey <tom@tromey.com>
6726
6727 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6728 type.
6729 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6730 protected.
6731
f7952c57
TT
67322019-06-25 Tom Tromey <tom@tromey.com>
6733
6734 * tui/tui-winsource.c
6735 (tui_source_window_base::set_is_exec_point_at): Add check against
6736 LOA_ADDRESS.
6737
17568d78
TT
67382019-06-25 Tom Tromey <tom@tromey.com>
6739
6740 * tui/tui-source.c (tui_set_source_content): Don't check before
6741 xfree.
6742 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6743
53e7cdba
TT
67442019-06-25 Tom Tromey <tom@tromey.com>
6745
6746 * tui/tui-winsource.h (tui_update_source_window_as_is)
6747 (tui_alloc_source_buffer, tui_line_is_displayed)
6748 (tui_addr_is_displayed): Change type of win_info.
6749 * tui/tui-winsource.c (tui_update_source_window_as_is)
6750 (tui_clear_source_content, tui_show_source_line)
6751 (tui_show_source_content, tui_source_window_base::refill)
6752 (tui_source_window_base::set_is_exec_point_at)
6753 (tui_source_window_base::set_is_exec_point_at)
6754 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6755 (tui_alloc_source_buffer, tui_line_is_displayed)
6756 (tui_addr_is_displayed): Change type of win_info. Update.
6757 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6758 (tui_source_window_base::do_make_visible_with_new_height):
6759 Update.
6760 * tui/tui-source.c (tui_set_source_content)
6761 (tui_set_source_content_nil)
6762 (tui_source_window::do_scroll_vertical): Update.
6763 * tui/tui-layout.c (show_layout): Update.
6764 * tui/tui-disasm.c (tui_set_disassem_content)
6765 (tui_disasm_window::do_scroll_vertical): Update.
6766 * tui/tui-data.h (tui_win_content): Remove.
6767 (struct tui_gen_win_info) <content, content_size>: Remove.
6768 (struct tui_source_element): Add initializers and destructor.
6769 (union tui_which_element, struct tui_win_element): Remove.
6770 (struct tui_source_window_base) <content>: New field.
6771 (struct tui_data_window): Remove destructor.
6772 (tui_alloc_content, tui_free_win_content)
6773 (tui_free_all_source_wins_content): Don't declare.
6774 * tui/tui-data.c (tui_initialize_static_data): Update.
6775 (init_content_element, tui_alloc_content): Remove.
6776 (~tui_gen_win_info): Update.
6777 (~tui_data_window, tui_free_all_source_wins_content)
6778 (tui_free_win_content, free_content, free_content_elements):
6779 Remove.
6780
7908abbf
TT
67812019-06-25 Tom Tromey <tom@tromey.com>
6782
6783 * tui/tui-winsource.h (tui_clear_source_content)
6784 (tui_erase_source_content, tui_show_source_content): Change type
6785 of win_info.
6786 * tui/tui-winsource.c (tui_clear_source_content)
6787 (tui_erase_source_content, tui_show_source_content): Change type
6788 of win_info.
6789 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6790 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6791 win_info.
6792 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6793 win_info.
6794 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6795
02c28df0
TT
67962019-06-25 Tom Tromey <tom@tromey.com>
6797
6798 * tui/tui-winsource.c (tui_clear_source_content)
6799 (tui_source_window_base::set_is_exec_point_at): Update.
6800 * tui/tui-source.c (tui_set_source_content_nil): Update.
6801 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6802 a bool.
6803 * tui/tui-data.c (init_content_element): Update.
6804
6658b1bf
TT
68052019-06-25 Tom Tromey <tom@tromey.com>
6806
6807 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6808 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6809 * tui/tui-layout.c (init_and_make_win): Update.
6810 * tui/tui.h (enum tui_win_type): Update.
6811 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6812 tui_win_is_auxillary.
6813 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6814 tui_win_is_auxillary.
6815
21e1c91e
TT
68162019-06-25 Tom Tromey <tom@tromey.com>
6817
6818 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6819 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6820 (tui_delete_data_content_windows, tui_display_all_data)
6821 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6822 Update.
6823 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6824 * tui/tui-regs.c (tui_last_regs_line_no)
6825 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6826 (tui_show_registers): Update.
6827 (tui_show_register_group): Return void. Update.
6828 (tui_display_registers_from, tui_display_reg_element_at_line)
6829 (tui_display_registers_from_line, tui_check_register_values):
6830 Update.
6831 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6832 member.
6833 (struct tui_data_window) <regs_content>: Now a std::vector.
6834 <regs_content_count>: Remove.
6835 (tui_add_content_elements, tui_free_data_content): Don't declare.
6836 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6837 (init_content_element): Remove DATA_WIN case. Add assert.
6838 (tui_add_content_elements): Remove.
6839 (tui_data_window): Update.
6840 (tui_free_data_content): Remove.
6841 (free_content_elements): Remove DATA_WIN case.
6842
115ac53b
TT
68432019-06-25 Tom Tromey <tom@tromey.com>
6844
6845 * tui/tui-data.c (tui_data_item_window): Update.
6846 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6847 * tui/tui-windata.c (tui_display_all_data)
6848 (tui_display_data_from_line): Update.
6849 (tui_check_data_values): Remove.
6850 * tui/tui-regs.c (tui_show_register_group)
6851 (tui_display_reg_element_at_line): Update.
6852 * tui/tui-hooks.c (tui_register_changed)
6853 (tui_refresh_frame_and_register_information): Call
6854 tui_check_register_values.
6855 * tui/tui-data.h (struct tui_data_window) <data_content,
6856 data_content_count, data_type>: Remove.
6857 (enum tui_data_type): Remove.
6858
6859 * tui/tui-data.c (tui_data_window::clear_detail)
6860 (~tui_data_window): Update.
6861
eaf9738b
TT
68622019-06-25 Tom Tromey <tom@tromey.com>
6863
6864 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6865 declare.
6866 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6867 Rename from tui_first_data_item_displayed. Update.
6868 (tui_data_window::refresh_all)
6869 (tui_data_window::do_scroll_vertical): Update.
6870 * tui/tui-data.h (struct tui_data_window)
6871 <first_data_item_displayed>: Declare new method.
6872
31ca4723
TT
68732019-06-25 Tom Tromey <tom@tromey.com>
6874
6875 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6876 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6877 contents...
6878 (tui_initialize_static_data): ...here.
6879
41bcff7f
TT
68802019-06-25 Tom Tromey <tom@tromey.com>
6881
6882 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6883 (tui_display_registers_from, tui_check_register_values): Update.
6884 (tui_display_register): Remove win_info parameter; update.
6885 (tui_get_register): Change type of parameters.
6886 * tui/tui-data.h (struct tui_data_element): Remove.
6887 (union tui_which_element) <data>: Remove.
6888 <data_window>: Change type.
6889 (struct tui_data_item_window): New.
6890 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6891 case. Add assert.
6892 (~tui_data_item_window): New destructor.
6893 (free_content_elements): Remove DATA_ITEM_WIN case.
6894
d2802c33
TT
68952019-06-25 Tom Tromey <tom@tromey.com>
6896
6897 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
6898 Remove.
6899
dd835f8b
TT
69002019-06-25 Tom Tromey <tom@tromey.com>
6901
6902 * tui/tui-data.h (struct tui_command_element): Remove.
6903 (union tui_which_element) <command>: Remove.
6904 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
6905 assert.
6906 (free_content_elements): Remove CMD_WIN case.
6907
bd7db367
TT
69082019-06-25 Tom Tromey <tom@tromey.com>
6909
6910 * tui/tui-layout.c (tui_set_layout): Update.
6911 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
6912 * tui/tui-data.c (layout_def): Update.
6913
3add462f
TT
69142019-06-25 Tom Tromey <tom@tromey.com>
6915
6916 * tui/tui-wingeneral.c (tui_refresh_all): Update.
6917 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6918 (tui_source_window_base::set_new_height): Update.
6919 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
6920 Update.
6921 (tui_set_locator_fullname, tui_set_locator_info)
6922 (tui_show_frame_info): Update.
6923 * tui/tui-source.c (tui_set_source_content)
6924 (tui_source_is_displayed): Update.
6925 * tui/tui-layout.c (show_source_disasm_command, show_data)
6926 (show_source_or_disasm_and_command): Update.
6927 * tui/tui-disasm.c (tui_set_disassem_content)
6928 (tui_get_begin_asm_address): Update.
6929 * tui/tui-data.h (struct tui_locator_element): Remove.
6930 (union tui_which_element) <locator>: Remove.
6931 (struct tui_locator_window): New.
6932 (tui_locator_win_info_ptr): Change return type.
6933 * tui/tui-data.c (_locator): Change type.
6934 (tui_locator_win_info_ptr): Change return type.
6935 (init_content_element): Remove LOCATOR_WIN case. Add assert.
6936 (tui_alloc_content): Add assert.
6937
489e9d8b
TT
69382019-06-25 Tom Tromey <tom@tromey.com>
6939
6940 * tui/tui-winsource.c
6941 (tui_exec_info_window::maybe_allocate_content): New method.
6942 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
6943 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
6944 (make_source_or_disasm_window): Add cast.
6945 * tui/tui-data.h (union tui_which_element) <simple_string>:
6946 Remove.
6947 (struct tui_source_info): New.
6948 (struct tui_source_window_base) <execution_info>: Change type.
6949 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
6950 case, and add assert.
6951 (tui_alloc_content): Add assert.
6952
c3fabb7d
TT
69532019-06-25 Tom Tromey <tom@tromey.com>
6954
6955 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
6956 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
6957 * tui/tui-data.c (tui_alloc_win_info): Remove.
6958
bbc228ee
TT
69592019-06-25 Tom Tromey <tom@tromey.com>
6960
6961 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
6962 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
6963 can_highlight.
6964
5fcee43a
TT
69652019-06-25 Tom Tromey <tom@tromey.com>
6966
6967 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
6968 make_visible_with_new_height method.
6969 (tui_win_info::make_visible_with_new_height): New method.
6970 (tui_source_window_base::do_make_visible_with_new_height)
6971 (tui_data_window::do_make_visible_with_new_height)
6972 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6973 (make_visible_with_new_height): Remove.
6974 (tui_resize_all, tui_adjust_win_heights): Use
6975 make_visible_with_new_height method.
6976 * tui/tui-data.h (struct tui_win_info)
6977 <do_make_visible_with_new_height, make_visible_with_new_height>:
6978 New methods.
6979 (struct tui_source_window_base, struct tui_data_window)
6980 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6981 methods.
6982
d83f1fe6
TT
69832019-06-25 Tom Tromey <tom@tromey.com>
6984
6985 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6986 method.
6987 (update_tab_width): Call update_tab_width method.
6988 * tui/tui-data.h (struct tui_win_info)
6989 (struct tui_source_window_base) <update_tab_width>: New methods.
6990
17374de4
TT
69912019-06-25 Tom Tromey <tom@tromey.com>
6992
6993 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
6994 parameter.
6995 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
6996 parameter.
6997 (tui_gen_win_info::make_visible): Update.
6998 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
6999 parameter.
7000 * tui/tui-data.h (enum tui_box): New enum.
7001 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7002
f936bca2
TT
70032019-06-25 Tom Tromey <tom@tromey.com>
7004
7005 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7006 init_and_make_win for EXEC_INFO_WIN.
7007 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7008 longer inline.
7009 (struct tui_win_info) <~tui_win_info>: Inline.
7010 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7011 Don't declare.
7012 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7013 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7014 Remove.
7015 (tui_initialize_static_data): Update.
7016 (~tui_gen_win_info): Handle more cleanup here.
7017 (~tui_source_window_base): Delete "execution_info".
7018 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7019
d6ba6a11
TT
70202019-06-25 Tom Tromey <tom@tromey.com>
7021
7022 * tui/tui-layout.c (make_command_window): Don't set
7023 can_highlight.
7024 (show_source_disasm_command): Call the reset method.
7025 (show_data): Don't set can_highlight. Call the reset method.
7026 (tui_gen_win_info::reset): Rename from init_gen_win_info
7027 (init_and_make_win): Simplify. Return tui_gen_win_info.
7028 (show_source_or_disasm_and_command): Call the reset method.
7029 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7030 (struct tui_cmd_window): Set can_highlight.
7031
48a3bd16
TT
70322019-06-25 Tom Tromey <tom@tromey.com>
7033
7034 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7035 from make_visible.
7036 (tui_make_visible, tui_make_invisible): Rewrite.
7037 (tui_win_info::make_visible): Remove.
7038 (tui_source_window_base::make_visible): Update.
7039 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7040 method. Moved from...
7041 (struct tui_win_info) <make_visible>: ...here.
7042
c3bd716f
TT
70432019-06-25 Tom Tromey <tom@tromey.com>
7044
7045 * tui/tui-winsource.c
7046 (tui_source_window_base::do_scroll_horizontal): Remove direction
7047 parameter.
7048 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7049 direction parameter.
7050 * tui/tui-win.c (tui_win_info::forward_scroll)
7051 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7052 (tui_win_info::right_scroll): Update.
7053 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7054 direction parameter.
7055 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7056 direction parameter.
7057 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7058 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7059 Remove direction parameter.
7060 (struct tui_source_window_base, struct tui_source_window)
7061 (struct tui_disasm_window, struct tui_data_window)
7062 (struct tui_cmd_window): Update.
7063
21c32dca
TT
70642019-06-25 Tom Tromey <tom@tromey.com>
7065
7066 * tui/tui-winsource.h (tui_set_exec_info_content)
7067 (tui_show_exec_info_content, tui_erase_exec_info_content)
7068 (tui_clear_exec_info_content, tui_update_exec_info): Change
7069 argument to tui_source_window_base.
7070 * tui/tui-winsource.c (tui_set_exec_info_content)
7071 (tui_show_exec_info_content, tui_erase_exec_info_content)
7072 (tui_clear_exec_info_content, tui_update_exec_info): Change
7073 argument to tui_source_window_base.
7074
73fbdc65
TT
70752019-06-25 Tom Tromey <tom@tromey.com>
7076
7077 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7078 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7079
33325343
TT
70802019-06-25 Tom Tromey <tom@tromey.com>
7081
7082 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7083 check.
7084
29d2c474
TT
70852019-06-25 Tom Tromey <tom@tromey.com>
7086
7087 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7088 type to void.
7089 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7090 type to void.
7091 * tui/tui-source.c (tui_set_source_content): Update.
7092 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7093
152f3f4b
TT
70942019-06-25 Tom Tromey <tom@tromey.com>
7095
7096 * tui/tui-win.c (window_name_completer, tui_set_focus)
7097 (tui_all_windows_info): Use name method.
7098 * tui/tui-data.h (struct tui_gen_win_info)
7099 (struct tui_source_window, struct tui_disasm_window)
7100 (struct tui_data_window, struct tui_cmd_window) <name>: New
7101 method.
7102 (tui_win_name): Don't declare.
7103 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7104 (tui_win_name): Remove.
7105
be4da588
TT
71062019-06-25 Tom Tromey <tom@tromey.com>
7107
7108 * tui/tui-winsource.h (tui_update_source_window)
7109 (tui_update_source_window_as_is): Change parameter type.
7110 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7111 to be a tui_source_window_base.
7112 (tui_update_source_window_as_is): Likewise.
7113 * tui/tui-win.c (make_visible_with_new_height): Update.
7114
5b81daba
TT
71152019-06-25 Tom Tromey <tom@tromey.com>
7116
7117 * tui/tui-winsource.c (tui_erase_source_content)
7118 (tui_show_source_content, tui_show_exec_info_content)
7119 (tui_erase_exec_info_content): Use refresh_window method.
7120 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7121 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7122 from tui_refresh_win.
7123 (tui_data_window::refresh_window): New method.
7124 (tui_win_info::refresh, tui_source_window_base::refresh)
7125 (tui_refresh_all): Use refresh_window method.
7126 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7127 method.
7128 * tui/tui-regs.c (tui_display_register): Call refresh_window
7129 method.
7130 * tui/tui-layout.c (show_source_disasm_command)
7131 (show_source_or_disasm_and_command): Call refresh_window method.
7132 * tui/tui-data.h (struct tui_gen_win_info)
7133 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7134 New method.
7135
cb2ce893
TT
71362019-06-25 Tom Tromey <tom@tromey.com>
7137
7138 * tui/tui.c (tui_rl_other_window, tui_enable)
7139 (tui_is_window_visible, tui_get_command_dimension): Update.
7140 * tui/tui-winsource.c (tui_update_source_window_as_is)
7141 (tui_clear_source_content, tui_erase_source_content)
7142 (tui_show_source_line, tui_source_window_base::refill)
7143 (tui_source_window_base::do_scroll_horizontal)
7144 (tui_source_window_base::set_is_exec_point_at)
7145 (tui_update_breakpoint_info, tui_set_exec_info_content)
7146 (tui_alloc_source_buffer, tui_line_is_displayed)
7147 (tui_addr_is_displayed): Update.
7148 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7149 (tui_check_and_display_highlight_if_needed)
7150 (tui_win_info::make_visible, tui_win_info::refresh)
7151 (tui_refresh_all): Update.
7152 * tui/tui-windata.c (tui_first_data_item_displayed)
7153 (tui_delete_data_content_windows, tui_erase_data_content)
7154 (tui_display_all_data, tui_data_window::refresh_all)
7155 (tui_check_data_values): Update.
7156 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7157 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7158 (tui_win_info::backward_scroll, tui_refresh_all_win)
7159 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7160 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7161 (tui_source_window_base::set_new_height)
7162 (tui_data_window::set_new_height)
7163 (make_invisible_and_set_new_height)
7164 (make_visible_with_new_height, new_height_ok)
7165 (parse_scrolling_args): Update.
7166 * tui/tui-stack.c (tui_show_frame_info): Update.
7167 * tui/tui-source.c (tui_set_source_content)
7168 (tui_set_source_content_nil, tui_source_is_displayed)
7169 (tui_source_window::do_scroll_vertical): Update.
7170 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7171 (tui_display_registers_from, tui_display_reg_element_at_line)
7172 (tui_check_register_values, tui_reg_command): Update.
7173 * tui/tui-layout.c (tui_default_win_height)
7174 (show_source_disasm_command, show_data, init_and_make_win)
7175 (show_source_or_disasm_and_command): Update.
7176 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7177 (tui_redisplay_readline, tui_mld_flush)
7178 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7179 (tui_getc): Update.
7180 * tui/tui-disasm.c (tui_set_disassem_content)
7181 (tui_disasm_window::do_scroll_vertical): Update.
7182 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7183 Now virtual.
7184 (struct tui_win_info): Derive from tui_gen_win_info.
7185 <~tui_win_info>: Mark as override.
7186 <generic>: Remove member.
7187 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7188 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7189 (~tui_data_window, ~tui_win_info)
7190 (tui_free_all_source_wins_content): Update.
7191 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7192
ab313b35
TT
71932019-06-25 Tom Tromey <tom@tromey.com>
7194
7195 * tui/tui-layout.c (init_and_make_win): Use new.
7196 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7197 destructor, initializers.
7198 (tui_alloc_generic_win_info): Don't declare.
7199 * tui/tui-data.c (_locator): Add argument to constructor.
7200 (source_win, disasm_win): New globals.
7201 (exec_info): Remove.
7202 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7203 Update.
7204 (tui_alloc_generic_win_info): Remove.
7205 (init_content_element): Use new.
7206 (tui_win_info::tui_win_info): Update.
7207 (free_content_elements) <case DATA_WIN>: Use delete.
7208
dc2c33e4
TT
72092019-06-25 Tom Tromey <tom@tromey.com>
7210
7211 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7212 * tui/tui-windata.c (tui_first_data_item_displayed)
7213 (tui_delete_data_content_windows): Update.
7214 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7215 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7216 (tui_display_registers_from, tui_check_register_values): Update.
7217 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7218 pointer.
7219 * tui/tui-data.c (init_content_element): Update. Allocate the new
7220 window.
7221 (tui_free_data_content): Update.
7222 (free_content_elements) <case DATA_WIN>: Free the window.
7223
214a5cbe
TT
72242019-06-25 Tom Tromey <tom@tromey.com>
7225
7226 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7227 Update.
7228 * tui/tui-layout.c (make_command_window)
7229 (show_source_disasm_command, show_data, init_and_make_win)
7230 (show_source_or_disasm_and_command): Update.
7231 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7232 method.
7233 <can_highight, is_highlighted>: Now bool.
7234 (tui_set_win_highlight): Don't declare.
7235 * tui/tui-data.c (tui_set_win_highlight): Remove.
7236
8e2daf15
TT
72372019-06-25 Tom Tromey <tom@tromey.com>
7238
7239 * tui/tui-wingeneral.c (make_visible): Remove check of window
7240 type.
7241
8903bd8a
TT
72422019-06-25 Tom Tromey <tom@tromey.com>
7243
7244 * tui/tui-win.c (tui_win_info::max_height)
7245 (tui_cmd_window::max_height): New methods.
7246 (new_height_ok): Call max_height.
7247 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7248 <max_height>: New method.
7249
3f02ce1e
TT
72502019-06-25 Tom Tromey <tom@tromey.com>
7251
7252 * tui/tui-win.c (tui_source_window_base::set_new_height)
7253 (tui_data_window::set_new_height): New methods.
7254 (make_invisible_and_set_new_height): Call set_new_height method.
7255 * tui/tui-data.h (struct tui_win_info)
7256 (struct tui_source_window_base, struct tui_data_window)
7257 <set_new_height>: New method.
7258
1825f487
TT
72592019-06-25 Tom Tromey <tom@tromey.com>
7260
7261 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7262 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7263 tui_refresh_data_win.
7264 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7265 method.
7266 (tui_refresh_all_win): Call the refresh_all method.
7267 (tui_set_focus): Likewise.
7268 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7269 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7270 Likewise.
7271
ad54d15b
TT
72722019-06-25 Tom Tromey <tom@tromey.com>
7273
7274 * tui/tui-winsource.h (tui_refill_source_window)
7275 (tui_set_is_exec_point_at): Don't declare.
7276 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7277 (tui_source_window_base::refill): Rename from
7278 tui_refill_source_window.
7279 (tui_source_window_base::do_scroll_horizontal): Update.
7280 (tui_source_window_base::set_is_exec_point_at): Rename from
7281 tui_set_is_exec_point_at.
7282 (tui_update_all_breakpoint_info): Update.
7283 * tui/tui-stack.c (tui_show_frame_info): Update.
7284 * tui/tui-layout.c (show_data): Add cast.
7285 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7286 * tui/tui-data.h (struct tui_source_window_base) <refill,
7287 set_is_exec_point_at>: New methods.
7288 (tui_source_windows, tui_add_to_source_windows): Update types.
7289 (tui_add_to_source_windows): Remove redundant declaration.
7290 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7291 (tui_source_windows): Change return type.
7292 (tui_clear_source_windows_detail): Update.
7293 (tui_add_to_source_windows): Change type of parameter.
7294 (tui_free_all_source_wins_content): Update.
7295
2042b506
TT
72962019-06-25 Tom Tromey <tom@tromey.com>
7297
7298 * tui/tui-wingeneral.c (tui_win_info::refresh)
7299 (tui_source_window_base::refresh): New methods.
7300 (tui_refresh_all): Call the refresh method.
7301 * tui/tui-data.h (struct tui_win_info)
7302 (struct tui_source_window_base) <refresh>: New method.
7303
56122977
TT
73042019-06-25 Tom Tromey <tom@tromey.com>
7305
7306 * tui/tui.h (tui_is_window_visible): Return bool.
7307 * tui/tui.c (tui_is_window_visible): Return bool.
7308 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7309 (tui_make_visible, tui_make_invisible)
7310 (tui_win_info::make_visible)
7311 (tui_source_window_base::make_visible, make_all_visible)
7312 (tui_make_all_visible, tui_make_all_invisible): Update.
7313 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7314 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7315 bool.
7316 (struct tui_win_info, struct tui_source_window_base)
7317 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7318 * tui/tui-data.c (tui_init_generic_part): Update.
7319
cda37efb
TT
73202019-06-25 Tom Tromey <tom@tromey.com>
7321
7322 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7323 (tui_source_window_base::make_visible): New methods.
7324 (make_all_visible): Make method call.
7325 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7326 (struct tui_source_window_base, struct tui_cmd_window): Override
7327 make_visible.
7328 (tui_win_is_source_type): Don't declare.
7329 * tui/tui-data.c (tui_win_is_source_type): Remove.
7330
6a0ee02c
TT
73312019-06-25 Tom Tromey <tom@tromey.com>
7332
7333 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7334 NULL check.
7335
63901aec
TT
73362019-06-25 Tom Tromey <tom@tromey.com>
7337
7338 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7339 Inline constructor. Add initializers for members.
7340 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7341 constructors; now inline in class.
7342
ceb13a13
TT
73432019-06-25 Tom Tromey <tom@tromey.com>
7344
7345 * tui/tui-regs.c (tui_show_registers): Update.
7346 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7347 bool.
7348 * tui/tui-data.c (tui_data_window::clear_detail)
7349 (tui_data_window): Update.
7350
238eb706
TT
73512019-06-25 Tom Tromey <tom@tromey.com>
7352
7353 * tui/tui-windata.c (tui_display_all_data)
7354 (tui_display_data_from_line, tui_display_data_from)
7355 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7356 Update.
7357 * tui/tui-regs.c (tui_last_regs_line_no)
7358 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7359 (tui_show_registers, tui_show_register_group)
7360 (tui_display_registers_from, tui_display_reg_element_at_line)
7361 (tui_display_registers_from_line, tui_check_register_values)
7362 (tui_reg_next, tui_reg_prev): Update.
7363 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7364 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7365 tui_data_window.
7366 (struct tui_win_info) <detail>: Remove. Add new fields from
7367 tui_data_info.
7368 (TUI_DATA_WIN): Add cast.
7369 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7370 (~tui_data_window): Simplify.
7371
81491aa0
TT
73722019-06-25 Tom Tromey <tom@tromey.com>
7373
7374 * tui/tui-layout.c (show_source_disasm_command)
7375 (show_source_or_disasm_and_command): Update.
7376 * tui/tui-io.c (update_cmdwin_start_line)
7377 (tui_redisplay_readline): Update.
7378 * tui/tui-data.h (struct tui_command_info): Remove.
7379 (struct tui_win_info) <detail>: Remove command_info member.
7380 (struct tui_data_window) <start_line>: New member, from
7381 tui_command_info.
7382 (TUI_CMD_WIN): Add casts.
7383
e6e41501
TT
73842019-06-25 Tom Tromey <tom@tromey.com>
7385
7386 * tui/tui-winsource.c (tui_update_source_window)
7387 (tui_refill_source_window)
7388 (tui_source_window_base::do_scroll_horizontal)
7389 (tui_update_breakpoint_info, tui_set_exec_info_content)
7390 (tui_show_exec_info_content, tui_erase_exec_info_content)
7391 (tui_clear_exec_info_content): Update.
7392 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7393 Update.
7394 * tui/tui-win.c (make_invisible_and_set_new_height)
7395 (make_visible_with_new_height): Update.
7396 * tui/tui-source.c (tui_set_source_content)
7397 (tui_show_symtab_source): Update.
7398 * tui/tui-layout.c (extract_display_start_addr)
7399 (show_source_disasm_command, show_data)
7400 (make_source_or_disasm_window)
7401 (show_source_or_disasm_and_command): Update.
7402 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7403 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7404 "gdbarch".
7405 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7406 to tui_source_window_base.
7407 (struct tui_win_info) <detail>: Remove source_info member.
7408 (struct tui_source_window_base) <has_locator>: Inline.
7409 Move contents from tui_source_info; rename has_locator member to
7410 m_has_locator.
7411 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7412 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7413 header file.
7414 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7415 Simplify.
7416 (tui_free_all_source_wins_content): Cast to
7417 tui_source_window_base.
7418
44f0e208
TT
74192019-06-25 Tom Tromey <tom@tromey.com>
7420
7421 * tui/tui-win.c (make_invisible_and_set_new_height)
7422 (make_visible_with_new_height): Call has_locator method.
7423 * tui/tui-layout.c (show_source_disasm_command, show_data)
7424 (show_source_or_disasm_and_command): Update for bool change.
7425 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7426 (tui_win_info) <has_locator>: New method.
7427 (struct tui_source_window_base) <has_locator>: New method.
7428 (tui_win_has_locator): Don't declare.
7429 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7430 from tui_win_has_locator.
7431 (tui_source_window_base): Use false, not FALSE.
7432
7778b912
TT
74332019-06-25 Tom Tromey <tom@tromey.com>
7434
7435 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7436 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7437 clear_detail method directly.
7438 (tui_clear_win_detail): Remove.
7439
f83d391c
TT
74402019-06-25 Tom Tromey <tom@tromey.com>
7441
7442 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7443 "this", not TUI_DISASM_WIN.
7444
13446e05
TT
74452019-06-25 Tom Tromey <tom@tromey.com>
7446
7447 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7448 declare.
7449 * tui/tui-winsource.c
7450 (tui_source_window_base::do_scroll_horizontal): Rename from
7451 tui_horizontal_source_scroll.
7452 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7453 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7454 from tui_vertical_data_scroll.
7455 * tui/tui-win.h (tui_scroll): Don't declare.
7456 * tui/tui-win.c (tui_win_info::forward_scroll)
7457 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7458 (tui_win_info::right_scroll): Rename and update.
7459 (tui_scroll_forward_command, tui_scroll_backward_command)
7460 (tui_scroll_left_command, tui_scroll_right_command): Update.
7461 (tui_scroll): Remove.
7462 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7463 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7464 from tui_vertical_source_scroll.
7465 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7466 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7467 from tui_vertical_disassem_scroll.
7468 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7469 do_scroll_horizontal>: New methods.
7470 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7471 Likewise.
7472 (struct tui_source_window_base): Add do_scroll_horizontal.
7473 (struct tui_source_window, struct tui_disasm_window): Add
7474 do_scroll_vertical.
7475 (struct tui_data_window, struct tui_cmd_window): Add
7476 do_scroll_horizontal and do_scroll_vertical.
7477 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7478
5cf82909
TT
74792019-06-25 Tom Tromey <tom@tromey.com>
7480
7481 * tui/tui-data.h (struct tui_source_window_base): New struct.
7482 (struct tui_source_window): Derive from tui_source_window_base.
7483 (struct tui_disasm_window): New struct.
7484 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7485 from tui_source_window::clear_detail.
7486 (tui_source_window_base): Rename from tui_source_window.
7487 (~tui_source_window_base): Rename from ~tui_source_window.
7488 (tui_alloc_win_info): Create a tui_disasm_window.
7489
ee1d42d6
TT
74902019-06-25 Tom Tromey <tom@tromey.com>
7491
7492 * tui/tui-data.h (struct tui_source_window)
7493 (struct tui_data_window): Declare destructors.
7494 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7495 destructors.
7496 (tui_win_info): Simplify.
7497
b4eb2452
TT
74982019-06-25 Tom Tromey <tom@tromey.com>
7499
7500 * tui/tui-winsource.c (tui_display_main)
7501 (tui_update_source_windows_with_addr)
7502 (tui_update_all_breakpoint_info): Update.
7503 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7504 (new_height_ok, parse_scrolling_args): Update.
7505 * tui/tui-stack.c (tui_show_frame_info): Update.
7506 * tui/tui-data.h (struct tui_list): Remove.
7507 (tui_source_windows): Return a reference to a std::vector.
7508 * tui/tui-data.c (source_windows): Now a std::vector.
7509 (tui_source_windows): Change return type.
7510 (tui_clear_source_windows): Rewrite.
7511 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7512 (tui_free_all_source_wins_content): Rewrite.
7513
8761a91b
TT
75142019-06-25 Tom Tromey <tom@tromey.com>
7515
7516 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7517 (struct tui_data_window, struct tui_cmd_window): Declare
7518 clear_detail method.
7519 * tui/tui-data.c (tui_source_window::clear_detail)
7520 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7521 methods.
7522 (tui_clear_win_detail): Simplify.
7523
0ed69eda
TT
75242019-06-25 Tom Tromey <tom@tromey.com>
7525
7526 * tui/tui-layout.c (make_source_window, make_disasm_window)
7527 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7528 Return the new window.
7529 (show_source_disasm_command, show_data)
7530 (show_source_or_disasm_and_command): Update.
7531
82432e10
TT
75322019-06-25 Tom Tromey <tom@tromey.com>
7533
7534 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7535 parameter. Return the new window.
7536 (show_source_disasm_command): Update and remove NULL check.
7537 (show_source_or_disasm_and_command): Update.
7538
ec328aa5
TT
75392019-06-25 Tom Tromey <tom@tromey.com>
7540
7541 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7542
33b906ab
TT
75432019-06-25 Tom Tromey <tom@tromey.com>
7544
7545 * tui/tui-data.h (struct tui_win_info): Make constructor
7546 protected. Make destructor virtual. Add initializers.
7547 (tui_source_window, tui_data_window, tui_cmd_window): New
7548 classes.
7549 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7550 constructor. Add "type" parameter.
7551 (tui_source_window, tui_data_window, tui_cmd_window): New
7552 constructors.
7553 (tui_alloc_win_info): Instantiate the appropriate subclass.
7554
e7e11af4
TT
75552019-06-25 Tom Tromey <tom@tromey.com>
7556
7557 * tui/tui-win.c (tui_resize_all): Use delete.
7558 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7559 destructor.
7560 (tui_free_window): Don't declare.
7561 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7562 Update.
7563
6792b55e
TT
75642019-06-25 Tom Tromey <tom@tromey.com>
7565
7566 * tui/tui-data.h (struct tui_win_info): Add constructor.
7567 * tui/tui-data.c (tui_alloc_win_info): Use new.
7568 (tui_free_window): Use delete.
7569
f95675e1
TT
75702019-06-22 Tom Tromey <tom@tromey.com>
7571
7572 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7573 declare.
7574 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7575
5bff081c
TT
75762019-06-22 Tom Tromey <tom@tromey.com>
7577
7578 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7579 declare.
7580 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7581
47e3f474
TV
75822019-06-22 Tom de Vries <tdevries@suse.de>
7583
7584 * dwarf2read.c (create_addrmap_from_aranges)
7585 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7586 instead of '%zu'.
7587
fd5866f6
SM
75882019-06-21 Simon Marchi <simon.marchi@efficios.com>
7589
7590 * dwarf2read.h (dwarf2_section_info_def): Remove.
7591 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7592 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7593 std::vector<dwarf2_section_info>.
7594 (struct dwo_file) <~dwo_file>: Remove.
7595 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7596 types field.
7597 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7598 (dwarf2_read_debug_names): Likewise.
7599 (create_debug_types_hash_table): Change parameter type to
7600 array_view, adjust code accordingly.
7601 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7602 (partial_die_info::fixup): Likewise.
7603 (determine_prefix): Likewise.
7604 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7605
fb1eb2f9
SM
76062019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7607
7608 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7609 gdb_bfd_ref_ptr.
7610 <~dwo_file>: Remove call to gdb_bfd_unref.
7611 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7612 gdb_bfd_ref_ptr::get.
7613
51ac9db5
SM
76142019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7615
7616 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7617 type to htab_up.
7618 * dwarf2read.c (struct dwo_file): Initialize fields.
7619 <~dwo_file>: New.
7620 (free_dwo_file): Remove, move content to ~dwo_file.
7621 (struct dwo_file_deleter): Remove.
7622 (dwo_file_up>: Remove custom deleter.
7623 (free_dwo_files): Remove.
7624 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7625 dwo_files.
7626 (process_skeletonless_type_units): Call unique_ptr::get.
7627 (allocate_dwo_file_hash_table): Add deleter to created hash
7628 table. Change return type to htab_up.
7629 (lookup_dwo_file_slot): Don't memset dwo_file, call
7630 unique_ptr::get.
7631 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7632 (create_dwo_unit_in_dwp_v2): Likewise.
7633 (open_and_init_dwo_file): Likewise.
7634 (free_dwo_file_from_slot): Remove.
7635
dc4ccb6f
SM
76362019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7637
7638 * dwarf2read.h (struct dwarf2_section_info) <readin,
7639 is_virtual>: Change type to bool.
7640 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7641 true instead of 1.
7642
e6a1c5cb
TT
76432019-06-19 Tom Tromey <tom@tromey.com>
7644
7645 * tui/tui-data.h (tui_init_content_element): Don't declare.
7646
6f6ffbeb
TT
76472019-06-19 Tom Tromey <tom@tromey.com>
7648
7649 * tui/tui-data.h (tui_init_win_info): Don't declare.
7650
f23f598e
TV
76512019-06-19 Tom de Vries <tdevries@suse.de>
7652
7653 * dwarf2read.h (abstract_to_concrete): Change type to
7654 std::unordered_map<sect_offset, std::vector<sect_offset>,
7655 gdb::hash_enum<sect_offset>>.
7656
680e1bee
TT
76572019-06-19 Tom Tromey <tromey@adacore.com>
7658
7659 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7660 EVAL_AVOID_SIDE_EFFECTS specially.
7661
dcf37923
TT
76622019-06-19 Tom Tromey <tromey@adacore.com>
7663
7664 * source-cache.c (highlighter): New global.
7665 (source_cache::get_source_lines): Create a highlighter on demand.
7666
494986d5
AB
76672019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7668
7669 * defs.h (deprecated_interactive_hook): Delete declaration.
7670 * interps.c (clear_interpreter_hooks): Remove use of
7671 deprecated_interactive_hook.
7672 * top.c (deprecated_interactive_hook): Delete definition.
7673 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7674
3360b6e7
TV
76752019-06-18 Tom de Vries <tdevries@suse.de>
7676
7677 PR gdb/24515
7678 * dwarf2read.h (abstract_to_concrete): Change type from
7679 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7680 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7681 * dwarf2read.c (read_variable): Update.
7682 (dwarf2_fetch_die_loc_sect_off): Update.
7683
310b3441
TV
76842019-06-17 Tom de Vries <tdevries@suse.de>
7685
7686 PR gdb/24617
7687 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7688 accessing parent[parent_len - 1].
7689
ba9777be
PP
76902019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7691
7692 PR gdb/24364
7693 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7694 call dtrace_process_dof with NULL dof.
7695
2b9f6e89
TV
76962019-06-16 Tom de Vries <tdevries@suse.de>
7697
7698 PR gdb/24445
7699 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7700
431b3ead
TT
77012019-06-16 Tom Tromey <tom@tromey.com>
7702
7703 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7704 (make_all_visible): Use address of member.
7705
d04b44a1
TT
77062019-06-16 Tom Tromey <tom@tromey.com>
7707
7708 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7709 (tui_free_window, free_content, free_content_elements): Remove
7710 unnecessary cast.
7711 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7712 cast.
7713 * tui/tui-regs.c (tui_show_register_group)
7714 (tui_display_registers_from, tui_display_reg_element_at_line):
7715 Remove unnecessary cast.
7716
bf5142e7
AB
77172019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7718
7719 * linux-nat.c (normal_mask): Delete.
7720 (_initialize_linux_nat): Don't initialise normal_mask.
7721
c4973306
SM
77222019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7723
7724 PR gdb/24445
7725 * dwarf-index-write.h (write_psymtabs_to_index): Add
7726 dwz_basename parameter.
7727 * dwarf-index-write.c (write_gdbindex): Move file writing to
7728 write_gdbindex_1. Change return type void.
7729 (assert_file_size): Move up, remove filename parameter.
7730 (write_gdbindex_1): New function.
7731 (write_debug_names): Change return type to void, call
7732 assert_file_size.
7733 (struct index_wip_file): New struct.
7734 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7735 file logic to index_wip_file. Write index for dwz file if
7736 needed.
7737 (save_gdb_index_command): Pass basename of dwz file, if present.
7738 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7739 build-id of dwz file, if present.
7740 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7741 (dwarf2_get_dwz_file): Likewise.
7742 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7743 (dwarf2_get_dwz_file): Likewise.
7744
395f9c91
TT
77452019-06-16 Tom Tromey <tom@tromey.com>
7746
7747 * coffread.c (process_coff_symbol): Use xstrdup.
7748 * value.c (create_internalvar): Use xstrdup.
7749
cafb3438
TT
77502019-06-16 Tom Tromey <tom@tromey.com>
7751
7752 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7753 * breakpoint.c (stopin_command, stopat_command)
7754 (until_break_command, decode_location_default): Remove unnecessary
7755 cast.
7756 * utils.c (subset_compare): Remove unnecessary cast.
7757 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7758 cast.
7759 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7760 cast.
7761 * infcmd.c (path_command): Remove unnecessary cast.
7762 * coffread.c (decode_type): Remove unnecessary cast.
7763 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7764 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7765 * tui/tui-stack.c (tui_show_locator_content)
7766 (tui_show_frame_info): Remove unnecessary cast.
7767 * tui/tui-win.c (tui_scroll_forward_command)
7768 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7769 (parse_scrolling_args): Remove unnecessary cast.
7770 * tui/tui-data.c (init_win_info, tui_del_window)
7771 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7772 (free_content_elements): Remove unnecessary cast.
7773 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7774 unnecessary cast.
7775 * tui/tui-source.c (tui_set_source_content)
7776 (tui_vertical_source_scroll): Remove unnecessary cast.
7777 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7778 cast.
7779 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7780 * tui/tui-regs.c (tui_display_registers_from)
7781 (tui_display_register): Remove unnecessary cast.
7782 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7783 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7784 (make_visible): Remove unnecessary cast.
7785 * tui/tui-winsource.c (tui_erase_source_content)
7786 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7787 unnecessary cast.
7788 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7789 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7790 * stabsread.c (read_type, read_array_type, read_range_type):
7791 Remove unnecessary cast.
7792 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7793 (parse_symbol, parse_type, upgrade_type, parse_external)
7794 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7795 unnecessary cast.
7796 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7797
730ead81
TT
77982019-06-16 Tom Tromey <tom@tromey.com>
7799
7800 * tui/tui-data.c (tui_alloc_generic_win_info)
7801 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7802 checks.
7803
584a927c
AB
78042019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7805 Andrew Burgess <andrew.burgess@embecosm.com>
7806
7807 * f-typeprint.c (f_print_type): Don't return early for not
7808 associated or not allocated types.
7809 (f_type_print_varspec_suffix): Add print_rank parameter and print
7810 ranks of array types in case they dangling.
7811 (f_type_print_base): Add print_rank parameter.
7812
30056ea0
AB
78132019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7814
7815 * NEWS: Mention new MI commands.
7816 * break-catch-throw.c (enum exception_event_kind): Move to
7817 breakpoint.h.
7818 (print_mention_exception_catchpoint): Output text as a single
7819 message.
7820 (catch_exception_command_1): Rename to...
7821 (catch_exception_event): ...this, make non-static, update header
7822 command, and change some parameter types.
7823 (catch_catch_command): Update for changes to
7824 catch_exception_command_1.
7825 (catch_throw_command): Likewise.
7826 (catch_rethrow_command): Likewise.
7827 * breakpoint.c (enum exception_event_kind): Delete.
7828 * breakpoint.h (enum exception_event_kind): Moved here from
7829 break-catch-throw.c.
7830 (catch_exception_event): Declare.
7831 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7832 (mi_cmd_catch_throw): New function.
7833 (mi_cmd_catch_rethrow): New function.
7834 (mi_cmd_catch_catch): New function.
7835 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7836 'catch-catch' entries.
7837 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7838 (mi_cmd_catch_rethrow): Declare.
7839 (mi_cmd_catch_catch): Declare.
7840
ec8e2b6d
AB
78412019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7842
7843 * annotate.c (annotate_source_line): Change return type to void,
7844 update implementation to match.
7845 * annotate.h (annotate_source_line): Change return type to void,
7846 update header comment.
7847 * stack.c (print_frame_info): Don't change what frame information
7848 is printed based on whether annotations are on or not.
7849
0d3abd8c
AB
78502019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7851
7852 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7853 (annotate_source): Make static.
7854 (annotate_source_line): Moved from source.c and renamed from
7855 identify_source_line. Update the return type.
7856 * annotate.h (annotate_source): Delete declaration.
7857 (annotate_source_line): Declaration moved from source.h, and
7858 renamed from identify_source_line. Return type updated.
7859 * source.c (identify_source_line): Moved to annotate.c and renamed
7860 to annotate_source_line.
7861 (info_line_command): Remove check of annotation_level.
7862 * source.h (identify_source_line): Move declaration to annotate.h
7863 and rename to annotate_source_line.
7864 * stack.c: Add 'annotate.h' include.
7865 (print_frame_info): Remove check of annotation_level before
7866 calling annotate_source_line.
7867
00df30ae
AB
78682019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7869
7870 * source-cache.c (source_cache::get_plain_source_lines): Use
7871 open_source_file_with_line_charpos instead of just
7872 open_source_file, remove call to find_source_lines.
7873 (source_cache::get_source_lines): Likewise.
7874 * source.c (find_source_lines): Make static.
7875 (get_filename_and_charpos): Renamed into...
7876 (open_source_file_with_line_charpos): ..this along with changes to
7877 return a scoped_fd, and some other minor clean ups.
7878 (identify_source_line): Use open_source_file_with_line_charpos.
7879 (search_command_helper): Use open_source_file_with_line_charpos
7880 instead of just open_source_file, remove call to
7881 find_source_lines.
7882 * source.h (open_source_file_with_line_charpos): Declare new
7883 function.
7884 (find_source_lines): Delete declaration.
7885
afda45a2
AB
78862019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7887
7888 * source.c (get_filename_and_charpos): Remove fullname
7889 parameter.
7890 (identify_source_line): Update call to get_filename_and_charpos.
7891
0735b091
TT
78922019-06-14 Tom Tromey <tromey@adacore.com>
7893
7894 PR gdb/24502:
7895 * ui-style.h (skip_ansi_escape): Update comment.
7896 * ui-file.h (class no_terminal_escape_file): New class.
7897 * ui-file.c (no_terminal_escape_file::write)
7898 (no_terminal_escape_file::puts): New methods.
7899 * cli/cli-logging.c (handle_redirections): Use
7900 no_terminal_escape_file.
7901
52ce35e2
TT
79022019-06-14 Tom Tromey <tromey@adacore.com>
7903
7904 * NEWS: Move convenience variable news above Python news.
7905
73cc7272
TT
79062019-06-14 Tom Tromey <tom@tromey.com>
7907
7908 * gnulib: Move directory to top-level.
7909 * configure.ac: Don't configure gnulib.
7910 * configure: Rebuild.
7911 * common/common-defs.h: Use new path to gnulib.
7912 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
7913 (GNULIB_H): Remove.
7914 (INCGNU): Look in new gnulib location.
7915 (HFILES_NO_SRCDIR): Remove gnulib files.
7916 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
7917 (generated_files): Remove GNULIB_H.
7918 ($(LIBGNU), all-lib): Remove targets.
7919 (distclean): Don't mention GNULIB_BUILDDIR.
7920 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
7921
f5686554
TT
79222019-06-14 Tom Tromey <tromey@adacore.com>
7923
7924 * symfile.c (add_symbol_file_command): Remove obsolete comment.
7925 Warn if symbol file does not provide any symbols.
7926
a0c1ffed
TT
79272019-06-14 Tom Tromey <tromey@adacore.com>
7928
7929 * source.c (find_and_open_source): Respect basenames_may_differ.
7930
7c39e397
AB
79312019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
7932
7933 * annotate.c (annotate_breakpoints_invalid): Make use of
7934 scoped_restore_terminal_state.
7935 (annotate_frames_invalid): Likewise.
7936
f411722c
TT
79372019-06-14 Tom Tromey <tromey@adacore.com>
7938
7939 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
7940 allow assignment to an internalvar.
7941
4268ec18
TT
79422019-06-14 Tom Tromey <tromey@adacore.com>
7943
7944 * ada-lex.l: Allow "_" in attribute names.
7945
abdb711e
TT
79462019-06-14 Tom Tromey <tromey@adacore.com>
7947
7948 PR gdb/24653:
7949 * regcache.c (registers_changed): Don't call alloca.
7950 * top.c (execute_command): Don't call alloca.
7951
4c048731
PA
79522019-06-13 Pedro Alves <palves@redhat.com>
7953
7954 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
7955 'expression'. When parsing an expression, error out if there's
7956 junk after "unlimited".
7957 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7958 (do_set_command): Adjust calls to is_unlimited_literal.
7959
66eb1ed3
PA
79602019-06-13 Pedro Alves <palves@redhat.com>
7961
7962 * compile/compile.c (make_compile_options_def_group): Add braces
7963 around array_view initializer.
7964 * thread.c (make_thread_apply_all_options_def_group)
7965 (make_thread_apply_all_options_def_group): Likewise.
7966
3345721a
PA
79672019-06-13 Pedro Alves <palves@redhat.com>
7968
7969 * NEWS (New commands): Mention "maint test-options
7970 require-delimiter", "maint test-options unknown-is-error", "maint
7971 test-options unknown-is-operand" and "maint show
7972 test-options-completion-result".
7973 (New command options, command completion): New section.
7974 (Completion improvements): New section.
7975 Mention that you can abbreviate "unlimited".
7976
6206060d
PA
79772019-06-13 Pedro Alves <palves@redhat.com>
7978
7979 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7980 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7981 * unittests/cli-utils-selftests.c (test_parse_flags)
7982 (test_parse_flags_qcs): Delete.
7983 (test_cli_utils): Don't call deleted functions.
7984
6665660a
PA
79852019-06-13 Pedro Alves <palves@redhat.com>
7986
7987 * thread.c: Include "cli/cli-option.h".
7988 (tp_array_compar_ascending): Global.
7989 (tp_array_compar): Delete function.
7990 (tp_array_compar_ascending, tp_array_compar_descending): New
7991 functions.
7992 (ascending_option_def, qcs_flag_option_def)
7993 (thr_qcs_flags_option_defs)
7994 (make_thread_apply_all_options_def_group)
7995 (make_thread_apply_options_def_group): New.
7996 (thread_apply_all_command): Use gdb::option::process_options.
7997 (thread_apply_command_completer)
7998 (thread_apply_all_command_completer): New.
7999 (thread_apply_command): Use gdb::option::process_options.
8000 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8001 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8002 to generate help text of "thread apply". Adjust "taas"'s help.
8003 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8004 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8005
f7e13587
PA
80062019-06-13 Pedro Alves <palves@redhat.com>
8007
8008 * thread.c (thread_apply_command): Check for invalid TID with
8009 isdigit instead of !isalpha.
8010
5d707134
PA
80112019-06-13 Pedro Alves <palves@redhat.com>
8012
8013 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8014 (validate_flags_qcs): New.
8015 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8016 (validate_flags_qcs): Declare.
8017 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8018 (make_frame_apply_options_def_group): New.
8019 (frame_apply_command_count): Process options with
8020 gdb::option::process_options.
8021 (frame_apply_completer): New.
8022 (frame_apply_level_completer, frame_apply_all_completer)
8023 (frame_apply_completer): New.
8024 (_initialize_stack): Update help of "frame apply", "frame apply
8025 level", "frame apply all" and "faas" to mention supported options
8026 and install command completers.
8027 * stack.h (frame_apply_all_completer): Declare.
8028 * thread.c: Include "stack.h".
8029 (tfaas_command): Add "--".
8030 (_initialize_thread): Update help "tfaas" to mention supported
8031 options and install command completer.
8032
272d4594
PA
80332019-06-13 Pedro Alves <palves@redhat.com>
8034
8035 * completer.c (complete_nested_command_line): New.
8036 (gdb_completion_word_break_characters_throw): Add assertion.
8037 * completer.h (complete_nested_command_line): Declare.
8038
90a1ef87
PA
80392019-06-13 Pedro Alves <palves@redhat.com>
8040
8041 * stack.c (parse_backtrace_qualifiers): New.
8042 (backtrace_command): Use it.
8043 (backtrace_command_completer): Complete on qualifiers.
8044
d4c16835
PA
80452019-06-13 Pedro Alves <palves@redhat.com>
8046
8047 * frame.c: Include "cli/cli-option.h.
8048 (user_set_backtrace_options): New.
8049 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8050 Delete.
8051 (get_prev_frame): Adjust.
8052 (boolean_option_def, uinteger_option_def)
8053 (set_backtrace_option_defs): New.
8054 (_initialize_frame): Adjust and use
8055 gdb::option::add_setshow_cmds_for_options to install "set
8056 backtrace past-main" and "set backtrace past-entry".
8057 * frame.h: Include "cli/cli-option.h".
8058 (struct frame_print_options): Forward declare.
8059 (print_frame_arguments_all, print_frame_arguments_scalars)
8060 (print_frame_arguments_none): Declare.
8061 (print_entry_values): Delete declaration.
8062 (struct frame_print_options, user_frame_print_options): New.
8063 (struct set_backtrace_options): New.
8064 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8065 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8066 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8067 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8068 (list_args_or_locals): Add frame_print_options parameter.
8069 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8070 * python/py-framefilter.c (enumerate_args): Pass down
8071 USER_FRAME_PRINT_OPTIONS.
8072 * stack.c: Include "cli/cli-option.h".
8073 (print_frame_arguments_all, print_frame_arguments_scalars)
8074 (print_frame_arguments_none): Declare.
8075 (print_raw_frame_arguments, print_entry_values): Delete.
8076 (user_frame_print_options): New.
8077 (boolean_option_def, enum_option_def, frame_print_option_defs):
8078 New.
8079 (struct backtrace_cmd_options): New.
8080 (bt_flag_option_def): New.
8081 (backtrace_command_option_defs): New.
8082 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8083 (print_frame_arg, read_frame_arg, print_frame_args)
8084 (print_frame_info, print_frame): Add frame_print_options parameter
8085 and use it.
8086 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8087 (backtrace_command_1): Add frame_print_options and
8088 backtrace_cmd_options parameters and use them.
8089 (make_backtrace_options_def_group): New.
8090 (backtrace_command): Process command options with
8091 gdb::option::process_options.
8092 (backtrace_command_completer): New.
8093 (_initialize_stack): Extend "backtrace"'s help to mention
8094 supported options. Install completer for "backtrace".
8095 Install some settings commands with add_setshow_cmds_for_options.
8096
2daf894e
PA
80972019-06-13 Pedro Alves <palves@redhat.com>
8098
8099 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8100 and that "set/show print raw frame-arguments" are now deprecated.
8101
8102 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8103 command.
8104 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8105 * stack.c (_initialize_stack): Install "set/show print
8106 raw-frame-arguments", and deprecate "set/show print raw
8107 frame-arguments".
8108 * valprint.c (_initialize_valprint): Deprecate "set/show print
8109 raw".
8110
e6ed716c
PA
81112019-06-13 Pedro Alves <palves@redhat.com>
8112
8113 * compile/compile.c (struct compile_options): New.
8114 (compile_flag_option_def, compile_command_option_defs)
8115 (make_compile_options_def_group): New.
8116 (compile_file_command): Handle options with
8117 gdb::option::process_options.
8118 (compile_file_command_completer): New function.
8119 (compile_code_command): Handle options with
8120 gdb::option::process_options.
8121 (compile_code_command_completer): New function.
8122 (_initialize_compiler): Install completers for "compile code" and
8123 "compile file". Mention available options in "compile code" and
8124 "compile code"'s help.
8125 * completer.c (advance_to_completion_word): New, factored out from
8126 ...
8127 (advance_to_expression_complete_word_point): ... this.
8128 (advance_to_filename_complete_word_point): New.
8129 * completer.h (advance_to_filename_complete_word_point): New
8130 declaration.
8131
7d8062de
PA
81322019-06-13 Pedro Alves <palves@redhat.com>
8133
8134 * compile/compile.c: Include "cli/cli-option.h".
8135 (compile_print_value): Scope data pointer is now a
8136 value_print_options pointer; adjust.
8137 (compile_print_command): Process options. Scope data pointer is
8138 now a value_print_options pointer; adjust.
8139 (_initialize_compile): Update "compile print"'s help to include
8140 supported options. Install a completer for "compile print".
8141 * cp-valprint.c (show_vtblprint, show_objectprint)
8142 (show_static_field_print): Delete.
8143 (_initialize_cp_valprint): Don't install "set print
8144 static-members", "set print vtbl", "set print object" here.
8145 * printcmd.c: Include "cli/cli-option.h" and
8146 "common/gdb_optional.h".
8147 (print_command_parse_format): Rework to fill in a
8148 value_print_options instead of a format_data.
8149 (print_value): Change parameter type from format_data pointer to
8150 value_print_options reference. Adjust.
8151 (print_command_1): Process options. Adjust to pass down a
8152 value_print_options.
8153 (print_command_completer): New.
8154 (_initialize_printcmd): Install print_command_completer as
8155 handle_brkchars completer for the "print" command. Update
8156 "print"'s help to include supported options.
8157 * valprint.c: Include "cli/cli-option.h".
8158 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8159 here from cp-valprint.c.
8160 (boolean_option_def, uinteger_option_def)
8161 (value_print_option_defs, make_value_print_options_def_group):
8162 New. Use gdb::option::add_setshow_cmds_for_options to install
8163 "set print elements", "set print null-stop", "set print repeats",
8164 "set print pretty", "set print union", "set print array", "set
8165 print address", "set print symbol", "set print array-indexes".
8166 * valprint.h: Include <string> and "cli/cli-option.h".
8167 (make_value_print_options_def_group): Declare.
8168 (print_value): Change parameter type from format_data pointer to
8169 value_print_options reference.
8170 (print_command_completer): Declare.
8171
9d0faba9
PA
81722019-06-13 Pedro Alves <palves@redhat.com>
8173
8174 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8175 (COMMON_SFILES): Add maint-test-settings.c.
8176 * cli/cli-decode.c (boolean_enums): New global, factored out from
8177 ...
8178 (add_setshow_boolean_cmd): ... here.
8179 * cli/cli-decode.h (boolean_enums): Declare.
8180 * cli/cli-option.c: New file.
8181 * cli/cli-option.h: New file.
8182 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8183 factored out from ...
8184 (parse_cli_boolean_value(const char *)): ... this.
8185 (is_unlimited_literal): Change parameter type to pointer to
8186 pointer. Adjust and advance ARG pointer.
8187 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8188 (parse_cli_var_enum): New, factored out from ...
8189 (do_set_command): ... this. Adjust.
8190 * cli/cli-setshow.h (parse_cli_boolean_value)
8191 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8192 (parse_cli_var_enum): Declare.
8193 * cli/cli-utils.c: Include "cli/cli-option.h".
8194 (get_ulongest): New.
8195 * cli/cli-utils.h (get_ulongest): Declare.
8196 (check_for_argument): New overloads.
8197 * maint-test-options.c: New file.
8198
2c722807
PA
81992019-06-13 Pedro Alves <palves@redhat.com>
8200
8201 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8202 parse a range if "-" is at the end of the string.
8203
dee7b4c8
PA
82042019-06-13 Pedro Alves <palves@redhat.com>
8205
8206 * cli/cli-setshow.c (parse_auto_binary_operation)
8207 (parse_cli_boolean_value): Don't allow "o".
8208
dca0f6c0
PA
82092019-06-13 Pedro Alves <palves@redhat.com>
8210
8211 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8212 * NEWS: Mention maint test-settings KIND.
8213 * maint-test-settings.c: New file.
8214
597bf39d
PA
82152019-06-13 Pedro Alves <palves@redhat.com>
8216
8217 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8218 completer.
8219 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8220 "set" completers.
8221
48c410fb
PA
82222019-06-13 Pedro Alves <palves@redhat.com>
8223
8224 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8225 after item.
8226
93bcb043
PA
82272019-06-13 Pedro Alves <palves@redhat.com>
8228
8229 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8230
cbba3ecd
PA
82312019-06-13 Pedro Alves <palves@redhat.com>
8232
8233 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8234 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8235 call.
8236 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8237 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8238 calls.
8239 (check_for_argument): Skip spaces after argument.
8240
b9a3f842
PA
82412019-06-13 Pedro Alves <palves@redhat.com>
8242
8243 * thread.c (thread_apply_command): Adjust TID parsing.
8244 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8245 detected before end of string.
8246 (tid_is_in_list): Error out if LIST is invalid.
8247
3844e605
PA
82482019-06-13 Pedro Alves <palves@redhat.com>
8249
8250 * completer.c (complete_line_internal_1): Rewind completion word
8251 point.
8252 (completion_tracker::advance_custom_word_point_by): Change
8253 parameter type to int.
8254 * completer.h (completion_tracker::advance_custom_word_point_by):
8255 Likewise.
8256
00b56dbe
PA
82572019-06-13 Pedro Alves <palves@redhat.com>
8258
8259 * completer.c (advance_to_completion_word): Handle delimiters.
8260
d106773e
PA
82612019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8262
8263 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8264
08f10e02
TT
82652019-06-11 Tom Tromey <tom@tromey.com>
8266
8267 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8268 (xmalloc_failed): Move to alloc.c.
8269 * alloc.c: New file.
8270 * Makefile.in (COMMON_SFILES): Add alloc.c.
8271
1c7fe951
TT
82722019-06-11 Tom Tromey <tom@tromey.com>
8273
8274 * nat/linux-waitpid.c: Don't include server.h.
8275 (linux_debug): Remove.
8276 (my_waitpid): Update.
8277
89549d7f
TT
82782019-06-11 Tom Tromey <tromey@adacore.com>
8279
8280 * infcall.c (_initialize_infcall): Remove trailing newline from
8281 help.
8282 * user-regs.c (_initialize_user_regs): Remove trailing newline
8283 from help.
8284 * typeprint.c (_initialize_typeprint): Remove trailing newline
8285 from help.
8286 * reverse.c (_initialize_reverse): Remove trailing newlines from
8287 help.
8288 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8289 from help.
8290 * language.c (add_set_language_command): Remove trailing newline
8291 from help.
8292 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8293 help.
8294 * disasm.c (_initialize_disasm): Remove trailing newline from
8295 help.
8296 * top.c (init_main): Remove trailing newline from help.
8297 * interps.c (_initialize_interpreter): Remove trailing newline
8298 from help.
8299 * btrace.c (_initialize_btrace): Remove trailing newlines from
8300 help.
8301 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8302 from help.
8303 * python/python.c (_initialize_python): Remove trailing newline
8304 from help.
8305 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8306 help.
8307 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8308 from help. Reformat some text.
8309 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8310 from help.
8311 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8312 newline from help.
8313
86108c13
TT
83142019-06-11 Tom Tromey <tromey@adacore.com>
8315
8316 * darwin-nat.c (darwin_decode_exception_message)
8317 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8318
a7067863
AB
83192019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8320
8321 * valops.c (value_slice): Check for not allocated or not
8322 associated values.
8323
9ab08412
TV
83242019-06-10 Tom de Vries <tdevries@suse.de>
8325
8326 PR gdb/24618
8327 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8328 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8329 invalid.
8330
f19e22e9
TV
83312019-06-10 Tom de Vries <tdevries@suse.de>
8332
8333 PR gdb/24611
8334 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8335 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8336
e99f9db0
TV
83372019-06-10 Tom de Vries <tdevries@suse.de>
8338
8339 PR symtab/24545
8340 * symtab.c (struct demangled_name_entry): Add language field.
8341 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8342 static minimal symbol". Set and use language field.
8343
9bf7038b
TT
83442019-06-10 Tom Tromey <tromey@adacore.com>
8345
8346 * ada-lang.c (_initialize_ada_language): Update help text.
8347
422186a9
TT
83482019-06-10 Tom Tromey <tromey@adacore.com>
8349
8350 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8351 with a newline.
8352 * guile/guile.c (handle_boot_error): Don't end warning with a
8353 newline.
8354 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8355 warning with a newline.
8356 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8357 newline.
8358 (s12z_frame_cache): Likewise.
8359 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8360 a newline.
8361 * solib-svr4.c (disable_probes_interface): Don't end warning with
8362 a newline.
8363 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8364 newline.
8365 * python/python.c (do_finish_initialization): Don't end warning
8366 with a newline.
8367
25ce02ee
TT
83682019-06-10 Tom Tromey <tom@tromey.com>
8369
8370 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8371 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8372 gdbpy_enter.
8373
caa429d8
TT
83742019-06-10 Tom Tromey <tromey@adacore.com>
8375
8376 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8377 data.
8378 (elf_new_init): Don't call stabsread_new_init.
8379 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8380 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8381 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8382
81873cc8
TV
83832019-06-10 Tom de Vries <tdevries@suse.de>
8384
8385 PR symtab/16264
8386 PR symtab/24517
8387 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8388
4fa0265e
РИ
83892019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8390
8391 * source.c (find_and_open_source): Also rewrite relative file
8392 names.
8393
1a3da2cd
AB
83942019-04-26 Amos Bird <amosbird@gmail.com>
8395
8396 * annotate.c (annotate_thread_exited): Add "thread-exited"
8397 annotation.
8398
3847a7bf
TT
83992019-06-06 Tom Tromey <tromey@adacore.com>
8400
8401 * maint.h (class scoped_command_stats): Use
8402 DISABLE_COPY_AND_ASSIGN.
8403 <print_time>: New method.
8404 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8405 print_time.
8406 (scoped_command_stats::print_time): New method.
8407
312617a3
AB
84082019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8409
8410 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8411 instructions of lengths 6 or 8 bytes.
8412
b02f78f9
PA
84132019-06-04 Pedro Alves <palves@redhat.com>
8414
8415 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8416
8417 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8418 * breakpoint.c (condition_completer): Likewise.
8419 * cli/cli-dump.c (scan_expression): Likewise.
8420 * common/filestuff.c (mkdir_recursive): Likewise.
8421 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8422 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8423 (gdb_abspath): Likewise.
8424 * compile/compile-cplus-types.c
8425 (compile_cplus_instance::decl_name): Likewise.
8426 * completer.c (complete_explicit_location):
8427 (signal_completer, reg_or_group_completer_1): Likewise.
8428 * cp-support.c (cp_remove_params_if_any): Likewise.
8429 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8430 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8431 * infcmd.c (strip_bg_char): Likewise.
8432 * linespec.c (copy_token_string): Likewise.
8433 * mi/mi-main.c (output_cores): Likewise.
8434 * psymtab.c (psymtab_search_name):
8435 * symfile.c (test_set_ext_lang_command): Likewise.
8436 * target.c (target_fileio_read_stralloc): Likewise.
8437 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8438 * value.c (complete_internalvar): Likewise.
8439
e1f2e1a2
CB
84402019-06-04 Christian Biesinger <cbiesinger@google.com>
8441
8442 Add objfile property to gdb.Type.
d3238f7d
PA
8443 * NEWS: Mention Python API addition.
8444 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 8445
e664d728
PW
84462019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8447
8448 * NEWS: Mention the new set|show style [title|highlight].
8449 Mention changes to "show style", "help" and "apropos".
8450
66d8c862
PW
84512019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8452
8453 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8454 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8455 instead of print_help_for_command.
8456 (print_doc_of_command): New function.
8457 (help_list): Add 'apropos -v word' suggestion.
8458 (print_help_for_command): Style the command name using title style.
8459 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8460 (_initialize_cli_cmds): Describe -v in apropos_command help.
8461
9303eb2f
PW
84622019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8463
8464 * cli/cli-style.h (cli_style_option): Add name in constructor,
8465 add m_name class member, add constructor with intensity,
8466 add name class function.
8467 (cli_style_option::add_setshow_commands): Remove name argument.
8468 (highlight_style, title_style): New styles.
8469 * cli/cli-style.c (do_show): New function that shows a style
8470 characteristic styling the style name with itself.
8471 (set_style_name): New function.
8472 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8473 Update all callers according to the changes in cli/cli-style.h.
8474 * utils.h (fputs_highlighted): New function.
8475 * utils.c (fputs_highlighted): Likewise.
8476
e2c52041
PW
84772019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8478
8479 * NEWS: Mention new pipe command and new convenience variables.
8480
947d3946
PW
84812019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8482
8483 * cli/cli-cmds.c (pipe_command): New function.
8484 (_initialize_cli_cmds): Call add_com for pipe_command.
8485 Define | as an alias for pipe.
8486 (exit_status_set_internal_vars): New function.
8487 (shell_escape): Call exit_status_set_internal_vars.
8488 cli/cli-decode.c (find_command_name_length): Recognize | as
8489 a single character command.
8490
b8fd0918
PW
84912019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8492
8493 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8494 top.c (execute_command_to_ui_file): New function, mostly a copy
8495 of execute_command_to_string.
8496 (execute_command_to_string): Implement by calling
8497 execute_command_to_ui_file.
8498
68bb5386
PW
84992019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8500
8501 * top.h (saved_command_line): Remove declaration.
8502 * top.c (previous_saved_command_line, previous_repeat_arguments):
8503 New variables.
8504 (saved_command_line): Make static, define together with other
8505 'repeat variables'.
8506 (dont_repeat): Clear repeat_arguments.
8507 (repeat_previous, get_saved_command_line, save_command_line):
8508 New functions.
8509 (gdb_init): Initialize saved_command_line
8510 and previous_saved_command_line.
8511 * main.c (captured_main_1): Remove saved_command_line initialization.
8512 * event-top.c (handle_line_of_input): Update to use
8513 the new 'repeat' related functions instead of direct access to
8514 saved_command_line.
8515 * command.h (repeat_previous, get_saved_command_line,
8516 save_command_line): New declarations.
8517 (dont_repeat): Add comment.
8518
bfcdb852
TT
85192019-05-30 Tom Tromey <tromey@adacore.com>
8520
8521 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8522 Fix comment.
8523 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8524
0ef209f2
JV
85252019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8526
8527 PR cli/24587
8528 * completer.c (complete): Initialize variable word.
8529
955b06fa
SDJ
85302019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8531
8532 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8533 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8534 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8535 'body' is NULL to the outter 'if', protecting the '!is_define'
8536 situation as well.
8537
fa9c3fa0
TT
85382019-05-29 Tom Tromey <tromey@adacore.com>
8539
8540 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8541 (dwarf_unknown): New function.
8542 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8543 (dwarf_type_encoding_name): Use dwarf_unknown.
8544
4330d61d
TT
85452019-05-29 Tom Tromey <tromey@adacore.com>
8546
8547 PR c++/20020:
8548 * cp-valprint.c (cp_print_value_fields): Call
8549 cp_print_static_field inside "try".
8550
33a6bc35
TT
85512019-05-29 Tom Tromey <tromey@adacore.com>
8552
8553 * inflow.c (struct terminal_info): Add default operator=.
8554 * configure: Rebuild.
8555 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8556 -Wdeprecated-copy-dtor, -Wredundant-move.
8557
000439d5
TT
85582019-05-29 Tom Tromey <tromey@adacore.com>
8559
8560 * NEWS: Add entry.
8561 * infcmd.c (print_return_value_1): Handle finish_print
8562 option.
8563 (show_print_finish): New function.
8564 (_initialize_infcmd): Add "set/show print finish" commands.
8565 * valprint.c (user_print_options): Initialize new member.
8566 * valprint.h (struct value_print_options) <finish_print>: New
8567 member.
8568
c0e70c62
TT
85692019-05-28 Tom Tromey <tromey@adacore.com>
8570
8571 * ada-lang.c (ada_remove_Xbn_suffix)
8572 (find_old_style_renaming_symbol)
8573 (parse_old_style_renaming): Remove.
8574 (ada_find_renaming_symbol): Don't call
8575 find_old_style_renaming_symbol.
8576 (ada_is_renaming_symbol): Rename from
8577 ada_find_renaming_symbol. Remove "block" parameter. Return
8578 bool. Now static.
8579 (ada_read_var_value): Update and simplify.
8580 * ada-exp.y (write_var_or_type): Remove old code.
8581
766f8836
AH
85822019-05-28 Alan Hayward <alan.hayward@arm.com>
8583
68255adc 8584 PR gdb/25010
766f8836
AH
8585 * event-top.c: Remove include comment.
8586 * inflow.c (class scoped_ignore_sigttou): Move from here...
8587 * inflow.h (class scoped_ignore_sigttou): ...to here.
8588 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8589 * top.c: Remove include comment.
8590
eb41253a
TT
85912019-05-27 Tom Tromey <tom@tromey.com>
8592
8593 * NEWS: Fix typo.
8594
4ca51187
TT
85952019-05-22 Tom Tromey <tromey@adacore.com>
8596
8597 * target.c (target_follow_exec): Constify parameter.
8598 * target-delegates.c: Rebuild.
8599 * remote.c (remote_target::follow_exec): Constify parameter.
8600 * infrun.c (follow_exec): Constify parameter.
8601 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8602 (target_follow_exec): Likewise.
8603
8fca4da0
AH
86042019-05-22 Alan Hayward <alan.hayward@arm.com>
8605
8606 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8607 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8608
b7060614
AH
86092019-05-22 Alan Hayward <alan.hayward@arm.com>
8610
8611 * NEWS: Add debugredirect and testsuite sections.
8612
0a5954bd
SC
86132019-05-22 Simon Cook <simon.cook@embecosm.com>
8614
8615 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8616 target descriptions using exclusively floating point register name
8617 aliases.
8618
dc42e902
AB
86192019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8620
8621 PR gdb/18644:
8622 * f-lang.c (build_fortran_types): Handle the case where
8623 gdbarch_floatformat_for_type returns a nullptr.
8624
fb7806c7
TV
86252019-05-21 Tom de Vries <tdevries@suse.de>
8626
8627 PR cli/24587
8628 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8629
34d11c68
AB
86302019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8631
8632 PR gdb/18644:
8633 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8634 16-byte floats.
8635 * i386-tdep.c (i386_floatformat_for_type): Use
8636 floatformats_ia64_quad for the 16-byte floating point component
8637 within a fortran 32-byte complex number.
8638
122cf0f2
AB
86392019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8640
8641 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8642 delete default constructor.
8643 (find_partial_die): Update to return const struct.
8644 (partial_die_parent_scope): Move variable declaration into scope
8645 of its use and change its type to auto.
8646 (guess_partial_die_structure_name): Likewise.
8647 (partial_die_info::fixup): Likewise.
8648
33d0e35a
TT
86492019-05-17 Tom Tromey <tromey@adacore.com>
8650
8651 * source.c (find_and_open_source): Remove cast.
8652
a45575b0
TT
86532019-05-17 Tom Tromey <tromey@adacore.com>
8654
8655 * annotate.c (annotate_source): Make "filename" const.
8656 * annotate.h (annotate_source): Use const.
8657
81f47ac2
AH
86582019-05-17 Alan Hayward <alan.hayward@arm.com>
8659
8660 * disasm.c (set_disassembler_options): Send errors to stderr.
8661
ca1285d1
AH
86622019-05-17 Alan Hayward <alan.hayward@arm.com>
8663
8664 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8665 (cli_interp_base::set_logging): Check debug_redirect.
8666 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8667 * cli/cli-logging.c (debug_redirect): Add static variable.
8668 (pop_output_files): Add default param.
8669 (handle_redirections): Print debug setting.
8670 (show_logging_command): Likewise.
8671 (_initialize_cli_logging): Add debugredirect command.
8672 * interps.c (current_interp_set_logging): Add debug_redirect
8673 parameter.
8674 * interps.h (set_logging): Add debug_redirect parameter.
8675 (current_interp_set_logging): Likewise.
8676 * mi/mi-common.h: Likewise.
8677 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8678
86792019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
8680 Tom Tromey <tromey@adacore.com>
8681
8682 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8683 directly.
8684 * cli/cli-interp.h (make_logging_output): Remove declaration.
8685 * cli/cli-logging.c (make_logging_output): Remove function.
8686 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8687 directly.
8688 * ui-file.c (tee_file::tee_file): Remove bools.
8689 (tee_file::~tee_file): Remove deletes.
8690 * ui-file.h (tee_file): Remove bools.
8691
26648588
JV
86922019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8693
8694 * mi/mi-cmds.h (mi_cmd_complete): New function.
8695 * mi/mi-main.c (mi_cmd_complete): Likewise.
8696 * mi/mi-cmds.c: Define new MI command -complete.
8697 * NEWS: Mention new -complete command.
8698
6e035501
JV
86992019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8700
8701 * completer.h (complete): New function.
8702 * completer.c (complete): Likewise.
8703 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8704 function defined in completer.h.
8705
7d0e2ece
JV
87062019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8707
e79be6e5 8708 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 8709
fb816e8b
TV
87102019-05-17 Tom de Vries <tdevries@suse.de>
8711
8712 PR gdb/24094
8713 * dwarf2read.c (struct cu_partial_die_info): New struct.
8714 (find_partial_die): Return cu_partial_die_info.
8715 (partial_die_parent_scope, guess_partial_die_structure_name)
8716 (partial_die_info::fixup): Handle new return type of find_partial_die.
8717
677052f2
SDJ
87182019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8719
a1726c38 8720 PR breakpoints/24541
677052f2
SDJ
8721 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8722 "std::string", simplifying the algorithm.
8723
f3da9116
SDJ
87242019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8725
8726 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8727 (stap_static_probe_ops::get_probes): Likewise.
8728
f1bb75ab
SDJ
87292019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8730
8731 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8732 '-')" and "else if".
8733 (stap_parse_single_operand): Join checks for
8734 "gdbarch_stap_parse_special_token_p" and
8735 "gdbarch_stap_parse_special_token" in the same "if" statement.
8736 Invert check when verifying for operation on register
8737 displacement.
8738
3ca58cde
SDJ
87392019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8740
8741 * stap-probe.c (stap_get_opcode): Update comment.
8742 (stap_get_expected_argument_type): Likewise.
8743 (handle_stap_probe): Likewise.
8744
af2d9bee
SDJ
87452019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8746
8747 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8748 return type to 'bool'. Adjust comment. Use 'bool' when
8749 appropriate.
8750 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8751 * stap-probe.c (stap_parse_argument_1): Likewise.
8752 (stap_is_operator): Likewise.
8753 (stap_is_generic_prefix): Likewise.
8754 (stap_is_register_prefix): Likewise.
8755 (stap_is_register_indirection_prefix): Likewise.
8756 (stap_is_integer_prefix): Likewise.
8757 (stap_generic_check_suffix): Likewise.
8758 (stap_check_integer_suffix): Likewise.
8759 (stap_check_register_suffix): Likewise.
8760 (stap_check_register_indirection_suffix): Likewise.
8761 (stap_parse_register_operand): Likewise.
8762 (stap_parse_single_operand): Likewise.
8763 (stap_parse_argument_1): Likewise.
8764 (stap_probe::get_argument_count): Likewise.
8765 (stap_is_operator): Likewise.
8766
61c9c421
TT
87672019-05-16 Tom Tromey <tromey@adacore.com>
8768
8769 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8770 keyword to foreach.
8771
9ddc1af1
SM
87722019-05-15 Simon Marchi <simon.marchi@efficios.com>
8773
8774 * linux-thread-db.c (try_thread_db_load_1): Change return type
8775 to bool.
8776 (try_thread_db_load): Likewise.
8777 (try_thread_db_load_from_pdir_1): Likewise.
8778 (try_thread_db_load_from_pdir): Likewise.
8779 (try_thread_db_load_from_sdir): Likewise.
8780 (try_thread_db_load_from_dir): Likewise.
8781 (thread_db_load_search): Likewise.
8782 (has_libpthread): Likewise.
8783 (thread_db_load): Likewise.
8784
7bede828
SDJ
87852019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8786
8787 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8788 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8789 NULL, and complain/return if that's the case.
8790
c5358db4
JD
87912019-05-15 John Darrington <john@darrington.wattle.id.au>
8792
8793 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8794 (advance, posn, abstract_read_memory): New functions.
8795 [struct mem_read_abstraction]: New struct.
8796 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8797
c408a94f
TT
87982019-05-14 Tom Tromey <tromey@adacore.com>
8799
8800 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8801 value is not lval_memory.
8802
e7bd7fba
TT
88032019-05-14 Tom Tromey <tromey@adacore.com>
8804
8805 * solib.c (info_sharedlibrary_command): Style the file name.
8806
a6d0f249
AH
88072019-05-14 Alan Hayward <alan.hayward@arm.com>
8808
8809 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8810 (aarch64_vnv_type): Likewise.
8811 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8812 * common/tdesc.c: Likewise.
8813 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8814 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8815 * features/aarch64-fpu.xml: Add ieee half view.
8816 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8817 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8818 * gdbtypes.h (struct builtin_type): Likewise.
8819 (struct objfile_type): Likewise.
8820
66b8bb74
SM
88212019-05-12 Paul Naert <paul.naert@polymtl.ca>
8822
8823 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8824 typo.
8825 * location.h (string_to_event_location): Likewise.
8826
21c219fd
JB
88272019-05-11 Joel Brobecker <brobecker@adacore.com>
8828
8829 GDB 8.3 released.
8830
13674803
SM
88312019-05-10 Simon Marchi <simon.marchi@efficios.com>
8832
8833 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8834 New variable declaration.
8835 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8836 New variable.
8837 (print_one_breakpoint): Use ui_out::test_flags and new global
8838 variable to compute use_fixed_output.
8839 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8840 Remove.
8841 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8842 (mi_multi_location_breakpoint_output_fixed): Remove.
8843 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8844 new variable.
8845 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8846 fix_multi_location_breakpoint_output flag if version >= 3.
8847 * ui-out.h (enum ui_out_flag)
8848 <fix_multi_location_breakpoint_output>: New enumerator.
8849
a9eac7f9
SM
88502019-05-10 Simon Marchi <simon.marchi@efficios.com>
8851
8852 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8853
71bed2db
TT
88542019-05-10 Tom Tromey <tromey@adacore.com>
8855
8856 * ada-lang.c (catch_ada_completer): New function.
8857 (_initialize_ada_language): Use it.
8858
24c54127
TT
88592019-05-10 Tom Tromey <tromey@adacore.com>
8860
8861 * thread.c (print_thread_info): Make "requested_threads" const.
8862 * gdbthread.h (print_thread_info): Make "requested_threads"
8863 const.
8864 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8865 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8866
7a102139
TT
88672019-05-08 Tom Tromey <tom@tromey.com>
8868
8869 * gdbtypes.c (objfile_type_data): Change type.
8870 (objfile_type, _initialize_gdbtypes): Update.
8871
924d79e2
TT
88722019-05-08 Tom Tromey <tom@tromey.com>
8873
8874 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8875 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8876 (_initialize_dwarf2_frame): Update.
8877
4c58e337
TT
88782019-05-08 Tom Tromey <tom@tromey.com>
8879
8880 * objc-lang.c (objc_objfile_data): Change type.
8881 (find_methods): Update.
8882 (_initialize_objc_lang): Remove.
8883
d772d2ab
TT
88842019-05-08 Tom Tromey <tom@tromey.com>
8885
8886 * stabsread.c (rs6000_builtin_type_data): Change type.
8887 (rs6000_builtin_type, _initialize_stabsread): Update.
8888
d11d83f4
TT
88892019-05-08 Tom Tromey <tom@tromey.com>
8890
8891 * mips-tdep.c (mips_pdr_data): Remove.
8892 (_initialize_mips_tdep): Update.
8893
9a73f0ad
TT
88942019-05-08 Tom Tromey <tom@tromey.com>
8895
8896 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
8897 (hppa_init_objfile_priv_data, read_unwind_info)
8898 (find_unwind_entry, _initialize_hppa_tdep): Update.
8899
8127a2fa
TT
89002019-05-08 Tom Tromey <tom@tromey.com>
8901
8902 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
8903 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
8904 on obstack.
8905 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
8906
91d3055d
TT
89072019-05-08 Tom Tromey <tom@tromey.com>
8908
8909 * mdebugread.c (basic_type_data): Change type.
8910 (basic_type, _initialize_mdebugread): Update.
8911
31930bd3
TT
89122019-05-08 Tom Tromey <tom@tromey.com>
8913
8914 * common/gdb_unique_ptr.h (struct noop_deleter): New.
8915
bdb3ed9e
TT
89162019-05-08 Tom Tromey <tom@tromey.com>
8917
8918 * nto-tdep.c (nto_inferior_data_reg): Change type.
8919 (nto_inferior_data): Update.
8920 (nto_inferior_data_cleanup, nto_new_inferior_data)
8921 (_initialize_nto_tdep): Remove.
8922 * nto-tdep.h (struct nto_inferior_data): Add initializers.
8923
f37b313d
TT
89242019-05-08 Tom Tromey <tom@tromey.com>
8925
8926 * ada-lang.c (struct ada_inferior_data): Add initializers.
8927 (ada_inferior_data): Change type.
8928 (ada_inferior_data_cleanup): Remove.
8929 (get_ada_inferior_data, ada_inferior_exit)
8930 (struct ada_pspace_data): Add initializers, destructor.
8931 (ada_pspace_data_handle): Change type.
8932 (get_ada_pspace_data): Update.
8933 (ada_pspace_data_cleanup): Remove.
8934
24699405
TT
89352019-05-08 Tom Tromey <tom@tromey.com>
8936
8937 * coffread.c (struct coff_symfile_info): Add initializers.
8938 (coff_objfile_data_key): Move lower. Change type.
8939 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
8940 Update.
8941 (coff_free_info): Remove.
8942
d4e05d2f
TT
89432019-05-08 Tom Tromey <tom@tromey.com>
8944
8945 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
8946 (fbsd_pspace_data_handle): Move lower. Change type.
8947 (get_fbsd_pspace_data): Update.
8948 (fbsd_pspace_data_cleanup): Remove.
8949 (_initialize_fbsd_tdep): Update.
8950
14ef6690
TT
89512019-05-08 Tom Tromey <tom@tromey.com>
8952
8953 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
8954 (get_ada_tasks_pspace_data): Update.
8955 (ada_tasks_pspace_data_cleanup): Remove.
8956 (_initialize_tasks): Update.
8957 (ada_tasks_inferior_data_handle): Change type.
8958 (get_ada_tasks_inferior_data): Update.
8959 (ada_tasks_inferior_data_cleanup): Remove.
8960 (struct ada_tasks_pspace_data): Add initializers.
8961
814cf43a
TT
89622019-05-08 Tom Tromey <tom@tromey.com>
8963
8964 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
8965 * symfile-debug.c (debug_sym_get_probes): Change type.
8966 * stap-probe.c (handle_stap_probe):
8967 (stap_static_probe_ops::get_probes): Change type.
8968 * probe.h (class static_probe_ops) <get_probes>: Change type.
8969 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
8970 (parse_probes_in_pspace): Update.
8971 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
8972 Update.
8973 (any_static_probe_ops::get_probes): Change type.
8974 * elfread.c (elfread_data): New typedef.
8975 (probe_key): Change type.
8976 (elf_get_probes): Likewise. Update.
8977 (probe_key_free): Remove.
8978 (_initialize_elfread): Update.
8979 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8980 Change type.
8981 (dtrace_process_dof_probe, dtrace_process_dof)
8982 (dtrace_static_probe_ops::get_probe): Change type.
8983
02dc647e
TT
89842019-05-08 Tom Tromey <tom@tromey.com>
8985
8986 * xcoffread.c (struct xcoff_symfile_info): Rename from
8987 coff_symfile_info. Add initializers.
8988 (xcoff_objfile_data_key): Move lower. Change type.
8989 (XCOFF_DATA): Rewrite.
8990 (xcoff_free_info): Remove.
8991 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
8992 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
8993 (xcoff_initial_scan): Update.
8994
09232438
TT
89952019-05-08 Tom Tromey <tom@tromey.com>
8996
8997 * solib-svr4.c (struct svr4_info): Add initializers and
8998 destructor.
8999 <probes_table>: Now an htab_up.
9000 (solib_svr4_pspace_data): Change type.
9001 (free_probes_table): Simplify.
9002 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9003 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9004 (probes_table_remove_objfile_probes, register_solib_event_probe)
9005 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9006 (_initialize_svr4_solib): Update.
9007
7b4a314f
TT
90082019-05-08 Tom Tromey <tom@tromey.com>
9009
9010 * remote.c (remote_pspace_data): Change type.
9011 (remote_pspace_data_cleanup): Remove.
9012 (get_remote_exec_file, set_pspace_remote_exec_file)
9013 (_initialize_remote): Update.
9014
51d3063a
TT
90152019-05-08 Tom Tromey <tom@tromey.com>
9016
9017 * breakpoint.c (breakpoint_objfile_key): Change type.
9018 (get_breakpoint_objfile_data): Update.
9019 (free_breakpoint_objfile_data): Remove.
9020 (_initialize_breakpoint): Update.
9021
89fb8848
TT
90222019-05-08 Tom Tromey <tom@tromey.com>
9023
9024 * linux-tdep.c (struct linux_info): Add initializers.
9025 (linux_inferior_data): Move. Change type.
9026 (invalidate_linux_cache_inf): Update.
9027 (linux_inferior_data_cleanup): Remove.
9028 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9029
e9b89e2d
TT
90302019-05-08 Tom Tromey <tom@tromey.com>
9031
9032 * auxv.c (auxv_inferior_data): Move. Change type.
9033 (auxv_inferior_data_cleanup): Remove.
9034 (invalidate_auxv_cache_inf): Rewrite.
9035 (get_auxv_inferior_data, _initialize_auxv): Update.
9036
8c42777c
TT
90372019-05-08 Tom Tromey <tom@tromey.com>
9038
9039 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9040 (symfile_debug_objfile_data_key): Change type.
9041 (symfile_debug_installed, debug_qf_has_symbols)
9042 (debug_qf_find_last_source_symtab)
9043 (debug_qf_forget_cached_source_info)
9044 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9045 (debug_qf_print_stats, debug_qf_dump)
9046 (debug_qf_expand_symtabs_for_function)
9047 (debug_qf_expand_all_symtabs)
9048 (debug_qf_expand_symtabs_with_fullname)
9049 (debug_qf_map_matching_symbols)
9050 (debug_qf_expand_symtabs_matching)
9051 (debug_qf_find_pc_sect_compunit_symtab)
9052 (debug_qf_map_symbol_filenames)
9053 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9054 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9055 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9056 (debug_sym_read_linetable, debug_sym_relocate): Update.
9057 (symfile_debug_free_objfile): Remove.
9058 (install_symfile_debug_logging, _initialize_symfile_debug):
9059 Update.
9060
5bfd760d
TT
90612019-05-08 Tom Tromey <tom@tromey.com>
9062
9063 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9064 allocate_on_obstack.
9065 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9066 (get_dwarf2_per_objfile): Update.
9067 (set_dwarf2_per_objfile): Remove.
9068 (dwarf2_has_info, dwarf2_get_section_info): Update.
9069 (dwarf2_free_objfile): Remove.
9070 (_initialize_dwarf2_read): Update.
9071
e85e19b4
TT
90722019-05-08 Tom Tromey <tom@tromey.com>
9073
9074 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9075 initializers.
9076 <unsupported_script_warning_printed,
9077 script_not_found_warning_printed>: Now bool.
9078 (auto_load_pspace_data): Change type.
9079 (~auto_load_pspace_info): Rename from
9080 auto_load_pspace_data_cleanup.
9081 (get_auto_load_pspace_data, init_loaded_scripts_info)
9082 (clear_section_scripts, maybe_print_unsupported_script_warning)
9083 (maybe_print_script_not_found_warning, _initialize_auto_load):
9084 Update.
9085
f6aa7436
TT
90862019-05-08 Tom Tromey <tom@tromey.com>
9087
9088 * objfiles.c (objfile_pspace_info): Add destructor and
9089 initializers.
9090 (objfiles_pspace_data): Change type.
9091 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9092 (get_objfile_pspace_data): Update.
9093 (objfiles_bfd_data): Change type.
9094 (get_objfile_bfd_data): Update.
9095 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9096
6ae614f6
TT
90972019-05-08 Tom Tromey <tom@tromey.com>
9098
9099 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9100 Change type.
9101 (get_catch_syscall_inferior_data): Update.
9102 (catch_syscall_inferior_data_cleanup): Remove.
9103 (_initialize_break_catch_syscall): Update.
9104
6509b8eb
TT
91052019-05-08 Tom Tromey <tom@tromey.com>
9106
9107 * inflow.c (struct terminal_info): Add destructor and
9108 initializers.
9109 (inflow_inferior_data): Change type.
9110 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9111 (get_inflow_inferior_data, inflow_inferior_exit)
9112 (swap_terminal_info, _initialize_inflow): Update.
9113
35632941
TT
91142019-05-08 Tom Tromey <tom@tromey.com>
9115
9116 * target-dcache.c (target_dcache_cleanup): Remove.
9117 (target_dcache_aspace_key): Change type.
9118 (target_dcache_init_p, target_dcache_invalidate)
9119 (target_dcache_get, target_dcache_get_or_init)
9120 (_initialize_target_dcache): Update.
9121 * dcache.h (struct dcache_deleter): New.
9122
3017b94d
TT
91232019-05-08 Tom Tromey <tom@tromey.com>
9124
9125 * symtab.c (struct symbol_cache): Add destructor and
9126 initializers.
9127 (symbol_cache_key): Move. Change type.
9128 (make_symbol_cache, free_symbol_cache): Remove.
9129 (get_symbol_cache): Update.
9130 (symbol_cache_cleanup): Remove.
9131 (ALL_PSPACES, symbol_cache_flush)
9132 (maintenance_print_symbol_cache)
9133 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9134 Update.
9135
a32ad8c5
TT
91362019-05-08 Tom Tromey <tom@tromey.com>
9137
9138 * symtab.c (struct main_info): Add destructor and initializers.
9139 (main_progspace_key): Move. Change type.
9140 (get_main_info): Update.
9141 (main_info_cleanup): Remove.
9142 (_initialize_symtab): Update.
9143
5f6e90a0
TT
91442019-05-08 Tom Tromey <tom@tromey.com>
9145
9146 * registry.h (DECLARE_REGISTRY): Define the _key class.
9147
1bd0c6e4
AB
91482019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9149
9150 * NEWS: Merge two 'New commands' sections.
9151
2228ef77
XR
91522019-05-08 Joel Brobecker <brobecker@adacore.com>
9153
9154 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9155 parameter and use Ada language definition instead.
9156 (ada_val_print_ptr): Remove unused language parameter.
9157 (ada_val_print_num): Remove language parameter and use Ada language
9158 definition instead.
9159 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9160 parameter.
9161 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9162 parameter and use Ada language definition instead.
9163 (ada_val_print_1): Update all ada_val_print_xxx calls.
9164 Remove language parameter.
9165 (ada_val_print): Update ada_val_print_1 call.
9166
60fcc1c3
TT
91672019-05-08 Tom Tromey <tromey@adacore.com>
9168
9169 * remote.c (remote_hw_watchpoint_limit)
9170 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9171 Now static.
9172
ed2b7c17
TT
91732019-05-08 Tom Tromey <tromey@adacore.com>
9174
9175 * maint.c (_initialize_maint_cmds): Move initialization code to
9176 remote.c.
9177 (watchdog, show_watchdog): Move to remote.c.
9178 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9179 "watchdog" static.
9180 (_initialize_remote): Move initialization code from maint.c.
9181 * defs.h (watchdog): Don't declare.
9182
b0be6c91
TT
91832019-05-08 Tom Tromey <tromey@adacore.com>
9184
9185 * tui/tui-interp.c: Include main.h.
9186 * interps.c: Include main.h.
9187 * main.h (interpreter_p): Declare.
9188 * defs.h (interpreter_p): Don't declare.
9189
587ee17b
TT
91902019-05-08 Tom Tromey <tromey@adacore.com>
9191
9192 * dwarf2loc.c: Include dwarf2read.h.
9193 * defs.h (read_unsigned_leb128): Don't declare.
9194 * dwarf2read.h (read_unsigned_leb128): Declare.
9195
ca1df239
TT
91962019-05-08 Tom Tromey <tromey@adacore.com>
9197
9198 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9199 method.
9200
99f20f08
TT
92012019-05-08 Tom Tromey <tromey@adacore.com>
9202
9203 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9204 when no wrap column is set.
9205
80e55b13
TT
92062019-05-08 Tom Tromey <tromey@adacore.com>
9207
9208 * c-lang.c (c_get_string): Handle non-C-style arrays.
9209
9d3421af
TT
92102019-05-08 Tom Tromey <tromey@adacore.com>
9211
9212 * typeprint.c (print_offset_data::update): Print the bit offset,
9213 not the number of bits remaining.
9214
844333e2
TT
92152019-05-08 Tom Tromey <tromey@adacore.com>
9216
9217 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9218 padding at end of comment.
9219
988915ee
TT
92202019-05-08 Tom Tromey <tromey@adacore.com>
9221
9222 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9223 Compare main types.
9224
26bfd823
TT
92252019-05-06 Tom Tromey <tom@tromey.com>
9226
9227 * common/scoped_mmap.c: Include common-defs.h.
9228 * common/scoped_mmap.h: Don't include config.h.
9229
89055eaa
TT
92302019-05-04 Tom Tromey <tom@tromey.com>
9231
9232 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9233 (struct aarch64_call_info): Add initializers.
9234 <si>: Now a std::vector.
9235 (pass_on_stack, aarch64_push_dummy_call): Update.
9236
5da01df5
TT
92372019-05-04 Simon Marchi <simon.marchi@efficios.com>
9238 Tom Tromey <tom@tromey.com>
9239
9240 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9241 (ppc_threads): Now a std::vector. Now static.
9242 (hwdebug_find_thread_points_by_tid)
9243 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9244 Update.
9245
fbdf05a1
TT
92462019-05-04 Tom Tromey <tom@tromey.com>
9247
9248 * arc-tdep.c (arc_tdesc_init): Return bool.
9249
06d16ec9
TT
92502019-05-04 Tom Tromey <tom@tromey.com>
9251
9252 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9253 Use gdb_assert_not_reached.
9254
9c056022
TT
92552019-05-04 Tom Tromey <tom@tromey.com>
9256
9257 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9258 "false".
9259
fa9c2a59
TT
92602019-05-04 Tom Tromey <tom@tromey.com>
9261
9262 * arc-tdep.c (arc_tdesc_init): Use bool.
9263
e2eb806a
TT
92642019-05-04 Tom Tromey <tom@tromey.com>
9265
9266 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9267
6fe87677
TT
92682019-05-04 Tom Tromey <tom@tromey.com>
9269
9270 * cli/cli-cmds.c (valid_command_p): Return bool.
9271
7f008c9e
TT
92722019-05-04 Tom Tromey <tom@tromey.com>
9273
9274 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9275 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9276
b6484282
RT
92772019-05-04 Raul Tambre <raul@tambre.ee>
9278
9279 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9280 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9281 operator for comparison.
9282
af97b416
TT
92832019-05-04 Tom Tromey <tom@tromey.com>
9284
9285 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9286 (lookup_partial_symbol, print_partial_symbols)
9287 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9288 (psymbol_compare): Update.
9289 (add_psymbol_to_bcache): Clear the entire psymbol.
9290 (maintenance_check_psymtabs): Update.
9291 * psympriv.h (struct partial_symbol): Don't derive from
9292 general_symbol_info.
9293 <obj_section, unrelocated_address, address,
9294 set_unrelocated_address>: Update.
9295 <ginfo>: New member.
9296 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9297 (debug_names::write_psymbols): Update.
9298
9d6d4be8
TV
92992019-05-04 Tom de Vries <tdevries@suse.de>
9300
9301 * contrib/cc-with-tweaks.sh: Support -n arg.
9302
66452beb
PW
93032019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9304
9305 * corelow.c (core_target::detach): Ensure frame cache and
9306 register caches are cleared.
9307 inferior.c (exit_inferior_1): Likewise.
9308
bde09ab7
TT
93092019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9310 Tom Tromey <tom@tromey.com>
9311
9312 * dictionary.c (collate_pending_symbols_by_language): Remove
9313 "struct" from foreach.
9314 * symtab.c (lookup_global_symbol_from_objfile)
9315 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9316 foreach.
9317 * ser-tcp.c (net_open): Remove "struct" from foreach.
9318 * objfiles.c (objfile_relocate, objfile_rebase)
9319 (objfile_has_symbols): Remove "struct" from foreach.
9320 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9321 from foreach.
9322 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9323 foreach.
9324 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9325 "struct" from foreach.
9326 * ada-lang.c (create_excep_cond_exprs)
9327 (ada_exception_catchpoint_cond_string): Remove "struct" from
9328 foreach.
9329
222a8d25
TT
93302019-05-03 Tom Tromey <tromey@adacore.com>
9331
9332 * ada-exp.y (convert_char_literal): Check suffix of each
9333 enumerator.
9334
fcd60b84
DP
93352019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9336
9337 PR ada/21406:
9338 * ada-exp.y (yywrap): Don't define.
9339 * ada-lex.l (%option): Add noyywrap
9340 (yywrap): Remove.
9341
5f2459c2
EZ
93422019-05-03 Eli Zaretskii <eliz@gnu.org>
9343
353ea2d1
EZ
9344 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9345 _WIN32_WINNT to the XP level, unless already defined to a higher
9346 level.
9347
9348 * unittests/parse-connection-spec-selftests.c:
9349 * ser-tcp.c:
9350 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9351 override.
9352
5f2459c2
EZ
9353 * symfile.c (find_separate_debug_file): Remove colon from the
9354 drive spec of DOS/Windows file names of the target, so that the
9355 file name produced from DEBUGDIR and the target's directory will
9356 be valid on DOS/Windows systems.
9357
80062eb9
AB
93582019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9359
9360 * rust-lang.c (val_print_struct): Handle printing structures
9361 containing strings.
9362
b8c05e85
TT
93632019-05-02 Tom Tromey <tromey@adacore.com>
9364
9365 * valarith.c (_initialize_valarith): Remove.
9366
4504bbde
TT
93672019-05-01 Tom Tromey <tromey@adacore.com>
9368
9369 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9370 bitfields.
9371
d48e62f4
TT
93722019-05-01 Tom Tromey <tromey@adacore.com>
9373
9374 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9375 for big-endian copies.
9376
15f18d14
AT
93772019-04-30 Ali Tamur <tamur@google.com>
9378 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9379 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9380 (read_3_bytes): New function.
9381
ab4ee614
JB
93822019-04-30 Joel Brobecker <brobecker@adacore.com>
9383
9384 * windows-nat.c (main_thread_id): Delete.
9385 (handle_output_debug_string): Replace main_thread_id by
9386 current_event.dwThreadId.
9387 (fake_create_process): Likewise.
9388 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9389 Do not set main_thread_id.
9390 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9391 current_event.dwThreadId.
9392 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9393
8ed5b76e
JB
93942019-04-30 Joel Brobecker <brobecker@adacore.com>
9395
9396 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9397 Use current_event.dwThreadId instead of main_thread_id.
9398
2ff0a947
TT
93992019-04-30 Tom Tromey <tromey@adacore.com>
9400
9401 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9402 (create_excep_cond_exprs): Iterate over program spaces.
9403 (ada_exception_catchpoint_cond_string): Examine all minimal
9404 symbols for exception types.
9405
a776957c
TT
94062019-04-30 Tom Tromey <tromey@adacore.com>
9407
9408 PR c++/24470:
9409 * dwarf2read.c (process_structure_scope): Handle case where type
9410 has template parameters but no symbol was created.
9411
bc68014d
AB
94122019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9413 Chris January <chris.january@arm.com>
9414
9415 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9416 qualifier.
9417 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9418
f1fdc960
AB
94192019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9420
9421 * f-typeprint.c (f_print_type): Update rules for printing
9422 whitespace.
9423 (f_type_print_varspec_suffix): Likewise.
9424
bf7a4de1
AB
94252019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9426 Chris January <chris.january@arm.com>
9427
9428 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9429 function arguments.
9430
bbe75b9d
AB
94312019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9432
9433 * f-lang.c (build_fortran_types): Change name of void type to
9434 lower case.
9435 * f-typeprint.c (f_type_print_base): Print the name of the void
9436 type, rather than a fixed string.
9437 * f-valprint.c (f_decorations): Use lower case void string.
9438
1db455a7
AB
94392019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9440 Chris January <chris.january@arm.com>
9441
9442 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9443 types for Fortran.
9444
b6d03bb2
AB
94452019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9446 Chris January <chris.january@arm.com>
9447 David Lecomber <david.lecomber@arm.com>
9448
9449 * f-exp.y (BINOP_INTRINSIC): New token.
9450 (exp): New parser rule handling BINOP_INTRINSIC.
9451 (f77_keywords): Add new builtin procedures.
9452 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9453 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9454 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9455 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9456 (print_unop_subexp_f): New function.
9457 (print_binop_subexp_f): New function.
9458 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9459 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9460 (dump_subexp_body_f): Likewise.
9461 (operator_check_f): Likewise.
9462 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9463 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9464
83228e93
AB
94652019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9466
9467 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9468 UNOP_KIND.
9469 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9470 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9471 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9472 (operator_length_f): New fuction.
9473 (print_subexp_f): New function.
9474 (op_name_f): New function.
9475 (dump_subexp_body_f): New function.
9476 (operator_check_f): New function.
9477 (exp_descriptor_f): Replace standard expression handling functions
9478 with new functions.
9479 * gdb/fortran-operator.def: New file.
9480 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9481 * gdb/std-operator.def: Remove UNOP_KIND.
9482
6fdcd7cc
AB
94832019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9484
9485 * std-operator.def: Remove unbalanced, stray double quote
9486 character.
9487
2e62ab40
AB
94882019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9489 Chris January <chris.january@arm.com>
9490 Daniel Everett <daniel.everett@arm.com>
9491 Nick Forrington <nick.forrington@arm.com>
9492 Richard Bunt <richard.bunt@arm.com>
9493
9494 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9495 of depth when printing anonymous structs or unions.
9496 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9497 Don't print either the top-level value, or the children if the
9498 max-depth is exceeded.
9499 (ppscm_print_children): When printing the key of a map, allow one
9500 extra level of depth.
9501 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9502 print either the top-level value, or the children if the max-depth
9503 is exceeded.
9504 (print_children): When printing the key of a map, allow one extra
9505 level of depth.
9506 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9507 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9508 (user_print_options): Initialise max_depth field.
9509 (val_print_scalar_or_string_type_p): New function.
9510 (val_print): Check to see if the max depth has been reached.
9511 (val_print_check_max_depth): Define new function.
9512 (show_print_max_depth): New function.
9513 (_initialize_valprint): Add 'print max-depth' option.
9514 * valprint.h (struct value_print_options) <max_depth>: New field.
9515 (val_print_check_max_depth): Declare new function.
9516 * NEWS: Document new feature.
9517
4be290b2
AB
95182019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9519
9520 * ada-lang.c (ada_language_defn): Initialise new field.
9521 * c-lang.c (c_is_string_type_p): New function.
9522 (c_language_defn): Initialise new field.
9523 (cplus_language_defn): Initialise new field.
9524 (asm_language_defn): Initialise new field.
9525 (minimal_language_defn): Initialise new field.
9526 * c-lang.h (c_is_string_type_p): Declare new function.
9527 * d-lang.c (d_language_defn): Initialise new field.
9528 * f-lang.c (f_is_string_type_p): New function.
9529 (f_language_defn): Initialise new field.
9530 * go-lang.c (go_is_string_type_p): New function.
9531 (go_language_defn): Initialise new field.
9532 * language.c (default_is_string_type_p): New function.
9533 (unknown_language_defn): Initialise new field.
9534 (auto_language_defn): Initialise new field.
9535 * language.h (struct language_defn) <la_is_string_type_p>: New
9536 member variable.
9537 (default_is_string_type_p): Declare new function.
9538 * m2-lang.c (m2_language_defn): Initialise new field.
9539 * objc-lang.c (objc_language_defn): Initialise new field.
9540 * opencl-lang.c (opencl_language_defn): Initialise new field.
9541 * p-lang.c (pascal_is_string_type_p): New function.
9542 (pascal_language_defn): Initialise new field.
9543 * rust-lang.c (rust_is_string_type_p): New function.
9544 (rust_language_defn): Initialise new field.
9545
721b08c6
AB
95462019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9547
9548 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9549 New field.
9550 * ada-lang.c (ada_language_defn): Initialise new field.
9551 * c-lang.c (c_language_defn): Likewise.
9552 (cplus_language_defn): Likewise.
9553 (asm_language_defn): Likewise.
9554 (minimal_language_defn): Likewise.
9555 * d-lang.c (d_language_defn): Likewise.
9556 * f-lang.c (f_language_defn): Likewise.
9557 * go-lang.c (go_language_defn): Likewise.
9558 * language.c (unknown_language_defn): Likewise.
9559 (auto_language_defn): Likewise.
9560 * m2-lang.c (m2_language_defn): Likewise.
9561 * objc-lang.c (objc_language_defn): Likewise.
9562 * opencl-lang.c (opencl_language_defn): Likewise.
9563 * p-lang.c (pascal_language_defn): Likewise.
9564 * rust-lang.c (rust_language_defn): Likewise.
9565
fc913e53
AB
95662019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9567
9568 * ada-lang.c (ada_is_character_type): Change return type to bool.
9569 (ada_is_string_type): Likewise.
9570 * ada-lang.h (ada_is_character_type): Update declaration
9571 (ada_is_string_type): Likewise.
9572
fa731fa0
PW
95732019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9574
9575 Support style in 'frame|thread apply'
9576
9577 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9578 * record.c (record_start, record_stop): Update callers of
9579 execute_command_to_string with false.
9580 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9581 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9582 methods.
9583 (class string_file): New constructor with term_out parameter.
9584 Override methods term_out and can_emit_style_escape. New member
9585 term_out.
9586 (class stdio_file): Override can_emit_style_escape.
9587 (class tee_file): Override term_out and can_emit_style_escape.
9588 * utils.h (can_emit_style_escape): Remove.
9589 * utils.c (can_emit_style_escape): Likewise.
9590 Update all callers of can_emit_style_escape (SOMESTREAM) to
9591 SOMESTREAM->can_emit_style_escape.
9592 * source-cache.c (source_cache::get_source_lines): Likewise.
9593 * stack.c (frame_apply_command_count): Call execute_command_to_string
9594 passing the term_out characteristic of the current gdb_stdout.
9595 * thread.c (thr_try_catch_cmd): Likewise.
9596 * top.c (execute_command_to_string): pass term_out parameter
9597 to construct the string_file for the command output.
9598 * ui-file.c (term_cli_styling): New function (most code moved
9599 from utils.c can_emit_style_escape).
9600 (string_file::string_file, string_file::can_emit_style_escape,
9601 stdio_file::can_emit_style_escape, tee_file::term_out,
9602 tee_file::can_emit_style_escape): New functions.
9603
136afab8
PW
96042019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9605
9606 * NEWS: Mention the new set|show may-call-functions.
9607 * infcall.c (may_call_functions_p): New variable.
9608 (show_may_call_functions_p): New function.
9609 (call_function_by_hand_dummy): Throws an error if not
9610 may-call-functions.
9611 (_initialize_infcall): Call add_setshow_boolean_cmd for
9612 may-call-functions.
9613
725cbb63
KS
96142019-04-25 Keith Seitz <keiths@redhat.com>
9615
9616 PR c++/24367
9617 * cp-support.c (inspect_type): Don't attempt substitutions
9618 of symbol with the same name.
9619
3d1cbb78
TT
96202019-04-25 Tom Tromey <tromey@adacore.com>
9621
9622 PR gdb/24475:
9623 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9624 static.
9625
94aeb44b
TT
96262019-04-25 Tom Tromey <tromey@adacore.com>
9627
9628 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9629 rvalue reference.
9630 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9631 (gdb_xml_parser::parse): Use std::move.
9632 * python/python-internal.h (gdbpy_convert_exception): Take a const
9633 reference.
9634 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9635 std::move.
9636 * python/py-utils.c (gdbpy_convert_exception): Take a const
9637 reference.
9638 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9639 Use std::move.
9640 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9641 Use std::move.
9642 * mi/mi-main.c (mi_print_exception): Take a const reference.
9643 * main.c (handle_command_errors): Take a const reference.
9644 * linespec.c (parse_linespec): Use std::move.
9645 * infcall.c (run_inferior_call): Use std::move.
9646 (call_function_by_hand_dummy): Use std::move.
9647 * exec.c (try_open_exec_file): Use std::move.
9648 * exceptions.h (exception_print, exception_fprintf)
9649 (exception_print_same): Update.
9650 * exceptions.c (print_exception, exception_print)
9651 (exception_fprintf, exception_print_same): Change parameters to
9652 const reference.
9653 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9654 * common/new-op.c: Use std::move.
9655 * common/common-exceptions.h (struct gdb_exception): Add move
9656 constructor.
9657 (struct gdb_exception_error, struct gdb_exception_quit, struct
9658 gdb_quit_bad_alloc): Change constructor to move constructor.
9659 (throw_exception): Change parameter to rvalue reference.
9660 * common/common-exceptions.c (throw_exception): Take rvalue
9661 reference.
9662 * cli/cli-interp.c (safe_execute_command): Use std::move.
9663 * breakpoint.c (insert_bp_location, location_to_sals): Use
9664 std::move.
9665
680d7fd5
TT
96662019-04-25 Tom Tromey <tromey@adacore.com>
9667
9668 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9669 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9670 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9671 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9672 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9673 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9674 guile/scm-value.c: Use unpack.
9675 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9676 gdbscm_gdb_exception.
9677 (gdbscm_throw_gdb_exception): Likewise.
9678 (struct gdbscm_gdb_exception): New.
9679 (unpack): New function.
9680 (gdbscm_wrap): Use unpack.
9681
c6fdd8b2
TT
96822019-04-25 Tom Tromey <tromey@adacore.com>
9683
9684 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9685 (gdb_rl_callback_handler): Use std::move.
9686 * common/common-exceptions.h (struct gdb_exception): Add move
9687 assignment operator.
9688 (throw_exception_sjlj): Change "exception" to const reference.
9689 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9690 (throw_exception_sjlj): Change "exception" to const reference.
9691
cc06b668
TT
96922019-04-25 Tom Tromey <tromey@adacore.com>
9693
9694 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9695 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9696 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9697 Update.
9698 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9699 Update.
9700 * mi/mi-interp.c (mi_interp::exec): Update.
9701 * linespec.c (parse_linespec): Update.
9702 * infcall.c (run_inferior_call): Update.
9703 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9704 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9705 (gdbscm_lookup_global_symbol): Update.
9706 * guile/scm-param.c (gdbscm_parameter_value): Update.
9707 * guile/scm-frame.c (gdbscm_frame_read_register)
9708 (gdbscm_frame_read_var): Update.
9709 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9710 * exec.c (try_open_exec_file): Update.
9711 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9712 (gdb_rl_callback_handler): Update.
9713 * common/common-exceptions.h (exception_none): Don't declare.
9714 * common/common-exceptions.c (exception_none): Don't define.
9715 (struct catcher) <exception>: Update.
9716 * cli/cli-interp.c (safe_execute_command): Update.
9717 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9718
cf532bd1
AT
97192019-04-25 Ali Tamur <tamur@google.com>
9720
9721 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9722 (read_attribute_value): Likewise.
9723 (dwarf2_read_addr_index): Update comment.
9724 (read_str_index): Add DW_FORM_strx.
9725 (dwarf2_string_attr): Likewise.
9726 (dwarf2_const_value_attr): Likewise.
9727 (dump_die_shallow): Likewise.
9728 (dwarf2_fetch_constant_bytes): Likewise.
9729 (skip_form_bytes): Likewise.
9730 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9731
82433e3e
SDJ
97322019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9733
9734 PR corefiles/11608
9735 PR corefiles/18187
9736 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9737 OFFSET. Verify if current mapping contains an ELF header.
9738 (linux_find_memory_regions_full): Adjust call to
9739 dump_mapping_p.
9740
723adb65
SL
97412019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9742 Kang Li <kanglictf@gmail.com>
9743
9744 PR gdb/21600
9745
9746 * dwarf2-frame.c (read_initial_length): Be consistent about using
9747 unsigned representation of length.
9748 (decode_frame_entry_1): Likewise. Check for wraparound of
9749 end pointer as well as buffer overflow.
9750
596179f7
SDJ
97512019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9752
9753 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9754 "vq".
9755
a59240a4
TT
97562019-04-24 Tom Tromey <tromey@adacore.com>
9757
9758 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9759
f872fdbb
AB
97602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9761
9762 * s12z-tdep.c (s12z_unwind_pc): Delete.
9763 (s12z_unwind_sp): Delete.
9764 (s12z_gdbarch_init): Don't register deleted functions with
9765 gdbarch.
9766
b614e6f3
AB
97672019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9768
9769 * rl78-tdep.c (rl78_unwind_sp): Delete.
9770 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9771
14faed38
AB
97722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9773
9774 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9775 (xstormy16_unwind_pc): Delete.
9776 (xstormy16_dummy_id): Delete.
9777 (xstormy16_gdbarch_init): Don't register deleted functions with
9778 gdbarch.
9779
541aad8a
AB
97802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9781
9782 * vax-tdep.c (vax_unwind_pc): Delete.
9783 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9784
29222070
AB
97852019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9786
9787 * v850-tdep.c (v850_unwind_sp): Delete.
9788 (v850_unwind_pc): Delete.
9789 (v850_dummy_id): Delete.
9790 (v850_gdbarch_init): Don't register deleted functions with
9791 gdbarch.
9792
0f534d76
AB
97932019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9794
9795 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9796 (tilegx_unwind_pc): Delete.
9797 (tilegx_unwind_dummy_id): Delete.
9798 (tilegx_gdbarch_init): Don't register deleted functions with
9799 gdbarch.
9800
1ba7b7f9
AB
98012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9802
9803 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9804 (tic6x_dummy_id): Delete.
9805 (tic6x_gdbarch_init): Don't register deleted functions with
9806 gdbarch.
9807
d31f262c
AB
98082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9809
9810 * sparc-tdep.c (sparc_unwind_pc): Delete.
9811 (sparc32_gdbarch_init): Don't register deleted function with
9812 gdbarch.
9813
6d14d64d
AB
98142019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9815
9816 * sh-tdep.c (sh_unwind_sp): Delete.
9817 (sh_unwind_pc): Delete.
9818 (sh_dummy_id): Delete.
9819 (sh_gdbarch_init): Don't register deleted functions with
9820 gdbarch.
9821
a40dde9d
AB
98222019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9823
9824 * score-tdep.c (score_unwind_sp): Delete.
9825 (score_unwind_pc): Delete.
9826 (score_dummy_id): Delete.
9827 (score_gdbarch_init): Don't register deleted functions with
9828 gdbarch.
9829
47c47d69
AB
98302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9831
9832 * rx-tdep.c (rx_unwind_pc): Delete.
9833 (rx_unwind_sp): Delete.
9834 (rx_dummy_id): Delete.
9835 (rx_gdbarch_init): Don't register deleted functions with
9836 gdbarch. Update comment.
9837
833a4480
AB
98382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9839
9840 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9841 (rs6000_dummy_id): Delete.
9842 (rs6000_gdbarch_init): Don't register deleted functions with
9843 gdbarch.
9844
3f2cef49
AB
98452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9846
9847 * or1k-tdep.c (or1k_dummy_id): Delete.
9848 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9849
96acf884
AB
98502019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9851
9852 * nios2-tdep.c (nios2_dummy_id): Delete.
9853 (nios2_unwind_sp): Delete.
9854 (nios2_gdbarch_init): Don't register deleted functions with
9855 gdbarch.
9856
ca0ab0aa
AB
98572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9858
9859 * nds32-tdep.c (nds32_dummy_id): Delete.
9860 (nds32_unwind_pc): Delete.
9861 (nds32_unwind_sp): Delete.
9862 (nds32_gdbarch_init): Don't register deleted functions with
9863 gdbarch.
9864
c8259044
AB
98652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9866
9867 * msp430-tdep.c (msp430_unwind_pc): Delete.
9868 (msp430_unwind_sp): Delete.
9869 (msp430_dummy_id): Delete.
9870 (msp430_gdbarch_init): Don't register deleted functions with
9871 gdbarch.
9872
27f113c8
AB
98732019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9874
9875 * moxie-tdep.c (moxie_unwind_sp): Delete.
9876 (moxie_unwind_pc): Delete.
9877 (moxie_dummy_id): Delete.
9878 (moxie_gdbarch_init): Don't register deleted functions with
9879 gdbarch.
9880
aee6c3cd
AB
98812019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9882
9883 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9884 (mn10300_unwind_pc): Delete.
9885 (mn10300_unwind_sp): Delete.
9886 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9887 mn10300_unwind_sp.
9888 (mn10300_frame_unwind_init): Don't register deleted functions with
9889 gdbarch.
9890
8e2b5aea
AB
98912019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9892
9893 * mep-tdep.c (mep_unwind_pc): Delete.
9894 (mep_unwind_sp): Delete.
9895 (mep_dummy_id): Delete.
9896 (mep_gdbarch_init): Don't register deleted functions with
9897 gdbarch.
9898
43cf3ede
AB
98992019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9900
9901 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
9902 (m68hc11_unwind_sp): Delete.
9903 (m68hc11_gdbarch_init): Don't register deleted functions with
9904 gdbarch.
9905
5e79b7bb
AB
99062019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9907
9908 * m32r-tdep.c (m32r_unwind_sp): Delete.
9909 (m32r_unwind_pc): Delete.
9910 (m32r_dummy_id): Delete.
9911 (m32r_gdbarch_init): Don't register deleted functions with
9912 gdbarch.
9913
89b268d8
AB
99142019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9915
9916 * m32c-tdep.c (m32c_unwind_pc): Delete.
9917 (m32c_unwind_sp): Delete.
9918 (m32c_dummy_id): Delete.
9919 (m32c_gdbarch_init): Don't register deleted functions with
9920 gdbarch.
9921
946c28d2
AB
99222019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9923
9924 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
9925 (lm32_unwind_pc): Delete.
9926 (lm32_dummy_id): Delete.
9927 (lm32_gdbarch_init): Don't register deleted functions with
9928 gdbarch.
9929
bf12844a
AB
99302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9931
9932 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
9933 (iq2000_unwind_pc): Delete.
9934 (iq2000_dummy_id): Delete.
9935 (iq2000_gdbarch_init): Don't register deleted functions with
9936 gdbarch.
9937
ecbc06d2
AB
99382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9939
9940 * nds32-tdep.c (nds32_type_align): Delete.
9941 (nds32_push_dummy_call): Use type_align instead.
9942
030197b4
AB
99432019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9944
9945 * arm-tdep.c (arm_type_align): Only handle vector override case.
9946 (arm_push_dummy_call): Use type_align.
9947 (arm_gdbarch_init): Register arm_type_align gdbarch function.
9948
b907456c
AB
99492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9950
9951 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
9952 case.
9953 (pass_on_stack): Use type_align.
9954 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
9955 function.
9956
9e97ba43
TT
99572019-04-23 Tom Tromey <tromey@adacore.com>
9958
9959 * dwarf2read.c (line_header::file_name_at): Remove unused
9960 overload.
9961
6892f601
TV
99622019-04-23 Tom de Vries <tdevries@suse.de>
9963
9964 PR gdb/24438
9965 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
9966 invocation.
9967
336d760d
AT
9968
99692019-03-27 Ali Tamur <tamur@google.com>
9970
9971 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
9972 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9973 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9974 (dwarf_expr_context::get_addr_index): Likewise
9975 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9976 (symbol_needs_eval_context::get_addr_index): Likewise
9977 (disassemble_dwarf_expression): Add DW_OP_addrx
9978 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9979 (read_cutu_die_from_dwo): Update comment
9980 (skip_one_die): Add DW_FORM_addrx
9981 (read_attribute_value): Likewise
9982 (var_decode_location): Add DW_OP_addrx
9983 (dwarf2_const_value_attr): Add DW_FORM_addrx
9984 (dump_die_shallow): Likewise
9985 (dwarf2_fetch_constant_bytes): Likewise
9986 (decode_locdesc): Add DW_OP_addrx
9987 (skip_form_bytes): Add DW_FORM_addrx
9988
ad9d13f8
AT
99892019-04-22 Ali Tamur <tamur@google.com>
9990
9991 * MAINTAINERS (Write After Approval): Add self.
9992
d70cc3ba
SM
99932019-04-22 Simon Marchi <simon.marchi@efficios.com>
9994
9995 * solib-svr4.c (get_svr4_info): Add pspace parameter.
9996 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
9997 (open_symbol_file_object): Likewise.
9998 (svr4_default_sos): Add info parameter.
9999 (svr4_read_so_list): Likewise.
10000 (svr4_current_sos_direct): Adjust functions calls to pass down
10001 info.
10002 (svr4_current_sos_1): Add info parameter.
10003 (svr4_current_sos): Call get_svr4_info, pass info down to
10004 svr4_current_sos_1.
10005 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10006 get_svr4_info.
10007 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10008 get_svr4_info.
10009 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10010 to get_svr4_info.
10011 (probes_table_remove_objfile_probes): Likewise.
10012 (register_solib_event_probe): Add info parameter.
10013 (solist_update_incremental): Pass info parameter down to
10014 svr4_read_so_list.
10015 (disable_probes_interface): Add info parameter.
10016 (svr4_handle_solib_event): Pass current_program_space to
10017 get_svr4_info. Adjust disable_probes_interface cleanup.
10018 (svr4_create_probe_breakpoints): Add info parameter, pass it
10019 down to register_solib_event_probe.
10020 (svr4_create_solib_event_breakpoints): Add info parameter,
10021 pass it down to svr4_create_probe_breakpoints.
10022 (enable_break): Pass info down to
10023 svr4_create_solib_event_breakpoints.
10024 (svr4_solib_create_inferior_hook): Pass current_program_space to
10025 get_svr4_info.
10026 (svr4_clear_solib): Likewise.
10027
7905fc35
PA
100282019-04-22 Pedro Alves <palves@redhat.com>
10029
10030 * solib-svr4.c (svr4_free_objfile_observer): New.
10031 (probe_and_action::objfile): New field.
10032 (probes_table_htab_remove_objfile_probes)
10033 (probes_table_remove_objfile_probes): New functions.
10034 (register_solib_event_probe): Add 'objfile' parameter. Store it
10035 in the new probe_and_action. Don't store the probe in 'lookup'.
10036 (svr4_create_probe_breakpoints): Pass objfile to
10037 register_solib_event_probe.
10038 (_initialize_svr4_solib): Register a free_objfile observer.
10039
fb881986
TT
100402019-04-19 Tom Tromey <tom@tromey.com>
10041
10042 * common/queue.h: Remove.
10043
8732db6c
TT
100442019-04-19 Tom Tromey <tom@tromey.com>
10045
10046 * event-loop.c: Don't include "common/queue.h".
10047
97dfbadd
TT
100482019-04-19 Tom Tromey <tom@tromey.com>
10049
10050 * remote.c (remote_target): Use delete.
10051 * remote-notif.h: Include <list>, not "common/queue.h".
10052 (notif_client_p): Remove typedef.
10053 (remote_notif_state): Add constructor, destructor, initializer.
10054 <notif_queue>: Now a std::list.
10055 (remote_notif_state_xfree): Don't declare.
10056 * remote-notif.c (remote_notif_process, handle_notification)
10057 (remote_notif_state_allocate): Update.
10058 (~remote_notif_state): Rename from remote_notif_state_xfree.
10059
cf250e36
TT
100602019-04-19 Tom Tromey <tom@tromey.com>
10061
10062 * symfile.c (reread_symbols): Update.
10063 * objfiles.c (objfile_register_static_link)
10064 (objfile_lookup_static_link): Update
10065 (~objfile) Don't delete static_links.
10066 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10067
61f4b350
TT
100682019-04-19 Tom Tromey <tom@tromey.com>
10069
10070 * type-stack.h (struct type_stack) <insert>: Constify string.
10071 * type-stack.c (type_stack::insert): Constify string.
10072 * gdbtypes.h (lookup_template_type): Update.
10073 (address_space_name_to_int): Update.
10074 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10075 const.
10076 (lookup_template_type): Make name const.
10077 * c-exp.y: Update rules.
10078 (lex_one_token, classify_name, classify_inner_name)
10079 (c_print_token): Update.
10080 * p-exp.y: Update rules.
10081 (yylex): Update.
10082 * f-exp.y: Update rules.
10083 (yylex): Update.
10084 * d-exp.y: Update rules.
10085 (lex_one_token, classify_name, classify_inner_name): Update.
10086 * parse.c (write_dollar_variable, copy_name): Return std::string.
10087 * parser-defs.h (copy_name): Change return type.
10088 * m2-exp.y: Update rules.
10089 (yylex): Update.
10090 * go-exp.y (lex_one_token): Update.
10091 Update rules.
10092 (classify_unsafe_function, classify_packaged_name)
10093 (classify_name, yylex): Update.
10094
189b8c2e
ST
100952019-04-19 Sergei Trofimovich <siarheit@google.com>
10096
10097 * configure.ac: add --enable-source-highlight switch.
10098 * configure: Regenerate.
10099 * top.c (print_gdb_version): plumb --enable-source-highlight
10100 status to "show configuration".
10101
8ecb59f8
TT
101022019-04-19 Tom Tromey <tromey@adacore.com>
10103
10104 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10105 Check ADA_TYPE_P.
10106 (empty_record, ada_template_to_fixed_record_type_1)
10107 (template_to_static_fixed_type)
10108 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10109 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10110 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10111 macros.
10112
62160ec9
TT
101132019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10114
10115 PR symtab/24423:
10116 * source.c (print_source_lines_base): Advance "iter" when a
10117 control character is seen.
10118
f2ae8bc8
PW
101192019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10120
10121 * inferior.h (struct infcall_suspend_state_deleter):
10122 Catch exception in destructor to avoid crash.
10123
d563b953
PW
101242019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10125
10126 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10127 close to the add_com "shell".
10128
dc34c897
TT
101292019-04-18 Tom Tromey <tromey@adacore.com>
10130
10131 * process-stratum-target.h (class process_stratum_target)
10132 <stratum>: Add "final".
10133
a12e5744
TT
101342019-04-17 Tom Tromey <tromey@adacore.com>
10135
10136 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10137 against nullptr before use.
10138
a7e559cc
AH
101392019-04-17 Alan Hayward <alan.hayward@arm.com>
10140
10141 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10142
c01660c6
AB
101432019-04-17 Jim Wilson <jimw@sifive.com>
10144 Andrew Burgess <andrew.burgess@embecosm.com>
10145
10146 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10147 code read might fail, assume 4-byte breakpoint in that case.
10148
4aa866af
LS
101492019-04-15 Leszek Swirski <leszeks@google.com>
10150
10151 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10152 rather than a hand-rolled POD check when checking for forced MEMORY
10153 classification.
10154
48574d91
AH
101552019-04-15 Alan Hayward <alan.hayward@arm.com>
10156
10157 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10158 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10159 function.
10160 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10161 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10162 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10163 declaration.
10164
4da037ef
AH
101652019-04-15 Alan Hayward <alan.hayward@arm.com>
10166
10167 * aarch64-linux-nat.c
10168 (aarch64_linux_nat_target::thread_architecture): Add override.
10169 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10170 each VQ.
10171
ccb8d7e8
AH
101722019-04-15 Alan Hayward <alan.hayward@arm.com>
10173
10174 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10175
35add35e
AB
101762019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10177
10178 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10179 target types of size 96-bits, add some additional comments, and
10180 check that the builtin type we found was the correct size.
10181
51196bbc
EZ
101822019-04-12 Eli Zaretskii <eliz@gnu.org>
10183
10184 * utils.c (prompt_for_continue): Don't restore the styling at the
10185 end, as applied_style has the wrong value. This fixes styling in
10186 long lists of file names that are interrupted by the "Continue?"
10187 prompt.
10188
62253a61
AB
101892019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10190
10191 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10192 * c-lang.c (c_language_defn): Likewise.
10193 (cplus_language_defn): Likewise.
10194 (asm_language_defn): Likewise.
10195 (minimal_language_defn): Likewise.
10196 * d-lang.c (d_language_defn): Likewise.
10197 * f-lang.c (f_language_defn): Likewise.
10198 * go-lang.c (go_language_defn): Likewise.
10199 * language.c (unknown_language_defn): Likewise.
10200 (auto_language_defn): Likewise.
10201 * language.h (struct language_defn): Remove la_magic field.
10202 (LANG_MAGIC): Delete.
10203 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10204 * objc-lang.c (objc_language_defn): Likewise.
10205 * opencl-lang.c (opencl_language_defn): Likewise.
10206 * p-lang.c (pascal_language_defn): Likewise.
10207 * rust-lang.c (rust_language_defn): Likewise.
10208
a9158a86
AB
102092019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10210
10211 * riscv-tdep.c (riscv_type_align): New function.
10212 (riscv_type_alignment): Delete.
10213 (riscv_arg_location): Use 'type_align'.
10214 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10215
41077b66
AB
102162019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10217
10218 * gdbtypes.c (type_align): A struct with no non-static fields also
10219 has alignment of 1.
10220
9f0272f8
AB
102212019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10222
10223 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10224 component to 0.
10225 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10226 member.
10227 (riscv_struct_info::analyse): New implementation using new
10228 analyse_inner member function.
10229 (riscv_struct_info::field_offset): New member function.
10230 (riscv_struct_info::m_offsets): New member variable.
10231 (riscv_struct_info::analyse_inner): New private member function,
10232 takes the old implementation of riscv_struct_info::analyse but
10233 extended to track field offsets.
10234 (riscv_call_arg_struct): Update the struct folding special cases
10235 to handle cases where empty C++ structs, which are non-zero
10236 length, are found.
10237 (riscv_arg_location): Initialise the length of each location, a
10238 non-zero length now indicates the location is in use.
10239 (riscv_push_dummy_call): Allow for the first location having a
10240 non-zero offset when setting up arguments.
10241 (riscv_return_value): Likewise, but for return values.
10242
02cf60c7
TT
102432019-04-11 Tom Tromey <tromey@adacore.com>
10244
10245 * utils.c (internal_vproblem): Make "msg" const.
10246
68811f8f
AH
102472019-04-11 Alan Hayward <alan.hayward@arm.com>
10248
10249 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10250 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10251 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10252 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10253
3f52fdbc
KB
102542019-04-10 Kevin Buettner <kevinb@redhat.com>
10255
10256 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10257 function.
10258 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10259 of amd64_collect_native_gregset.
10260 (amd64_linux_nat_target::store_registers): Likewise.
10261
e9ad22ee
TT
102622019-04-10 Tom Tromey <tom@tromey.com>
10263
10264 * symtab.c (lookup_global_symbol_from_objfile)
10265 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10266 * objfiles.h (class separate_debug_iterator): New.
10267 (class separate_debug_range): New.
10268 (struct objfile) <separate_debug_objfiles>: New method.
10269 (objfile_separate_debug_iterate): Don't declare.
10270 * objfiles.c (separate_debug_iterator::operator++): Rename from
10271 objfile_separate_debug_iterate.
10272 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10273 iterator.
10274 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10275 iterator.
10276
ee371134
TT
102772019-04-10 Tom Tromey <tom@tromey.com>
10278
10279 * symfile.c (reread_symbols): Remove old comment.
10280 * objfiles.c (free_all_objfiles): Fix a typo.
10281
bf227d61
TT
102822019-04-10 Tom Tromey <tom@tromey.com>
10283
10284 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10285 * minsyms.c (lookup_minimal_symbol): Use foreach.
10286 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10287 (lookup_minimal_symbol_solib_trampoline): Likewise.
10288 * symfile.c (reread_symbols): Use foreach.
10289
8dc433a0
TT
102902019-04-09 Ivan Begert <ivanbegert@gmail.com>
10291 Tom Tromey <tromey@adacore.com>
10292
10293 PR rust/24414:
10294 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10295 (rust_lex_int_test): Change "value" to be LONGEST.
10296 (rust_lex_tests): Add test for long integer literal.
10297
9ab8741a
TT
102982019-04-09 Tom Tromey <tromey@adacore.com>
10299
10300 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10301 to bool.
10302 (extended_remote_target::attach): Update.
10303 (remote_target::remote_notice_new_inferior): Update.
10304 (remote_target::add_current_inferior_and_thread): Update.
10305 * inferior.c (exit_inferior_1): Use "false".
10306 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10307
e242fd12
SM
103082019-04-09 Simon Marchi <simon.marchi@efficios.com>
10309
9ca1957f 10310 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
10311 the "start" command.
10312
2b0c8b01
KB
103132019-04-08 Kevin Buettner <kevinb@redhat.com>
10314
10315 * python/py-inferior.c (infpy_thread_from_thread_handle):
10316 Adjust comments to reflect renaming of thread_from_thread_handle
10317 to thread_from_handle. Adjust keywords. Fix type error message.
10318 (inferior_object_methods): Add thread_from_handle. Retain
10319 thread_from_thread_handle, but mark it as deprecated.
10320
50a82723
KB
103212019-04-08 Kevin Buettner <kevinb@redhat.com>
10322
10323 * gdbthread.h (find_thread_by_handle): Revise declaration.
10324 * thread.c (find_thread_by_handle): Likewise. Adjust
10325 implementation too.
10326 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10327 support for buffer objects as handles.
10328
cf63b016
KB
103292019-04-08 Kevin Buettner <kevinb@redhat.com>
10330
10331 * python/py-infthread.c (thpy_thread_handle): New function.
10332 (thread_object_methods): Register thpy_thread_handle.
10333
3d6c6204
KB
103342019-04-08 Kevin Buettner <kevinb@redhat.com>
10335
10336 * gdbthread.h (thread_to_thread_handle): Declare.
10337 * thread.c (gdbtypes.h): Include.
10338 (thread_to_thread_handle): New function.
10339
10340 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10341 (target_thread_info_to_thread_handle): Declare.
10342 * target.c (target_thread_info_to_thread_handle): New function.
10343 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10344 * target-delegates.c: Regenerate.
10345
10346 * linux-thread-db.c (class thread_db_target): Add method
10347 thread_info_to_thread_handle.
10348 (thread_db_target::thread_info_to_thread_handle): Define.
10349 * remote.c (class remote_target): Add new method
10350 thread_info_to_thread_handle.
10351 (remote_target::thread_info_to_thread_handle): Define.
10352
56be6ea8
PA
103532019-04-08 Pedro Alves <palves@redhat.com>
10354
10355 * common/common-exceptions.c (throw_exception): Don't create
10356 named object to throw; throw directly.
10357 (throw_it): Likewise. Don't initialize gdb_exception::message
10358 here, with new; pass FMT and AP to the ctor instead.
10359 * common/common-exceptions.h: Include <string>.
10360 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10361 const char *, va_list)): New ctor. Use std::make_shared.
10362 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10363 errors)): Delete.
10364 (gdb_exception_error::gdb_exception_error(enum errors, const char
10365 *, va_list)): New.
10366 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10367 Add assertion.
10368 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10369 errors)): Delete.
10370 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10371 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10372 Add assertion.
10373
eedc3f4f
TT
103742019-04-08 Tom Tromey <tom@tromey.com>
10375
10376 * valops.c (value_rtti_indirect_type): Replace throw_exception
10377 with throw.
10378 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10379 with throw.
10380 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10381 throw.
10382 * target.c (target_translate_tls_address): Replace throw_exception
10383 with throw.
10384 * stack.c (frame_apply_command_count): Replace throw_exception
10385 with throw.
10386 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10387 throw.
10388 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10389 with throw.
10390 * rs6000-tdep.c (rs6000_frame_cache)
10391 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10392 * remote.c: Replace throw_exception with throw.
10393 * record-full.c (record_full_message, record_full_wait_1)
10394 (record_full_restore): Replace throw_exception with throw.
10395 * record-btrace.c:
10396 (get_thread_current_frame_id, record_btrace_start_replaying)
10397 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10398 (cmd_record_btrace_start): Replace throw_exception with throw.
10399 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10400 throw.
10401 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10402 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10403 * linespec.c:
10404 (find_linespec_symbols): Replace throw_exception with throw.
10405 * infrun.c (displaced_step_prepare, resume): Replace
10406 throw_exception with throw.
10407 * infcmd.c (post_create_inferior): Replace throw_exception with
10408 throw.
10409 * inf-loop.c (inferior_event_handler): Replace throw_exception
10410 with throw.
10411 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10412 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10413 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10414 (get_prev_frame_always, get_frame_pc_if_available)
10415 (get_frame_address_in_block_if_available, get_frame_language):
10416 Replace throw_exception with throw.
10417 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10418 throw_exception with throw.
10419 * eval.c (fetch_subexp_value, evaluate_var_value)
10420 (evaluate_funcall, evaluate_subexp_standard): Replace
10421 throw_exception with throw.
10422 * dwarf2loc.c (call_site_find_chain)
10423 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10424 Replace throw_exception with throw.
10425 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10426 with throw.
10427 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10428 throw.
10429 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10430 * completer.c (complete_line_internal): Replace throw_exception
10431 with throw.
10432 * compile/compile-object-run.c (compile_object_run): Replace
10433 throw_exception with throw.
10434 * cli/cli-script.c (process_next_line): Replace throw_exception
10435 with throw.
10436 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10437 (btrace_enable, btrace_maint_update_pt_packets): Replace
10438 throw_exception with throw.
10439 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10440 throw_exception with throw.
10441 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10442 throw_exception with throw.
10443 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10444 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10445 * aarch64-tdep.c (aarch64_make_prologue_cache)
10446 (aarch64_make_stub_cache): Replace throw_exception with throw.
10447
26003a20
TT
104482019-04-08 Tom Tromey <tom@tromey.com>
10449
10450 * common/common-exceptions.c (throw_exception): Rename from
10451 throw_exception_cxx. Remove old copy. Make argument const.
10452 (throw_it): Create and throw exception objects directly.
10453 * common/common-exceptions.h (throw_exception): Make argument
10454 const.
10455 (struct gdb_exception_error): Add constructor.
10456 (struct gdb_exception_quit): Add constructor.
10457
d272eb37
TT
104582019-04-08 Tom Tromey <tom@tromey.com>
10459
10460 * common/common-exceptions.h (exception_rethrow): Don't declare.
10461 (TRY_SJLJ): Update comment.
10462 (TRY, CATCH, END_CATCH): Remove.
10463 * common/common-exceptions.c (exception_rethrow): Remove.
10464
230d2906
TT
104652019-04-08 Tom Tromey <tom@tromey.com>
10466
10467 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10468 Remove.
10469 (gdb_exception_error): Rename from
10470 gdb_exception_RETURN_MASK_ERROR.
10471 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10472 (gdb_quit_bad_alloc): Update.
10473 * aarch64-tdep.c: Update.
10474 * ada-lang.c: Update.
10475 * ada-typeprint.c: Update.
10476 * ada-valprint.c: Update.
10477 * amd64-tdep.c: Update.
10478 * arch-utils.c: Update.
10479 * break-catch-throw.c: Update.
10480 * breakpoint.c: Update.
10481 * btrace.c: Update.
10482 * c-varobj.c: Update.
10483 * cli/cli-cmds.c: Update.
10484 * cli/cli-interp.c: Update.
10485 * cli/cli-script.c: Update.
10486 * common/common-exceptions.c: Update.
10487 * common/new-op.c: Update.
10488 * common/selftest.c: Update.
10489 * compile/compile-c-symbols.c: Update.
10490 * compile/compile-cplus-symbols.c: Update.
10491 * compile/compile-object-load.c: Update.
10492 * compile/compile-object-run.c: Update.
10493 * completer.c: Update.
10494 * corelow.c: Update.
10495 * cp-abi.c: Update.
10496 * cp-support.c: Update.
10497 * cp-valprint.c: Update.
10498 * darwin-nat.c: Update.
10499 * disasm-selftests.c: Update.
10500 * dtrace-probe.c: Update.
10501 * dwarf-index-cache.c: Update.
10502 * dwarf-index-write.c: Update.
10503 * dwarf2-frame-tailcall.c: Update.
10504 * dwarf2-frame.c: Update.
10505 * dwarf2loc.c: Update.
10506 * dwarf2read.c: Update.
10507 * eval.c: Update.
10508 * event-loop.c: Update.
10509 * event-top.c: Update.
10510 * exec.c: Update.
10511 * f-valprint.c: Update.
10512 * fbsd-tdep.c: Update.
10513 * frame-unwind.c: Update.
10514 * frame.c: Update.
10515 * gdbtypes.c: Update.
10516 * gnu-v3-abi.c: Update.
10517 * guile/guile-internal.h: Update.
10518 * guile/scm-block.c: Update.
10519 * guile/scm-breakpoint.c: Update.
10520 * guile/scm-cmd.c: Update.
10521 * guile/scm-disasm.c: Update.
10522 * guile/scm-frame.c: Update.
10523 * guile/scm-lazy-string.c: Update.
10524 * guile/scm-math.c: Update.
10525 * guile/scm-param.c: Update.
10526 * guile/scm-ports.c: Update.
10527 * guile/scm-pretty-print.c: Update.
10528 * guile/scm-symbol.c: Update.
10529 * guile/scm-symtab.c: Update.
10530 * guile/scm-type.c: Update.
10531 * guile/scm-value.c: Update.
10532 * i386-linux-tdep.c: Update.
10533 * i386-tdep.c: Update.
10534 * inf-loop.c: Update.
10535 * infcall.c: Update.
10536 * infcmd.c: Update.
10537 * infrun.c: Update.
10538 * jit.c: Update.
10539 * language.c: Update.
10540 * linespec.c: Update.
10541 * linux-fork.c: Update.
10542 * linux-nat.c: Update.
10543 * linux-tdep.c: Update.
10544 * linux-thread-db.c: Update.
10545 * main.c: Update.
10546 * mi/mi-cmd-break.c: Update.
10547 * mi/mi-cmd-stack.c: Update.
10548 * mi/mi-interp.c: Update.
10549 * mi/mi-main.c: Update.
10550 * objc-lang.c: Update.
10551 * p-valprint.c: Update.
10552 * parse.c: Update.
10553 * ppc-linux-tdep.c: Update.
10554 * printcmd.c: Update.
10555 * python/py-arch.c: Update.
10556 * python/py-breakpoint.c: Update.
10557 * python/py-cmd.c: Update.
10558 * python/py-finishbreakpoint.c: Update.
10559 * python/py-frame.c: Update.
10560 * python/py-framefilter.c: Update.
10561 * python/py-gdb-readline.c: Update.
10562 * python/py-inferior.c: Update.
10563 * python/py-infthread.c: Update.
10564 * python/py-lazy-string.c: Update.
10565 * python/py-linetable.c: Update.
10566 * python/py-objfile.c: Update.
10567 * python/py-param.c: Update.
10568 * python/py-prettyprint.c: Update.
10569 * python/py-progspace.c: Update.
10570 * python/py-record-btrace.c: Update.
10571 * python/py-record.c: Update.
10572 * python/py-symbol.c: Update.
10573 * python/py-type.c: Update.
10574 * python/py-unwind.c: Update.
10575 * python/py-utils.c: Update.
10576 * python/py-value.c: Update.
10577 * python/python.c: Update.
10578 * record-btrace.c: Update.
10579 * record-full.c: Update.
10580 * remote-fileio.c: Update.
10581 * remote.c: Update.
10582 * riscv-tdep.c: Update.
10583 * rs6000-aix-tdep.c: Update.
10584 * rs6000-tdep.c: Update.
10585 * rust-exp.y: Update.
10586 * rust-lang.c: Update.
10587 * s390-tdep.c: Update.
10588 * selftest-arch.c: Update.
10589 * solib-dsbt.c: Update.
10590 * solib-frv.c: Update.
10591 * solib-spu.c: Update.
10592 * solib-svr4.c: Update.
10593 * solib.c: Update.
10594 * sparc64-linux-tdep.c: Update.
10595 * stack.c: Update.
10596 * symfile-mem.c: Update.
10597 * symmisc.c: Update.
10598 * target.c: Update.
10599 * thread.c: Update.
10600 * top.c: Update.
10601 * tracefile-tfile.c: Update.
10602 * tui/tui.c: Update.
10603 * typeprint.c: Update.
10604 * unittests/cli-utils-selftests.c: Update.
10605 * unittests/parse-connection-spec-selftests.c: Update.
10606 * valops.c: Update.
10607 * valprint.c: Update.
10608 * value.c: Update.
10609 * varobj.c: Update.
10610 * windows-nat.c: Update.
10611 * x86-linux-nat.c: Update.
10612 * xml-support.c: Update.
10613
a70b8144
TT
106142019-04-08 Tom Tromey <tom@tromey.com>
10615
10616 * xml-support.c: Use C++ exception handling.
10617 * x86-linux-nat.c: Use C++ exception handling.
10618 * windows-nat.c: Use C++ exception handling.
10619 * varobj.c: Use C++ exception handling.
10620 * value.c: Use C++ exception handling.
10621 * valprint.c: Use C++ exception handling.
10622 * valops.c: Use C++ exception handling.
10623 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10624 handling.
10625 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10626 * typeprint.c: Use C++ exception handling.
10627 * tui/tui.c: Use C++ exception handling.
10628 * tracefile-tfile.c: Use C++ exception handling.
10629 * top.c: Use C++ exception handling.
10630 * thread.c: Use C++ exception handling.
10631 * target.c: Use C++ exception handling.
10632 * symmisc.c: Use C++ exception handling.
10633 * symfile-mem.c: Use C++ exception handling.
10634 * stack.c: Use C++ exception handling.
10635 * sparc64-linux-tdep.c: Use C++ exception handling.
10636 * solib.c: Use C++ exception handling.
10637 * solib-svr4.c: Use C++ exception handling.
10638 * solib-spu.c: Use C++ exception handling.
10639 * solib-frv.c: Use C++ exception handling.
10640 * solib-dsbt.c: Use C++ exception handling.
10641 * selftest-arch.c: Use C++ exception handling.
10642 * s390-tdep.c: Use C++ exception handling.
10643 * rust-lang.c: Use C++ exception handling.
10644 * rust-exp.y: Use C++ exception handling.
10645 * rs6000-tdep.c: Use C++ exception handling.
10646 * rs6000-aix-tdep.c: Use C++ exception handling.
10647 * riscv-tdep.c: Use C++ exception handling.
10648 * remote.c: Use C++ exception handling.
10649 * remote-fileio.c: Use C++ exception handling.
10650 * record-full.c: Use C++ exception handling.
10651 * record-btrace.c: Use C++ exception handling.
10652 * python/python.c: Use C++ exception handling.
10653 * python/py-value.c: Use C++ exception handling.
10654 * python/py-utils.c: Use C++ exception handling.
10655 * python/py-unwind.c: Use C++ exception handling.
10656 * python/py-type.c: Use C++ exception handling.
10657 * python/py-symbol.c: Use C++ exception handling.
10658 * python/py-record.c: Use C++ exception handling.
10659 * python/py-record-btrace.c: Use C++ exception handling.
10660 * python/py-progspace.c: Use C++ exception handling.
10661 * python/py-prettyprint.c: Use C++ exception handling.
10662 * python/py-param.c: Use C++ exception handling.
10663 * python/py-objfile.c: Use C++ exception handling.
10664 * python/py-linetable.c: Use C++ exception handling.
10665 * python/py-lazy-string.c: Use C++ exception handling.
10666 * python/py-infthread.c: Use C++ exception handling.
10667 * python/py-inferior.c: Use C++ exception handling.
10668 * python/py-gdb-readline.c: Use C++ exception handling.
10669 * python/py-framefilter.c: Use C++ exception handling.
10670 * python/py-frame.c: Use C++ exception handling.
10671 * python/py-finishbreakpoint.c: Use C++ exception handling.
10672 * python/py-cmd.c: Use C++ exception handling.
10673 * python/py-breakpoint.c: Use C++ exception handling.
10674 * python/py-arch.c: Use C++ exception handling.
10675 * printcmd.c: Use C++ exception handling.
10676 * ppc-linux-tdep.c: Use C++ exception handling.
10677 * parse.c: Use C++ exception handling.
10678 * p-valprint.c: Use C++ exception handling.
10679 * objc-lang.c: Use C++ exception handling.
10680 * mi/mi-main.c: Use C++ exception handling.
10681 * mi/mi-interp.c: Use C++ exception handling.
10682 * mi/mi-cmd-stack.c: Use C++ exception handling.
10683 * mi/mi-cmd-break.c: Use C++ exception handling.
10684 * main.c: Use C++ exception handling.
10685 * linux-thread-db.c: Use C++ exception handling.
10686 * linux-tdep.c: Use C++ exception handling.
10687 * linux-nat.c: Use C++ exception handling.
10688 * linux-fork.c: Use C++ exception handling.
10689 * linespec.c: Use C++ exception handling.
10690 * language.c: Use C++ exception handling.
10691 * jit.c: Use C++ exception handling.
10692 * infrun.c: Use C++ exception handling.
10693 * infcmd.c: Use C++ exception handling.
10694 * infcall.c: Use C++ exception handling.
10695 * inf-loop.c: Use C++ exception handling.
10696 * i386-tdep.c: Use C++ exception handling.
10697 * i386-linux-tdep.c: Use C++ exception handling.
10698 * guile/scm-value.c: Use C++ exception handling.
10699 * guile/scm-type.c: Use C++ exception handling.
10700 * guile/scm-symtab.c: Use C++ exception handling.
10701 * guile/scm-symbol.c: Use C++ exception handling.
10702 * guile/scm-pretty-print.c: Use C++ exception handling.
10703 * guile/scm-ports.c: Use C++ exception handling.
10704 * guile/scm-param.c: Use C++ exception handling.
10705 * guile/scm-math.c: Use C++ exception handling.
10706 * guile/scm-lazy-string.c: Use C++ exception handling.
10707 * guile/scm-frame.c: Use C++ exception handling.
10708 * guile/scm-disasm.c: Use C++ exception handling.
10709 * guile/scm-cmd.c: Use C++ exception handling.
10710 * guile/scm-breakpoint.c: Use C++ exception handling.
10711 * guile/scm-block.c: Use C++ exception handling.
10712 * guile/guile-internal.h: Use C++ exception handling.
10713 * gnu-v3-abi.c: Use C++ exception handling.
10714 * gdbtypes.c: Use C++ exception handling.
10715 * frame.c: Use C++ exception handling.
10716 * frame-unwind.c: Use C++ exception handling.
10717 * fbsd-tdep.c: Use C++ exception handling.
10718 * f-valprint.c: Use C++ exception handling.
10719 * exec.c: Use C++ exception handling.
10720 * event-top.c: Use C++ exception handling.
10721 * event-loop.c: Use C++ exception handling.
10722 * eval.c: Use C++ exception handling.
10723 * dwarf2read.c: Use C++ exception handling.
10724 * dwarf2loc.c: Use C++ exception handling.
10725 * dwarf2-frame.c: Use C++ exception handling.
10726 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10727 * dwarf-index-write.c: Use C++ exception handling.
10728 * dwarf-index-cache.c: Use C++ exception handling.
10729 * dtrace-probe.c: Use C++ exception handling.
10730 * disasm-selftests.c: Use C++ exception handling.
10731 * darwin-nat.c: Use C++ exception handling.
10732 * cp-valprint.c: Use C++ exception handling.
10733 * cp-support.c: Use C++ exception handling.
10734 * cp-abi.c: Use C++ exception handling.
10735 * corelow.c: Use C++ exception handling.
10736 * completer.c: Use C++ exception handling.
10737 * compile/compile-object-run.c: Use C++ exception handling.
10738 * compile/compile-object-load.c: Use C++ exception handling.
10739 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10740 * compile/compile-c-symbols.c: Use C++ exception handling.
10741 * common/selftest.c: Use C++ exception handling.
10742 * common/new-op.c: Use C++ exception handling.
10743 * cli/cli-script.c: Use C++ exception handling.
10744 * cli/cli-interp.c: Use C++ exception handling.
10745 * cli/cli-cmds.c: Use C++ exception handling.
10746 * c-varobj.c: Use C++ exception handling.
10747 * btrace.c: Use C++ exception handling.
10748 * breakpoint.c: Use C++ exception handling.
10749 * break-catch-throw.c: Use C++ exception handling.
10750 * arch-utils.c: Use C++ exception handling.
10751 * amd64-tdep.c: Use C++ exception handling.
10752 * ada-valprint.c: Use C++ exception handling.
10753 * ada-typeprint.c: Use C++ exception handling.
10754 * ada-lang.c: Use C++ exception handling.
10755 * aarch64-tdep.c: Use C++ exception handling.
10756
3d6e9d23
TT
107572019-04-08 Tom Tromey <tom@tromey.com>
10758
10759 * xml-support.c (gdb_xml_parser::parse): Update.
10760 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10761 * value.c (show_convenience): Update.
10762 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10763 (test_parse_flags_qcs): Update.
10764 * thread.c (thr_try_catch_cmd): Update.
10765 * target.c (target_translate_tls_address): Update.
10766 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10767 (info_frame_command_core, frame_apply_command_count): Update.
10768 * rust-exp.y (rust_lex_exception_test): Update.
10769 * riscv-tdep.c (riscv_print_one_register_info): Update.
10770 * remote.c (remote_target::enable_btrace): Update.
10771 * record-btrace.c (record_btrace_enable_warn): Update.
10772 * python/py-utils.c (gdbpy_convert_exception): Update.
10773 * printcmd.c (do_one_display, print_variable_and_value): Update.
10774 * mi/mi-main.c (mi_print_exception): Update.
10775 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10776 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10777 * linux-nat.c (linux_nat_target::attach): Update.
10778 * linux-fork.c (class scoped_switch_fork_info): Update.
10779 * infrun.c (displaced_step_prepare): Update.
10780 * infcall.c (call_function_by_hand_dummy): Update.
10781 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10782 * gnu-v3-abi.c (print_one_vtable): Update.
10783 * frame.c (get_prev_frame_always): Update.
10784 * f-valprint.c (info_common_command_for_block): Update.
10785 * exec.c (try_open_exec_file): Update.
10786 * exceptions.c (print_exception, exception_print)
10787 (exception_fprintf, exception_print_same): Update.
10788 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10789 * dwarf-index-cache.c (index_cache::store)
10790 (index_cache::lookup_gdb_index): Update.
10791 * darwin-nat.c (maybe_cache_shell): Update.
10792 * cp-valprint.c (cp_print_value_fields): Update.
10793 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10794 (gcc_cplus_symbol_address): Update.
10795 * compile/compile-c-symbols.c (gcc_convert_symbol)
10796 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10797 * common/selftest.c: Update.
10798 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10799 a std::string.
10800 (exception_try_scope_entry, exception_try_scope_exit): Don't
10801 declare.
10802 (struct exception_try_scope): Remove.
10803 (TRY): Don't use exception_try_scope.
10804 (struct gdb_exception): Add constructor, operator=.
10805 <what>: New method.
10806 (struct gdb_exception_RETURN_MASK_ALL)
10807 (struct gdb_exception_RETURN_MASK_ERROR)
10808 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10809 (struct gdb_quit_bad_alloc): Update.
10810 * common/common-exceptions.c (exception_none): Change
10811 initializer.
10812 (struct catcher) <state, exception>: Initialize inline.
10813 <prev>: Remove member.
10814 (current_catcher): Remove.
10815 (catchers): New global.
10816 (exceptions_state_mc_init): Simplify.
10817 (catcher_pop): Remove.
10818 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10819 (try_scope_depth, exception_try_scope_entry)
10820 (exception_try_scope_exit): Remove.
10821 (throw_exception_sjlj): Update.
10822 (exception_messages, exception_messages_size): Remove.
10823 (throw_it): Simplify.
10824 (gdb_exception_sliced_copy): Remove.
10825 (throw_exception_cxx): Update.
10826 * cli/cli-script.c (script_from_file): Update.
10827 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10828 Update.
10829 * ada-valprint.c (ada_val_print): Update.
10830 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10831 (create_excep_cond_exprs): Update.
10832
c5c10118
TT
108332019-04-08 Tom Tromey <tom@tromey.com>
10834
10835 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10836 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10837 (TRY, CATCH, END_CATCH): Remove some definitions.
10838 * common/common-exceptions.c: Don't use GDB_XCPT.
10839 (catcher_list_size): Remove.
10840 (throw_exception, throw_it): Simplify.
10841
4de283e4
TT
108422019-04-05 Tom Tromey <tom@tromey.com>
10843
10844 Revert the header-sorting patch.
10845 * ft32-tdep.c: Revert.
10846 * frv-tdep.c: Revert.
10847 * frv-linux-tdep.c: Revert.
10848 * frame.c: Revert.
10849 * frame-unwind.c: Revert.
10850 * frame-base.c: Revert.
10851 * fork-child.c: Revert.
10852 * findvar.c: Revert.
10853 * findcmd.c: Revert.
10854 * filesystem.c: Revert.
10855 * filename-seen-cache.h: Revert.
10856 * filename-seen-cache.c: Revert.
10857 * fbsd-tdep.c: Revert.
10858 * fbsd-nat.h: Revert.
10859 * fbsd-nat.c: Revert.
10860 * f-valprint.c: Revert.
10861 * f-typeprint.c: Revert.
10862 * f-lang.c: Revert.
10863 * extension.h: Revert.
10864 * extension.c: Revert.
10865 * extension-priv.h: Revert.
10866 * expprint.c: Revert.
10867 * exec.h: Revert.
10868 * exec.c: Revert.
10869 * exceptions.c: Revert.
10870 * event-top.c: Revert.
10871 * event-loop.c: Revert.
10872 * eval.c: Revert.
10873 * elfread.c: Revert.
10874 * dwarf2read.h: Revert.
10875 * dwarf2read.c: Revert.
10876 * dwarf2loc.c: Revert.
10877 * dwarf2expr.h: Revert.
10878 * dwarf2expr.c: Revert.
10879 * dwarf2-frame.c: Revert.
10880 * dwarf2-frame-tailcall.c: Revert.
10881 * dwarf-index-write.h: Revert.
10882 * dwarf-index-write.c: Revert.
10883 * dwarf-index-common.c: Revert.
10884 * dwarf-index-cache.h: Revert.
10885 * dwarf-index-cache.c: Revert.
10886 * dummy-frame.c: Revert.
10887 * dtrace-probe.c: Revert.
10888 * disasm.h: Revert.
10889 * disasm.c: Revert.
10890 * disasm-selftests.c: Revert.
10891 * dictionary.c: Revert.
10892 * dicos-tdep.c: Revert.
10893 * demangle.c: Revert.
10894 * dcache.h: Revert.
10895 * dcache.c: Revert.
10896 * darwin-nat.h: Revert.
10897 * darwin-nat.c: Revert.
10898 * darwin-nat-info.c: Revert.
10899 * d-valprint.c: Revert.
10900 * d-namespace.c: Revert.
10901 * d-lang.c: Revert.
10902 * ctf.c: Revert.
10903 * csky-tdep.c: Revert.
10904 * csky-linux-tdep.c: Revert.
10905 * cris-tdep.c: Revert.
10906 * cris-linux-tdep.c: Revert.
10907 * cp-valprint.c: Revert.
10908 * cp-support.c: Revert.
10909 * cp-namespace.c: Revert.
10910 * cp-abi.c: Revert.
10911 * corelow.c: Revert.
10912 * corefile.c: Revert.
10913 * continuations.c: Revert.
10914 * completer.h: Revert.
10915 * completer.c: Revert.
10916 * complaints.c: Revert.
10917 * coffread.c: Revert.
10918 * coff-pe-read.c: Revert.
10919 * cli-out.h: Revert.
10920 * cli-out.c: Revert.
10921 * charset.c: Revert.
10922 * c-varobj.c: Revert.
10923 * c-valprint.c: Revert.
10924 * c-typeprint.c: Revert.
10925 * c-lang.c: Revert.
10926 * buildsym.c: Revert.
10927 * buildsym-legacy.c: Revert.
10928 * build-id.h: Revert.
10929 * build-id.c: Revert.
10930 * btrace.c: Revert.
10931 * bsd-uthread.c: Revert.
10932 * breakpoint.h: Revert.
10933 * breakpoint.c: Revert.
10934 * break-catch-throw.c: Revert.
10935 * break-catch-syscall.c: Revert.
10936 * break-catch-sig.c: Revert.
10937 * blockframe.c: Revert.
10938 * block.c: Revert.
10939 * bfin-tdep.c: Revert.
10940 * bfin-linux-tdep.c: Revert.
10941 * bfd-target.c: Revert.
10942 * bcache.c: Revert.
10943 * ax-general.c: Revert.
10944 * ax-gdb.h: Revert.
10945 * ax-gdb.c: Revert.
10946 * avr-tdep.c: Revert.
10947 * auxv.c: Revert.
10948 * auto-load.c: Revert.
10949 * arm-wince-tdep.c: Revert.
10950 * arm-tdep.c: Revert.
10951 * arm-symbian-tdep.c: Revert.
10952 * arm-pikeos-tdep.c: Revert.
10953 * arm-obsd-tdep.c: Revert.
10954 * arm-nbsd-tdep.c: Revert.
10955 * arm-nbsd-nat.c: Revert.
10956 * arm-linux-tdep.c: Revert.
10957 * arm-linux-nat.c: Revert.
10958 * arm-fbsd-tdep.c: Revert.
10959 * arm-fbsd-nat.c: Revert.
10960 * arm-bsd-tdep.c: Revert.
10961 * arch-utils.c: Revert.
10962 * arc-tdep.c: Revert.
10963 * arc-newlib-tdep.c: Revert.
10964 * annotate.h: Revert.
10965 * annotate.c: Revert.
10966 * amd64-windows-tdep.c: Revert.
10967 * amd64-windows-nat.c: Revert.
10968 * amd64-tdep.c: Revert.
10969 * amd64-sol2-tdep.c: Revert.
10970 * amd64-obsd-tdep.c: Revert.
10971 * amd64-obsd-nat.c: Revert.
10972 * amd64-nbsd-tdep.c: Revert.
10973 * amd64-nbsd-nat.c: Revert.
10974 * amd64-nat.c: Revert.
10975 * amd64-linux-tdep.c: Revert.
10976 * amd64-linux-nat.c: Revert.
10977 * amd64-fbsd-tdep.c: Revert.
10978 * amd64-fbsd-nat.c: Revert.
10979 * amd64-dicos-tdep.c: Revert.
10980 * amd64-darwin-tdep.c: Revert.
10981 * amd64-bsd-nat.c: Revert.
10982 * alpha-tdep.c: Revert.
10983 * alpha-obsd-tdep.c: Revert.
10984 * alpha-nbsd-tdep.c: Revert.
10985 * alpha-mdebug-tdep.c: Revert.
10986 * alpha-linux-tdep.c: Revert.
10987 * alpha-linux-nat.c: Revert.
10988 * alpha-bsd-tdep.c: Revert.
10989 * alpha-bsd-nat.c: Revert.
10990 * aix-thread.c: Revert.
10991 * agent.c: Revert.
10992 * addrmap.c: Revert.
10993 * ada-varobj.c: Revert.
10994 * ada-valprint.c: Revert.
10995 * ada-typeprint.c: Revert.
10996 * ada-tasks.c: Revert.
10997 * ada-lang.c: Revert.
10998 * aarch64-tdep.c: Revert.
10999 * aarch64-ravenscar-thread.c: Revert.
11000 * aarch64-newlib-tdep.c: Revert.
11001 * aarch64-linux-tdep.c: Revert.
11002 * aarch64-linux-nat.c: Revert.
11003 * aarch64-fbsd-tdep.c: Revert.
11004 * aarch64-fbsd-nat.c: Revert.
11005 * aarch32-linux-nat.c: Revert.
11006
d55e5aa6
TT
110072019-04-05 Tom Tromey <tom@tromey.com>
11008
11009 * ft32-tdep.c: Sort headers.
11010 * frv-tdep.c: Sort headers.
11011 * frv-linux-tdep.c: Sort headers.
11012 * frame.c: Sort headers.
11013 * frame-unwind.c: Sort headers.
11014 * frame-base.c: Sort headers.
11015 * fork-child.c: Sort headers.
11016 * findvar.c: Sort headers.
11017 * findcmd.c: Sort headers.
11018 * filesystem.c: Sort headers.
11019 * filename-seen-cache.h: Sort headers.
11020 * filename-seen-cache.c: Sort headers.
11021 * fbsd-tdep.c: Sort headers.
11022 * fbsd-nat.h: Sort headers.
11023 * fbsd-nat.c: Sort headers.
11024 * f-valprint.c: Sort headers.
11025 * f-typeprint.c: Sort headers.
11026 * f-lang.c: Sort headers.
11027 * extension.h: Sort headers.
11028 * extension.c: Sort headers.
11029 * extension-priv.h: Sort headers.
11030 * expprint.c: Sort headers.
11031 * exec.h: Sort headers.
11032 * exec.c: Sort headers.
11033 * exceptions.c: Sort headers.
11034 * event-top.c: Sort headers.
11035 * event-loop.c: Sort headers.
11036 * eval.c: Sort headers.
11037 * elfread.c: Sort headers.
11038 * dwarf2read.h: Sort headers.
11039 * dwarf2read.c: Sort headers.
11040 * dwarf2loc.c: Sort headers.
11041 * dwarf2expr.h: Sort headers.
11042 * dwarf2expr.c: Sort headers.
11043 * dwarf2-frame.c: Sort headers.
11044 * dwarf2-frame-tailcall.c: Sort headers.
11045 * dwarf-index-write.h: Sort headers.
11046 * dwarf-index-write.c: Sort headers.
11047 * dwarf-index-common.c: Sort headers.
11048 * dwarf-index-cache.h: Sort headers.
11049 * dwarf-index-cache.c: Sort headers.
11050 * dummy-frame.c: Sort headers.
11051 * dtrace-probe.c: Sort headers.
11052 * disasm.h: Sort headers.
11053 * disasm.c: Sort headers.
11054 * disasm-selftests.c: Sort headers.
11055 * dictionary.c: Sort headers.
11056 * dicos-tdep.c: Sort headers.
11057 * demangle.c: Sort headers.
11058 * dcache.h: Sort headers.
11059 * dcache.c: Sort headers.
11060 * darwin-nat.h: Sort headers.
11061 * darwin-nat.c: Sort headers.
11062 * darwin-nat-info.c: Sort headers.
11063 * d-valprint.c: Sort headers.
11064 * d-namespace.c: Sort headers.
11065 * d-lang.c: Sort headers.
11066 * ctf.c: Sort headers.
11067 * csky-tdep.c: Sort headers.
11068 * csky-linux-tdep.c: Sort headers.
11069 * cris-tdep.c: Sort headers.
11070 * cris-linux-tdep.c: Sort headers.
11071 * cp-valprint.c: Sort headers.
11072 * cp-support.c: Sort headers.
11073 * cp-namespace.c: Sort headers.
11074 * cp-abi.c: Sort headers.
11075 * corelow.c: Sort headers.
11076 * corefile.c: Sort headers.
11077 * continuations.c: Sort headers.
11078 * completer.h: Sort headers.
11079 * completer.c: Sort headers.
11080 * complaints.c: Sort headers.
11081 * coffread.c: Sort headers.
11082 * coff-pe-read.c: Sort headers.
11083 * cli-out.h: Sort headers.
11084 * cli-out.c: Sort headers.
11085 * charset.c: Sort headers.
11086 * c-varobj.c: Sort headers.
11087 * c-valprint.c: Sort headers.
11088 * c-typeprint.c: Sort headers.
11089 * c-lang.c: Sort headers.
11090 * buildsym.c: Sort headers.
11091 * buildsym-legacy.c: Sort headers.
11092 * build-id.h: Sort headers.
11093 * build-id.c: Sort headers.
11094 * btrace.c: Sort headers.
11095 * bsd-uthread.c: Sort headers.
11096 * breakpoint.h: Sort headers.
11097 * breakpoint.c: Sort headers.
11098 * break-catch-throw.c: Sort headers.
11099 * break-catch-syscall.c: Sort headers.
11100 * break-catch-sig.c: Sort headers.
11101 * blockframe.c: Sort headers.
11102 * block.c: Sort headers.
11103 * bfin-tdep.c: Sort headers.
11104 * bfin-linux-tdep.c: Sort headers.
11105 * bfd-target.c: Sort headers.
11106 * bcache.c: Sort headers.
11107 * ax-general.c: Sort headers.
11108 * ax-gdb.h: Sort headers.
11109 * ax-gdb.c: Sort headers.
11110 * avr-tdep.c: Sort headers.
11111 * auxv.c: Sort headers.
11112 * auto-load.c: Sort headers.
11113 * arm-wince-tdep.c: Sort headers.
11114 * arm-tdep.c: Sort headers.
11115 * arm-symbian-tdep.c: Sort headers.
11116 * arm-pikeos-tdep.c: Sort headers.
11117 * arm-obsd-tdep.c: Sort headers.
11118 * arm-nbsd-tdep.c: Sort headers.
11119 * arm-nbsd-nat.c: Sort headers.
11120 * arm-linux-tdep.c: Sort headers.
11121 * arm-linux-nat.c: Sort headers.
11122 * arm-fbsd-tdep.c: Sort headers.
11123 * arm-fbsd-nat.c: Sort headers.
11124 * arm-bsd-tdep.c: Sort headers.
11125 * arch-utils.c: Sort headers.
11126 * arc-tdep.c: Sort headers.
11127 * arc-newlib-tdep.c: Sort headers.
11128 * annotate.h: Sort headers.
11129 * annotate.c: Sort headers.
11130 * amd64-windows-tdep.c: Sort headers.
11131 * amd64-windows-nat.c: Sort headers.
11132 * amd64-tdep.c: Sort headers.
11133 * amd64-sol2-tdep.c: Sort headers.
11134 * amd64-obsd-tdep.c: Sort headers.
11135 * amd64-obsd-nat.c: Sort headers.
11136 * amd64-nbsd-tdep.c: Sort headers.
11137 * amd64-nbsd-nat.c: Sort headers.
11138 * amd64-nat.c: Sort headers.
11139 * amd64-linux-tdep.c: Sort headers.
11140 * amd64-linux-nat.c: Sort headers.
11141 * amd64-fbsd-tdep.c: Sort headers.
11142 * amd64-fbsd-nat.c: Sort headers.
11143 * amd64-dicos-tdep.c: Sort headers.
11144 * amd64-darwin-tdep.c: Sort headers.
11145 * amd64-bsd-nat.c: Sort headers.
11146 * alpha-tdep.c: Sort headers.
11147 * alpha-obsd-tdep.c: Sort headers.
11148 * alpha-nbsd-tdep.c: Sort headers.
11149 * alpha-mdebug-tdep.c: Sort headers.
11150 * alpha-linux-tdep.c: Sort headers.
11151 * alpha-linux-nat.c: Sort headers.
11152 * alpha-bsd-tdep.c: Sort headers.
11153 * alpha-bsd-nat.c: Sort headers.
11154 * aix-thread.c: Sort headers.
11155 * agent.c: Sort headers.
11156 * addrmap.c: Sort headers.
11157 * ada-varobj.c: Sort headers.
11158 * ada-valprint.c: Sort headers.
11159 * ada-typeprint.c: Sort headers.
11160 * ada-tasks.c: Sort headers.
11161 * ada-lang.c: Sort headers.
11162 * aarch64-tdep.c: Sort headers.
11163 * aarch64-ravenscar-thread.c: Sort headers.
11164 * aarch64-newlib-tdep.c: Sort headers.
11165 * aarch64-linux-tdep.c: Sort headers.
11166 * aarch64-linux-nat.c: Sort headers.
11167 * aarch64-fbsd-tdep.c: Sort headers.
11168 * aarch64-fbsd-nat.c: Sort headers.
11169 * aarch32-linux-nat.c: Sort headers.
11170
699bd4cf
TT
111712019-04-04 Tom Tromey <tom@tromey.com>
11172
11173 * varobj.c (varobj_create): Update.
11174 * rust-exp.y (struct rust_parser) <update_innermost_block,
11175 lookup_symbol>: New methods.
11176 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11177 Rename.
11178 (rust_parser::rust_lookup_type)
11179 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11180 * printcmd.c (display_command, do_one_display): Update.
11181 * parser-defs.h (struct parser_state) <parser_state>: Add
11182 "tracker" parameter.
11183 (block_tracker): New member.
11184 (class innermost_block_tracker) <innermost_block_tracker>: Add
11185 "types" parameter.
11186 <reset>: Remove method.
11187 (innermost_block): Don't declare.
11188 (null_post_parser): Update.
11189 * parse.c (innermost_block): Remove global.
11190 (write_dollar_variable): Update.
11191 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11192 Remove "tracker_types" parameter.
11193 (parse_expression): Add "tracker" parameter.
11194 (parse_expression_for_completion): Update.
11195 (null_post_parser): Add "tracker" parameter.
11196 * p-exp.y: Update rules.
11197 * m2-exp.y: Update rules.
11198 * language.h (struct language_defn) <la_post_parser>: Add
11199 "tracker" parameter.
11200 * go-exp.y: Update rules.
11201 * f-exp.y: Update rules.
11202 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11203 parameter.
11204 * d-exp.y: Update rules.
11205 * c-exp.y: Update rules.
11206 * breakpoint.c (set_breakpoint_condition): Create an
11207 innermost_block_tracker.
11208 (watch_command_1): Likewise.
11209 * ada-lang.c (resolve): Add "tracker" parameter.
11210 (resolve_subexp): Likewise.
11211 * ada-exp.y (write_var_from_sym): Update.
11212
dac43e32
TT
112132019-04-04 Tom Tromey <tom@tromey.com>
11214
11215 * type-stack.h: New file.
11216 * type-stack.c: New file.
11217 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11218 type-stack.h.
11219 (insert_into_type_stack, insert_type, push_type, push_type_int)
11220 (insert_type_address_space, pop_type, pop_type_int)
11221 (pop_typelist, pop_type_stack, append_type_stack)
11222 (push_type_stack, get_type_stack, push_typelist)
11223 (follow_type_instance_flags, follow_types): Don't declare.
11224 * parse.c (type_stack): Remove global.
11225 (parse_exp_in_context): Update.
11226 (insert_into_type_stack, insert_type, push_type, push_type_int)
11227 (insert_type_address_space, pop_type, pop_type_int)
11228 (pop_typelist, pop_type_stack, append_type_stack)
11229 (push_type_stack, get_type_stack, push_typelist)
11230 (follow_type_instance_flags, follow_types): Remove (moved to
11231 type-stack.c).
11232 * f-exp.y (type_stack): New global.
11233 Update rules.
11234 (push_kind_type, f_parse): Update.
11235 * d-exp.y (type_stack): New global.
11236 Update rules.
11237 (d_parse): Update.
11238 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11239 Update rules.
11240 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11241 (HFILES_NO_SRCDIR): Add type-stack.h.
11242
2a612529
TT
112432019-04-04 Tom Tromey <tom@tromey.com>
11244
11245 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11246 (rust_parser::convert_ast_to_expression, rust_parse)
11247 (rust_lex_test_completion, rust_lex_tests): Update.
11248 * parser-defs.h (struct expr_completion_state): New.
11249 (struct parser_state) <parser_state>: Add completion parameter.
11250 <mark_struct_expression, mark_completion_tag>: New methods.
11251 <parse_completion, m_completion_state>: New members.
11252 (prefixify_expression, null_post_parser): Update.
11253 (mark_struct_expression, mark_completion_tag): Don't declare.
11254 * parse.c (parse_completion, expout_last_struct)
11255 (expout_tag_completion_type, expout_completion_name): Remove
11256 globals.
11257 (parser_state::mark_struct_expression)
11258 (parser_state::mark_completion_tag): Now methods.
11259 (prefixify_expression): Add last_struct parameter.
11260 (prefixify_subexp): Likewise.
11261 (parse_exp_1): Update.
11262 (parse_exp_in_context): Add cstate parameter. Update.
11263 (parse_expression_for_completion): Create an
11264 expr_completion_state.
11265 (null_post_parser): Add "completion" parameter.
11266 * p-exp.y: Update rules.
11267 (yylex): Update.
11268 * language.h (struct language_defn) <la_post_parser>: Add
11269 "completing" parameter.
11270 * go-exp.y: Update rules.
11271 (lex_one_token): Update.
11272 * expression.h (parse_completion): Don't declare.
11273 * d-exp.y: Update rules.
11274 (lex_one_token): Update rules.
11275 * c-exp.y: Update rules.
11276 (lex_one_token): Update.
11277 * ada-lang.c (resolve): Add "parse_completion" parameter.
11278 (resolve_subexp): Likewise.
11279 (ada_resolve_function): Likewise.
11280
43476f0b
TT
112812019-04-04 Tom Tromey <tom@tromey.com>
11282
11283 * parser-defs.h (struct parser_state) <start_arglist,
11284 end_arglist>: New methods.
11285 <arglist_len, m_funcall_chain>: New members.
11286 (arglist_len, start_arglist, end_arglist): Don't declare.
11287 * parse.c (arglist_len, funcall_chain): Remove global.
11288 (start_arglist, end_arglist): Remove functions.
11289 (parse_exp_in_context): Update.
11290 * p-exp.y: Update rules.
11291 * m2-exp.y: Update rules.
11292 * go-exp.y: Update rules.
11293 * f-exp.y: Update rules.
11294 * d-exp.y: Update rules.
11295 * c-exp.y: Update rules.
11296
5776fca3
TT
112972019-04-04 Tom Tromey <tom@tromey.com>
11298
11299 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11300 lex_operator, push_back>: New methods.
11301 Update all rules.
11302 (rust_parser::lex_hex, lex_escape): Rename and update.
11303 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11304 (rust_parser::lex_operator): Rename and update.
11305 (rust_parser::lex_number, rustyylex, rustyyerror)
11306 (rust_lex_test_init, rust_lex_test_sequence)
11307 (rust_lex_test_push_back, rust_lex_tests): Update.
11308 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11309 parameter.
11310 <lexptr, prev_lexptr>: New members.
11311 (lexptr, prev_lexptr): Don't declare.
11312 * parse.c (lexptr, prev_lexptr): Remove globals.
11313 (parse_exp_in_context): Update.
11314 * p-exp.y (yylex, yyerror): Update.
11315 * m2-exp.y (parse_number, yylex, yyerror): Update.
11316 * go-exp.y (lex_one_token, yyerror): Update.
11317 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11318 * d-exp.y (lex_one_token, yyerror): Update.
11319 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11320 (lex_one_token, yyerror): Update.
11321 * ada-lex.l (YY_INPUT): Update.
11322 (rewind_to_char): Update.
11323 * ada-exp.y (yyerror): Update.
11324
8621b685
TT
113252019-04-04 Tom Tromey <tom@tromey.com>
11326
11327 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11328 * parser-defs.h (struct parser_state) <parser_state>: Add new
11329 parameter.
11330 <comma_terminates>: New member.
11331 (comma_terminates): Don't declare global.
11332 * parse.c (comma_terminates): Remove global.
11333 (parse_exp_in_context): Update.
11334 * p-exp.y (yylex): Update.
11335 * m2-exp.y (yylex): Update.
11336 * go-exp.y (lex_one_token): Update.
11337 * f-exp.y (yylex): Update.
11338 * d-exp.y (lex_one_token): Update.
11339 * c-exp.y (lex_one_token): Update.
11340 * ada-lex.l: Update.
11341
28aaf3fd
TT
113422019-04-04 Tom Tromey <tom@tromey.com>
11343
11344 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11345 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11346 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11347 * parser-defs.h (paren_depth): Don't declare.
11348 * parse.c (paren_depth): Remove global.
11349 (parse_exp_in_context): Update.
11350 * p-exp.y (paren_depth): New global.
11351 (pascal_parse): Initialize it.
11352 * m2-exp.y (paren_depth): New global.
11353 (m2_parse): Initialize it.
11354 * go-exp.y (paren_depth): New global.
11355 (go_parse): Initialize it.
11356 * f-exp.y (paren_depth): New global.
11357 (f_parse): Initialize it.
11358 * d-exp.y (paren_depth): New global.
11359 (d_parse): Initialize it.
11360 * c-exp.y (paren_depth): New global.
11361 (c_parse): Initialize it.
11362 * ada-lex.l (paren_depth): New global.
11363 (lexer_init): Initialize it.
11364
1e58a4a4
TT
113652019-04-04 Tom Tromey <tom@tromey.com>
11366
11367 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11368 (rust_parser::convert_ast_to_type)
11369 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11370 * parser-defs.h (struct parser_state) <parser_state>: Add
11371 parameters. Initialize new members.
11372 <expression_context_block, expression_context_pc>: New members.
11373 * parse.c (expression_context_block, expression_context_pc):
11374 Remove globals.
11375 (parse_exp_in_context): Update.
11376 * p-exp.y: Update all rules.
11377 (yylex): Update.
11378 * m2-exp.y: Update all rules.
11379 (yylex): Update.
11380 * go-exp.y (yylex): Update.
11381 * f-exp.y (yylex): Update.
11382 * d-exp.y: Update all rules.
11383 (yylex): Update.
11384 * c-exp.y: Update all rules.
11385 (lex_one_token, classify_name, yylex, c_parse): Update.
11386 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11387
37eedb39
TT
113882019-04-04 Tom Tromey <tom@tromey.com>
11389
11390 * gdbarch.h, gdbarch.c: Rebuild.
11391 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11392 * stap-probe.h:
11393 (struct stap_parse_info): Replace "parser_state" with
11394 "expr_builder".
11395 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11396 (parser_state): New class.
11397 * parse.c (expr_builder): Rename.
11398 (expr_builder::release): Rename.
11399 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11400 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11401 (write_exp_elt_longcst, write_exp_elt_floatcst)
11402 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11403 (write_exp_string_vector, write_exp_bitstring)
11404 (write_exp_msymbol, mark_struct_expression)
11405 (write_dollar_variable)
11406 (insert_type_address_space, increase_expout_size): Replace
11407 "parser_state" with "expr_builder".
11408 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11409 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11410 "parser_state" with "expr_builder".
11411
73923d7e
TT
114122019-04-04 Tom Tromey <tom@tromey.com>
11413
11414 * rust-exp.y: Replace "parse_language" with method call.
11415 * p-exp.y:
11416 (yylex): Replace "parse_language" with method call.
11417 * m2-exp.y:
11418 (yylex): Replace "parse_language" with method call.
11419 * go-exp.y (classify_name): Replace "parse_language" with method
11420 call.
11421 * f-exp.y (yylex): Replace "parse_language" with method call.
11422 * d-exp.y (lex_one_token): Replace "parse_language" with method
11423 call.
11424 * c-exp.y:
11425 (lex_one_token, classify_name, yylex): Replace "parse_language"
11426 with method call.
11427 * ada-exp.y (find_primitive_type, type_char)
11428 (type_system_address): Replace "parse_language" with method call.
11429
fa9f5be6
TT
114302019-04-04 Tom Tromey <tom@tromey.com>
11431
11432 * rust-exp.y: Replace "parse_gdbarch" with method call.
11433 * parse.c (write_dollar_variable, insert_type_address_space):
11434 Replace "parse_gdbarch" with method call.
11435 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11436 call.
11437 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11438 call.
11439 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11440 "parse_gdbarch" with method call.
11441 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11442 with method call.
11443 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11444 "parse_gdbarch" with method call.
11445 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11446 "parse_gdbarch" with method call.
11447 * c-exp.y (parse_type, parse_number, classify_name): Replace
11448 "parse_gdbarch" with method call.
11449 * ada-lex.l: Replace "parse_gdbarch" with method call.
11450 * ada-exp.y (parse_type, find_primitive_type, type_char)
11451 (type_system_address): Replace "parse_gdbarch" with method call.
11452
1201a264
TT
114532019-04-04 Tom Tromey <tom@tromey.com>
11454
11455 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11456 * stap-probe.c (stap_parse_argument): Update.
11457 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11458 initial_size parameter.
11459 * rust-exp.y (rust_lex_tests): Update.
11460 * parse.c (parser_state): Update.
11461 (parse_exp_in_context): Update.
11462 * parser-defs.h (struct parser_state) <parser_state>: Remove
11463 "initial_size" parameter.
11464
e3980ce2
TT
114652019-04-04 Tom Tromey <tom@tromey.com>
11466
11467 * parser-defs.h (increase_expout_size): Don't declare.
11468 * parse.c (increase_expout_size): Now static.
11469
e9f8e3f1
TS
114702019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11471
11472 * gnu-nat.c (gnu_nat_target::wait): Fix
11473 target_waitstatus_to_string call.
11474
d7df6549
AB
114752019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11476
11477 * eval.c (evaluate_subexp_standard): Handle internal functions
11478 during Fortran function call handling.
11479
8bdc1658
AB
114802019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11481
11482 * NEWS: Mention new internal functions.
11483 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11484 (read_base_type): Use dwarf2_init_complex_target_type.
11485 * value.c (creal_internal_fn): New function.
11486 (cimag_internal_fn): New function.
11487 (_initialize_values): Register new internal functions.
11488
c29705b7
PW
114892019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11490
11491 * infrun.c (stop_all_threads): If debug_infrun, always
11492 trace the wait status after wait_one, using
11493 target_waitstatus_to_string and target_pid_to_str.
11494 (handle_inferior_event): Replace various trace of
11495 wait status kind by a single trace.
11496 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11497 wait status kind image by target_waitstatus_to_string.
11498 * target/waitstatus.c (target_waitstatus_to_string): Fix
11499 obsolete comment.
11500
05caa1d2
TT
115012019-04-01 Tom Tromey <tromey@adacore.com>
11502
11503 PR symtab/23331:
11504 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11505
9d1447e0
SDJ
115062019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11507 Pedro Alves <palves@redhat.com>
11508
11509 * top.c (quit_force): Call 'finalize_values'.
11510 * value.c (finalize_values): New function.
11511 * value.h (finalize_values): Declare.
11512
7734102d
EZ
115132019-03-30 Eli Zaretskii <eliz@gnu.org>
11514
11515 * NEWS: Announce $_gdb_major and $_gdb_minor.
11516
11517 * top.c (init_gdb_version_vars): New function.
11518 (gdb_init): Call init_gdb_version_vars.
11519
188e1fa9
TT
115202019-03-29 Tom Tromey <tromey@adacore.com>
11521
11522 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11523 help text. Remove dead code.
11524
2880242d
KS
115252019-03-29 Keith Seitz <keiths@redhat.com>
11526
11527 From Siddhesh Poyarekar:
11528 * f-lang.h (f77_get_upperbound): Return LONGEST.
11529 (f77_get_lowerbound): Likewise.
11530 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11531 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11532 print them.
11533 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11534 plongest to format print it.
11535 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11536 (f77_get_upperbound): Likewise.
11537 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11538 LOWER_BOUND to LONGEST.
11539 (f77_create_arrayprint_offset_tbl): Likewise.
11540
cc1defb1
KS
115412019-03-29 Keith Seitz <keiths@redhat.com>
11542
11543 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11544 %s/pulongest for TYPE_LENGTH instead of %d in format
11545 strings.
11546 * ada-typerint.c (ada_print_type): Likewise.
11547 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11548 * compile/compile-c-support.c (generate_register_struct): Likewise.
11549 * gdbtypes.c (recursive_dump_type): Likewise.
11550 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11551 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11552 instead of %d in format strings.
11553 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11554 to std::min to ULONGEST.
11555 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11556 instead of %d in format strings.
11557 * tracepoint.c (info_scope_command): Likewise.
11558 * typeprint.c (print_offset_data::update)
11559 (print_offset_data::finish): Likewise.
11560 * xtensa-tdep.c (xtensa_store_return_value)
11561 (xtensa_push_dummy_call): Likewise.
11562
e432ccf1
JT
115632019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11564
11565 * windows-nat.c (display_selector): Fixed format specifications
11566 for 64-bit Cygwin.
11567
65d2b333
PW
115682019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11569
11570 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11571
f489207e
SL
115722019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11573
11574 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11575 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11576 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11577 (nios2_linux_init_abi): Install it.
11578
bffa1015
AH
115792019-03-28 Alan Hayward <alan.hayward@arm.com>
11580
11581 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11582
fc96163a
AH
115832019-03-28 Alan Hayward <alan.hayward@arm.com>
11584
11585 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11586
20dc7e9b
PW
115872019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11588 Tom Tromey <tromey@adacore.com>
11589
11590 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11591
7f5331a8
JB
115922019-03-26 Joel Brobecker <brobecker@adacore.com>
11593
11594 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11595 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11596 method to compute the bounds of range types. Also print "[evaluated]"
11597 if the bounds' values come from a dynamic evaluation.
11598
18c77628
AB
115992019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11600
11601 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11602 whitespace when pretty printing is on.
11603
53c973f2
AH
116042019-03-26 Alan Hayward <alan.hayward@arm.com>
11605
e79be6e5 11606 * ppc-linux-nat.c: Add include.
53c973f2 11607
d851aa71
AH
116082019-03-26 Alan Hayward <alan.hayward@arm.com>
11609
e79be6e5 11610 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 11611
2fe7bab7
AH
116122019-03-26 Alan Hayward <alan.hayward@arm.com>
11613
e79be6e5 11614 * arm-linux-nat.c: Add include.
2fe7bab7 11615
068ef30e
SM
116162019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11617
11618 * source-cache.c (source_cache::get_source_lines): Re-read
11619 fullname after calling open_source_file.
11620
81a24d04
JB
116212019-03-25 John Baldwin <jhb@FreeBSD.org>
11622
11623 * NEWS: Mention TLS support for FreeBSD.
11624
79e7ae11
TT
116252019-03-25 Tom Tromey <tromey@adacore.com>
11626
11627 * minsyms.c (BUNCH_SIZE): Update comment.
11628 (~minimal_symbol_reader): Remove old comment.
11629 (compact_minimal_symbols): Update comment.
11630 (minimal_symbol_reader::install): Remove old comment. Update
11631 other comments.
11632
d45963c2
AH
116332019-03-25 Alan Hayward <alan.hayward@arm.com>
11634
11635 * s390-linux-nat.c: Add include.
11636
0f83012e
AH
116372019-03-25 Alan Hayward <alan.hayward@arm.com>
11638
11639 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11640 Call linux_get_hwcap.
11641 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11642 Likewise.
11643 (aarch64_linux_get_hwcap): Remove function.
11644 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11645 declaration.
11646 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11647 linux_get_hwcap.
11648 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11649 * linux-tdep.c (linux_get_hwcap): Add function.
11650 (linux_get_hwcap2): Likewise.
11651 * linux-tdep.h (linux_get_hwcap): Add declaration.
11652 (linux_get_hwcap2): Likewise.
11653 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11654 (ppc_linux_get_hwcap2): Likewise.
11655 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11656 linux_get_hwcap.
11657 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11658 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11659 (ppc_linux_nat_target::read_description): Likewise.
11660 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11661 * s390-linux-nat.c: Likewise.
11662 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11663
6640a367
TT
116642019-03-24 Tom Tromey <tom@tromey.com>
11665
11666 * ada-lang.c (standard_lookup): Simplify initialization.
11667 (ada_lookup_symbol_nonlocal): Simplify return.
11668 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11669 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11670 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11671 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11672 initialization.
11673 * solib.c (solib_global_lookup): Simplify.
11674 * symtab.c (null_block_symbol): Remove.
11675 (symbol_cache_lookup): Simplify returns.
11676 (lookup_language_this): Simplify returns.
11677 (lookup_symbol_aux): Simplify return.
11678 (lookup_local_symbol): Simplify returns.
11679 (lookup_global_symbol_from_objfile): Simplify return.
11680 (lookup_symbol_in_objfile_symtabs)
11681 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11682 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11683 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11684 * cp-namespace.c (cp_lookup_bare_symbol)
11685 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11686 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11687 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11688 (cp_lookup_symbol_via_imports): Simplify initialization.
11689 (find_symbol_in_baseclass): Likewise.
11690 * symtab.h (null_block_symbol): Remove.
11691 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11692 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11693 (d_lookup_symbol_module): Likewise.
11694 (find_symbol_in_baseclass): Simplify initialization.
11695
a930ebcd
TT
116962019-03-24 Tom Tromey <tom@tromey.com>
11697
11698 * expression.h: Don't include symtab.h.
11699 (struct block): Forward declare.
11700
582942f4
TT
117012019-03-24 Tom Tromey <tom@tromey.com>
11702
11703 * c-exp.y (typebase): Remove casts.
11704 * gdbtypes.c (lookup_unsigned_typename, )
11705 (lookup_signed_typename): Remove cast.
11706 * eval.c (parse_to_comma_and_eval): Remove cast.
11707 * parse.c (write_dollar_variable): Remove cast.
11708 * block.h (struct block) <superblock>: Now const.
11709 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11710 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11711 (map_block): Make "block" const.
11712 * symfile.h (struct quick_symbol_functions)
11713 <map_matching_symbols>: Constify block argument to "callback".
11714 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11715 const.
11716 (find_pc_sect_compunit_symtab): Make "b" const.
11717 (find_symbol_at_address): Likewise.
11718 (search_symbols): Likewise.
11719 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11720 (dw2_debug_names_lookup_symbol): Likewise.
11721 (dw2_map_matching_symbols): Update.
11722 * p-valprint.c (pascal_val_print): Remove "block".
11723 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11724 (aux_add_nonlocal_symbols): Make "block" const.
11725 (resolve_subexp): Remove cast.
11726 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11727 const.
11728 (iterate_over_file_blocks): Likewise.
11729 * f-exp.y (%union) <bval>: Remove.
11730 * coffread.c (patch_opaque_types): Make "b" const.
11731 * spu-tdep.c (spu_catch_start): Make "block" const.
11732 * c-valprint.c (print_unpacked_pointer): Remove "block".
11733 * symmisc.c (dump_symtab_1): Make "b" const.
11734 (block_depth): Make "block" const.
11735 * d-exp.y (%union) <bval>: Remove.
11736 * cp-support.h (cp_lookup_rtti_type): Update.
11737 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11738 * psymtab.c (psym_lookup_symbol): Make "block" const.
11739 (maintenance_check_psymtabs): Make "b" const.
11740 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11741 (enumerate_locals, enumerate_args): Update.
11742 * python/py-symtab.c (stpy_global_block): Make "block" const.
11743 (stpy_static_block): Likewise.
11744 * inline-frame.c (block_starting_point_at): Make "new_block"
11745 const.
11746 * block.c (find_block_in_blockvector): Make return type const.
11747 (blockvector_for_pc_sect): Make "b" const.
11748 (find_block_in_blockvector): Make "b" const.
11749
7ad417dd
TT
117502019-03-23 Tom Tromey <tom@tromey.com>
11751
11752 * varobj.c (varobj_create): Update.
11753 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11754 * printcmd.c (display_command, do_one_display): Don't reset
11755 innermost_block.
11756 * parser-defs.h (enum innermost_block_tracker_type): Move to
11757 expression.h.
11758 (innermost_block): Update comment.
11759 * parse.c (parse_exp_1): Add tracker_types parameter.
11760 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11761 tracker_types parameter. Reset innermost_block.
11762 (parse_exp_in_context): Remove.
11763 (parse_expression_for_completion): Update.
11764 * objfiles.c (~objfile): Don't reset expression_context_block or
11765 innermost_block.
11766 * expression.h (enum innermost_block_tracker_type): Move from
11767 parser-defs.h.
11768 (parse_exp_1): Add tracker_types parameter.
11769 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11770 reset innermost_block.
11771
b366c208
TT
117722019-03-23 Tom Tromey <tom@tromey.com>
11773
11774 * objfiles.h: Include bcache.h.
11775
9bb9b2f9
TT
117762019-03-23 Tom Tromey <tom@tromey.com>
11777
11778 * linespec.c (get_current_search_block): Use
11779 scoped_restore_current_language.
11780 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11781
59c28372
AH
117822019-03-22 Alan Hayward <alan.hayward@arm.com>
11783 Jiong Wang <jiong.wang@arm.com>
11784
11785 * aarch64-linux-tdep.c
11786 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11787 section.
11788 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11789
17e116a7
AH
117902019-03-22 Alan Hayward <alan.hayward@arm.com>
11791 Jiong Wang <jiong.wang@arm.com>
11792
11793 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11794 instructions.
11795 (aarch64_analyze_prologue_test): Add PACIASP test.
11796 (aarch64_prologue_prev_register): Unmask PC value.
11797
11e1b75f
AH
117982019-03-22 Alan Hayward <alan.hayward@arm.com>
11799 Jiong Wang <jiong.wang@arm.com>
11800
11801 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11802 (aarch64_dwarf2_prev_register): Unmask PC value.
11803 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11804 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11805 DW_CFA_AARCH64_negate_ra_state.
11806 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11807
34dcc7cf
AH
118082019-03-22 Alan Hayward <alan.hayward@arm.com>
11809 Jiong Wang <jiong.wang@arm.com>
11810
11811 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11812 registers.
11813 (aarch64_pseudo_register_name): Likewise.
11814 (aarch64_pseudo_register_type): Likewise.
11815 (aarch64_pseudo_register_reggroup_p): Likewise.
11816 (aarch64_gdbarch_init): Add pauth registers.
11817 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11818 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11819 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11820 (struct gdbarch_tdep): Add regnum for ra_state.
11821
1ef53e6b
AH
118222019-03-22 Alan Hayward <alan.hayward@arm.com>
11823 Jiong Wang <jiong.wang@arm.com>
11824
11825 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11826
76bed0fd
AH
118272019-03-22 Alan Hayward <alan.hayward@arm.com>
11828 Jiong Wang <jiong.wang@arm.com>
11829
11830 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11831 function.
11832 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11833 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11834 (aarch64_gdbarch_init): Add puth registers.
11835 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11836 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11837 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11838
ee4fbcfa
AH
118392019-03-22 Alan Hayward <alan.hayward@arm.com>
11840 Jiong Wang <jiong.wang@arm.com>
11841
11842 * aarch64-linux-nat.c
11843 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11844 * aarch64-linux-tdep.c
11845 (aarch64_linux_core_read_description): Likewise.
11846 (aarch64_linux_get_hwcap): New function.
11847 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11848 (aarch64_linux_get_hwcap): New declaration.
11849
6dc0ebde
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): Add pauth param.
11855 * aarch64-linux-tdep.c
11856 (aarch64_linux_core_read_description): Likewise.
11857 * aarch64-tdep.c (struct target_desc): Add in pauth.
11858 (aarch64_read_description): Add pauth param.
11859 (aarch64_gdbarch_init): Likewise.
11860 * aarch64-tdep.h (aarch64_read_description): Likewise.
11861 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11862 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11863 * features/Makefile: Add new files.
11864 * features/aarch64-pauth.c: New file.
11865 * features/aarch64-pauth.xml: New file.
11866
595915c1
TT
118672019-03-20 Tom Tromey <tromey@adacore.com>
11868
11869 * infrun.c (handle_inferior_event): Rename from
11870 handle_inferior_event_1. Create a scoped_value_mark.
11871 (handle_inferior_event): Remove.
11872
4c7d57e7
TT
118732019-03-19 Tom Tromey <tromey@adacore.com>
11874
11875 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11876 * infrun.h (print_stop_event): Add "displays" parameter.
11877 * infrun.c (print_stop_event): Add "displays" parameter.
11878
cb246234
PA
118792019-03-19 Pedro Alves <palves@redhat.com>
11880
11881 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11882 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11883 to -1. Fix TABs vs spaces.
11884 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11885 * tui/tui-out.h (tui_ui_out) Add intro comments.
11886 <m_line, m_start_of_line>: In-class initialize, and add describing
11887 comment.
11888
3a0e45b2
AH
118892019-03-18 Alan Hayward <alan.hayward@arm.com>
11890
11891 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11892 variable names.
11893 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
11894
5371b850
PA
118952019-03-18 Pedro Alves <palves@redhat.com>
11896 Eli Zaretskii <eliz@gnu.org>
11897
11898 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
11899 m_line and m_start_of_line.
11900
b17c4cd0
EZ
119012019-03-18 Eli Zaretskii <eliz@gnu.org>
11902
11903 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
11904 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
11905 it returns a newline. This fixes a regression in TU mode, whereby
11906 the next line is output on the same screen line as the user input.
11907
4bd56d18
TT
119082019-03-18 Tom Tromey <tromey@adacore.com>
11909
11910 * minsyms.c (minimal_symbol_reader::install): Remove call to
11911 obstack_blank.
11912
55c10aca
PA
119132019-03-18 Pedro Alves <palves@redhat.com>
11914
11915 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
11916 New globals.
11917 (apply_style): New, factored out from ...
11918 (apply_ansi_escape): ... this. Handle reverse video mode.
11919 (tui_set_reverse_mode): New function.
11920 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
11921 * tui/tui-winsource.c (tui_show_source_line): Use
11922 tui_set_reverse_mode instead of setting A_STANDOUT.
11923 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
11924 New setter methods.
11925
647bb750
HD
119262019-03-18 Hannes Domani <ssbssa@yahoo.de>
11927
11928 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
11929 Handle tabs.
11930
bff8c71f
TT
119312019-03-18 Tom Tromey <tromey@adacore.com>
11932
11933 * ada-lang.c (empty_array): Add "high" parameter.
11934 (ada_evaluate_subexp): Update.
11935
58785d98
ST
119362019-03-17 Sergei Trofimovich <siarheit@google.com>
11937
11938 * unittests/string_view-selftests.c: Define
11939 _initialize_string_view_selftests unconditionally.
11940
d4cbef22
ВМ
119412019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11942
11943 PR gdb/24350
11944 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
11945
fce4c071
ВМ
119462019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11947
11948 PR gdb/24351
11949 * windows-nat.c (display_selector): Fix format specifiers.
11950
f7f0a123
EZ
119512019-03-17 Eli Zaretskii <eliz@gnu.org>
11952
11953 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
11954 tui_refill_source_window instead of tui_refresh_win, to update the
11955 current execution line. This fixes redisplay of the current line
11956 when stepping through the code with "next" or "step".
11957
ab42892f
EZ
119582019-03-16 Eli Zaretskii <eliz@gnu.org>
11959
11960 * source-cache.c (source_cache::get_source_lines): Call
11961 find_source_lines to initialize s->nlines. This fixes vertical
11962 scrolling of TUI source window when the DOWN arrow is pressed.
11963
8d8c087f
PW
119642019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11965
11966 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
11967 linux-thread-db.c (_initialize_thread_db): Likewise.
11968
798e1c30
EZ
119692019-03-16 Eli Zaretskii <eliz@gnu.org>
11970
11971 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
11972 wclrtoeol in tui_show_source_line". This reverts changes made in
11973 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11974
eefba3da
TT
119752019-03-15 Tom Tromey <tom@tromey.com>
11976
11977 * symtab.h (struct minimal_symbol): Derive from
11978 general_symbol_info.
11979 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11980 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11981 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11982 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11983 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11984 (MSYMBOL_SEARCH_NAME): Update.
11985 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11986 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11987 * minsyms.c (minimal_symbol_reader::record_full): Update.
11988
0de2420c
TT
119892019-03-15 Tom Tromey <tom@tromey.com>
11990
11991 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
11992
042d75e4
TT
119932019-03-15 Tom Tromey <tom@tromey.com>
11994
11995 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
11996 unique_xmalloc_ptr.
11997 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
11998 Update.
11999 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12000 (build_minimal_symbol_hash_tables)
12001 (minimal_symbol_reader::install): Update.
12002
db92718b
TT
120032019-03-15 Tom Tromey <tom@tromey.com>
12004
12005 * symtab.c (create_demangled_names_hash): Update.
12006 (symbol_set_names): Update.
12007 * objfiles.h (struct objfile_per_bfd_storage)
12008 <demangled_names_hash>: Now an htab_up.
12009 * objfiles.c (objfile_per_bfd_storage): Simplify.
12010
d6797f46
TT
120112019-03-15 Tom Tromey <tom@tromey.com>
12012
12013 * objfiles.h (struct objfile_per_bfd_storage): Declare
12014 destructor.
12015 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12016 New.
12017 (get_objfile_bfd_data): Use new. Don't initialize
12018 language_of_main.
12019 (free_objfile_per_bfd_storage): Remove.
12020 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12021
741d7538
TT
120222019-03-15 Tom Tromey <tom@tromey.com>
12023
12024 * symfile.c (reread_symbols): Update.
12025 * objfiles.c (objfile::objfile): Update.
12026 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12027 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12028 comment.
12029 (minimal_symbol_reader::install): Update.
12030 (terminate_minimal_symbol_table): Remove.
12031 * jit.c (jit_object_close_impl): Update.
12032
788c80d1
TT
120332019-03-15 Tom Tromey <tom@tromey.com>
12034
12035 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12036 initializations.
12037
1b7a07cb
TT
120382019-03-15 Tom Tromey <tom@tromey.com>
12039
12040 * objfiles.h (struct objfile_per_bfd_storage)
12041 <demangled_hash_languages>: Now a bitset.
12042 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12043 (lookup_minimal_symbol): Update.
12044
3db066bc
TT
120452019-03-15 Tom Tromey <tom@tromey.com>
12046
12047 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12048 Don't return the symbol.
12049 * coffread.c (record_minimal_symbol): Use record_full.
12050
3fff2c37
EZ
120512019-03-14 Eli Zaretskii <eliz@gnu.org>
12052
12053 The MS-Windows port of ncurses fails to switch to a color pair if
12054 one or both of the colors are the implicit default colors. This
12055 change records the default colors when TUI is initialized, and
12056 then specifies them explicitly when a color pair uses the default
12057 colors. This allows color styling in TUI mode on MS-Windows.
12058
12059 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12060 ncurses_norm_attr.
12061 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12062 colors in ncurses_norm_attr.
12063 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12064 "none", replace it with the default color recorded in
12065 ncurses_norm_attr.
12066
3b336828
TT
120672019-03-14 Tom Tromey <tromey@adacore.com>
12068
12069 * source-cache.h (class source_cache) <get_source_lines>: Return
12070 std::string.
12071 * source-cache.c (source_cache::extract_lines): Handle case where
12072 first_pos==npos. Return std::string.
12073 (source_cache::get_source_lines): Update.
12074
d085f989
TT
120752019-03-14 Tom Tromey <tromey@adacore.com>
12076
12077 * NEWS: Add item for "style sources" commands.
12078 * source-cache.c (source_cache::get_source_lines): Check
12079 source_styling.
12080 * cli/cli-style.c (source_styling): New global.
12081 (_initialize_cli_style): Add "style sources" commands.
12082 (show_style_sources): New function.
12083 * cli/cli-style.h (source_styling): Declare.
12084
6f11e682
TT
120852019-03-14 Pedro Alves <palves@redhat.com>
12086 Tom Tromey <tromey@adacore.com>
12087
12088 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12089 * tui/tui-winsource.c (tui_refill_source_window): New function,
12090 from...
12091 (tui_horizontal_source_scroll): ... here. Move some logic.
12092 * cli/cli-style.c (set_style_enabled): Notify new observable.
12093 * tui/tui-hooks.c (tui_redisplay_source): New function.
12094 (tui_attach_detach_observers): Attach or detach
12095 tui_redisplay_source.
12096 * observable.h (source_styling_changed): New observable.
12097 * observable.c: Define source_styling_changed observable.
12098
a068643d
TT
120992019-03-13 Tom Tromey <tromey@adacore.com>
12100
12101 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12102 (i386_gnu_nat_target::store_registers): Update.
12103 * target-debug.h (target_debug_print_std_string): New macro.
12104 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12105 * windows-tdep.c (display_one_tib): Update.
12106 * tui/tui-stack.c (tui_make_status_line): Update.
12107 * top.c (print_inferior_quit_action): Update.
12108 * thread.c (thr_try_catch_cmd): Update.
12109 (add_thread_with_info): Update.
12110 (thread_target_id_str): Update.
12111 (thr_try_catch_cmd): Update.
12112 (thread_command): Update.
12113 (thread_find_command): Update.
12114 * record-btrace.c (record_btrace_target::info_record)
12115 (record_btrace_resume_thread, record_btrace_target::resume)
12116 (record_btrace_cancel_resume, record_btrace_step_thread)
12117 (record_btrace_target::wait, record_btrace_target::wait)
12118 (record_btrace_target::wait, record_btrace_target::stop): Update.
12119 * progspace.c (print_program_space): Update.
12120 * process-stratum-target.c
12121 (process_stratum_target::thread_address_space): Update.
12122 * linux-fork.c (linux_fork_mourn_inferior)
12123 (detach_checkpoint_command, info_checkpoints_command)
12124 (linux_fork_context): Update.
12125 (linux_fork_detach): Update.
12126 (class scoped_switch_fork_info): Update.
12127 (delete_checkpoint_command): Update.
12128 * infrun.c (follow_fork_inferior): Update.
12129 (follow_fork_inferior): Update.
12130 (proceed_after_vfork_done): Update.
12131 (handle_vfork_child_exec_or_exit): Update.
12132 (follow_exec): Update.
12133 (displaced_step_prepare_throw): Update.
12134 (displaced_step_restore): Update.
12135 (start_step_over): Update.
12136 (resume_1): Update.
12137 (clear_proceed_status_thread): Update.
12138 (proceed): Update.
12139 (print_target_wait_results): Update.
12140 (do_target_wait): Update.
12141 (context_switch): Update.
12142 (stop_all_threads): Update.
12143 (restart_threads): Update.
12144 (finish_step_over): Update.
12145 (handle_signal_stop): Update.
12146 (switch_back_to_stepped_thread): Update.
12147 (keep_going_pass_signal): Update.
12148 (print_exited_reason): Update.
12149 (normal_stop): Update.
12150 * inferior.c (inferior_pid_to_str): Change return type.
12151 (print_selected_inferior): Update.
12152 (add_inferior): Update.
12153 (detach_inferior): Update.
12154 * dummy-frame.c (fprint_dummy_frames): Update.
12155 * dcache.c (dcache_info_1): Update.
12156 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12157 (btrace_fetch, btrace_clear): Update.
12158 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12159 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12160 type.
12161 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12162 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12163 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12164 * gdbarch.c, gdbarch.h: Rebuild.
12165 * gdbarch.sh (core_pid_to_str): Change return type.
12166 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12167 return type.
12168 (windows_nat_target::pid_to_str): Change return type.
12169 (windows_delete_thread): Update.
12170 (windows_nat_target::attach): Update.
12171 (windows_nat_target::files_info): Update.
12172 * target-delegates.c: Rebuild.
12173 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12174 return type.
12175 (sol_thread_target::pid_to_str): Change return type.
12176 * remote.c (class remote_target) <pid_to_str>: Change return
12177 type.
12178 (remote_target::pid_to_str): Change return type.
12179 (extended_remote_target::attach, remote_target::remote_stop_ns)
12180 (remote_target::remote_notif_remove_queued_reply)
12181 (remote_target::push_stop_reply, remote_target::disable_btrace):
12182 Update.
12183 (extended_remote_target::attach): Update.
12184 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12185 type.
12186 (gdbsim_target::pid_to_str): Change return type.
12187 * ravenscar-thread.c (struct ravenscar_thread_target)
12188 <pid_to_str>: Change return type.
12189 (ravenscar_thread_target::pid_to_str): Change return type.
12190 * procfs.c (class procfs_target) <pid_to_str>: Change return
12191 type.
12192 (procfs_target::pid_to_str): Change return type.
12193 (procfs_target::attach): Update.
12194 (procfs_target::detach): Update.
12195 (procfs_target::fetch_registers): Update.
12196 (procfs_target::store_registers): Update.
12197 (procfs_target::wait): Update.
12198 (procfs_target::files_info): Update.
12199 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12200 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12201 return type.
12202 (nto_procfs_target::pid_to_str): Change return type.
12203 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12204 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12205 return type.
12206 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12207 (exit_lwp): Update.
12208 (attach_proc_task_lwp_callback, get_detach_signal)
12209 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12210 (linux_nat_target::resume, wait_lwp, stop_callback)
12211 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12212 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12213 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12214 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12215 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12216 type.
12217 (inf_ptrace_target::attach): Update.
12218 (inf_ptrace_target::files_info): Update.
12219 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12220 type.
12221 (go32_nat_target::pid_to_str): Change return type.
12222 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12223 (gnu_nat_target::wait): Update.
12224 (gnu_nat_target::wait): Update.
12225 (gnu_nat_target::resume): Update.
12226 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12227 (fbsd_nat_target::wait): Update.
12228 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12229 type.
12230 (darwin_nat_target::attach): Update.
12231 * corelow.c (class core_target) <pid_to_str>: Change return type.
12232 (core_target::pid_to_str): Change return type.
12233 * target.c (normal_pid_to_str): Change return type.
12234 (default_pid_to_str): Likewise.
12235 (target_pid_to_str): Change return type.
12236 (target_translate_tls_address): Update.
12237 (target_announce_detach): Update.
12238 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12239 return type.
12240 (bsd_uthread_target::pid_to_str): Change return type.
12241 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12242 type.
12243 (bsd_kvm_target::pid_to_str): Change return type.
12244 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12245 return type.
12246 (aix_thread_target::pid_to_str): Change return type.
12247 * target.h (struct target_ops) <pid_to_str>: Change return type.
12248 (target_pid_to_str, normal_pid_to_str): Likewise.
12249 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12250 type.
12251 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12252 type.
12253 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12254 return type.
12255 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12256 type.
12257 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12258 type.
12259 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12260 return type.
12261
b4be1b06
SM
122622019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12263
12264 * NEWS: Mention that the new default MI version is 3. Mention
12265 changes to the output of commands and events that deal with
12266 multi-location breakpoints.
12267 * breakpoint.c: Include "mi/mi-out.h".
12268 (print_one_breakpoint): Change output syntax if using MI version
12269 >= 3.
12270 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12271 New.
12272 (mi_multi_location_breakpoint_output_fixed): New.
12273 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12274 (mi_cmd_fix_multi_location_breakpoint_output): New.
12275 (mi_multi_location_breakpoint_output_fixed): New.
12276 * mi/mi-cmds.c (mi_cmds): Register command
12277 -fix-multi-location-breakpoint-output.
12278 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12279 interpreter "mi".
12280
8e5e5494
SM
122812019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12282
12283 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12284 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12285 instantiate mi_ui_out based on interpreter name.
12286 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12287 * mi/mi-main.c (mi_load_progress): Likewise.
12288
197df35e
JB
122892019-03-12 John Baldwin <jhb@FreeBSD.org>
12290
12291 * NEWS: Combine separate "New targets" sections for 8.3.
12292
8399425f
JB
122932019-03-12 John Baldwin <jhb@FreeBSD.org>
12294
12295 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12296 (ppcfbsd_init_abi): Install gdbarch
12297 "fetch_tls_load_module_address" and "get_thread_local_address"
12298 methods.
12299
b0f87ed0
JB
123002019-03-12 John Baldwin <jhb@FreeBSD.org>
12301
12302 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12303 (riscv_fbsd_init_abi): Install gdbarch
12304 "fetch_tls_load_module_address" and "get_thread_local_address"
12305 methods.
12306
ce25aa57
JB
123072019-03-12 John Baldwin <jhb@FreeBSD.org>
12308
12309 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12310 (i386fbsd_init_abi): Install gdbarch
12311 "fetch_tls_load_module_address" and "get_thread_local_address"
12312 methods.
12313
f5424cfa
JB
123142019-03-12 John Baldwin <jhb@FreeBSD.org>
12315
12316 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12317 (amd64fbsd_init_abi): Install gdbarch
12318 "fetch_tls_load_module_address" and "get_thread_local_address"
12319 methods.
12320
945f3901
JB
123212019-03-12 John Baldwin <jhb@FreeBSD.org>
12322
12323 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12324 (struct fbsd_pspace_data): New type.
12325 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12326 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12327 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12328 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12329 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12330
ef0bd204
JB
123312019-03-12 John Baldwin <jhb@FreeBSD.org>
12332
12333 * gdbtypes.c (lookup_struct_elt): New function.
12334 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12335 * gdbtypes.h (struct struct_elt): New type.
12336 (lookup_struct_elt): New prototype.
12337
36c53a02
JB
123382019-03-12 John Baldwin <jhb@FreeBSD.org>
12339
12340 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12341 remove disabled code block.
12342
6e056c81
JB
123432019-03-12 John Baldwin <jhb@FreeBSD.org>
12344
12345 * gdbarch.sh (get_thread_local_address): New method.
12346 * gdbarch.h, gdbarch.c: Regenerate.
12347 * target.c (target_translate_tls_address): Use
12348 gdbarch_get_thread_local_address if present instead of
12349 target::get_thread_local_address.
12350
cd250a18
JB
123512019-03-12 John Baldwin <jhb@FreeBSD.org>
12352
12353 * target.h (target::get_thread_local_address): Update comment.
12354
df22c1e5
JB
123552019-03-12 John Baldwin <jhb@FreeBSD.org>
12356
12357 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12358 objfile->separate_debug_objfile_backlink if not NULL.
12359
dd6876c9
JB
123602019-03-12 John Baldwin <jhb@FreeBSD.org>
12361
12362 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12363 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12364 (amd64bsd_store_inferior_registers): Likewise.
12365 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12366 Enable segment base registers.
12367 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12368 PT_GETFSBASE and PT_GETGSBASE.
12369 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12370 PT_SETGSBASE.
12371 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12372 segment base registers.
12373 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12374
1163a4b7
JB
123752019-03-12 John Baldwin <jhb@FreeBSD.org>
12376
12377 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12378 Update calls to i386_target_description to add 'segments'
12379 parameter.
12380 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12381 add segment base registers.
12382 * arch/i386.c (i386_create_target_description): Add 'segments'
12383 parameter to enable segment base registers.
12384 * arch/i386.h (i386_create_target_description): Likewise.
12385 * features/i386/32bit-segments.xml: New file.
12386 * features/i386/32bit-segments.c: Generate.
12387 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12388 call to i386_target_description to add 'segments' parameter.
12389 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12390 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12391 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12392 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12393 if feature is present.
12394 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12395 Add 'segments' parameter to call to i386_target_description.
12396 (i386_target_description): Add 'segments' parameter to enable
12397 segment base registers.
12398 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12399 to call to i386_target_description.
12400 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12401 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12402 Define I386_NUM_REGS.
12403 (i386_target_description): Add 'segments' parameter to enable
12404 segment base registers.
12405
3a350822
EZ
124062019-03-12 Eli Zaretskii <eliz@gnu.org>
12407
12408 PR/24325
12409 * source-cache.c: #undef open and close, to avoid unresolved
12410 externals during linking.
12411
ffdd69cf
TT
124122019-03-12 Tom Tromey <tromey@adacore.com>
12413
12414 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12415 const. Add initializers.
12416 (_initialize_remote): Don't initialize ptid globals.
12417
ec148c57
PA
124182019-03-12 Pedro Alves <palves@redhat.com>
12419
12420 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12421
32764270
PA
124222019-03-12 Pedro Alves <palves@redhat.com>
12423
12424 * cp-name-parser.y (main): Remove unused 'len' variable.
12425
17547186
TT
124262019-03-12 Tom Tromey <tromey@adacore.com>
12427
12428 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12429 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12430
d3a70e03
TT
124312019-03-12 Tom Tromey <tromey@adacore.com>
12432
12433 * linux-nat.c (iterate_over_lwps): Update.
12434 (stop_callback): Remove parameter.
12435 (stop_wait_callback, detach_callback, resume_set_callback)
12436 (select_singlestep_lwp_callback, set_ignore_sigint)
12437 (status_callback, resumed_callback, resume_clear_callback)
12438 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12439 data parameter.
12440 (linux_nat_target::detach, linux_nat_target::resume)
12441 (linux_stop_and_wait_all_lwps, select_event_lwp)
12442 (linux_nat_filter_event, linux_nat_wait_1)
12443 (linux_nat_target::kill, linux_nat_target::stop)
12444 (linux_nat_target::stop): Update.
12445 (linux_nat_resume_callback): Change type.
12446 (resume_stopped_resumed_lwps, count_events_callback)
12447 (select_event_lwp_callback): Likewise.
12448 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12449 * arm-linux-nat.c (struct update_registers_data): Remove.
12450 (update_registers_callback): Change type.
12451 (arm_linux_insert_hw_breakpoint1): Update.
12452 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12453 parameter.
12454 (x86_linux_dr_set_addr): Update.
12455 (x86_linux_dr_set_control): Update.
12456 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12457 (iterate_over_lwps): Use gdb::function_view.
12458 * nat/aarch64-linux-hw-point.c (struct
12459 aarch64_dr_update_callback_param): Remove.
12460 (debug_reg_change_callback): Change type.
12461 (aarch64_notify_debug_reg_change): Update.
12462 * s390-linux-nat.c (s390_refresh_per_info): Update.
12463
82cb27ff
TT
124642019-03-11 Tom Tromey <tromey@adacore.com>
12465
12466 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12467 redundant assignment to "this_cu".
12468
568c0683
SM
124692019-03-08 Simon Marchi <simon.marchi@efficios.com>
12470
12471 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12472
f09ce22d
SM
124732019-03-08 Simon Marchi <simon.marchi@efficios.com>
12474
12475 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12476 from...
12477 (rank_one_type): ... this.
12478
595f96a9
SM
124792019-03-08 Simon Marchi <simon.marchi@efficios.com>
12480
12481 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12482 from...
12483 (rank_one_type): ... this.
12484
2598a94b
SM
124852019-03-08 Simon Marchi <simon.marchi@efficios.com>
12486
12487 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12488 from...
12489 (rank_one_type): ... this.
12490
7f17b20d
SM
124912019-03-08 Simon Marchi <simon.marchi@efficios.com>
12492
12493 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12494 from...
12495 (rank_one_type): ... this.
12496
2c509035
SM
124972019-03-08 Simon Marchi <simon.marchi@efficios.com>
12498
12499 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12500 from...
12501 (rank_one_type): ... this.
12502
0dd322dc
SM
125032019-03-08 Simon Marchi <simon.marchi@efficios.com>
12504
12505 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12506 from...
12507 (rank_one_type): ... this.
12508
41ea4728
SM
125092019-03-08 Simon Marchi <simon.marchi@efficios.com>
12510
12511 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12512 from...
12513 (rank_one_type): ... this.
12514
793cd1d2
SM
125152019-03-08 Simon Marchi <simon.marchi@efficios.com>
12516
12517 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12518 from...
12519 (rank_one_type): ... this.
12520
34910087
SM
125212019-03-08 Simon Marchi <simon.marchi@efficios.com>
12522
12523 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12524 from...
12525 (rank_one_type): ... this.
12526
f1f832d6
SM
125272019-03-08 Simon Marchi <simon.marchi@efficios.com>
12528
12529 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12530 from...
12531 (rank_one_type): ... this.
12532
b9f4512f
SM
125332019-03-08 Simon Marchi <simon.marchi@efficios.com>
12534
12535 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12536 from...
12537 (rank_one_type): ... this.
12538
9293fc63
SM
125392019-03-08 Simon Marchi <simon.marchi@efficios.com>
12540
12541 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12542 from...
12543 (rank_one_type): ... this.
12544
e3abbe7e
PW
125452019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12546
12547 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12548 inferior-events' shows the example events.
12549
e4adb939
EZ
125502019-03-08 Eli Zaretskii <eliz@gnu.org>
12551
12552 Support styling on native MS-Windows console
12553
12554 PR/24315
12555 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12556 on MS-Windows if $TERM is not defined.
12557
12558 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12559
12560 * posix-hdep.c (gdb_console_fputs):
12561 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12562 functions.
12563 * ui-file.h (gdb_console_fputs): Add prototype.
12564
12565 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12566 back to fputs only if the former returns zero.
12567
25629dfd
TT
125682019-03-07 Tom Tromey <tom@tromey.com>
12569
12570 * symmisc.c (print_symbol_bcache_statistics): Update.
12571 (print_objfile_statistics): Update.
12572 * symfile.c (allocate_symtab): Update.
12573 * stabsread.c: Don't include bcache.h.
12574 * psymtab.h (struct psymbol_bcache): Don't declare.
12575 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12576 (psymbol_bcache_init, psymbol_bcache_free)
12577 (psymbol_bcache_get_bcache): Don't declare.
12578 * psymtab.c (struct psymbol_bcache): Remove.
12579 (psymtab_storage::psymtab_storage): Update.
12580 (psymtab_storage::~psymtab_storage): Update.
12581 (psymbol_bcache_init, psymbol_bcache_free)
12582 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12583 (add_psymbol_to_bcache): Update.
12584 (allocate_psymtab): Update.
12585 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12586 macro_cache>: No longer pointers.
12587 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12588 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12589 * macrotab.c (macro_bcache): Update.
12590 * macroexp.c: Don't include bcache.h.
12591 * gdbtypes.c (check_types_worklist): Update.
12592 (types_deeply_equal): Remove TRY/CATCH. Update.
12593 * elfread.c (elf_symtab_read): Update.
12594 * dwarf2read.c: Don't include bcache.h.
12595 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12596 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12597 (print_bcache_statistics, bcache_memory_used): Don't declare.
12598 (struct bcache): Move from bcache.c. Add constructor, destructor,
12599 methods. Rename all data members.
12600 * bcache.c (struct bcache): Move to bcache.h.
12601 (bcache::expand_hash_table): Rename from expand_hash_table.
12602 (bcache): Remove.
12603 (bcache::insert): Rename from bcache_full.
12604 (bcache::compare): Rename from bcache_compare.
12605 (bcache_xmalloc): Remove.
12606 (bcache::~bcache): Rename from bcache_xfree.
12607 (bcache::print_statistics): Rename from print_bcache_statistics.
12608 (bcache::memory_used): Rename from bcache_memory_used.
12609
fe726667
PA
126102019-03-07 Pedro Alves <palves@redhat.com>
12611
12612 * infrun.c (normal_stop): Also check for
12613 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12614
7584bb30
AB
126152019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12616
12617 * f-lang.c (value_from_host_double): Moved to...
12618 * value.c (value_from_host_double): ...here.
12619 * value.h (value_from_host_double): Declare.
12620 * guile/scm-math.c (vlscm_convert_typed_number): Use
12621 value_from_host_double.
12622 (vlscm_convert_number): Likewise.
12623 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12624 * python/py-value.c (convert_value_from_python): Likewise.
12625
a7b1986e
TT
126262019-03-06 Tom Tromey <tom@tromey.com>
12627
12628 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12629
0ccf4211
TT
126302019-03-06 Tom Tromey <tom@tromey.com>
12631
12632 * utils.h (free_current_contents): Don't declare.
12633 * utils.c (free_current_contents): Remove.
12634
fe7b42e5
TT
126352019-03-06 Tom Tromey <tom@tromey.com>
12636
12637 * top.c (quit_force): Update.
12638 * main.c (captured_command_loop): Update.
12639 * common/new-op.c (operator new): Update.
12640 * common/common-exceptions.c (struct catcher)
12641 <save_cleanup_chain>: Remove member.
12642 (exceptions_state_mc_init): Update.
12643 (exception_try_scope_entry): Return nullptr.
12644 (exception_try_scope_exit, exception_rethrow)
12645 (throw_exception_sjlj, throw_exception_cxx): Update.
12646 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12647 (all_cleanups, do_cleanups, discard_cleanups)
12648 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12649 (restore_cleanups, restore_final_cleanups): Don't declare.
12650 (do_final_cleanups): Remove parameter.
12651 * common/cleanups.c (cleanup_chain, make_cleanup)
12652 (make_cleanup_dtor, all_cleanups, do_cleanups)
12653 (discard_my_cleanups, discard_cleanups)
12654 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12655 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12656 (null_cleanup): Remove.
12657 (do_final_cleanups): Remove parameter.
12658
c6321f19
TT
126592019-03-06 Tom Tromey <tom@tromey.com>
12660
12661 * remote.c (remote_target::remote_parse_stop_reply): Use
12662 unique_xmalloc_ptr.
12663
61b30099
TT
126642019-03-06 Tom Tromey <tom@tromey.com>
12665
12666 * stabsread.c (struct stabs_field_info): Rename from field_info.
12667 <list, fnlist>: Add initializers.
12668 <obstack>: New member.
12669 (read_member_functions, read_struct_fields, read_baseclasses):
12670 Allocate on obstack. Don't use cleanups.
12671 (read_one_struct_field, read_member_functions, read_struct_fields)
12672 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12673 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12674 (read_struct_type): Update.
12675
6cceac94
TT
126762019-03-06 Tom Tromey <tom@tromey.com>
12677
12678 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12679 * common/filestuff.h (make_cleanup_close): Don't declare.
12680 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12681 Remove.
12682
72412762
TT
126832019-03-06 Tom Tromey <tom@tromey.com>
12684
12685 * solib-aix.c: Use make_scope_exit.
12686
2b6ff1c0
TT
126872019-03-06 Tom Tromey <tom@tromey.com>
12688
12689 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12690 Use make_scope_exit.
12691
d01c5877
TT
126922019-03-06 Tom Tromey <tom@tromey.com>
12693
12694 * solib-svr4.c (disable_probes_interface): Remove parameter.
12695 (svr4_handle_solib_event): Use make_scope_exit.
12696
32603266
TT
126972019-03-06 Tom Tromey <tom@tromey.com>
12698
12699 * remote.c (struct stop_reply_deleter): Remove.
12700 (stop_reply_up): Update.
12701 (struct stop_reply): Derive from notif_event. Don't typedef.
12702 <regcache>: Now a std::vector.
12703 (stop_reply_xfree): Remove.
12704 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12705 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12706 (remote_target::discard_pending_stop_replies): Use delete.
12707 (remote_target::remote_parse_stop_reply): Update.
12708 (remote_target::process_stop_reply): Update.
12709 * remote-notif.h (struct notif_event): Add virtual destructor.
12710 Remove "dtr" member.
12711 (struct notif_client) <alloc_event>: Return a unique_ptr.
12712 (notif_event_xfree): Don't declare.
12713 (notif_event_up): New typedef.
12714 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12715 (notif_event_xfree, do_notif_event_xfree): Remove.
12716 (remote_notif_state_xfree): Update.
12717
9799571e
TT
127182019-03-06 Tom Tromey <tom@tromey.com>
12719
12720 * infrun.c (displaced_step_clear_cleanup): Now a
12721 forward_scope_exit type.
12722 (displaced_step_prepare_throw): Update.
12723 (displaced_step_fixup): Update.
12724
09e3c4ca
TT
127252019-03-06 Tom Tromey <tom@tromey.com>
12726
12727 * inferior.h (class inferior): Update comment.
12728 * gdbthread.h (class thread_info): Update comment.
12729
e2a03548
TT
127302019-03-06 Joel Brobecker <brobecker@adacore.com>
12731 Tom Tromey <tom@tromey.com>
12732
12733 * stabsread.h (struct stab_section_list): Remove.
12734 (coffstab_build_psymtabs): Update.
12735 * dbxread.c (symbuf_sections): Now a std::vector.
12736 (sect_idx): New global.
12737 (fill_symbuf): Update.
12738 (coffstab_build_psymtabs): Change type of stabsects parameter.
12739 Update.
12740 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12741 std::vector.
12742 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12743 (coff_locate_sections): Update.
12744 (coff_symfile_read): Remove cleanups. Update.
12745 (init_stringtab): Add storage parameter.
12746 (free_stringtab, free_stringtab_cleanup): Remove.
12747 (init_lineno): Add storage parameter.
12748 (free_linetab, free_linetab_cleanup): Remove.
12749
b7e60d85
PA
127502019-03-06 Pedro Alves <palves@redhat.com>
12751
12752 * linux-fork.c (fork_info::clobber_regs): Delete.
12753 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12754 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12755 comment. Adjust.
12756 (scoped_switch_fork_info::scoped_switch_fork_info)
12757 (checkpoint_command, linux_fork_context): Adjust
12758 fork_save_infrun_state calls.
12759
e52c971f
PA
127602019-03-06 Pedro Alves <palves@redhat.com>
12761
12762 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12763 (inf_has_multiple_threads): Return 'bool' and rewrite using
12764 inferior_info::threads().
12765
06974e6c
PA
127662019-03-06 Pedro Alves <palves@redhat.com>
12767
12768 * linux-fork.c: Include <list>.
12769 (fork_list): Now a std::list instance.
12770 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12771 (forks_exist_p, find_last_fork): Adjust.
12772 (new_fork): Delete.
12773 (one_fork_p): New.
12774 (add_fork): Adjust.
12775 (free_fork): Delete, folded into fork_info::~fork_info().
12776 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12777 Adjust.
12778 (init_fork_list): Delete.
12779 (linux_fork_killall, linux_fork_mourn_inferior)
12780 (linux_fork_detach, info_checkpoints_command): Adjust.
12781 (_initialize_linux_fork): No longer call init_fork_list.
12782
72f31aea
PA
127832019-03-06 Pedro Alves <palves@redhat.com>
12784
12785 * linux-fork.c (new_fork): New, split out of ...
12786 (add_fork): ... this. Return void. Move "first fork" special
12787 case from here, to ...
12788 (checkpoint_command): ... here.
12789 * linux-linux.h (add_fork): Return void.
12790
efbecbc1
AB
127912019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12792
12793 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12794
0841c79a
AB
127952019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12796 Chris January <chris.january@arm.com>
12797 David Lecomber <david.lecomber@arm.com>
12798
12799 * f-exp.y: New token, UNOP_INTRINSIC.
12800 (exp): New pattern using UNOP_INTRINSIC token.
12801 (f77_keywords): Add 'abs' keyword.
12802 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12803 (value_from_host_double): New function.
12804 (evaluate_subexp_f): Support UNOP_ABS.
12805
4a270568
AB
128062019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12807
12808 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12809 types.
12810
067630bd
AB
128112019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12812
12813 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12814 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12815 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12816
3be47f7a
AB
128172019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12818
12819 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12820
4d00f5d8
AB
128212019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12822 Chris January <chris.january@arm.com>
12823
12824 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12825 * f-exp.y: Define 'KIND' token.
12826 (exp): New pattern for KIND expressions.
12827 (ptype): Handle types with a kind extension.
12828 (direct_abs_decl): Extend to spot kind extensions.
12829 (f77_keywords): Add 'kind' to the list.
12830 (push_kind_type): New function.
12831 (convert_to_kind_type): New function.
12832 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12833 * parse.c (operator_length_standard): Likewise.
12834 * parser-defs.h (enum type_pieces): Add tp_kind.
12835 * std-operator.def: Add UNOP_KIND.
12836
e454224f
AB
128372019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12838
12839 * f-exp.y (f_parse): Set yydebug.
12840
9dad4a58
AB
128412019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12842
12843 * f-lang.c (evaluate_subexp_f): New function.
12844 (exp_descriptor_f): New global.
12845 (f_language_defn): Use exp_descriptor_f instead of
12846 exp_descriptor_standard.
12847
c8f91604
AB
128482019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12849
12850 * f-exp.y (struct token): Add comments.
12851 (dot_ops): Remove uppercase versions and the end marker.
12852 (f77_keywords): Likewise.
12853 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12854 entries in the dot_ops array are case insensitive, and use
12855 strncasecmp to compare strings. Also some whitespace cleanup in
12856 this area. Similar for the f77_keywords array, except entries in
12857 this list might be case sensitive.
12858
dd9f2c76
AB
128592019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12860
12861 * f-exp.y (struct f77_boolean_val): Add comments.
12862 (boolean_values): Remove uppercase versions, and end marker.
12863 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12864 and use strncasecmp to achieve case insensitivity. Additionally,
12865 perform whitespace cleanup around this code.
12866
67a3048c
TT
128672019-03-06 Tom Tromey <tromey@adacore.com>
12868
12869 * remote-sim.c (gdbsim_target_open): Use result of
12870 gdb_argv::release.
12871
aa3cfbda
RB
128722019-03-06 Richard Bunt <richard.bunt@arm.com>
12873 Dirk Schubert <dirk.schubert@arm.com>
12874 Chris January <chris.january@arm.com>
12875
12876 * eval.c (evaluate_subexp_standard): Call Fortran argument
12877 wrapping logic.
12878 * f-lang.c (struct value): A value which can be passed into a
12879 Fortran function call.
12880 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12881 where appropriate.
12882 (struct type): Value ready for a Fortran function call.
12883 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12884 is needed.
12885 * f-lang.h (fortran_argument_convert): Declaration.
12886 (fortran_preserve_arg_pointer): Declaration.
12887 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12888
ea38e5df
TT
128892019-03-05 Tom Tromey <tromey@adacore.com>
12890
12891 * python/py-prettyprint.c (print_string_repr): Remove #if.
12892 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
12893
06b5b831
TT
128942019-03-05 Tom Tromey <tromey@adacore.com>
12895
12896 * target.c (the_dummy_target): Move later. Change type to
12897 "dummy_target".
12898 (initialize_targets): Don't initialize the_dummy_target.
12899
edbd9e45
TT
129002019-03-05 Tom Tromey <tromey@adacore.com>
12901
12902 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
12903 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
12904
c119e040
TT
129052019-03-05 Tom Tromey <tromey@adacore.com>
12906
12907 * windows-nat.c (windows_nat_target::attach)
12908 (windows_nat_target::detach): Don't call gdb_flush.
12909 * valprint.c (generic_val_print, val_print, val_print_string):
12910 Don't call gdb_flush.
12911 * utils.c (defaulted_query): Don't call gdb_flush.
12912 * typeprint.c (print_type_scalar): Don't call gdb_flush.
12913 * target.c (target_announce_detach): Don't call gdb_flush.
12914 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
12915 * remote.c (extended_remote_target::attach): Don't call
12916 gdb_flush.
12917 * procfs.c (procfs_target::detach): Don't call gdb_flush.
12918 * printcmd.c (do_examine): Don't call gdb_flush.
12919 (info_display_command): Don't call gdb_flush.
12920 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
12921 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
12922 * memattr.c (info_mem_command): Don't call gdb_flush.
12923 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
12924 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
12925 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
12926 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
12927 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
12928 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
12929 (gnu_nat_target::detach): Don't call gdb_flush.
12930 * f-valprint.c (f_val_print): Don't call gdb_flush.
12931 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
12932 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
12933 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
12934 gdb_flush.
12935 * c-valprint.c (c_val_print): Don't call gdb_flush.
12936 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
12937
895dafa6
TT
129382019-03-05 Tom Tromey <tromey@adacore.com>
12939
12940 * varobj.c (update_dynamic_varobj_children): Update.
12941 (install_default_visualizer): Use reset, not release.
12942 * value.c (set_internalvar): Update.
12943 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
12944 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
12945 ATTRIBUTE_UNUSED_RESULT.
12946
88a774b9
TT
129472019-03-05 Tom Tromey <tromey@adacore.com>
12948
12949 * remote.c (class scoped_remote_fd) <release>: Add
12950 ATTRIBUTE_UNUSED_RESULT.
12951
4e4a8b93
TT
129522019-03-05 Tom Tromey <tromey@adacore.com>
12953
12954 * macroexp.c (struct macro_buffer) <release>: Add
12955 ATTRIBUTE_UNUSED_RESULT.
12956
083eef1f
TT
129572019-03-05 Tom Tromey <tromey@adacore.com>
12958
12959 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
12960 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
12961 ATTRIBUTE_UNUSED_RESULT.
12962
3cabd438
TT
129632019-03-05 Tom Tromey <tromey@adacore.com>
12964
12965 * common/scoped_fd.h (class scoped_fd) <release>: Add
12966 ATTRIBUTE_UNUSED_RESULT.
12967
41e3300a
TT
129682019-03-05 Tom Tromey <tromey@adacore.com>
12969
12970 * parser-defs.h (struct parser_state) <release>: Add
12971 ATTRIBUTE_UNUSED_RESULT.
12972
18cb7c9f
TT
129732019-03-05 Tom Tromey <tromey@adacore.com>
12974
12975 * utils.h (class gdb_argv) <release>: Add
12976 ATTRIBUTE_UNUSED_RESULT.
12977 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12978
41fa577f
EZ
129792019-03-02 Eli Zaretskii <eliz@gnu.org>
12980
a6a4b2c6
EZ
12981 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12982 for-loop range, to avoid compiler warnings.
12983
12984 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12985 avoid compiler warnings about unused variables.
12986
742a7df5
EZ
12987 * NEWS: Mention end of support for native debugging on MS-Windows
12988 before XP.
12989
41fa577f
EZ
12990 PR gdb/24292
12991 * common/netstuff.c:
12992 * gdbserver/gdbreplay.c
12993 * gdbserver/remote-utils.c:
12994 * ser-tcp.c:
12995 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
12996 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
12997 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
12998 'getaddrinfo' and 'freeaddrinfo' were not available before
12999 Windows XP, and mingw.org's MinGW headers by default define
13000 _WIN32_WINNT to 0x500.
13001
827f438f
GB
130022019-03-01 Gary Benson <gbenson@redhat.com>
13003
13004 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13005
92137da0
RO
130062019-02-28 Brian Vandenberg <phantall@gmail.com>
13007 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13008
13009 PR gdb/8527
13010 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13011 set_sigint_trap, clear_sigint_trap.
13012
799efbe8
PW
130132019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13014
13015 * target.c (target_detach): Clear the regcache and the
13016 frame cache.
13017
8ed25214
PA
130182019-02-27 Pedro Alves <palves@redhat.com>
13019
13020 * utils.c (set_screen_size): When we cap the height/width sizes,
13021 tweak the corresponding command variable to show "unlimited":
13022
23031e31
SJ
130232019-02-27 Saagar Jha <saagar@saagarjha.com>
13024 Pedro Alves <palves@redhat.com>
13025
13026 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13027 before calling rl_set_screen_size.
13028
6c28e44a
TT
130292019-02-27 Tom Tromey <tromey@adacore.com>
13030
13031 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13032 define.
13033 * python/py-value.c: Remove Python 2.4 workaround.
13034 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13035 workaround.
13036 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13037 Python 2.4 workaround.
13038 * python/python-internal.h: Remove Python 2.4 comment.
13039 (Py_ssize_t): Don't define.
13040 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13041 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13042 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13043 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13044 * python/python.c (do_start_initialization): Remove Python 2.4
13045 workaround.
13046 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13047 (print_children): Remove Python 2.4 workaround.
13048 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13049 workaround.
13050 (CHARBUFFERPROC_NAME): Remove.
13051 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13052 Python 2.4 workaround.
13053
2c3fc25d 130542019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 13055
2c3fc25d
KB
13056 * NEWS: Note minimum Python version.
13057
6ca62222
KB
130582019-02-27 Kevin Buettner <kevinb@redhat.com>
13059
13060 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13061 code from these functions. Remove corresponding ifdefs. Use
13062 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13063 Remove gotos and target of gotos.
13064 (infpy_search_memory): Likewise.
13065
f4bc7d2c
AB
130662019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13067
13068 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13069 (hppa_gdbarch_init): Don't register deleted functions with
13070 gdbarch.
13071
9734a586
AB
130722019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13073
13074 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13075 (h8300_unwind_sp): Delete.
13076 (h8300_dummy_id): Delete.
13077 (h8300_gdbarch_init): Don't register deleted functions with
13078 gdbarch.
13079
68b867f3
AB
130802019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13081
13082 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13083 (ft32_unwind_pc): Delete.
13084 (ft32_unwind_sp): Delete.
13085 (ft32_gdbarch_init): Don't register deleted functions with
13086 gdbarch.
13087
2fbe7ad0
AB
130882019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13089
13090 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13091 (frv_unwind_pc): Delete.
13092 (frv_unwind_sp): Delete.
13093 (frv_gdbarch_init): Don't register deleted functions with
13094 gdbarch.
13095
76055cbe
AB
130962019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13097
13098 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13099 (riscv_unwind_pc): Delete.
13100 (riscv_unwind_sp): Delete.
13101 (riscv_gdbarch_init): Don't register deleted functions with
13102 gdbarch.
13103
4133e5a1
AB
131042019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13105
13106 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13107 (csky_unwind_pc): Delete.
13108 (csky_unwind_sp): Delete.
13109 (csky_gdbarch_init): Don't register deleted functions with
13110 gdbarch.
13111
8010f576
AB
131122019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13113
13114 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13115 (cris_unwind_pc): Delete.
13116 (cris_unwind_sp): Delete.
13117 (cris_gdbarch_init): Don't register deleted functions with
13118 gdbarch.
13119
b56bf084
AB
131202019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13121
13122 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13123 (bfin_unwind_pc): Delete.
13124 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13125
a19a650f
AB
131262019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13127
13128 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13129 (arm_unwind_pc): Delete.
13130 (arm_unwind_sp): Delete.
13131 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13132
f8278c3c
AB
131332019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13134
13135 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13136 (arc_unwind_pc): Delete.
13137 (arc_unwind_sp): Delete.
13138 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13139
480e46cf
AB
131402019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13141
13142 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13143 (alpha_unwind_pc): Delete.
13144 (alpha_gdbarch_init): Don't register deleted functions with
13145 gdbarch.
13146
7a995095
AB
131472019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13148
13149 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13150 (aarch64_unwind_pc): Delete.
13151 (aarch64_unwind_sp): Delete.
13152 (aarch64_gdbarch_init): Don't register deleted functions with
13153 gdbarch.
13154
bf9a735e
AB
131552019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13156
13157 * gdbtypes.c (type_align): Don't consider static members when
13158 computing structure alignment.
13159
5561fc30
AB
131602019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13161
13162 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13163 return 0 for other types.
13164 * arch-utils.c (default_type_align): Always return 0.
13165 * gdbarch.h: Regenerate.
13166 * gdbarch.sh (type_align): Extend comment.
13167 * gdbtypes.c (type_align): Add additional comments, always call
13168 gdbarch_type_align before applying the default rules.
13169 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13170 generic code will then apply a suitable default.
13171 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13172 types, return 0 for other types.
13173
9335e75a
JB
131742019-02-27 Joel Brobecker <brobecker@adacore.com>
13175
13176 * NEWS: Create a new section for the next release branch.
13177 Rename the section of the current branch, now that it has
13178 been cut.
13179
3d34d8de
JB
131802019-02-27 Joel Brobecker <brobecker@adacore.com>
13181
13182 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13183 * version.in: Bump version to 8.3.50.DATE-git.
13184
143420fb
SM
131852019-02-26 Simon Marchi <simon.marchi@efficios.com>
13186
13187 * aix-thread.c (ptid_cmp): Remove unused variable.
13188 (get_signaled_thread): Likewise.
13189 (store_regs_user_thread): Likewise.
13190 (store_regs_kernel_thread): Likewise.
13191 (fetch_regs_kernel_thread): Remove shadowed variable.
13192
172fb711
AB
131932019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13194
13195 * features/riscv/32bit-cpu.xml: Add register numbers.
13196 * features/riscv/32bit-fpu.c: Regenerate.
13197 * features/riscv/32bit-fpu.xml: Add register numbers.
13198 * features/riscv/64bit-cpu.xml: Add register numbers.
13199 * features/riscv/64bit-fpu.c: Regenerate.
13200 * features/riscv/64bit-fpu.xml: Add register numbers.
13201
26c89782
KB
132022019-02-26 Kevin Buettner <kevinb@redhat.com>
13203
af54ade9 13204 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
13205 * python/py-value.c (convert_buffer_and_type_to_value): New
13206 function.
13207 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13208 Add support for handling an optional second argument. Call
13209 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
13210 * python/python-internal.h (Py_buffer_deleter): New struct.
13211 (Py_buffer_up): New typedef.
13212
0f58c9e8
JB
132132019-02-25 John Baldwin <jhb@FreeBSD.org>
13214
13215 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13216 instead of releasing ownership.
13217
0a0f4c01
JR
132182019-02-25 Jordan Rupprecht <rupprecht@google.com>
13219
13220 * dwarf2read.c (open_and_init_dwp_file): Call
13221 elf_numsections instead of bfd_count_sections to initialize
13222 dwp_file->num_sections.
13223
cd5a152c
TT
132242019-02-25 Tom Tromey <tromey@adacore.com>
13225
13226 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13227
8a6a8513
SDJ
132282019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13229
13230 * gcore.in: Add '--readnever' option when invoking GDB.
13231
04dcda9c
SM
132322019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13233
13234 * MAINTAINERS: Update my email address.
13235
07bc701d
SM
132362019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13237
13238 * build-id.c (build_id_to_debug_bfd_1): New function.
13239 (build_id_to_debug_bfd): Look for separate debug file in
13240 sysroot.
13241
c6f4a5d0
AB
132422019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13243
13244 * gdbarch.sh: Update the copyright year range that is placed into
13245 generated files.
13246
9600246d
KS
132472019-02-22 Keith Seitz <keiths@redhat.com>
13248
13249 PR symtab/23853
13250 * linespec.c (create_sals_line_offset): Search for the default
13251 symtab's filename instead of its fullname.
13252
7557a514
AH
132532019-02-21 Alan Hayward <alan.hayward@arm.com>
13254
13255 * NEWS: Update style defaults.
13256
ee2bcb0c
AH
132572019-02-21 Alan Hayward <alan.hayward@arm.com>
13258
13259 * main.c (captured_main_1): Disable styling in batch mode.
13260
0c95f9ed
TT
132612019-02-20 Tom Tromey <tom@tromey.com>
13262
13263 * symtab.c (symtab_symbol_info): Fix typos.
13264
c763b894
TT
132652019-02-20 Tom Tromey <tromey@adacore.com>
13266
13267 * findcmd.c (_initialize_mem_search): Use upper case for
13268 metasyntactic variables.
13269
0ef8a082
AH
132702019-02-20 Alan Hayward <alan.hayward@arm.com>
13271
13272 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13273 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13274
6caa91b6
SM
132752019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13276
13277 * top.h (source_file_name): Change to std::string.
13278 * top.c (source_file_name): Likewise.
13279 (command_line_input): Adjust.
13280 * cli/cli-script.c (script_from_file): Adjust.
13281
98814c6c
TT
132822019-02-19 Tom Tromey <tromey@adacore.com>
13283
13284 * ravenscar-thread.c
13285 (ravenscar_thread_target::update_thread_list): Don't call
13286 ada_build_task_list.
13287 * ada-lang.h (ada_build_task_list): Don't declare.
13288 * ada-tasks.c (struct ada_tasks_inferior_data)
13289 <task_list_valid_p>: Now bool.
13290 (read_known_tasks, ada_task_list_changed)
13291 (ada_tasks_invalidate_inferior_data): Update.
13292 (read_known_tasks_array): Return bool.
13293 (read_known_tasks_list): Likewise.
13294 (read_known_tasks): Return void.
13295 (ada_build_task_list): Now static.
13296
70cd633e
AB
132972019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13298
13299 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13300 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13301
040b3e95
PW
133022019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13303
13304 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13305 variant for ada_tasks_pspace_data_handle and
13306 ada_tasks_inferior_data_handle.
13307 (ada_tasks_pspace_data_cleanup): New function.
13308 (ada_tasks_inferior_data_cleanup): New function.
13309
9409233b
TT
133102019-02-17 Tom Tromey <tom@tromey.com>
13311
13312 * macrotab.h (macro_source_fullname): Return a std::string.
13313 * macrotab.c (macro_include, check_for_redefinition)
13314 (macro_undef, macro_lookup_definition, foreach_macro)
13315 (foreach_macro_in_scope): Update.
13316 (macro_source_fullname): Return a std::string.
13317 * macrocmd.c (show_pp_source_pos): Update.
13318
6506371f
TT
133192019-02-17 Tom Tromey <tom@tromey.com>
13320
13321 * macrocmd.c (show_pp_source_pos): Style the file names.
13322
0c820d67
TT
133232019-02-17 Tom Tromey <tom@tromey.com>
13324
13325 PR tui/24197:
13326 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13327
a0087920
TT
133282019-02-17 Tom Tromey <tom@tromey.com>
13329
13330 * ada-lang.c (user_select_syms): Use filtered printing.
13331 * utils.c (wrap_style): New global.
13332 (desired_style): Remove.
13333 (emit_style_escape): Add stream parameter.
13334 (set_output_style, reset_terminal_style, prompt_for_continue):
13335 Update.
13336 (flush_wrap_buffer): Only flush gdb_stdout.
13337 (wrap_here): Set wrap_style.
13338 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13339 treat escape sequences as a character. Change when wrap buffer is
13340 flushed.
13341 (fputs_styled): Do not set the output style when the default is
13342 requested.
13343 * ui-style.h (struct ui_file_style) <is_default>: New method.
13344 * source.c (print_source_lines_base): Emit escape sequences in one
13345 piece.
13346
75ba10dc
JB
133472019-02-17 Joel Brobecker <brobecker@adacore.com>
13348
13349 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13350 integers and enumeration types.
13351
a2cd4f14
JB
133522019-02-17 Joel Brobecker <brobecker@adacore.com>
13353
13354 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13355 instead of lookup_symbol_in_language
13356 (do_exact_match): New function.
13357 (ada_get_symbol_name_matcher): Return do_exact_match when
13358 doing a verbatim match.
13359
485b851b
TT
133602019-02-15 Tom Tromey <tromey@adacore.com>
13361
13362 * ravenscar-thread.c (ravenscar_thread_target::resume)
13363 (ravenscar_thread_target::wait): Special case wildcard requests.
13364
0b790b1e
TT
133652019-02-15 Tom Tromey <tromey@adacore.com>
13366
13367 * ravenscar-thread.c (base_ptid): Remove.
13368 (struct ravenscar_thread_target) <close>: New method.
13369 <m_base_ptid>: New member.
13370 <update_inferior_ptid, active_task, task_is_currently_active,
13371 runtime_initialized>: Declare methods.
13372 <ravenscar_thread_target>: Add constructor.
13373 (ravenscar_thread_target::task_is_currently_active)
13374 (ravenscar_thread_target::update_inferior_ptid)
13375 (ravenscar_runtime_initialized): Rename. Now methods.
13376 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13377 (ravenscar_thread_target::update_thread_list): Update.
13378 (ravenscar_thread_target::active_task): Now method.
13379 (ravenscar_thread_target::store_registers)
13380 (ravenscar_thread_target::prepare_to_store)
13381 (ravenscar_thread_target::prepare_to_store)
13382 (ravenscar_thread_target::mourn_inferior): Update.
13383 (ravenscar_inferior_created): Use "new" to create target.
13384 (ravenscar_thread_target::get_ada_task_ptid): Update.
13385 (_initialize_ravenscar): Don't initialize base_ptid.
13386 (ravenscar_ops): Remove global.
13387
dea57a62
TT
133882019-02-15 Tom Tromey <tromey@adacore.com>
13389
13390 * target.h (push_target): Declare new overload.
13391 * target.c (push_target): New overload, taking an rvalue reference.
13392 * remote.c (remote_target::open_1): Use push_target overload.
13393 * corelow.c (core_target_open): Use push_target overload.
13394
989f3c58
TT
133952019-02-15 Tom Tromey <tromey@adacore.com>
13396
13397 * ravenscar-thread.c (is_ravenscar_task)
13398 (ravenscar_task_is_currently_active): Return bool.
13399 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13400 (_initialize_ravenscar): Remove "(void)".
13401 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13402 Return bool.
13403
6cbcc006
TT
134042019-02-15 Tom Tromey <tromey@adacore.com>
13405
13406 * ravenscar-thread.c (ravenscar_runtime_initializer)
13407 (has_ravenscar_runtime, get_running_thread_id)
13408 (ravenscar_thread_target::resume): Fix indentation.
13409
7657f14d
TT
134102019-02-15 Tom Tromey <tromey@adacore.com>
13411
13412 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13413 from ravenscar_arch_ops.
13414 (sparc_ravenscar_ops::fetch_registers)
13415 (sparc_ravenscar_ops::store_registers): Now methods.
13416 (sparc_ravenscar_prepare_to_store): Remove.
13417 (sparc_ravenscar_ops): Redefine.
13418 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13419 methods and destructor. Remove members.
13420 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13421 (ravenscar_thread_target::store_registers)
13422 (ravenscar_thread_target::prepare_to_store): Update.
13423 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13424 Remove.
13425 (struct ppc_ravenscar_powerpc_ops): Derive from
13426 ravenscar_arch_ops.
13427 (ppc_ravenscar_powerpc_ops::fetch_registers)
13428 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13429 (ppc_ravenscar_powerpc_ops): Redefine.
13430 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13431 (ppc_ravenscar_e500_ops::fetch_registers)
13432 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13433 (ppc_ravenscar_e500_ops): Redefine.
13434 * aarch64-ravenscar-thread.c
13435 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13436 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13437 (aarch64_ravenscar_fetch_registers)
13438 (aarch64_ravenscar_store_registers): Now methods.
13439 (aarch64_ravenscar_ops): Redefine.
13440
5b6ea500
TT
134412019-02-15 Tom Tromey <tromey@adacore.com>
13442
13443 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13444 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13445 (ravenscar_thread_target::stopped_by_watchpoint)
13446 (ravenscar_thread_target::stopped_data_address)
13447 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13448
e397fd39
TT
134492019-02-15 Tom Tromey <tromey@adacore.com>
13450
13451 * ravenscar-thread.c: Fix some typos.
13452
cc12f4a8
TT
134532019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13454 Tom Tromey <tromey@adacore.com>
13455
13456 * ada-lang.c (ada_exception_sal): Change addr_string to a
13457 std::string.
13458 (create_ada_exception_catchpoint): Update.
13459
5f486660
TT
134602019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13461 Tom Tromey <tromey@adacore.com>
13462
13463 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13464 (bp_location_ops): Remove.
13465 (base_breakpoint_allocate_location): Update.
13466 (free_bp_location): Update.
13467 * ada-lang.c (class ada_catchpoint_location)
13468 <ada_catchpoint_location>: Remove ops parameter.
13469 (ada_catchpoint_location_dtor): Remove.
13470 (ada_catchpoint_location_ops): Remove.
13471 (allocate_location_exception): Update.
13472 * breakpoint.h (struct bp_location_ops): Remove.
13473 (class bp_location) <bp_location>: Remove bp_location_ops
13474 parameter.
13475 <~bp_location>: Add destructor.
13476 <ops>: Remove.
13477
b671c7fb
TS
134782019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13479 Pedro Alves <palves@redhat.com>
13480
13481 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13482 'PATH_MAX'.
13483
8071c5ce
DM
134842019-02-14 David Michael <fedora.dm0@gmail.com>
13485 Samuel Thibault <samuel.thibault@gnu.org>
13486 Thomas Schwinge <thomas@codesourcery.com>
13487
13488 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13489 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13490
b1041ae0
TS
134912019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13492
924514e1
TS
13493 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13494 (check_empty): Use "const char *".
13495
c29ee8d4
TS
13496 * gnu-nat.c (gnu_nat_target::detach): Instead of
13497 'detach_inferior (pid)' call
13498 'detach_inferior (find_inferior_pid (pid))'.
13499
6c6ef69f
TS
13500 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13501 'nat/fork-inferior.o'.
13502 * gnu-nat.c: #include "nat/fork-inferior.h".
13503
2d0a338c
TS
13504 * gnu-nat.c (gnu_nat_target::detach): Instead of
13505 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13506 * gnu-nat.h: #include "inf-child.h".
13507 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13508 'i386_gnu_nat_target::fetch_registers'.
13509 (gnu_store_registers): Rename/move to
13510 'i386_gnu_nat_target::store_registers'.
13511
cabb5f06
TS
13512 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13513 * gnu-nat.h (mach_thread_info): New function.
13514 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13515
b1041ae0
TS
13516 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13517
2988d01e
KF
135182019-02-14 Frederic Konrad <konrad@adacore.com>
13519
13520 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13521
c559d709
JB
135222019-02-14 Joel Brobecker <brobecker@adacore.com>
13523
13524 * windows-nat.c (windows_add_thread): Add new parameter
13525 "main_thread_p" with default value set to false. Update
13526 function documentation as well as all callers.
13527 (windows_delete_thread): Likewise.
13528 (fake_create_process): Update call to windows_add_thread.
13529 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13530 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13531 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13532 call to windows_delete_thread.
13533
007024cc
SM
135342019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13535
13536 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13537
f62318e9
JB
135382019-02-12 John Baldwin <jhb@FreeBSD.org>
13539
13540 * symfile.c (find_separate_debug_file): Use canonical path of
13541 sysroot with child_path instead of gdb_sysroot if it is valid.
13542
cd4b7848
JB
135432019-02-12 John Baldwin <jhb@FreeBSD.org>
13544
13545 * symfile.c (find_separate_debug_file): Use child_path to
13546 determine if an object file is under a sysroot.
13547
efac4bfe
JB
135482019-02-12 John Baldwin <jhb@FreeBSD.org>
13549
13550 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13551 unittests/child-path-selftests.c.
13552 * common/pathstuff.c (child_path): New function.
13553 * common/pathstuff.h (child_path): New prototype.
13554 * unittests/child-path-selftests.c: New file.
13555
402d2bfe
JB
135562019-02-12 John Baldwin <jhb@FreeBSD.org>
13557
13558 * symfile.c (find_separate_debug_file): Look for separate debug
13559 files in debug directories under the sysroot.
13560
1ed9f74e
PW
135612019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13562
13563 * symtab.h (struct minimal_symbol data_p): New const method.
13564 (struct minimal_symbol text_p): Likewise.
13565 * symtab.c (output_source_filename): Use file name style
13566 to print file name.
13567 (print_symbol_info): Likewise.
13568 (print_msymbol_info): Use address style to print addresses.
13569 Use function name style to print executable text symbols.
13570 (expand_symtab_containing_pc): Use data_p.
13571 (find_pc_sect_compunit_symtab): Likewise.
13572
2636d81d
PW
135732019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13574
13575 * breakpoint.c (describe_other_breakpoints): Use address style
13576 to print addresses.
13577 (say_where): Likewise.
13578
ac8c53cc
PW
135792019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13580
13581 * ada-typeprint.c (print_func_type): Print function name
13582 style to print function name.
13583 * c-typeprint.c (c_print_type_1): Likewise.
13584
ea638c43
AH
135852019-02-11 Alan Hayward <alan.hayward@arm.com>
13586
13587 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13588 for execve.
13589
ab759ca8
PW
135902019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13591
13592 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13593 type_stack.
13594
aff29d1c
JB
135952019-02-10 Joel Brobecker <brobecker@adacore.com>
13596
13597 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13598 TYPE_CODE_REF types.
13599
617126bc
JW
136002019-02-08 Jim Wilson <jimw@sifive.com>
13601
13602 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13603 (riscv_linux_fregset): New.
13604 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13605
46e3ed7f
TT
136062019-02-07 Tom Tromey <tom@tromey.com>
13607
13608 * thread.c (thread_cancel_execution_command): Update.
13609 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13610 methods.
13611 (struct thread_fsm_ops): Remove.
13612 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13613 (thread_fsm_should_stop, thread_fsm_return_value)
13614 (thread_fsm_set_finished, thread_fsm_finished_p)
13615 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13616 Don't declare.
13617 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13618 * infrun.c (clear_proceed_status_thread)
13619 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13620 (print_stop_event): Update.
13621 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13622 Add constructor.
13623 (step_command_fsm_ops): Remove.
13624 (new_step_command_fsm): Remove.
13625 (step_1): Update.
13626 (step_command_fsm::should_stop): Rename from
13627 step_command_fsm_should_stop.
13628 (step_command_fsm::clean_up): Rename from
13629 step_command_fsm_clean_up.
13630 (step_command_fsm::do_async_reply_reason): Rename from
13631 step_command_fsm_async_reply_reason.
13632 (struct until_next_fsm): Inherit from thread_fsm. Add
13633 constructor.
13634 (until_next_fsm_ops): Remove.
13635 (new_until_next_fsm): Remove.
13636 (until_next_fsm::should_stop): Rename from
13637 until_next_fsm_should_stop.
13638 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13639 (until_next_fsm::do_async_reply_reason): Rename from
13640 until_next_fsm_async_reply_reason.
13641 (struct finish_command_fsm): Inherit from thread_fsm. Add
13642 constructor. Change type of breakpoint.
13643 (finish_command_fsm_ops): Remove.
13644 (new_finish_command_fsm): Remove.
13645 (finish_command_fsm::should_stop): Rename from
13646 finish_command_fsm_should_stop.
13647 (finish_command_fsm::clean_up): Rename from
13648 finish_command_fsm_clean_up.
13649 (finish_command_fsm::return_value): Rename from
13650 finish_command_fsm_return_value.
13651 (finish_command_fsm::do_async_reply_reason): Rename from
13652 finish_command_fsm_async_reply_reason.
13653 (finish_command): Update.
13654 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13655 Add constructor.
13656 (call_thread_fsm_ops): Remove.
13657 (call_thread_fsm::call_thread_fsm): Rename from
13658 new_call_thread_fsm.
13659 (call_thread_fsm::should_stop): Rename from
13660 call_thread_fsm_should_stop.
13661 (call_thread_fsm::should_notify_stop): Rename from
13662 call_thread_fsm_should_notify_stop.
13663 (run_inferior_call, call_function_by_hand_dummy): Update.
13664 * cli/cli-interp.c (should_print_stop_to_console): Update.
13665 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13666 Add constructor. Change type of location_breakpoint,
13667 caller_breakpoint.
13668 (until_break_fsm_ops): Remove.
13669 (new_until_break_fsm): Remove.
13670 (until_break_fsm::should_stop): Rename from
13671 until_break_fsm_should_stop.
13672 (until_break_fsm::clean_up): Rename from
13673 until_break_fsm_clean_up.
13674 (until_break_fsm::do_async_reply_reason): Rename from
13675 until_break_fsm_async_reply_reason.
13676 (until_break_command): Update.
13677 * thread-fsm.c: Remove.
13678 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13679
1a5c2598
TT
136802019-02-07 Tom Tromey <tom@tromey.com>
13681
13682 * yy-remap.h: Add include guard.
13683 * xtensa-tdep.h: Add include guard.
13684 * xcoffread.h: Rename include guard.
13685 * varobj-iter.h: Add include guard.
13686 * tui/tui.h: Rename include guard.
13687 * tui/tui-winsource.h: Rename include guard.
13688 * tui/tui-wingeneral.h: Rename include guard.
13689 * tui/tui-windata.h: Rename include guard.
13690 * tui/tui-win.h: Rename include guard.
13691 * tui/tui-stack.h: Rename include guard.
13692 * tui/tui-source.h: Rename include guard.
13693 * tui/tui-regs.h: Rename include guard.
13694 * tui/tui-out.h: Rename include guard.
13695 * tui/tui-layout.h: Rename include guard.
13696 * tui/tui-io.h: Rename include guard.
13697 * tui/tui-hooks.h: Rename include guard.
13698 * tui/tui-file.h: Rename include guard.
13699 * tui/tui-disasm.h: Rename include guard.
13700 * tui/tui-data.h: Rename include guard.
13701 * tui/tui-command.h: Rename include guard.
13702 * tic6x-tdep.h: Add include guard.
13703 * target/waitstatus.h: Rename include guard.
13704 * target/wait.h: Rename include guard.
13705 * target/target.h: Rename include guard.
13706 * target/resume.h: Rename include guard.
13707 * target-float.h: Rename include guard.
13708 * stabsread.h: Add include guard.
13709 * rs6000-tdep.h: Add include guard.
13710 * riscv-fbsd-tdep.h: Add include guard.
13711 * regformats/regdef.h: Rename include guard.
13712 * record.h: Rename include guard.
13713 * python/python.h: Rename include guard.
13714 * python/python-internal.h: Rename include guard.
13715 * python/py-stopevent.h: Rename include guard.
13716 * python/py-ref.h: Rename include guard.
13717 * python/py-record.h: Rename include guard.
13718 * python/py-record-full.h: Rename include guard.
13719 * python/py-record-btrace.h: Rename include guard.
13720 * python/py-instruction.h: Rename include guard.
13721 * python/py-events.h: Rename include guard.
13722 * python/py-event.h: Rename include guard.
13723 * procfs.h: Add include guard.
13724 * proc-utils.h: Add include guard.
13725 * p-lang.h: Add include guard.
13726 * or1k-tdep.h: Rename include guard.
13727 * observable.h: Rename include guard.
13728 * nto-tdep.h: Rename include guard.
13729 * nat/x86-linux.h: Rename include guard.
13730 * nat/x86-linux-dregs.h: Rename include guard.
13731 * nat/x86-gcc-cpuid.h: Add include guard.
13732 * nat/x86-dregs.h: Rename include guard.
13733 * nat/x86-cpuid.h: Rename include guard.
13734 * nat/ppc-linux.h: Rename include guard.
13735 * nat/mips-linux-watch.h: Rename include guard.
13736 * nat/linux-waitpid.h: Rename include guard.
13737 * nat/linux-ptrace.h: Rename include guard.
13738 * nat/linux-procfs.h: Rename include guard.
13739 * nat/linux-osdata.h: Rename include guard.
13740 * nat/linux-nat.h: Rename include guard.
13741 * nat/linux-namespaces.h: Rename include guard.
13742 * nat/linux-btrace.h: Rename include guard.
13743 * nat/glibc_thread_db.h: Rename include guard.
13744 * nat/gdb_thread_db.h: Rename include guard.
13745 * nat/gdb_ptrace.h: Rename include guard.
13746 * nat/fork-inferior.h: Rename include guard.
13747 * nat/amd64-linux-siginfo.h: Rename include guard.
13748 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13749 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13750 * nat/aarch64-linux.h: Rename include guard.
13751 * nat/aarch64-linux-hw-point.h: Rename include guard.
13752 * mn10300-tdep.h: Add include guard.
13753 * mips-linux-tdep.h: Add include guard.
13754 * mi/mi-parse.h: Rename include guard.
13755 * mi/mi-out.h: Rename include guard.
13756 * mi/mi-main.h: Rename include guard.
13757 * mi/mi-interp.h: Rename include guard.
13758 * mi/mi-getopt.h: Rename include guard.
13759 * mi/mi-console.h: Rename include guard.
13760 * mi/mi-common.h: Rename include guard.
13761 * mi/mi-cmds.h: Rename include guard.
13762 * mi/mi-cmd-break.h: Rename include guard.
13763 * m2-lang.h: Add include guard.
13764 * location.h: Rename include guard.
13765 * linux-record.h: Rename include guard.
13766 * linux-nat.h: Add include guard.
13767 * linux-fork.h: Add include guard.
13768 * i386-darwin-tdep.h: Rename include guard.
13769 * hppa-linux-offsets.h: Add include guard.
13770 * guile/guile.h: Rename include guard.
13771 * guile/guile-internal.h: Rename include guard.
13772 * gnu-nat.h: Rename include guard.
13773 * gdb-stabs.h: Rename include guard.
13774 * frv-tdep.h: Add include guard.
13775 * f-lang.h: Add include guard.
13776 * event-loop.h: Add include guard.
13777 * darwin-nat.h: Rename include guard.
13778 * cp-abi.h: Rename include guard.
13779 * config/sparc/nm-sol2.h: Rename include guard.
13780 * config/nm-nto.h: Rename include guard.
13781 * config/nm-linux.h: Add include guard.
13782 * config/i386/nm-i386gnu.h: Rename include guard.
13783 * config/djgpp/nl_types.h: Rename include guard.
13784 * config/djgpp/langinfo.h: Rename include guard.
13785 * compile/gcc-cp-plugin.h: Add include guard.
13786 * compile/gcc-c-plugin.h: Add include guard.
13787 * compile/compile.h: Rename include guard.
13788 * compile/compile-object-run.h: Rename include guard.
13789 * compile/compile-object-load.h: Rename include guard.
13790 * compile/compile-internal.h: Rename include guard.
13791 * compile/compile-cplus.h: Rename include guard.
13792 * compile/compile-c.h: Rename include guard.
13793 * common/xml-utils.h: Rename include guard.
13794 * common/x86-xstate.h: Rename include guard.
13795 * common/version.h: Rename include guard.
13796 * common/vec.h: Rename include guard.
13797 * common/tdesc.h: Rename include guard.
13798 * common/selftest.h: Rename include guard.
13799 * common/scoped_restore.h: Rename include guard.
13800 * common/scoped_mmap.h: Rename include guard.
13801 * common/scoped_fd.h: Rename include guard.
13802 * common/safe-iterator.h: Rename include guard.
13803 * common/run-time-clock.h: Rename include guard.
13804 * common/refcounted-object.h: Rename include guard.
13805 * common/queue.h: Rename include guard.
13806 * common/ptid.h: Rename include guard.
13807 * common/print-utils.h: Rename include guard.
13808 * common/preprocessor.h: Rename include guard.
13809 * common/pathstuff.h: Rename include guard.
13810 * common/observable.h: Rename include guard.
13811 * common/netstuff.h: Rename include guard.
13812 * common/job-control.h: Rename include guard.
13813 * common/host-defs.h: Rename include guard.
13814 * common/gdb_wait.h: Rename include guard.
13815 * common/gdb_vecs.h: Rename include guard.
13816 * common/gdb_unlinker.h: Rename include guard.
13817 * common/gdb_unique_ptr.h: Rename include guard.
13818 * common/gdb_tilde_expand.h: Rename include guard.
13819 * common/gdb_sys_time.h: Rename include guard.
13820 * common/gdb_string_view.h: Rename include guard.
13821 * common/gdb_splay_tree.h: Rename include guard.
13822 * common/gdb_setjmp.h: Rename include guard.
13823 * common/gdb_ref_ptr.h: Rename include guard.
13824 * common/gdb_optional.h: Rename include guard.
13825 * common/gdb_locale.h: Rename include guard.
13826 * common/gdb_assert.h: Rename include guard.
13827 * common/filtered-iterator.h: Rename include guard.
13828 * common/filestuff.h: Rename include guard.
13829 * common/fileio.h: Rename include guard.
13830 * common/environ.h: Rename include guard.
13831 * common/common-utils.h: Rename include guard.
13832 * common/common-types.h: Rename include guard.
13833 * common/common-regcache.h: Rename include guard.
13834 * common/common-inferior.h: Rename include guard.
13835 * common/common-gdbthread.h: Rename include guard.
13836 * common/common-exceptions.h: Rename include guard.
13837 * common/common-defs.h: Rename include guard.
13838 * common/common-debug.h: Rename include guard.
13839 * common/cleanups.h: Rename include guard.
13840 * common/buffer.h: Rename include guard.
13841 * common/btrace-common.h: Rename include guard.
13842 * common/break-common.h: Rename include guard.
13843 * cli/cli-utils.h: Rename include guard.
13844 * cli/cli-style.h: Rename include guard.
13845 * cli/cli-setshow.h: Rename include guard.
13846 * cli/cli-script.h: Rename include guard.
13847 * cli/cli-interp.h: Rename include guard.
13848 * cli/cli-decode.h: Rename include guard.
13849 * cli/cli-cmds.h: Rename include guard.
13850 * charset-list.h: Add include guard.
13851 * buildsym-legacy.h: Rename include guard.
13852 * bfin-tdep.h: Add include guard.
13853 * ax.h: Rename include guard.
13854 * arm-linux-tdep.h: Add include guard.
13855 * arm-fbsd-tdep.h: Add include guard.
13856 * arch/xtensa.h: Rename include guard.
13857 * arch/tic6x.h: Add include guard.
13858 * arch/i386.h: Add include guard.
13859 * arch/arm.h: Rename include guard.
13860 * arch/arm-linux.h: Rename include guard.
13861 * arch/arm-get-next-pcs.h: Rename include guard.
13862 * arch/amd64.h: Add include guard.
13863 * arch/aarch64-insn.h: Rename include guard.
13864 * arch-utils.h: Rename include guard.
13865 * annotate.h: Add include guard.
13866 * amd64-darwin-tdep.h: Rename include guard.
13867 * aarch64-linux-tdep.h: Add include guard.
13868 * aarch64-fbsd-tdep.h: Add include guard.
13869 * aarch32-linux-nat.h: Add include guard.
13870
ab9268d2
PW
138712019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13872
13873 * macrotab.c (macro_define_internal): New function that
13874 factorizes macro_define_object_internal and macro_define_function
13875 code.
13876 (macro_define_object_internal): Use macro_define_internal.
13877 (macro_define_function): Likewise.
13878
bb0da2b4
PW
138792019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13880
13881 * macrocmd.c (extract_identifier): Return
13882 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13883 callers.
13884
424eb552
JB
138852019-02-06 John Baldwin <jhb@FreeBSD.org>
13886
13887 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13888
1688cb29
TT
138892019-02-05 Tom Tromey <tom@tromey.com>
13890
13891 * target.c (target_stack::unpush): Move assertion earlier.
13892
b5eba2d8
TT
138932019-01-30 Tom Tromey <tom@tromey.com>
13894
13895 PR python/23615:
13896 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
13897 (gdbpy_parse_and_eval): Likewise.
13898 * python/python-internal.h (gdbpy_allow_threads): New class.
13899
7054e2ff
JB
139002019-01-28 John Baldwin <jhb@FreeBSD.org>
13901
13902 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
13903 (aarch64_fbsd_fpregmap): Move earlier.
13904 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
13905 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13906 instead of individual calls to trad_frame_set_reg_addr.
13907 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
13908 earlier.
13909 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
13910 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13911 instead of individual calls to trad_frame_set_reg_addr.
13912
36c25ffa
AH
139132019-01-28 Alan Hayward <alan.hayward@arm.com>
13914
13915 * CONTRIBUTE: Replace contribution list with wiki link.
13916
a0707f3c
TT
139172019-01-25 Tom Tromey <tom@tromey.com>
13918
13919 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
13920
0747795c
TT
139212019-01-25 Tom Tromey <tom@tromey.com>
13922
13923 * xtensa-linux-nat.c: Fix common/ includes.
13924 * xml-support.h: Fix common/ includes.
13925 * xml-support.c: Fix common/ includes.
13926 * x86-linux-nat.c: Fix common/ includes.
13927 * windows-nat.c: Fix common/ includes.
13928 * varobj.h: Fix common/ includes.
13929 * varobj.c: Fix common/ includes.
13930 * value.c: Fix common/ includes.
13931 * valops.c: Fix common/ includes.
13932 * utils.c: Fix common/ includes.
13933 * unittests/xml-utils-selftests.c: Fix common/ includes.
13934 * unittests/utils-selftests.c: Fix common/ includes.
13935 * unittests/unpack-selftests.c: Fix common/ includes.
13936 * unittests/tracepoint-selftests.c: Fix common/ includes.
13937 * unittests/style-selftests.c: Fix common/ includes.
13938 * unittests/string_view-selftests.c: Fix common/ includes.
13939 * unittests/scoped_restore-selftests.c: Fix common/ includes.
13940 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
13941 * unittests/scoped_fd-selftests.c: Fix common/ includes.
13942 * unittests/rsp-low-selftests.c: Fix common/ includes.
13943 * unittests/parse-connection-spec-selftests.c: Fix common/
13944 includes.
13945 * unittests/optional-selftests.c: Fix common/ includes.
13946 * unittests/offset-type-selftests.c: Fix common/ includes.
13947 * unittests/observable-selftests.c: Fix common/ includes.
13948 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
13949 * unittests/memrange-selftests.c: Fix common/ includes.
13950 * unittests/memory-map-selftests.c: Fix common/ includes.
13951 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
13952 * unittests/function-view-selftests.c: Fix common/ includes.
13953 * unittests/environ-selftests.c: Fix common/ includes.
13954 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
13955 * unittests/common-utils-selftests.c: Fix common/ includes.
13956 * unittests/cli-utils-selftests.c: Fix common/ includes.
13957 * unittests/array-view-selftests.c: Fix common/ includes.
13958 * ui-file.c: Fix common/ includes.
13959 * tui/tui-io.c: Fix common/ includes.
13960 * tracepoint.h: Fix common/ includes.
13961 * tracepoint.c: Fix common/ includes.
13962 * tracefile-tfile.c: Fix common/ includes.
13963 * top.h: Fix common/ includes.
13964 * top.c: Fix common/ includes.
13965 * thread.c: Fix common/ includes.
13966 * target/waitstatus.h: Fix common/ includes.
13967 * target/waitstatus.c: Fix common/ includes.
13968 * target.h: Fix common/ includes.
13969 * target.c: Fix common/ includes.
13970 * target-memory.c: Fix common/ includes.
13971 * target-descriptions.c: Fix common/ includes.
13972 * symtab.h: Fix common/ includes.
13973 * symfile.c: Fix common/ includes.
13974 * stap-probe.c: Fix common/ includes.
13975 * spu-linux-nat.c: Fix common/ includes.
13976 * sparc-nat.c: Fix common/ includes.
13977 * source.c: Fix common/ includes.
13978 * solib.c: Fix common/ includes.
13979 * solib-target.c: Fix common/ includes.
13980 * ser-unix.c: Fix common/ includes.
13981 * ser-tcp.c: Fix common/ includes.
13982 * ser-pipe.c: Fix common/ includes.
13983 * ser-base.c: Fix common/ includes.
13984 * selftest-arch.c: Fix common/ includes.
13985 * s12z-tdep.c: Fix common/ includes.
13986 * rust-exp.y: Fix common/ includes.
13987 * rs6000-aix-tdep.c: Fix common/ includes.
13988 * riscv-tdep.c: Fix common/ includes.
13989 * remote.c: Fix common/ includes.
13990 * remote-notif.h: Fix common/ includes.
13991 * remote-fileio.h: Fix common/ includes.
13992 * remote-fileio.c: Fix common/ includes.
13993 * regcache.h: Fix common/ includes.
13994 * regcache.c: Fix common/ includes.
13995 * record-btrace.c: Fix common/ includes.
13996 * python/python.c: Fix common/ includes.
13997 * python/py-type.c: Fix common/ includes.
13998 * python/py-inferior.c: Fix common/ includes.
13999 * progspace.h: Fix common/ includes.
14000 * producer.c: Fix common/ includes.
14001 * procfs.c: Fix common/ includes.
14002 * proc-api.c: Fix common/ includes.
14003 * printcmd.c: Fix common/ includes.
14004 * ppc-linux-nat.c: Fix common/ includes.
14005 * parser-defs.h: Fix common/ includes.
14006 * osdata.c: Fix common/ includes.
14007 * obsd-nat.c: Fix common/ includes.
14008 * nat/x86-linux.c: Fix common/ includes.
14009 * nat/x86-linux-dregs.c: Fix common/ includes.
14010 * nat/x86-dregs.h: Fix common/ includes.
14011 * nat/x86-dregs.c: Fix common/ includes.
14012 * nat/ppc-linux.c: Fix common/ includes.
14013 * nat/mips-linux-watch.h: Fix common/ includes.
14014 * nat/mips-linux-watch.c: Fix common/ includes.
14015 * nat/linux-waitpid.c: Fix common/ includes.
14016 * nat/linux-ptrace.h: Fix common/ includes.
14017 * nat/linux-ptrace.c: Fix common/ includes.
14018 * nat/linux-procfs.c: Fix common/ includes.
14019 * nat/linux-personality.c: Fix common/ includes.
14020 * nat/linux-osdata.c: Fix common/ includes.
14021 * nat/linux-namespaces.c: Fix common/ includes.
14022 * nat/linux-btrace.h: Fix common/ includes.
14023 * nat/linux-btrace.c: Fix common/ includes.
14024 * nat/fork-inferior.c: Fix common/ includes.
14025 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14026 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14027 * nat/aarch64-linux.c: Fix common/ includes.
14028 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14029 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14030 * namespace.h: Fix common/ includes.
14031 * mips-linux-tdep.c: Fix common/ includes.
14032 * minsyms.c: Fix common/ includes.
14033 * mi/mi-parse.h: Fix common/ includes.
14034 * mi/mi-main.c: Fix common/ includes.
14035 * mi/mi-cmd-env.c: Fix common/ includes.
14036 * memrange.h: Fix common/ includes.
14037 * memattr.c: Fix common/ includes.
14038 * maint.h: Fix common/ includes.
14039 * maint.c: Fix common/ includes.
14040 * main.c: Fix common/ includes.
14041 * machoread.c: Fix common/ includes.
14042 * location.c: Fix common/ includes.
14043 * linux-thread-db.c: Fix common/ includes.
14044 * linux-nat.c: Fix common/ includes.
14045 * linux-fork.c: Fix common/ includes.
14046 * inline-frame.c: Fix common/ includes.
14047 * infrun.c: Fix common/ includes.
14048 * inflow.c: Fix common/ includes.
14049 * inferior.h: Fix common/ includes.
14050 * inferior.c: Fix common/ includes.
14051 * infcmd.c: Fix common/ includes.
14052 * inf-ptrace.c: Fix common/ includes.
14053 * inf-child.c: Fix common/ includes.
14054 * ia64-linux-nat.c: Fix common/ includes.
14055 * i387-tdep.c: Fix common/ includes.
14056 * i386-tdep.c: Fix common/ includes.
14057 * i386-linux-tdep.c: Fix common/ includes.
14058 * i386-linux-nat.c: Fix common/ includes.
14059 * i386-go32-tdep.c: Fix common/ includes.
14060 * i386-fbsd-tdep.c: Fix common/ includes.
14061 * i386-fbsd-nat.c: Fix common/ includes.
14062 * guile/scm-type.c: Fix common/ includes.
14063 * guile/guile.c: Fix common/ includes.
14064 * go32-nat.c: Fix common/ includes.
14065 * gnu-nat.c: Fix common/ includes.
14066 * gdbthread.h: Fix common/ includes.
14067 * gdbarch-selftests.c: Fix common/ includes.
14068 * gdb_usleep.c: Fix common/ includes.
14069 * gdb_select.h: Fix common/ includes.
14070 * gdb_bfd.c: Fix common/ includes.
14071 * gcore.c: Fix common/ includes.
14072 * fork-child.c: Fix common/ includes.
14073 * findvar.c: Fix common/ includes.
14074 * fbsd-nat.c: Fix common/ includes.
14075 * event-top.c: Fix common/ includes.
14076 * event-loop.c: Fix common/ includes.
14077 * dwarf2read.c: Fix common/ includes.
14078 * dwarf2loc.c: Fix common/ includes.
14079 * dwarf2-frame.c: Fix common/ includes.
14080 * dwarf-index-cache.c: Fix common/ includes.
14081 * dtrace-probe.c: Fix common/ includes.
14082 * disasm-selftests.c: Fix common/ includes.
14083 * defs.h: Fix common/ includes.
14084 * csky-tdep.c: Fix common/ includes.
14085 * cp-valprint.c: Fix common/ includes.
14086 * cp-support.h: Fix common/ includes.
14087 * cp-support.c: Fix common/ includes.
14088 * corelow.c: Fix common/ includes.
14089 * completer.h: Fix common/ includes.
14090 * completer.c: Fix common/ includes.
14091 * compile/compile.c: Fix common/ includes.
14092 * compile/compile-loc2c.c: Fix common/ includes.
14093 * compile/compile-cplus-types.c: Fix common/ includes.
14094 * compile/compile-cplus-symbols.c: Fix common/ includes.
14095 * command.h: Fix common/ includes.
14096 * cli/cli-dump.c: Fix common/ includes.
14097 * cli/cli-cmds.c: Fix common/ includes.
14098 * charset.c: Fix common/ includes.
14099 * build-id.c: Fix common/ includes.
14100 * btrace.h: Fix common/ includes.
14101 * btrace.c: Fix common/ includes.
14102 * breakpoint.h: Fix common/ includes.
14103 * breakpoint.c: Fix common/ includes.
14104 * ax.h:
14105 (enum agent_op): Fix common/ includes.
14106 * ax-general.c (struct aop_map): Fix common/ includes.
14107 * ax-gdb.c: Fix common/ includes.
14108 * auxv.c: Fix common/ includes.
14109 * auto-load.c: Fix common/ includes.
14110 * arm-tdep.c: Fix common/ includes.
14111 * arch/riscv.c: Fix common/ includes.
14112 * arch/ppc-linux-common.c: Fix common/ includes.
14113 * arch/i386.c: Fix common/ includes.
14114 * arch/arm.c: Fix common/ includes.
14115 * arch/arm-linux.c: Fix common/ includes.
14116 * arch/arm-get-next-pcs.c: Fix common/ includes.
14117 * arch/amd64.c: Fix common/ includes.
14118 * arch/aarch64.c: Fix common/ includes.
14119 * arch/aarch64-insn.c: Fix common/ includes.
14120 * arch-utils.c: Fix common/ includes.
14121 * amd64-windows-tdep.c: Fix common/ includes.
14122 * amd64-tdep.c: Fix common/ includes.
14123 * amd64-sol2-tdep.c: Fix common/ includes.
14124 * amd64-obsd-tdep.c: Fix common/ includes.
14125 * amd64-nbsd-tdep.c: Fix common/ includes.
14126 * amd64-linux-tdep.c: Fix common/ includes.
14127 * amd64-linux-nat.c: Fix common/ includes.
14128 * amd64-fbsd-tdep.c: Fix common/ includes.
14129 * amd64-fbsd-nat.c: Fix common/ includes.
14130 * amd64-dicos-tdep.c: Fix common/ includes.
14131 * amd64-darwin-tdep.c: Fix common/ includes.
14132 * agent.c: Fix common/ includes.
14133 * ada-lang.h: Fix common/ includes.
14134 * ada-lang.c: Fix common/ includes.
14135 * aarch64-tdep.c: Fix common/ includes.
14136
2f5c153e
TT
141372019-01-25 Tom Tromey <tom@tromey.com>
14138
14139 * common/create-version.sh: Use common/version.h.
14140
adc6a863
PA
141412019-01-24 Pedro Alves <palves@redhat.com>
14142
14143 * infrun.c (signal_stop, signal_print, signal_program)
14144 (signal_catch, signal_pass): Now arrays instead of pointers.
14145 (update_signals_program_target, do_target_resume)
14146 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14147 * linux-nat.c (linux_nat_target::pass_signals)
14148 (linux_nat_target::create_inferior, linux_nat_target::attach):
14149 Adjust.
14150 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14151 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14152 * procfs.c (procfs_target::pass_signals): Adjust.
14153 * record-full.c (record_full_target::resume): Adjust.
14154 * remote.c (remote_target::pass_signals)
14155 (remote_target::program_signals): Adjust.
14156 * target-debug.h (target_debug_print_signals): Now takes a
14157 gdb::array_view as parameter. Adjust.
14158 * target.h (target_ops) <pass_signals, program_signals>: Replace
14159 pointer and length parameters with gdb::array_view.
14160 (target_pass_signals, target_program_signals): Likewise.
14161 * target-delegates.c: Regenerate.
14162
3046d67a
PA
141632019-01-24 Pedro Alves <palves@redhat.com>
14164
14165 * common/forward-scope-exit.h
14166 (forward_scope_exit::forward_scope_exit): Pass arguments to
14167 m_bind_function directly, instead of creating a std::bind and
14168 copying that.
14169
353229bf
AH
141702019-01-24 Alan Hayward <alan.hayward@arm.com>
14171
14172 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14173 for static members.
14174 (pass_in_v_vfp_candidate): Likewise.
14175
311dc83a
TT
141762019-01-23 Tom Tromey <tom@tromey.com>
14177 Pedro Alves <palves@redhat.com>
14178
14179 * regcache.c (class regcache_invalidator): Remove.
14180 (regcache::raw_write): Use make_scope_exit.
14181
296bd123
TT
141822019-01-23 Tom Tromey <tom@tromey.com>
14183
14184 * ui-out.h (class ui_out_emit_type): Update comment.
14185
979a0d13
TT
141862019-01-23 Tom Tromey <tom@tromey.com>
14187
14188 * infrun.c (fetch_inferior_event): Update comment.
14189
d238133d
TT
141902019-01-23 Tom Tromey <tom@tromey.com>
14191 Pedro Alves <palves@redhat.com>
14192
14193 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14194 parameter.
14195 (fetch_inferior_event): Use SCOPE_EXIT.
14196
14197
9885e6bb
TT
141982019-01-23 Tom Tromey <tom@tromey.com>
14199 Pedro Alves <palves@redhat.com>
14200
14201 * infrun.c (disable_thread_events): Delete.
14202 (stop_all_threads): Use SCOPE_EXIT.
14203
286526c1
TT
142042019-01-23 Tom Tromey <tom@tromey.com>
14205 Pedro Alves <palves@redhat.com>
14206
14207 * symfile.c: Include forward-scope-exit.h.
14208 (clear_symtab_users_cleanup): Replace forward declaration with
14209 a FORWARD_SCOPE_EXIT.
14210 (syms_from_objfile_1): Use the forward_scope_exit and
14211 gdb::optional instead of cleanup_function.
14212 (reread_symbols): Use the forward_scope_exit instead of
14213 cleanup_function.
14214 (clear_symtab_users_cleanup): Remove function.
14215
1db93f14
TT
142162019-01-23 Tom Tromey <tom@tromey.com>
14217 Pedro Alves <palves@redhat.com>
14218
14219 * linux-nat.c: Include scope-exit.h.
14220 (cleanup_target_stop): Remove.
14221 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14222 SCOPE_EXIT.
14223
2cc83d1e
TT
142242019-01-23 Tom Tromey <tom@tromey.com>
14225 Pedro Alves <palves@redhat.com>
14226
14227 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14228 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14229
694c6bf5
TT
142302019-01-23 Tom Tromey <tom@tromey.com>
14231 Andrew Burgess <andrew.burgess@embecosm.com>
14232 Pedro Alves <palves@redhat.com>
14233
14234 * infrun.c (fetch_inferior_event): Use scope_exit.
14235 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14236 * top.c (execute_command): Use scope_exit.
14237 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14238 * utils.c (do_bpstat_clear_actions_cleanup)
14239 (make_bpstat_clear_actions_cleanup): Remove.
14240
4c41382a
TT
142412019-01-23 Tom Tromey <tom@tromey.com>
14242 Pedro Alves <palves@redhat.com>
14243
14244 * infrun.c: Include "common/scope-exit.h"
14245 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14246 (wait_for_inferior): Use SCOPE_EXIT.
14247 (fetch_inferior_event): Use scope_exit.
14248
89f8fb50
TT
142492019-01-23 Tom Tromey <tom@tromey.com>
14250 Pedro Alves <palves@redhat.com>
14251
14252 * breakpoint.c (create_breakpoint): Remove cleanup.
14253
5419bdae
TT
142542019-01-23 Tom Tromey <tom@tromey.com>
14255 Andrew Burgess <andrew.burgess@embecosm.com>
14256 Pedro Alves <palves@redhat.com>
14257
e587ef42
PA
142582019-01-23 Pedro Alves <palves@redhat.com>
14259
14260 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14261
77f0e74c
PA
142622019-01-23 Pedro Alves <palves@redhat.com>
14263 Andrew Burgess <andrew.burgess@embecosm.com>
14264
14265 * gdbthread.h: Include "common/forward-scope-exit.h".
14266 (scoped_finish_thread_state): Redefine custom class in terms of
14267 forward_scope_exit.
14268
5b9b3e53
PA
142692019-01-23 Pedro Alves <palves@redhat.com>
14270 Andrew Burgess <andrew.burgess@embecosm.com>
14271
14272 * common/forward-scope-exit.h: New file.
14273
54b65c9b
PA
142742019-01-23 Pedro Alves <palves@redhat.com>
14275 Andrew Burgess <andrew.burgess@embecosm.com>
14276 Tom Tromey <tom@tromey.com>
14277
14278 * common/scope-exit.h: New file.
14279
cf08fb29
PA
142802019-01-23 Pedro Alves <palves@redhat.com>
14281
14282 * common/preprocessor.h (ESC): Rename to ...
14283 (ESC_PARENS): ... this.
14284 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14285 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14286
ae73e2e2
TT
142872019-01-23 Tom Tromey <tom@tromey.com>
14288
14289 * language.h (class scoped_switch_to_sym_language_if_auto):
14290 Initialize m_lang in both cases.
14291
6594e122
AH
142922019-01-23 Alan Hayward <alan.hayward@arm.com>
14293
14294 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14295 with XCNEW.
14296
a7c9855d
TT
142972019-01-22 Tom Tromey <tom@tromey.com>
14298
14299 * corelow.c: Do not include sys/file.h.
14300
93cc1d53
TT
143012019-01-22 Tom Tromey <tom@tromey.com>
14302
14303 * tui/tui-wingeneral.h: Include gdb_curses.h.
14304
38561778
TT
143052019-01-22 Tom Tromey <tom@tromey.com>
14306
14307 * source-cache.h (class source_cache) <get_source_lines,
14308 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14309
37b3ab5b
TT
143102019-01-22 Tom Tromey <tom@tromey.com>
14311
14312 * remote-fileio.h (struct remote_target): Declare.
14313
3fabc016
TT
143142019-01-22 Tom Tromey <tom@tromey.com>
14315
14316 * python/py-arch.c: Do not include py-ref.h.
14317 * python/py-bpevent.c: Do not include py-ref.h.
14318 * python/py-cmd.c: Do not include py-ref.h.
14319 * python/py-continueevent.c: Do not include py-ref.h.
14320 * python/py-event.h: Do not include py-ref.h.
14321 * python/py-evtregistry.c: Do not include py-ref.h.
14322 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14323 * python/py-frame.c: Do not include py-ref.h.
14324 * python/py-framefilter.c: Do not include py-ref.h.
14325 * python/py-function.c: Do not include py-ref.h.
14326 * python/py-infevents.c: Do not include py-ref.h.
14327 * python/py-linetable.c: Do not include py-ref.h.
14328 * python/py-objfile.c: Do not include py-ref.h.
14329 * python/py-param.c: Do not include py-ref.h.
14330 * python/py-prettyprint.c: Do not include py-ref.h.
14331 * python/py-progspace.c: Do not include py-ref.h.
14332 * python/py-symbol.c: Do not include py-ref.h.
14333 * python/py-symtab.c: Do not include py-ref.h.
14334 * python/py-type.c: Do not include py-ref.h.
14335 * python/py-unwind.c: Do not include py-ref.h.
14336 * python/py-utils.c: Do not include py-ref.h.
14337 * python/py-value.c: Do not include py-ref.h.
14338 * python/py-varobj.c: Do not include py-ref.h.
14339 * python/py-xmethods.c: Do not include py-ref.h.
14340 * python/python.c: Do not include py-ref.h.
14341 * varobj.c: Do not include py-ref.h.
14342
6b4d7774
TT
143432019-01-22 Tom Tromey <tom@tromey.com>
14344
14345 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14346 keyword for bcache.
14347
7af7e9b5
TT
143482019-01-22 Tom Tromey <tom@tromey.com>
14349
14350 * compile/compile-cplus-types.c: Remove a comment by #include.
14351
951d1049
TT
143522019-01-22 Tom Tromey <tom@tromey.com>
14353
14354 * compile/gcc-c-plugin.h: Include compile-internal.h.
14355
d65d5705
TT
143562019-01-22 Tom Tromey <tom@tromey.com>
14357
14358 * stabsread.c (EXTERN): Do not define.
14359 (symnum, next_symbol_text_func, processing_gcc_compilation)
14360 (within_function, global_sym_chain, global_stabs)
14361 (previous_stab_code, this_object_header_files)
14362 (n_this_object_header_files)
14363 (n_allocated_this_object_header_files): Define.
14364 * stabsread.h (EXTERN): Never define. Use "extern".
14365
b6fb1ee5
PW
143662019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14367
14368 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14369 history_value.
14370
be6d4f74
TT
143712019-01-21 Tom Tromey <tom@tromey.com>
14372
14373 * ui-out.c: Fix includes.
14374 * tui/tui-source.c: Fix includes.
14375 * target.c: Fix includes.
14376 * remote.c: Fix includes.
14377 * regcache.c: Fix includes.
14378 * python/py-block.c: Fix includes.
14379 * printcmd.c: Fix includes.
14380 * or1k-tdep.c: Fix includes.
14381 * mi/mi-main.c: Fix includes.
14382 * m32r-tdep.c: Fix includes.
14383 * csky-tdep.c: Fix includes.
14384 * compile/compile-cplus-types.c: Fix includes.
14385 * cli/cli-interp.c: Fix includes.
14386
73021deb
AH
143872019-01-21 Alan Hayward <alan.hayward@arm.com>
14388
14389 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14390 for padding.
14391
7932255d
TT
143922019-01-16 Tom Tromey <tom@tromey.com>
14393
14394 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14395 earlier.
14396 (struct objfile) <msymbols_range>: Move from top level.
14397 <msymbols>: New method.
14398 (class objfile_msymbols): Remove.
14399 * symtab.c (default_collect_symbol_completion_matches_break_on):
14400 Update.
14401 * symmisc.c (dump_msymbols): Update.
14402 * stabsread.c (scan_file_globals): Update.
14403 * objc-lang.c (info_selectors_command, info_classes_command)
14404 (find_methods): Update.
14405 * minsyms.c (find_solib_trampoline_target): Update.
14406 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14407 * coffread.c (coff_symfile_read): Update.
14408 * ada-lang.c (ada_lookup_simple_minsym)
14409 (ada_collect_symbol_completion_matches): Update.
14410
604b1bfb
TT
144112019-01-16 Tom Tromey <tom@tromey.com>
14412
14413 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14414 type. Remove no-argument constructor.
14415 <iterator::operator++>: Simplify.
14416 <begin>: Update.
14417 <end>: Use minimal_symbol_count.
14418
f252c6d5
TT
144192019-01-16 Tom Tromey <tom@tromey.com>
14420
14421 * objfiles.h (struct objfile) <psymtabs>: New method.
14422 (class objfile_psymtabs): Remove.
14423 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14424 typedef.
14425 <range>: New method.
14426 (require_partial_symbols): Change return type.
14427 * psymtab.c (require_partial_symbols)
14428 (psym_expand_symtabs_matching): Update.
14429 * mdebugread.c (parse_partial_symbols): Update.
14430 * dbxread.c (dbx_end_psymtab): Update.
14431
b669c953
TT
144322019-01-15 Tom Tromey <tom@tromey.com>
14433
14434 * symtab.c (lookup_objfile_from_block)
14435 (lookup_symbol_in_objfile_symtabs)
14436 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14437 (find_line_symtab, info_sources_command)
14438 (default_collect_symbol_completion_matches_break_on)
14439 (make_source_files_completion_list): Update.
14440 * symmisc.c (print_objfile_statistics, dump_objfile)
14441 (maintenance_print_symbols, maintenance_info_symtabs)
14442 (maintenance_check_symtabs, maintenance_info_line_tables):
14443 Update.
14444 * source.c (select_source_symtab)
14445 (forget_cached_source_info_for_objfile): Update.
14446 * objfiles.h (class objfile_compunits): Remove.
14447 (struct objfile) <compunits_range>: New typedef.
14448 (compunits): New method.
14449 * objfiles.c (objfile_relocate1): Update.
14450 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14451 * maint.c (count_symtabs_and_blocks): Update.
14452 * linespec.c (iterate_over_all_matching_symtabs): Update.
14453 * cp-support.c (add_symbol_overload_list_qualified): Update.
14454 * coffread.c (coff_symtab_read): Update.
14455 * ada-lang.c (add_nonlocal_symbols)
14456 (ada_collect_symbol_completion_matches)
14457 (ada_add_global_exceptions): Update.
14458
7e955d83
TT
144592019-01-15 Tom Tromey <tom@tromey.com>
14460
14461 * progspace.h (program_space) <objfiles_safe_range>: New
14462 typedef.
14463 <objfiles_safe>: New method.
14464 * objfiles.h (class all_objfiles_safe): Remove.
14465 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14466 * jit.c (jit_inferior_exit_hook): Update.
14467
2030c079
TT
144682019-01-17 Tom Tromey <tom@tromey.com>
14469
14470 * progspace.h (program_space) <objfiles_range>: New typedef.
14471 <objfiles>: New method.
14472 <objfiles_head>: Rename from objfiles.
14473 (object_files): Update.
14474 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14475 * guile/scm-pretty-print.c
14476 (ppscm_find_pretty_printer_from_objfiles): Update.
14477 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14478 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14479 Update.
14480 * python/py-progspace.c (pspy_get_objfiles): Update.
14481 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14482 Update.
14483 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14484 (objfpy_lookup_objfile_by_build_id): Update.
14485 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14486 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14487 Update.
14488 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14489 (expand_symtab_containing_pc, lookup_objfile_from_block)
14490 (lookup_static_symbol, basic_lookup_transparent_type)
14491 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14492 (find_line_symtab, info_sources_command)
14493 (default_collect_symbol_completion_matches_break_on)
14494 (make_source_files_completion_list, find_main_name): Update.
14495 * symmisc.c (print_symbol_bcache_statistics)
14496 (print_objfile_statistics, maintenance_print_symbols)
14497 (maintenance_print_msymbols, maintenance_print_objfiles)
14498 (maintenance_info_symtabs, maintenance_check_symtabs)
14499 (maintenance_expand_symtabs, maintenance_info_line_tables):
14500 Update.
14501 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14502 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14503 (map_overlay_command, unmap_overlay_command)
14504 (simple_overlay_update, expand_symtabs_matching)
14505 (map_symbol_filenames): Update.
14506 * symfile-debug.c (set_debug_symfile): Update.
14507 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14508 Update.
14509 * source.c (select_source_symtab, forget_cached_source_info):
14510 Update.
14511 * solib.c (solib_read_symbols): Update.
14512 * solib-spu.c (append_ocl_sos): Update.
14513 * psymtab.c (maintenance_print_psymbols)
14514 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14515 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14516 * printcmd.c (info_symbol_command): Update.
14517 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14518 Update.
14519 * objfiles.h (class all_objfiles): Remove.
14520 * objfiles.c (have_partial_symbols, have_full_symbols)
14521 (have_minimal_symbols, qsort_cmp, update_section_map)
14522 (shared_objfile_contains_address_p)
14523 (default_iterate_over_objfiles_in_search_order): Update.
14524 * objc-lang.c (info_selectors_command, info_classes_command)
14525 (find_methods): Update.
14526 * minsyms.c (find_solib_trampoline_target): Update.
14527 * maint.c (maintenance_info_sections)
14528 (maintenance_translate_address, count_symtabs_and_blocks):
14529 Update.
14530 * main.c (captured_main_1): Update.
14531 * linux-thread-db.c (try_thread_db_load_from_pdir)
14532 (has_libpthread): Update.
14533 * linespec.c (iterate_over_all_matching_symtabs)
14534 (search_minsyms_for_name): Update.
14535 * jit.c (jit_find_objf_with_entry_addr): Update.
14536 * hppa-tdep.c (find_unwind_entry)
14537 (hppa_lookup_stub_minimal_symbol): Update.
14538 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14539 Update.
14540 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14541 (elf_gnu_ifunc_resolve_by_got): Update.
14542 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14543 * dwarf-index-write.c (save_gdb_index_command): Update.
14544 * cp-support.c (add_symbol_overload_list_qualified): Update.
14545 * breakpoint.c (create_overlay_event_breakpoint)
14546 (create_longjmp_master_breakpoint)
14547 (create_std_terminate_master_breakpoint)
14548 (create_exception_master_breakpoint): Update.
14549 * blockframe.c (find_pc_partial_function): Update.
14550 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14551 (ada_collect_symbol_completion_matches)
14552 (ada_add_global_exceptions): Update.
14553
776489e0
TT
145542019-01-17 Tom Tromey <tom@tromey.com>
14555
14556 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14557 declare VEC.
14558 (solib_target_parse_libraries): Change return type.
14559 (library_list_start_segment, library_list_start_section)
14560 (library_list_end_library, library_list_start_library); Update.
14561 (solib_target_free_library_list): Remove.
14562 (solib_target_parse_libraries): Remove cleanup. Change return
14563 type.
14564 (solib_target_current_sos): Update.
14565
6471e7d2
TT
145662019-01-17 Tom Tromey <tromey@bapiya>
14567
14568 * valprint.c: Replace "the the" with "the".
14569 * symtab.c: Replace "the the" with "the".
14570 * solib.c: Replace "the the" with "the".
14571 * solib-dsbt.c: Replace "the the" with "the".
14572 * linespec.c: Replace "the the" with "the".
14573 * dwarf2loc.h: Replace "the the" with "the".
14574 * amd64-windows-tdep.c: Replace "the the" with "the".
14575 * aarch64-tdep.c: Replace "the the" with "the".
14576
c24bdb02
KS
145772019-01-16 Keith Seitz <keiths@redhat.com>
14578
14579 PR gdb/23773
14580 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14581 <builder>: Rename to ..
14582 <m_builder>: ... this and make private.
14583 (dwarf2_cu::get_builder): New method. Change all users of
14584 `builder' to use this method.
14585 (dwarf2_start_symtab): Move to ...
14586 (dwarf2_cu::start_symtab): ... here. Update all callers
14587 (setup_type_unit_groups): Move to ...
14588 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14589 callers.
14590 (dwarf2_cu::reset_builder): New method.
14591 (process_full_compunit, process_full_type_unit): Use
14592 dwarf2_cu::reset_builder.
14593 (follow_die_offset): Record the ancestor CU if it is different
14594 from the followed DIE's CU.
14595 (follow_die_sig_1): Likewise.
14596
8d64371b
TT
145972019-01-15 Tom Tromey <tom@tromey.com>
14598
14599 * remote.c (class remote_state) <buf>: Now a char_vector.
14600 <buf_size>: Remove.
14601 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14602 parameter.
14603 (remote_target::getpkt_or_notif_sane_1)
14604 (remote_target::getpkt_sane)
14605 (remote_target::getpkt_or_notif_sane): Likewise.
14606 (class remote_target) <putpkt>: New overload.
14607 (remote_target::read_frame): Change type of "buf_p". Remove
14608 sizeof_p parameter.
14609 (packet_ok): New overload.
14610 (packet_check_result): New overload.
14611 Update all uses.
14612
bb277751
TT
146132019-01-14 Tom Tromey <tom@tromey.com>
14614
14615 * remote-notif.c (handle_notification, remote_notif_ack)
14616 (remote_notif_parse): Make "buf" const.
14617 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14618 const.
14619 (remote_notif_parse, remote_notif_ack, handle_notification):
14620 Likewise.
14621 * remote.c (remote_notif_stop_parse): Make "buf" const.
14622 (remote_target::remote_parse_stop_reply): Make "buf" const.
14623 (remote_notif_stop_ack): Make "buf" const.
14624
05be00a8
TT
146252019-01-14 Tom Tromey <tom@tromey.com>
14626
14627 * remote.c (remote_console_output): Make parameter const.
14628
491adeca
TT
146292019-01-14 Tom Tromey <tom@tromey.com>
14630
14631 * target-debug.h (target_debug_print_signals): Constify.
14632 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14633 * procfs.c (procfs_target::pass_signals): Update.
14634 * linux-nat.c (linux_nat_target::pass_signals): Update.
14635 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14636 * target-delegates.c: Rebuild.
14637 * remote.c (remote_target::program_signals): Update.
14638 (remote_target::pass_signals): Update.
14639 * target.c (target_pass_signals): Constify argument.
14640 (target_program_signals): Likewise.
14641 * target.h (struct target_ops) <pass_signals, program_signals>:
14642 Constify argument.
14643 (target_pass_signals, target_program_signals): Constify argument.
14644
bbd94648
TT
146452019-01-14 Tom Tromey <tom@tromey.com>
14646
14647 PR tui/28819:
14648 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14649
6f072a10
PFC
146502019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14651
14652 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14653 field.
14654 * rs6000-tdep.c: Include reggroups.h.
14655 (IS_V_ALIAS_PSEUDOREG): Define.
14656 (rs6000_register_name): Return names for the "vX" aliases.
14657 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14658 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14659 aliases. Call default_register_reggroup_p for all other
14660 pseudo-registers.
14661 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14662 New functions.
14663 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14664 Handle "vX" aliases.
14665 (v_alias_pseudo_register_collect): New function.
14666 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14667 (rs6000_gdbarch_init): Initialize "vX" aliases as
14668 pseudo-registers. Restore registration of
14669 rs6000_pseudo_register_reggroup_p with
14670 set_tdesc_pseudo_register_reggroup_p.
14671
1a782351
MF
146722019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14673
14674 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14675 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14676 set_gdbarch_num_pseudo_regs.
14677
d73cff18
PW
146782019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14679
14680 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14681 Remove arg prefixname, add do_set and do_show.
14682 Add member functions set_list and show_list.
14683 * cli/cli-style.c (class cli_style_option): Update accordingly.
14684 (style_set_list): Move to file scope.
14685 (style_show_list): Likewise.
14686 (set_style): Call help_list.
14687 (show_style): Call cmd_show_list.
14688 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14689 Update to use the new macro.
14690
60a90376
JB
146912019-10-12 Joel Brobecker <brobecker@adacore.com>
14692
14693 * ada-lang.c (_initialize_ada_language): Expand the help text
14694 for the "catch exception" command.
14695
9d7c67bf
PW
146962019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14697
14698 * symtab.c (matching_obj_sections): Initialize obj,
14699 declare it closer to its usage.
14700
7cf47dc4
TT
147012019-01-10 Tom Tromey <tom@tromey.com>
14702
14703 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14704 (basic_inf_threads_range): Remove.
14705 (inf_threads_range, inf_non_exited_threads_range)
14706 (safe_inf_threads_range): Use next_adapter.
14707
d3cb6808
KS
147082019-01-10 Keith Seitz <keiths@redhat.com>
14709
14710 PR gdb/23712
14711 PR symtab/23010
14712 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14713 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14714
63a20375
KS
147152019-01-10 Keith Seitz <keiths@redhat.com>
14716
14717 PR gdb/23712
14718 PR symtab/23010
14719 * dictionary.c (pending_to_vector): Remove.
14720 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14721 Remove _1 suffix, replacing functions of the same name. Update
14722 all callers.
14723 (dict_create_hashed, dict_create_hashed_expandable)
14724 (dict_create_linear, dict_create_linear_expandable, dict_free)
14725 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14726 Make functions static.
14727
b026f593
KS
147282019-01-10 Keith Seitz <keiths@redhat.com>
14729
14730 PR gdb/23712
14731 PR symtab/23010
14732 * dictionary.h (struct dictionary): Replace declaration with
14733 multidictionary.
14734 (dict_create_hashed, dict_create_hashed_expandable)
14735 (dict_create_linear, dict_create_linear_expandable)
14736 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14737 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14738 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14739 taking multidictionary argument.
14740 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14741 * block.h (struct block) <dict>: Change to multidictionary
14742 and rename `multidict'.
14743 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14744 symmisc.c: Update all dictionary references to multidictionary.
14745
c7748ee9
KS
147462019-01-10 Keith Seitz <keiths@redhat.com>
14747
14748 PR gdb/23712
14749 PR symtab/23010
14750 * dictionary.c: Include unordered_map.
14751 (pending_to_vector): New function.
14752 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14753 Rewrite the non-"_1" functions to take vector instead
14754 of linked list.
14755 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14756 "new" _1 versions of the same name.
14757 (multidictionary): Define.
14758 (std::hash<enum language): New definition.
14759 (collate_pending_symbols_by_language, mdict_create_hashed)
14760 (mdict_create_hashed_expandable, mdict_create_linear)
14761 (mdict_create_linear_expandable, mdict_free)
14762 (find_language_dictionary, create_new_language_dictionary)
14763 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14764 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14765 (mdict_size, mdict_empty): New functions.
14766 * dictionary.h (mdict_iterator): Define.
14767
67aa1f3c
PA
147682019-01-10 Pedro Alves <palves@redhat.com>
14769
14770 * breakpoint.c (read_uploaded_action)
14771 (create_tracepoint_from_upload): Adjust to use
14772 gdb::unique_xmalloc_ptr.
14773 * ctf.c (ctf_write_uploaded_tp):
14774 (SET_ARRAY_FIELD): Use emplace_back.
14775 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14776 * tracefile-tfile.c (tfile_write_uploaded_tp):
14777 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14778 gdb::unique_xmalloc_ptr.
14779 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14780 at_string, cond_string, cmd_strings>: Replace char pointers
14781 with gdb::unique_xmalloc_ptr.
14782
2f667667
PA
147832019-01-10 Pedro Alves <palves@redhat.com>
14784
14785 * solib-target.c (library_list_start_library): Don't xstrdup name.
14786
36cb7237
PA
147872019-01-10 Pedro Alves <palves@redhat.com>
14788
14789 * mdebugread.c (parse_partial_symbols): Use
14790 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14791
da584958
AB
147922019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14793
14794 * linux-fork.c (scoped_switch_fork_info)
14795 <~scoped_switch_fork_info>: Fix incorrect variable name.
14796
1ef8573c
AB
147972019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14798
14799 * linux-fork.c (scoped_switch_fork_info)
14800 <scoped_switch_fork_info>: Make explicit.
14801 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14802
8d7bcccb
TT
148032019-01-10 Tom Tromey <tom@tromey.com>
14804
14805 * objfiles.h (objfile::reset_psymtabs): Update.
14806 * objfiles.c (objfile::objfile): Update.
14807 * psymtab.h (psymtab_storage::obstack): Update.
14808 (psymtab_storage::m_obstack): Use gdb::optional.
14809 (class psymtab_storage): Update comment. Remove objfile
14810 parameter.
14811 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14812
b596a3c7
TT
148132019-01-10 Tom Tromey <tom@tromey.com>
14814
14815 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14816 <free_psymtabs>: Now private.
14817 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14818 (allocate_psymtab): Use new method.
14819
a9342b62
TT
148202019-01-10 Tom Tromey <tom@tromey.com>
14821
14822 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14823 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14824 * mdebugread.c (parse_partial_symbols): Use
14825 allocate_dependencies.
14826 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14827 allocate_dependencies.
14828 (process_psymtab_comp_unit_reader)
14829 (build_type_psymtab_dependencies): Likewise.
14830 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14831
5af70966
TT
148322019-01-10 Tom Tromey <tom@tromey.com>
14833
14834 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14835 PSYMBOL_SET_LANGUAGE.
14836 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14837
5923a04c
TT
148382019-01-10 Tom Tromey <tom@tromey.com>
14839
14840 * psymtab.h (psymtab_storage::obstack): New method.
14841 <m_obstack>: Rename from obstack; now private.
14842 * psymtab.c (psymtab_storage): Update.
14843 * dwarf2read.c (create_addrmap_from_index)
14844 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14845 Update.
14846
6d6a12bf
TT
148472019-01-10 Tom Tromey <tom@tromey.com>
14848
14849 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14850 * objfiles.h (objfile::reset_psymtabs): New method.
14851
d320c2b5
TT
148522019-01-10 Tom Tromey <tom@tromey.com>
14853
14854 * symmisc.c (print_symbol_bcache_statistics): Update.
14855 (print_objfile_statistics): Update.
14856 * symfile.c (reread_symbols): Update.
14857 * psymtab.h (class psymtab_storage): New.
14858 * psymtab.c (psymtab_storage): New constructor.
14859 (~psymtab_storage): New destructor.
14860 (require_partial_symbols): Update.
14861 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14862 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14863 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14864 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14865 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14866 (start_psymtab_common, end_psymtab_common)
14867 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14868 (allocate_psymtab): Update.
14869 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14870 Update.
14871 (dump_psymtab_addrmap, maintenance_print_psymbols)
14872 (maintenance_check_psymtabs): Update.
14873 (class objfile_psymtabs): Move to objfiles.h.
14874 * psympriv.h (discard_psymtab): Now inline.
14875 (psymtab_discarder::psymtab_discarder): Update.
14876 (psymtab_discarder::~psymtab_discarder): Update.
14877 (ALL_OBJFILE_PSYMTABS): Rewrite.
14878 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14879 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14880 Remove fields.
14881 <partial_symtabs>: New field.
14882 (class objfile_psymtabs): Move from psymtab.h. Update.
14883 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14884 psymbol_cache.
14885 (objfile::~objfile): Don't destroy psymbol_cache.
14886 * mdebugread.c (parse_partial_symbols): Update.
14887 * dwarf2read.c (create_addrmap_from_index)
14888 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14889 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14890 (add_partial_subprogram, dwarf2_ranges_read): Update.
14891 * dwarf-index-write.c (write_address_map)
14892 (write_one_signatured_type, recursively_write_psymbols)
14893 (class debug_names, class debug_names, write_psymtabs_to_index):
14894 Update.
14895
1d94a5a3
TT
148962019-01-10 Tom Tromey <tom@tromey.com>
14897
14898 * symtab.h (SYMBOL_SET_NAMES): Update.
14899 (symbol_set_names): Update.
14900 (MSYMBOL_SET_NAMES): Update.
14901 * symtab.c (symbol_set_names): Change argument to be an
14902 objfile_per_bfd_storage.
14903 * psymtab.c (add_psymbol_to_bcache): Update.
14904 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
14905
0f14768a
TT
149062019-01-10 Tom Tromey <tom@tromey.com>
14907
14908 * symtab.c (create_demangled_names_hash): Change argument to be an
14909 objfile_per_bfd_storage.
14910 (symbol_set_names): Update.
14911
6eee24ce
TT
149122019-01-10 Tom Tromey <tom@tromey.com>
14913
14914 * xcoffread.c (xcoff_initial_scan): Unconditionally call
14915 init_psymbol_list.
14916 * psymtab.c (init_psymbol_list): Do nothing if already called.
14917 * psympriv.h (init_psymbol_list): Add comment.
14918 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
14919 init_psymbol_list.
14920 * dbxread.c (dbx_symfile_read): Unconditionally call
14921 init_psymbol_list.
14922
75aedd27
TT
149232019-01-10 Tom Tromey <tom@tromey.com>
14924
14925 * xcoffread.c (scan_xcoff_symtab): Update.
14926 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
14927 "where".
14928 * mdebugread.c (parse_partial_symbols)
14929 (handle_psymbol_enumerators): Update.
14930 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
14931 * dbxread.c (read_dbx_symtab): Update.
14932 * psympriv.h (psymbol_placement): New enum.
14933 (add_psymbol_to_list): Update.
14934
939652a5
TT
149352019-01-10 Tom Tromey <tom@tromey.com>
14936
14937 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
14938 static_psymbols parameters.
14939 (scan_xcoff_symtab): Update.
14940 * psymtab.c (start_psymtab_common): Remove global_psymbols and
14941 static_psymbols parameters.
14942 * psympriv.h (start_psymtab_common): Update.
14943 * mdebugread.c (parse_partial_symbols): Update.
14944 * dwarf2read.c (create_partial_symtab): Update.
14945 * dbxread.c (read_dbx_symtab): Update.
14946 (start_psymtab): Remove global_psymbols and static_psymbols
14947 parameters.
14948
baa62830
TT
149492019-01-10 Tom Tromey <tom@tromey.com>
14950
14951 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
14952 * psymtab.c (allocate_psymtab): Add comment.
14953 * psympriv.h (allocate_psymtab): Add comment.
14954 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
14955 initializations.
14956 * dbxread.c (dbx_end_psymtab): Remove some initializations.
14957
0e8f53ba
TT
149582019-01-10 Tom Tromey <tom@tromey.com>
14959
14960 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14961 Don't declare.
14962 * mipsread.c: Include mdebugread.h.
14963 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14964 Declare.
14965 * elfread.c: Include mdebugread.h.
14966
b22a7c6a
TT
149672019-01-09 Tom Tromey <tom@tromey.com>
14968
14969 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
14970 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
14971 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
14972 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14973 (psym_lookup_symbol, psym_find_last_source_symtab)
14974 (psym_forget_cached_source_info, psym_print_stats)
14975 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14976 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14977 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14978 (psym_find_compunit_symtab_by_address)
14979 (maintenance_print_psymbols, maintenance_info_psymtabs)
14980 (maintenance_check_psymtabs): Use ranged for.
14981 * psymtab.h (class objfile_psymtabs): New.
14982 (require_partial_symbols): Return objfile_psymtabs.
14983 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14984
3b9d3ac2
TT
149852019-01-09 Tom Tromey <tom@tromey.com>
14986
14987 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14988 (find_pc_mapped_section, list_overlays_command)
14989 (map_overlay_command, unmap_overlay_command)
14990 (simple_overlay_update): Use all_objfiles.
14991 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
14992 * printcmd.c (info_symbol_command): Use all_objfiles.
14993 * objfiles.h (ALL_OBJSECTIONS): Remove.
14994 * maint.c (maintenance_translate_address): Use all_objfiles.
14995 * gcore.c (gcore_create_callback): Use all_objfiles.
14996 (objfile_find_memory_regions): Likewise.
14997
8b31193a
TT
149982019-01-09 Tom Tromey <tom@tromey.com>
14999
15000 * symtab.c (find_line_symtab, info_sources_command)
15001 (make_source_files_completion_list): Use objfile_compunits.
15002 * source.c (select_source_symtab): Use objfile_compunits.
15003 * objfiles.h (struct objfile): Update comment.
15004 (ALL_OBJFILES): Remove.
15005 (ALL_FILETABS): Remove.
15006 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15007 objfile_compunits.
15008
d5da8b3c
TT
150092019-01-09 Tom Tromey <tom@tromey.com>
15010
15011 * symmisc.c (print_objfile_statistics, dump_objfile)
15012 (maintenance_print_symbols): Use compunit_filetabs.
15013 * source.c (forget_cached_source_info_for_objfile): Use
15014 compunit_filetabs.
15015 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15016 (ALL_FILETABS): Use compunit_filetabs.
15017 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15018 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15019
5accd1a0
TT
150202019-01-09 Tom Tromey <tom@tromey.com>
15021
15022 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15023 (compunit_filetabs): New.
15024 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15025 compunit_filetabs.
15026 (info_sources_command, make_source_files_completion_list): Remove
15027 declaration.
15028 * symmisc.c (print_objfile_statistics, dump_objfile)
15029 (maintenance_print_symbols): Remove declaration.
15030 (maintenance_info_symtabs): Use compunit_filetabs.
15031 (maintenance_info_line_tables): Likewise.
15032 * source.c (select_source_symtab): Change local variable name.
15033 (forget_cached_source_info_for_objfile): Remove declaration.
15034 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15035 * objfiles.c (objfile_relocate1): Remove declaration.
15036 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15037 declaration.
15038 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15039 * coffread.c (coff_symtab_read): Remove declaration.
15040 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15041 compunit_filetabs.
15042
d8aeb77f
TT
150432019-01-09 Tom Tromey <tom@tromey.com>
15044
15045 * symtab.c (lookup_objfile_from_block)
15046 (find_pc_sect_compunit_symtab, search_symbols)
15047 (default_collect_symbol_completion_matches_break_on): Use
15048 objfile_compunits.
15049 * objfiles.h (ALL_COMPUNITS): Remove.
15050 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15051 * cp-support.c (add_symbol_overload_list_qualified): Use
15052 objfile_compunits.
15053 * ada-lang.c (ada_collect_symbol_completion_matches)
15054 (ada_add_global_exceptions): Use objfile_compunits.
15055
592553c4
TT
150562019-01-09 Tom Tromey <tom@tromey.com>
15057
15058 * source.c (select_source_symtab)
15059 (forget_cached_source_info_for_objfile): Remove declaration.
15060 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15061 declaration.
15062 * maint.c (count_symtabs_and_blocks): Remove declaration.
15063 * cp-support.c (add_symbol_overload_list_qualified): Remove
15064 declaration.
15065 * coffread.c (coff_symtab_read): Remove declaration.
15066 * symtab.c (lookup_symbol_in_objfile_symtabs)
15067 (basic_lookup_transparent_type_1): Use objfile_compunits.
15068 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15069 (info_sources_command, search_symbols)
15070 (default_collect_symbol_completion_matches_break_on)
15071 (make_source_files_completion_list): Remove declaration.
15072 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15073 (ada_collect_symbol_completion_matches)
15074 (ada_add_global_exceptions): Remove declaration.
15075 * linespec.c (iterate_over_all_matching_symtabs): Use
15076 objfile_compunits.
15077 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15078 (class objfile_compunits): New.
15079 (ALL_COMPUNITS): Use objfile_compunits.
15080 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15081 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15082 objfile_compunits.
15083 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15084
5325b9bf
TT
150852019-01-09 Tom Tromey <tom@tromey.com>
15086
15087 * symtab.c (search_symbols)
15088 (default_collect_symbol_completion_matches_break_on): Use
15089 objfile_msymbols.
15090 * ada-lang.c (ada_lookup_simple_minsym)
15091 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15092 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15093 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15094 objfile_msymbols.
15095 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15096 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15097 * objc-lang.c (find_methods): Use objfile_msymbols.
15098 (info_selectors_command, info_classes_command): Likewise.
15099 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15100 * objfiles.h (class objfile_msymbols): New.
15101 (ALL_OBJFILE_MSYMBOLS): Remove.
15102 (ALL_MSYMBOLS): Remove.
15103
cac85af2
TT
151042019-01-09 Tom Tromey <tom@tromey.com>
15105
15106 * common/next-iterator.h (next_adapter): Add Iterator template
15107 parameter.
15108 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15109 (class all_objfiles_safe): New.
15110 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15111 * objfiles.c (put_objfile_before): Update comment.
15112 (add_separate_debug_objfile): Likewise.
15113 (free_all_objfiles): Use all_objfiles_safe.
15114 (objfile_purge_solibs): Likewise.
15115
aed57c53
TT
151162019-01-09 Tom Tromey <tom@tromey.com>
15117
15118 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15119 (expand_symtab_containing_pc, lookup_static_symbol)
15120 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15121 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15122 all_objfiles.
15123 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15124 * breakpoint.c (create_overlay_event_breakpoint)
15125 (create_longjmp_master_breakpoint)
15126 (create_std_terminate_master_breakpoint)
15127 (create_exception_master_breakpoint): Use all_objfiles.
15128 * linux-thread-db.c (try_thread_db_load_from_pdir)
15129 (has_libpthread): Use all_objfiles.
15130 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15131 * linespec.c (iterate_over_all_matching_symtabs)
15132 (search_minsyms_for_name): Use all_objfiles.
15133 * maint.c (maintenance_info_sections): Use all_objfiles.
15134 * main.c (captured_main_1): Use all_objfiles.
15135 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15136 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15137 * guile/scm-pretty-print.c
15138 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15139 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15140 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15141 (maintenance_print_msymbols): Use all_objfiles.
15142 * source.c (select_source_symtab): Use all_objfiles.
15143 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15144 * symfile.c (remove_symbol_file_command)
15145 (expand_symtabs_matching, map_symbol_filenames): Use
15146 all_objfiles.
15147 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15148 all_objfiles.
15149 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15150 * objc-lang.c (find_methods): Use all_objfiles.
15151 * objfiles.c (have_partial_symbols, have_full_symbols)
15152 (have_minimal_symbols, qsort_cmp)
15153 (default_iterate_over_objfiles_in_search_order): Use
15154 all_objfiles.
15155 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15156 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15157 (maintenance_check_psymtabs): Use all_objfiles.
15158 (ALL_PSYMTABS): Remove.
15159 * compile/compile-object-run.c (do_module_cleanup): Use
15160 all_objfiles.
15161 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15162 * cp-support.c (add_symbol_overload_list_qualified): Use
15163 all_objfiles.
15164 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15165 Use all_objfiles.
15166 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15167 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15168 all_objfiles.
15169 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15170 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15171 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15172 Uses all_objfiles.
15173 * solib.c (solib_read_symbols): Use all_objfiles
15174
99d89cde
TT
151752019-01-09 Tom Tromey <tom@tromey.com>
15176
15177 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15178 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15179 all_objfiles.
15180 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15181 * symmisc.c (print_symbol_bcache_statistics)
15182 (print_objfile_statistics, maintenance_print_objfiles)
15183 (maintenance_info_symtabs, maintenance_check_symtabs)
15184 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15185 all_objfiles.
15186 * source.c (forget_cached_source_info): Use all_objfiles.
15187 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15188 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15189 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15190 * objfiles.c (update_section_map): Use all_objfiles.
15191 (shared_objfile_contains_address_p): Likewise.
15192 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15193 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15194
21708325
TT
151952019-01-09 Tom Tromey <tom@tromey.com>
15196
15197 * common/next-iterator.h: New file.
15198 * objfiles.h (class all_objfiles): New.
15199 (struct objfile_iterator): New.
15200
669e09f6
PW
152012019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15202
15203 * NEWS: Move the description of the changed "frame", "select-frame",
15204 and "info frame" commands to the Changed commands section.
15205
041be526
SM
152062019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15207
15208 * gdbtypes.c (check_stub_method_group): Remove handling of old
15209 mangling schemes.
15210 * linespec.c (find_methods): Likewise.
15211 * stabsread.c (read_member_functions): Likewise.
15212 * valops.c (search_struct_method): Likewise.
15213 (value_struct_elt_for_reference): Likewise.
15214 * NEWS: Mention this change.
15215
0e2a2133
AB
152162019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15217
15218 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15219 print_source_lines.
15220 * source.c (print_source_lines_base): Update line number check.
15221 (print_source_lines): New function.
15222 (source_lines_range::source_lines_range): New function.
15223 * source.h (class source_lines_range): New class.
15224 (print_source_lines): New declaration.
15225
1055a3b4
PW
152262019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15227
15228 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15229
cfeadda5
TT
152302019-01-08 Tom Tromey <tom@tromey.com>
15231 Simon Marchi <simon.marchi@ericsson.com>
15232
15233 PR gdb/24060
15234 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15235 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15236 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15237 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15238 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15239 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15240
583068ca
AB
152412019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15242
15243 * source.c (select_source_symtab): Move header comment to
15244 declaration in source.h.
15245 (forget_cached_source_info_for_objfile): Likewise.
15246 (forget_cached_source_info): Likewise.
15247 (identify_source_line): Likewise.
15248 * source.h (identify_source_line): Move declaration from symtab.h
15249 and add comment from source.c
15250 (print_source_lines): Likewise.
15251 (forget_cached_source_info_for_objfile): Likewise.
15252 (forget_cached_source_info): Likewise.
15253 (select_source_symtab): Likewise.
15254 (enum print_source_lines_flag): Move definition from symtab.h.
15255 * symtab.h (identify_source_line): Move declaration to source.h.
15256 (print_source_lines): Likewise.
15257 (forget_cached_source_info_for_objfile): Likewise.
15258 (forget_cached_source_info): Likewise.
15259 (select_source_symtab): Likewise.
15260 (enum print_source_lines_flag): Move definition to source.h.
15261 * tui/tui-hooks.c: Add 'source.h' include.
15262
ec98a4ad
AB
152632019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15264
15265 * source.c (print_source_lines_base): Handle requests to print
15266 reverse line number sequences, and guard against empty lines
15267 string.
15268
62ea19c1
AB
152692019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15270
15271 * source.c (print_source_lines_base): Fix skip of '\r' if next
15272 character is '\n'.
15273
9d30e1fd
TT
152742019-01-06 Tom Tromey <tom@tromey.com>
15275
15276 * c-exp.y (struct c_parse_state) <macro_original_text,
15277 expansion_obstack>: New member.
15278 (macro_original_text, expansion_obstack): Remove globals.
15279 (scan_macro_expansion, scanning_macro_expansion)
15280 (finished_macro_expansion): Update.
15281 (scan_macro_cleanup): Remove.
15282 (yylex, c_parse): Update.
15283
c65bac38
TT
152842019-01-06 Tom Tromey <tom@tromey.com>
15285
15286 * c-exp.y (struct c_parse_state) <strings>: New member.
15287 (operator_stoken): Update.
15288
02e12e38
TT
152892019-01-06 Tom Tromey <tom@tromey.com>
15290
15291 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15292 (union type_stack_elt) <typelist_val>: Now a pointer to
15293 std::vector.
15294 (type_stack_cleanup): Don't declare.
15295 (push_typelist): Update.
15296 * parse.c (pop_typelist): Return a std::vector.
15297 (push_typelist): Take a std::vector.
15298 (follow_types): Update. Do not free args.
15299 (type_stack_cleanup): Remove.
15300 * c-exp.y (struct c_parse_state): New.
15301 (cpstate): New global.
15302 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15303 (nonempty_typelist): Update.
15304 (func_mod): Create a new vector.
15305 (c_parse): Create a c_parse_state.
15306 (check_parameter_typelist): Do not delete params.
15307 (function_method): Update. Do not delete type_list.
15308
f097f5ad
TT
153092019-01-06 Tom Tromey <tom@tromey.com>
15310
15311 PR gdb/28155:
15312 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15313 check_typedef.
15314 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15315 (print_return_value): Likewise.
15316
d2adf9f1
TT
153172019-01-05 Tom Tromey <tom@tromey.com>
15318
15319 * contrib/cleanup_check.py: Remove.
15320 * contrib/gcc-with-excheck: Remove.
15321 * contrib/exsummary.py: Remove.
15322 * contrib/excheck.py: Remove.
15323
2eab46b1
JB
153242019-01-05 Joel Brobecker <brobecker@adacore.com>
15325
15326 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15327 NULL. Initialize tpprev to NULL instead of assigning it
15328 to NULL on the next statement.
15329 * windows-nat.c (windows_delete_thread): Remove check for
15330 main_thread_id before printing thread exit notifications.
15331 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15332 Remove thread ID check against main_thread_id.
15333 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15334 windows_delete_thread.
15335 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15336
48c5e7e2
TT
153372019-01-04 Tom Tromey <tom@tromey.com>
15338
15339 * compile/compile.c (_initialize_compile): Use upper case for
15340 metasyntactic variables.
15341 * symmisc.c (_initialize_symmisc): Use upper case for
15342 metasyntactic variables.
15343 * psymtab.c (_initialize_psymtab): Use upper case for
15344 metasyntactic variables.
15345 * demangle.c (demangle_command): Use upper case for metasyntactic
15346 variables.
15347 (_initialize_demangler): Likewise.
15348 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15349 variables.
15350
986041cd
TT
153512019-01-03 Tom Tromey <tom@tromey.com>
15352
15353 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15354
7c711119
TT
153552019-01-03 Tom Tromey <tom@tromey.com>
15356
15357 * python/py-symtab.c (salpy_str): Update.
15358 (struct salpy_sal_object) <symtab>: Now a PyObject.
15359 (salpy_dealloc): Update.
15360 (del_objfile_sal): Use gdbpy_ref.
15361
1b20edf0
TT
153622019-01-03 Tom Tromey <tom@tromey.com>
15363
15364 * python/py-type.c (convert_field): Use new_reference. Return
15365 gdbpy_ref.
15366 (make_fielditem): Return gdbpy_ref.
15367 (typy_fields): Update.
15368 (typy_getitem): Update.
15369 (field_name): Return gdbpy_ref. Use new_reference.
15370 (typy_iterator_iternext): Update.
15371
ea41325b
TT
153722019-01-03 Tom Tromey <tom@tromey.com>
15373
15374 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15375
2a3c71d6
TT
153762019-01-03 Tom Tromey <tom@tromey.com>
15377
15378 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15379 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15380 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15381 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15382 (pspy_set_type_printers): Likewise.
15383 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15384 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15385 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15386 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15387 (objfpy_set_type_printers): Likewise.
15388
5c329e6a
TT
153892019-01-03 Tom Tromey <tom@tromey.com>
15390
15391 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15392 (gdbpy_print_stack): Use gdbpy_err_fetch.
15393 * python/python-internal.h (class gdbpy_err_fetch): New class.
15394 (class gdbpy_enter) <m_error_type, m_error_value,
15395 m_error_traceback>: Remove.
15396 <m_error>: New member.
15397 (gdbpy_exception_to_string): Don't declare.
15398 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15399 * python/py-value.c (convert_value_from_python): Use
15400 gdbpy_err_fetch.
15401 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15402 gdbpy_exception_to_string.
15403 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15404 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15405 gdbpy_err_fetch.
15406
169bb27b
AB
154072019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15408
15409 * linux-nat.c (delete_lwp_cleanup): Delete.
15410 (struct lwp_deleter): New struct.
15411 (lwp_info_up): New typedef.
15412 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15413 lwp_info_up.
15414
a07c8880
AB
154152019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15416
15417 * linux-fork.c (class scoped_switch_fork_info): New class.
15418 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15419
26089c49
AB
154202019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15421
15422 * valops.c (find_overload_match): Remove use of null_cleanup, and
15423 calls to do_cleanups.
15424
06d3e5b0
AB
154252019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15426
15427 * compile/compile-cplus-types.c
15428 (compile_cplus_instance::decl_name): Handle changes to
15429 cp_func_name.
15430 * cp-support.c (cp_func_name): Update header comment, update
15431 return type.
15432 * cp-support.h (cp_func_name): Update return type in declaration.
15433 * valops.c (find_overload_match): Move temp_func local to top
15434 level of function and change its type. Use temp_func to hold and
15435 delete temporary string obtained from cp_func_name.
15436
66644cd3
AB
154372019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15438
15439 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15440 gdb::char_vector, remove cleanup, and update uses of `msg`.
15441
592d8c0a
JW
154422019-01-03 Jim Wilson <jimw@sifive.com>
15443
15444 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15445
c55d06ec
TT
154462019-01-02 Tom Tromey <tom@tromey.com>
15447
15448 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15449 (tdesc_parse_xml): Remove cleanups.
15450 * target-descriptions.h (make_cleanup_free_target_description):
15451 Don't declare.
15452 (target_desc_deleter): New struct.
15453 (target_desc_up): New typedef.
15454 * target-descriptions.c (target_desc_deleter::operator()): Rename
15455 from free_target_description.
15456 (make_cleanup_free_target_description): Remove.
15457
3a6ae42d
TT
154582019-01-02 Tom Tromey <tom@tromey.com>
15459
15460 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15461 constructor, destructor.
15462 (linespec_parser): Remove typedef.
15463 (~linespec_parser): Rename from linespec_parser_delete.
15464 (linespec_lex_to_end, linespec_complete_label)
15465 (linespec_complete): Update.
15466 (decode_line_full): Remove cleanups.
15467 (decode_line_1): Update.
15468
61fd3e73
TT
154692019-01-02 Tom Tromey <tom@tromey.com>
15470
15471 * python/python-internal.h (inferior_to_inferior_object): Change
15472 return type.
15473 * python/py-exitedevent.c (create_exited_event_object): Update.
15474 * python/py-inferior.c (inferior_to_inferior_object): Return
15475 gdbpy_ref.
15476 (python_new_inferior, python_inferior_deleted)
15477 (thread_to_thread_object, delete_thread_object)
15478 (build_inferior_list, gdbpy_selected_inferior): Update.
15479 * python/py-infthread.c (create_thread_object): Update. Also fail
15480 if inferior_to_inferior_object fails.
15481
d20172fc
SM
154822019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15483
15484 * inferior.h (class inferior) <displaced_step_state>: New field.
15485 * infrun.h (struct displaced_step_state): Move here from
15486 infrun.c. Initialize fields, add constructor.
15487 <inf>: Remove field.
15488 <reset>: New method.
15489 * infrun.c (struct displaced_step_inferior_state): Move to
15490 infrun.h.
15491 (displaced_step_inferior_states): Remove.
15492 (get_displaced_stepping_state): Adust.
15493 (displaced_step_in_progress_any_inferior): Adjust.
15494 (displaced_step_in_progress_thread): Adjust.
15495 (displaced_step_in_progress): Adjust.
15496 (add_displaced_stepping_state): Remove.
15497 (get_displaced_step_closure_by_addr): Adjust.
15498 (remove_displaced_stepping_state): Remove.
15499 (infrun_inferior_exit): Call displaced_step_state.reset.
15500 (use_displaced_stepping): Don't check for NULL.
15501 (displaced_step_prepare_throw): Call
15502 get_displaced_stepping_state.
15503 (displaced_step_fixup): Don't check for NULL.
15504 (prepare_for_detach): Don't check for NULL.
15505
e3319240
PW
155062019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15507
15508 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15509 in case of call that did not complete.
15510
5d36dfb9
AU
155112019-01-02 Andrey Utkin <autkin@undo.io>
15512
15513 * symfile.c (find_separate_debug_file): Fix search of debug files for
15514 remote debuggee.
15515
8833fbf0
TT
155162019-01-02 Tom Tromey <tom@tromey.com>
15517
15518 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15519 indentation.
15520 * python/py-frame.c (frapy_older): Remove cast.
15521 (frapy_newer): Likewise.
15522 * python/py-breakpoint.c (local_setattro): Remove cast.
15523 * python/py-arch.c (archpy_name): Remove local variable.
15524 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15525
4ada3dfd
JB
155262019-01-02 Joel Brobecker <brobecker@adacore.com>
15527
15528 * unittests/basic_string_view/element_access/char/empty.cc:
15529 Fix year range in copyright header.
15530
113b7b81
AB
155312019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15532
15533 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15534 Delete.
15535 <operator==>: Update with for removed field.
15536 <hash>: Likewise.
15537 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15538 <isa_features>: ...this.
15539 <abi_features>: New field.
15540 (riscv_isa_flen): Update comment.
15541 (riscv_abi_xlen): New declaration.
15542 (riscv_abi_flen): New declaration.
15543 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15544 isa_features.
15545 (riscv_abi_xlen): New function.
15546 (riscv_isa_flen): Update to get answer from isa_features.
15547 (riscv_abi_flen): New function.
15548 (riscv_has_fp_abi): Update to get answer from abi_features.
15549 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15550 xlen and flen.
15551 (riscv_call_info) <xlen, flen>: Update comment.
15552 (riscv_call_arg_struct): Remove invalid assertions
15553 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15554 is removed.
15555 (riscv_gdbarch_init): Gather isa features and abi features
15556 separately, ensure both match on the gdbarch when reusing an old
15557 gdbarch. Relax an error check to allow 32-bit abi float to run on
15558 a target with 64-bit float hardware.
15559
b18ca514
PW
155602019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15561
15562 * source.c (search_command_helper): Stop reverse search
15563 when line 1 has been searched.
15564
ec70d8db
PW
155652019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15566
15567 * record-full.c (record_full_base_target::close): Rewrite
15568 record_full_core_buf_list free logic.
15569
5b38f9c1
PW
155702019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15571
15572 * break-catch-syscall.c (print_one_catch_syscall): xfree
15573 the last text.
15574
66d91b39
JB
155752019-01-01 Joel Brobecker <brobecker@adacore.com>
15576
15577 * top.c (print_gdb_version): Update Copyright year in version
15578 message.
15579
42a4f53d
JB
155802019-01-01 Joel Brobecker <brobecker@adacore.com>
15581
15582 Update copyright year range in all GDB files.
15583
7e955d83 155842019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 15585
5bbd631d 15586 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 15587
5bbd631d 15588For older changes see ChangeLog-2018.
c906108c
SS
15589\f
15590Local Variables:
15591mode: change-log
15592left-margin: 8
15593fill-column: 74
15594version-control: never
57da7796 15595coding: utf-8
c906108c 15596End:
5bbd631d 15597
This page took 2.977103 seconds and 4 git commands to generate.