Remove simulator_command declaration, make static
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d04afd58
SM
12019-11-26 Simon Marchi <simon.marchi@efficios.com>
2
3 * remote-sim.c (simulator_command): Make static, remove
4 declaration.
5
dd694d77
SM
62019-11-26 Simon Marchi <simon.marchi@efficios.com>
7
8 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
9 static.
10 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
11 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
12 (main): Likewise.
13 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
14 (main): Likewise.
15 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
16 (main): Likewise.
17 * unittests/basic_string_view/element_access/char/1.cc (test01):
18 Likewise.
19 (main): Likewise.
20 * unittests/basic_string_view/element_access/char/empty.cc (main):
21 Likewise.
22 * unittests/basic_string_view/element_access/char/front_back.cc
23 (test01): Likewise.
24 (main): Likewise.
25 * unittests/basic_string_view/inserters/char/2.cc (test05):
26 Likewise.
27 (main): Likewise.
28 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
29 (test01): Likewise.
30 (main): Likewise.
31 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
32 (test01): Likewise.
33 (main): Likewise.
34 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
35 Likewise.
36 * unittests/basic_string_view/operations/compare/char/1.cc
37 (test01): Likewise.
38 (main): Likewise.
39 * unittests/basic_string_view/operations/compare/char/13650.cc
40 (test01): Likewise.
41 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
42 Likewise.
43 (main): Likewise.
44 * unittests/basic_string_view/operations/data/char/1.cc (test01):
45 Likewise.
46 (main): Likewise.
47 * unittests/basic_string_view/operations/find/char/1.cc (test01):
48 Likewise.
49 (main): Likewise.
50 * unittests/basic_string_view/operations/find/char/2.cc (test02):
51 Likewise.
52 (main): Likewise.
53 * unittests/basic_string_view/operations/find/char/3.cc (test03):
54 Likewise.
55 (main): Likewise.
56 * unittests/basic_string_view/operations/find/char/4.cc (main):
57 Likewise.
58 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
59 Likewise.
60 (main): Likewise.
61 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
62 Likewise.
63 (main): Likewise.
64 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
65 Likewise.
66 (main): Likewise.
67 * unittests/basic_string_view/operations/substr/char/1.cc
68 (test01): Likewise.
69 (main): Likewise.
70 * unittests/basic_string_view/operators/char/2.cc (main):
71 Likewise.
72 * unittests/optional/assignment/1.cc (test): Likewise.
73 * unittests/optional/assignment/2.cc (test): Likewise.
74 * unittests/optional/assignment/3.cc (test): Likewise.
75 * unittests/optional/assignment/4.cc (test): Likewise.
76 * unittests/optional/assignment/5.cc (test): Likewise.
77 * unittests/optional/assignment/6.cc (test): Likewise.
78 * unittests/optional/assignment/7.cc (test): Likewise.
79 * unittests/optional/cons/copy.cc (test): Likewise.
80 * unittests/optional/cons/default.cc (test): Likewise.
81 * unittests/optional/cons/move.cc (test): Likewise.
82 * unittests/optional/cons/value.cc (test): Likewise.
83 * unittests/optional/in_place.cc (test): Likewise.
84 * unittests/optional/observers/1.cc (test): Likewise.
85 * unittests/optional/observers/2.cc (test): Likewise.
86
3b5c1d49
SM
872019-11-26 Simon Marchi <simon.marchi@efficios.com>
88
89 * tui-win.h (tui_set_var_cmd): Remove.
90 * tui-win.c (tui_set_var_cmd): Make static.
91
adce99fe
SM
922019-11-26 Simon Marchi <simon.marchi@efficios.com>
93
94 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
95 rbreak_command_wrapper): Remove.
96 * symtab.c (rbreak_command_wrapper): Remove.
97
fe3adccf
SM
982019-11-26 Simon Marchi <simon.marchi@efficios.com>
99
100 * inferior.h (info_terminal_command): Remove declaration.
101 * inflow.c (info_terminal_command): Make static.
102
b926335f
SM
1032019-11-26 Simon Marchi <simon.marchi@efficios.com>
104
105 * inferior.c (exit_inferior_silent): Remove.
106
b62f6f54
SM
1072019-11-26 Simon Marchi <simon.marchi@efficios.com>
108
109 * dictionary.c (dict_empty, mdict_empty): Remove.
110 * dictionary.c (mdict_empty): Remove.
111
cb8c24b6
SM
1122019-11-26 Simon Marchi <simon.marchi@efficios.com>
113
114 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
115 (arc_insn_get_memory_offset): Likewise.
116 (arc_insn_dump): Likewise.
117 * cp-support.c (test_cp_symbol_name_matches): Likewise.
118 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
119 * dictionary.c (dict_iterator_next): Likewise.
120 (dict_iter_match_first): Likewise.
121 (dict_iter_match_next): Likewise.
122 * f-lang.c (evaluate_subexp_f): Likewise.
123 * hppa-tdep.c (hppa_read_pc): Likewise.
124 * i386-tdep.c (i386_floatformat_for_type): Likewise.
125 * parse.c (write_exp_elt_msym): Likewise.
126 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
127 * remote.c (remote_packet_size): Likewise.
128 (remote_notif_stop_parse): Likewise.
129 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
130 * s12z-tdep.c (s12z_disassemble_info): Likewise.
131 * source.c (prepare_path_for_appending): Likewise.
132 * sparc64-linux-tdep.c
133 (sparc64_linux_handle_segmentation_fault); Likewise.
134 * stack.c (frame_selection_by_function_completer): Likewise.
135
781597ff
SM
1362019-11-26 Simon Marchi <simon.marchi@efficios.com>
137
138 * completer.c (set_gdb_completion_word_break_characters):
139 Remove.
140
23baa4cc
SM
1412019-11-26 Simon Marchi <simon.marchi@efficios.com>
142
143 * dwarf-index-write.c: Include dwarf-index-write.h.
144 * mi/mi-interp.c: Include mi/mi-interp.h.
145
23767560
SM
1462019-11-26 Simon Marchi <simon.marchi@efficios.com>
147
148 * aarch32-tdep.c: Include aarch32-tdep.h.
149 * aarch32-tdep.h: Forward-declare struct target_desc.
150
6d91ce9a
CB
1512019-11-26 Christian Biesinger <cbiesinger@google.com>
152
153 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
154 strerror.
155 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
156 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
157
3cf2f237
TV
1582019-11-25 Tom de Vries <tdevries@suse.de>
159
160 * contrib/words.sh: Add -c option.
161
5b89c67a
CB
1622019-11-25 Christian Biesinger <cbiesinger@google.com>
163
164 * solib.c (solib_find_1): Change int to bool.
165 (exec_file_find): Change int to bool.
166 (solib_find): Change int to bool.
167 (solib_read_symbols): Change int to bool.
168 (solib_used): Change int to bool.
169 (solib_add): Change int to bool.
170 (info_sharedlibrary_command): Change int to bool.
171 (solib_contains_address_p): Change int to bool.
172 (solib_keep_data_in_core): Change int to bool.
173 (in_solib_dynsym_resolve_code): Change int to bool.
174 (reload_shared_libraries_1): Change int to bool.
175 (gdb_sysroot_changed): Change int to bool.
176 * solib.h (solib_read_symbols): Change int to bool.
177 (solib_contains_address_p): Change int to bool.
178 (solib_keep_data_in_core): Change int to bool.
179 (in_solib_dynsym_resolve_code): Change int to bool.
180 (libpthread_name_p): Change int to bool.
181
6cc8564b
LM
1822019-11-25 Luis Machado <luis.machado@linaro.org>
183
184 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
185 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
186 (remote_packet_max_chars): New static global.
187 (show_remote_packet_max_chars): New function.
188 (remote_target::putpkt_binary): Adjust to use new
189 remote_packet_max_chars option.
190 (remote_target::getpkt_or_notif_sane_1): Likewise.
191 (_initialize_remote): Register new remote-packet-max-chars option.
192
a7cdaa91
SM
1932019-11-24 Simon Marchi <simon.marchi@efficios.com>
194
195 * m68k-linux-nat.c: Include gdbarch.h.
196
26abc753
TT
1972019-11-24 Tom Tromey <tom@tromey.com>
198
199 * symfile.c (read_symbols): Update.
200 * psymtab.c (require_partial_symbols): Change type of "verbose" to
201 bool.
202 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
203 (psym_lookup_symbol, psym_find_last_source_symtab)
204 (psym_forget_cached_source_info, psym_print_stats)
205 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
206 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
207 (psym_map_matching_symbols, psym_expand_symtabs_matching)
208 (psym_find_compunit_symtab_by_address)
209 (maintenance_print_psymbols, maintenance_info_psymtabs)
210 (maintenance_check_psymtabs): Update.
211 * psymtab.h (require_partial_symbols): Change type of "verbose" to
212 bool.
213
012fc909
TT
2142019-11-22 Tom Tromey <tom@tromey.com>
215
216 * observable.h: Update comments.
217
c83d8d32
TT
2182019-11-22 Tom Tromey <tromey@adacore.com>
219
220 * ada-tasks.c (ada_task_is_alive): Make parameter const.
221 (print_ada_task_info): Don't try to fetch thread id if task is not
222 alive.
223
987012b8
CB
2242019-11-22 Christian Biesinger <cbiesinger@google.com>
225
226 * ada-exp.y: Update.
227 * ada-lang.c (sort_choices): Update.
228 (ada_print_symbol_signature): Update.
229 (resolve_subexp): Update.
230 (ada_parse_renaming): Update.
231 (ada_read_renaming_var_value): Update.
232 (lesseq_defined_than): Update.
233 (remove_extra_symbols): Update.
234 (remove_irrelevant_renamings): Update.
235 (ada_add_block_symbols): Update.
236 (ada_collect_symbol_completion_matches): Update.
237 (ada_is_renaming_symbol): Update.
238 (aggregate_assign_from_choices): Update.
239 (ada_evaluate_subexp): Update.
240 (ada_has_this_exception_support): Update.
241 (ada_is_non_standard_exception_sym): Update.
242 (ada_add_exceptions_from_frame): Update.
243 (ada_add_global_exceptions): Update.
244 (ada_print_subexp): Update.
245 * ax-gdb.c (gen_var_ref): Update.
246 (gen_maybe_namespace_elt): Update.
247 (gen_expr_for_cast): Update.
248 (gen_expr): Update.
249 * block.h: Update.
250 * blockframe.c (find_pc_partial_function): Update.
251 * breakpoint.c (print_breakpoint_location): Update.
252 (update_static_tracepoint): Update.
253 * btrace.c (ftrace_print_function_name): Update.
254 (ftrace_function_switched): Update.
255 * buildsym.c (find_symbol_in_list): Update.
256 * c-exp.y: Update.
257 * c-typeprint.c (c_print_typedef): Update.
258 (c_type_print_template_args): Update.
259 * cli/cli-cmds.c (edit_command): Update.
260 (list_command): Update.
261 (print_sal_location): Update.
262 * coffread.c (patch_opaque_types): Update.
263 (process_coff_symbol): Update.
264 (coff_read_enum_type): Update.
265 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
266 (convert_one_symbol): Update.
267 (hash_symname): Update.
268 (eq_symname): Update.
269 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
270 * compile/compile-cplus-types.c (debug_print_scope): Update.
271 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
272 * compile/compile-object-load.c (get_out_value_type): Update.
273 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
274 (search_symbol_list): Update.
275 (cp_lookup_symbol_imports_or_template): Update.
276 * cp-support.c (overload_list_add_symbol): Update.
277 * ctfread.c (psymtab_to_symtab): Update.
278 * dbxread.c (cp_set_block_scope): Update.
279 * dictionary.c (iter_match_first_hashed): Update.
280 (iter_match_next_hashed): Update.
281 (insert_symbol_hashed): Update.
282 (iter_match_next_linear): Update.
283 * dictionary.h: Update.
284 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
285 (locexpr_describe_location_piece): Update.
286 (locexpr_describe_location_1): Update.
287 (locexpr_generate_c_location): Update.
288 (loclist_describe_location): Update.
289 (loclist_generate_c_location): Update.
290 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
291 (read_func_scope): Update.
292 (process_enumeration_scope): Update.
293 (new_symbol): Update.
294 (dwarf2_const_value): Update.
295 (dwarf2_symbol_mark_computed): Update.
296 * eval.c (evaluate_funcall): Update.
297 (evaluate_subexp_standard): Update.
298 * expprint.c (print_subexp_standard): Update.
299 (dump_subexp_body_standard): Update.
300 * f-valprint.c (info_common_command_for_block): Update.
301 * findvar.c (get_hosting_frame): Update.
302 (default_read_var_value): Update.
303 * go-lang.c (go_symbol_package_name): Update.
304 * guile/scm-block.c (bkscm_print_block_smob): Update.
305 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
306 (gdbscm_symbol_name): Update.
307 (gdbscm_symbol_linkage_name): Update.
308 (gdbscm_symbol_print_name): Update.
309 * infcall.c (get_function_name): Update.
310 * infcmd.c (jump_command): Update.
311 (finish_command): Update.
312 * infrun.c (insert_exception_resume_breakpoint): Update.
313 * linespec.c (canonicalize_linespec): Update.
314 (create_sals_line_offset): Update.
315 (convert_linespec_to_sals): Update.
316 (complete_label): Update.
317 (find_label_symbols_in_block): Update.
318 * m2-typeprint.c (m2_print_typedef): Update.
319 * mdebugread.c (mdebug_reg_to_regnum): Update.
320 (parse_symbol): Update.
321 (mylookup_symbol): Update.
322 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
323 (list_args_or_locals): Update.
324 * objc-lang.c (compare_selectors): Update.
325 (info_selectors_command): Update.
326 (compare_classes): Update.
327 (info_classes_command): Update.
328 (find_imps): Update.
329 * p-typeprint.c (pascal_print_typedef): Update.
330 * printcmd.c (build_address_symbolic): Update.
331 (info_address_command): Update.
332 (print_variable_and_value): Update.
333 * python/py-framefilter.c (extract_sym): Update.
334 (py_print_single_arg): Update.
335 * python/py-symbol.c (sympy_str): Update.
336 (sympy_get_name): Update.
337 (sympy_get_linkage_name): Update.
338 * python/python.c (gdbpy_rbreak): Update.
339 * record-btrace.c (btrace_get_bfun_name): Update.
340 (btrace_call_history): Update.
341 * rust-lang.c (rust_print_typedef): Update.
342 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
343 * stabsread.c (stab_reg_to_regnum): Update.
344 (define_symbol): Update.
345 (read_enum_type): Update.
346 (common_block_end): Update.
347 (cleanup_undefined_types_1): Update.
348 (scan_file_globals): Update.
349 * stack.c (print_frame_arg): Update.
350 (print_frame_args): Update.
351 (find_frame_funname): Update.
352 (info_frame_command_core): Update.
353 (iterate_over_block_locals): Update.
354 (print_block_frame_labels): Update.
355 (do_print_variable_and_value): Update.
356 (iterate_over_block_arg_vars): Update.
357 (return_command): Update.
358 * symmisc.c (dump_symtab_1): Update.
359 (print_symbol): Update.
360 * symtab.c (eq_symbol_entry): Update.
361 (symbol_cache_dump): Update.
362 (lookup_language_this): Update.
363 (find_pc_sect_line): Update.
364 (skip_prologue_sal): Update.
365 (symbol_search::compare_search_syms): Update.
366 (treg_matches_sym_type_name): Update.
367 (search_symbols): Update.
368 (print_symbol_info): Update.
369 (rbreak_command): Update.
370 (completion_list_add_symbol): Update.
371 (find_gnu_ifunc): Update.
372 (get_symbol_address): Update.
373 (search_module_symbols): Update.
374 (info_module_subcommand): Update.
375 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
376 (SYMBOL_LINKAGE_NAME): Remove.
377 (SYMBOL_DEMANGLED_NAME): Remove.
378 (SYMBOL_PRINT_NAME): Remove.
379 (SYMBOL_SEARCH_NAME): Remove.
380 * tracepoint.c (set_traceframe_context): Update.
381 (validate_actionline): Update.
382 (collection_list::collect_symbol): Update.
383 (encode_actions_1): Update.
384 (info_scope_command): Update.
385 (print_one_static_tracepoint_marker): Update.
386 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
387 * valops.c (address_of_variable): Update.
388 (find_overload_match): Update.
389 (find_oload_champ): Update.
390
c9d95fa3
CB
3912019-11-22 Christian Biesinger <cbiesinger@google.com>
392
393 * ada-lang.c (ada_lookup_simple_minsym): Update.
394 (ada_collect_symbol_completion_matches): Update.
395 * ada-tasks.c (read_atcb): Update.
396 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
397 (amd64_windows_skip_trampoline_code): Update.
398 * arm-tdep.c (skip_prologue_function): Update.
399 (arm_skip_stack_protector): Update.
400 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
401 (arm_wince_skip_main_prologue): Update.
402 * ax-gdb.c (gen_expr): Update.
403 * block.c (call_site_for_pc): Update.
404 * blockframe.c (find_pc_partial_function): Update.
405 * breakpoint.c (set_breakpoint_location_function): Update.
406 * btrace.c (ftrace_print_function_name): Update.
407 (ftrace_function_switched): Update.
408 * c-valprint.c (print_unpacked_pointer): Update.
409 * coffread.c (coff_symfile_read): Update.
410 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
411 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
412 * dwarf-index-write.c (write_psymbols): Update.
413 * dwarf2loc.c (call_site_to_target_addr): Update.
414 (func_verify_no_selftailcall): Update.
415 (tailcall_dump): Update.
416 (call_site_find_chain_1): Update.
417 (dwarf_expr_reg_to_entry_parameter): Update.
418 * elfread.c (elf_gnu_ifunc_record_cache): Update.
419 * eval.c (evaluate_funcall): Update.
420 (evaluate_subexp_standard): Update.
421 (evaluate_subexp_for_sizeof): Update.
422 * expprint.c (print_subexp_standard): Update.
423 (dump_subexp_body_standard): Update.
424 * frame.c (get_prev_frame_always_1): Update.
425 * frv-tdep.c (frv_skip_main_prologue): Update.
426 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
427 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
428 (gnuv3_get_typename_from_type_info): Update.
429 (gnuv3_skip_trampoline): Update.
430 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
431 * i386-tdep.c (i386_skip_main_prologue): Update.
432 (i386_pe_skip_trampoline_code): Update.
433 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
434 * infcall.c (get_function_name): Update.
435 * linespec.c (minsym_found): Update.
436 * linux-fork.c (info_checkpoints_command): Update.
437 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
438 (m32c_m16c_pointer_to_address): Update.
439 * maint.c (maintenance_translate_address): Update.
440 * minsyms.c (add_minsym_to_hash_table): Update.
441 (add_minsym_to_demangled_hash_table): Update.
442 (lookup_minimal_symbol_mangled): Update.
443 (lookup_minimal_symbol_demangled): Update.
444 (lookup_minimal_symbol_linkage): Update.
445 (lookup_minimal_symbol_text): Update.
446 (lookup_minimal_symbol_by_pc_name): Update.
447 (minimal_symbol_is_less_than): Update.
448 (compact_minimal_symbols): Update.
449 (build_minimal_symbol_hash_tables): Update.
450 (find_solib_trampoline_target): Update.
451 * mips-tdep.c (mips_stub_frame_sniffer): Update.
452 (mips_skip_pic_trampoline_code): Update.
453 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
454 * objc-lang.c (info_selectors_command): Update.
455 (info_classes_command): Update.
456 (find_methods): Update.
457 (find_imps): Update.
458 * p-valprint.c (pascal_val_print): Update.
459 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
460 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
461 * printcmd.c (build_address_symbolic): Update.
462 (info_symbol_command): Update.
463 * psymtab.c (psymbol_name_matches): Update.
464 (match_partial_symbol): Update.
465 (lookup_partial_symbol): Update.
466 (print_partial_symbols): Update.
467 (sort_pst_symbols): Update.
468 (maintenance_check_psymtabs): Update.
469 * python/py-framefilter.c (py_print_frame): Update.
470 * python/python.c (gdbpy_rbreak): Update.
471 * record-btrace.c (btrace_get_bfun_name): Update.
472 (btrace_call_history): Update.
473 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
474 (rs6000_skip_trampoline_code): Update.
475 * sol-thread.c (info_cb): Update.
476 * stabsread.c (scan_file_globals): Update.
477 * stack.c (find_frame_funname): Update.
478 (info_frame_command_core): Update.
479 * symmisc.c (dump_msymbols): Update.
480 * symtab.c (symbol_natural_name): Rename to..,
481 (general_symbol_info::natural_name): ...this.
482 (symbol_demangled_name): Rename to...
483 (general_symbol_info::demangled_name): ...this.
484 (symbol_search_name): Rename to...
485 (general_symbol_info::search_name): ...this.
486 (symbol_matches_search_name): Update.
487 (find_pc_sect_line): Update.
488 (skip_prologue_sal): Update.
489 (search_symbols): Update.
490 (print_msymbol_info): Update.
491 (rbreak_command): Update.
492 (completion_list_add_msymbol): Update.
493 (completion_list_objc_symbol): Update.
494 (get_msymbol_address): Update.
495 * symtab.h (struct general_symbol_info): Add member functions
496 natural_name (), linkage_name (), print_name (), demangled_name (),
497 and search_name ().
498 (SYMBOL_NATURAL_NAME): Update.
499 (symbol_natural_name): Move to a member function on general_symbol_info.
500 (SYMBOL_DEMANGLED_NAME): Update.
501 (symbol_demangled_name): Move to a member function on
502 general_symbol_info.
503 (SYMBOL_SEARCH_NAME): Update.
504 (symbol_search_name): Move to a member function on general_symbol_info.
505 (MSYMBOL_NATURAL_NAME): Remove.
506 (MSYMBOL_LINKAGE_NAME): Remove.
507 (MSYMBOL_PRINT_NAME): Remove.
508 (MSYMBOL_DEMANGLED_NAME): Remove.
509 (MSYMBOL_SEARCH_NAME): Remove.
510 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
511
f8bab2d6
CB
5122019-11-22 Christian Biesinger <cbiesinger@google.com>
513
514 * symtab.c (create_demangled_names_hash): Use per_bfd->
515 minimal_symbol_count for computing the initial size, if greater
516 than our default size.
517
85e7588d
TV
5182019-11-22 Tom de Vries <tdevries@suse.de>
519
520 * contrib/words.sh: Improve words extraction.
521
f6180073
TV
5222019-11-22 Tom de Vries <tdevries@suse.de>
523
524 * contrib/words.sh: Combine sed invocations.
525
f10ffa41
CB
5262019-11-21 Christian Biesinger <cbiesinger@google.com>
527
528 * Makefile.in: Update.
529 * demangle.c: Rename to...
530 * gdb-demangle.c: ..this.
531 (is_cplus_marker): Change return type to bool.
532 (_initialize_demangler): Rename to...
533 (_initialize_gdb_demangle): ...this.
534 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
535 * symtab.h (demangle): Remove declaration; instead include
536 gdb-demangle.h.
537
6ba18521
TT
5382019-11-21 Tom Tromey <tromey@adacore.com>
539
540 * gdbsupport/format.c (format_pieces): Parse %I64d.
541 * unittests/format_pieces-selftests.c (test_windows_formats): New
542 function.
543 (run_tests): Call it.
544
34877895
PJ
5452019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
546
547 Byte reverse display of variables with DW_END_big, DW_END_little
548 (DW_AT_endianity) dwarf attributes if different than the native
549 byte order.
550 * ada-lang.c (ada_value_binop):
551 Use type_byte_order instead of gdbarch_byte_order.
552 * ada-valprint.c (printstr):
553 (ada_val_print_string):
554 * ada-lang.c (value_pointer):
555 (ada_value_binop):
556 Use type_byte_order instead of gdbarch_byte_order.
557 * c-lang.c (c_get_string):
558 Use type_byte_order instead of gdbarch_byte_order.
559 * c-valprint.c (c_val_print_array):
560 Use type_byte_order instead of gdbarch_byte_order.
561 * cp-valprint.c (cp_print_class_member):
562 Use type_byte_order instead of gdbarch_byte_order.
563 * dwarf2loc.c (rw_pieced_value):
564 Use type_byte_order instead of gdbarch_byte_order.
565 * dwarf2read.c (read_base_type): Handle DW_END_big,
566 DW_END_little
567 * f-lang.c (f_get_encoding):
568 Use type_byte_order instead of gdbarch_byte_order.
569 * findvar.c (default_read_var_value):
570 Use type_byte_order instead of gdbarch_byte_order.
571 * gdbtypes.c (check_types_equal):
572 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
573 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
574 and TYPE_ENDIANITY_LITTLE if set.
575 (type_byte_order): new function.
576 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
577 (struct main_type) <flag_endianity_not_default>:
578 New field.
579 (type_byte_order): New function.
580 * infcmd.c (default_print_one_register_info):
581 Use type_byte_order instead of gdbarch_byte_order.
582 * p-lang.c (pascal_printstr):
583 Use type_byte_order instead of gdbarch_byte_order.
584 * p-valprint.c (pascal_val_print):
585 Use type_byte_order instead of gdbarch_byte_order.
586 * printcmd.c (print_scalar_formatted):
587 Use type_byte_order instead of gdbarch_byte_order.
588 * solib-darwin.c (darwin_current_sos):
589 Use type_byte_order instead of gdbarch_byte_order.
590 * solib-svr4.c (solib_svr4_r_ldsomap):
591 Use type_byte_order instead of gdbarch_byte_order.
592 * stap-probe.c (stap_modify_semaphore):
593 Use type_byte_order instead of gdbarch_byte_order.
594 * target-float.c (target_float_same_format_p):
595 Use type_byte_order instead of gdbarch_byte_order.
596 * valarith.c (scalar_binop):
597 (value_bit_index):
598 Use type_byte_order instead of gdbarch_byte_order.
599 * valops.c (value_cast):
600 Use type_byte_order instead of gdbarch_byte_order.
601 * valprint.c (generic_emit_char):
602 (generic_printstr):
603 (val_print_string):
604 Use type_byte_order instead of gdbarch_byte_order.
605 * value.c (unpack_long):
606 (unpack_bits_as_long):
607 (unpack_value_bitfield):
608 (modify_field):
609 (pack_long):
610 (pack_unsigned_long):
611 Use type_byte_order instead of gdbarch_byte_order.
612 * findvar.c (unsigned_pointer_to_address):
613 (signed_pointer_to_address):
614 (unsigned_address_to_pointer):
615 (address_to_signed_pointer):
616 (default_read_var_value):
617 (default_value_from_register):
618 Use type_byte_order instead of gdbarch_byte_order.
619 * gnu-v3-abi.c (gnuv3_make_method_ptr):
620 Use type_byte_order instead of gdbarch_byte_order.
621 * riscv-tdep.c (riscv_print_one_register_info):
622 Use type_byte_order instead of gdbarch_byte_order.
623
87fb00ea
SM
6242019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
625
626 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
627 (current_ui_gdb_stdin_ptr): Likewise.
628 (current_ui_gdb_stderr_ptr): Likewise.
629 (current_ui_gdb_stdlog_ptr): Likewise.
630 (current_ui_current_uiout_ptr): Likewise.
631 (gen_ret_current_ui_field_ptr): Remove.
632
65d1cd5f
TV
6332019-11-21 Tom de Vries <tdevries@suse.de>
634
635 PR gdb/24956
636 * cli/cli-script.c (execute_control_command): Only switch to
637 INTERP_CONSOLE's ui_out when INTERP_MI is active.
638
9f6ad286
TT
6392019-11-19 Tom Tromey <tom@tromey.com>
640
641 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
642 Now static. Change type of "name".
643 (tui_set_win_height_command): Don't copy "arg".
644 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
645 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
646
435d3d88
AT
6472019-11-19 Ali Tamur <tamur@google.com>
648
649 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
650 "if (attr != nullptr)".
651 (dwarf2_find_base_address): Likewise.
652 (dwarf2_build_include_psymtabs): Likewise.
653 (read_cutu_die_from_dwo): Likewise.
654 (read_func_scope): Likewise.
655 (read_call_site_scope): Likewise.
656 (dwarf2_get_pc_bounds): Likewise.
657 (dwarf2_record_block_ranges): Likewise.
658 (dwarf2_add_field): Likewise.
659 (dwarf2_add_member_fn): Likewise.
660 (read_structure_type): Likewise.
661 (read_enumeration_type): Likewise.
662 (read_array_type): Likewise.
663 (read_array_order): Likewise.
664 (read_set_type): Likewise.
665 (read_common_block): Likewise.
666 (read_tag_reference_type): Likewise.
667 (read_tag_string_type): Likewise.
668 (read_subroutine_type): Likewise.
669 (read_base_type): Likewise.
670 (read_subrange_type): Likewise.
671 (new_symbol): Likewise.
672 (prepare_one_comp_unit): Likewise.
673
c9739b6a
TT
6742019-11-19 Tom Tromey <tromey@adacore.com>
675
676 * windows-nat.c (windows_nat_target::attach): Include GetLastError
677 result in error when DebugActiveProcess fails.
678
494409bb
SDJ
6792019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
680 Pedro Alves <palves@redhat.com>
681
682 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
683 * target.c (target_stack::push): Call 'unpush' if there's a
684 target on top of the stack.
685
2e953aca
PW
6862019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
687
688 * python/py-block.c (blpy_dealloc): Call tp_free.
689 (blpy_block_syms_dealloc): Likewise.
690 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
691 * python/py-inferior.c (infpy_dealloc): Likewise.
692 * python/py-lazy-string.c (stpy_dealloc): Likewise.
693 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
694 * python/py-symbol.c (sympy_dealloc): Likewise.
695 * python/py-symtab.c (stpy_dealloc): Likewise.
696 * python/py-type.c (typy_iterator_dealloc): Likewise.
697
6edc43ec
CB
6982019-11-18 Christian Biesinger <cbiesinger@google.com>
699
700 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
701 constructor instead of using a class initializer.
702
cd850b40
CB
7032019-11-15 Christian Biesinger <cbiesinger@google.com>
704
705 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
706 * configure: Regenerate.
707 * configure.ac: Don't source common.host.
708 * gdbsupport/common.host: Remove.
709 * gdbsupport/mingw-strerror.c: Remove.
710 * gdbsupport/posix-strerror.c: Rename to...
711 * gdbsupport/safe-strerror.c: ...this.
712
53fea9c7
CB
7132019-11-15 Christian Biesinger <cbiesinger@google.com>
714
715 * maint.c (scoped_command_stats::print_time): Use localtime_r
716 instead of localtime (provided through gnulib if necessary).
717 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
718 of ctime.
719
f8e27d88
CB
7202019-11-15 Christian Biesinger <cbiesinger@google.com>
721
722 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
723 avoid compile errors.
724
5abebf3c
CB
7252019-11-15 Christian Biesinger <cbiesinger@google.com>
726
727 * config.in: Regenerate.
728 * configure: Regenerate.
729 * gdbsupport/common.m4: No longer check for strerror_r.
730 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
731 POSIX version of strerror_r, now that gnulib provides it if
732 necessary.
733
9a351667
CB
7342019-11-14 Christian Biesinger <cbiesinger@google.com>
735
736 * README (`configure' options): Update.
737
55708e99
TT
7382019-11-14 Tom Tromey <tromey@adacore.com>
739
740 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
741 expected type for the RHS if the LHS is a convenience variable.
742
4b09bb2e
SM
7432019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
744
745 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
746 Provide explicit default and copy constructor.
747
bd454f8b
PW
7482019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
749
750 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
751 only call Py_INCREF (newbp) in the bppy_pending_object case.
752
d1aa3cf0
TT
7532019-11-13 Tom Tromey <tromey@adacore.com>
754
755 PR build/25182:
756 * psympriv.h (partial_symbol): Remove static assert.
757 * symtab.h (general_symbol_info, symbol): Remove static assert.
758
e06f3d6e
AB
7592019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
760
761 * gdbsupport/format.c (format_pieces::format_pieces): Support
762 printf 'z' size modifier.
763 * gdbsupport/format.h (enum argclass): Add size_t_arg.
764 * printcmd.c (ui_printf): Handle size_t_arg.
765 * ui-out.c (ui_out::vmessage): Likewise.
766 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
767 function.
768 (run_tests): Call test_format_int_sizes.
769
468c0cbb
CB
7702019-11-12 Christian Biesinger <cbiesinger@google.com>
771
772 * ada-exp.y (write_ambiguous_var): Update.
773 * buildsym.c (add_symbol_to_list): Update.
774 * dwarf2read.c (read_variable): Update.
775 (new_symbol): Update.
776 * jit.c (finalize_symtab): Update.
777 * language.c (language_alloc_type_symbol): Update.
778 * symtab.c (fixup_symbol_section): Update.
779 (initialize_objfile_symbol_1): Move code to...
780 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
781 (allocate_symbol): Update.
782 (allocate_template_symbol): Update.
783 (get_symbol_address): Update.
784 * symtab.h (struct symbol): Inherit from general_symbol_info instead
785 of having as a field, and add a constructor.
786 (SYMBOL_VALUE): Update.
787 (SYMBOL_VALUE_ADDRESS): Update.
788 (SET_SYMBOL_VALUE_ADDRESS): Update.
789 (SYMBOL_VALUE_BYTES): Update.
790 (SYMBOL_VALUE_COMMON_BLOCK): Update.
791 (SYMBOL_BLOCK_VALUE): Update.
792 (SYMBOL_VALUE_CHAIN): Update.
793 (SYMBOL_LANGUAGE): Update.
794 (SYMBOL_SECTION): Update.
795 (SYMBOL_OBJ_SECTION): Update.
796 (SYMBOL_SET_LANGUAGE): Update.
797 (SYMBOL_SET_LINKAGE_NAME): Update.
798 (SYMBOL_SET_NAMES): Update.
799 (SYMBOL_NATURAL_NAME): Update.
800 (SYMBOL_LINKAGE_NAME): Update.
801 (SYMBOL_DEMANGLED_NAME): Update.
802 (SYMBOL_SEARCH_NAME): Update.
803 (SYMBOL_MATCHES_SEARCH_NAME): Update.
804 (struct symbol): Update.
805 (struct template_symbol): Update.
806 (struct rust_vtable_symbol): Update.
807 * xcoffread.c (SYMBOL_DUP): Update.
808
ed2c82c3
TT
8092019-11-12 Tom Tromey <tom@tromey.com>
810
811 * tui/tui-layout.c (show_layout): Set current_layout.
812 (show_source_disasm_command, show_data)
813 (show_source_or_disasm_and_command): Don't set current_layout.
814
d9fcefd5
TT
8152019-11-12 Tom Tromey <tom@tromey.com>
816
817 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
818
45e42163
TT
8192019-11-12 Tom Tromey <tom@tromey.com>
820
821 * tui/tui-win.c (resize_message): New global.
822 (show_tui_resize_message): New function.
823 (tui_async_resize_screen): Print message if requested.
824 (_initialize_tui_win): Add tui-resize-message setting.
825 * NEWS: Add entry for new commands.
826
c86d74cc
TT
8272019-11-11 Tom Tromey <tom@tromey.com>
828
829 * tui/tui.c (tui_initialize_readline): Add new bindable readline
830 functions.
831
7b7b9424
CB
8322019-11-11 Christian Biesinger <cbiesinger@google.com>
833
834 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
835
086baaf1
AB
8362019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
837
838 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
839 function.
840 * python/python-internal.h (gdbpy_lookup_static_symbols):
841 Declare new function.
842 * python/python.c (python_GdbMethods): Add
843 gdb.lookup_static_symbols method.
844 * NEWS: Mention gdb.lookup_static_symbols.
845
09ff83af
AB
8462019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
847
848 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
849 static block of current object file first. Also fix typo in
850 header comment.
851
eb2dd8df
AB
8522019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
853
854 * stack.c (set_last_displayed_sal): Delete.
855 (last_displayed_sal_valid): Delete.
856 (last_displayed_pspace): Delete.
857 (last_displayed_addr): Delete.
858 (last_displayed_symtab): Delete.
859 (last_displayed_line): Delete.
860 (class last_displayed_symtab_info_type): New.
861 (last_displayed_symtab_info): New static global variable.
862 (print_frame_info): Call methods on last_displayed_symtab_info.
863 (clear_last_displayed_sal): Update header comment, and make use of
864 last_displayed_symtab_info.
865 (last_displayed_sal_is_valid): Likewise.
866 (get_last_displayed_pspace): Likewise.
867 (get_last_displayed_addr): Likewise.
868 (get_last_displayed_symtab): Likewise.
869 (get_last_displayed_line): Likewise.
870 (get_last_displayed_sal): Likewise.
871 * stack.h (clear_last_displayed_sal): Update header comment.
872 (last_displayed_sal_is_valid): Likewise.
873 (get_last_displayed_pspace): Likewise.
874 (get_last_displayed_addr): Likewise.
875 (get_last_displayed_symtab): Likewise.
876 (get_last_displayed_line): Likewise.
877 (get_last_displayed_sal): Likewise.
878
62137775
AB
8792019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
880
881 * stack.c (frame_show_address): Convert return type to bool.
882 * stack.h (frame_show_address): Likewise, and update header
883 comment.
884
cf57ad6d
AB
8852019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
886
887 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
888 * unittests/vec-utils-selftests.c: New file.
889 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
890
0b026263
TT
8912019-11-10 Tom Tromey <tom@tromey.com>
892
893 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
894 (tui_highlight_win): Likewise.
895 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
896 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
897 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
898 Don't set can_highlight.
899
b049ce2d
TT
9002019-11-10 Tom Tromey <tom@tromey.com>
901
902 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
903 Remove unused declaration.
904
992a7040
TT
9052019-11-08 Tom Tromey <tromey@adacore.com>
906
907 * top.c (read_command_file): Update.
908 (command_line_input): Make return type const.
909 * python/py-gdb-readline.c: Update.
910 * linespec.c (decode_line_2): Update.
911 * defs.h (command_line_input): Make return type const.
912 * cli/cli-script.c (read_next_line): Make return type const.
913 * ada-lang.c (get_selections): Update.
914
ca3a04f6
CB
9152019-11-06 Christian Biesinger <cbiesinger@google.com>
916
917 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
918 * mi/mi-main.c (output_cores): Likewise.
919 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
920 (linux_xfer_osdata_modules): Likewise.
921 * remote.c (register_remote_support_xml): Likewise.
922 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
923 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
924
e0eac551
TT
9252019-11-06 Tom Tromey <tom@tromey.com>
926
927 * tui/tui-interp.c: Don't include readline.h.
928 * tui/tui-hooks.c: Don't include readline.h.
929 * symmisc.c: Include tilde.h, not readline.h.
930 * symfile.c: Include tilde.h, not readline.h.
931 * source.c: Include tilde.h, not readline.h.
932 * solib.c: Include tilde.h, not readline.h.
933 * psymtab.c: Include tilde.h, not readline.h.
934 * exec.c: Include tilde.h, not readline.h.
935 * corelow.c: Include tilde.h, not readline.h.
936 * cli/cli-dump.c: Include tilde.h, not readline.h.
937 * cli/cli-cmds.c: Don't include readline.h.
938
825165c5
TT
9392019-11-05 Tom Tromey <tom@tromey.com>
940
941 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
942 (tui_disassemble): Set addr_size.
943 (tui_disasm_window::set_contents): Use addr_size.
944
91ae903f
TT
9452019-11-05 Tom Tromey <tom@tromey.com>
946
947 * rust-lang.c (rust_language_defn): Update.
948 * python/py-value.c (valpy_string): Call c_get_string.
949 * p-lang.c (pascal_language_defn): Update.
950 * opencl-lang.c (opencl_language_defn): Update.
951 * objc-lang.c (objc_language_defn): Update.
952 * m2-lang.c (m2_language_defn): Update.
953 * language.c (unknown_language_defn, auto_language_defn): Update.
954 (default_get_string): Remove.
955 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
956 * go-lang.c (go_language_defn): Update.
957 * f-lang.c (f_language_defn): Update.
958 * d-lang.c (d_language_defn): Update.
959 * c-lang.c (c_language_defn, cplus_language_defn)
960 (asm_language_defn, minimal_language_defn): Update.
961 * ada-lang.c (ada_language_defn): Update.
962 * language.h (struct language_defn) <la_get_string>: Remove.
963 (LA_GET_STRING): Remove.
964 (default_get_string): Don't declare.
965
1df2f9ef
TT
9662019-11-05 Tom Tromey <tom@tromey.com>
967
968 * tui/tui-source.h (struct tui_source_window): Inline
969 constructor. Remove destructor.
970 <style_changed, m_observable>: Move to superclass.
971 * tui/tui-winsource.h (tui_copy_source_line): Declare.
972 (struct tui_source_window_base): Move private members to end.
973 <style_changed, m_observable>: Move from tui_source_window.
974 * tui/tui-winsource.c (tui_copy_source_line): Move from
975 tui-source.c. Rename from copy_source_line. Add special handling
976 for negative line number.
977 (tui_source_window_base::style_changed): Move from
978 tui_source_window.
979 (tui_source_window_base): Register observer.
980 (~tui_source_window_base): New.
981 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
982 rename.
983 (tui_source_window::set_contents): Use tui_copy_source_line.
984 (tui_source_window::tui_source_window): Move to tui-source.h.
985 (tui_source_window::~tui_source_window): Remove.
986 (tui_source_window::style_changed): Move to superclass.
987 * tui/tui-disasm.c (tui_disassemble): Create string file with
988 styling, when possible. Add "addr_size" parameter.
989 (tui_disasm_window::set_contents): Use tui_copy_source_line.
990 Don't compute maximum size.
991 (len_without_escapes): New function
992
5d051055
TT
9932019-11-05 Tom Tromey <tom@tromey.com>
994
995 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
996 std::string.
997 * tui/tui-winsource.c (tui_show_source_line): Update.
998 * tui/tui-source.c (tui_source_window::set_contents): Update.
999 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1000
ade7beea
CB
10012019-11-05 Christian Biesinger <cbiesinger@google.com>
1002
1003 * symtab.h (gdb_static_assert): Put && operator at the beginning
1004 of the line instead of the end.
1005
3573abe1
CB
10062019-11-04 Christian Biesinger <cbiesinger@google.com>
1007
1008 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1009 and sizeof (symbol).
1010 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1011
dae8b3eb
RO
10122019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1013
1014 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1015 * configure.host: Mark *-*-solaris2.10* obsolete.
1016 * configure.tgt: Mark Solaris < 11 obsolete.
1017 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1018 Update target triplet.
1019
5df96a4e
TT
10202019-11-01 Tom Tromey <tromey@adacore.com>
1021
1022 * utils.c (print_sys_errmsg): Simplify.
1023
b7481649
TT
10242019-11-01 Tom Tromey <tromey@adacore.com>
1025
1026 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1027
e48f6033
CB
10282019-11-01 Christian Biesinger <cbiesinger@google.com>
1029
1030 * configure: Regenerate.
1031 * configure.ac: Remove check for strerror_r.
1032 * gdbsupport/common.m4: Check for strerror_r.
1033
bd5766ec
LM
10342019-11-01 Luis Machado <luis.machado@linaro.org>
1035
1036 PR gdb/25124
1037
1038 * arm-tdep.c (arm_per_objfile): Rename to ...
1039 (arm_per_bfd): ... this.
1040 (arm_objfile_data_key): Rename to ...
1041 (arm_bfd_data_key): ... this.
1042 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1043 data.
1044 (arm_record_special_symbol): Likewise.
1045
e1709896
AB
10462019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1047
1048 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1049 end.
1050 * c-typeprint.c (c_print_typedef): Likewise.
1051 * f-typeprint.c (f_print_typedef): Likewise.
1052 * m2-typeprint.c (m2_print_typedef): Likewise.
1053 * p-typeprint.c (pascal_print_typedef): Likewise.
1054 * rust-lang.c (rust_print_typedef): Likewise.
1055 * symtab.c (print_symbol_info): Print a newline after calling
1056 typedef_print.
1057
165f8965
AB
10582019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1059
1060 * symtab.c (info_module_cmdlist): New variable.
1061 (info_module_command): New function.
1062 (search_module_symbols): New function.
1063 (info_module_subcommand): New function.
1064 (struct info_modules_var_func_options): New struct.
1065 (info_modules_var_func_options_defs): New variable.
1066 (make_info_modules_var_func_options_def_group): New function.
1067 (info_module_functions_command): New function.
1068 (info_module_variables_command): New function.
1069 (info_module_var_func_command_completer): New function.
1070 (_initialize_symtab): Register new 'info module functions' and
1071 'info module variables' commands.
1072 * symtab.h (typedef symbol_search_in_module): New typedef.
1073 (search_module_symbols): Declare new function.
1074 * NEWS: Mention new commands.
1075
59c35742
AB
10762019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1077
1078 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1079 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1080 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1081 MODULES_DOMAIN.
1082 (scan_partial_symbols): Only create partial module symbols for non
1083 declarations.
1084 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1085 and MODULES_DOMAIN.
1086 * symtab.c (search_domain_name): Likewise.
1087 (search_symbols): Likewise.
1088 (print_symbol_info): Likewise.
1089 (symtab_symbol_info): Likewise.
1090 (info_modules_command): New function.
1091 (_initialize_symtab): Register 'info modules' command.
1092 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1093 * NEWS: Mention new 'info modules' command.
1094
aed61d02
PW
10952019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1096
1097 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1098 and $_gdb_maint_setting_str.
1099
9ad9b77d
PW
11002019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1101
1102 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1103 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1104 (str_value_from_setting, gdb_setting_str_internal_fn)
1105 (gdb_maint_setting_str_internal_fn): New functions.
1106 (_initialize_cli_cmds): Define the new convenience functions.
1107 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1108 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1109
8d6efaa2
CB
11102019-10-31 Christian Biesinger <cbiesinger@google.com>
1111
1112 * agent.c (set_can_use_agent): When the setting is turned on,
1113 look up agent symbols if we don't have them yet.
1114 (agent_new_objfile): Don't look up agent symbols when the agent
1115 setting is off.
1116
33cb1647
CB
11172019-10-31 Christian Biesinger <cbiesinger@google.com>
1118
1119 * config.in: Regenerate.
1120
b231e86a
CB
11212019-10-31 Christian Biesinger <cbiesinger@google.com>
1122
1123 * configure: Regenerate.
1124 * configure.ac: Check for strerror_r.
1125 * gdbsupport/common-utils.h (safe_strerror): Change return value
1126 to const char * and document that this function is now threadsafe.
1127 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1128 thread_local and call strerror_r, if available.
1129 * utils.c (perror_string): Update.
1130 (print_sys_errmsg): Update.
1131
a2726d4f
LM
11322019-10-31 Luis Machado <luis.machado@linaro.org>
1133
1134 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1135 objfile_key.
1136 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1137 objfile to fetch per-bfd data.
1138 (arm_find_exidx_entry): Likewise.
1139
75cafaa6
CB
11402019-10-31 Christian Biesinger <cbiesinger@google.com>
1141
1142 * gdbsupport/agent.c (debug_agent): Change type to bool.
1143 (use_agent): Likewise.
1144 (all_agent_symbols_look_up): Likewise.
1145 (agent_loaded_p): Change return value to bool.
1146 (agent_look_up_symbols): Update.
1147 (agent_capability_check): Change return value to bool.
1148 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1149 (debug_agent): Change type to bool.
1150 (use_agent): Likewise.
1151 (agent_capability_check): Change return value to bool.
1152
808590ec
CB
11532019-10-30 Christian Biesinger <cbiesinger@google.com>
1154
1155 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1156 (build_minimal_symbol_hash_tables): Code to clear the table moved
1157 to clear_minimal_symbol_hash_tables.
1158 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1159 when needed.
1160
f18ad8a1
SM
11612019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1162
1163 * infcmd.c: Remove includes.
1164 * infrun.c: Remove includes.
1165
de93309a
SM
11662019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1167
1168 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1169 (grow_vect): Remove declaration.
1170 (ada_type_of_array): Remove declaration.
1171 (ada_update_initial_language): Remove declaration.
1172 (ada_fold_name): Remove declaration.
1173 (ada_fill_in_ada_prototype): Remove declaration.
1174 (user_select_syms): Remove declaration.
1175 (get_selections): Remove declaration.
1176 (ada_tag_type): Remove declaration.
1177 (ada_value_tag): Remove declaration.
1178 (ada_is_others_clause): Remove declaration.
1179 (ada_in_variant): Remove declaration.
1180 (ada_value_struct_elt): Remove declaration.
1181 (ada_attribute_name): Remove declaration.
1182 (ada_system_address_type): Remove declaration.
1183 * ada-lang.c (ada_watch_location_expression): Make static.
1184 (GROW_VECT): Move here from ada-lang.h.
1185 (grow_vect): Make static.
1186 (ada_update_initial_language): Make static.
1187 (ada_fold_name): Make static.
1188 (ada_type_of_array): Make static.
1189 (encoded_ordered_before): Move up.
1190 (sort_choices): Move up.
1191 (print_signatures): Move up.
1192 (ada_print_symbol_signature): Move up.
1193 (get_selections): Move up and make static.
1194 (user_select_syms): Move up and make static.
1195 (ada_value_struct_elt): Move up and make static.
1196 (ada_tag_type): Make static.
1197 (ada_value_tag): Make static.
1198 (ada_is_others_clause): Make static.
1199 (ada_in_variant): Make static.
1200 (ada_attribute_name): Make static.
1201
cdc46a9f
SM
12022019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1203
1204 * ada-lang.c: Remove includes.
1205 * ada-typeprint.c: Remove includes.
1206 * ada-valprint.c: Remove includes.
1207
90421c56
SM
12082019-10-29 Simon Marchi <simon.marchi@efficios.com>
1209
1210 * addrmap.c: Add static assertions of type size, moved from
1211 _initialize_addrmap.
1212 (_initialize_addrmap): Remove.
1213
31edb802
CB
12142019-10-29 Christian Biesinger <cbiesinger@google.com>
1215
1216 * coffread.c (record_minimal_symbol): Update.
1217 (process_coff_symbol): Update.
1218 * dbxread.c (read_dbx_symtab): Update.
1219 * dwarf2read.c (add_partial_symbol): Update.
1220 (fixup_go_packaging): Update.
1221 (load_partial_dies): Update.
1222 (new_symbol): Update.
1223 * elfread.c (record_minimal_symbol): Change signature to use
1224 gdb::string_view instead of name+len.
1225 (elf_symtab_read): Update.
1226 (elf_rel_plt_read): Update.
1227 * mdebugread.c (parse_partial_symbols): Update.
1228 (handle_psymbol_enumerators): Update.
1229 (new_symbol): Update.
1230 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1231 to use gdb::string_view instead of name+len.
1232 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1233 * psympriv.h (add_psymbol_to_list): Likewise.
1234 * psymtab.c (add_psymbol_to_bcache): Likewise.
1235 (add_psymbol_to_list): Likewise.
1236 * stabsread.c (define_symbol): Update.
1237 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1238 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1239 (symbol_set_names): Likewise.
1240 * xcoffread.c (scan_xcoff_symtab): Update.
1241
0c921b21
CB
12422019-10-29 Christian Biesinger <cbiesinger@google.com>
1243
1244 * symtab.h (symbol_set_names): Document that copy_name must be
1245 set to true for non-nullterminated strings.
1246 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1247 linkage_name if the entry was not found and we need to demangle.
1248
35e65c49
CB
12492019-10-29 Christian Biesinger <cbiesinger@google.com>
1250
1251 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1252 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1253 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1254 * gdbsupport/gdb_binary_search.h: New file.
1255
ed2a2229
CB
12562019-10-29 Christian Biesinger <cbiesinger@google.com>
1257
1258 * NEWS: Mention new --with-system-gdbinit-dir option.
1259 * config.in: Regenerate.
1260 * configure: Regenerate.
1261 * configure.ac: Add new option --with-system-gdbinit-dir.
1262 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1263 for a ".gdb" suffix.
1264 * main.c (get_init_files): Change system_gdbinit argument to
1265 a vector and return the files in SYSTEM_GDBINIT_DIR in
1266 addition to SYSTEM_GDBINIT.
1267 (captured_main_1): Update.
1268 (print_gdb_help): Update.
1269 * top.c (print_gdb_configuration): Also print the value of
1270 SYSTEM_GDBINIT_DIR.
1271
87f34879
CB
12722019-10-28 Christian Biesinger <cbiesinger@google.com>
1273
1274 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1275 that takes gdb::string_view arguments.
1276
30baf67b
TV
12772019-10-26 Tom de Vries <tdevries@suse.de>
1278
1279 * aarch64-linux-tdep.c: Fix typos in comments.
1280 * aarch64-tdep.c: Same.
1281 * ada-lang.c: Same.
1282 * amd64-nat.c: Same.
1283 * arc-tdep.c: Same.
1284 * arch/aarch64-insn.c: Same.
1285 * block.c: Same.
1286 * breakpoint.h: Same.
1287 * btrace.h: Same.
1288 * c-varobj.c: Same.
1289 * cli/cli-decode.c: Same.
1290 * cli/cli-script.c: Same.
1291 * cli/cli-utils.h: Same.
1292 * coff-pe-read.c: Same.
1293 * coffread.c: Same.
1294 * compile/compile-cplus-symbols.c: Same.
1295 * compile/compile-object-run.c: Same.
1296 * completer.c: Same.
1297 * corelow.c: Same.
1298 * cp-support.c: Same.
1299 * demangle.c: Same.
1300 * dwarf-index-write.c: Same.
1301 * dwarf2-frame.c: Same.
1302 * dwarf2-frame.h: Same.
1303 * eval.c: Same.
1304 * frame-base.h: Same.
1305 * frame.h: Same.
1306 * gdbcmd.h: Same.
1307 * gdbtypes.h: Same.
1308 * gnu-nat.c: Same.
1309 * guile/scm-objfile.c: Same.
1310 * i386-tdep.c: Same.
1311 * i386-tdep.h: Same.
1312 * infcall.c: Same.
1313 * infcall.h: Same.
1314 * linux-nat.c: Same.
1315 * m68k-tdep.c: Same.
1316 * macroexp.c: Same.
1317 * memattr.c: Same.
1318 * mi/mi-cmd-disas.c: Same.
1319 * mi/mi-getopt.h: Same.
1320 * mi/mi-main.c: Same.
1321 * minsyms.c: Same.
1322 * nat/aarch64-sve-linux-sigcontext.h: Same.
1323 * objfiles.h: Same.
1324 * ppc-linux-nat.c: Same.
1325 * ppc-linux-tdep.c: Same.
1326 * ppc-tdep.h: Same.
1327 * progspace.h: Same.
1328 * prologue-value.h: Same.
1329 * python/py-evtregistry.c: Same.
1330 * python/py-instruction.h: Same.
1331 * record-btrace.c: Same.
1332 * record-full.c: Same.
1333 * remote.c: Same.
1334 * rs6000-tdep.c: Same.
1335 * ser-tcp.c: Same.
1336 * sol-thread.c: Same.
1337 * sparc-sol2-tdep.c: Same.
1338 * sparc64-tdep.c: Same.
1339 * stabsread.c: Same.
1340 * symfile.c: Same.
1341 * symtab.h: Same.
1342 * target.c: Same.
1343 * tracepoint.c: Same.
1344 * tui/tui-data.h: Same.
1345 * tui/tui-io.c: Same.
1346 * tui/tui-win.c: Same.
1347 * tui/tui.c: Same.
1348 * unittests/rsp-low-selftests.c: Same.
1349 * user-regs.h: Same.
1350 * utils.c: Same.
1351 * utils.h: Same.
1352 * valarith.c: Same.
1353 * valops.c: Same.
1354 * valprint.c: Same.
1355 * valprint.h: Same.
1356 * value.c: Same.
1357 * value.h: Same.
1358 * varobj.c: Same.
1359 * x86-nat.h: Same.
1360 * xtensa-tdep.c: Same.
1361
1834d45f
AT
13622019-10-25 Ali Tamur <tamur@google.com>
1363
1364 * charset.c (find_charset_names): Reflect API change.
1365
5396ae17
CB
13662019-10-25 Christian Biesinger <cbiesinger@google.com>
1367
1368 * symtab.c (struct demangled_name_entry): Change demangled name
1369 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1370 part of the struct anymore.
1371 (symbol_set_names): No longer obstack allocate + copy the demangled
1372 name, just store the allocated name from bfd.
1373
93878f47
TT
13742019-10-25 Tom Tromey <tromey@adacore.com>
1375
1376 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1377 (bsearch_cie_cmp, add_cie): Remove.
1378 (find_cie): Reimplement.
1379 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1380 (dwarf2_build_frame_info): Update.
1381
7b71fc97
L
13822019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1383
1384 PR gdb/25126
1385 * symfile.c (reread_symbols): Call forget_cached_source_info to
1386 clear the stale source cache.
1387
cbb5a2ea
CB
13882019-10-24 Christian Biesinger <cbiesinger@google.com>
1389
1390 * configure: Regenerate.
1391 * configure.ac: Remove code that sets python_has_threads.
1392
71737c43
CB
13932019-10-24 Christian Biesinger <cbiesinger@google.com>
1394
1395 * config.in: Regenerate.
1396 * configure: Regenerate.
1397 * configure.ac: Remove the code that uses sed to get the python
1398 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1399
33d569b7
AB
14002019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1401
1402 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1403 error paths.
1404
f16f7b7c
TT
14052019-10-23 Tom Tromey <tom@tromey.com>
1406
1407 * arc-tdep.c: Remove ".." from include.
1408 * frv-tdep.c: Remove ".." from include.
1409 * lm32-tdep.c: Remove ".." from include.
1410 * microblaze-tdep.c: Remove ".." from include.
1411 * or1k-tdep.h: Remove ".." from include.
1412 * s12z-tdep.c: Remove ".." from include.
1413 * Makefile.in (OPCODES_CFLAGS): Add comment.
1414 (TOP_CFLAGS): New variable.
1415 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1416
6999161a
TT
14172019-10-23 Tom Tromey <tom@tromey.com>
1418
1419 * Makefile.in (READLINE_DIR): Update.
1420
12e7c35e
TBA
14212019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1422
1423 * infcall.c (call_function_by_hand_dummy): Fix the function
1424 comment. And extract out a code section into...
1425 (reserve_stack_space): ...this new function.
1426
37055cad
TBA
14272019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1428
1429 * infcall.c (value_arg_coerce): Remove an unused parameter.
1430 (call_function_by_hand_dummy): Update the call to
1431 'value_arg_coerce'.
1432
39bcc47c
TBA
14332019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1434
1435 * infcall.c (call_function_by_hand_dummy): Refactor.
1436
bd888c0f
TBA
14372019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1438
1439 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1440
c12d372d
TT
14412019-10-23 Tom Tromey <tom@tromey.com>
1442
1443 * configure: Rebuild.
1444 * configure.ac: Don't check for sigprocmask.
1445 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1446
4d0b984b
TT
14472019-10-23 Tom Tromey <tom@tromey.com>
1448
1449 * configure: Rebuild.
1450 * acinclude.m4: Use m4_include, not sinclude.
1451
7e785608
TV
14522019-10-23 Tom de Vries <tdevries@suse.de>
1453
1454 PR breakpoints/24687
1455 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1456
403772ef
CB
14572019-10-22 Christian Biesinger <cbiesinger@google.com>
1458
1459 * symtab.c (struct demangled_name_entry) <language>: Change from
1460 bitfield to regular variable.
1461
3a494279
CB
14622019-10-22 Christian Biesinger <cbiesinger@google.com>
1463
1464 * symtab.c (struct demangled_name_entry): Add a constructor.
1465 (free_demangled_name_entry): New function to call the destructor
1466 for demangled_name_entry.
1467 (create_demangled_names_hash): Pass free_demangled_name_entry to
1468 htab_create_alloc.
1469 (symbol_set_names): Call placement new for demangled_name_entry.
1470 * utils.c: No longer include xxhash.h here, now that fast_hash
1471 is inlined in the header.
1472 * utils.h: Instead, include it here.
1473
ccb1ba62
CB
14742019-10-22 Christian Biesinger <cbiesinger@google.com>
1475
1476 * Makefile.in: Link with libxxhash.
1477 * config.in: Regenerate.
1478 * configure: Regenerate.
1479 * configure.ac: Search for libxxhash.
1480 * utils.c (fast_hash): Use xxhash if present.
1481
1a6ff1a9
CB
14822019-10-22 Christian Biesinger <cbiesinger@google.com>
1483
1484 * utils.h (fast_hash): New function.
1485 * symtab.c (hash_demangled_name_entry): Call new function
1486 fast_hash.
1487
7bb43059
CB
14882019-10-22 Christian Biesinger <cbiesinger@google.com>
1489
1490 * symtab.c (struct demangled_name_entry): Change type of mangled
1491 to gdb::string_view. Also adds a constructor that takes the
1492 mangled name.
1493 (hash_demangled_name_entry): Update.
1494 (eq_demangled_name_entry): Update.
1495 (free_demangled_name_entry): New function to call the destructor
1496 now that this is not a POD anymore.
1497 (create_demangled_names_hash): Pass free_demangled_name_entry to
1498 htab_create_alloc.
1499 (symbol_set_names): Update.
1500
7ba99d21
AT
15012019-10-21 Ali Tamur <tamu@google.com>
1502
1503 * dwarf2read.c (dir_index): Change type.
1504 (file_name_index): Likewise.
1505 (line_header::include_dir_at): Change comment and implementation on
1506 whether it is DWARF 5.
1507 (line_header::is_valid_file_index): New function.
1508 (line_header::file_name_at): Change comment and implementation on
1509 whether it is DWARF 5.
1510 (line_header::file_names): Change to private field renamed as
1511 m_file_names and introduce a new accessor method.
1512 (line_header::file_names_size): New method.
1513 (line_header::include_dirs): Change to private field and rename as
1514 m_include_dirs.
1515 (dw2_get_file_names_reader): Define local var at a smaller scope and
1516 reflect API change.
1517 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1518 (process_structure_scope): Likewise.
1519 (line_header::add_include_dir): Change message and reflect renaming.
1520 (line_header::add_file_name): Likewise.
1521 (read_formatted_entries): Handle DW_FORM_data16.
1522 (dwarf_decode_line_header): Fix line header length calculation.
1523 (psymtab_include_file_name): Change comment and API.
1524 (lnp_state_machine::m_file): Update comment and reflect type change.
1525 (lnp_state_machine::record_line): Reflect type change.
1526 (dwarf_decode_lines): Reflect API change.
1527 (file_file_name): Likewise.
1528 (file_full_name): Likewise.
1529
45f47c3a
AB
15302019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1531
1532 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1533
e5f3c0e3
TT
15342019-10-21 Tom Tromey <tom@tromey.com>
1535
1536 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1537
a0a461e5
TT
15382019-10-21 Tom Tromey <tom@tromey.com>
1539
1540 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1541 NM_H. Use AC_CONFIG_LINKS.
1542 * configure: Rebuild.
1543 * Makefile.in (NM_H): New variable.
1544 (generated_files): Add NM_H. Remove gcore.
1545 (nm.h, stamp-nmh): New targets.
1546
54d83b8d
TT
15472019-10-20 Tom Tromey <tom@tromey.com>
1548
1549 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1550 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1551 obsolete comment.
1552 (put_objfile_before): Now static.
1553
23771117
SM
15542019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1555
1556 * gdbsupport/common-utils.h (startswith): Change return type to
1557 bool.
1558
39ef2f62
CB
15592019-10-19 Christian Biesinger <cbiesinger@google.com>
1560
1561 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1562 * breakpoint.c (bp_locations_compare): Rename to...
1563 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1564 (update_global_location_list): Use std::sort instead of qsort.
1565 * buildsym.c (compare_line_numbers): Rename to...
1566 (lte_is_less_than): ...this, and change to std::sort semantics.
1567 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1568 instead of qsort.
1569 * disasm.c (compare_lines): Rename to...
1570 (line_is_less_than): ...this, and change to std::sort semantics.
1571 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1572 of qsort.
1573 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1574 (fde_is_less_than): ...this, and change to std::sort semantics.
1575 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1576 * mdebugread.c (compare_blocks):
1577 (block_is_less_than): ...this, and change to std::sort semantics.
1578 (sort_blocks): Call std::sort instead of qsort.
1579 * objfiles.c (qsort_cmp): Rename to...
1580 (sort_cmp): ...this, and change to std::sort semantics.
1581 (update_section_map): Call std::sort instead of qsort.
1582 * remote.c (compare_pnums): Remove.
1583 (map_regcache_remote_table): Call std::sort instead of qsort.
1584 * utils.c (compare_positive_ints): Remove.
1585 * utils.h (compare_positive_ints): Remove.
1586 * xcoffread.c (compare_lte): Remove.
1587 (arrange_linetable): Call std::sort instead of qsort.
1588
f71433ee
SDJ
15892019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1590
1591 * symfile.c (init_entry_point_info): Fix typo.
1592 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1593
85102364
TV
15942019-10-18 Tom de Vries <tdevries@suse.de>
1595
1596 * aarch64-tdep.c: Fix typos in comments.
1597 * ada-lang.c: Same.
1598 * ada-tasks.c: Same.
1599 * alpha-tdep.c: Same.
1600 * alpha-tdep.h: Same.
1601 * amd64-nat.c: Same.
1602 * amd64-windows-tdep.c: Same.
1603 * arc-tdep.c: Same.
1604 * arc-tdep.h: Same.
1605 * arch-utils.c: Same.
1606 * arm-nbsd-tdep.c: Same.
1607 * arm-tdep.c: Same.
1608 * ax-gdb.c: Same.
1609 * blockframe.c: Same.
1610 * btrace.c: Same.
1611 * c-varobj.c: Same.
1612 * coff-pe-read.c: Same.
1613 * coffread.c: Same.
1614 * cris-tdep.c: Same.
1615 * darwin-nat.c: Same.
1616 * dbxread.c: Same.
1617 * dcache.c: Same.
1618 * disasm.c: Same.
1619 * dtrace-probe.c: Same.
1620 * dwarf-index-write.c: Same.
1621 * dwarf2-frame-tailcall.c: Same.
1622 * dwarf2-frame.c: Same.
1623 * dwarf2read.c: Same.
1624 * eval.c: Same.
1625 * exceptions.c: Same.
1626 * fbsd-tdep.c: Same.
1627 * findvar.c: Same.
1628 * frame.c: Same.
1629 * frv-tdep.c: Same.
1630 * gnu-v3-abi.c: Same.
1631 * go32-nat.c: Same.
1632 * h8300-tdep.c: Same.
1633 * hppa-tdep.c: Same.
1634 * i386-linux-tdep.c: Same.
1635 * i386-tdep.c: Same.
1636 * ia64-libunwind-tdep.c: Same.
1637 * ia64-tdep.c: Same.
1638 * infcmd.c: Same.
1639 * infrun.c: Same.
1640 * linespec.c: Same.
1641 * linux-nat.c: Same.
1642 * linux-thread-db.c: Same.
1643 * machoread.c: Same.
1644 * mdebugread.c: Same.
1645 * mep-tdep.c: Same.
1646 * mn10300-tdep.c: Same.
1647 * namespace.c: Same.
1648 * objfiles.c: Same.
1649 * opencl-lang.c: Same.
1650 * or1k-tdep.c: Same.
1651 * osabi.c: Same.
1652 * ppc-linux-nat.c: Same.
1653 * ppc-linux-tdep.c: Same.
1654 * ppc-sysv-tdep.c: Same.
1655 * printcmd.c: Same.
1656 * procfs.c: Same.
1657 * record-btrace.c: Same.
1658 * record-full.c: Same.
1659 * remote-fileio.c: Same.
1660 * remote.c: Same.
1661 * rs6000-tdep.c: Same.
1662 * s12z-tdep.c: Same.
1663 * score-tdep.c: Same.
1664 * ser-base.c: Same.
1665 * ser-go32.c: Same.
1666 * skip.c: Same.
1667 * sol-thread.c: Same.
1668 * solib-svr4.c: Same.
1669 * solib.c: Same.
1670 * source.c: Same.
1671 * sparc-nat.c: Same.
1672 * sparc-sol2-tdep.c: Same.
1673 * sparc-tdep.c: Same.
1674 * sparc64-tdep.c: Same.
1675 * stabsread.c: Same.
1676 * stack.c: Same.
1677 * symfile.c: Same.
1678 * symtab.c: Same.
1679 * target-descriptions.c: Same.
1680 * target-float.c: Same.
1681 * thread.c: Same.
1682 * utils.c: Same.
1683 * valops.c: Same.
1684 * valprint.c: Same.
1685 * value.c: Same.
1686 * varobj.c: Same.
1687 * windows-nat.c: Same.
1688 * xcoffread.c: Same.
1689 * xstormy16-tdep.c: Same.
1690 * xtensa-tdep.c: Same.
1691
c5adaa19
TT
16922019-10-17 Tom Tromey <tromey@adacore.com>
1693
1694 * configure: Rebuild.
1695 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1696 in AC_CONFIG_FILES invocation.
1697 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1698 new-style config.status invocation.
1699
405feb71
TV
17002019-10-17 Tom de Vries <tdevries@suse.de>
1701
1702 * arm-nbsd-nat.c: Fix typos in comments.
1703 * arm-tdep.c: Same.
1704 * darwin-nat-info.c: Same.
1705 * dwarf2read.c: Same.
1706 * elfread.c: Same.
1707 * event-top.c: Same.
1708 * findvar.c: Same.
1709 * gdbtypes.c: Same.
1710 * hppa-tdep.c: Same.
1711 * i386-tdep.c: Same.
1712 * jit.c: Same.
1713 * main.c: Same.
1714 * mdebugread.c: Same.
1715 * moxie-tdep.c: Same.
1716 * nto-procfs.c: Same.
1717 * osabi.c: Same.
1718 * ppc-linux-tdep.c: Same.
1719 * remote.c: Same.
1720 * riscv-tdep.c: Same.
1721 * s390-tdep.c: Same.
1722 * sh-tdep.c: Same.
1723 * sparc-linux-tdep.c: Same.
1724 * sparc-nat.c: Same.
1725 * stack.c: Same.
1726 * target-descriptions.c: Same.
1727 * top.c: Same.
1728 * varobj.c: Same.
1729
befcd486
TT
17302019-10-16 Tom Tromey <tom@tromey.com>
1731
1732 * objfiles.h (struct objfile) <original_name>: Now const.
1733
17bfe554
CB
17342019-10-16 Christian Biesinger <cbiesinger@google.com>
1735
1736 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1737 pass on to sigsetjmp's second argument.
1738 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1739
950b7495
KS
17402019-10-16 Keith Seitz <keiths@redhat.com>
1741
1742 PR gdb/23567
1743 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1744 sections whose size is greater than the file size.
1745
ff371ec9
JW
17462019-10-16 Jim Wilson <jimw@sifive.com>
1747
1748 * riscv-tdep.c (riscv_gcc_target_options): New.
1749 (riscv_gnu_triplet_regexp): New.
1750 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1751 set_gdbarch_gnu_triplet_regexp.
1752
fec4e896
CB
17532019-10-16 Christian Biesinger <cbiesinger@google.com>
1754
1755 * Makefile.in: Add xml-builtin.h.
1756 * features/feature_to_c.sh: Add an include for xml-builtin.h
1757 to ensure that the compiler checks that the types match.
1758 * xml-builtin.h: New file.
1759 * xml-support.c (fetch_xml_builtin): Add missing const.
1760 * xml-support.h: Remove declaration of xml_builtins.
1761
d10eccaa
TV
17622019-10-16 Tom de Vries <tdevries@suse.de>
1763
1764 PR tdep/25096
1765 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1766 (amd64_classify_aggregate): ... here.
1767 (amd64_classify_aggregate_field): Handled fiels of nested structs
1768 recursively.
1769
745ff14e
TV
17702019-10-16 Tom de Vries <tdevries@suse.de>
1771
1772 PR tdep/24104
1773 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1774 that handles 'theclass'.
1775
791b7405
AB
17762019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1777
1778 * linespec.c (decode_digits_ordinary): Update comment.
1779 * make-target-delegates: No longer need to handle VEC case.
1780 * memrange.c (normalize_mem_ranges): Update comment.
1781 * namespace.c (add_using_directive): Update comment.
1782 * objc-lang.c (uniquify_strings): Update comment.
1783 * ppc-linux-nat.c (struct thread_points): Update comment.
1784 * probe.h (find_probes_in_objfile): Update comment.
1785 * target.h (enum flash_preserve_mode): Update comment.
1786 * varobj.c (varobj_restrict_range): Update comment.
1787 * varobj.h (varobj_list_children): Update comment.
1788
0dc32745
AB
17892019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1790
1791 * Makefile.in: Remove references to vec.h and vec.c.
1792 * aarch64-tdep.c: No longer include vec.h.
1793 * ada-lang.c: Likewise.
1794 * ada-lang.h: Likewise.
1795 * arm-tdep.c: Likewise.
1796 * ax.h: Likewise.
1797 * breakpoint.h: Likewise.
1798 * charset.c: Likewise.
1799 * cp-support.h: Likewise.
1800 * dtrace-probe.c: Likewise.
1801 * dwarf2read.c: Likewise.
1802 * extension.h: Likewise.
1803 * gdb_bfd.c: Likewise.
1804 * gdbsupport/gdb_vecs.h: Likewise.
1805 * gdbsupport/vec.c: Remove.
1806 * gdbsupport/vec.h: Remove.
1807 * gdbthread.h: Likewise.
1808 * guile/scm-type.c: Likewise.
1809 * inline-frame.c: Likewise.
1810 * machoread.c: Likewise.
1811 * memattr.c: Likewise.
1812 * memrange.h: Likewise.
1813 * namespace.h: Likewise.
1814 * nat/linux-btrace.h: Likewise.
1815 * osdata.c: Likewise.
1816 * parser-defs.h: Likewise.
1817 * progspace.h: Likewise.
1818 * python/py-type.c: Likewise.
1819 * record-btrace.c: Likewise.
1820 * rust-exp.y: Likewise.
1821 * solib-target.c: Likewise.
1822 * stap-probe.c: Likewise.
1823 * target-descriptions.c: Likewise.
1824 * target-memory.c: Likewise.
1825 * target.h: Likewise.
1826 * varobj.c: Likewise.
1827 * varobj.h: Likewise.
1828 * xml-support.h: Likewise.
1829
ae640021
AB
18302019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1831
1832 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1833 Update for new std::vector based implementation.
1834 (process_psymtab_comp_unit_reader): Likewise.
1835 (scan_partial_symbols): Likewise.
1836 (recursively_compute_inclusions): Likewise.
1837 (compute_compunit_symtab_includes): Likewise.
1838 (process_imported_unit_die): Likewise.
1839 (queue_and_load_dwo_tu): Likewise.
1840 (follow_die_sig_1): Likewise.
1841 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1842 (typedef dwarf2_per_cu_ptr): Remove.
1843 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1844 function.
1845 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1846 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1847 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1848 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1849 std::vector.
1850
55dfc88f
TT
18512019-10-15 Tom Tromey <tromey@adacore.com>
1852
1853 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1854 TID.
1855
96b49c5e
TT
18562019-10-15 Tom Tromey <tromey@adacore.com>
1857
1858 * windows-nat.c (windows_nat_target::fetch_registers)
1859 (windows_nat_target::store_registers): Rename "pid" to "tid".
1860
953cff56
TT
18612019-10-15 Tom Tromey <tromey@adacore.com>
1862
1863 * gdbarch.h, gdbarch.c: Rebuild.
1864 * gdbarch.sh (gcc_target_options): Change return type to
1865 std::string.
1866 * compile/compile.c (get_args): Update.
1867 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1868 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1869 std::string.
1870 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1871 std::string.
1872 * arch-utils.c (default_gcc_target_options): Return std::string.
1873 * arch-utils.h (default_gcc_target_options): Return std::string.
1874 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1875
81e6b8eb
CB
18762019-10-15 Christian Biesinger <cbiesinger@google.com>
1877
1878 * breakpoint.c (breakpoint_chain): Make static.
1879 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1880 of accessing breakpoint_chain.
1881
95da600f
CB
18822019-10-15 Christian Biesinger <cbiesinger@google.com>
1883
1884 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1885 to a gdb::function_view and return value to bool.
1886 * breakpoint.h (iterate_over_breakpoints): Likewise.
1887 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1888 (pop_dummy_frame): Update.
1889 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1890 (gdbscm_breakpoints): Update.
1891 * python/py-breakpoint.c (build_bp_list): Update.
1892 (gdbpy_breakpoints): Update.
1893 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1894 Update.
1895 (bpfinishpy_handle_stop): Update.
1896 (bpfinishpy_handle_exit): Update.
1897 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1898 (svr4_update_solib_event_breakpoints): Update.
1899
ba18312d
AA
19002019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1901
1902 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1903 when unwrapping single-field structs.
1904
6acc1a0b
SM
19052019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1906
1907 * dwarf2read.c: Remove includes.
1908
284782de
SM
19092019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1910
1911 * ui-out.c (ui_out::call_do_message): Silence
1912 -Wformat-nonliteral warning.
1913
073bbbb0
SM
19142019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1915
1916 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1917 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1918 include: readline/tilde.h.
1919
7b9a15e1
CB
19202019-10-12 Christian Biesinger <cbiesinger@google.com>
1921
1922 * remote.c (remote_target::get_trace_status): Remove declaration of
1923 trace_regblock_size.
1924
cc8dee1f
CB
19252019-10-12 Christian Biesinger <cbiesinger@google.com>
1926
1927 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1928 (show_user): Remove declaration of cmdlist.
1929 * cli/cli-cmds.h (max_user_call_depth): Declare.
1930 * cli/cli-script.c (execute_user_command): Remove declaration
1931 of max_user_call_depth.
1932
a83d4ef6
JW
19332019-10-11 Jim Wilson <jimw@sifive.com>
1934
5f93c5a6
JW
1935 * gdbsupport/print-utils.h (pulongest): Fix comment.
1936 (plongest): Likewise.
1937 (phex): Add missing comment, mention leading zeros.
1938 (phex_nz): Add mention of no leading zeros to comment.
1939
a83d4ef6
JW
1940 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1941 plongest instead of unsigned long long cast.
1942
26344e0c
CB
19432019-10-10 Christian Biesinger <cbiesinger@google.com>
1944
1945 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1946 for external_editor_command and gdbtk_test.
1947
c2c440a9
CB
19482019-10-10 Christian Biesinger <cbiesinger@google.com>
1949
1950 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1951 * varobj.c (varobjdebug): Move comment to...
1952 * varobj.h (varobjdebug): ...here, and declare.
1953
a31bff9d
TT
19542019-10-09 Tom Tromey <tom@tromey.com>
1955
1956 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1957 erase_data_content.
1958
7523da63
TT
19592019-10-09 Tom Tromey <tom@tromey.com>
1960
1961 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1962 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1963 * tui/tui-command.c (tui_cmd_window::resize)
1964 (tui_refresh_cmd_win): Update.
1965 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1966 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1967 * tui/tui-data.c (~tui_gen_win_info): Remove.
1968 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1969 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1970 (tui_redisplay_readline, tui_mld_flush)
1971 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1972 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1973 (tui_data_window::erase_data_content)
1974 (tui_data_item_window::rerender)
1975 (tui_data_item_window::refresh_window): Update.
1976 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1977 (box_win, tui_gen_win_info::make_window)
1978 (tui_gen_win_info::make_visible): Update.
1979 (tui_delete_win): Remove.
1980 * tui/tui-winsource.c
1981 (tui_source_window_base::do_erase_source_content): Update.
1982 (tui_show_source_line, tui_source_window_base::update_tab_width)
1983 (tui_source_window_base::update_exec_info): Update.
1984 * tui/tui-data.h (struct curses_deleter): New.
1985 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1986 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1987
a7798e7f
TT
19882019-10-09 Tom Tromey <tom@tromey.com>
1989
1990 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1991
5c45899e
TT
19922019-10-09 Tom Tromey <tom@tromey.com>
1993
1994 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
1995 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
1996
6d7fd9aa
TT
19972019-10-09 Tom Tromey <tom@tromey.com>
1998
1999 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2000 window height directly.
2001 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2002 declare.
2003 * tui/tui-layout.c (tui_default_win_height): Remove.
2004 (tui_default_win_viewport_height): Remove.
2005
d2dd1084
TT
20062019-10-09 Tom Tromey <tom@tromey.com>
2007
2008 * tui/tui.h: Remove comments.
2009
cff32449
TV
20102019-10-09 Tom de Vries <tdevries@suse.de>
2011
2012 * python/lib/gdb/printer/bound_registers.py: Use
2013 '^builtin_type_bound128' as regexp argument for
2014 add_builtin_pretty_printer.
2015
6a25e8a2
CB
20162019-10-09 Christian Biesinger <cbiesinger@google.com>
2017
2018 * guile/guile.c (guile_extension_script_ops): Remove forward
2019 declaration and mark as static.
2020 (guile_script_ops): Likewise.
2021 (extension_language_guile): Move further down in the file so
2022 it can reference the definitions for guile_{extension_,}script_ops.
2023
6d9d6da4
AA
20242019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2025
2026 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2027 except SORTL, DFLTCC, and KDSA.
2028
3abea05d
TT
20292019-10-08 Tom Tromey <tromey@adacore.com>
2030
2031 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2032 (struct safe_symbol_file_add_args): Remove.
2033
dde996e2
TT
20342019-10-08 Tom Tromey <tromey@adacore.com>
2035
2036 * windows-nat.c: Don't include buildsym-legacy.h.
2037
cd6fdaa1
TT
20382019-10-08 Tom Tromey <tromey@adacore.com>
2039
2040 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2041
79bb1944
CB
20422019-10-08 Christian Biesinger <cbiesinger@google.com>
2043
2044 * gdbtypes.c (overload_debug): Move comment to header.
2045 * gdbtypes.h (overload_debug): Declare.
2046 * valops.c: Remove declaration of overload_debug, instead
2047 include gdbtypes.h.
2048
34916edc
CB
20492019-10-08 Christian Biesinger <cbiesinger@google.com>
2050
2051 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2052 through _().
2053 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2054 move comment...
2055 * language.h (lang_frame_mismatch_warn): ... here. Also add
2056 declaration.
2057 * top.c (lang_frame_mismatch_warn): Remove declaration.
2058 (check_frame_language_change): Pass lang_frame_mismatch_warn
2059 through _().
2060
bad5c026
CB
20612019-10-07 Christian Biesinger <cbiesinger@google.com>
2062
2063 * c-lang.h (vtbl_ptr_name): Declare.
2064 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2065 it from the header.
2066 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2067
51f1fdc3
CB
20682019-10-07 Christian Biesinger <cbiesinger@google.com>
2069
2070 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2071 gdb_static_assert.
2072
30d1f018
WP
20732019-10-07 Weimin Pan <weimin.pan@oracle.com>
2074
606813d5
WP
2075 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2076 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
2077 * ctfread.c: New file.
2078 * ctfread.h: New file.
2079 * elfread.c: Include ctfread.h.
2080 (struct elfinfo text_p): New member ctfsect.
2081 (elf_locate_sections): Mark CTF section.
2082 (elf_symfile_read): Call elfctf_build_psymtabs.
2083 * Makefile.in (LIBCTF): Add.
2084 (CLIBS): Use it.
2085 (CDEPS): Likewise.
2086 (DIST): Add ctfread.c.
606813d5
WP
2087
20882019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2089
2090 * ctfread.c (struct nextfield): Renamed to ...
2091 (struct ctf_nextfield): ... this.
2092 (struct field_info): Renamed to ...
2093 (strut ctf_field_info): ... this.
2094 (attach_fields_to_type): Update for renamed structures.
2095 (ctf_add_member_cb): Likewise.
2096 (ctf_add_enum_member_cb): Likewise.
2097 (process_struct_members): Likewise.
2098 (process_enum_type): Likewise.
30d1f018 2099
518fe38c
WP
21002019-10-07 Weimin Pan <weimin.pan@oracle.com>
2101
2102 * tracectf.h: Rename, was ctf.h.
2103 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2104 * tracefile.c: Likewise.
2105 * tracepoint.c: Remove unused include ctf.h.
2106 * mi/mi-main.c: Likewise.
2107 * Makefile.in Replace ctf.c with tracectf.c.
2108
225f296a
JB
21092019-10-06 Joel Brobecker <brobecker@adacore.com>
2110
2111 * version.in: Change version number to "9.0.50.DATE-git".
2112
77c2dba3
TT
21132019-10-03 Tom Tromey <tom@tromey.com>
2114
2115 PR rust/24976:
2116 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2117
179aed7f
AB
21182019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2119
2120 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2121 cp_search_name_hash.
2122 * NEWS: Add entry about nested function support.
2123
0a4b0913
AB
21242019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2125 Andrew Burgess <andrew.burgess@embecosm.com>
2126
2127 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2128 for nested static variables when searchin VAR_DOMAIN.
2129 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2130 global scope, update comment.
2131 (add_partial_subprogram): Call add_partial_subprogram recursively
2132 for nested subroutines when processinng Fortran.
2133 (load_partial_dies): Process the child entities of a subprogram
2134 when processing Fortran.
2135 (partial_die_parent_scope): Handle building scope
2136 for Fortran nested functions.
2137 (process_die): Record that nested functions have a scope.
2138 (new_symbol): Always record Fortran subprograms on the global
2139 symbol list.
2140 (determine_prefix): How to build the prefix for Fortran
2141 subprograms.
2142
d8c06f22
AB
21432019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2144
2145 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2146 have just sent the thread a SIGSTOP and are waiting for it to
2147 arrive.
2148
a8b3b8e9
AB
21492019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2150
2151 * btrace.c (btrace_add_pc): Remove whitespace before the template
2152 parameter in 'std::vector <...>'.
2153 (parse_xml_btrace_block): Likewise.
2154 (btrace_maint_decode_pt): Likewise.
2155 (btrace_maint_update_packets): Likewise.
2156 (btrace_maint_print_packets): Likewise.
2157 * btrace.h (struct btrace_maint_info): Likewise.
2158 * dwarf2read.c (struct type_unit_group): Likewise.
2159 (build_type_psymtabs_reader): Likewise.
2160 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2161 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2162 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2163
4d825eab
TV
21642019-10-03 Tom de Vries <tdevries@suse.de>
2165
2166 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2167 the first line of the help text for set/show style metadata.
2168
80fd2826
TT
21692019-10-02 Tom Tromey <tromey@adacore.com>
2170
2171 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2172 * gdbsupport/common-inferior.c: New file.
2173 * infcmd.c (startup_with_shell): Don't define.
2174 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2175 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2176 * inferior.h (startup_with_shell): Don't declare.
2177
70054538
CB
21782019-10-02 Christian Biesinger <cbiesinger@google.com>
2179
2180 * gdbsupport/gdb_assert.h: Include errors.h.
2181 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2182
37f6a7f4
TT
21832019-10-02 Tom Tromey <tromey@adacore.com>
2184
2185 * NEWS: Add $_ada_exception entry.
2186 * ada-lang.c (struct ada_catchpoint): Add constructor.
2187 <m_kind>: New member.
2188 (allocate_location_exception, re_set_exception): Remove
2189 "ex" parameter.
2190 (should_stop_exception): Compute $_ada_exception.
2191 (check_status_exception, print_it_exception)
2192 (print_one_exception, print_mention_exception): Remove
2193 "ex" parameter.
2194 (allocate_location_catch_exception, re_set_catch_exception)
2195 (check_status_exception, print_it_catch_exception)
2196 (print_one_catch_exception, print_mention_catch_exception)
2197 (print_recreate_catch_exception)
2198 (allocate_location_catch_exception_unhandled)
2199 (re_set_catch_exception_unhandled)
2200 (check_status_exception, print_it_catch_exception_unhandled)
2201 (print_one_catch_exception_unhandled)
2202 (print_mention_catch_exception_unhandled)
2203 (print_recreate_catch_exception_unhandled)
2204 (allocate_location_catch_assert, re_set_catch_assert)
2205 (check_status_assert, print_it_catch_assert)
2206 (print_one_catch_assert, print_mention_catch_assert)
2207 (print_recreate_catch_assert)
2208 (allocate_location_catch_handlers, re_set_catch_handlers)
2209 (check_status_handlers, print_it_catch_handlers)
2210 (print_one_catch_handlers, print_mention_catch_handlers)
2211 (print_recreate_catch_handlers): Remove.
2212 (create_ada_exception_catchpoint): Update.
2213 (initialize_ada_catchpoint_ops): Update.
2214
fccf9de1
TT
22152019-10-02 Tom Tromey <tromey@adacore.com>
2216
2217 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2218 (create_excep_cond_exprs): Simplify exception string computation.
2219 (ada_exception_catchpoint_cond_string): Likewise.
2220
4b610737
TT
22212019-10-02 Tom Tromey <tromey@adacore.com>
2222
2223 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2224 * ada-lang.c (lesseq_defined_than): Handle
2225 LOC_STATIC.
2226 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2227 parameter.
2228 (dwarf2_has_info): Likewise.
2229 (new_symbol): Set maybe_copied on symbol when
2230 appropriate.
2231 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2232 parameter.
2233 <can_copy>: New member.
2234 * elfread.c (record_minimal_symbol): Set maybe_copied
2235 on symbol when appropriate.
2236 (elf_symfile_read): Update call to dwarf2_has_info.
2237 * minsyms.c (lookup_minimal_symbol_linkage): New
2238 function.
2239 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2240 * symtab.c (get_symbol_address, get_msymbol_address):
2241 New functions.
2242 * symtab.h (get_symbol_address, get_msymbol_address):
2243 Declare.
2244 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2245 maybe_copied.
2246 (struct symbol, struct minimal_symbol) <maybe_copied>:
2247 New member.
2248
1dd58850
TT
22492019-10-02 Tom Tromey <tromey@adacore.com>
2250
2251 * source.c (struct current_source_location): New.
2252 (current_source_key): New global.
2253 (current_source_symtab, current_source_line)
2254 (current_source_pspace): Remove.
2255 (get_source_location): New function.
2256 (get_current_source_symtab_and_line)
2257 (set_default_source_symtab_and_line)
2258 (set_current_source_symtab_and_line)
2259 (clear_current_source_symtab_and_line, select_source_symtab)
2260 (info_source_command, print_source_lines_base)
2261 (info_line_command, search_command_helper, _initialize_source):
2262 Update.
2263
5c281dbb
TT
22642019-10-02 Tom Tromey <tromey@adacore.com>
2265
2266 * source.c (select_source_symtab): Don't call
2267 decode_line_with_current_source.
2268
d3d32391
AB
22692019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2270
2271 * symtab.c (lookup_global_symbol): Search global block.
2272
38583298
TT
22732019-10-02 Tom Tromey <tromey@adacore.com>
2274
2275 * coffread.c (process_coff_symbol): Update.
2276 * dwarf2read.c (var_decode_location, new_symbol): Update.
2277 * mdebugread.c (parse_symbol): Update.
2278 * objfiles.c (relocate_one_symbol): Update.
2279 * stabsread.c (define_symbol, fix_common_block)
2280 (scan_file_globals): Update.
2281 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2282 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2283 * xcoffread.c (process_xcoff_symbol): Update.
2284
9344c18f
AA
22852019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2286
2287 * MAINTAINERS: Update my email address.
2288
df07e2c7
AB
22892019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2290
2291 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2292 std::vector.
2293 (build_type_psymtabs_reader): Update for std::vector.
2294 (build_type_psymtab_dependencies): Likewise.
2295 * dwarf2read.h: Remove use of DEF_VEC_P.
2296 (typedef sig_type_ptr): Delete.
2297
554ac434
AB
22982019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2299
2300 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2301 to std::vector.
2302 (btrace_maint_decode_pt): Likewise, and move allocation of the
2303 vector outside of the loop.
2304 (btrace_maint_update_packets): Update to handle change from VEC to
2305 std::vector.
2306 (btrace_maint_print_packets): Likewise.
2307 (maint_info_btrace_cmd): Likewise.
2308 * btrace.h: Remove use of DEF_VEC_O.
2309 (typedef btrace_pt_packet_s): Delete.
2310 (struct btrace_maint_info) <packets>: Change fromm VEC to
2311 std::vector.
2312 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2313
46f29a9a
AB
23142019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2315
2316 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2317 make accesses into the vector constant references.
2318 (btrace_add_pc): Update for std::vector.
2319 (btrace_stitch_bts): Likewise.
2320 (parse_xml_btrace_block): Likewise.
2321 (btrace_maint_update_packets): Likewise.
2322 (btrace_maint_print_packets): Likewise.
2323 (maint_info_btrace_cmd): Likewise.
2324 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2325 std::vector.
2326 (btrace_data::empty): Likewise.
2327 (btrace_data_append): Likewise.
2328 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2329 (typedef btrace_block_s): Delete.
2330 (struct btrace_block): Add constructor.
2331 (struct btrace_data_bts) <blocks>: Change to std::vector.
2332 * nat/linux-btrace.c (perf_event_read_bts): Update for
2333 std::vector.
2334 (linux_read_bts): Likewise.
2335
d770d56f
TT
23362019-10-01 Tom Tromey <tom@tromey.com>
2337
2338 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2339
9d636d67
TT
23402019-10-01 Tom Tromey <tom@tromey.com>
2341
2342 * stack.c (print_frame, info_frame_command_core): Use
2343 styled_string.
2344 * linux-thread-db.c (try_thread_db_load_1)
2345 (try_thread_db_load_from_pdir_1): Use styled_string.
2346 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2347 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2348 (maybe_print_unsupported_script_warning)
2349 (maybe_print_script_not_found_warning): Use styled_string.
2350 * ada-lang.c (user_select_syms): Use styled_string.
2351
7f6aba03
TT
23522019-10-01 Tom Tromey <tom@tromey.com>
2353
2354 * p-lang.c (pascal_printstr): Use metadata style.
2355 * value.c (show_convenience): Use metadata style.
2356 * valprint.c (valprint_check_validity, val_print_optimized_out)
2357 (val_print_not_saved, val_print_unavailable)
2358 (val_print_invalid_address, generic_val_print, val_print)
2359 (value_check_printable, val_print_array_elements): Use metadata
2360 style.
2361 * ui-out.h (class ui_out) <field_fmt>: New overload.
2362 <do_field_fmt>: Add style parameter.
2363 * ui-out.c (ui_out::field_fmt): New overload.
2364 * typeprint.c (type_print_unknown_return_type)
2365 (val_print_not_allocated, val_print_not_associated): Use metadata
2366 style.
2367 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2368 parameter.
2369 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2370 * tracepoint.c (tvariables_info_1): Use metadata style.
2371 * stack.c (print_frame_arg, print_frame_info, print_frame)
2372 (info_frame_command_core): Use metadata style.
2373 * skip.c (info_skip_command): Use metadata style.
2374 * rust-lang.c (rust_print_enum): Use metadata style.
2375 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2376 metadata style.
2377 * python/py-framefilter.c (py_print_single_arg): Use metadata
2378 style.
2379 * printcmd.c (do_one_display, print_variable_and_value): Use
2380 metadata style.
2381 * p-valprint.c (pascal_val_print)
2382 (pascal_object_print_value_fields): Use metadata style.
2383 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2384 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2385 parameter.
2386 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2387 * m2-valprint.c (m2_print_long_set): Use metadata style.
2388 * m2-typeprint.c (m2_print_type): Use metadata style.
2389 * infcmd.c (print_return_value_1): Use metadata style.
2390 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2391 * f-valprint.c (info_common_command_for_block): Use metadata
2392 style.
2393 * f-typeprint.c (f_type_print_base): Use metadata style.
2394 * expprint.c (print_subexp_standard): Use metadata style.
2395 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2396 * cli/cli-style.h (class cli_style_option): Add constructor.
2397 (metadata_style): Declare.
2398 * cli/cli-style.c (metadata_style): New global.
2399 (_initialize_cli_style): Register metadata style.
2400 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2401 parameter.
2402 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2403 * c-typeprint.c (c_type_print_base_struct_union)
2404 (c_type_print_base_1): Use metadata style.
2405 * breakpoint.c (watchpoint_value_print)
2406 (print_one_breakpoint_location): Use metadata style.
2407 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2408 style.
2409 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2410 style.
2411 * ada-valprint.c (val_print_packed_array_elements, printstr)
2412 (print_field_values, ada_val_print_ref, ada_val_print): Use
2413 metadata style.
2414 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2415 style.
2416 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2417 style.
2418 * ada-lang.c (user_select_syms): Use metadata style.
2419
14309bb6
TT
24202019-10-01 Tom Tromey <tom@tromey.com>
2421
2422 * cli/cli-cmds.c (pwd_command): Style output.
2423
6a831f06
PA
24242019-10-01 Pedro Alves <palves@redhat.com>
2425 Tom Tromey <tom@tromey.com>
2426
2427 * symtab.c (print_symbol_info): Use %ps.
2428 (print_msymbol_info): Use %ps.
2429 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2430 * printcmd.c (print_variable_and_value): Use %ps.
2431 * macrocmd.c (show_pp_source_pos): Use %ps.
2432 * infrun.c (print_exited_reason): Use ui_out::message.
2433 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2434 (describe_other_breakpoints): Use ui_out::message and new
2435 formats.
2436 (say_where): Use new formats.
2437 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2438 and new formats.
2439
2a3c1174
PA
24402019-10-01 Pedro Alves <palves@redhat.com>
2441 Tom Tromey <tom@tromey.com>
2442
2443 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2444 (test_gdb_formats): New function.
2445 (run_tests): Call it.
2446 (test_format_specifier): Update.
2447 * utils.h (fputs_filtered): Update comment.
2448 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2449 (fputs_styled_unfiltered): Declare.
2450 * utils.c (fputs_styled_unfiltered): New function.
2451 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2452 (vfprintf_filtered): Update.
2453 (vfprintf_unfiltered, vprintf_filtered): Update.
2454 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2455 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2456 disallow_ui_out_field>: New constants.
2457 (enum class field_kind): New.
2458 (struct base_field_s, struct signed_field_s): New.
2459 (signed_field): New function.
2460 (struct string_field_s): New.
2461 (string_field): New function.
2462 (struct styled_string_s): New.
2463 (styled_string): New function.
2464 (class ui_out) <message>: Add comment.
2465 <vmessage, call_do_message>: New methods.
2466 <do_message>: Add style parameter.
2467 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2468 methods.
2469 (ui_out::message): Rewrite.
2470 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2471 parameter.
2472 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2473 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2474 gdb_extensions parameter.
2475 (class format_piece): Add parameter to constructor.
2476 (n_int_args): New field.
2477 * gdbsupport/format.c (format_pieces::format_pieces): Add
2478 gdb_extensions parameter. Handle '*'.
2479 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2480 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2481 vfprintf_styled_no_gdbfmt.
2482 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2483 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2484 unfiltered output.
2485 * ui-style.h (struct ui_file_style) <ptr>: New method.
2486
0dfe5bfb
TT
24872019-10-01 Tom Tromey <tom@tromey.com>
2488
2489 * unittests/format_pieces-selftests.c: Update. Add final format.
2490 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2491 empty literal pieces.
2492
e43b10e1
TT
24932019-10-01 Tom Tromey <tom@tromey.com>
2494
2495 * ui-out.h (enum class ui_out_style_kind): Remove.
2496 (class ui_out) <field_string, field_stsream, do_field_string>:
2497 Change type of "style".
2498 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2499 (ui_out::field_string): Update.
2500 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2501 of "style".
2502 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2503 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2504 * stack.c (print_frame_arg, print_frame_info, print_frame):
2505 Update.
2506 * source.c (print_source_lines_base): Update.
2507 * solib.c (info_sharedlibrary_command): Update.
2508 * skip.c (info_skip_command): Update.
2509 * record-btrace.c (btrace_call_history_src_line)
2510 (btrace_call_history): Update.
2511 * python/py-framefilter.c (py_print_frame): Update.
2512 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2513 "style".
2514 * mi/mi-out.c (mi_ui_out::do_table_header)
2515 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2516 (mi_ui_out::do_field_string): Update.
2517 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2518 Update.
2519 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2520 "style".
2521 * cli-out.c (cli_ui_out::do_table_header)
2522 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2523 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2524 (cli_ui_out::do_field_fmt): Update.
2525 * breakpoint.c (print_breakpoint_location): Update.
2526 (update_static_tracepoint): Update.
2527
cd7c32c3
PW
25282019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2529
2530 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2531 conversion of gdb_datadir.
2532 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2533 remove not needed c_str ().
2534
8fe0f950
AT
25352019-09-30 Ali Tamur <tamur@google.com>
2536
2537 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2538 (dwarf2_string_attr): Likewise.
2539
5f48f8f3
AT
25402019-09-30 Ali Tamur <tamur@google.com>
2541
2542 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2543 (process_full_type_unit): Likewise.
2544 (dump_die_shallow): Likewise.
2545 (cu_debug_loc_section): Likewise.
2546
6fb08628
CB
25472019-09-28 Christian Biesinger <cbiesinger@google.com>
2548
2549 * minsyms.c (compare_minimal_symbols): Rename to...
2550 (minimal_symbol_is_less_than): ...this, and adjust to STL
2551 conventions (return bool, take arguments as references)
2552 (minimal_symbol_reader::install): Call std::sort instead
2553 of qsort.
2554
c7ee338a
CB
25552019-09-29 Christian Biesinger <cbiesinger@google.com>
2556
2557 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2558 hash and why.
2559 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2560 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2561
703a86c2
SM
25622019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2563
2564 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2565 * psympriv.h (add_psymbol_to_list): Move comment here and update
2566 it.
2567
0df0352a
TV
25682019-09-29 Tom de Vries <tdevries@suse.de>
2569
2570 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2571 Use $tmpdir/$(basename "$output_file").dwz instead of
2572 "${output_file}.dwz".
2573
ad75efa6
SM
25742019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2575
2576 PR gdb/25045
2577 * hppa-linux-nat.c: Include gdbarch.h.
2578
ececd218
CB
25792019-09-26 Christian Biesinger <cbiesinger@google.com>
2580
2581 * blockframe.c (find_pc_partial_function): Change return type to bool.
2582 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2583 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2584 (stub_gnu_ifunc_resolve_name): Likewise.
2585 * symtab.c (compare_filenames_for_search): Likewise.
2586 (compare_glob_filenames_for_search): Likewise.
2587 (matching_obj_sections): Likewise.
2588 (symbol_matches_domain): Likewise.
2589 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2590 (find_line_pc): Change return type to bool.
2591 (find_line_pc_range): Likewise.
2592 (producer_is_realview): Likewise.
2593 * symtab.h (symbol_matches_domain): Likewise.
2594 (find_pc_partial_function): Likewise.
2595 (find_pc_line_pc_range): Likewise.
2596 (in_gnu_ifunc_stub): Likewise.
2597 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2598 (find_line_pc): Likewise.
2599 (find_line_pc_range): Likewise.
2600 (matching_obj_sections): Likewise.
2601 (find_line_symtab): Change out parameter to bool.
2602 (producer_is_realview): Change return type to bool.
2603 (compare_filenames_for_search): Likewise.
2604 (compare_glob_filenames_for_search): Likewise.
2605
27a900b8
TT
26062019-09-26 Tom Tromey <tom@tromey.com>
2607
2608 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2609 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2610 * gdb_usleep.h: Remove.
2611 * gdb_usleep.c: Remove.
2612 * utils.c: Don't include gdb_usleep.h.
2613
5d63b30a
TT
26142019-09-26 Tom Tromey <tromey@adacore.com>
2615
2616 * python/py-type.c (type_to_type_object): Call check_typedef
2617 for stub types.
2618
12904d37
TT
26192019-09-26 Tom Tromey <tom@tromey.com>
2620
2621 * utils.h (initialize_utils): Don't declare.
2622 * top.c (gdb_init): Don't call initialize_utils.
2623 * utils.c (initialize_utils): Remove. Move contents...
2624 (_initialize_utils): ... here.
2625
858f25f0
TT
26262019-09-25 Tom Tromey <tom@tromey.com>
2627
2628 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2629 * utils.h (make_hex_string): Don't declare.
2630 * utils.c (make_hex_string): Remove.
2631
3d435220
TV
26322019-09-24 Tom de Vries <tdevries@suse.de>
2633
2634 PR gdb/23815
2635 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2636 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2637
ddd44b70
DD
26382019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2639
2640 * NEWS: Mention new simulator port for PRU.
2641
f945dedf
CB
26422019-09-23 Christian Biesinger <cbiesinger@google.com>
2643
2644 * ada-exp.y (write_object_remaining): Update.
2645 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2646 and eliminate the static buffer.
2647 (ada_decode_symbol): Update.
2648 (ada_la_decode): Update.
2649 (ada_sniff_from_mangled_name): Update.
2650 (is_valid_name_for_wild_match): Update.
2651 (ada_lookup_name_info::matches): Update and simplify.
2652 (name_matches_regex): Update.
2653 (ada_add_global_exceptions): Update.
2654 * ada-lang.h (ada_decode): Update signature.
2655 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2656 * dwarf-index-write.c (debug_names::insert): Update.
2657
7ab78ccb
SM
26582019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2659
2660 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2661 formatting.
2662
9252448b
SM
26632019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2664
2665 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2666 Change "nonzero" to "true" in documentation.
2667
626ca2c0
CB
26682019-09-20 Christian Biesinger <cbiesinger@google.com>
2669
2670 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2671 (_initialize_darwin_solib): Don't set
2672 darwin_so_ops.lookup_lib_global_symbol.
2673 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2674 set_gdbarch_iterate_over_objfiles_in_search_order.
2675 (elf_lookup_lib_symbol): Rename to...
2676 (svr4_iterate_over_objfiles_in_search_order): this, and update
2677 to iterate semantics.
2678 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2679 * solib.c (solib_global_lookup): Remove.
2680 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2681 (solib_global_lookup): Remove.
2682 * symtab.c (lookup_global_or_static_symbol): Remove call to
2683 solib_global_lookup.
2684
5a3a0d63
JB
26852019-09-20 Joel Brobecker <brobecker@adacore.com>
2686
2687 * NEWS: Move entries about default MI version now being
2688 version 3, and about the GDB/MI fix for multi-location
2689 breakpoints to the "since GDB 8.3" section.
2690
ffea1427
JB
26912019-09-20 Joel Brobecker <brobecker@adacore.com>
2692
2693 GDB 8.3.1 released.
2694
abf516c6
UW
26952019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2696
2697 * NEWS: Mention that Cell/B.E. debugging support was removed.
2698 * MAINTAINERS: Remove spu target.
2699
2700 * config/djgpp/fnchange.lst: Remove entries for removed files.
2701
2702 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2703 spu-multiarch.o, and spu-tdep.o.
2704 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2705 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2706 spu-multiarch.c, and spu-tdep.c.
2707 * spu-linux-nat.c: Remove file.
2708 * spu-multiarch.c: Remove file.
2709 * spu-tdep.c: Remove file.
2710 * spu-tdep.h: Remove file.
2711 * solib-spu.c: Remove file.
2712 * solib-spu.h: Remove file.
2713
2714 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2715 * configure.nat (spu-linux): Remove.
2716 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2717 solib-multiarch.o from gdb_target_obs.
2718 (spu*-*-*): Remove.
2719
2720 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2721 feature flag.
2722 (ppc_linux_no_features): Update.
2723 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2724 Cell/B.E. support.
2725 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2726 (tdesc_powerpc_cell64l): Likewise.
2727 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2728 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2729 Cell/B.E. support.
2730 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2731 Do not include "features/rs6000/powerpc-cell32l.c" or
2732 "features/rs6000/powerpc-cell64l.c".
2733 (ppc_linux_spu_section): Remove.
2734 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2735 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2736 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2737 (ppc_linux_spe_context_lookup): Remove.
2738 (ppc_linux_spe_context_inferior_created): Remove.
2739 (ppc_linux_spe_context_solib_loaded): Remove.
2740 (ppc_linux_spe_context_solib_unloaded): Remove.
2741 (ppc_linux_spe_context): Remove.
2742 (struct ppu2spu_cache): Remove.
2743 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2744 (struct ppu2spu_data): Remove.
2745 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2746 ppu2spu_unwind): Remove.
2747 (ppc_linux_init_abi): Remove Cell/B.E. support.
2748 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2749
2750 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2751 (rs6000/powerpc-cell64l-expedite): Likewise
2752 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2753 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2754 rs6000/powerpc-cell64l.xml.
2755 * features/rs6000/powerpc-cell32l.xml: Remove.
2756 * features/rs6000/powerpc-cell64l.xml: Likewise.
2757 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2758 * features/rs6000/powerpc-cell64l.c: Likewise.
2759 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2760 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2761 * regformats/reg-spu.dat: Remove.
2762
2763 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2764 * corelow.c (struct spuid_list): Remove.
2765 (add_to_spuid_list): Remove.
2766 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2767 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2768 (remote_protocol_features): Remove associated entries.
2769 (_initialize_remote): No longer initialize them.
2770 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2771 * linux-nat.c (SPUFS_MAGIC): Remove.
2772 (linux_proc_xfer_spu): Remove.
2773 (spu_enumerate_spu_ids): Remove.
2774 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2775 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2776 (linux_make_corefile_notes): No longer call it.
2777
2778 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2779 (cooked_write_test): Likewise.
2780
78e8cb91
TT
27812019-09-20 Tom Tromey <tom@tromey.com>
2782
2783 * NEWS: Mention case-sensitivity of TUI commands.
2784 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2785 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2786 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2787
f074b67e
TT
27882019-09-20 Tom Tromey <tom@tromey.com>
2789
2790 * tui/tui-source.c (tui_source_window::set_contents): Use
2791 make_unique_xstrdup.
2792 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2793 make_unique_xstrdup.
2794
63c4bf19
TT
27952019-09-20 Tom Tromey <tom@tromey.com>
2796
2797 * tui/tui-data.c: Remove separator comments.
2798 * tui/tui-layout.c: Remove separator comments.
2799 * tui/tui-win.c: Remove separator comments.
2800 * tui/tui-wingeneral.c: Remove separator comments.
2801
43df9b2f
TT
28022019-09-20 Tom Tromey <tom@tromey.com>
2803
2804 * tui/tui.h (strcat_to_buf): Don't declare.
2805 * tui/tui.c (strcat_to_buf): Remove.
2806
7226433c
TT
28072019-09-20 Tom Tromey <tom@tromey.com>
2808
2809 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2810 from "fullname".
2811 * tui/tui-source.c (tui_source_window::set_contents)
2812 (tui_source_window::location_matches_p)
2813 (tui_source_window::maybe_update): Update.
2814
80df3337
TT
28152019-09-20 Tom Tromey <tom@tromey.com>
2816
2817 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2818 Update.
2819 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2820 prefix.
2821 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2822 (tui_data_window::line_from_reg_element_no)
2823 (tui_data_window::first_reg_element_no_inline)
2824 (tui_data_window::show_registers)
2825 (tui_data_window::show_register_group)
2826 (tui_data_window::display_registers_from)
2827 (tui_data_window::display_registers_from_line)
2828 (tui_data_window::first_data_item_displayed)
2829 (tui_data_window::delete_data_content_windows)
2830 (tui_data_window::erase_data_content)
2831 (tui_data_window::do_scroll_vertical)
2832 (tui_data_window::refresh_window)
2833 (tui_data_window::check_register_values): Update.
2834
9923f347
TT
28352019-09-20 Tom Tromey <tom@tromey.com>
2836
2837 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2838 (struct tui_locator_window) <full_name, proc_name>: Now
2839 std::string.
2840 * tui/tui-stack.c (tui_locator_window::make_status_line)
2841 (tui_locator_window::set_locator_fullname)
2842 (tui_locator_window::set_locator_info): Update.
2843 * tui/tui-source.c (tui_source_window::set_contents)
2844 (tui_source_window::showing_source_p): Update.
2845
b76251ab
TT
28462019-09-20 Tom Tromey <tom@tromey.com>
2847
2848 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2849 Don't call tui_locator_win_info_ptr.
2850
0891be08
TT
28512019-09-20 Tom Tromey <tom@tromey.com>
2852
2853 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2854
1b935acf
TT
28552019-09-20 Tom Tromey <tom@tromey.com>
2856
2857 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2858 height for locator.
2859 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2860 * tui/tui-layout.c (show_source_disasm_command, show_data)
2861 (show_source_or_disasm_and_command): Use 1 as height for locator.
2862
9abd8a65
TT
28632019-09-20 Tom Tromey <tom@tromey.com>
2864
2865 * tui/tui.c (tui_enable): Update.
2866 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2867 Update.
2868 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2869 Update.
2870 * tui/tui-data.c (win_resized): Now bool.
2871 (tui_win_resized): Return bool.
2872 (tui_set_win_resized_to): Accept a bool.
2873
b5457826
TT
28742019-09-20 Tom Tromey <tom@tromey.com>
2875
2876 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2877 Change type of "refresh_values_only".
2878 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2879 type of "refresh_values_only".
2880
6b915f7d
TT
28812019-09-20 Tom Tromey <tom@tromey.com>
2882
2883 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2884 std::string.
2885 (tui_disassemble): Add "pos" parameter.
2886 (tui_disasm_window::set_contents): Simplify.
2887
2ad52f6f
TT
28882019-09-20 Tom Tromey <tom@tromey.com>
2889
2890 * tui/tui-winsource.h (struct tui_source_window_base)
2891 <show_source_content>: Now private.
2892 * tui/tui-winsource.c
2893 (tui_source_window_base::show_source_content): Don't handle empty
2894 content case.
2895
b3b1bde6
TT
28962019-09-20 Tom Tromey <tom@tromey.com>
2897
2898 * tui/tui-layout.c (show_source_disasm_command)
2899 (show_source_or_disasm_and_command): Don't call
2900 show_source_content.
2901
71a25ed2
TT
29022019-09-20 Tom Tromey <tom@tromey.com>
2903
2904 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2905 Declare.
2906 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2907 from tui_make_status_line.
2908 (tui_locator_window::rerender): Update.
2909
f8532154
TT
29102019-09-20 Tom Tromey <tom@tromey.com>
2911
2912 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2913 (tui_locator_window::rerender): Update.
2914
2d81b349
TT
29152019-09-20 Tom Tromey <tom@tromey.com>
2916
2917 * tui/tui-winsource.h (struct tui_source_window_base)
2918 <~tui_source_window_base>: Don't declare.
2919 <fullname>: Remove.
2920 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2921 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2922 member.
2923 * tui/tui-source.c (tui_source_window::set_contents): Update.
2924 (tui_source_window::location_matches_p)
2925 (tui_source_window::maybe_update): Update.
2926
f14bec58
TT
29272019-09-20 Tom Tromey <tom@tromey.com>
2928
2929 * tui/tui-winsource.h (~tui_source_element): Remove.
2930 (tui_source_element): Update.
2931 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2932 * tui/tui-winsource.c (tui_show_source_line): Update.
2933 * tui/tui-source.c (tui_source_window::set_contents): Update.
2934 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2935
78d5933a
TT
29362019-09-20 Tom Tromey <tom@tromey.com>
2937
2938 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2939 declare.
2940 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2941 tui_clear_source_windows_detail.
2942 * tui/tui-winsource.h (struct tui_source_window_base)
2943 <clear_detail>: Don't declare.
2944 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2945 Remove.
2946 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2947
d4207696
TT
29482019-09-20 Tom Tromey <tromey@adacore.com>
2949
2950 PR ada/24919:
2951 * block.c (contained_in): Fix final return value.
2952
00f93c44
AM
29532019-09-20 Alan Modra <amodra@gmail.com>
2954
2955 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2956 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2957 (read_indirect_string_from_dwz): Use bfd accessor.
2958 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2959 * machoread.c (macho_symfile_read_all_oso): Likewise.
2960 * solib.c (solib_bfd_open): Likewise.
2961
e4153ae6
CB
29622019-09-19 Christian Biesinger <cbiesinger@google.com>
2963
2964 * eval.c: Move declaration of overload_resolution to...
2965 * value.h: ...here.
2966
c7ae7675
CB
29672019-09-19 Christian Biesinger <cbiesinger@google.com>
2968
2969 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2970 * arm-linux-tdep.c: Likewise.
2971 * arm-nbsd-nat.c: Likewise.
2972 * arm-tdep.h: Declare arm_apcs_32.
2973 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2974
e86f08d2
CB
29752019-09-19 Christian Biesinger <cbiesinger@google.com>
2976
2977 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2978 * dwarf2read.h: Declare dwarf_always_disassemble.
2979
f64e2f40
TV
29802019-09-19 Tom de Vries <tdevries@suse.de>
2981
2982 PR gdb/25009
2983 * source-cache.c (source_cache::ensure): Catch exception thrown during
2984 construction of the highlighter.
2985
fd361982
AM
29862019-09-18 Alan Modra <amodra@gmail.com>
2987
2988 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2989 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2990 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2991 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2992 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2993 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2994 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
2995 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
2996 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
2997 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
2998 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
2999 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3000 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3001 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3002 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3003 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3004 * mi/mi-interp.c: Update throughout for bfd section macro and
3005 function changes.
3006 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3007 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3008
11061048
TT
30092019-09-18 Tom Tromey <tom@tromey.com>
3010
3011 * NEWS: Add entry.
3012 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3013 call rl_initialize.
3014 (tui_enable): Do not call rl_initialize.
3015
7a27b85f
CG
30162019-09-18 Christian Groessler <chris@groessler.org>
3017
3018 * alpha-linux-nat.c: Include gdbarch.h.
3019
f64eea3a
SM
30202019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3021
3022 * ui-file.c: Include cli/cli-style.h.
3023 (term_cli_styling): Remove cli_styling declaration.
3024
e6f7f6d1
AM
30252019-09-18 Alan Modra <amodra@gmail.com>
3026
3027 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3028 to bfd_asymbol_section.
3029
1d38e9d1
AM
30302019-09-18 Alan Modra <amodra@gmail.com>
3031
3032 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3033 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3034 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3035
90d92a63
AM
30362019-09-18 Alan Modra <amodra@gmail.com>
3037
3038 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3039 * spu-linux-nat.c (spu_bfd_open): Likewise.
3040
a3d181d2
CB
30412019-09-18 Christian Biesinger <cbiesinger@google.com>
3042
3043 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3044 to bool to match definition in dwarf2read.c.
3045
491144b5
CB
30462019-09-17 Christian Biesinger <cbiesinger@google.com>
3047
3048 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3049 (print_signatures): Likewise.
3050 (trust_pad_over_xvs): Likewise.
3051 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3052 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3053 * arm-linux-nat.c (arm_apcs_32): Likewise.
3054 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3055 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3056 * arm-tdep.c (arm_debug): Likewise.
3057 (arm_apcs_32): Likewise.
3058 * auto-load.c (debug_auto_load): Likewise.
3059 (auto_load_gdb_scripts): Likewise.
3060 (global_auto_load): Likewise.
3061 (auto_load_local_gdbinit): Likewise.
3062 (auto_load_local_gdbinit_loaded): Likewise.
3063 * auto-load.h (global_auto_load): Likewise.
3064 (auto_load_local_gdbinit): Likewise.
3065 (auto_load_local_gdbinit_loaded): Likewise.
3066 * breakpoint.c (disconnected_dprintf): Likewise.
3067 (breakpoint_proceeded): Likewise.
3068 (automatic_hardware_breakpoints): Likewise.
3069 (always_inserted_mode): Likewise.
3070 (target_exact_watchpoints): Likewise.
3071 (_initialize_breakpoint): Update.
3072 * breakpoint.h (target_exact_watchpoints): Change to bool.
3073 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3074 * cli/cli-cmds.c (trace_commands): Likewise.
3075 * cli/cli-cmds.h (trace_commands): Likewise.
3076 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3077 to bool*.
3078 * cli/cli-logging.c (logging_overwrite): Change to bool.
3079 (logging_redirect): Likewise.
3080 (debug_redirect): Likewise.
3081 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3082 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3083 to bool.
3084 <boolean_option_def>: Update.
3085 (struct flag_option_def): Change default type of Context to bool
3086 from int.
3087 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3088 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3089 (get_setshow_command_value_string): Likewise.
3090 * cli/cli-style.c (cli_styling): Change to bool.
3091 (source_styling): Likewise.
3092 * cli/cli-style.h (source_styling): Likewise.
3093 (cli_styling): Likewise.
3094 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3095 to bool.
3096 * command.h (var_types): Update comment.
3097 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3098 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3099 bool.
3100 (debug_compile_cplus_scopes): Likewise.
3101 * compile/compile-internal.h (compile_debug): Likewise.
3102 * compile/compile.c (compile_debug): Likewise.
3103 (struct compile_options) <raw>: Likewise.
3104 * cp-support.c (catch_demangler_crashes): Likewise.
3105 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3106 (usr_cmd_cris_dwarf2_cfi): Likewise.
3107 * csky-tdep.c (csky_debug): Likewise.
3108 * darwin-nat.c (enable_mach_exceptions): Likewise.
3109 * dcache.c (dcache_enabled_p): Likewise.
3110 * defs.h (info_verbose): Likewise.
3111 * demangle.c (demangle): Likewise.
3112 (asm_demangle): Likewise.
3113 * dwarf-index-cache.c (debug_index_cache): Likewise.
3114 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3115 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3116 * dwarf2read.c (check_physname): Likewise.
3117 (use_deprecated_index_sections): Likewise.
3118 (dwarf_always_disassemble): Likewise.
3119 * eval.c (overload_resolution): Likewise.
3120 * event-top.c (set_editing_cmd_var): Likewise.
3121 (exec_done_display_p): Likewise.
3122 * event-top.h (set_editing_cmd_var): Likewise.
3123 (exec_done_display_p): Likewise.
3124 * exec.c (write_files): Likewise.
3125 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3126 (debug_fbsd_nat): Likewise.
3127 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3128 Likewise.
3129 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3130 <backtrace_past_entry> Likewise.
3131 * gdb-demangle.h (demangle): Likewise.
3132 (asm_demangle): Likewise.
3133 * gdb_bfd.c (bfd_sharing): Likewise.
3134 * gdbcore.h (write_files): Likewise.
3135 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3136 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3137 * gdbthread.h (print_thread_events): Likewise.
3138 * gdbtypes.c (opaque_type_resolution): Likewise.
3139 (strict_type_checking): Likewise.
3140 * gnu-nat.c (gnu_debug_flag): Likewise.
3141 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3142 * guile/scm-param.c (pascm_variable): Add boolval.
3143 (add_setshow_generic): Update.
3144 (pascm_param_value): Update.
3145 (pascm_set_param_value_x): Update.
3146 * hppa-tdep.c (hppa_debug): Change to bool..
3147 * infcall.c (may_call_functions_p): Likewise.
3148 (coerce_float_to_double_p): Likewise.
3149 (unwind_on_signal_p): Likewise.
3150 (unwind_on_terminating_exception_p): Likewise.
3151 * infcmd.c (startup_with_shell): Likewise.
3152 * inferior.c (print_inferior_events): Likewise.
3153 * inferior.h (startup_with_shell): Likewise.
3154 (print_inferior_events): Likewise.
3155 * infrun.c (step_stop_if_no_debug): Likewise.
3156 (detach_fork): Likewise.
3157 (debug_displaced): Likewise.
3158 (disable_randomization): Likewise.
3159 (non_stop): Likewise.
3160 (non_stop_1): Likewise.
3161 (observer_mode): Likewise.
3162 (observer_mode_1): Likewise.
3163 (set_observer_mode): Update.
3164 (sched_multi): Change to bool.
3165 * infrun.h (debug_displaced): Likewise.
3166 (sched_multi): Likewise.
3167 (step_stop_if_no_debug): Likewise.
3168 (non_stop): Likewise.
3169 (disable_randomization): Likewise.
3170 * linux-tdep.c (use_coredump_filter): Likewise.
3171 (dump_excluded_mappings): Likewise.
3172 * linux-thread-db.c (auto_load_thread_db): Likewise.
3173 (check_thread_db_on_load): Likewise.
3174 * main.c (captured_main_1): Update.
3175 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3176 xx2_opt, boolean_opt>: Change to bool.
3177 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3178 * maint.c (maintenance_profile_p): Likewise.
3179 (per_command_time): Likewise.
3180 (per_command_space): Likewise.
3181 (per_command_symtab): Likewise.
3182 * memattr.c (inaccessible_by_default): Likewise.
3183 * mi/mi-main.c (mi_async): Likewise.
3184 (mi_async_1): Likewise.
3185 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3186 * nat/fork-inferior.h (startup_with_shell): Likewise.
3187 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3188 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3189 * nios2-tdep.c (nios2_debug): Likewise.
3190 * or1k-tdep.c (or1k_debug): Likewise.
3191 * parse.c (parser_debug): Likewise.
3192 * parser-defs.h (parser_debug): Likewise.
3193 * printcmd.c (print_symbol_filename): Likewise.
3194 * proc-api.c (procfs_trace): Likewise.
3195 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3196 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3197 (set_parameter_value): Update.
3198 (add_setshow_generic): Update.
3199 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3200 to bool*.
3201 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3202 int*.
3203 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3204 * record-btrace.c (record_btrace_target::store_registers): Update.
3205 * record-full.c (record_full_memory_query): Change to bool.
3206 (record_full_stop_at_limit): Likewise.
3207 * record-full.h (record_full_memory_query): Likewise.
3208 * remote-notif.c (notif_debug): Likewise.
3209 * remote-notif.h (notif_debug): Likewise.
3210 * remote.c (use_range_stepping): Likewise.
3211 (interrupt_on_connect): Likewise.
3212 (remote_break): Likewise.
3213 * ser-tcp.c (tcp_auto_retry): Likewise.
3214 * ser-unix.c (serial_hwflow): Likewise.
3215 * skip.c (debug_skip): Likewise.
3216 * solib-aix.c (solib_aix_debug): Likewise.
3217 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3218 (spu_auto_flush_cache_p): Likewise.
3219 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3220 Likewise.
3221 (struct info_print_options) <quiet>: Likewise.
3222 * symfile-debug.c (debug_symfile): Likewise.
3223 * symfile.c (auto_solib_add): Likewise.
3224 (separate_debug_file_debug): Likewise.
3225 * symfile.h (auto_solib_add): Likewise.
3226 (separate_debug_file_debug): Likewise.
3227 * symtab.c (basenames_may_differ): Likewise.
3228 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3229 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3230 (struct info_types_options) <quiet>: Likewise.
3231 * symtab.h (demangle): Likewise.
3232 (basenames_may_differ): Likewise.
3233 * target-dcache.c (stack_cache_enabled_1): Likewise.
3234 (code_cache_enabled_1): Likewise.
3235 * target.c (trust_readonly): Likewise.
3236 (may_write_registers): Likewise.
3237 (may_write_memory): Likewise.
3238 (may_insert_breakpoints): Likewise.
3239 (may_insert_tracepoints): Likewise.
3240 (may_insert_fast_tracepoints): Likewise.
3241 (may_stop): Likewise.
3242 (auto_connect_native_target): Likewise.
3243 (target_stop_and_wait): Update.
3244 (target_async_permitted): Change to bool.
3245 (target_async_permitted_1): Likewise.
3246 (may_write_registers_1): Likewise.
3247 (may_write_memory_1): Likewise.
3248 (may_insert_breakpoints_1): Likewise.
3249 (may_insert_tracepoints_1): Likewise.
3250 (may_insert_fast_tracepoints_1): Likewise.
3251 (may_stop_1): Likewise.
3252 * target.h (target_async_permitted): Likewise.
3253 (may_write_registers): Likewise.
3254 (may_write_memory): Likewise.
3255 (may_insert_breakpoints): Likewise.
3256 (may_insert_tracepoints): Likewise.
3257 (may_insert_fast_tracepoints): Likewise.
3258 (may_stop): Likewise.
3259 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3260 (make_thread_apply_all_options_def_group): Change argument from int*
3261 to bool*.
3262 (thread_apply_all_command): Update.
3263 (print_thread_events): Change to bool.
3264 * top.c (confirm): Likewise.
3265 (command_editing_p): Likewise.
3266 (history_expansion_p): Likewise.
3267 (write_history_p): Likewise.
3268 (info_verbose): Likewise.
3269 * top.h (confirm): Likewise.
3270 (history_expansion_p): Likewise.
3271 * tracepoint.c (disconnected_tracing): Likewise.
3272 (circular_trace_buffer): Likewise.
3273 * typeprint.c (print_methods): Likewise.
3274 (print_typedefs): Likewise.
3275 * utils.c (debug_timestamp): Likewise.
3276 (sevenbit_strings): Likewise.
3277 (pagination_enabled): Likewise.
3278 * utils.h (sevenbit_strings): Likewise.
3279 (pagination_enabled): Likewise.
3280 * valops.c (overload_resolution): Likewise.
3281 * valprint.h (struct value_print_options) <prettyformat_arrays,
3282 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3283 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3284 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3285 Likewise.
3286 * windows-nat.c (new_console): Likewise.
3287 (cygwin_exceptions): Likewise.
3288 (new_group): Likewise.
3289 (debug_exec): Likewise.
3290 (debug_events): Likewise.
3291 (debug_memory): Likewise.
3292 (debug_exceptions): Likewise.
3293 (useshell): Likewise.
3294 * windows-tdep.c (maint_display_all_tib): Likewise.
3295 * xml-support.c (debug_xml): Likewise.
3296
f1b620e9
MG
32972019-09-17 Mike Gulick <mgulick@mathworks.com>
3298
3299 * source.c (prepare_path_for_appending): New function.
3300 (openp): Make use of new function.
3301 (find_and_open_source): Search for the compilation directory and
3302 source file as a relative path beneath the directory search path.
3303
67f3ed6a
AB
33042019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3305
3306 * source-cache.c (source_cache::get_line_charpos): Catch
3307 exceptions and return false, this matches the behaviour documented
3308 in the header file.
3309
74332189
JB
33102019-09-17 Joel Brobecker <brobecker@adacore.com>
3311
3312 * ada-tasks.c (info_task): Remove quoting of the task's name.
3313
f2f24aa9
CB
33142019-09-16 Christian Biesinger <cbiesinger@google.com>
3315
3316 * symfile.c (auto_solib_add): Replace comment with a reference
3317 to the header file.
3318
6a062a93
CB
33192019-09-14 Christian Biesinger <cbiesinger@google.com>
3320
3321 * NEWS: Mention that gdb can now be compiled with Python 3
3322 on Windows.
3323
ec6c8338
AB
33242019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3325
3326 * maint.c (maint_print_section_data::maint_print_section_data):
3327 Force use of 'float log10 (float)' by casting the argument to
3328 float.
3329
aa17805f
AB
33302019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3331
3332 * maint.c: Add 'cmath' include.
3333 (struct maint_print_section_data): New structure.
3334 (print_section_index): New function.
3335 (print_bfd_section_info): Add header comment, small whitespace
3336 cleanup, and update to call new print_section_index function.
3337 (print_objfile_section_info): Likewise.
3338 (maint_obj_section_from_bfd_section): New function.
3339 (print_bfd_section_info_maybe_relocated): New function.
3340 (maintenance_info_sections): Add header comment, always use
3341 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3342
3dd9bb46
AB
33432019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3344
3345 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3346 inner scope, add check that the objfile has psymtabs before
3347 checking psymtabs_addrmap.
3348 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3349
4993045d
PW
33502019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3351
3352 * NEWS: Announce that Ada task names are now shown at more places,
3353 and between quotes (except in info task output).
3354 * gdb/ada-tasks.c (task_to_str): New function.
3355 (display_current_task_id): Call task_to_str.
3356 (task_command_1): Likewise.
3357 (print_ada_task_info): In non-mi mode, Properly align headers and data
3358 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3359
7a289707
RO
33602019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3361
3362 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3363 prstatus.pr_lwp.pr_info instead of making it up.
3364
f2aec7f6
CB
33652019-09-11 Christian Biesinger <cbiesinger@google.com>
3366
3367 * auto-load.c (auto_load_expand_dir_vars): Update.
3368 * defs.h (gdb_datadir): Change to std::string.
3369 (python_libdir): Likewise.
3370 (relocate_gdb_directory): Change return type to std::string.
3371 * guile/guile.c (gdbscm_data_directory): Update.
3372 (initialize_scheme_side): Update.
3373 * jit.c (jit_reader_dir): Change to std::string.
3374 (jit_reader_load_command): Update.
3375 * main.c (gdb_datadir): Change to std::string.
3376 (python_libdir): Likewise.
3377 (set_gdb_data_directory): Update.
3378 (relocate_path): Change to return std::string.
3379 (relocate_gdb_directory): Change to return std::string.
3380 (relocate_gdbinit_path_maybe_in_datadir): Update.
3381 (captured_main_1): Update.
3382 * python/python.c (do_start_initialization): Update.
3383 * top.c (show_gdb_datadir): Update.
3384 * xml-syscall.c (xml_init_syscalls_info): Update.
3385 (init_syscalls_info): Update.
3386
9224a013
CB
33872019-09-11 Christian Biesinger <cbiesinger@google.com>
3388
3389 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3390 out of get_init_files.
3391 (get_init_files): Update.
3392
f48cd836
CB
33932019-09-11 Christian Biesinger <cbiesinger@google.com>
3394
3395 * main.c (get_init_files): Change to use std::string.
3396 (captured_main_1): Update.
3397 (print_gdb_help): Update.
3398
9cab7ecd
AT
33992019-09-11 Ali Tamur <tamur@google.com>
3400
3401 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3402 implementation.
3403
67547d89
CB
34042019-09-11 Christian Biesinger <cbiesinger@google.com>
3405
3406 * dbxread.c (read_dbx_symtab): Update.
3407 * dwarf2read.c (load_partial_dies): Update.
3408 * mdebugread.c (parse_partial_symbols): Update.
3409 (handle_psymbol_enumerators): Update.
3410 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3411 * psymtab.c (add_psymbol_to_bcache): Likewise.
3412 (add_psymbol_to_list): Likewise.
3413 * symtab.c (symbol_set_names): Likewise.
3414 * symtab.h (symbol_set_names): Likewise.
3415 * xcoffread.c (scan_xcoff_symtab): Update.
3416
64b2d4a0
TT
34172019-09-11 Tom Tromey <tom@tromey.com>
3418
3419 * symfile-mem.c (symbol_file_add_from_memory): Use
3420 bfd_set_filename.
3421 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3422 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3423
3b00ef10
TT
34242019-09-10 Tom Tromey <tromey@adacore.com>
3425
3426 * dwarf-index-write.c (write_psymbols): Extend error message.
3427 (debug_names::insert): Add Ada code.
3428 (debug_names::write_psymbols): Remove Ada check.
3429 (debug_names) <m_string_obstack>: New member.
3430 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3431 (gdb_index_symbol_name_matcher::matches): Remove.
3432 (mapped_index_base::find_name_components_bounds): Add "lang"
3433 parameter.
3434 (mapped_index_base::build_name_components): Also split names
3435 according to Ada syntax.
3436 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3437 type of "match_callback".
3438 (check_match, check_find_bounds_finds)
3439 (dw2_expand_symtabs_matching): Update.
3440 (dw2_debug_names_iterator): Add new constructor.
3441 (dw2_debug_names_map_matching_symbols): New function.
3442 (dw2_debug_names_expand_symtabs_matching): Update.
3443 (dwarf2_debug_names_functions): Use
3444 dw2_debug_names_map_matching_symbols.
3445
aa391654
TT
34462019-09-10 Tom Tromey <tromey@adacore.com>
3447
3448 * dwarf2read.c (dw2_get_file_names_reader): Add the
3449 CU's file name to the results.
3450
b054970d
TT
34512019-09-10 Tom Tromey <tromey@adacore.com>
3452
3453 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3454 map_matching_symbols. Update.
3455 * dwarf2read.c (dw2_map_matching_symbols): Update.
3456 * psymtab.c (match_partial_symbol): Change type; update.
3457 (psym_map_matching_symbols): Likewise.
3458 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3459 type; update.
3460 * symfile.h (struct quick_symbol_functions)
3461 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3462 Remove "match".
3463
6a3dbf1b
TT
34642019-09-10 Tom Tromey <tromey@adacore.com>
3465
3466 * psymtab.c (map_block): Remove.
3467 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3468 * symtab.c (iterate_over_symbols_terminated): New function.
3469 * symtab.c (iterate_over_symbols_terminated): Declare.
3470
6969f124
TT
34712019-09-10 Tom Tromey <tromey@adacore.com>
3472
3473 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3474 * language.h (struct language_defn) <la_iterate_over_symbols>:
3475 Return bool.
3476 * symtab.c (iterate_over_symbols): Return bool.
3477 * symtab.h (iterate_over_symbols): Return bool.
3478
199b4314
TT
34792019-09-10 Tom Tromey <tromey@adacore.com>
3480
3481 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3482 (add_nonlocal_symbols): Update.
3483 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3484 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3485 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3486 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3487 Change type of "callback". Remove "data".
3488
a084a2a6
AT
3489
34902019-09-09 Ali Tamur <tamur@google.com>
3491
3492 * dwarf2read.c (comp_unit_head): Update comment.
3493 (dwarf2_dwo_name): New function declaration.
3494 (dwarf_unit_type_name): New function declaration.
3495 (read_comp_unit_head): Add support for new compilation units,
3496 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3497 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3498 (currently named as "signature") in their header. Also clarify error
3499 messages.
3500 (lookup_dwo_id): New function. Returns the dwo id of the given
3501 compile unit.
3502 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3503 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3504 functions.
3505 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3506 (dwarf2_dwo_name): Get the dwo name if present.
3507 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3508 purposes.
3509
25a2915e
TT
35102019-09-09 Tom Tromey <tom@tromey.com>
3511
3512 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3513
e4df0874
PW
35142019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3515
3516 * python/python.c (do_start_initialization): Make progname_copy static,
3517 to avoid a leak report.
3518
8634b462
TT
35192019-09-08 Tom Tromey <tom@tromey.com>
3520
3521 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3522
c7f839cb
SM
35232019-09-07 Simon Marchi <simon.marchi@efficios.com>
3524
3525 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3526 Change type to gdb::optional<block_enum>.
3527 (dw2_symtab_iter_init): Change block_index parameter type
3528 to gdb::optional<block_enum>.
3529 (dw2_lookup_symbol): Change block_index parameter
3530 type to block_enum.c
3531 (dw2_debug_names_lookup_symbol): Likewise.
3532 * psymtab.c (psym_lookup_symbol): Likewise.
3533 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3534 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3535 Likewise.
3536
ead0e69a
CB
35372019-09-06 Christian Biesinger <cbiesinger@google.com>
3538
3539 * defs.h (relocate_gdb_directory): Change int to bool in
3540 signature and rename flag to relocatable.
3541 * main.c (relocate_path): Likewise.
3542 (relocate_gdb_directory): Likewise.
3543
b16c44de
AM
35442019-09-06 Alan Modra <amodra@gmail.com>
3545
3546 * coffread.c (coff_symfile_read): Constify filename variable.
3547 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3548 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3549 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3550 * solib.c (reload_shared_libraries_1): Likewise.
3551 * symfile.c (reread_symbols): Likewise.
3552 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3553 * solib-darwin.c (darwin_bfd_open): Likewise.
3554 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3555
06ff036e
AB
35562019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3557
3558 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3559 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3560
4e962e74
TT
35612019-09-03 Tom Tromey <tromey@adacore.com>
3562
3563 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3564 types.
3565 (has_negatives): Unbias a range type bound.
3566 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3567 * gdbtypes.c (operator==): Handle new field.
3568 (create_range_type): Add "bias" parameter.
3569 (create_static_range_type, resolve_dynamic_range): Update.
3570 * gdbtypes.h (struct range_bounds) <bias>: New member.
3571 (create_range_type): Add bias parameter.
3572 * printcmd.c (print_scalar_formatted): Unbias range types.
3573 * value.c (unpack_long): Unbias range types.
3574 (pack_long): Bias range types.
3575
d90b8f26
AH
35762019-09-02 Alan Hayward <alan.hayward@arm.com>
3577
3578 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3579 probe arguments.
3580
fe01123e
AH
35812019-09-02 Alan Hayward <alan.hayward@arm.com>
3582
3583 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3584 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3585 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3586 (compile_probe_arg): Likewise.
3587 * probe.h (get_argument_count): Likewise.
3588 * solib-svr4.c (solib_event_probe_action): Likewise.
3589 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3590
e661ef01
AH
35912019-09-02 Alan Hayward <alan.hayward@arm.com>
3592
3593 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3594 code to here...
3595 (svr4_create_solib_event_breakpoints): ...from here.
3596
47a536d9
SDJ
35972019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3598
3599 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3600 suffix from warning message.
3601
d6a00eba
TT
36022019-08-30 Tom Tromey <tom@tromey.com>
3603
3604 * tui/tui-winsource.h (struct tui_source_window_base)
3605 <refresh_all>: Don't declare.
3606 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3607 Remove.
3608 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3609 tui_show_locator_content.
3610 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3611 declare.
3612 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3613 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3614 declare.
3615
55b2657b
TT
36162019-08-30 Tom Tromey <tom@tromey.com>
3617
3618 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3619
12a8555a
TT
36202019-08-30 Tom Tromey <tom@tromey.com>
3621
3622 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3623 Remove unnecessary forward declarations.
3624
900ac242
TT
36252019-08-30 Tom Tromey <tom@tromey.com>
3626
3627 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3628 rerender.
3629 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3630 tui_show_locator_content.
3631
99ab33fb
TT
36322019-08-30 Tom Tromey <tom@tromey.com>
3633
3634 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3635 (tui_locator_window::rerender): Rewrite using body of previous
3636 tui_show_locator_content.
3637
e594a5d1
TT
36382019-08-30 Tom Tromey <tom@tromey.com>
3639
3640 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3641 set_locator_fullname>: New methods.
3642 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3643 Rename from tui_set_locator_fullname.
3644 (tui_locator_window::set_locator_info): Rename from
3645 tui_set_locator_info. Return bool.
3646 (tui_update_locator_fullname, tui_show_frame_info): Update.
3647
715bb467
TT
36482019-08-30 Tom Tromey <tom@tromey.com>
3649
3650 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3651
772f3f03
TT
36522019-08-30 Tom Tromey <tom@tromey.com>
3653
3654 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3655 call touchwin.
3656
108e13ab
TT
36572019-08-30 Tom Tromey <tom@tromey.com>
3658
3659 * tui/tui-wingeneral.c (box_win): Assume win_info and
3660 win_info->handle cannot be NULL.
3661
cdaa6eb4
TT
36622019-08-30 Tom Tromey <tom@tromey.com>
3663
3664 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3665 refresh_window>: Declare.
3666 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3667 resize.
3668 (tui_data_item_window::rerender): Rename from
3669 tui_display_register.
3670 (tui_data_item_window::refresh_window): New method.
3671 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3672 no-op.
3673
89df7f90
TT
36742019-08-30 Tom Tromey <tom@tromey.com>
3675
3676 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3677 regs_column_count, current_group>: Move later. Now private.
3678 <get_current_group>: New method.
3679 * tui/tui-regs.c (tui_reg_command): Update.
3680 * tui/tui-layout.c (tui_set_layout): Update.
3681
1bf2866a
TT
36822019-08-30 Tom Tromey <tom@tromey.com>
3683
3684 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3685 (tui_data_window::rerender): Don't call
3686 check_and_display_highlight_if_needed.
3687 (tui_data_window::refresh_all): Remove call to
3688 erase_data_content.
3689
0670413d
TT
36902019-08-30 Tom Tromey <tom@tromey.com>
3691
3692 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3693 (tui_data_window::display_registers_from)
3694 (tui_data_window::display_reg_element_at_line)
3695 (tui_data_window::display_registers_from_line): Remove checks of
3696 "empty".
3697
18bb55c7
TT
36982019-08-30 Tom Tromey <tom@tromey.com>
3699
3700 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3701 Don't declare.
3702 * tui/tui-regs.c (tui_data_window::show_registers): Call
3703 rerender.
3704 (tui_data_window::rerender): Rename from display_all_data.
3705 (tui_data_window::rerender): Remove old implementation.
3706
1f6d2f10
TT
37072019-08-30 Tom Tromey <tom@tromey.com>
3708
3709 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3710 text.
3711 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3712
16d01f9c
BW
37132019-08-29 Bernhard Wodok <barto@gmx.net>
3714 Sergio Durigan Junior <sergiodj@redhat.com>
3715
3716 PR win32/24284
3717 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3718
d8f27c60
AB
37192019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3720
3721 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3722 when searching for types.
3723
1f20c35e
AB
37242019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3725
3726 * f-lang.c (f_language_defn): Use f_print_typedef.
3727 * f-lang.h (f_print_typedef): Declare.
3728 * f-typeprint.c (f_print_typedef): Define.
3729
550105b7
CB
37302019-08-27 Christian Biesinger <cbiesinger@google.com>
3731
3732 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3733
4acfdd20
AB
37342019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3735
3736 * cli/cli-utils.c (info_print_options_defs): Delete.
3737 (make_info_print_options_def_group): Delete.
3738 (extract_info_print_options): Delete.
3739 (info_print_command_completer): Delete.
3740 (info_print_args_help): Add extra parameter, and optionally
3741 include text about -n flag.
3742 * cli/cli-utils.h (struct info_print_options): Delete.
3743 (extract_info_print_options): Delete declaration.
3744 (info_print_command_completer): Delete declaration.
3745 (info_print_args_help): Add extra parameter, extend header
3746 comment.
3747 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3748 search_symbols.
3749 * stack.c (struct info_print_options): New type.
3750 (info_print_options_defs): New file scoped variable.
3751 (make_info_print_options_def_group): New static function.
3752 (info_print_command_completer): New static function.
3753 (info_locals_command): Update to use new local functions.
3754 (info_args_command): Likewise.
3755 (_initialize_stack): Add extra parameter to calls to
3756 info_print_args_help.
3757 * symtab.c (search_symbols): Add extra parameter, use this to
3758 possibly excluse non-debug symbols.
3759 (symtab_symbol_info): Add extra parameter, which is passed on to
3760 search_symbols.
3761 (struct info_print_options): New type.
3762 (info_print_options_defs): New file scoped variable.
3763 (make_info_print_options_def_group): New static function.
3764 (info_print_command_completer): New static function.
3765 (info_variables_command): Update to use local functions, and pass
3766 extra parameter through to symtab_symbol_info.
3767 (info_functions_command): Likewise.
3768 (info_types_command): Pass additional argument through to
3769 symtab_symbol_info.
3770 (rbreak_command): Pass extra argument to search_symbols.
3771 (_initialize_symtab): Add extra arguments for calls to
3772 info_print_args_help, and update help text for 'info variables',
3773 'whereis', and 'info functions' commands.
3774 * symtab.h (search_symbols): Add extra argument to declaration.
3775 * NEWS: Mention new flags.
3776
9aa55206
CB
37772019-08-26 Christian Biesinger <cbiesinger@google.com>
3778
3779 * symtab.c (lookup_static_symbol): Call the new function (and move
3780 it down to be next to lookup_global_symbol).
3781 (struct global_sym_lookup_data): Add block_enum member and rename to...
3782 (struct global_or_static_sym_lookup_data): ...this.
3783 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3784 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3785 (lookup_symbol_global_or_static_iterator_cb): ...this.
3786 (lookup_global_or_static_symbol): New function.
3787 (lookup_global_symbol): Call new function.
3788
5c31b358
TV
37892019-08-26 Tom de Vries <tdevries@suse.de>
3790
3791 PR c++/24852
3792 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3793 when pc_probe.prob == NULL.
3794
23c13d42
SM
37952019-08-25 Simon Marchi <simon.marchi@efficios.com>
3796
3797 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3798 variable symbol_linkage to symbol_linkage_.
3799
beadd3e8
SM
38002019-08-25 Simon Marchi <simon.marchi@efficios.com>
3801
3802 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3803 represent whether the symbol is static, dynamic, or we don't
3804 know.
3805
e3ec872f
YS
38062019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3807
3808 * gdb/rx-tdep.c (rx_register_names): New.
3809 (rx_register_name): Delete.
3810 (rx_psw_type): Delete.
3811 (rx_fpsw_type): Delete.
3812 (rx_register_type): Delete.
3813 (rx_gdbarch_init): Convert target-descriptions.
3814 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3815 * gdb/features/Makefile: Add rx.xml.
3816 * gdb/features/rx.xml: New.
3817 * gdb/features/rx.c: Generated.
3818 * gdb/NEWS: Mention target description support.
3819
d0509ba4
CB
38202019-08-22 Christian Biesinger <cbiesinger@google.com>
3821
3822 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3823 *slot_ptr.
3824
2d41fa11
SDJ
38252019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3826
3827 * configure.ac: Don't check for 'dlfcn.h' (moved to
3828 gdbsupport/common.m4).
3829 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3830 'gdbsupport/'.
3831 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3832 * compile/compile-c-support.c: Include
3833 'gdbsupport/gdb-dlfcn.h'.
3834 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3835 * gdb-dlfcn.c: Move to...
3836 * gdbsupport/gdb-dlfcn.c: ... here.
3837 * gdb-dlfcn.h: Move to...
3838 * gdbsupport/gdb-dlfcn.h: ... here.
3839
de8af808
SL
38402019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3841
3842 * nios2-tdep.c (struct reg_value): Improve comments. Make
3843 the offset field signed.
3844
27204489
CB
38452019-08-22 Christian Biesinger <cbiesinger@google.com>
3846
3847 * python/lib/gdb/__init__.py (_execute_file): New function.
3848 * python/python.c (python_run_simple_file): Call gdb._execute_file
3849 on Windows.
3850
43771869
AB
38512019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3852
3853 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3854 all uses as this was never set to anything but a zero value.
3855
26c957f1
PA
38562019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3857
3858 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3859
c07aae6e
CB
38602019-08-21 Christian Biesinger <cbiesinger@google.com>
3861
3862 * tui/tui-data.h (tui_gen_win_info): Add an =default
3863 move constructor, required by some GCC versions.
3864
3960cb7a
JF
38652019-08-21 Jinke Fan <fanjinke51@yeah.net>
3866
3867 * go32-nat.c (go32_sysinfo): Add hygon_p.
3868
04c72a68
TT
38692019-08-20 Tom Tromey <tom@tromey.com>
3870
3871 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3872 line_from_reg_element_no, first_reg_element_no_inline,
3873 display_all_data, delete_data_content_windows,
3874 erase_data_content>: Now private.
3875
072272ce
TT
38762019-08-20 Tom Tromey <tom@tromey.com>
3877
3878 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3879 (tui_unhighlight_win, tui_highlight_win)
3880 (tui_win_info::make_window): Update.
3881 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3882
973961bd
TT
38832019-08-20 Tom Tromey <tom@tromey.com>
3884
3885 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3886 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3887 (MAX_PID_WIDTH): Move to tui-stack.c.
3888 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3889 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3890 (MAX_PID_WIDTH): Move from tui-data.h.
3891
ab0e1f1a
TT
38922019-08-20 Tom Tromey <tom@tromey.com>
3893
3894 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3895 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3896 (box_win): Update.
3897 (tui_gen_win_info::make_window): Rename from tui_make_window.
3898 (tui_win_info::make_window): New method.
3899 (tui_gen_win_info::make_visible): Update.
3900 * tui/tui-source.c (tui_source_window::set_contents): Update.
3901 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3902 (tui_data_window::display_registers_from): Update.
3903 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3904 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3905 Declare.
3906 <can_box>: Remove.
3907 <title>: Remove.
3908 (struct tui_win_info) <make_window>: Declare.
3909 <can_box>: Now virtual.
3910 <title>: New member.
3911 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3912 * tui/tui-command.c (tui_cmd_window::resize): Update.
3913
100c2bf3
TT
39142019-08-20 Tom Tromey <tom@tromey.com>
3915
3916 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3917 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3918 (tui_data_window::check_register_values): Update.
3919
fa4dc567
TT
39202019-08-20 Tom Tromey <tom@tromey.com>
3921
3922 * tui/tui-regs.h (struct tui_data_window): Use
3923 DISABLE_COPY_AND_ASSIGN.
3924 <regs_content>: Change type, removing unique_ptr.
3925 <tui_data_window>: Add move constructor.
3926 * tui/tui-regs.c (tui_data_window::show_registers)
3927 (tui_data_window::show_register_group)
3928 (tui_data_window::display_registers_from)
3929 (tui_data_window::display_registers_from)
3930 (tui_data_window::first_data_item_displayed)
3931 (tui_data_window::delete_data_content_windows)
3932 (tui_data_window::rerender, tui_data_window::refresh_window)
3933 (tui_data_window::check_register_values): Update.
3934
ca02d7c8
TT
39352019-08-20 Tom Tromey <tom@tromey.com>
3936
3937 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3938 show_register_group>: Declare.
3939 (tui_show_register_group): Don't declare.
3940 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3941 tui_show_registers.
3942 (tui_data_window::show_register_group): Rename from
3943 tui_show_register_group.
3944 (tui_data_window::check_register_values, tui_reg_command):
3945 Update.
3946 * tui/tui-layout.c (tui_set_layout): Update.
3947
63356bfd
TT
39482019-08-20 Tom Tromey <tom@tromey.com>
3949
3950 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3951 Declare.
3952 (tui_check_register_values): Don't declare.
3953 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3954 from tui_check_register_values.
3955 * tui/tui-hooks.c (tui_register_changed): Update.
3956
42cc14a7
TT
39572019-08-20 Tom Tromey <tom@tromey.com>
3958
3959 * tui/tui-regs.c (tui_reg_layout): Move later.
3960 (tui_show_registers): Don't enable TUI mode or change layout.
3961
b9ad3686
TT
39622019-08-20 Tom Tromey <tom@tromey.com>
3963
3964 * tui/tui-regs.h (struct tui_data_item_window)
3965 <~tui_data_item_window>: Remove.
3966 <content>: Now a unique_xmalloc_ptr.
3967 * tui/tui-regs.c (tui_register_format): Return a
3968 unique_xmalloc_ptr.
3969 (tui_get_register): Update.
3970 (~tui_data_item_window): Remove.
3971 (tui_data_window::display_registers_from, tui_display_register):
3972 Update.
3973 * tui/tui-io.h (tui_expand_tabs): Update.
3974 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3975 Remove "col" parameter.
3976
8e114aab
TT
39772019-08-20 Tom Tromey <tom@tromey.com>
3978
3979 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3980 field.
3981 * tui/tui-regs.c (~tui_data_item_window): Update.
3982
1a4f81dd
TT
39832019-08-20 Tom Tromey <tom@tromey.com>
3984
3985 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3986 earlier.
3987
0f8d8876
TT
39882019-08-20 Tom Tromey <tom@tromey.com>
3989
3990 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3991
605dc2c2
TT
39922019-08-20 Tom Tromey <tom@tromey.com>
3993
3994 * tui/tui-source.h (struct tui_source_window): Update.
3995 * tui/tui-regs.c (tui_show_registers): Update.
3996 * tui/tui-disasm.h (struct tui_disasm_window): Update.
3997 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
3998 (NO_REGS_STRING): Remove defines.
3999
aedbe3bb
CM
40002019-08-20 Conrad Meyer <cem@FreeBSD.org>
4001
4002 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4003 unnecessary thread walk if remote doesn't support the packet.
4004
7ce8f214
TT
40052019-08-19 Tom Tromey <tromey@adacore.com>
4006
4007 * python/py-value.c (value_has_field): Fix indentation.
4008
f21c2bd7
TT
40092019-08-19 Tom Tromey <tromey@adacore.com>
4010
4011 * printcmd.c (do_one_display, info_display_command): Update.
4012 * block.h (contained_in): Return bool. Add allow_nested
4013 parameter.
4014 * block.c (contained_in): Return bool. Add allow_nested
4015 parameter.
4016
d806ea2d
TT
40172019-08-19 Tom Tromey <tom@tromey.com>
4018
4019 * configure: Rebuild.
4020 * configure.ac: Disallow the combination of -static-libstdc++ and
4021 source highlight.
4022 * source-cache.c (get_language_name): Handle rust.
4023 (source_cache::get_source_lines): Ignore highlighting exceptions.
4024
398fdd60
TT
40252019-08-16 Tom Tromey <tom@tromey.com>
4026
4027 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4028 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4029 (struct tui_source_window_base) <make_visible, refresh_window,
4030 resize>: Remove methods.
4031 <execution_info>: Remove field.
4032 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4033 (tui_show_source_line, tui_source_window_base)
4034 (~tui_source_window_base): Update.
4035 (tui_source_window_base::resize)
4036 (tui_source_window_base::make_visible)
4037 (tui_source_window_base::refresh_window): Remove.
4038 (tui_source_window_base::update_exec_info): Update.
4039 * tui/tui-source.c (tui_source_window::set_contents): Update.
4040 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4041
e699d331
TT
40422019-08-16 Tom Tromey <tom@tromey.com>
4043
4044 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4045 deprecated_query_hook.
4046
bb01dbfc
TT
40472019-08-16 Tom Tromey <tom@tromey.com>
4048
4049 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4050 (tui_update_source_windows_with_line): Update.
4051 * tui/tui-source.h (struct tui_source_window)
4052 <show_symtab_source>: Declare.
4053 (tui_show_symtab_source): Don't declare.
4054 * tui/tui-source.c (tui_show_symtab_source): Rename from
4055 tui_show_symtab_source.
4056
81c82c4b
TT
40572019-08-16 Tom Tromey <tom@tromey.com>
4058
4059 * tui/tui-winsource.h (struct tui_source_window_base)
4060 <set_contents>: Declare.
4061 * tui/tui-winsource.c
4062 (tui_source_window_base::update_source_window_as_is): Update.
4063 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4064 Declare.
4065 (tui_set_source_content): Don't declare.
4066 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4067 tui_set_source_content.
4068 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4069 Declare.
4070 (tui_set_disassem_content): Don't declare.
4071 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4072 tui_set_disassem_content.
4073
2ddaf614
TT
40742019-08-16 Tom Tromey <tom@tromey.com>
4075
4076 * tui/tui-winsource.h (struct tui_source_window_base)
4077 <update_breakpoint_info>: Declare.
4078 (tui_update_breakpoint_info): Don't declare.
4079 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4080 (tui_update_all_breakpoint_info): Update.
4081 (tui_source_window_base::update_breakpoint_info): Rename from
4082 tui_update_breakpoint_info.
4083 (tui_source_window_base::update_exec_info): Update.
4084
017f9828
TT
40852019-08-16 Tom Tromey <tom@tromey.com>
4086
4087 * tui/tui-winsource.h (struct tui_source_window_base)
4088 <update_source_window>: Declare.
4089 (tui_update_source_window): Don't declare.
4090 * tui/tui-winsource.c
4091 (tui_source_window_base::update_source_window): Rename from
4092 tui_update_source_window.
4093 (tui_source_window_base::rerender): Update.
4094 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4095 * tui/tui-disasm.c (tui_show_disassem)
4096 (tui_show_disassem_and_update_source)
4097 (tui_disasm_window::maybe_update): Update.
4098
ed8358e9
TT
40992019-08-16 Tom Tromey <tom@tromey.com>
4100
4101 * tui/tui-winsource.h (struct tui_source_window_base)
4102 <update_source_window_as_is>: Declare.
4103 (tui_update_source_window_as_is): Don't declare.
4104 * tui/tui-winsource.c (tui_update_source_window): Update
4105 (tui_source_window_base::update_source_window_as_is): Rename from
4106 tui_update_source_window_as_is.
4107 (tui_source_window_base::refill): Update.
4108 * tui/tui-source.c (tui_show_symtab_source): Update.
4109 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4110 Update.
4111
20149b6b
TT
41122019-08-16 Tom Tromey <tom@tromey.com>
4113
4114 * tui/tui-winsource.h (tui_update_source_window)
4115 (tui_update_source_window_as_is): Remove "noerror" parameter.
4116 * tui/tui-winsource.c (tui_update_source_window)
4117 (tui_update_source_window_as_is): Remove "noerror" parameter.
4118 (tui_update_source_windows_with_addr)
4119 (tui_update_source_windows_with_line)
4120 (tui_source_window_base::rerender)
4121 (tui_source_window_base::refill): Update.
4122 * tui/tui-source.h (tui_set_source_content)
4123 (tui_show_symtab_source): Remove "noerror" parameter.
4124 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4125 parameter.
4126 (tui_show_symtab_source): Likewise.
4127 (tui_source_window::maybe_update): Update.
4128 * tui/tui-disasm.c (tui_show_disassem)
4129 (tui_show_disassem_and_update_source)
4130 (tui_disasm_window::do_scroll_vertical)
4131 (tui_disasm_window::maybe_update): Update.
4132
2d83e710
TT
41332019-08-16 Tom Tromey <tom@tromey.com>
4134
4135 * tui/tui.c (tui_is_window_visible): Update.
4136 * tui/tui-wingeneral.c (tui_make_window)
4137 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4138 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4139 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4140 (tui_set_win_height_command, parse_scrolling_args): Update.
4141 * tui/tui-source.c (tui_source_window::style_changed): Update.
4142 * tui/tui-regs.c (tui_show_registers)
4143 (tui_data_window::first_data_item_displayed)
4144 (tui_data_window::delete_data_content_windows)
4145 (tui_check_register_values, tui_reg_command): Update.
4146 * tui/tui-disasm.c (tui_show_disassem): Update.
4147 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4148 method.
4149 <is_visible>: Remove field.
4150 * tui/tui-data.c (tui_next_win, tui_prev_win)
4151 (tui_delete_invisible_windows): Update.
4152
d4ab829a
TT
41532019-08-16 Tom Tromey <tom@tromey.com>
4154
4155 * tui/tui-winsource.h (struct tui_source_window_base)
4156 <m_has_locator>: Remove.
4157 * tui/tui-layout.c (show_source_disasm_command, show_data)
4158 (show_source_or_disasm_and_command): Update.
4159
aa7ca1bb
AH
41602019-08-16 Alan Hayward <alan.hayward@arm.com>
4161
4162 * NEWS (Other MI changes): New subsection.
4163 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4164 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4165 * arch-utils.c (default_get_pc_address_flags): New function.
4166 * arch-utils.h (default_get_pc_address_flags): New declaration.
4167 * gdbarch.sh: Add get_pc_address_flags.
4168 * gdbarch.c: Regenerate.
4169 * gdbarch.h: Likewise.
4170 * stack.c (print_pc): New function.
4171 (print_frame_info) (print_frame): Call print_pc.
4172
6eac171f
TV
41732019-08-16 Tom de Vries <tdevries@suse.de>
4174
4175 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4176 print_objfile_section_info.
4177
3df505f6
TT
41782019-08-15 Tom Tromey <tom@tromey.com>
4179
4180 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4181 calling update_cmdwin_start_line.
4182 * tui/tui-winsource.h (struct tui_source_window_base)
4183 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4184 <rerender>: Declare.
4185 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4186 Call rerender.
4187 (tui_source_window_base::set_new_height): Remove.
4188 (tui_source_window_base::rerender): Rename from
4189 do_make_visible_with_new_height.
4190 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4191 resize method.
4192 (tui_win_info::make_invisible_and_set_new_height)
4193 (tui_win_info::make_visible_with_new_height): Remove.
4194 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4195 Declare.
4196 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4197 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4198 do_make_visible_with_new_height>: Don't declare.
4199 <rerender>: Declare.
4200 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4201 set_new_height.
4202 (tui_data_window::do_make_visible_with_new_height): Remove.
4203 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4204 call tui_show_locator_content.
4205 (tui_gen_win_info::resize): Call rerender.
4206 (show_source_or_disasm_and_command): Don't call
4207 tui_show_locator_content.
4208 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4209 method.
4210 (struct tui_win_info) <rerender>: Declare.
4211 <set_new_height, make_invisible_and_set_new_height,
4212 make_visible_with_new_height>: Don't declare.
4213 * tui/tui-data.c (tui_win_list::rerender): New method.
4214 * tui/tui-command.h (struct tui_cmd_window)
4215 <do_make_visible_with_new_height>: Don't declare.
4216 * tui/tui-command.c
4217 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4218
272560b5
TT
42192019-08-15 Tom Tromey <tromey@adacore.com>
4220
4221 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4222 * ada-lang.c (ada_enum_name): Likewise.
4223
08235187
CB
42242019-08-15 Christian Biesinger <cbiesinger@google.com>
4225
4226 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4227 leading underscore.
4228 (GdbOutputErrorFile): Likewise.
4229 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4230 accordingly.
4231 (execute_unwinders): Rename to have a leading underscore.
4232 (auto_load_packages): Likewise.
4233 (global scope): Adjust call to auto_load_packages accordingly.
4234 (GdbSetPythonDirectory): Likewise.
4235 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4236 instead of execute_unwinders.
4237
db502012
TT
42382019-08-15 Tom Tromey <tom@tromey.com>
4239
4240 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4241 (show_data): Don't change window visibility.
4242 (tui_gen_win_info::resize): Remove special case for command
4243 window. Use wresize, when available.
4244 (show_source_or_disasm_and_command): Don't change window
4245 visibility.
4246 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4247 <make_visible>: New method.
4248 * tui/tui-command.c (tui_cmd_window::resize): New method.
4249
3891b65e
TT
42502019-08-15 Tom Tromey <tom@tromey.com>
4251
4252 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4253 (struct tui_source_windows): New.
4254 * tui/tui-winsource.c (tui_display_main): Update.
4255 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4256 (new_height_ok, parse_scrolling_args): Update.
4257 * tui/tui-layout.c (show_layout, show_data): Update.
4258 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4259 (tui_add_to_source_windows): Don't declare.
4260 * tui/tui-data.c (source_windows, tui_source_windows)
4261 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4262
ee556432
TT
42632019-08-15 Tom Tromey <tom@tromey.com>
4264
4265 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4266 Rename from reset.
4267 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4268 * tui/tui-layout.c (show_source_disasm_command, show_data):
4269 Update.
4270 (tui_gen_win_info::resize): Rename.
4271 (show_source_or_disasm_and_command): Update.
4272 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4273 reset.
4274
46f438e3
TT
42752019-08-15 Tom Tromey <tom@tromey.com>
4276
4277 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4278 * tui/tui-interp.c (tui_interp::init): Don't call
4279 tui_initialize_static_data.
4280 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4281
f4ce562c
TT
42822019-08-15 Tom Tromey <tom@tromey.com>
4283
4284 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4285 examine tui_win_list.
4286
c398c3d0
TT
42872019-08-15 Tom Tromey <tom@tromey.com>
4288
4289 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4290 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4291 tui_clear_source_content.
4292 (tui_clear_source_content): Remove.
4293 (tui_source_window_base::do_erase_source_content): Hoist call to
4294 content.clear().
4295 * tui/tui-stack.c (tui_show_frame_info): Don't call
4296 tui_clear_source_content.
4297
e25d2004
TT
42982019-08-15 Tom Tromey <tom@tromey.com>
4299
4300 * tui/tui-winsource.h (struct tui_source_window_base)
4301 <do_erase_source_content>: New method.
4302 <erase_source_content>: New method.
4303 (tui_erase_source_content): Don't declare.
4304 * tui/tui-winsource.c (tui_clear_source_content): Update.
4305 (tui_source_window_base::do_erase_source_content): Rename from
4306 tui_erase_source_content.
4307 (tui_source_window_base::show_source_content): Update.
4308 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4309 * tui/tui-source.h (struct tui_source_window)
4310 <erase_source_content>: New method.
4311 * tui/tui-disasm.h (struct tui_disasm_window)
4312 <erase_source_content>: New method.
4313
002f15c2
TT
43142019-08-15 Tom Tromey <tom@tromey.com>
4315
4316 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4317 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4318 constructor.
4319 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4320 * tui/tui-source.c (tui_set_source_content): Update.
4321 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4322
c9033fe8
TT
43232019-08-15 Tom Tromey <tom@tromey.com>
4324
4325 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4326 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4327 tui-source.c.
4328 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4329 Declare.
4330 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4331 method.
4332 (tui_source_window::maybe_update): Update.
4333
088f37dd
TT
43342019-08-15 Tom Tromey <tom@tromey.com>
4335
4336 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4337 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4338 tui-disasm.c.
4339 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4340 Declare.
4341 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4342 method.
4343 (tui_disasm_window::maybe_update): Update.
4344
a54700c6
TT
43452019-08-15 Tom Tromey <tom@tromey.com>
4346
4347 * tui/tui-winsource.h (struct tui_source_window_base)
4348 <maybe_update>: Declare.
4349 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4350 method.
4351 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4352 Declare.
4353 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4354 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4355 Declare.
4356 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4357
e2a678a5
TT
43582019-08-15 Tom Tromey <tom@tromey.com>
4359
4360 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4361
f2dda477
TT
43622019-08-15 Tom Tromey <tom@tromey.com>
4363
4364 * tui/tui-wingeneral.c: Include tui-stack.h.
4365 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4366 (struct tui_locator_window): Move from tui-data.h.
4367 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4368 (tui_initialize_static_data): Move from tui-data.c.
4369 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4370 (struct tui_locator_window): Move to tui-stack.c.
4371 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4372 (tui_initialize_static_data): Move to tui-stack.c.
4373
ed4a1084
TT
43742019-08-15 Tom Tromey <tom@tromey.com>
4375
4376 * tui/tui-layout.c (show_source_disasm_command)
4377 (show_source_or_disasm_and_command): Use make_visible method, not
4378 tui_make_window.
4379 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4380 Remove.
4381
65962b20
TT
43822019-08-15 Tom Tromey <tom@tromey.com>
4383
4384 * tui/tui-wingeneral.h (tui_make_window): Update.
4385 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4386 parameter.
4387 (tui_gen_win_info::make_visible): Update.
4388 * tui/tui-regs.c (tui_data_window::display_registers_from):
4389 Update.
4390 * tui/tui-layout.c (show_source_disasm_command)
4391 (show_source_or_disasm_and_command): Update.
4392 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4393 (enum tui_box): Remove.
4394 (struct tui_win_info) <can_box>: New method.
4395 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4396 method.
4397
2208ee91
TV
43982019-08-15 Tom de Vries <tdevries@suse.de>
4399
4400 * linux-nat-trad.c: Include gdbarch.h.
4401
75faf5c4
AH
44022019-08-14 Alan Hayward <alan.hayward@arm.com>
4403
4404 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4405 register sizes.
4406
b1c896b3
TT
44072019-08-14 Tom Tromey <tromey@adacore.com>
4408
4409 * darwin-nat.c: Include gdbarch.h.
4410 * darwin-nat-info.c: Include gdbarch.h.
4411
6405cd73
TT
44122019-08-13 Tom Tromey <tom@tromey.com>
4413
4414 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4415 Remove.
4416 * tui/tui-data.c (tui_initialize_static_data): Update.
4417
5216580d
TT
44182019-08-13 Tom Tromey <tom@tromey.com>
4419
4420 * tui/tui-winsource.h (struct tui_exec_info_window)
4421 <~tui_exec_info_window, maybe_allocate_content, get_content,
4422 m_content>: Remove.
4423 (struct tui_source_window_base) <set_exec_info_content,
4424 show_exec_info_content>: Don't declare.
4425 * tui/tui-winsource.c
4426 (tui_exec_info_window::maybe_allocate_content): Remove.
4427 (tui_source_window_base::update_exec_info): Rename from
4428 set_exec_info_content.
4429 (tui_source_window_base::show_exec_info_content)
4430 (tui_source_window_base::update_exec_info): Remove.
4431
93858ad3
TT
44322019-08-13 Tom Tromey <tom@tromey.com>
4433
4434 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4435 declare.
4436 * tui/tui-winsource.c (tui_update_source_window_as_is)
4437 (tui_update_source_windows_with_addr, tui_erase_source_content):
4438 Update.
4439 (tui_clear_exec_info_content): Remove.
4440
e321e7ce
TT
44412019-08-13 Tom Tromey <tom@tromey.com>
4442
4443 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4444 declare.
4445 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4446 call tui_erase_exec_info_content.
4447 (tui_clear_exec_info_content): Rename from
4448 tui_erase_exec_info_content.
4449 (tui_clear_exec_info_content): Delete.
4450
8270ac62
TT
44512019-08-13 Tom Tromey <tom@tromey.com>
4452
4453 * tui/tui-winsource.h (struct tui_source_window_base)
4454 <show_exec_info_content>: Declare.
4455 (tui_show_exec_info_content): Don't declare.
4456 * tui/tui-winsource.c
4457 (tui_source_window_base::show_exec_info_content): Rename from
4458 tui_show_exec_info_content.
4459 (tui_source_window_base::update_exec_info): Update.
4460
7b56485d
TT
44612019-08-13 Tom Tromey <tom@tromey.com>
4462
4463 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4464 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4465 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4466 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4467 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4468 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4469 ... here.
4470
7ba913dc
TT
44712019-08-13 Tom Tromey <tom@tromey.com>
4472
4473 * tui/tui-winsource.h (struct tui_source_window_base)
4474 <update_exec_info>: Declare.
4475 (tui_update_exec_info): Don't declare.
4476 * tui/tui-winsource.c (tui_update_source_window_as_is)
4477 (tui_source_window_base::refresh_all)
4478 (tui_update_all_breakpoint_info): Update.
4479 (tui_source_window_base::update_exec_info): Rename from
4480 tui_update_exec_info.
4481 * tui/tui-stack.c (tui_show_frame_info): Update.
4482
37a4a131
TT
44832019-08-13 Tom Tromey <tom@tromey.com>
4484
4485 * tui/tui-winsource.h (struct tui_source_window_base)
4486 <set_exec_info_content>: Declare.
4487 (tui_set_exec_info_content): Don't declare.
4488 * tui/tui-winsource.c
4489 (tui_source_window_base::set_exec_info_content): Rename from
4490 tui_set_exec_info_content.
4491 (tui_update_exec_info): Update.
4492
0bd27e07
TT
44932019-08-13 Tom Tromey <tom@tromey.com>
4494
4495 * tui/tui-winsource.h (struct tui_source_window_base)
4496 <show_source_content>: Declare.
4497 (tui_show_source_content): Don't declare.
4498 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4499 (tui_source_window_base::show_source_content): Rename from
4500 tui_show_source_content.
4501 (tui_source_window_base::refresh_all): Update.
4502 * tui/tui-layout.c (show_source_disasm_command)
4503 (show_source_or_disasm_and_command): Update.
4504
b4ef5aeb
TT
45052019-08-13 Tom Tromey <tom@tromey.com>
4506
4507 * tui/tui-winsource.c (tui_erase_source_content)
4508 (tui_show_source_content, tui_source_window_base::refresh_all):
4509 Update.
4510 * tui/tui-wingeneral.h
4511 (tui_check_and_display_highlight_if_needed): Don't declare.
4512 * tui/tui-wingeneral.c
4513 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4514 check_and_display_highlight_if_needed.
4515 * tui/tui-win.c (tui_rehighlight_all)
4516 (tui_win_info::make_visible_with_new_height): Update.
4517 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4518 (tui_data_window::erase_data_content)
4519 (tui_data_window::display_all_data): Update.
4520 * tui/tui-data.h (struct tui_win_info)
4521 <check_and_display_highlight_if_needed>: Declare.
4522
fede5273
TT
45232019-08-13 Tom Tromey <tom@tromey.com>
4524
4525 * tui/tui-win.c (tui_resize_all): Call
4526 tui_delete_invisible_windows.
4527 * tui/tui-layout.c (show_layout): Call
4528 tui_delete_invisible_windows.
4529 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4530 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4531
22c3f490
TT
45322019-08-13 Tom Tromey <tom@tromey.com>
4533
4534 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4535 tui_add_win_to_layout.
4536
16cb7910
TT
45372019-08-13 Tom Tromey <tom@tromey.com>
4538
4539 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4540 * tui/tui-layout.c (tui_default_win_height): Now static.
4541
cc0c3ffb
TT
45422019-08-13 Tom Tromey <tom@tromey.com>
4543
4544 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4545 single switch.
4546 (show_source_disasm_command, show_source_or_disasm_and_command):
4547 Don't check current layout.
4548
3f3ffe54
TT
45492019-08-13 Tom Tromey <tom@tromey.com>
4550
4551 * tui/tui-wingeneral.c (make_all_visible): Remove.
4552 (tui_make_all_invisible): Simplify.
4553 * tui/tui-layout.c (tui_make_all_invisible): Move from
4554 tui-wingeneral.c; simplify.
4555 (show_layout): Hoist call to tui_make_all_invisible.
4556 (show_data): Don't call tui_make_all_invisible.
4557
69258091
TT
45582019-08-13 Tom Tromey <tom@tromey.com>
4559
4560 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4561 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4562
62cf57fe
TT
45632019-08-13 Tom Tromey <tom@tromey.com>
4564
4565 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4566 tui-data.c.
4567 (show_source_disasm_command, show_data)
4568 (show_source_or_disasm_and_command): Don't use
4569 tui_set_current_layout_to.
4570 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4571 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4572 tui-layout.c.
4573 (tui_set_current_layout_to): Remove.
4574
2afade5d
TT
45752019-08-13 Tom Tromey <tom@tromey.com>
4576
4577 * tui/tui-layout.c (tui_set_layout): Update.
4578 * tui/tui-data.h (struct tui_layout_def): Remove.
4579 (tui_layout_def): Don't declare.
4580 * tui/tui-data.c (layout_def): Remove.
4581 (tui_layout_def): Remove.
4582
a3504e96
TT
45832019-08-13 Tom Tromey <tom@tromey.com>
4584
4585 * tui/tui-winsource.h (struct tui_source_window_base)
4586 <clear_detail>: No longer "override".
4587 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4588 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4589 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4590 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4591 Remove.
4592 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4593
29c92911
TT
45942019-08-13 Tom Tromey <tromey@adacore.com>
4595
4596 * tracepoint.c: Don't include readline.h or history.h.
4597
86c6b807
TT
45982019-08-12 Tom Tromey <tom@tromey.com>
4599
4600 * configure: Rebuild.
4601 * configure.ac: Check for readline 7.
4602 * NEWS: Mention readline 7 requirement.
4603 * README: Update.
4604
5db2718c
TT
46052019-08-12 Tom Tromey <tom@tromey.com>
4606
4607 * mingw-hdep.c (gdb_select): Remove readline hack.
4608
dac36daf
PFC
46092019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4610
4611 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4612 when the function fails.
4613
1022c627
AA
46142019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4615
4616 * s390-tdep.c (s390_type_align): New function.
4617 (s390_gdbarch_init): Set it as type_align gdbarch method.
4618
eba4caf2
TV
46192019-08-09 Tom de Vries <tdevries@suse.de>
4620
4621 PR gdb/24591
4622 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4623 pc_low with relocation offset.
4624
123cd851
TT
46252019-08-07 Tom Tromey <tromey@adacore.com>
4626
4627 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4628 (print_frame_args): Update.
4629 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4630 Update.
4631 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4632 * frame.h (struct frame_arg): Add initializers.
4633 <error>: Now a unique_xmalloc_ptr.
4634
3d31bc39
AH
46352019-08-07 Alan Hayward <alan.hayward@arm.com>
4636
4637 * NEWS: Expand the Pointer Authentication entry.
4638 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4639 (aarch64_frame_unmask_lr): ... to this.
4640 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4641 Call aarch64_frame_unmask_lr.
4642 * frame.c (struct frame_info): Add "masked" variable.
4643 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4644 (fprint_frame): Check for masked pc.
4645 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4646 declarations.
4647 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4648 * stack.c (print_frame): Check for masked pc.
4649
0cf9feb9
TT
46502019-08-06 Tom Tromey <tom@tromey.com>
4651
4652 * stabsread.c (patch_block_stabs, read_one_struct_field)
4653 (read_enum_type): Use obstack_strndup.
4654 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4655 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4656 * dwarf2read.c (guess_full_die_structure_name)
4657 (anonymous_struct_prefix): Use obstack_strndup.
4658 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4659 * c-exp.y (yylex): Use obstack_strndup.
4660 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4661 (write_var_or_type): Use obstack_strndup.
4662
efba19b0
TT
46632019-08-06 Tom Tromey <tom@tromey.com>
4664
4665 * symfile.c (reread_symbols): Use obstack_strdup.
4666 * stabsread.c (read_type): Use obstack_strdup.
4667 * gdb_obstack.h (obstack_strdup): New overload.
4668 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4669 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4670 (dwarf2_canonicalize_name): Use obstack_strdup.
4671 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4672 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4673 Use obstack_strdup.
4674
f25102f7
TT
46752019-08-06 Tom Tromey <tom@tromey.com>
4676
4677 * gdb_obstack.h (obstack_strdup): Define.
4678 * gdb_obstack.c (obstack_strdup): Don't define.
4679
021887d8
TT
46802019-08-06 Tom Tromey <tom@tromey.com>
4681
4682 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4683 obstack_strdup.
4684 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4685 obstack_strdup.
4686 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4687 * stabsread.c (common_block_start): Use obstack_strdup.
4688 * objfiles.c (set_objfile_main_name, objfile): Use
4689 obstack_strdup.
4690 * namespace.c (add_using_directive): Use obstack_strdup.
4691 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4692 * jit.c (finalize_symtab): Use obstack_strdup.
4693 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4694 (guess_partial_die_structure_name, partial_die_info::fixup)
4695 (dwarf2_name): Use obstack_strdup.
4696 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4697 obstack_strdup.
4698 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4699 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4700 obstack_strdup.
4701 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4702
d2834edc
PW
47032019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4704
4705 * unittests/help-doc-selftests.c: New file.
4706 * Makefile.in: Add the new file.
4707
590042fc
PW
47082019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4709
4710 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4711 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4712 the full first line, except when FOR_VALUE_PREFIX. In this case,
4713 the trailing '.' is not output, and the first character is uppercased.
4714 (print_help_for_command): Update call to print_doc_line.
4715 (print_doc_of_command): Likewise.
4716 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4717 * cli/cli-option.c (append_indented_doc): Do not append newline.
4718 (build_help_option): Append newline after first appended_indented_doc
4719 only if a second call is done.
4720 (build_help): Append 2 new lines before each option, except the first
4721 one.
4722 * compile/compile.c (_initialize_compile): Add new lines after
4723 %OPTIONS%, when not at the end of the help.
4724 Change help doc or code
4725 producing the help doc to respect the invariants.
4726 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4727 Also removed the new line after 'Options:', as all other commands
4728 do not put an empty line between 'Options:' and the first option.
4729 * printcmd.c (_initialize_printcmd): Likewise.
4730 * stack.c (_initialize_stack): Likewise.
4731 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4732 incorrectly telling COMMAND is optional.
4733 * ada-lang.c (_initialize_ada_language): Change help doc or code
4734 producing the help doc to respect the invariants.
4735 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4736 * breakpoint.c (_initialize_breakpoint): Likewise.
4737 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4738 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4739 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4740 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4741 _initialize_cli_style): Likewise.
4742 * corelow.c (core_target_info): Likewise.
4743 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4744 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4745 * filesystem.c (_initialize_filesystem): Likewise.
4746 * frame.c (_initialize_frame): Likewise.
4747 * gnu-nat.c (add_task_commands): Likewise.
4748 * infcall.c (_initialize_infcall): Likewise.
4749 * infcmd.c (_initialize_infcmd): Likewise.
4750 * interps.c (_initialize_interpreter): Likewise.
4751 * language.c (_initialize_language): Likewise.
4752 * linux-fork.c (_initialize_linux_fork): Likewise.
4753 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4754 * maint.c (_initialize_maint_cmds): Likewise.
4755 * memattr.c (_initialize_mem): Likewise.
4756 * printcmd.c (_initialize_printcmd): Likewise.
4757 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4758 _RegEx): Likewise.
4759 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4760 * record-btrace.c (_initialize_record_btrace): Likewise.
4761 * record-full.c (_initialize_record_full): Likewise.
4762 * record.c (_initialize_record): Likewise.
4763 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4764 * regcache.c (_initialize_regcache): Likewise.
4765 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4766 _initialize_remote): Likewise.
4767 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4768 * serial.c (_initialize_serial): Likewise.
4769 * skip.c (_initialize_step_skip): Likewise.
4770 * source.c (_initialize_source): Likewise.
4771 * stack.c (_initialize_stack): Likewise.
4772 * symfile.c (_initialize_symfile): Likewise.
4773 * symtab.c (_initialize_symtab): Likewise.
4774 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4775 * top.c (init_main): Likewise.
4776 * tracefile-tfile.c (tfile_target_info): Likewise.
4777 * tracepoint.c (_initialize_tracepoint): Likewise.
4778 * tui/tui-win.c (_initialize_tui_win): Likewise.
4779 * utils.c (add_internal_problem_command): Likewise.
4780 * valprint.c (value_print_option_defs): Likewise.
4781
404f2902
FCE
47822019-08-06 Frank Ch. Eigler <fche@redhat.com>
4783
4784 PR build/24886
4785 * configure.ac: Drop enable-libmcheck support.
4786 * configure, config.in: Rebuild.
4787 * libmcheck.m4: Remove.
4788 * acinclude.m4: Don't include it.
4789 * Makefile.in: Don't distribute it.
4790 * top.c (print_gdb_configuration): Don't mention it.
4791
046bebe1
TT
47922019-08-06 Tom Tromey <tom@tromey.com>
4793
4794 * utils.c (set_output_style): Sometimes pass stream to
4795 emit_style_escape.
4796 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4797 * record-btrace.c (btrace_insn_history): Update.
4798 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4799 method.
4800 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4801 Update initializers.
4802 <m_uiout>: New field.
4803 <m_di>: Move lower.
4804 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4805 Remove "uiout" parameter.
4806 (dump_insns): Update.
4807 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4808 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4809
ddbcedf5
CB
48102019-08-06 Christian Biesinger <cbiesinger@google.com>
4811
4812 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4813 (error_in_psymtab_expansion): Likewise.
4814 (lookup_symbol_via_quick_fns): Likewise.
4815 (basic_lookup_transparent_type_quick): Likewise.
4816 (basic_lookup_transparent_type_1): Likewise.
4817
b08b16c8
TT
48182019-08-06 Tom Tromey <tromey@adacore.com>
4819
4820 * source.c (last_source_error): Now bool.
4821 (print_source_lines_base): Make "noprint" bool. Only open
4822 source file when last_source_visited changes.
4823
cb44333d
TT
48242019-08-06 Tom Tromey <tromey@adacore.com>
4825
4826 * annotate.c (annotate_source_line): Use g_source_cache.
4827 * source-cache.c (source_cache::get_plain_source_lines): Change
4828 parameters. Populate m_offset_cache.
4829 (source_cache::ensure): New method.
4830 (source_cache::get_line_charpos): New method.
4831 (extract_lines): Move lower. Change parameters.
4832 (source_cache::get_source_lines): Move lower.
4833 * source-cache.h (class source_cache): Update comment.
4834 <get_line_charpos>: New method.
4835 <get_source_lines>: Update comment.
4836 <clear>: Clear m_offset_cache.
4837 <get_plain_source_lines>: Change parameters.
4838 <ensure>: New method
4839 <m_offset_cache>: New member.
4840 * source.c (forget_cached_source_info_for_objfile): Update.
4841 (info_source_command): Use g_source_cache.
4842 (find_source_lines, open_source_file_with_line_charpos): Remove.
4843 (print_source_lines_base, search_command_helper): Use g_source_cache.
4844 * source.h (open_source_file_with_line_charpos): Don't declare.
4845 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4846 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4847 Use g_source_cache.
4848
872dceaa
TT
48492019-08-06 Tom Tromey <tromey@adacore.com>
4850
4851 * source-cache.c (source_cache::get_plain_source_lines):
4852 Remove "first_line" and "last_line" parameters.
4853 (source_cache::get_source_lines): Cache plain text.
4854 * source-cache.h (class source_cache)
4855 <get_plain_source_lines>: Update.
4856
269249d9
TT
48572019-08-06 Tom Tromey <tromey@adacore.com>
4858
4859 * source-cache.c (extract_lines): No longer a method.
4860 Changed type of parameter. Include final newline.
4861 (selftests::extract_lines_test): New function.
4862 (_initialize_source_cache): Likewise.
4863 * source-cache.h (class source_cache)
4864 <extract_lines>: Don't declare.
4865
c0e8dcd8
TT
48662019-08-06 Tom Tromey <tromey@adacore.com>
4867
4868 * breakpoint.c (init_breakpoint_sal): Update.
4869 (breakpoint): Update.
4870 * breakpoint.h (struct breakpoint) <filter>: Now a
4871 unique_xmalloc_ptr.
4872
0b27c27d
CB
48732019-08-05 Christian Biesinger <cbiesinger@google.com>
4874
4875 * NEWS: Mention dictionary access on blocks.
4876 * python/py-block.c (blpy_getitem): New function.
4877 (block_object_as_mapping): New struct.
4878 (block_object_type): Use new struct for tp_as_mapping field.
4879
4ee94178
CB
48802019-08-05 Christian Biesinger <cbiesinger@google.com>
4881
4882 * objfiles.h (objfile): Add a comment describing partial symbols.
4883
8abfcabc
TT
48842019-08-05 Tom Tromey <tromey@adacore.com>
4885
4886 * compile/compile.c (_initialize_compile): Use _(), not N_().
4887 * thread.c (_initialize_thread): Use _(), not N_().
4888 * stack.c (_initialize_stack): Use _(), not N_().
4889 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4890
2b79f376
SM
48912019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4892
4893 * dwarf2read.c (struct dw2_symtab_iterator):
4894 <want_specific_block>: Remove.
4895 <block_index>: Change type to gdb::optional.
4896 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4897 change type of BLOCK_INDEX parameter to gdb::optional.
4898 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4899 (dw2_lookup_symbol): Don't pass argument for
4900 WANT_SPECIFIC_BLOCK.
4901 (dw2_expand_symtabs_for_function): Don't pass argument for
4902 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4903 (class dw2_debug_names_iterator)
4904 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4905 parameter, change BLOCK_INDEX type to gdb::optional.
4906 <m_want_specific_block>: Remove.
4907 <m_block_index>: Change type to gdb::optional.
4908 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4909 gdb::optional. Re-write in function of gdb::optional.
4910 (dw2_debug_names_lookup_symbol): Don't pass argument for
4911 WANT_SPECIFIC_BLOCK.
4912 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4913 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4914 BLOCK_INDEX.
4915
ae60f04e
PW
49162019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4917
4918 * NEWS: Mention changes to "info sources" command.
4919
28cd9371
PW
49202019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4921
4922 * symtab.c (filename_partial_match_opts): New struct type.
4923 (struct output_source_filename_data): New members
4924 regexp, c_regexp, partial_match.
4925 (output_source_filename): Use new members to decide to print file.
4926 (info_sources_option_defs): New variable.
4927 (make_info_sources_options_def_group, print_info_sources_header,
4928 info_sources_command_completer):
4929 New functions.
4930 (info_sources_command): Read new optional arguments.
4931 (_initialize_symtab): Update info sources help.
4932
ca683e3a
AO
49332019-08-02 Alexandre Oliva <oliva@adacore.com>
4934
4935 * ada-lang.c (exception_support_info_v0): Renamed from...
4936 (default_exception_support_info): ... this. Create new
4937 definition for v1.
4938 (ada_has_this_exception_support): Look up catch_handlers_sym.
4939 (ada_exception_support_info_sniffer): Try v0 after default.
4940
f1264162
TT
49412019-08-01 Tom Tromey <tromey@adacore.com>
4942
4943 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4944 gdbarch.h.
4945
0a7b2485
CB
49462019-08-01 Christian Biesinger <cbiesinger@google.com>
4947
4948 * s12z-tdep.c: Fix include path for s12z-opc.h.
4949
c6bdbeb7
AH
49502019-08-01 Alan Hayward <alan.hayward@arm.com>
4951
4952 * NEWS: Require GNU make 3.82.
4953
a2bd7b82
TT
49542019-07-16 Tom Tromey <tom@tromey.com>
4955
4956 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4957 declare.
4958
aa3b6533
TT
49592019-07-30 Tom Tromey <tromey@adacore.com>
4960
4961 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4962
a1530dc7
KB
49632019-07-30 Kevin Buettner <kevinb@redhat.com>
4964
4965 * printcmd.c (print_address_symbolic): Print negative offsets.
4966 (build_address_symbolic): Force signed arithmetic when computing
4967 offset.
4968
2906593f
CB
49692019-07-30 Christian Biesinger <cbiesinger@google.com>
4970
4971 PR/24474: Add a function to lookup static variables.
4972 * NEWS: Mention this new function.
4973 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4974 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4975 * python/python.c (python_GdbMethods): Add new function.
4976
c620ed88
CB
49772019-07-29 Christian Biesinger <cbiesinger@google.com>
4978
4979 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4980 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4981 (objfpy_lookup_static_symbol): New function.
4982 (objfile_object_methods): Add new functions.
4983
bc4268a5
PW
49842019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4985
4986 * NEWS: Mention 'set|show print frame-info'. Mention new
4987 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4988 backtrace argument. Mention that python frame filtering code
4989 is now consistent with what 'backtrace' command prints.
4990
4b5e8d19
PW
49912019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4992
4993 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4994 comments.
4995 (print_frame_info_auto, print_frame_info_source_line,
4996 print_frame_info_location, print_frame_info_source_and_location,
4997 print_frame_info_location_and_address, print_frame_info_short_location):
4998 New declarations.
4999 (struct frame_print_options): New member print_frame_info.
5000 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5001 * stack.h (get_user_print_what_frame_info): New declaration.
5002 (frame_show_address): New declaration.
5003 * stack.c (print_frame_arguments_choices): New value 'presence'.
5004 (print_frame_info_auto, print_frame_info_source_line,
5005 print_frame_info_location, print_frame_info_source_and_location,
5006 print_frame_info_location_and_address, print_frame_info_short_location,
5007 print_frame_info_choices, print_frame_info_print_what): New definitions.
5008 (print_frame_args): Only print dots for args if print frame-arguments
5009 is 'presence'.
5010 (frame_print_option_defs): New element for "frame-info".
5011 (get_user_print_what_frame_info): New function.
5012 (frame_show_address): Make non static. Move comment to stack.h.
5013 (print_frame_info_to_print_what): New function.
5014 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5015 to decide what to print.
5016 (backtrace_command_1): Handle the new print_frame_arguments_presence
5017 value.
5018 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5019 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5020 (py_print_frame): In non-mi mode, use LOCATION as default for
5021 print_what, similarly to frame information printed directly by
5022 backtrace command. Handle frame-info user option in non MI mode.
5023
6bdfee81
KB
50242019-07-27 Kevin Buettner <kevinb@redhat.com>
5025
5026 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5027 Add case for debugging 32-bit target on 64-bit host. Revise
5028 comment.
5029
98a617f8
KB
50302019-07-27 Kevin Buettner <kevinb@redhat.com>
5031
5032 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5033 instead of find_function_entry_range_from_pc.
5034
567238c9
KB
50352019-07-27 Kevin Buettner <kevinb@redhat.com>
5036
5037 * stack.c (find_frame_funname): Remove code which preferred
5038 minsym over symtab sym in "certain pathological cases".
5039
2dc80cf8
KB
5040 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5041 parameter. Change type of "do_demangle" to bool.
5042 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5043 Pass suitable "prefer_sym_over_minsym" flag to
5044 build_address_symbolic(). Don't output "+" for negative offsets.
5045 * printcmd.c (print_address_symbolic): Update invocation of
5046 build_address_symbolic to include a "prefer_sym_over_minsym"
5047 flag.
5048 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5049 Restrict cases in which use of minimal symbol is preferred to that
5050 of a found symbol. Update comments.
5051
1aff7173
KB
5052 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5053 for entry pc when entry pc is out of range for that FDE.
5054
89b085ac
BC
50552019-07-26 Brian Callahan <bcallah@openbsd.org>
5056
5057 PR gdb/24839:
5058 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5059 type.
5060
f32feb4a
CB
50612019-07-25 Christian Biesinger <cbiesinger@google.com>
5062
5063 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5064 this function's Python signature.
5065
5066
50672019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
5068
5069 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5070 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5071 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5072 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5073 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5074
5075
c54e4253
YS
50762019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5077
5078 * h8300-tdep.c (h8300_register_name_common): New.
5079 h8300_register_name): Use h8300_register_name_common.
5080 (h8300s_register_name): Likewise.
5081 (h8300sx_register_name): Likewise.
5082 (h8300h_register_nam): New.
5083 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5084
5085
40eadf04
SP
50862019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5087
5088 * arm-tdep.c (arm_skip_cmse_entry): New function.
5089 (arm_is_sgstubs_section): New function.
5090 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5091
bfa2a36d
TT
50922019-07-22 Tom Tromey <tom@tromey.com>
5093
5094 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5095 Don't self-assign.
5096
a8e9d247
AB
50972019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5098
5099 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5100 type_print.
5101
eb86c5e2
AB
51022019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5103
5104 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5105 so that GDB doesn't match any msymbols when searching in the
5106 TYPES_DOMAIN.
5107 (print_symbol_info): Print using typedef_print or type_print based
5108 on the type of the symbol. Add updated FIXME comment moved from...
5109 (_initialize_symtab): ... move and update FIXME comment to above.
5110
a8eab7c6
AB
51112019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5112
5113 * NEWS: Mention adding -q option to "info types".
5114 * symtab.c (struct info_types_options): New struct.
5115 (info_types_options_defs): New variable.
5116 (make_info_types_options_def_group): New function.
5117 (info_types_command): Use gdb::option framework to parse options.
5118 (info_types_command_completer): New function.
5119 (_initialize_symtab): Extend the help text on "info types" and
5120 register command completer.
5121
b4603c34
CB
51222019-07-21 Christian Biesinger <cbiesinger@google.com>
5123
5124 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5125 (lookup_symbol_in_objfile): Change int to block_enum and add a
5126 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5127
c8cdc1e0
CB
51282019-07-20 Christian Biesinger <cbiesinger@google.com>
5129
5130 * MAINTAINERS (Write After Approval): Add self.
5131
01e175fe
AB
51322019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5133
5134 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5135 instruction to the dummy code region.
5136
56f79b63
TT
51372019-07-19 Tom Tromey <tromey@adacore.com>
5138
5139 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5140 (ARGSUSED, PARAMS, __func__): Remove rules.
5141
4c5aa8e0
AH
51422019-07-19 Alan Hayward <alan.hayward@arm.com>
5143
5144 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5145 * features/arm/arm-with-iwmmxt.c: Remove.
5146 * features/arm/arm-with-iwmmxt.xml: Remove.
5147 * features/arm/arm-with-m-fpa-layout.c: Remove.
5148 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5149 * features/arm/arm-with-m-vfp-d16.c: Remove.
5150 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5151 * features/arm/arm-with-m.c: Remove.
5152 * features/arm/arm-with-m.xml: Remove.
5153 * features/arm/arm-with-neon.c: Remove.
5154 * features/arm/arm-with-neon.xml: Remove.
5155 * features/arm/arm-with-vfpv2.c: Remove.
5156 * features/arm/arm-with-vfpv2.xml: Remove.
5157 * features/arm/arm-with-vfpv3.c: Remove.
5158 * features/arm/arm-with-vfpv3.xml: Remove.
5159
f42b2617
AH
51602019-07-19 Alan Hayward <alan.hayward@arm.com>
5161
5162 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5163
f29ec966
AH
51642019-07-19 Alan Hayward <alan.hayward@arm.com>
5165
5166 * arch/aarch32.c (aarch32_create_target_description): Create
5167 target descriptions using features.
5168 * arch/arm.c (arm_create_target_description)
5169 (arm_create_mprofile_target_description): Likewise.
5170 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5171
d105cce5
AH
51722019-07-19 Alan Hayward <alan.hayward@arm.com>
5173
5174 * Makefile.in: Add new files.
5175 * aarch32-tdep.c: New file.
5176 * aarch32-tdep.h: New file.
5177 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5178 Call aarch32_read_description.
5179 * arch/aarch32.c: New file.
5180 * arch/aarch32.h: New file.
5181 * arch/arm.c (arm_create_target_description)
5182 (arm_create_mprofile_target_description): New function.
5183 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5184 (arm_create_target_description)
5185 (arm_create_mprofile_target_description): New declaration.
5186 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5187 read_description functions.
5188 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5189 Likewise.
5190 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5191 * arm-tdep.c (tdesc_arm_list): New variable.
5192 (arm_register_g_packet_guesses): Call create description functions.
5193 (arm_read_description) (arm_read_mprofile_description): New
5194 function.
5195 * arm-tdep.h (arm_read_description)
5196 (arm_read_mprofile_description): Add declaration.
5197 * configure.tgt: Add new files.
5198
afe09f0b
GL
51992019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5200
5201 * top.c (new_ui_command): Open specified terminal just once.
5202
cd215b2e
TT
52032019-07-18 Tom Tromey <tromey@adacore.com>
5204
5205 * symtab.c (main_name): Constify return type.
5206 * symfile.c (set_initial_language): Update.
5207 * symtab.h (main_name): Constify return type.
5208
d8f68fcb
TT
52092019-07-17 Tom Tromey <tom@tromey.com>
5210
5211 * tui/tui-winsource.c (tui_update_source_window)
5212 (tui_update_source_window_as_is)
5213 (tui_update_source_windows_with_line): Remove return.
5214 * tui/tui-disasm.c (tui_show_disassem)
5215 (tui_show_disassem_and_update_source): Remove return.
5216 * tui/tui.c (tui_reset): Remove return.
5217 * tui/tui-wingeneral.c
5218 (tui_check_and_display_highlight_if_needed): Remove return.
5219
ca5af91e
TT
52202019-07-17 Tom Tromey <tom@tromey.com>
5221
5222 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5223
5104fe36
TT
52242019-07-17 Tom Tromey <tom@tromey.com>
5225
5226 * tui/tui-winsource.h (struct tui_exec_info_window)
5227 (struct tui_source_window_base): Move from tui-data.h.
5228 * tui/tui-winsource.c: Move many method definitions from
5229 elsewhere. Remove "structuring" comments.
5230 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5231 (tui_source_window_base::refresh_window): Move to
5232 tui-winsource.c.
5233 * tui/tui-win.c (tui_source_window_base::refresh_all)
5234 (tui_source_window_base::update_tab_width)
5235 (tui_source_window_base::set_new_height)
5236 (tui_source_window_base::do_make_visible_with_new_height): Move to
5237 tui-winsource.c.
5238 * tui/tui-source.h: Update.
5239 * tui/tui-source.c (tui_source_window_base::reset): Move to
5240 tui-winsource.c.
5241 * tui/tui-disasm.h: Update.
5242 * tui/tui-data.h (struct tui_exec_info_window): Move to
5243 tui-winsource.h.
5244 (struct tui_source_window_base): Likewise.
5245 * tui/tui-data.c (tui_source_window_base::clear_detail)
5246 (tui_source_window_base, ~tui_source_window_base): Move to
5247 tui-winsource.c.
5248
daa15dde
TT
52492019-07-17 Tom Tromey <tom@tromey.com>
5250
5251 * tui/tui-win.c (tui_resize_all)
5252 (tui_source_window_base::update_tab_width)
5253 (tui_adjust_win_heights): Update.
5254 (tui_win_info::make_invisible_and_set_new_height): Rename from
5255 make_invisible_and_set_new_height.
5256 * tui/tui-data.h (struct tui_win_info)
5257 <make_invisible_and_set_new_height>: New method.
5258
bfad4537
TT
52592019-07-17 Tom Tromey <tom@tromey.com>
5260
5261 * tui/tui.c: Update.
5262 * tui/tui-source.h (struct tui_source_window): Move from
5263 tui-data.h.
5264 * tui/tui-layout.c: Update.
5265 * tui/tui-disasm.c: Update.
5266 * tui/tui-data.h (struct tui_source_window): Move to
5267 tui-source.h.
5268
88f7e873
TT
52692019-07-17 Tom Tromey <tom@tromey.com>
5270
5271 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5272 tui-data.h.
5273 * tui/tui-data.h (struct tui_disasm_window): Move to
5274 tui-disasm.h.
5275
96bd6233
TT
52762019-07-17 Tom Tromey <tom@tromey.com>
5277
5278 * tui/tui-regs.h (struct tui_data_item_window): Move from
5279 tui-data.h.
5280 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5281 * tui/tui-data.h (struct tui_data_item_window): Move to
5282 tui-regs.h.
5283 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5284
ce38393b
TT
52852019-07-17 Tom Tromey <tom@tromey.com>
5286
5287 * tui/tui.c: Update.
5288 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5289 (tui_cmd_window::max_height): Move to tui-command.c.
5290 * tui/tui-layout.c: Update.
5291 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5292 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5293 tui-command.c.
5294 * tui/tui-command.h (struct tui_cmd_window): Move from
5295 tui-data.h.
5296 * tui/tui-command.c: Remove "structuring" comments.
5297 (tui_cmd_window::clear_detail)
5298 (tui_cmd_window::do_make_visible_with_new_height)
5299 (tui_cmd_window::max_height): Move from elsewhere.
5300
2d8b51cb
TT
53012019-07-17 Tom Tromey <tom@tromey.com>
5302
5303 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5304 Now static.
5305 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5306 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5307
18ab23af
TT
53082019-07-17 Tom Tromey <tom@tromey.com>
5309
5310 * tui/tui.c: Update.
5311 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5312 tui-regs.c.
5313 * tui/tui-windata.h: Remove file.
5314 * tui/tui-windata.c: Remove file.
5315 * tui/tui-win.c (tui_data_window::set_new_height)
5316 (tui_data_window::do_make_visible_with_new_height): Move to
5317 tui-regs.c.
5318 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5319 * tui/tui-regs.c: Remove "structuring" comments.
5320 (tui_data_window::first_data_item_displayed)
5321 (tui_data_window::delete_data_content_windows)
5322 (tui_data_window::erase_data_content)
5323 (tui_data_window::display_all_data)
5324 (tui_data_window::refresh_all)
5325 (tui_data_window::do_scroll_vertical)
5326 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5327 (tui_data_window::do_make_visible_with_new_height)
5328 (tui_data_window::refresh_window): Move from elsewhere.
5329 (_initialize_tui_regs): Move to end of file.
5330 * tui/tui-layout.c: Update.
5331 * tui/tui-hooks.c: Update.
5332 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5333 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5334 tui-regs.c.
5335 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5336
88b7e7cc
TT
53372019-07-17 Tom Tromey <tom@tromey.com>
5338
5339 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5340 seen.
5341
0fcd3711
TT
53422019-07-17 Tom Tromey <tom@tromey.com>
5343
5344 * tui/tui-win.c (tui_source_window_base::set_new_height)
5345 (tui_source_window_base::do_make_visible_with_new_height): Use
5346 m_has_locator field directly.
5347 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5348 method.
5349 (struct tui_source_window_base) <has_locator>: Likewise.
5350
4a38112d
TT
53512019-07-17 Tom Tromey <tom@tromey.com>
5352
5353 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5354 Don't declare.
5355 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5356 Remove.
5357 * tui/tui-win.c (tui_source_window_base::set_new_height)
5358 (tui_source_window_base::set_new_height)
5359 (make_invisible_and_set_new_height)
5360 (tui_source_window_base::do_make_visible_with_new_height)
5361 (tui_source_window_base::do_make_visible_with_new_height):
5362 Update.
5363 * tui/tui-layout.c (show_source_disasm_command, show_data)
5364 (show_source_or_disasm_and_command): Update.
5365 * tui/tui-layout.c (show_layout): Update.
5366
09129226
TT
53672019-07-17 Tom Tromey <tom@tromey.com>
5368
5369 * tui/tui-layout.c (make_data_window): Remove.
5370 (show_data): Unify creation and re-initialization cases.
5371
4a8a5e84
TT
53722019-07-17 Tom Tromey <tom@tromey.com>
5373
5374 * tui/tui-layout.c (make_source_window, make_disasm_window):
5375 Remove.
5376 (show_data): Unify creation and re-initialization cases.
5377
76d2be8e
TT
53782019-07-17 Tom Tromey <tom@tromey.com>
5379
5380 * tui/tui-layout.c (make_command_window): Remove.
5381 (show_source_disasm_command, show_source_or_disasm_and_command):
5382 Unify creation and re-initialization cases.
5383
890b8bde
TT
53842019-07-17 Tom Tromey <tom@tromey.com>
5385
5386 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5387 creation and re-initialization cases.
5388
2cdfa113
TT
53892019-07-17 Tom Tromey <tom@tromey.com>
5390
5391 * tui/tui-regs.c (tui_get_register): Return void.
5392
8e3cfd09
TT
53932019-07-17 Tom Tromey <tom@tromey.com>
5394
5395 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5396 Simplify.
5397
f4e04977
TT
53982019-07-17 Tom Tromey <tom@tromey.com>
5399
5400 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5401 resetting.
5402
0379b883
TT
54032019-07-17 Tom Tromey <tom@tromey.com>
5404
5405 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5406 * tui/tui-regs.c (tui_reg_layout): New function.
5407 (tui_show_registers, tui_reg_command): Use it.
5408 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5409 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5410 parameters.
5411 (tui_layout_command): Remove.
5412
b7fbad91
TT
54132019-07-17 Tom Tromey <tom@tromey.com>
5414
5415 * tui/tui-layout.h (tui/tui-layout): Return void.
5416 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5417
4e1e56b9
TT
54182019-07-17 Tom Tromey <tom@tromey.com>
5419
5420 * tui/tui-layout.c (show_source_disasm_command, show_data):
5421 Update.
5422 (reset_locator): Remove.
5423 (show_source_or_disasm_and_command): Update.
5424
1e0c09ba
TT
54252019-07-17 Tom Tromey <tom@tromey.com>
5426
5427 * tui/tui-source.c (tui_source_window_base::reset): Remove
5428 win_type parameter.
5429 * tui/tui-layout.c (make_command_window, make_source_window)
5430 (make_disasm_window, make_data_window)
5431 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5432 (reset_locator, show_source_or_disasm_and_command): Update.
5433 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5434 win_type parameter.
5435 (struct tui_source_window_base) <reset>: Likewise.
5436
1bf605de
TT
54372019-07-17 Tom Tromey <tom@tromey.com>
5438
5439 * tui/tui-layout.c (show_source_disasm_command): Use
5440 reset_locator.
5441 (reset_locator): New function.
5442 (init_and_make_win): Remove.
5443 (show_source_or_disasm_and_command): Use reset_locator.
5444
098f9ed4
TT
54452019-07-17 Tom Tromey <tom@tromey.com>
5446
5447 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5448 condition.
5449 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5450 Remove condition.
5451 * tui/tui-source.c (tui_source_window_base::reset): New method.
5452 * tui/tui-layout.c (make_command_window): Don't call
5453 init_and_make_win.
5454 (make_source_window, make_disasm_window): Don't call
5455 make_source_or_disasm_window.
5456 (make_data_window): Don't call init_and_make_win. Change calling
5457 convention.
5458 (show_source_disasm_command, show_data): Simplify.
5459 (make_source_or_disasm_window): Remove.
5460 (show_source_or_disasm_and_command): Simplify.
5461 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5462 (struct tui_source_window_base) <reset>: Likewise.
5463 <execution_info>: Remove initializer.
5464 * tui/tui-data.c (tui_source_window_base): Initialize
5465 execution_info.
5466
80110957
TT
54672019-07-17 Tom Tromey <tom@tromey.com>
5468
5469 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5470 variable.
5471
cf82af05
TT
54722019-07-17 Tom Tromey <tom@tromey.com>
5473
5474 * tui/tui.c (tui_rl_other_window): Update.
5475 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5476 superclass method first. Always iterate over regs_content.
5477 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5478 method.
5479 * tui/tui-win.c (tui_set_focus_command): Update.
5480
01aeb396
TT
54812019-07-17 Tom Tromey <tom@tromey.com>
5482
5483 * tui/tui-win.c (tui_set_focus_command): Rename from
5484 tui_set_focus. Call tui_enable.
5485 (tui_set_focus_command): Remove.
5486
fd6c75ee
TT
54872019-07-17 Tom Tromey <tom@tromey.com>
5488
5489 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5490 refresh_window.
5491 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5492 touchwin.
5493 (tui_data_window::refresh_window): Call refresh_window on data
5494 items. Always call superclass refresh_window.
5495 (tui_win_info::refresh): Remove.
5496 (tui_source_window_base::refresh_window): Update.
5497 (tui_refresh_all): Update.
5498 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5499 refresh_window.
5500 (show_source_or_disasm_and_command): Likewise.
5501 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5502 (struct tui_source_window_base) <refresh>: Likewise.
5503
f6cc34a9
TT
55042019-07-17 Tom Tromey <tom@tromey.com>
5505
5506 * tui/tui-winsource.c (tui_clear_source_content)
5507 (tui_show_source_content): Update.
5508 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5509 whether content is empty.
5510 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5511 Remove.
5512
f31ec9af
TT
55132019-07-17 Tom Tromey <tom@tromey.com>
5514
5515 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5516 window's contents.
5517 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5518 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5519
d1b6f1e5
TT
55202019-07-17 Tom Tromey <tom@tromey.com>
5521
5522 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5523 (struct tui_data_item_window): Update.
5524
d9743a13
TT
55252019-07-17 Tom Tromey <tom@tromey.com>
5526
5527 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5528 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5529 defines.
5530
caf0bc4e
TT
55312019-07-17 Tom Tromey <tom@tromey.com>
5532
5533 * tui/tui-winsource.h (tui_erase_source_content)
5534 (tui_clear_source_content): Remove "display_prompt" parameter.
5535 * tui/tui-winsource.c (tui_update_source_window_as_is)
5536 (tui_update_source_windows_with_addr): Update.
5537 (tui_clear_source_content): Remove "display_prompt" parameter.
5538 (tui_erase_source_content): Likewise. Simplify.
5539 (tui_show_source_content): Update.
5540 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5541 * tui/tui-stack.c (tui_show_frame_info): Update.
5542 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5543 Remove defines.
5544
9d391078
TT
55452019-07-17 Tom Tromey <tom@tromey.com>
5546
5547 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5548 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5549 parameter.
5550 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5551 parameter.
5552
a38da35d
TT
55532019-07-17 Tom Tromey <tom@tromey.com>
5554
5555 * tui/tui-winsource.c (tui_clear_source_content)
5556 (tui_show_source_content, tui_show_exec_info_content)
5557 (tui_clear_exec_info_content): Update.
5558 * tui/tui-stack.c (tui_show_locator_content): Update.
5559 (tui_show_frame_info): Update.
5560 * tui/tui-source.h (tui_source_window): Don't declare.
5561 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5562 from tui_source_is_displayed.
5563 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5564 Remove field.
5565 (struct tui_source_window_base) <content_in_use>: New field. Now
5566 bool.
5567 (struct tui_source_window) <showing_source_p>: New method.
5568 (TUI_SRC_WIN): Change cast.
5569 * tui/tui-data.c (tui_initialize_static_data): Update.
5570
c2cd8994
TT
55712019-07-17 Tom Tromey <tom@tromey.com>
5572
5573 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5574 location_matches_p.
5575 * tui/tui-source.c (tui_source_window::location_matches_p): New
5576 method.
5577 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5578 method.
5579 * tui/tui-data.h (struct tui_source_window_base)
5580 <location_matches_p>: New method.
5581 (struct tui_source_window, struct tui_disasm_window)
5582 <location_matches_p>: Likewise.
5583
4dde7b34
TT
55842019-07-17 Tom Tromey <tom@tromey.com>
5585
5586 * tui/tui-win.c (tui_set_win_height_command): Rename from
5587 tui_set_win_height.
5588 (tui_set_win_height_command): Remove.
5589
b73dd877
TT
55902019-07-17 Tom Tromey <tom@tromey.com>
5591
5592 * tui/tui-source.c (tui_source_window): New constructor. Add
5593 observer.
5594 (~tui_source_window): New destructor.
5595 (tui_source_window::style_changed): New method.
5596 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5597 (tui_attach_detach_observers): Update.
5598 * tui/tui-data.h (struct tui_source_window): Make constructor not
5599 inline. Add destructor.
5600 (struct tui_source_window) <style_changed>: New method.
5601 <m_observable>: New member.
5602
ae2b5380
TT
56032019-07-17 Tom Tromey <tom@tromey.com>
5604
5605 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5606 * tui/tui-win.c (tui_resize_all): Fix typo.
5607
1ce3e844
TT
56082019-07-17 Tom Tromey <tom@tromey.com>
5609
5610 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5611 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5612 (tui_refresh_all): Remove "list" parameter. Use foreach.
5613 * tui/tui-win.c (window_name_completer): Use foreach.
5614 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5615 (update_tab_width): Likewise.
5616 * tui/tui-layout.c (show_layout): Update.
5617 * tui/tui-data.h (class tui_window_iterator): New.
5618 (struct all_tui_windows): New.
5619 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5620
fe3eaf1c
TT
56212019-07-17 Tom Tromey <tom@tromey.com>
5622
5623 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5624 parameter. Don't reference globals.
5625 (tui_reg_command): Update.
5626
368c1354
TT
56272019-07-17 Tom Tromey <tom@tromey.com>
5628
5629 * tui/tui-regs.c (tui_show_registers): Simplify.
5630
e80cd204
TT
56312019-07-17 Tom Tromey <tom@tromey.com>
5632
5633 * tui/tui-regs.c (tui_show_registers): Update.
5634 (tui_show_register_group): Add win_info parameter.
5635
aca2dd16
TT
56362019-07-17 Tom Tromey <tom@tromey.com>
5637
5638 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5639 Rename from tui_display_reg_element_at_line.
5640 (tui_data_window::display_registers_from_line): Update.
5641 * tui/tui-data.h (struct tui_data_window)
5642 <display_reg_element_at_line>: New method.
5643
517e9505
TT
56442019-07-17 Tom Tromey <tom@tromey.com>
5645
5646 * tui/tui-regs.h (tui_display_registers_from)
5647 (tui_display_registers_from_line): Don't declare.
5648 * tui/tui-windata.c (tui_data_window::display_all_data)
5649 (tui_data_window::refresh_all)
5650 (tui_data_window::do_scroll_vertical): Update.
5651 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5652 from tui_display_registers_from.
5653 (tui_display_reg_element_at_line): Update.
5654 (tui_data_window::display_registers_from_line): Rename from
5655 tui_display_registers_from_line.
5656 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5657 display_registers_from_line>: New methods.
5658
f76d8b19
TT
56592019-07-17 Tom Tromey <tom@tromey.com>
5660
5661 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5662 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5663 from tui_erase_data_content.
5664 (tui_data_window::display_all_data)
5665 (tui_data_window::refresh_all)
5666 (tui_data_window::do_scroll_vertical): Update.
5667 * tui/tui-regs.c (tui_show_registers): Update.
5668 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5669 New method.
5670
b4094625
TT
56712019-07-17 Tom Tromey <tom@tromey.com>
5672
5673 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5674 declare.
5675 * tui/tui-windata.c
5676 (tui_data_window::delete_data_content_windows): Rename from
5677 tui_delete_data_content_windows.
5678 (tui_data_window::display_all_data)
5679 (tui_data_window::do_scroll_vertical): Update.
5680 * tui/tui-data.h (struct tui_data_window)
5681 <delete_data_content_windows>: New method.
5682
c223a729
TT
56832019-07-17 Tom Tromey <tom@tromey.com>
5684
5685 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5686 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5687
50daf268
TT
56882019-07-17 Tom Tromey <tom@tromey.com>
5689
5690 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5691 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5692 from tui_display_all_data.
5693 * tui/tui-win.c
5694 (tui_data_window::do_make_visible_with_new_height): Update.
5695 * tui/tui-regs.c (tui_show_registers): Update.
5696 * tui/tui-layout.c (tui_set_layout): Update.
5697 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5698 method.
5699
df5f8cab
TT
57002019-07-17 Tom Tromey <tom@tromey.com>
5701
5702 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5703 * tui/tui-windata.c (tui_display_data_from): Remove.
5704 (tui_data_window::refresh_all): Update.
5705
80cb6c27
TT
57062019-07-17 Tom Tromey <tom@tromey.com>
5707
5708 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5709 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5710 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5711 tui_display_registers_from_line.
5712 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5713 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5714 "force_display" parameter.
5715
baff0c28
TT
57162019-07-17 Tom Tromey <tom@tromey.com>
5717
5718 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5719 declare.
5720 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5721 Rename from tui_first_reg_element_no_inline.
5722 (tui_display_reg_element_at_line)
5723 (tui_display_registers_from_line): Update.
5724 * tui/tui-data.h (struct tui_data_window)
5725 <first_reg_element_no_inline>: New method.
5726
3b23c5f2
TT
57272019-07-17 Tom Tromey <tom@tromey.com>
5728
5729 * tui/tui-windata.c (tui_display_data_from)
5730 (tui_data_window::do_scroll_vertical): Update.
5731 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5732 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5733 Rename from tui_line_from_reg_element_no.
5734 (tui_display_registers_from_line): Update.
5735 * tui/tui-data.h (struct tui_data_window)
5736 <line_from_reg_element_no>: New method.
5737
0b5ec218
TT
57382019-07-17 Tom Tromey <tom@tromey.com>
5739
5740 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5741 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5742 tui_last_regs_line_no.
5743 (tui_display_reg_element_at_line)
5744 (tui_display_registers_from_line): Update.
5745 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5746 method.
5747
0807ab7b
TT
57482019-07-17 Tom Tromey <tom@tromey.com>
5749
5750 PR tui/24722:
5751 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5752 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5753 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5754 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5755 (tui_update_breakpoint_info): Likewise.
5756 * tui/tui-hooks.c (tui_event_create_breakpoint)
5757 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5758 Update.
5759
9ad7fdef
TT
57602019-07-17 Tom Tromey <tom@tromey.com>
5761
5762 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5763
5813316f
TT
57642019-07-17 Tom Tromey <tom@tromey.com>
5765
5766 * tui/tui-winsource.c (tui_update_source_window_as_is)
5767 (tui_update_source_windows_with_addr): Update.
5768 * tui/tui-source.h (tui_set_source_content)
5769 (tui_show_symtab_source): Add "win_info" parameter.
5770 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5771 parameter.
5772 (tui_show_symtab_source): Likewise.
5773
00e264e7
TT
57742019-07-17 Tom Tromey <tom@tromey.com>
5775
5776 * tui/tui-wingeneral.c
5777 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5778
06210ce4
TT
57792019-07-17 Tom Tromey <tom@tromey.com>
5780
5781 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5782 (struct tui_cmd_window) <can_scroll>: New method.
5783 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5784 method.
5785
381befee
TT
57862019-07-17 Tom Tromey <tromey@adacore.com>
5787
5788 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5789 do_field_signed>: Rename. Change type of "value".
5790 * ui-out.c (ui_out::field_signed): Rename from field_int.
5791 Change type of "value".
5792 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5793 type of "value".
5794 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5795 do_field_int. Change type of "value".
5796 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5797 do_field_int. Change type of "value".
5798 * tracepoint.c (trace_status_mi, tfind_1)
5799 (print_one_static_tracepoint_marker): Update.
5800 * thread.c (print_thread_info_1, print_selected_thread_frame):
5801 Update.
5802 * stack.c (print_frame, print_frame_info): Update.
5803 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5804 Update.
5805 * source.c (print_source_lines_base): Update.
5806 * skip.c (info_skip_command): Update.
5807 * record-btrace.c (btrace_ui_out_decode_error)
5808 (btrace_call_history_src_line): Update.
5809 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5810 Update.
5811 * progspace.c (print_program_space): Update.
5812 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5813 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5814 do_field_int. Change type of "value".
5815 * mi/mi-out.c (mi_ui_out::do_table_begin)
5816 (mi_ui_out::do_table_header): Update.
5817 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5818 type of "value".
5819 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5820 (mi_cmd_data_list_changed_registers, output_register)
5821 (mi_cmd_data_read_memory, mi_load_progress)
5822 (mi_cmd_trace_frame_collected): Update.
5823 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5824 Update.
5825 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5826 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5827 (mi_cmd_var_list_children, varobj_update_one): Update.
5828 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5829 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5830 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5831 * inferior.c (print_inferior): Update.
5832 * gdb_bfd.c (print_one_bfd): Update.
5833 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5834 Update.
5835 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5836 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5837 do_field_int. Change type of "value".
5838 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5839 do_field_int. Change type of "value".
5840 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5841 (print_one_breakpoint_location, print_it_catch_fork)
5842 (print_one_catch_fork, print_it_catch_vfork)
5843 (print_one_catch_vfork, print_it_catch_solib)
5844 (print_it_catch_exec, print_it_ranged_breakpoint)
5845 (print_mention_watchpoint, print_mention_masked_watchpoint)
5846 (bkpt_print_it, update_static_tracepoint): Update.
5847 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5848 * break-catch-syscall.c (print_it_catch_syscall): Update.
5849 * ada-tasks.c (print_ada_task_info): Update.
5850 * ada-lang.c (print_it_exception, print_mention_exception):
5851 Update.
5852
6b78c3f8
AB
58532019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5854
5855 PR breakpoints/24541
5856 * gdbarch.c: Regenerate.
5857 * gdbarch.h: Regenerate.
5858 * gdbarch.sh: Adjust return type and parameter types for
5859 'stap_adjust_register'.
5860 (i386_stap_adjust_register): Adjust signature and return new
5861 register name.
5862 * stap-probe.c (stap_parse_register_operand): Adjust use of
5863 'gdbarch_stap_adjust_register'.
5864
d72a9b85
TT
58652019-07-17 Tom Tromey <tromey@adacore.com>
5866
5867 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5868 declare VEC.
5869 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5870 std::vector.
5871 (struct s390_process_info): Add initializers.
5872 (s390_add_process): Use new.
5873 (s390_linux_nat_target::low_forget_process): Use delete.
5874 (s390_linux_nat_target::low_new_fork)
5875 (s390_linux_nat_target::stopped_by_watchpoint)
5876 (s390_linux_nat_target::low_prepare_to_resume)
5877 (s390_linux_nat_target::insert_watchpoint)
5878 (s390_linux_nat_target::insert_hw_breakpoint)
5879 (s390_linux_nat_target::remove_watchpoint)
5880 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5881
206e6c58
JB
58822019-07-16 John Baldwin <jhb@FreeBSD.org>
5883
5884 * aarch64-fbsd-nat.c: Include regcache.h.
5885 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5886 argument.
5887 (aarch64_fbsd_nat_target::fetch_registers)
5888 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5889 variable.
5890 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5891
cbde90f2
JB
58922019-07-16 John Baldwin <jhb@FreeBSD.org>
5893
5894 * fbsd-nat.c: Include gdbarch.h.
5895
07128006
TT
58962019-07-15 Tom Tromey <tromey@adacore.com>
5897
5898 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5899
1f77b012
TT
59002019-07-15 Tom Tromey <tromey@adacore.com>
5901
5902 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5903 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5904 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5905 * cli-out.c (cli_ui_out::do_field_int): New method.
5906 * ui-out.c (ui_out::field_unsigned): New method.
5907 * symfile.c (generic_load): Use field_unsigned.
5908 (print_transfer_performance): Likewise.
5909 * record-btrace.c (ui_out_field_uint): Remove.
5910 (btrace_call_history_insn_range, btrace_call_history): Use
5911 field_unsigned.
5912 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5913 field_unsigned.
5914 * ui-out.h (class ui_out) <field_unsigned>: New method.
5915 <do_field_unsigned>: Likewise.
5916
33eca680
TT
59172019-07-15 Tom Tromey <tromey@adacore.com>
5918
5919 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5920 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5921 * target.c (flash_erase_command): Use field_string.
5922 * infrun.c (print_signal_received_reason): Use field_string.
5923 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5924 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5925 field_string.
5926 * ada-tasks.c (print_ada_task_info): Use field_string.
5927
ca8d69be
TT
59282019-07-15 Tom Tromey <tromey@adacore.com>
5929
5930 * target.c (flash_erase_command): Use field_core_addr.
5931 * symfile.c (generic_load): Use field_core_addr.
5932 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5933 Use field_core_addr.
5934 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5935 field_core_addr.
5936
0d4e84ed
AB
59372019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5938
5939 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5940 value if its desired type is smaller than a CORE_ADDR and signed.
5941
9a49df9d
AB
59422019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5943
5944 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5945 of changes to field names, and use new is_reference field to
5946 decide if a property is a reference or not.
5947 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5948 field.
5949 (struct dwarf2_property_baton): Update header comment, rename
5950 'referenced_type' to 'property_type' and update comments.
5951 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5952 default property type, store in property baton, update to take
5953 accound of renamed field.
5954 (read_func_scope): Update call to attr_to_dynamic_prop.
5955 (read_array_type): Likewise.
5956 (dwarf2_per_cu_addr_sized_int_type): New function.
5957 (read_subrange_index_type): Move type finding code to
5958 dwarf2_per_cu_addr_sized_int_type.
5959 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5960 (dwarf2_per_cu_addr_type): New function.
5961 (set_die_type): Update calls to attr_to_dynamic_prop.
5962
b86352cf
AB
59632019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5964
5965 * dwarf2read.c (read_subrange_index_type): New function.
5966 (read_subrange_type): Move code into new function and call it.
5967 * gdbtypes.c (create_range_type): Add some asserts.
5968
603490bf
AB
59692019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5970
5971 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5972 update return statements.
5973 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5974 declaration, and update comment to match.
5975 * gdbtypes.c (resolve_dynamic_array): Update call to
5976 dwarf2_evaluate_property to match new return type.
5977
592f9d27
AB
59782019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5979
5980 * valarith.c (value_subscripted_rvalue): Change lowerbound
5981 parameter type from int to LONGEST.
5982 * value.h (value_subscripted_rvalue): Likewise in declaration.
5983
60cfcb20
AB
59842019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5985
5986 * cli/cli-utils.c (info_print_command_completer): New function.
5987 * cli/cli-utils.h: Add 'completer.h' include, and forward
5988 declaration for 'struct cmd_list_element'.
5989 (info_print_command_completer): Declare.
5990 * stack.c (_initialize_stack): Add completer for 'info locals' and
5991 'info args'.
5992 * symtab.c (_initialize_symtab): Add completer for 'info
5993 variables' and 'info functions'.
5994 * NEWS: Mention completion for additional info commands.
5995
b16507e0
AB
59962019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5997
5998 * cli/cli-utils.c (extract_info_print_args): Delete.
5999 (extract_arg_maybe_quoted): Delete.
6000 (info_print_options_defs): New variable.
6001 (make_info_print_options_def_group): New function.
6002 (extract_info_print_options): Define new function.
6003 * cli/cli-utils.h (extract_info_print_args): Delete.
6004 (struct info_print_options): New structure.
6005 (extract_info_print_options): Declare new function.
6006 * stack.c (info_locals_command): Update to use new
6007 extract_info_print_options, also add a header comment.
6008 (info_args_command): Likewise.
6009 * symtab.c (info_variables_command): Likewise.
6010 (info_functions_command): Likewise.
6011
021d8588
AB
60122019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6013
6014 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6015 to extract string arguments.
6016 * common/common-utils.c (extract_string_maybe_quoted): New function.
6017 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6018
b777eb6d
TT
60192019-07-11 Tom Tromey <tromey@adacore.com>
6020
6021 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6022 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6023 * top.h (gdbinit): Don't declare.
6024 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6025 into...
6026 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6027 * top.c (gdb_init): Don't call init_cli_cmds.
6028 (gdbinit): Remove.
6029 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6030
72ee03ff
TT
60312019-07-11 Tom Tromey <tromey@adacore.com>
6032
6033 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6034 after it has been moved.
6035
00db9531
SM
60362019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6037
6038 * valops.c (value_must_coerce_to_target): Change return type to
6039 bool.
6040 * value.h (value_must_coerce_to_target): Likewise.
6041
f2478a7e
SM
60422019-07-10 Simon Marchi <simon.marchi@efficios.com>
6043
6044 * breakpoint.c (is_hardware_watchpoint): Remove
6045 forward-declaration.
6046 (is_masked_watchpoint): Change return type to bool.
6047 (is_tracepoint): Likewise.
6048 (is_breakpoint): Likewise.
6049 (is_hardware_watchpoint): Likewise.
6050 (is_watchpoint): Likewise.
6051 (is_no_memory_software_watchpoint): Likewise.
6052 (is_catchpoint): Likewise.
6053 (breakpoint_1): Make FILTER parameter's return type bool.
6054 is_masked_watchpoint): Change return type to bool.
6055 (save_breakpoints): Make FILTER parameter's return type bool.
6056 * breakpoint.h (is_breakpoint): Change return type to bool.
6057 (is_watchpoint): Likewise.
6058 (is_catchpoint): Likewise.
6059 (is_tracepoint): Likewise.
6060
0d12e84c
TT
60612019-07-10 Tom Tromey <tom@tromey.com>
6062
6063 * defs.h: Don't include gdbarch.h.
6064 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6065 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6066 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6067 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6068 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6069 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6070 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6071 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6072 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6073 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6074 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6075 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6076 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6077 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6078 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6079 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6080 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6081 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6082 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6083 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6084 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6085 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6086 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6087 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6088 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6089 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6090 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6091
f06f1252
TT
60922019-07-10 Tom Tromey <tromey@adacore.com>
6093
6094 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6095 * breakpoint.c (init_ada_exception_breakpoint): Register as
6096 bp_catchpoint.
6097 (print_one_breakpoint_location, print_one_breakpoint): Use
6098 is_ada_exception_catchpoint.
6099 * ada-lang.c (class ada_catchpoint_location): Pass
6100 bp_loc_software_breakpoint to bp_location constructor.
6101 (is_ada_exception_catchpoint): New function.
6102
7a5d944b
TT
61032019-07-10 Tom Tromey <tromey@adacore.com>
6104
6105 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6106 VEC.
6107 (struct arm_exidx_entry): New method operator<.
6108 (struct arm_exidx_data) <section_maps>: Change type.
6109 (arm_exidx_data_free): Remove.
6110 (arm_exidx_data_key): Change type. Move lower.
6111 (arm_exidx_new_objfile): Update.
6112 (arm_compare_exidx_entries): Remove.
6113 (arm_find_exidx_entry, _initialize_arm_tdep)
6114
48c66e1d
TT
61152019-07-10 Tom Tromey <tromey@adacore.com>
6116
6117 * solib-spu.c (ocl_program_data_key): Change type.
6118 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6119 Update.
6120
a269fbf1
TT
61212019-07-10 Tom Tromey <tromey@adacore.com>
6122
6123 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6124 (struct solib_aix_inferior_data) <library_list>: Change type.
6125 (solib_aix_inferior_data_handle): Change type.
6126 (get_solib_aix_inferior_data): Update.
6127 (solib_aix_free_library_list): Remove.
6128 (library_list_start_library): Update.
6129 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6130 return type.
6131 (solib_aix_get_library_list)
6132 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6133 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6134
c294730c
TT
61352019-07-10 Tom Tromey <tromey@adacore.com>
6136
6137 * solib-dsbt.c (struct dsbt_info): Add initializers.
6138 (solib_dsbt_pspace_data): Change type.
6139 (dsbt_pspace_data_cleanup): Remove.
6140 (get_dsbt_info, _initialize_dsbt_solib): Update.
6141
9d52077d
TT
61422019-07-10 Tom Tromey <tromey@adacore.com>
6143
6144 * spu-tdep.c (spu_overlay_data): Change type.
6145 (spu_get_overlay_table, spu_overlay_new_objfile)
6146 (_initialize_spu_tdep): Update.
6147
22a20dca
TT
61482019-07-10 Tom Tromey <tromey@adacore.com>
6149
6150 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6151 destructor.
6152 (dbx_objfile_data_key): Change type and declare later.
6153 (DBX_SYMFILE_INFO): Rewrite.
6154 * dbxread.c (dbx_objfile_data_key): Change type.
6155 (dbx_symfile_init): Update.
6156 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6157 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6158 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6159
cb60f420
TT
61602019-07-10 Tom Tromey <tromey@adacore.com>
6161
6162 * jit.c (jit_program_space_key): Change type. Move lower.
6163 (get_jit_program_space_data): Update.
6164 (jit_program_space_data_cleanup): Remove.
6165 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6166 Update.
6167 (struct jit_program_space_data): Add initializers.
6168
51df2ae3
TT
61692019-07-10 Tom Tromey <tromey@adacore.com>
6170
6171 * solib-darwin.c (struct darwin_info): Add initializers.
6172 (solib_darwin_pspace_data): Change type.
6173 (darwin_pspace_data_cleanup): Remove.
6174 (get_darwin_info, _initialize_darwin_solib): Update.
6175
18101a35
TT
61762019-07-10 Tom Tromey <tromey@adacore.com>
6177
6178 * remote-sim.c (struct sim_inferior_data): Add initializers,
6179 constructor, and destructor.
6180 (sim_inferior_data_key): Change type. Move lower.
6181 (check_for_duplicate_sim_descriptor): Update.
6182 (get_sim_inferior_data): Use new. Update.
6183 (~sim_inferior_data_cleanup): Rename from
6184 sim_inferior_data_cleanup. Simplify.
6185 (gdbsim_close_inferior, simulator_command)
6186 (sim_command_completer, _initialize_remote_sim): Update.
6187 (next_pid, INITIAL_PID): Move earlier.
6188
05b08ac1
TT
61892019-07-10 Tom Tromey <tromey@adacore.com>
6190
6191 * python/python-internal.h (create_thread_object): Return
6192 gdbpy_ref.
6193 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6194 * python/py-inferior.c (struct threadlist_entry): Add
6195 constructor.
6196 <thread_obj>: Now a gdbpy_ref.
6197 (thread_to_thread_object): Update.
6198 (add_thread_object): Use new.
6199 (delete_thread_object): Use delete.
6200 (infpy_threads): Update.
6201 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6202 GIL.
6203
32372d80
TT
62042019-07-10 Tom Tromey <tromey@adacore.com>
6205
6206 * valops.c (value_cast): Specialize error message for Ada.
6207
5c458ae8
SM
62082019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6209
6210 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6211
4c462cb0
SM
62122019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6213
6214 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6215 bpstat_should_step): Return bool, adjust comments.
6216 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6217 bpstat_should_step): Likewise.
6218
89abbcc2
AH
62192019-07-10 Alan Hayward <alan.hayward@arm.com>
6220
6221 * features/Makefile: Use feature target descriptions for Arm.
6222 * features/arm/arm-core.c: Generate new file.
6223 * features/arm/arm-fpa.c: Likewise.
6224 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6225 * features/arm/arm-m-profile.c: Likewise.
6226 * features/arm/arm-vfpv2.c: Likewise.
6227 * features/arm/arm-vfpv3.c: Likewise.
6228 * features/arm/xscale-iwmmxt.c: Likewise.
6229 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6230
166a82be
AH
62312019-07-10 Alan Hayward <alan.hayward@arm.com>
6232
6233 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6234 ptrace earlier.
6235
9fb4c7e9
AH
62362019-07-10 Alan Hayward <alan.hayward@arm.com>
6237
6238 * features/aarch64-pauth.c: Regenerate.
6239
e2d0f980
SM
62402019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6241
6242 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6243 bool.
6244 (bpstat_what): Use false instead of 0.
6245
a38118e5
PA
62462019-07-09 Pedro Alves <palves@redhat.com>
6247
6248 * break-catch-throw.c (is_exception_catchpoint): New.
6249 * breakpoint.c (print_one_breakpoint_location): New parameter
6250 'raw_loc'. Handle it. Use
6251 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6252 looking at the breakpoint's type.
6253 (print_one_breakpoint): If handling "maint info breakpoints", also
6254 print locations of exception catchpoints.
6255 * breakpoint.h (is_exception_catchpoint): Declare.
6256
cb1e4e32
PA
62572019-07-09 Pedro Alves <palves@redhat.com>
6258
6259 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6260 "addr" field.
6261 (allocate_location_exception_catchpoint): New.
6262 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6263 (initialize_throw_catchpoint_ops): Install
6264 allocate_location_exception_catchpoint as allocate_location
6265 method.
6266 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6267 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6268 bp_loc_other.
6269 (breakpoint_address_is_meaningful): Delete.
6270 (bl_address_is_meaningful): New.
6271 (breakpoint_locations_match): Adjust comment.
6272 (bp_location_from_bp_type): New, factored out of...
6273 (bp_location::bp_location(breakpoint *)): ... this.
6274 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6275 factored out of...
6276 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6277 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6278 breakpoint_address_is_meaningful.
6279 (bp_locations_compare): Adjust comment.
6280 (update_global_location_list): Use bl_address_is_meaningful
6281 instead of breakpoint_address_is_meaningful.
6282 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6283 explicit.
6284 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6285 * python/py-breakpoint.c (bppy_get_location): No longer check
6286 whether location is null.
6287
b58a68fe
PA
62882019-07-09 Pedro Alves <palves@redhat.com>
6289
6290 PR c++/15468
6291 * breakpoint.c (print_one_breakpoint_location): Remove
6292 single-location assert.
6293
268a13a5
TT
62942019-07-09 Tom Tromey <tom@tromey.com>
6295
6296 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6297 * configure: Rebuild.
6298 * configure.ac: Change common to gdbsupport.
6299 * gdbsupport: Rename from common.
6300 * acinclude.m4: Change common to gdbsupport.
6301 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6302 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6303 gdbsupport.
6304 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6305 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6306 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6307 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6308 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6309 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6310 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6311 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6312 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6313 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6314 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6315 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6316 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6317 coff-pe-read.c, command.h, compile/compile-c-support.c,
6318 compile/compile-c.h, compile/compile-cplus-symbols.c,
6319 compile/compile-cplus-types.c, compile/compile-cplus.h,
6320 compile/compile-loc2c.c, compile/compile.c, completer.c,
6321 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6322 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6323 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6324 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6325 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6326 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6327 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6328 features/aarch64-core.c, features/aarch64-fpu.c,
6329 features/aarch64-pauth.c, features/aarch64-sve.c,
6330 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6331 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6332 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6333 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6334 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6335 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6336 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6337 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6338 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6339 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6340 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6341 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6342 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6343 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6344 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6345 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6346 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6347 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6348 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6349 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6350 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6351 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6352 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6353 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6354 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6355 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6356 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6357 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6358 minsyms.c, mips-linux-tdep.c, namespace.h,
6359 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6360 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6361 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6362 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6363 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6364 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6365 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6366 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6367 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6368 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6369 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6370 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6371 procfs.c, producer.c, progspace.h, psymtab.h,
6372 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6373 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6374 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6375 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6376 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6377 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6378 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6379 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6380 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6381 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6382 target-memory.c, target.c, target.h, target/waitstatus.c,
6383 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6384 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6385 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6386 unittests/array-view-selftests.c,
6387 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6388 unittests/common-utils-selftests.c,
6389 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6390 unittests/format_pieces-selftests.c,
6391 unittests/function-view-selftests.c,
6392 unittests/lookup_name_info-selftests.c,
6393 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6394 unittests/mkdir-recursive-selftests.c,
6395 unittests/observable-selftests.c,
6396 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6397 unittests/parse-connection-spec-selftests.c,
6398 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6399 unittests/scoped_fd-selftests.c,
6400 unittests/scoped_mmap-selftests.c,
6401 unittests/scoped_restore-selftests.c,
6402 unittests/string_view-selftests.c, unittests/style-selftests.c,
6403 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6404 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6405 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6406 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6407 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6408 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6409
5b0e2db4
AB
64102019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6411
6412 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6413 bool value.
6414 (decode_digits_ordinary): Set explicit_line field in sal.
6415 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6416 symtab_and_line that was set on an explicit line number in
6417 assembler code. Do always update the recorded symtab and line if
6418 we do skip the prologue.
6419
0ba852ab
AB
64202019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6421
6422 * breakpoint.c (set_breakpoint_location_function): Remove
6423 explicit_loc parameter.
6424 (momentary_breakpoint_from_master): Update call to
6425 set_breakpoint_location_function.
6426 (add_location_to_breakpoint): Likewise.
6427
b3a7d171
AB
64282019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6429
6430 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6431 required features based on default bfd type when no specific bfd
6432 is present.
6433
1f6f6e21
PW
64342019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6435
6436 * NEWS: Mention that GDB printf and eval commands can now print
6437 C-style and Ada-style convenience var strings without
6438 calling the inferior.
6439 * printcmd.c (printf_c_string): Locally print GDB internal var
6440 instead of transiting via the inferior.
6441 (printf_wide_c_string): Likewise.
6442
64432019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 6444
5862c886 6445 PR breakpoints/25011
ea142fbf
AH
6446 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6447
0598af48
TT
64482019-07-04 Tom Tromey <tom@tromey.com>
6449
6450 PR tui/24724:
6451 * tui/tui-winsource.c (tui_clear_source_content): Update.
6452 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6453 (tui_update_breakpoint_info): Update.
6454 (tui_set_exec_info_content): Update.
6455 * tui/tui-source.c (tui_set_source_content_nil): Update.
6456 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6457 has_break.
6458 * tui/tui-data.h (enum tui_bp_flag): New.
6459 (tui_bp_flags): New enum flags type.
6460 (struct tui_source_element) <break_mode>: Change type. Rename
6461 from has_break.
6462 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6463 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6464 constants.
6465 * tui/tui-winsource.h: Fix comment.
6466
350fab54
AH
64672019-07-04 Alan Hayward <alan.hayward@arm.com>
6468
6469 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6470 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6471 (store_fpregs_to_thread)
6472 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6473 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6474 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6475 (IWMMXT_REGS_SIZE): Add define.
6476 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6477 (fetch_vfp_regs, store_vfp_regs)
6478 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6479 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6480
f0452268
AH
64812019-07-04 Alan Hayward <alan.hayward@arm.com>
6482
6483 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6484 defines.
6485 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6486 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6487 (ARM_INT_REGISTER_SIZE): ...to this.
6488 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6489 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6490 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6491 (arm_linux_collect_gregset, supply_nwfpe_register)
6492 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6493 defines.
6494 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6495 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6496 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6497 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6498 (arm_return_in_memory, arm_store_return_value)
6499 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6500 (arm_record_ld_st_multiple): Likewise.
6501 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6502 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6503
e935475c
AH
65042019-07-04 Alan Hayward <alan.hayward@arm.com>
6505
6506 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6507 AARCH64_DISPLACED_MODIFIED_INSNS.
6508 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6509 (aarch64_displaced_step_copy_insn): Likewise.
6510 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6511 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6512 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6513 ARM_DISPLACED_MODIFIED_INSNS.
6514 * arm-tdep.c (arm_gdbarch_init): Likewise.
6515 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6516 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6517 (struct arm_displaced_step_closure): Use
6518 ARM_DISPLACED_MODIFIED_INSNS.
6519
df0bb381
AH
65202019-07-04 Alan Hayward <alan.hayward@arm.com>
6521
6522 * features/Makefile: Remove unused xml files.
6523 * features/aarch64.xml: Remove.
6524 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6525 * features/i386/amd64-avx-avx512.xml: Remove.
6526 * features/i386/amd64-avx-linux.xml: Remove.
6527 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6528 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6529 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6530 * features/i386/amd64-avx-mpx.xml: Remove.
6531 * features/i386/amd64-avx.xml: Remove.
6532 * features/i386/amd64-linux.xml: Remove.
6533 * features/i386/amd64-mpx-linux.xml: Remove.
6534 * features/i386/amd64-mpx.xml: Remove.
6535 * features/i386/amd64.xml: Remove.
6536 * features/i386/i386-avx-avx512-linux.xml: Remove.
6537 * features/i386/i386-avx-avx512.xml: Remove.
6538 * features/i386/i386-avx-linux.xml: Remove.
6539 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6540 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6541 * features/i386/i386-avx-mpx-linux.xml: Remove.
6542 * features/i386/i386-avx-mpx.xml: Remove.
6543 * features/i386/i386-avx.xml: Remove.
6544 * features/i386/i386-linux.xml: Remove.
6545 * features/i386/i386-mmx-linux.xml: Remove.
6546 * features/i386/i386-mmx.xml: Remove.
6547 * features/i386/i386-mpx-linux.xml: Remove.
6548 * features/i386/i386-mpx.xml: Remove.
6549 * features/i386/i386.xml: Remove.
6550 * features/i386/x32-avx-avx512-linux.xml: Remove.
6551 * features/i386/x32-avx-linux.xml: Remove.
6552 * features/i386/x32-linux.xml: Remove.
6553
edd6266a
AH
65542019-07-04 Alan Hayward <alan.hayward@arm.com>
6555
6556 * regformats/aarch64.dat: Remove.
6557 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6558 * regformats/i386/amd64-avx-linux.dat: Remove.
6559 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6560 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6561 * regformats/i386/amd64-linux.dat: Remove.
6562 * regformats/i386/amd64-mpx-linux.dat: Remove.
6563 * regformats/i386/amd64.dat: Remove.
6564 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6565 * regformats/i386/i386-avx-linux.dat: Remove.
6566 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6567 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6568 * regformats/i386/i386-linux.dat: Remove.
6569 * regformats/i386/i386-mmx-linux.dat: Remove.
6570 * regformats/i386/i386-mpx-linux.dat: Remove.
6571 * regformats/i386/i386.dat: Remove.
6572 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6573 * regformats/i386/x32-avx-linux.dat: Remove.
6574 * regformats/i386/x32-linux.dat: Remove.
6575
2b40fda7
AH
65762019-07-04 Alan Hayward <alan.hayward@arm.com>
6577
6578 * aarch64-tdep.c: Remove xml self tests.
6579 * amd64-linux-tdep.c: Likewise.
6580 * amd64-tdep.c: Likewise.
6581 * i386-linux-tdep.c: Likewise.
6582 * i386-tdep.c: Likewise.
6583
5f4ba3e7
PA
65842019-07-03 Pedro Alves <palves@redhat.com>
6585
6586 PR cli/24732
6587 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6588 (pipe_cmd_option_defs): New.
6589 (make_pipe_cmd_options_def_group): New.
6590 (pipe_command): Use gdb::option::process_options.
6591 (pipe_command_completer): New function.
6592 (_initialize_cli_cmds): Install completer for "pipe" command.
6593
3d9be6f5
PA
65942019-07-03 Pedro Alves <palves@redhat.com>
6595
6596 * cli/cli-option.c (union option_value) <string>: New field.
6597 (struct option_def_and_value): Add ctor, move ctor, dtor and
6598 use DISABLE_COPY_AND_ASSIGN.
6599 (option_def_and_value::clear_value): New.
6600 (parse_option, save_option_value_in_ctx, get_val_type_str)
6601 (add_setshow_cmds_for_options): Handle var_string.
6602 * cli-option.h (union option_def::var_address) <string>: New
6603 field.
6604 (struct string_option_def): New.
6605 * maint-test-options.c (struct test_options_opts): Add default
6606 ctor and use DISABLE_COPY_AND_ASSIGN.
6607 <string_opt>: New field.
6608 (test_options_opts::~test_options_opts): New.
6609 (test_options_opts::dump): Also dump "-string".
6610 (test_options_option_defs): Install "string.
6611
41fc454c
PA
66122019-07-03 Pedro Alves <palves@redhat.com>
6613
6614 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6615 option_value with a null enumeration.
6616 (complete_options): Save the option values in the context.
6617 (save_option_value_in_ctx): New, factored out from ...
6618 (process_options): ... here.
6619 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6620 of the function.
6621 * maint-test-options.c (test_options_opts::dump): New, factored
6622 out from ...
6623 (maintenance_test_options_command_mode): ... here.
6624 (maintenance_test_options_command_completion_result): Delete.
6625 (maintenance_test_options_command_completion_text): Update
6626 comment.
6627 (maintenance_show_test_options_completion_result): Change
6628 prototype. Just print
6629 maintenance_test_options_command_completion_text.
6630 (save_completion_result): New.
6631 (maintenance_test_options_completer_mode): Pass options context to
6632 complete_options, and then save a dump.
6633 (_initialize_maint_test_options): Use add_cmd to install "maint
6634 show test-options-completion-result".
6635
fdbc9870
PA
66362019-07-03 Pedro Alves <palves@redhat.com>
6637
6638 * NEWS (New commands): Mention "with" and "maint with".
6639 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6640 (with_command, with_command_completer): New.
6641 (pipe_command): Adjust to new repeat_previous
6642 interface.
6643 (_initialize_cli_cmds): Install the "with" command and its "w"
6644 alias.
6645 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6646 declarations.
6647 * cli/cli-setshow.c (parse_cli_var_uinteger)
6648 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6649 argument strings for all var_types.
6650 (get_setshow_command_value_string): New, factored out from ...
6651 (do_show_command): ... this.
6652 * cli/cli-setshow.h: Include <string>.
6653 (get_setshow_command_value_string): Declare.
6654 * command.h (repeat_previous): Now returns const char *. Adjust
6655 comment.
6656 * maint.c: Include "cli/cli-cmds.h".
6657 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6658 (_initialize_maint_cmds): Register the "maintenance with" command.
6659 * top.c (repeat_previous): Move bits from pipe_command here:
6660 Return the saved command line, if any; error out if there's no
6661 command to relaunch.
6662
c6ac8931
PA
66632019-07-03 Pedro Alves <palves@redhat.com>
6664
6665 * NEWS (New commands): Mention "maint set/show test-settings"
6666 instead of "maint test-settings".
6667 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6668 (maintenance_test_settings_set_list): Rename to ...
6669 (maintenance_set_test_settings_list): ... this.
6670 (maintenance_test_settings_show_list): Rename to ...
6671 (maintenance_show_test_settings_list): ... this.
6672 (maintenance_test_settings_cmd): Delete.
6673 (maintenance_test_settings_set_cmd): ...
6674 (maintenance_set_test_settings_cmd): ... this.
6675 (maintenance_test_settings_show_cmd): ...
6676 (maintenance_show_test_settings_cmd): ... this.
6677 (maintenance_test_settings_show_value_cmd):
6678 (maintenance_show_test_settings_value_cmd): ... this.
6679 (_initialize_maint_test_settings): No longer install the "maint
6680 test-settings" prefix command. Rename "maint test-settings set"
6681 to "maint set test-settings", and "maint test-settings show" to
6682 "maint show test-settings". Adjust all subcommands.
6683
d1fcf2fd
PA
66842019-07-03 Pedro Alves <palves@redhat.com>
6685
6686 * maint-test-settings.c: Fix file's intro comment. Replace all
6687 references to "test-options" with references to "test-settings",
6688 in comments.
6689
970f9d09
PA
66902019-07-03 Pedro Alves <palves@redhat.com>
6691
6692 * maint-test-settings.c (maintenance_test_settings_xxx)
6693 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6694 New.
6695 (maintenance_test_settings_enums): Use them.
6696 (maintenance_test_settings_enum): Default to
6697 maintenance_test_settings_xxx.
6698 (_initialize_maint_test_settings): Initialize
6699 MAINTENANCE_TEST_SETTINGS_FILENAME.
6700
f3869b1a
SM
67012019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6702
6703 * breakpoint.h (remove_breakpoints_inf): Change return type to
6704 void, move function documentation here.
6705 * breakpoint.c (remove_breakpoints_inf): Change return type to
6706 void, move function documentation to header.
6707
54d66006
PA
67082019-07-02 Pedro Alves <palves@redhat.com>
6709
6710 * NEWS (Completion improvements): Mention "info threads".
6711 * thread.c (struct info_threads_opts, info_threads_option_defs)
6712 (make_info_threads_options_def_group): New.
6713 (info_threads_command): Use gdb::option::process_options.
6714 (info_threads_command_completer): New.
6715 (_initialize_thread): Use gdb::option::build_help to build the
6716 help text for "info threads".
6717
854f6088
SM
67182019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6719
6720 * defs.h (generic_load): Move from here...
6721 * symfile.h (generic_load): ... to here. Rename name parameter
6722 to args.
6723 * symfile.c (generic_load): Add comment.
6724
54ee4252
TT
67252019-07-01 Tom Tromey <tromey@adacore.com>
6726
6727 * dwarf2read.c
6728 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6729 declaration of without_params. Fix formatting.
6730
65392b3e
TT
67312019-07-01 Tom Tromey <tromey@adacore.com>
6732
6733 * ada-exp.y (find_primitive_type): Update.
6734 * ada-lang.h (ada_lookup_symbol): Update.
6735 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6736 parameter.
6737 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6738
7d7571f0
SDJ
67392019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6740
6741 PR breakpoints/24541
6742 * gdbarch.c: Regenerate.
6743 * gdbarch.h: Regenerate.
6744 * gdbarch.sh: Add 'stap_adjust_register'.
6745 * i386-tdep.c: Include '<unordered_set>'.
6746 (i386_stap_adjust_register): New function.
6747 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6748 * stap-probe.c (stap_parse_register_operand): Call
6749 'gdbarch_stap_adjust_register'.
6750
5af5392a
SDJ
67512019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6752
6753 PR python/24742
6754 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6755 * python/python.c (do_start_initialization): Use 'xmalloc'
6756 instead of 'PyMem_Malloc'.
6757
10d06d82
TT
67582019-06-28 Tom Tromey <tromey@adacore.com>
6759
6760 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6761 for Ada.
6762
1b7f24cd
TT
67632019-06-27 Tom Tromey <tromey@adacore.com>
6764
6765 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6766 objfile_key.
6767 (arm_find_mapping_symbol, arm_record_special_symbol)
6768 (_initialize_arm_tdep): Update.
6769 (arm_objfile_data_free): Remove.
6770
3d507ff2
TT
67712019-06-27 Tom Tromey <tromey@adacore.com>
6772
6773 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6774 to cp_print_static_field.
6775
762c164d
TT
67762019-06-26 Tom Tromey <tromey@adacore.com>
6777
6778 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6779 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6780 declare.
6781
aa2f9bcf
AH
67822019-06-26 Alan Hayward <alan.hayward@arm.com>
6783
6784 * features/aarch64-core.c (create_feature_aarch64_core):
6785 Regenerate.
6786 * features/aarch64-core.xml: Add cpsr flags.
6787
3426ae57
AH
67882019-06-26 Alan Hayward <alan.hayward@arm.com>
6789
6790 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6791 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6792
4838e44c
SM
67932019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6794
6795 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6796 field.
6797 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6798 use.
6799 (arm_record_special_symbol): Don't insert new symbol in sorted
6800 position, push it at the end.
6801
54cc7474
SM
68022019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6803
6804 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6805 (arm_mapping_symbol_s): Remove.
6806 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6807 (arm_mapping_symbol_vec): New typedef.
6808 (struct arm_per_objfile): Add constructor.
6809 <section_maps>: Change type to
6810 std::unique_ptr<arm_mapping_symbol_vec[]>.
6811 (arm_compare_mapping_symbols): Remove.
6812 (arm_find_mapping_symbol): Adjust to section_maps type change.
6813 (arm_objfile_data_free): Call delete on arm_per_objfile.
6814 (arm_record_special_symbol): Adjust to section_maps type change.
6815 Allocate arm_per_objfile with new.
6816
b65b566c
PW
68172019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6818
6819 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6820 with the command prefix.
6821
c2fc64f5
TT
68222019-06-25 Tom Tromey <tom@tromey.com>
6823
6824 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6825 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6826
fb54fa76
TT
68272019-06-25 Tom Tromey <tom@tromey.com>
6828
6829 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6830 type.
6831 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6832 protected.
6833
f7952c57
TT
68342019-06-25 Tom Tromey <tom@tromey.com>
6835
6836 * tui/tui-winsource.c
6837 (tui_source_window_base::set_is_exec_point_at): Add check against
6838 LOA_ADDRESS.
6839
17568d78
TT
68402019-06-25 Tom Tromey <tom@tromey.com>
6841
6842 * tui/tui-source.c (tui_set_source_content): Don't check before
6843 xfree.
6844 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6845
53e7cdba
TT
68462019-06-25 Tom Tromey <tom@tromey.com>
6847
6848 * tui/tui-winsource.h (tui_update_source_window_as_is)
6849 (tui_alloc_source_buffer, tui_line_is_displayed)
6850 (tui_addr_is_displayed): Change type of win_info.
6851 * tui/tui-winsource.c (tui_update_source_window_as_is)
6852 (tui_clear_source_content, tui_show_source_line)
6853 (tui_show_source_content, tui_source_window_base::refill)
6854 (tui_source_window_base::set_is_exec_point_at)
6855 (tui_source_window_base::set_is_exec_point_at)
6856 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6857 (tui_alloc_source_buffer, tui_line_is_displayed)
6858 (tui_addr_is_displayed): Change type of win_info. Update.
6859 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6860 (tui_source_window_base::do_make_visible_with_new_height):
6861 Update.
6862 * tui/tui-source.c (tui_set_source_content)
6863 (tui_set_source_content_nil)
6864 (tui_source_window::do_scroll_vertical): Update.
6865 * tui/tui-layout.c (show_layout): Update.
6866 * tui/tui-disasm.c (tui_set_disassem_content)
6867 (tui_disasm_window::do_scroll_vertical): Update.
6868 * tui/tui-data.h (tui_win_content): Remove.
6869 (struct tui_gen_win_info) <content, content_size>: Remove.
6870 (struct tui_source_element): Add initializers and destructor.
6871 (union tui_which_element, struct tui_win_element): Remove.
6872 (struct tui_source_window_base) <content>: New field.
6873 (struct tui_data_window): Remove destructor.
6874 (tui_alloc_content, tui_free_win_content)
6875 (tui_free_all_source_wins_content): Don't declare.
6876 * tui/tui-data.c (tui_initialize_static_data): Update.
6877 (init_content_element, tui_alloc_content): Remove.
6878 (~tui_gen_win_info): Update.
6879 (~tui_data_window, tui_free_all_source_wins_content)
6880 (tui_free_win_content, free_content, free_content_elements):
6881 Remove.
6882
7908abbf
TT
68832019-06-25 Tom Tromey <tom@tromey.com>
6884
6885 * tui/tui-winsource.h (tui_clear_source_content)
6886 (tui_erase_source_content, tui_show_source_content): Change type
6887 of win_info.
6888 * tui/tui-winsource.c (tui_clear_source_content)
6889 (tui_erase_source_content, tui_show_source_content): Change type
6890 of win_info.
6891 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6892 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6893 win_info.
6894 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6895 win_info.
6896 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6897
02c28df0
TT
68982019-06-25 Tom Tromey <tom@tromey.com>
6899
6900 * tui/tui-winsource.c (tui_clear_source_content)
6901 (tui_source_window_base::set_is_exec_point_at): Update.
6902 * tui/tui-source.c (tui_set_source_content_nil): Update.
6903 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6904 a bool.
6905 * tui/tui-data.c (init_content_element): Update.
6906
6658b1bf
TT
69072019-06-25 Tom Tromey <tom@tromey.com>
6908
6909 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6910 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6911 * tui/tui-layout.c (init_and_make_win): Update.
6912 * tui/tui.h (enum tui_win_type): Update.
6913 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6914 tui_win_is_auxillary.
6915 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6916 tui_win_is_auxillary.
6917
21e1c91e
TT
69182019-06-25 Tom Tromey <tom@tromey.com>
6919
6920 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6921 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6922 (tui_delete_data_content_windows, tui_display_all_data)
6923 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6924 Update.
6925 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6926 * tui/tui-regs.c (tui_last_regs_line_no)
6927 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6928 (tui_show_registers): Update.
6929 (tui_show_register_group): Return void. Update.
6930 (tui_display_registers_from, tui_display_reg_element_at_line)
6931 (tui_display_registers_from_line, tui_check_register_values):
6932 Update.
6933 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6934 member.
6935 (struct tui_data_window) <regs_content>: Now a std::vector.
6936 <regs_content_count>: Remove.
6937 (tui_add_content_elements, tui_free_data_content): Don't declare.
6938 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6939 (init_content_element): Remove DATA_WIN case. Add assert.
6940 (tui_add_content_elements): Remove.
6941 (tui_data_window): Update.
6942 (tui_free_data_content): Remove.
6943 (free_content_elements): Remove DATA_WIN case.
6944
115ac53b
TT
69452019-06-25 Tom Tromey <tom@tromey.com>
6946
6947 * tui/tui-data.c (tui_data_item_window): Update.
6948 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6949 * tui/tui-windata.c (tui_display_all_data)
6950 (tui_display_data_from_line): Update.
6951 (tui_check_data_values): Remove.
6952 * tui/tui-regs.c (tui_show_register_group)
6953 (tui_display_reg_element_at_line): Update.
6954 * tui/tui-hooks.c (tui_register_changed)
6955 (tui_refresh_frame_and_register_information): Call
6956 tui_check_register_values.
6957 * tui/tui-data.h (struct tui_data_window) <data_content,
6958 data_content_count, data_type>: Remove.
6959 (enum tui_data_type): Remove.
6960
6961 * tui/tui-data.c (tui_data_window::clear_detail)
6962 (~tui_data_window): Update.
6963
eaf9738b
TT
69642019-06-25 Tom Tromey <tom@tromey.com>
6965
6966 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6967 declare.
6968 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6969 Rename from tui_first_data_item_displayed. Update.
6970 (tui_data_window::refresh_all)
6971 (tui_data_window::do_scroll_vertical): Update.
6972 * tui/tui-data.h (struct tui_data_window)
6973 <first_data_item_displayed>: Declare new method.
6974
31ca4723
TT
69752019-06-25 Tom Tromey <tom@tromey.com>
6976
6977 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6978 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6979 contents...
6980 (tui_initialize_static_data): ...here.
6981
41bcff7f
TT
69822019-06-25 Tom Tromey <tom@tromey.com>
6983
6984 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6985 (tui_display_registers_from, tui_check_register_values): Update.
6986 (tui_display_register): Remove win_info parameter; update.
6987 (tui_get_register): Change type of parameters.
6988 * tui/tui-data.h (struct tui_data_element): Remove.
6989 (union tui_which_element) <data>: Remove.
6990 <data_window>: Change type.
6991 (struct tui_data_item_window): New.
6992 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6993 case. Add assert.
6994 (~tui_data_item_window): New destructor.
6995 (free_content_elements): Remove DATA_ITEM_WIN case.
6996
d2802c33
TT
69972019-06-25 Tom Tromey <tom@tromey.com>
6998
6999 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7000 Remove.
7001
dd835f8b
TT
70022019-06-25 Tom Tromey <tom@tromey.com>
7003
7004 * tui/tui-data.h (struct tui_command_element): Remove.
7005 (union tui_which_element) <command>: Remove.
7006 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7007 assert.
7008 (free_content_elements): Remove CMD_WIN case.
7009
bd7db367
TT
70102019-06-25 Tom Tromey <tom@tromey.com>
7011
7012 * tui/tui-layout.c (tui_set_layout): Update.
7013 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7014 * tui/tui-data.c (layout_def): Update.
7015
3add462f
TT
70162019-06-25 Tom Tromey <tom@tromey.com>
7017
7018 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7019 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7020 (tui_source_window_base::set_new_height): Update.
7021 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7022 Update.
7023 (tui_set_locator_fullname, tui_set_locator_info)
7024 (tui_show_frame_info): Update.
7025 * tui/tui-source.c (tui_set_source_content)
7026 (tui_source_is_displayed): Update.
7027 * tui/tui-layout.c (show_source_disasm_command, show_data)
7028 (show_source_or_disasm_and_command): Update.
7029 * tui/tui-disasm.c (tui_set_disassem_content)
7030 (tui_get_begin_asm_address): Update.
7031 * tui/tui-data.h (struct tui_locator_element): Remove.
7032 (union tui_which_element) <locator>: Remove.
7033 (struct tui_locator_window): New.
7034 (tui_locator_win_info_ptr): Change return type.
7035 * tui/tui-data.c (_locator): Change type.
7036 (tui_locator_win_info_ptr): Change return type.
7037 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7038 (tui_alloc_content): Add assert.
7039
489e9d8b
TT
70402019-06-25 Tom Tromey <tom@tromey.com>
7041
7042 * tui/tui-winsource.c
7043 (tui_exec_info_window::maybe_allocate_content): New method.
7044 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7045 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7046 (make_source_or_disasm_window): Add cast.
7047 * tui/tui-data.h (union tui_which_element) <simple_string>:
7048 Remove.
7049 (struct tui_source_info): New.
7050 (struct tui_source_window_base) <execution_info>: Change type.
7051 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7052 case, and add assert.
7053 (tui_alloc_content): Add assert.
7054
c3fabb7d
TT
70552019-06-25 Tom Tromey <tom@tromey.com>
7056
7057 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7058 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7059 * tui/tui-data.c (tui_alloc_win_info): Remove.
7060
bbc228ee
TT
70612019-06-25 Tom Tromey <tom@tromey.com>
7062
7063 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7064 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7065 can_highlight.
7066
5fcee43a
TT
70672019-06-25 Tom Tromey <tom@tromey.com>
7068
7069 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7070 make_visible_with_new_height method.
7071 (tui_win_info::make_visible_with_new_height): New method.
7072 (tui_source_window_base::do_make_visible_with_new_height)
7073 (tui_data_window::do_make_visible_with_new_height)
7074 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7075 (make_visible_with_new_height): Remove.
7076 (tui_resize_all, tui_adjust_win_heights): Use
7077 make_visible_with_new_height method.
7078 * tui/tui-data.h (struct tui_win_info)
7079 <do_make_visible_with_new_height, make_visible_with_new_height>:
7080 New methods.
7081 (struct tui_source_window_base, struct tui_data_window)
7082 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7083 methods.
7084
d83f1fe6
TT
70852019-06-25 Tom Tromey <tom@tromey.com>
7086
7087 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7088 method.
7089 (update_tab_width): Call update_tab_width method.
7090 * tui/tui-data.h (struct tui_win_info)
7091 (struct tui_source_window_base) <update_tab_width>: New methods.
7092
17374de4
TT
70932019-06-25 Tom Tromey <tom@tromey.com>
7094
7095 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7096 parameter.
7097 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7098 parameter.
7099 (tui_gen_win_info::make_visible): Update.
7100 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7101 parameter.
7102 * tui/tui-data.h (enum tui_box): New enum.
7103 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7104
f936bca2
TT
71052019-06-25 Tom Tromey <tom@tromey.com>
7106
7107 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7108 init_and_make_win for EXEC_INFO_WIN.
7109 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7110 longer inline.
7111 (struct tui_win_info) <~tui_win_info>: Inline.
7112 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7113 Don't declare.
7114 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7115 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7116 Remove.
7117 (tui_initialize_static_data): Update.
7118 (~tui_gen_win_info): Handle more cleanup here.
7119 (~tui_source_window_base): Delete "execution_info".
7120 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7121
d6ba6a11
TT
71222019-06-25 Tom Tromey <tom@tromey.com>
7123
7124 * tui/tui-layout.c (make_command_window): Don't set
7125 can_highlight.
7126 (show_source_disasm_command): Call the reset method.
7127 (show_data): Don't set can_highlight. Call the reset method.
7128 (tui_gen_win_info::reset): Rename from init_gen_win_info
7129 (init_and_make_win): Simplify. Return tui_gen_win_info.
7130 (show_source_or_disasm_and_command): Call the reset method.
7131 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7132 (struct tui_cmd_window): Set can_highlight.
7133
48a3bd16
TT
71342019-06-25 Tom Tromey <tom@tromey.com>
7135
7136 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7137 from make_visible.
7138 (tui_make_visible, tui_make_invisible): Rewrite.
7139 (tui_win_info::make_visible): Remove.
7140 (tui_source_window_base::make_visible): Update.
7141 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7142 method. Moved from...
7143 (struct tui_win_info) <make_visible>: ...here.
7144
c3bd716f
TT
71452019-06-25 Tom Tromey <tom@tromey.com>
7146
7147 * tui/tui-winsource.c
7148 (tui_source_window_base::do_scroll_horizontal): Remove direction
7149 parameter.
7150 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7151 direction parameter.
7152 * tui/tui-win.c (tui_win_info::forward_scroll)
7153 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7154 (tui_win_info::right_scroll): Update.
7155 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7156 direction parameter.
7157 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7158 direction parameter.
7159 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7160 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7161 Remove direction parameter.
7162 (struct tui_source_window_base, struct tui_source_window)
7163 (struct tui_disasm_window, struct tui_data_window)
7164 (struct tui_cmd_window): Update.
7165
21c32dca
TT
71662019-06-25 Tom Tromey <tom@tromey.com>
7167
7168 * tui/tui-winsource.h (tui_set_exec_info_content)
7169 (tui_show_exec_info_content, tui_erase_exec_info_content)
7170 (tui_clear_exec_info_content, tui_update_exec_info): Change
7171 argument to tui_source_window_base.
7172 * tui/tui-winsource.c (tui_set_exec_info_content)
7173 (tui_show_exec_info_content, tui_erase_exec_info_content)
7174 (tui_clear_exec_info_content, tui_update_exec_info): Change
7175 argument to tui_source_window_base.
7176
73fbdc65
TT
71772019-06-25 Tom Tromey <tom@tromey.com>
7178
7179 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7180 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7181
33325343
TT
71822019-06-25 Tom Tromey <tom@tromey.com>
7183
7184 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7185 check.
7186
29d2c474
TT
71872019-06-25 Tom Tromey <tom@tromey.com>
7188
7189 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7190 type to void.
7191 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7192 type to void.
7193 * tui/tui-source.c (tui_set_source_content): Update.
7194 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7195
152f3f4b
TT
71962019-06-25 Tom Tromey <tom@tromey.com>
7197
7198 * tui/tui-win.c (window_name_completer, tui_set_focus)
7199 (tui_all_windows_info): Use name method.
7200 * tui/tui-data.h (struct tui_gen_win_info)
7201 (struct tui_source_window, struct tui_disasm_window)
7202 (struct tui_data_window, struct tui_cmd_window) <name>: New
7203 method.
7204 (tui_win_name): Don't declare.
7205 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7206 (tui_win_name): Remove.
7207
be4da588
TT
72082019-06-25 Tom Tromey <tom@tromey.com>
7209
7210 * tui/tui-winsource.h (tui_update_source_window)
7211 (tui_update_source_window_as_is): Change parameter type.
7212 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7213 to be a tui_source_window_base.
7214 (tui_update_source_window_as_is): Likewise.
7215 * tui/tui-win.c (make_visible_with_new_height): Update.
7216
5b81daba
TT
72172019-06-25 Tom Tromey <tom@tromey.com>
7218
7219 * tui/tui-winsource.c (tui_erase_source_content)
7220 (tui_show_source_content, tui_show_exec_info_content)
7221 (tui_erase_exec_info_content): Use refresh_window method.
7222 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7223 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7224 from tui_refresh_win.
7225 (tui_data_window::refresh_window): New method.
7226 (tui_win_info::refresh, tui_source_window_base::refresh)
7227 (tui_refresh_all): Use refresh_window method.
7228 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7229 method.
7230 * tui/tui-regs.c (tui_display_register): Call refresh_window
7231 method.
7232 * tui/tui-layout.c (show_source_disasm_command)
7233 (show_source_or_disasm_and_command): Call refresh_window method.
7234 * tui/tui-data.h (struct tui_gen_win_info)
7235 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7236 New method.
7237
cb2ce893
TT
72382019-06-25 Tom Tromey <tom@tromey.com>
7239
7240 * tui/tui.c (tui_rl_other_window, tui_enable)
7241 (tui_is_window_visible, tui_get_command_dimension): Update.
7242 * tui/tui-winsource.c (tui_update_source_window_as_is)
7243 (tui_clear_source_content, tui_erase_source_content)
7244 (tui_show_source_line, tui_source_window_base::refill)
7245 (tui_source_window_base::do_scroll_horizontal)
7246 (tui_source_window_base::set_is_exec_point_at)
7247 (tui_update_breakpoint_info, tui_set_exec_info_content)
7248 (tui_alloc_source_buffer, tui_line_is_displayed)
7249 (tui_addr_is_displayed): Update.
7250 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7251 (tui_check_and_display_highlight_if_needed)
7252 (tui_win_info::make_visible, tui_win_info::refresh)
7253 (tui_refresh_all): Update.
7254 * tui/tui-windata.c (tui_first_data_item_displayed)
7255 (tui_delete_data_content_windows, tui_erase_data_content)
7256 (tui_display_all_data, tui_data_window::refresh_all)
7257 (tui_check_data_values): Update.
7258 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7259 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7260 (tui_win_info::backward_scroll, tui_refresh_all_win)
7261 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7262 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7263 (tui_source_window_base::set_new_height)
7264 (tui_data_window::set_new_height)
7265 (make_invisible_and_set_new_height)
7266 (make_visible_with_new_height, new_height_ok)
7267 (parse_scrolling_args): Update.
7268 * tui/tui-stack.c (tui_show_frame_info): Update.
7269 * tui/tui-source.c (tui_set_source_content)
7270 (tui_set_source_content_nil, tui_source_is_displayed)
7271 (tui_source_window::do_scroll_vertical): Update.
7272 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7273 (tui_display_registers_from, tui_display_reg_element_at_line)
7274 (tui_check_register_values, tui_reg_command): Update.
7275 * tui/tui-layout.c (tui_default_win_height)
7276 (show_source_disasm_command, show_data, init_and_make_win)
7277 (show_source_or_disasm_and_command): Update.
7278 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7279 (tui_redisplay_readline, tui_mld_flush)
7280 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7281 (tui_getc): Update.
7282 * tui/tui-disasm.c (tui_set_disassem_content)
7283 (tui_disasm_window::do_scroll_vertical): Update.
7284 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7285 Now virtual.
7286 (struct tui_win_info): Derive from tui_gen_win_info.
7287 <~tui_win_info>: Mark as override.
7288 <generic>: Remove member.
7289 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7290 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7291 (~tui_data_window, ~tui_win_info)
7292 (tui_free_all_source_wins_content): Update.
7293 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7294
ab313b35
TT
72952019-06-25 Tom Tromey <tom@tromey.com>
7296
7297 * tui/tui-layout.c (init_and_make_win): Use new.
7298 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7299 destructor, initializers.
7300 (tui_alloc_generic_win_info): Don't declare.
7301 * tui/tui-data.c (_locator): Add argument to constructor.
7302 (source_win, disasm_win): New globals.
7303 (exec_info): Remove.
7304 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7305 Update.
7306 (tui_alloc_generic_win_info): Remove.
7307 (init_content_element): Use new.
7308 (tui_win_info::tui_win_info): Update.
7309 (free_content_elements) <case DATA_WIN>: Use delete.
7310
dc2c33e4
TT
73112019-06-25 Tom Tromey <tom@tromey.com>
7312
7313 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7314 * tui/tui-windata.c (tui_first_data_item_displayed)
7315 (tui_delete_data_content_windows): Update.
7316 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7317 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7318 (tui_display_registers_from, tui_check_register_values): Update.
7319 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7320 pointer.
7321 * tui/tui-data.c (init_content_element): Update. Allocate the new
7322 window.
7323 (tui_free_data_content): Update.
7324 (free_content_elements) <case DATA_WIN>: Free the window.
7325
214a5cbe
TT
73262019-06-25 Tom Tromey <tom@tromey.com>
7327
7328 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7329 Update.
7330 * tui/tui-layout.c (make_command_window)
7331 (show_source_disasm_command, show_data, init_and_make_win)
7332 (show_source_or_disasm_and_command): Update.
7333 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7334 method.
7335 <can_highight, is_highlighted>: Now bool.
7336 (tui_set_win_highlight): Don't declare.
7337 * tui/tui-data.c (tui_set_win_highlight): Remove.
7338
8e2daf15
TT
73392019-06-25 Tom Tromey <tom@tromey.com>
7340
7341 * tui/tui-wingeneral.c (make_visible): Remove check of window
7342 type.
7343
8903bd8a
TT
73442019-06-25 Tom Tromey <tom@tromey.com>
7345
7346 * tui/tui-win.c (tui_win_info::max_height)
7347 (tui_cmd_window::max_height): New methods.
7348 (new_height_ok): Call max_height.
7349 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7350 <max_height>: New method.
7351
3f02ce1e
TT
73522019-06-25 Tom Tromey <tom@tromey.com>
7353
7354 * tui/tui-win.c (tui_source_window_base::set_new_height)
7355 (tui_data_window::set_new_height): New methods.
7356 (make_invisible_and_set_new_height): Call set_new_height method.
7357 * tui/tui-data.h (struct tui_win_info)
7358 (struct tui_source_window_base, struct tui_data_window)
7359 <set_new_height>: New method.
7360
1825f487
TT
73612019-06-25 Tom Tromey <tom@tromey.com>
7362
7363 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7364 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7365 tui_refresh_data_win.
7366 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7367 method.
7368 (tui_refresh_all_win): Call the refresh_all method.
7369 (tui_set_focus): Likewise.
7370 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7371 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7372 Likewise.
7373
ad54d15b
TT
73742019-06-25 Tom Tromey <tom@tromey.com>
7375
7376 * tui/tui-winsource.h (tui_refill_source_window)
7377 (tui_set_is_exec_point_at): Don't declare.
7378 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7379 (tui_source_window_base::refill): Rename from
7380 tui_refill_source_window.
7381 (tui_source_window_base::do_scroll_horizontal): Update.
7382 (tui_source_window_base::set_is_exec_point_at): Rename from
7383 tui_set_is_exec_point_at.
7384 (tui_update_all_breakpoint_info): Update.
7385 * tui/tui-stack.c (tui_show_frame_info): Update.
7386 * tui/tui-layout.c (show_data): Add cast.
7387 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7388 * tui/tui-data.h (struct tui_source_window_base) <refill,
7389 set_is_exec_point_at>: New methods.
7390 (tui_source_windows, tui_add_to_source_windows): Update types.
7391 (tui_add_to_source_windows): Remove redundant declaration.
7392 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7393 (tui_source_windows): Change return type.
7394 (tui_clear_source_windows_detail): Update.
7395 (tui_add_to_source_windows): Change type of parameter.
7396 (tui_free_all_source_wins_content): Update.
7397
2042b506
TT
73982019-06-25 Tom Tromey <tom@tromey.com>
7399
7400 * tui/tui-wingeneral.c (tui_win_info::refresh)
7401 (tui_source_window_base::refresh): New methods.
7402 (tui_refresh_all): Call the refresh method.
7403 * tui/tui-data.h (struct tui_win_info)
7404 (struct tui_source_window_base) <refresh>: New method.
7405
56122977
TT
74062019-06-25 Tom Tromey <tom@tromey.com>
7407
7408 * tui/tui.h (tui_is_window_visible): Return bool.
7409 * tui/tui.c (tui_is_window_visible): Return bool.
7410 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7411 (tui_make_visible, tui_make_invisible)
7412 (tui_win_info::make_visible)
7413 (tui_source_window_base::make_visible, make_all_visible)
7414 (tui_make_all_visible, tui_make_all_invisible): Update.
7415 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7416 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7417 bool.
7418 (struct tui_win_info, struct tui_source_window_base)
7419 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7420 * tui/tui-data.c (tui_init_generic_part): Update.
7421
cda37efb
TT
74222019-06-25 Tom Tromey <tom@tromey.com>
7423
7424 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7425 (tui_source_window_base::make_visible): New methods.
7426 (make_all_visible): Make method call.
7427 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7428 (struct tui_source_window_base, struct tui_cmd_window): Override
7429 make_visible.
7430 (tui_win_is_source_type): Don't declare.
7431 * tui/tui-data.c (tui_win_is_source_type): Remove.
7432
6a0ee02c
TT
74332019-06-25 Tom Tromey <tom@tromey.com>
7434
7435 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7436 NULL check.
7437
63901aec
TT
74382019-06-25 Tom Tromey <tom@tromey.com>
7439
7440 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7441 Inline constructor. Add initializers for members.
7442 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7443 constructors; now inline in class.
7444
ceb13a13
TT
74452019-06-25 Tom Tromey <tom@tromey.com>
7446
7447 * tui/tui-regs.c (tui_show_registers): Update.
7448 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7449 bool.
7450 * tui/tui-data.c (tui_data_window::clear_detail)
7451 (tui_data_window): Update.
7452
238eb706
TT
74532019-06-25 Tom Tromey <tom@tromey.com>
7454
7455 * tui/tui-windata.c (tui_display_all_data)
7456 (tui_display_data_from_line, tui_display_data_from)
7457 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7458 Update.
7459 * tui/tui-regs.c (tui_last_regs_line_no)
7460 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7461 (tui_show_registers, tui_show_register_group)
7462 (tui_display_registers_from, tui_display_reg_element_at_line)
7463 (tui_display_registers_from_line, tui_check_register_values)
7464 (tui_reg_next, tui_reg_prev): Update.
7465 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7466 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7467 tui_data_window.
7468 (struct tui_win_info) <detail>: Remove. Add new fields from
7469 tui_data_info.
7470 (TUI_DATA_WIN): Add cast.
7471 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7472 (~tui_data_window): Simplify.
7473
81491aa0
TT
74742019-06-25 Tom Tromey <tom@tromey.com>
7475
7476 * tui/tui-layout.c (show_source_disasm_command)
7477 (show_source_or_disasm_and_command): Update.
7478 * tui/tui-io.c (update_cmdwin_start_line)
7479 (tui_redisplay_readline): Update.
7480 * tui/tui-data.h (struct tui_command_info): Remove.
7481 (struct tui_win_info) <detail>: Remove command_info member.
7482 (struct tui_data_window) <start_line>: New member, from
7483 tui_command_info.
7484 (TUI_CMD_WIN): Add casts.
7485
e6e41501
TT
74862019-06-25 Tom Tromey <tom@tromey.com>
7487
7488 * tui/tui-winsource.c (tui_update_source_window)
7489 (tui_refill_source_window)
7490 (tui_source_window_base::do_scroll_horizontal)
7491 (tui_update_breakpoint_info, tui_set_exec_info_content)
7492 (tui_show_exec_info_content, tui_erase_exec_info_content)
7493 (tui_clear_exec_info_content): Update.
7494 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7495 Update.
7496 * tui/tui-win.c (make_invisible_and_set_new_height)
7497 (make_visible_with_new_height): Update.
7498 * tui/tui-source.c (tui_set_source_content)
7499 (tui_show_symtab_source): Update.
7500 * tui/tui-layout.c (extract_display_start_addr)
7501 (show_source_disasm_command, show_data)
7502 (make_source_or_disasm_window)
7503 (show_source_or_disasm_and_command): Update.
7504 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7505 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7506 "gdbarch".
7507 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7508 to tui_source_window_base.
7509 (struct tui_win_info) <detail>: Remove source_info member.
7510 (struct tui_source_window_base) <has_locator>: Inline.
7511 Move contents from tui_source_info; rename has_locator member to
7512 m_has_locator.
7513 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7514 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7515 header file.
7516 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7517 Simplify.
7518 (tui_free_all_source_wins_content): Cast to
7519 tui_source_window_base.
7520
44f0e208
TT
75212019-06-25 Tom Tromey <tom@tromey.com>
7522
7523 * tui/tui-win.c (make_invisible_and_set_new_height)
7524 (make_visible_with_new_height): Call has_locator method.
7525 * tui/tui-layout.c (show_source_disasm_command, show_data)
7526 (show_source_or_disasm_and_command): Update for bool change.
7527 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7528 (tui_win_info) <has_locator>: New method.
7529 (struct tui_source_window_base) <has_locator>: New method.
7530 (tui_win_has_locator): Don't declare.
7531 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7532 from tui_win_has_locator.
7533 (tui_source_window_base): Use false, not FALSE.
7534
7778b912
TT
75352019-06-25 Tom Tromey <tom@tromey.com>
7536
7537 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7538 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7539 clear_detail method directly.
7540 (tui_clear_win_detail): Remove.
7541
f83d391c
TT
75422019-06-25 Tom Tromey <tom@tromey.com>
7543
7544 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7545 "this", not TUI_DISASM_WIN.
7546
13446e05
TT
75472019-06-25 Tom Tromey <tom@tromey.com>
7548
7549 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7550 declare.
7551 * tui/tui-winsource.c
7552 (tui_source_window_base::do_scroll_horizontal): Rename from
7553 tui_horizontal_source_scroll.
7554 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7555 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7556 from tui_vertical_data_scroll.
7557 * tui/tui-win.h (tui_scroll): Don't declare.
7558 * tui/tui-win.c (tui_win_info::forward_scroll)
7559 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7560 (tui_win_info::right_scroll): Rename and update.
7561 (tui_scroll_forward_command, tui_scroll_backward_command)
7562 (tui_scroll_left_command, tui_scroll_right_command): Update.
7563 (tui_scroll): Remove.
7564 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7565 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7566 from tui_vertical_source_scroll.
7567 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7568 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7569 from tui_vertical_disassem_scroll.
7570 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7571 do_scroll_horizontal>: New methods.
7572 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7573 Likewise.
7574 (struct tui_source_window_base): Add do_scroll_horizontal.
7575 (struct tui_source_window, struct tui_disasm_window): Add
7576 do_scroll_vertical.
7577 (struct tui_data_window, struct tui_cmd_window): Add
7578 do_scroll_horizontal and do_scroll_vertical.
7579 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7580
5cf82909
TT
75812019-06-25 Tom Tromey <tom@tromey.com>
7582
7583 * tui/tui-data.h (struct tui_source_window_base): New struct.
7584 (struct tui_source_window): Derive from tui_source_window_base.
7585 (struct tui_disasm_window): New struct.
7586 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7587 from tui_source_window::clear_detail.
7588 (tui_source_window_base): Rename from tui_source_window.
7589 (~tui_source_window_base): Rename from ~tui_source_window.
7590 (tui_alloc_win_info): Create a tui_disasm_window.
7591
ee1d42d6
TT
75922019-06-25 Tom Tromey <tom@tromey.com>
7593
7594 * tui/tui-data.h (struct tui_source_window)
7595 (struct tui_data_window): Declare destructors.
7596 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7597 destructors.
7598 (tui_win_info): Simplify.
7599
b4eb2452
TT
76002019-06-25 Tom Tromey <tom@tromey.com>
7601
7602 * tui/tui-winsource.c (tui_display_main)
7603 (tui_update_source_windows_with_addr)
7604 (tui_update_all_breakpoint_info): Update.
7605 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7606 (new_height_ok, parse_scrolling_args): Update.
7607 * tui/tui-stack.c (tui_show_frame_info): Update.
7608 * tui/tui-data.h (struct tui_list): Remove.
7609 (tui_source_windows): Return a reference to a std::vector.
7610 * tui/tui-data.c (source_windows): Now a std::vector.
7611 (tui_source_windows): Change return type.
7612 (tui_clear_source_windows): Rewrite.
7613 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7614 (tui_free_all_source_wins_content): Rewrite.
7615
8761a91b
TT
76162019-06-25 Tom Tromey <tom@tromey.com>
7617
7618 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7619 (struct tui_data_window, struct tui_cmd_window): Declare
7620 clear_detail method.
7621 * tui/tui-data.c (tui_source_window::clear_detail)
7622 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7623 methods.
7624 (tui_clear_win_detail): Simplify.
7625
0ed69eda
TT
76262019-06-25 Tom Tromey <tom@tromey.com>
7627
7628 * tui/tui-layout.c (make_source_window, make_disasm_window)
7629 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7630 Return the new window.
7631 (show_source_disasm_command, show_data)
7632 (show_source_or_disasm_and_command): Update.
7633
82432e10
TT
76342019-06-25 Tom Tromey <tom@tromey.com>
7635
7636 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7637 parameter. Return the new window.
7638 (show_source_disasm_command): Update and remove NULL check.
7639 (show_source_or_disasm_and_command): Update.
7640
ec328aa5
TT
76412019-06-25 Tom Tromey <tom@tromey.com>
7642
7643 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7644
33b906ab
TT
76452019-06-25 Tom Tromey <tom@tromey.com>
7646
7647 * tui/tui-data.h (struct tui_win_info): Make constructor
7648 protected. Make destructor virtual. Add initializers.
7649 (tui_source_window, tui_data_window, tui_cmd_window): New
7650 classes.
7651 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7652 constructor. Add "type" parameter.
7653 (tui_source_window, tui_data_window, tui_cmd_window): New
7654 constructors.
7655 (tui_alloc_win_info): Instantiate the appropriate subclass.
7656
e7e11af4
TT
76572019-06-25 Tom Tromey <tom@tromey.com>
7658
7659 * tui/tui-win.c (tui_resize_all): Use delete.
7660 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7661 destructor.
7662 (tui_free_window): Don't declare.
7663 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7664 Update.
7665
6792b55e
TT
76662019-06-25 Tom Tromey <tom@tromey.com>
7667
7668 * tui/tui-data.h (struct tui_win_info): Add constructor.
7669 * tui/tui-data.c (tui_alloc_win_info): Use new.
7670 (tui_free_window): Use delete.
7671
f95675e1
TT
76722019-06-22 Tom Tromey <tom@tromey.com>
7673
7674 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7675 declare.
7676 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7677
5bff081c
TT
76782019-06-22 Tom Tromey <tom@tromey.com>
7679
7680 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7681 declare.
7682 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7683
47e3f474
TV
76842019-06-22 Tom de Vries <tdevries@suse.de>
7685
7686 * dwarf2read.c (create_addrmap_from_aranges)
7687 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7688 instead of '%zu'.
7689
fd5866f6
SM
76902019-06-21 Simon Marchi <simon.marchi@efficios.com>
7691
7692 * dwarf2read.h (dwarf2_section_info_def): Remove.
7693 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7694 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7695 std::vector<dwarf2_section_info>.
7696 (struct dwo_file) <~dwo_file>: Remove.
7697 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7698 types field.
7699 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7700 (dwarf2_read_debug_names): Likewise.
7701 (create_debug_types_hash_table): Change parameter type to
7702 array_view, adjust code accordingly.
7703 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7704 (partial_die_info::fixup): Likewise.
7705 (determine_prefix): Likewise.
7706 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7707
fb1eb2f9
SM
77082019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7709
7710 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7711 gdb_bfd_ref_ptr.
7712 <~dwo_file>: Remove call to gdb_bfd_unref.
7713 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7714 gdb_bfd_ref_ptr::get.
7715
51ac9db5
SM
77162019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7717
7718 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7719 type to htab_up.
7720 * dwarf2read.c (struct dwo_file): Initialize fields.
7721 <~dwo_file>: New.
7722 (free_dwo_file): Remove, move content to ~dwo_file.
7723 (struct dwo_file_deleter): Remove.
7724 (dwo_file_up>: Remove custom deleter.
7725 (free_dwo_files): Remove.
7726 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7727 dwo_files.
7728 (process_skeletonless_type_units): Call unique_ptr::get.
7729 (allocate_dwo_file_hash_table): Add deleter to created hash
7730 table. Change return type to htab_up.
7731 (lookup_dwo_file_slot): Don't memset dwo_file, call
7732 unique_ptr::get.
7733 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7734 (create_dwo_unit_in_dwp_v2): Likewise.
7735 (open_and_init_dwo_file): Likewise.
7736 (free_dwo_file_from_slot): Remove.
7737
dc4ccb6f
SM
77382019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7739
7740 * dwarf2read.h (struct dwarf2_section_info) <readin,
7741 is_virtual>: Change type to bool.
7742 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7743 true instead of 1.
7744
e6a1c5cb
TT
77452019-06-19 Tom Tromey <tom@tromey.com>
7746
7747 * tui/tui-data.h (tui_init_content_element): Don't declare.
7748
6f6ffbeb
TT
77492019-06-19 Tom Tromey <tom@tromey.com>
7750
7751 * tui/tui-data.h (tui_init_win_info): Don't declare.
7752
f23f598e
TV
77532019-06-19 Tom de Vries <tdevries@suse.de>
7754
7755 * dwarf2read.h (abstract_to_concrete): Change type to
7756 std::unordered_map<sect_offset, std::vector<sect_offset>,
7757 gdb::hash_enum<sect_offset>>.
7758
680e1bee
TT
77592019-06-19 Tom Tromey <tromey@adacore.com>
7760
7761 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7762 EVAL_AVOID_SIDE_EFFECTS specially.
7763
dcf37923
TT
77642019-06-19 Tom Tromey <tromey@adacore.com>
7765
7766 * source-cache.c (highlighter): New global.
7767 (source_cache::get_source_lines): Create a highlighter on demand.
7768
494986d5
AB
77692019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7770
7771 * defs.h (deprecated_interactive_hook): Delete declaration.
7772 * interps.c (clear_interpreter_hooks): Remove use of
7773 deprecated_interactive_hook.
7774 * top.c (deprecated_interactive_hook): Delete definition.
7775 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7776
3360b6e7
TV
77772019-06-18 Tom de Vries <tdevries@suse.de>
7778
7779 PR gdb/24515
7780 * dwarf2read.h (abstract_to_concrete): Change type from
7781 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7782 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7783 * dwarf2read.c (read_variable): Update.
7784 (dwarf2_fetch_die_loc_sect_off): Update.
7785
310b3441
TV
77862019-06-17 Tom de Vries <tdevries@suse.de>
7787
7788 PR gdb/24617
7789 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7790 accessing parent[parent_len - 1].
7791
ba9777be
PP
77922019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7793
7794 PR gdb/24364
7795 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7796 call dtrace_process_dof with NULL dof.
7797
2b9f6e89
TV
77982019-06-16 Tom de Vries <tdevries@suse.de>
7799
7800 PR gdb/24445
7801 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7802
431b3ead
TT
78032019-06-16 Tom Tromey <tom@tromey.com>
7804
7805 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7806 (make_all_visible): Use address of member.
7807
d04b44a1
TT
78082019-06-16 Tom Tromey <tom@tromey.com>
7809
7810 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7811 (tui_free_window, free_content, free_content_elements): Remove
7812 unnecessary cast.
7813 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7814 cast.
7815 * tui/tui-regs.c (tui_show_register_group)
7816 (tui_display_registers_from, tui_display_reg_element_at_line):
7817 Remove unnecessary cast.
7818
bf5142e7
AB
78192019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7820
7821 * linux-nat.c (normal_mask): Delete.
7822 (_initialize_linux_nat): Don't initialise normal_mask.
7823
c4973306
SM
78242019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7825
7826 PR gdb/24445
7827 * dwarf-index-write.h (write_psymtabs_to_index): Add
7828 dwz_basename parameter.
7829 * dwarf-index-write.c (write_gdbindex): Move file writing to
7830 write_gdbindex_1. Change return type void.
7831 (assert_file_size): Move up, remove filename parameter.
7832 (write_gdbindex_1): New function.
7833 (write_debug_names): Change return type to void, call
7834 assert_file_size.
7835 (struct index_wip_file): New struct.
7836 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7837 file logic to index_wip_file. Write index for dwz file if
7838 needed.
7839 (save_gdb_index_command): Pass basename of dwz file, if present.
7840 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7841 build-id of dwz file, if present.
7842 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7843 (dwarf2_get_dwz_file): Likewise.
7844 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7845 (dwarf2_get_dwz_file): Likewise.
7846
395f9c91
TT
78472019-06-16 Tom Tromey <tom@tromey.com>
7848
7849 * coffread.c (process_coff_symbol): Use xstrdup.
7850 * value.c (create_internalvar): Use xstrdup.
7851
cafb3438
TT
78522019-06-16 Tom Tromey <tom@tromey.com>
7853
7854 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7855 * breakpoint.c (stopin_command, stopat_command)
7856 (until_break_command, decode_location_default): Remove unnecessary
7857 cast.
7858 * utils.c (subset_compare): Remove unnecessary cast.
7859 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7860 cast.
7861 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7862 cast.
7863 * infcmd.c (path_command): Remove unnecessary cast.
7864 * coffread.c (decode_type): Remove unnecessary cast.
7865 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7866 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7867 * tui/tui-stack.c (tui_show_locator_content)
7868 (tui_show_frame_info): Remove unnecessary cast.
7869 * tui/tui-win.c (tui_scroll_forward_command)
7870 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7871 (parse_scrolling_args): Remove unnecessary cast.
7872 * tui/tui-data.c (init_win_info, tui_del_window)
7873 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7874 (free_content_elements): Remove unnecessary cast.
7875 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7876 unnecessary cast.
7877 * tui/tui-source.c (tui_set_source_content)
7878 (tui_vertical_source_scroll): Remove unnecessary cast.
7879 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7880 cast.
7881 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7882 * tui/tui-regs.c (tui_display_registers_from)
7883 (tui_display_register): Remove unnecessary cast.
7884 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7885 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7886 (make_visible): Remove unnecessary cast.
7887 * tui/tui-winsource.c (tui_erase_source_content)
7888 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7889 unnecessary cast.
7890 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7891 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7892 * stabsread.c (read_type, read_array_type, read_range_type):
7893 Remove unnecessary cast.
7894 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7895 (parse_symbol, parse_type, upgrade_type, parse_external)
7896 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7897 unnecessary cast.
7898 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7899
730ead81
TT
79002019-06-16 Tom Tromey <tom@tromey.com>
7901
7902 * tui/tui-data.c (tui_alloc_generic_win_info)
7903 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7904 checks.
7905
584a927c
AB
79062019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7907 Andrew Burgess <andrew.burgess@embecosm.com>
7908
7909 * f-typeprint.c (f_print_type): Don't return early for not
7910 associated or not allocated types.
7911 (f_type_print_varspec_suffix): Add print_rank parameter and print
7912 ranks of array types in case they dangling.
7913 (f_type_print_base): Add print_rank parameter.
7914
30056ea0
AB
79152019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7916
7917 * NEWS: Mention new MI commands.
7918 * break-catch-throw.c (enum exception_event_kind): Move to
7919 breakpoint.h.
7920 (print_mention_exception_catchpoint): Output text as a single
7921 message.
7922 (catch_exception_command_1): Rename to...
7923 (catch_exception_event): ...this, make non-static, update header
7924 command, and change some parameter types.
7925 (catch_catch_command): Update for changes to
7926 catch_exception_command_1.
7927 (catch_throw_command): Likewise.
7928 (catch_rethrow_command): Likewise.
7929 * breakpoint.c (enum exception_event_kind): Delete.
7930 * breakpoint.h (enum exception_event_kind): Moved here from
7931 break-catch-throw.c.
7932 (catch_exception_event): Declare.
7933 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7934 (mi_cmd_catch_throw): New function.
7935 (mi_cmd_catch_rethrow): New function.
7936 (mi_cmd_catch_catch): New function.
7937 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7938 'catch-catch' entries.
7939 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7940 (mi_cmd_catch_rethrow): Declare.
7941 (mi_cmd_catch_catch): Declare.
7942
ec8e2b6d
AB
79432019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7944
7945 * annotate.c (annotate_source_line): Change return type to void,
7946 update implementation to match.
7947 * annotate.h (annotate_source_line): Change return type to void,
7948 update header comment.
7949 * stack.c (print_frame_info): Don't change what frame information
7950 is printed based on whether annotations are on or not.
7951
0d3abd8c
AB
79522019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7953
7954 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7955 (annotate_source): Make static.
7956 (annotate_source_line): Moved from source.c and renamed from
7957 identify_source_line. Update the return type.
7958 * annotate.h (annotate_source): Delete declaration.
7959 (annotate_source_line): Declaration moved from source.h, and
7960 renamed from identify_source_line. Return type updated.
7961 * source.c (identify_source_line): Moved to annotate.c and renamed
7962 to annotate_source_line.
7963 (info_line_command): Remove check of annotation_level.
7964 * source.h (identify_source_line): Move declaration to annotate.h
7965 and rename to annotate_source_line.
7966 * stack.c: Add 'annotate.h' include.
7967 (print_frame_info): Remove check of annotation_level before
7968 calling annotate_source_line.
7969
00df30ae
AB
79702019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7971
7972 * source-cache.c (source_cache::get_plain_source_lines): Use
7973 open_source_file_with_line_charpos instead of just
7974 open_source_file, remove call to find_source_lines.
7975 (source_cache::get_source_lines): Likewise.
7976 * source.c (find_source_lines): Make static.
7977 (get_filename_and_charpos): Renamed into...
7978 (open_source_file_with_line_charpos): ..this along with changes to
7979 return a scoped_fd, and some other minor clean ups.
7980 (identify_source_line): Use open_source_file_with_line_charpos.
7981 (search_command_helper): Use open_source_file_with_line_charpos
7982 instead of just open_source_file, remove call to
7983 find_source_lines.
7984 * source.h (open_source_file_with_line_charpos): Declare new
7985 function.
7986 (find_source_lines): Delete declaration.
7987
afda45a2
AB
79882019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7989
7990 * source.c (get_filename_and_charpos): Remove fullname
7991 parameter.
7992 (identify_source_line): Update call to get_filename_and_charpos.
7993
0735b091
TT
79942019-06-14 Tom Tromey <tromey@adacore.com>
7995
7996 PR gdb/24502:
7997 * ui-style.h (skip_ansi_escape): Update comment.
7998 * ui-file.h (class no_terminal_escape_file): New class.
7999 * ui-file.c (no_terminal_escape_file::write)
8000 (no_terminal_escape_file::puts): New methods.
8001 * cli/cli-logging.c (handle_redirections): Use
8002 no_terminal_escape_file.
8003
52ce35e2
TT
80042019-06-14 Tom Tromey <tromey@adacore.com>
8005
8006 * NEWS: Move convenience variable news above Python news.
8007
73cc7272
TT
80082019-06-14 Tom Tromey <tom@tromey.com>
8009
8010 * gnulib: Move directory to top-level.
8011 * configure.ac: Don't configure gnulib.
8012 * configure: Rebuild.
8013 * common/common-defs.h: Use new path to gnulib.
8014 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8015 (GNULIB_H): Remove.
8016 (INCGNU): Look in new gnulib location.
8017 (HFILES_NO_SRCDIR): Remove gnulib files.
8018 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8019 (generated_files): Remove GNULIB_H.
8020 ($(LIBGNU), all-lib): Remove targets.
8021 (distclean): Don't mention GNULIB_BUILDDIR.
8022 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8023
f5686554
TT
80242019-06-14 Tom Tromey <tromey@adacore.com>
8025
8026 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8027 Warn if symbol file does not provide any symbols.
8028
a0c1ffed
TT
80292019-06-14 Tom Tromey <tromey@adacore.com>
8030
8031 * source.c (find_and_open_source): Respect basenames_may_differ.
8032
7c39e397
AB
80332019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8034
8035 * annotate.c (annotate_breakpoints_invalid): Make use of
8036 scoped_restore_terminal_state.
8037 (annotate_frames_invalid): Likewise.
8038
f411722c
TT
80392019-06-14 Tom Tromey <tromey@adacore.com>
8040
8041 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8042 allow assignment to an internalvar.
8043
4268ec18
TT
80442019-06-14 Tom Tromey <tromey@adacore.com>
8045
8046 * ada-lex.l: Allow "_" in attribute names.
8047
abdb711e
TT
80482019-06-14 Tom Tromey <tromey@adacore.com>
8049
8050 PR gdb/24653:
8051 * regcache.c (registers_changed): Don't call alloca.
8052 * top.c (execute_command): Don't call alloca.
8053
4c048731
PA
80542019-06-13 Pedro Alves <palves@redhat.com>
8055
8056 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8057 'expression'. When parsing an expression, error out if there's
8058 junk after "unlimited".
8059 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8060 (do_set_command): Adjust calls to is_unlimited_literal.
8061
66eb1ed3
PA
80622019-06-13 Pedro Alves <palves@redhat.com>
8063
8064 * compile/compile.c (make_compile_options_def_group): Add braces
8065 around array_view initializer.
8066 * thread.c (make_thread_apply_all_options_def_group)
8067 (make_thread_apply_all_options_def_group): Likewise.
8068
3345721a
PA
80692019-06-13 Pedro Alves <palves@redhat.com>
8070
8071 * NEWS (New commands): Mention "maint test-options
8072 require-delimiter", "maint test-options unknown-is-error", "maint
8073 test-options unknown-is-operand" and "maint show
8074 test-options-completion-result".
8075 (New command options, command completion): New section.
8076 (Completion improvements): New section.
8077 Mention that you can abbreviate "unlimited".
8078
6206060d
PA
80792019-06-13 Pedro Alves <palves@redhat.com>
8080
8081 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8082 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8083 * unittests/cli-utils-selftests.c (test_parse_flags)
8084 (test_parse_flags_qcs): Delete.
8085 (test_cli_utils): Don't call deleted functions.
8086
6665660a
PA
80872019-06-13 Pedro Alves <palves@redhat.com>
8088
8089 * thread.c: Include "cli/cli-option.h".
8090 (tp_array_compar_ascending): Global.
8091 (tp_array_compar): Delete function.
8092 (tp_array_compar_ascending, tp_array_compar_descending): New
8093 functions.
8094 (ascending_option_def, qcs_flag_option_def)
8095 (thr_qcs_flags_option_defs)
8096 (make_thread_apply_all_options_def_group)
8097 (make_thread_apply_options_def_group): New.
8098 (thread_apply_all_command): Use gdb::option::process_options.
8099 (thread_apply_command_completer)
8100 (thread_apply_all_command_completer): New.
8101 (thread_apply_command): Use gdb::option::process_options.
8102 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8103 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8104 to generate help text of "thread apply". Adjust "taas"'s help.
8105 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8106 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8107
f7e13587
PA
81082019-06-13 Pedro Alves <palves@redhat.com>
8109
8110 * thread.c (thread_apply_command): Check for invalid TID with
8111 isdigit instead of !isalpha.
8112
5d707134
PA
81132019-06-13 Pedro Alves <palves@redhat.com>
8114
8115 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8116 (validate_flags_qcs): New.
8117 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8118 (validate_flags_qcs): Declare.
8119 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8120 (make_frame_apply_options_def_group): New.
8121 (frame_apply_command_count): Process options with
8122 gdb::option::process_options.
8123 (frame_apply_completer): New.
8124 (frame_apply_level_completer, frame_apply_all_completer)
8125 (frame_apply_completer): New.
8126 (_initialize_stack): Update help of "frame apply", "frame apply
8127 level", "frame apply all" and "faas" to mention supported options
8128 and install command completers.
8129 * stack.h (frame_apply_all_completer): Declare.
8130 * thread.c: Include "stack.h".
8131 (tfaas_command): Add "--".
8132 (_initialize_thread): Update help "tfaas" to mention supported
8133 options and install command completer.
8134
272d4594
PA
81352019-06-13 Pedro Alves <palves@redhat.com>
8136
8137 * completer.c (complete_nested_command_line): New.
8138 (gdb_completion_word_break_characters_throw): Add assertion.
8139 * completer.h (complete_nested_command_line): Declare.
8140
90a1ef87
PA
81412019-06-13 Pedro Alves <palves@redhat.com>
8142
8143 * stack.c (parse_backtrace_qualifiers): New.
8144 (backtrace_command): Use it.
8145 (backtrace_command_completer): Complete on qualifiers.
8146
d4c16835
PA
81472019-06-13 Pedro Alves <palves@redhat.com>
8148
8149 * frame.c: Include "cli/cli-option.h.
8150 (user_set_backtrace_options): New.
8151 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8152 Delete.
8153 (get_prev_frame): Adjust.
8154 (boolean_option_def, uinteger_option_def)
8155 (set_backtrace_option_defs): New.
8156 (_initialize_frame): Adjust and use
8157 gdb::option::add_setshow_cmds_for_options to install "set
8158 backtrace past-main" and "set backtrace past-entry".
8159 * frame.h: Include "cli/cli-option.h".
8160 (struct frame_print_options): Forward declare.
8161 (print_frame_arguments_all, print_frame_arguments_scalars)
8162 (print_frame_arguments_none): Declare.
8163 (print_entry_values): Delete declaration.
8164 (struct frame_print_options, user_frame_print_options): New.
8165 (struct set_backtrace_options): New.
8166 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8167 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8168 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8169 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8170 (list_args_or_locals): Add frame_print_options parameter.
8171 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8172 * python/py-framefilter.c (enumerate_args): Pass down
8173 USER_FRAME_PRINT_OPTIONS.
8174 * stack.c: Include "cli/cli-option.h".
8175 (print_frame_arguments_all, print_frame_arguments_scalars)
8176 (print_frame_arguments_none): Declare.
8177 (print_raw_frame_arguments, print_entry_values): Delete.
8178 (user_frame_print_options): New.
8179 (boolean_option_def, enum_option_def, frame_print_option_defs):
8180 New.
8181 (struct backtrace_cmd_options): New.
8182 (bt_flag_option_def): New.
8183 (backtrace_command_option_defs): New.
8184 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8185 (print_frame_arg, read_frame_arg, print_frame_args)
8186 (print_frame_info, print_frame): Add frame_print_options parameter
8187 and use it.
8188 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8189 (backtrace_command_1): Add frame_print_options and
8190 backtrace_cmd_options parameters and use them.
8191 (make_backtrace_options_def_group): New.
8192 (backtrace_command): Process command options with
8193 gdb::option::process_options.
8194 (backtrace_command_completer): New.
8195 (_initialize_stack): Extend "backtrace"'s help to mention
8196 supported options. Install completer for "backtrace".
8197 Install some settings commands with add_setshow_cmds_for_options.
8198
2daf894e
PA
81992019-06-13 Pedro Alves <palves@redhat.com>
8200
8201 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8202 and that "set/show print raw frame-arguments" are now deprecated.
8203
8204 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8205 command.
8206 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8207 * stack.c (_initialize_stack): Install "set/show print
8208 raw-frame-arguments", and deprecate "set/show print raw
8209 frame-arguments".
8210 * valprint.c (_initialize_valprint): Deprecate "set/show print
8211 raw".
8212
e6ed716c
PA
82132019-06-13 Pedro Alves <palves@redhat.com>
8214
8215 * compile/compile.c (struct compile_options): New.
8216 (compile_flag_option_def, compile_command_option_defs)
8217 (make_compile_options_def_group): New.
8218 (compile_file_command): Handle options with
8219 gdb::option::process_options.
8220 (compile_file_command_completer): New function.
8221 (compile_code_command): Handle options with
8222 gdb::option::process_options.
8223 (compile_code_command_completer): New function.
8224 (_initialize_compiler): Install completers for "compile code" and
8225 "compile file". Mention available options in "compile code" and
8226 "compile code"'s help.
8227 * completer.c (advance_to_completion_word): New, factored out from
8228 ...
8229 (advance_to_expression_complete_word_point): ... this.
8230 (advance_to_filename_complete_word_point): New.
8231 * completer.h (advance_to_filename_complete_word_point): New
8232 declaration.
8233
7d8062de
PA
82342019-06-13 Pedro Alves <palves@redhat.com>
8235
8236 * compile/compile.c: Include "cli/cli-option.h".
8237 (compile_print_value): Scope data pointer is now a
8238 value_print_options pointer; adjust.
8239 (compile_print_command): Process options. Scope data pointer is
8240 now a value_print_options pointer; adjust.
8241 (_initialize_compile): Update "compile print"'s help to include
8242 supported options. Install a completer for "compile print".
8243 * cp-valprint.c (show_vtblprint, show_objectprint)
8244 (show_static_field_print): Delete.
8245 (_initialize_cp_valprint): Don't install "set print
8246 static-members", "set print vtbl", "set print object" here.
8247 * printcmd.c: Include "cli/cli-option.h" and
8248 "common/gdb_optional.h".
8249 (print_command_parse_format): Rework to fill in a
8250 value_print_options instead of a format_data.
8251 (print_value): Change parameter type from format_data pointer to
8252 value_print_options reference. Adjust.
8253 (print_command_1): Process options. Adjust to pass down a
8254 value_print_options.
8255 (print_command_completer): New.
8256 (_initialize_printcmd): Install print_command_completer as
8257 handle_brkchars completer for the "print" command. Update
8258 "print"'s help to include supported options.
8259 * valprint.c: Include "cli/cli-option.h".
8260 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8261 here from cp-valprint.c.
8262 (boolean_option_def, uinteger_option_def)
8263 (value_print_option_defs, make_value_print_options_def_group):
8264 New. Use gdb::option::add_setshow_cmds_for_options to install
8265 "set print elements", "set print null-stop", "set print repeats",
8266 "set print pretty", "set print union", "set print array", "set
8267 print address", "set print symbol", "set print array-indexes".
8268 * valprint.h: Include <string> and "cli/cli-option.h".
8269 (make_value_print_options_def_group): Declare.
8270 (print_value): Change parameter type from format_data pointer to
8271 value_print_options reference.
8272 (print_command_completer): Declare.
8273
9d0faba9
PA
82742019-06-13 Pedro Alves <palves@redhat.com>
8275
8276 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8277 (COMMON_SFILES): Add maint-test-settings.c.
8278 * cli/cli-decode.c (boolean_enums): New global, factored out from
8279 ...
8280 (add_setshow_boolean_cmd): ... here.
8281 * cli/cli-decode.h (boolean_enums): Declare.
8282 * cli/cli-option.c: New file.
8283 * cli/cli-option.h: New file.
8284 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8285 factored out from ...
8286 (parse_cli_boolean_value(const char *)): ... this.
8287 (is_unlimited_literal): Change parameter type to pointer to
8288 pointer. Adjust and advance ARG pointer.
8289 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8290 (parse_cli_var_enum): New, factored out from ...
8291 (do_set_command): ... this. Adjust.
8292 * cli/cli-setshow.h (parse_cli_boolean_value)
8293 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8294 (parse_cli_var_enum): Declare.
8295 * cli/cli-utils.c: Include "cli/cli-option.h".
8296 (get_ulongest): New.
8297 * cli/cli-utils.h (get_ulongest): Declare.
8298 (check_for_argument): New overloads.
8299 * maint-test-options.c: New file.
8300
2c722807
PA
83012019-06-13 Pedro Alves <palves@redhat.com>
8302
8303 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8304 parse a range if "-" is at the end of the string.
8305
dee7b4c8
PA
83062019-06-13 Pedro Alves <palves@redhat.com>
8307
8308 * cli/cli-setshow.c (parse_auto_binary_operation)
8309 (parse_cli_boolean_value): Don't allow "o".
8310
dca0f6c0
PA
83112019-06-13 Pedro Alves <palves@redhat.com>
8312
8313 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8314 * NEWS: Mention maint test-settings KIND.
8315 * maint-test-settings.c: New file.
8316
597bf39d
PA
83172019-06-13 Pedro Alves <palves@redhat.com>
8318
8319 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8320 completer.
8321 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8322 "set" completers.
8323
48c410fb
PA
83242019-06-13 Pedro Alves <palves@redhat.com>
8325
8326 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8327 after item.
8328
93bcb043
PA
83292019-06-13 Pedro Alves <palves@redhat.com>
8330
8331 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8332
cbba3ecd
PA
83332019-06-13 Pedro Alves <palves@redhat.com>
8334
8335 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8336 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8337 call.
8338 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8339 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8340 calls.
8341 (check_for_argument): Skip spaces after argument.
8342
b9a3f842
PA
83432019-06-13 Pedro Alves <palves@redhat.com>
8344
8345 * thread.c (thread_apply_command): Adjust TID parsing.
8346 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8347 detected before end of string.
8348 (tid_is_in_list): Error out if LIST is invalid.
8349
3844e605
PA
83502019-06-13 Pedro Alves <palves@redhat.com>
8351
8352 * completer.c (complete_line_internal_1): Rewind completion word
8353 point.
8354 (completion_tracker::advance_custom_word_point_by): Change
8355 parameter type to int.
8356 * completer.h (completion_tracker::advance_custom_word_point_by):
8357 Likewise.
8358
00b56dbe
PA
83592019-06-13 Pedro Alves <palves@redhat.com>
8360
8361 * completer.c (advance_to_completion_word): Handle delimiters.
8362
d106773e
PA
83632019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8364
8365 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8366
08f10e02
TT
83672019-06-11 Tom Tromey <tom@tromey.com>
8368
8369 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8370 (xmalloc_failed): Move to alloc.c.
8371 * alloc.c: New file.
8372 * Makefile.in (COMMON_SFILES): Add alloc.c.
8373
1c7fe951
TT
83742019-06-11 Tom Tromey <tom@tromey.com>
8375
8376 * nat/linux-waitpid.c: Don't include server.h.
8377 (linux_debug): Remove.
8378 (my_waitpid): Update.
8379
89549d7f
TT
83802019-06-11 Tom Tromey <tromey@adacore.com>
8381
8382 * infcall.c (_initialize_infcall): Remove trailing newline from
8383 help.
8384 * user-regs.c (_initialize_user_regs): Remove trailing newline
8385 from help.
8386 * typeprint.c (_initialize_typeprint): Remove trailing newline
8387 from help.
8388 * reverse.c (_initialize_reverse): Remove trailing newlines from
8389 help.
8390 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8391 from help.
8392 * language.c (add_set_language_command): Remove trailing newline
8393 from help.
8394 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8395 help.
8396 * disasm.c (_initialize_disasm): Remove trailing newline from
8397 help.
8398 * top.c (init_main): Remove trailing newline from help.
8399 * interps.c (_initialize_interpreter): Remove trailing newline
8400 from help.
8401 * btrace.c (_initialize_btrace): Remove trailing newlines from
8402 help.
8403 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8404 from help.
8405 * python/python.c (_initialize_python): Remove trailing newline
8406 from help.
8407 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8408 help.
8409 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8410 from help. Reformat some text.
8411 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8412 from help.
8413 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8414 newline from help.
8415
86108c13
TT
84162019-06-11 Tom Tromey <tromey@adacore.com>
8417
8418 * darwin-nat.c (darwin_decode_exception_message)
8419 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8420
a7067863
AB
84212019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8422
8423 * valops.c (value_slice): Check for not allocated or not
8424 associated values.
8425
9ab08412
TV
84262019-06-10 Tom de Vries <tdevries@suse.de>
8427
8428 PR gdb/24618
8429 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8430 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8431 invalid.
8432
f19e22e9
TV
84332019-06-10 Tom de Vries <tdevries@suse.de>
8434
8435 PR gdb/24611
8436 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8437 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8438
e99f9db0
TV
84392019-06-10 Tom de Vries <tdevries@suse.de>
8440
8441 PR symtab/24545
8442 * symtab.c (struct demangled_name_entry): Add language field.
8443 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8444 static minimal symbol". Set and use language field.
8445
9bf7038b
TT
84462019-06-10 Tom Tromey <tromey@adacore.com>
8447
8448 * ada-lang.c (_initialize_ada_language): Update help text.
8449
422186a9
TT
84502019-06-10 Tom Tromey <tromey@adacore.com>
8451
8452 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8453 with a newline.
8454 * guile/guile.c (handle_boot_error): Don't end warning with a
8455 newline.
8456 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8457 warning with a newline.
8458 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8459 newline.
8460 (s12z_frame_cache): Likewise.
8461 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8462 a newline.
8463 * solib-svr4.c (disable_probes_interface): Don't end warning with
8464 a newline.
8465 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8466 newline.
8467 * python/python.c (do_finish_initialization): Don't end warning
8468 with a newline.
8469
25ce02ee
TT
84702019-06-10 Tom Tromey <tom@tromey.com>
8471
8472 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8473 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8474 gdbpy_enter.
8475
caa429d8
TT
84762019-06-10 Tom Tromey <tromey@adacore.com>
8477
8478 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8479 data.
8480 (elf_new_init): Don't call stabsread_new_init.
8481 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8482 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8483 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8484
81873cc8
TV
84852019-06-10 Tom de Vries <tdevries@suse.de>
8486
8487 PR symtab/16264
8488 PR symtab/24517
8489 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8490
4fa0265e
РИ
84912019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8492
8493 * source.c (find_and_open_source): Also rewrite relative file
8494 names.
8495
1a3da2cd
AB
84962019-04-26 Amos Bird <amosbird@gmail.com>
8497
8498 * annotate.c (annotate_thread_exited): Add "thread-exited"
8499 annotation.
8500
3847a7bf
TT
85012019-06-06 Tom Tromey <tromey@adacore.com>
8502
8503 * maint.h (class scoped_command_stats): Use
8504 DISABLE_COPY_AND_ASSIGN.
8505 <print_time>: New method.
8506 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8507 print_time.
8508 (scoped_command_stats::print_time): New method.
8509
312617a3
AB
85102019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8511
8512 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8513 instructions of lengths 6 or 8 bytes.
8514
b02f78f9
PA
85152019-06-04 Pedro Alves <palves@redhat.com>
8516
8517 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8518
8519 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8520 * breakpoint.c (condition_completer): Likewise.
8521 * cli/cli-dump.c (scan_expression): Likewise.
8522 * common/filestuff.c (mkdir_recursive): Likewise.
8523 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8524 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8525 (gdb_abspath): Likewise.
8526 * compile/compile-cplus-types.c
8527 (compile_cplus_instance::decl_name): Likewise.
8528 * completer.c (complete_explicit_location):
8529 (signal_completer, reg_or_group_completer_1): Likewise.
8530 * cp-support.c (cp_remove_params_if_any): Likewise.
8531 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8532 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8533 * infcmd.c (strip_bg_char): Likewise.
8534 * linespec.c (copy_token_string): Likewise.
8535 * mi/mi-main.c (output_cores): Likewise.
8536 * psymtab.c (psymtab_search_name):
8537 * symfile.c (test_set_ext_lang_command): Likewise.
8538 * target.c (target_fileio_read_stralloc): Likewise.
8539 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8540 * value.c (complete_internalvar): Likewise.
8541
e1f2e1a2
CB
85422019-06-04 Christian Biesinger <cbiesinger@google.com>
8543
8544 Add objfile property to gdb.Type.
d3238f7d
PA
8545 * NEWS: Mention Python API addition.
8546 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 8547
e664d728
PW
85482019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8549
8550 * NEWS: Mention the new set|show style [title|highlight].
8551 Mention changes to "show style", "help" and "apropos".
8552
66d8c862
PW
85532019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8554
8555 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8556 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8557 instead of print_help_for_command.
8558 (print_doc_of_command): New function.
8559 (help_list): Add 'apropos -v word' suggestion.
8560 (print_help_for_command): Style the command name using title style.
8561 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8562 (_initialize_cli_cmds): Describe -v in apropos_command help.
8563
9303eb2f
PW
85642019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8565
8566 * cli/cli-style.h (cli_style_option): Add name in constructor,
8567 add m_name class member, add constructor with intensity,
8568 add name class function.
8569 (cli_style_option::add_setshow_commands): Remove name argument.
8570 (highlight_style, title_style): New styles.
8571 * cli/cli-style.c (do_show): New function that shows a style
8572 characteristic styling the style name with itself.
8573 (set_style_name): New function.
8574 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8575 Update all callers according to the changes in cli/cli-style.h.
8576 * utils.h (fputs_highlighted): New function.
8577 * utils.c (fputs_highlighted): Likewise.
8578
e2c52041
PW
85792019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8580
8581 * NEWS: Mention new pipe command and new convenience variables.
8582
947d3946
PW
85832019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8584
8585 * cli/cli-cmds.c (pipe_command): New function.
8586 (_initialize_cli_cmds): Call add_com for pipe_command.
8587 Define | as an alias for pipe.
8588 (exit_status_set_internal_vars): New function.
8589 (shell_escape): Call exit_status_set_internal_vars.
8590 cli/cli-decode.c (find_command_name_length): Recognize | as
8591 a single character command.
8592
b8fd0918
PW
85932019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8594
8595 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8596 top.c (execute_command_to_ui_file): New function, mostly a copy
8597 of execute_command_to_string.
8598 (execute_command_to_string): Implement by calling
8599 execute_command_to_ui_file.
8600
68bb5386
PW
86012019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8602
8603 * top.h (saved_command_line): Remove declaration.
8604 * top.c (previous_saved_command_line, previous_repeat_arguments):
8605 New variables.
8606 (saved_command_line): Make static, define together with other
8607 'repeat variables'.
8608 (dont_repeat): Clear repeat_arguments.
8609 (repeat_previous, get_saved_command_line, save_command_line):
8610 New functions.
8611 (gdb_init): Initialize saved_command_line
8612 and previous_saved_command_line.
8613 * main.c (captured_main_1): Remove saved_command_line initialization.
8614 * event-top.c (handle_line_of_input): Update to use
8615 the new 'repeat' related functions instead of direct access to
8616 saved_command_line.
8617 * command.h (repeat_previous, get_saved_command_line,
8618 save_command_line): New declarations.
8619 (dont_repeat): Add comment.
8620
bfcdb852
TT
86212019-05-30 Tom Tromey <tromey@adacore.com>
8622
8623 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8624 Fix comment.
8625 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8626
0ef209f2
JV
86272019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8628
8629 PR cli/24587
8630 * completer.c (complete): Initialize variable word.
8631
955b06fa
SDJ
86322019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8633
8634 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8635 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8636 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8637 'body' is NULL to the outter 'if', protecting the '!is_define'
8638 situation as well.
8639
fa9c3fa0
TT
86402019-05-29 Tom Tromey <tromey@adacore.com>
8641
8642 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8643 (dwarf_unknown): New function.
8644 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8645 (dwarf_type_encoding_name): Use dwarf_unknown.
8646
4330d61d
TT
86472019-05-29 Tom Tromey <tromey@adacore.com>
8648
8649 PR c++/20020:
8650 * cp-valprint.c (cp_print_value_fields): Call
8651 cp_print_static_field inside "try".
8652
33a6bc35
TT
86532019-05-29 Tom Tromey <tromey@adacore.com>
8654
8655 * inflow.c (struct terminal_info): Add default operator=.
8656 * configure: Rebuild.
8657 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8658 -Wdeprecated-copy-dtor, -Wredundant-move.
8659
000439d5
TT
86602019-05-29 Tom Tromey <tromey@adacore.com>
8661
8662 * NEWS: Add entry.
8663 * infcmd.c (print_return_value_1): Handle finish_print
8664 option.
8665 (show_print_finish): New function.
8666 (_initialize_infcmd): Add "set/show print finish" commands.
8667 * valprint.c (user_print_options): Initialize new member.
8668 * valprint.h (struct value_print_options) <finish_print>: New
8669 member.
8670
c0e70c62
TT
86712019-05-28 Tom Tromey <tromey@adacore.com>
8672
8673 * ada-lang.c (ada_remove_Xbn_suffix)
8674 (find_old_style_renaming_symbol)
8675 (parse_old_style_renaming): Remove.
8676 (ada_find_renaming_symbol): Don't call
8677 find_old_style_renaming_symbol.
8678 (ada_is_renaming_symbol): Rename from
8679 ada_find_renaming_symbol. Remove "block" parameter. Return
8680 bool. Now static.
8681 (ada_read_var_value): Update and simplify.
8682 * ada-exp.y (write_var_or_type): Remove old code.
8683
766f8836
AH
86842019-05-28 Alan Hayward <alan.hayward@arm.com>
8685
68255adc 8686 PR gdb/25010
766f8836
AH
8687 * event-top.c: Remove include comment.
8688 * inflow.c (class scoped_ignore_sigttou): Move from here...
8689 * inflow.h (class scoped_ignore_sigttou): ...to here.
8690 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8691 * top.c: Remove include comment.
8692
eb41253a
TT
86932019-05-27 Tom Tromey <tom@tromey.com>
8694
8695 * NEWS: Fix typo.
8696
4ca51187
TT
86972019-05-22 Tom Tromey <tromey@adacore.com>
8698
8699 * target.c (target_follow_exec): Constify parameter.
8700 * target-delegates.c: Rebuild.
8701 * remote.c (remote_target::follow_exec): Constify parameter.
8702 * infrun.c (follow_exec): Constify parameter.
8703 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8704 (target_follow_exec): Likewise.
8705
8fca4da0
AH
87062019-05-22 Alan Hayward <alan.hayward@arm.com>
8707
8708 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8709 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8710
b7060614
AH
87112019-05-22 Alan Hayward <alan.hayward@arm.com>
8712
8713 * NEWS: Add debugredirect and testsuite sections.
8714
0a5954bd
SC
87152019-05-22 Simon Cook <simon.cook@embecosm.com>
8716
8717 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8718 target descriptions using exclusively floating point register name
8719 aliases.
8720
dc42e902
AB
87212019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8722
8723 PR gdb/18644:
8724 * f-lang.c (build_fortran_types): Handle the case where
8725 gdbarch_floatformat_for_type returns a nullptr.
8726
fb7806c7
TV
87272019-05-21 Tom de Vries <tdevries@suse.de>
8728
8729 PR cli/24587
8730 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8731
34d11c68
AB
87322019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8733
8734 PR gdb/18644:
8735 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8736 16-byte floats.
8737 * i386-tdep.c (i386_floatformat_for_type): Use
8738 floatformats_ia64_quad for the 16-byte floating point component
8739 within a fortran 32-byte complex number.
8740
122cf0f2
AB
87412019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8742
8743 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8744 delete default constructor.
8745 (find_partial_die): Update to return const struct.
8746 (partial_die_parent_scope): Move variable declaration into scope
8747 of its use and change its type to auto.
8748 (guess_partial_die_structure_name): Likewise.
8749 (partial_die_info::fixup): Likewise.
8750
33d0e35a
TT
87512019-05-17 Tom Tromey <tromey@adacore.com>
8752
8753 * source.c (find_and_open_source): Remove cast.
8754
a45575b0
TT
87552019-05-17 Tom Tromey <tromey@adacore.com>
8756
8757 * annotate.c (annotate_source): Make "filename" const.
8758 * annotate.h (annotate_source): Use const.
8759
81f47ac2
AH
87602019-05-17 Alan Hayward <alan.hayward@arm.com>
8761
8762 * disasm.c (set_disassembler_options): Send errors to stderr.
8763
ca1285d1
AH
87642019-05-17 Alan Hayward <alan.hayward@arm.com>
8765
8766 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8767 (cli_interp_base::set_logging): Check debug_redirect.
8768 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8769 * cli/cli-logging.c (debug_redirect): Add static variable.
8770 (pop_output_files): Add default param.
8771 (handle_redirections): Print debug setting.
8772 (show_logging_command): Likewise.
8773 (_initialize_cli_logging): Add debugredirect command.
8774 * interps.c (current_interp_set_logging): Add debug_redirect
8775 parameter.
8776 * interps.h (set_logging): Add debug_redirect parameter.
8777 (current_interp_set_logging): Likewise.
8778 * mi/mi-common.h: Likewise.
8779 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8780
87812019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
8782 Tom Tromey <tromey@adacore.com>
8783
8784 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8785 directly.
8786 * cli/cli-interp.h (make_logging_output): Remove declaration.
8787 * cli/cli-logging.c (make_logging_output): Remove function.
8788 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8789 directly.
8790 * ui-file.c (tee_file::tee_file): Remove bools.
8791 (tee_file::~tee_file): Remove deletes.
8792 * ui-file.h (tee_file): Remove bools.
8793
26648588
JV
87942019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8795
8796 * mi/mi-cmds.h (mi_cmd_complete): New function.
8797 * mi/mi-main.c (mi_cmd_complete): Likewise.
8798 * mi/mi-cmds.c: Define new MI command -complete.
8799 * NEWS: Mention new -complete command.
8800
6e035501
JV
88012019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8802
8803 * completer.h (complete): New function.
8804 * completer.c (complete): Likewise.
8805 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8806 function defined in completer.h.
8807
7d0e2ece
JV
88082019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8809
e79be6e5 8810 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 8811
fb816e8b
TV
88122019-05-17 Tom de Vries <tdevries@suse.de>
8813
8814 PR gdb/24094
8815 * dwarf2read.c (struct cu_partial_die_info): New struct.
8816 (find_partial_die): Return cu_partial_die_info.
8817 (partial_die_parent_scope, guess_partial_die_structure_name)
8818 (partial_die_info::fixup): Handle new return type of find_partial_die.
8819
677052f2
SDJ
88202019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8821
a1726c38 8822 PR breakpoints/24541
677052f2
SDJ
8823 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8824 "std::string", simplifying the algorithm.
8825
f3da9116
SDJ
88262019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8827
8828 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8829 (stap_static_probe_ops::get_probes): Likewise.
8830
f1bb75ab
SDJ
88312019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8832
8833 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8834 '-')" and "else if".
8835 (stap_parse_single_operand): Join checks for
8836 "gdbarch_stap_parse_special_token_p" and
8837 "gdbarch_stap_parse_special_token" in the same "if" statement.
8838 Invert check when verifying for operation on register
8839 displacement.
8840
3ca58cde
SDJ
88412019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8842
8843 * stap-probe.c (stap_get_opcode): Update comment.
8844 (stap_get_expected_argument_type): Likewise.
8845 (handle_stap_probe): Likewise.
8846
af2d9bee
SDJ
88472019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8848
8849 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8850 return type to 'bool'. Adjust comment. Use 'bool' when
8851 appropriate.
8852 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8853 * stap-probe.c (stap_parse_argument_1): Likewise.
8854 (stap_is_operator): Likewise.
8855 (stap_is_generic_prefix): Likewise.
8856 (stap_is_register_prefix): Likewise.
8857 (stap_is_register_indirection_prefix): Likewise.
8858 (stap_is_integer_prefix): Likewise.
8859 (stap_generic_check_suffix): Likewise.
8860 (stap_check_integer_suffix): Likewise.
8861 (stap_check_register_suffix): Likewise.
8862 (stap_check_register_indirection_suffix): Likewise.
8863 (stap_parse_register_operand): Likewise.
8864 (stap_parse_single_operand): Likewise.
8865 (stap_parse_argument_1): Likewise.
8866 (stap_probe::get_argument_count): Likewise.
8867 (stap_is_operator): Likewise.
8868
61c9c421
TT
88692019-05-16 Tom Tromey <tromey@adacore.com>
8870
8871 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8872 keyword to foreach.
8873
9ddc1af1
SM
88742019-05-15 Simon Marchi <simon.marchi@efficios.com>
8875
8876 * linux-thread-db.c (try_thread_db_load_1): Change return type
8877 to bool.
8878 (try_thread_db_load): Likewise.
8879 (try_thread_db_load_from_pdir_1): Likewise.
8880 (try_thread_db_load_from_pdir): Likewise.
8881 (try_thread_db_load_from_sdir): Likewise.
8882 (try_thread_db_load_from_dir): Likewise.
8883 (thread_db_load_search): Likewise.
8884 (has_libpthread): Likewise.
8885 (thread_db_load): Likewise.
8886
7bede828
SDJ
88872019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8888
8889 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8890 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8891 NULL, and complain/return if that's the case.
8892
c5358db4
JD
88932019-05-15 John Darrington <john@darrington.wattle.id.au>
8894
8895 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8896 (advance, posn, abstract_read_memory): New functions.
8897 [struct mem_read_abstraction]: New struct.
8898 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8899
c408a94f
TT
89002019-05-14 Tom Tromey <tromey@adacore.com>
8901
8902 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8903 value is not lval_memory.
8904
e7bd7fba
TT
89052019-05-14 Tom Tromey <tromey@adacore.com>
8906
8907 * solib.c (info_sharedlibrary_command): Style the file name.
8908
a6d0f249
AH
89092019-05-14 Alan Hayward <alan.hayward@arm.com>
8910
8911 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8912 (aarch64_vnv_type): Likewise.
8913 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8914 * common/tdesc.c: Likewise.
8915 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8916 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8917 * features/aarch64-fpu.xml: Add ieee half view.
8918 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8919 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8920 * gdbtypes.h (struct builtin_type): Likewise.
8921 (struct objfile_type): Likewise.
8922
66b8bb74
SM
89232019-05-12 Paul Naert <paul.naert@polymtl.ca>
8924
8925 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8926 typo.
8927 * location.h (string_to_event_location): Likewise.
8928
21c219fd
JB
89292019-05-11 Joel Brobecker <brobecker@adacore.com>
8930
8931 GDB 8.3 released.
8932
13674803
SM
89332019-05-10 Simon Marchi <simon.marchi@efficios.com>
8934
8935 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8936 New variable declaration.
8937 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8938 New variable.
8939 (print_one_breakpoint): Use ui_out::test_flags and new global
8940 variable to compute use_fixed_output.
8941 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8942 Remove.
8943 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8944 (mi_multi_location_breakpoint_output_fixed): Remove.
8945 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8946 new variable.
8947 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8948 fix_multi_location_breakpoint_output flag if version >= 3.
8949 * ui-out.h (enum ui_out_flag)
8950 <fix_multi_location_breakpoint_output>: New enumerator.
8951
a9eac7f9
SM
89522019-05-10 Simon Marchi <simon.marchi@efficios.com>
8953
8954 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8955
71bed2db
TT
89562019-05-10 Tom Tromey <tromey@adacore.com>
8957
8958 * ada-lang.c (catch_ada_completer): New function.
8959 (_initialize_ada_language): Use it.
8960
24c54127
TT
89612019-05-10 Tom Tromey <tromey@adacore.com>
8962
8963 * thread.c (print_thread_info): Make "requested_threads" const.
8964 * gdbthread.h (print_thread_info): Make "requested_threads"
8965 const.
8966 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8967 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8968
7a102139
TT
89692019-05-08 Tom Tromey <tom@tromey.com>
8970
8971 * gdbtypes.c (objfile_type_data): Change type.
8972 (objfile_type, _initialize_gdbtypes): Update.
8973
924d79e2
TT
89742019-05-08 Tom Tromey <tom@tromey.com>
8975
8976 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8977 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8978 (_initialize_dwarf2_frame): Update.
8979
4c58e337
TT
89802019-05-08 Tom Tromey <tom@tromey.com>
8981
8982 * objc-lang.c (objc_objfile_data): Change type.
8983 (find_methods): Update.
8984 (_initialize_objc_lang): Remove.
8985
d772d2ab
TT
89862019-05-08 Tom Tromey <tom@tromey.com>
8987
8988 * stabsread.c (rs6000_builtin_type_data): Change type.
8989 (rs6000_builtin_type, _initialize_stabsread): Update.
8990
d11d83f4
TT
89912019-05-08 Tom Tromey <tom@tromey.com>
8992
8993 * mips-tdep.c (mips_pdr_data): Remove.
8994 (_initialize_mips_tdep): Update.
8995
9a73f0ad
TT
89962019-05-08 Tom Tromey <tom@tromey.com>
8997
8998 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
8999 (hppa_init_objfile_priv_data, read_unwind_info)
9000 (find_unwind_entry, _initialize_hppa_tdep): Update.
9001
8127a2fa
TT
90022019-05-08 Tom Tromey <tom@tromey.com>
9003
9004 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9005 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9006 on obstack.
9007 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9008
91d3055d
TT
90092019-05-08 Tom Tromey <tom@tromey.com>
9010
9011 * mdebugread.c (basic_type_data): Change type.
9012 (basic_type, _initialize_mdebugread): Update.
9013
31930bd3
TT
90142019-05-08 Tom Tromey <tom@tromey.com>
9015
9016 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9017
bdb3ed9e
TT
90182019-05-08 Tom Tromey <tom@tromey.com>
9019
9020 * nto-tdep.c (nto_inferior_data_reg): Change type.
9021 (nto_inferior_data): Update.
9022 (nto_inferior_data_cleanup, nto_new_inferior_data)
9023 (_initialize_nto_tdep): Remove.
9024 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9025
f37b313d
TT
90262019-05-08 Tom Tromey <tom@tromey.com>
9027
9028 * ada-lang.c (struct ada_inferior_data): Add initializers.
9029 (ada_inferior_data): Change type.
9030 (ada_inferior_data_cleanup): Remove.
9031 (get_ada_inferior_data, ada_inferior_exit)
9032 (struct ada_pspace_data): Add initializers, destructor.
9033 (ada_pspace_data_handle): Change type.
9034 (get_ada_pspace_data): Update.
9035 (ada_pspace_data_cleanup): Remove.
9036
24699405
TT
90372019-05-08 Tom Tromey <tom@tromey.com>
9038
9039 * coffread.c (struct coff_symfile_info): Add initializers.
9040 (coff_objfile_data_key): Move lower. Change type.
9041 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9042 Update.
9043 (coff_free_info): Remove.
9044
d4e05d2f
TT
90452019-05-08 Tom Tromey <tom@tromey.com>
9046
9047 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9048 (fbsd_pspace_data_handle): Move lower. Change type.
9049 (get_fbsd_pspace_data): Update.
9050 (fbsd_pspace_data_cleanup): Remove.
9051 (_initialize_fbsd_tdep): Update.
9052
14ef6690
TT
90532019-05-08 Tom Tromey <tom@tromey.com>
9054
9055 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9056 (get_ada_tasks_pspace_data): Update.
9057 (ada_tasks_pspace_data_cleanup): Remove.
9058 (_initialize_tasks): Update.
9059 (ada_tasks_inferior_data_handle): Change type.
9060 (get_ada_tasks_inferior_data): Update.
9061 (ada_tasks_inferior_data_cleanup): Remove.
9062 (struct ada_tasks_pspace_data): Add initializers.
9063
814cf43a
TT
90642019-05-08 Tom Tromey <tom@tromey.com>
9065
9066 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9067 * symfile-debug.c (debug_sym_get_probes): Change type.
9068 * stap-probe.c (handle_stap_probe):
9069 (stap_static_probe_ops::get_probes): Change type.
9070 * probe.h (class static_probe_ops) <get_probes>: Change type.
9071 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9072 (parse_probes_in_pspace): Update.
9073 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9074 Update.
9075 (any_static_probe_ops::get_probes): Change type.
9076 * elfread.c (elfread_data): New typedef.
9077 (probe_key): Change type.
9078 (elf_get_probes): Likewise. Update.
9079 (probe_key_free): Remove.
9080 (_initialize_elfread): Update.
9081 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9082 Change type.
9083 (dtrace_process_dof_probe, dtrace_process_dof)
9084 (dtrace_static_probe_ops::get_probe): Change type.
9085
02dc647e
TT
90862019-05-08 Tom Tromey <tom@tromey.com>
9087
9088 * xcoffread.c (struct xcoff_symfile_info): Rename from
9089 coff_symfile_info. Add initializers.
9090 (xcoff_objfile_data_key): Move lower. Change type.
9091 (XCOFF_DATA): Rewrite.
9092 (xcoff_free_info): Remove.
9093 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9094 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9095 (xcoff_initial_scan): Update.
9096
09232438
TT
90972019-05-08 Tom Tromey <tom@tromey.com>
9098
9099 * solib-svr4.c (struct svr4_info): Add initializers and
9100 destructor.
9101 <probes_table>: Now an htab_up.
9102 (solib_svr4_pspace_data): Change type.
9103 (free_probes_table): Simplify.
9104 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9105 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9106 (probes_table_remove_objfile_probes, register_solib_event_probe)
9107 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9108 (_initialize_svr4_solib): Update.
9109
7b4a314f
TT
91102019-05-08 Tom Tromey <tom@tromey.com>
9111
9112 * remote.c (remote_pspace_data): Change type.
9113 (remote_pspace_data_cleanup): Remove.
9114 (get_remote_exec_file, set_pspace_remote_exec_file)
9115 (_initialize_remote): Update.
9116
51d3063a
TT
91172019-05-08 Tom Tromey <tom@tromey.com>
9118
9119 * breakpoint.c (breakpoint_objfile_key): Change type.
9120 (get_breakpoint_objfile_data): Update.
9121 (free_breakpoint_objfile_data): Remove.
9122 (_initialize_breakpoint): Update.
9123
89fb8848
TT
91242019-05-08 Tom Tromey <tom@tromey.com>
9125
9126 * linux-tdep.c (struct linux_info): Add initializers.
9127 (linux_inferior_data): Move. Change type.
9128 (invalidate_linux_cache_inf): Update.
9129 (linux_inferior_data_cleanup): Remove.
9130 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9131
e9b89e2d
TT
91322019-05-08 Tom Tromey <tom@tromey.com>
9133
9134 * auxv.c (auxv_inferior_data): Move. Change type.
9135 (auxv_inferior_data_cleanup): Remove.
9136 (invalidate_auxv_cache_inf): Rewrite.
9137 (get_auxv_inferior_data, _initialize_auxv): Update.
9138
8c42777c
TT
91392019-05-08 Tom Tromey <tom@tromey.com>
9140
9141 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9142 (symfile_debug_objfile_data_key): Change type.
9143 (symfile_debug_installed, debug_qf_has_symbols)
9144 (debug_qf_find_last_source_symtab)
9145 (debug_qf_forget_cached_source_info)
9146 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9147 (debug_qf_print_stats, debug_qf_dump)
9148 (debug_qf_expand_symtabs_for_function)
9149 (debug_qf_expand_all_symtabs)
9150 (debug_qf_expand_symtabs_with_fullname)
9151 (debug_qf_map_matching_symbols)
9152 (debug_qf_expand_symtabs_matching)
9153 (debug_qf_find_pc_sect_compunit_symtab)
9154 (debug_qf_map_symbol_filenames)
9155 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9156 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9157 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9158 (debug_sym_read_linetable, debug_sym_relocate): Update.
9159 (symfile_debug_free_objfile): Remove.
9160 (install_symfile_debug_logging, _initialize_symfile_debug):
9161 Update.
9162
5bfd760d
TT
91632019-05-08 Tom Tromey <tom@tromey.com>
9164
9165 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9166 allocate_on_obstack.
9167 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9168 (get_dwarf2_per_objfile): Update.
9169 (set_dwarf2_per_objfile): Remove.
9170 (dwarf2_has_info, dwarf2_get_section_info): Update.
9171 (dwarf2_free_objfile): Remove.
9172 (_initialize_dwarf2_read): Update.
9173
e85e19b4
TT
91742019-05-08 Tom Tromey <tom@tromey.com>
9175
9176 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9177 initializers.
9178 <unsupported_script_warning_printed,
9179 script_not_found_warning_printed>: Now bool.
9180 (auto_load_pspace_data): Change type.
9181 (~auto_load_pspace_info): Rename from
9182 auto_load_pspace_data_cleanup.
9183 (get_auto_load_pspace_data, init_loaded_scripts_info)
9184 (clear_section_scripts, maybe_print_unsupported_script_warning)
9185 (maybe_print_script_not_found_warning, _initialize_auto_load):
9186 Update.
9187
f6aa7436
TT
91882019-05-08 Tom Tromey <tom@tromey.com>
9189
9190 * objfiles.c (objfile_pspace_info): Add destructor and
9191 initializers.
9192 (objfiles_pspace_data): Change type.
9193 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9194 (get_objfile_pspace_data): Update.
9195 (objfiles_bfd_data): Change type.
9196 (get_objfile_bfd_data): Update.
9197 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9198
6ae614f6
TT
91992019-05-08 Tom Tromey <tom@tromey.com>
9200
9201 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9202 Change type.
9203 (get_catch_syscall_inferior_data): Update.
9204 (catch_syscall_inferior_data_cleanup): Remove.
9205 (_initialize_break_catch_syscall): Update.
9206
6509b8eb
TT
92072019-05-08 Tom Tromey <tom@tromey.com>
9208
9209 * inflow.c (struct terminal_info): Add destructor and
9210 initializers.
9211 (inflow_inferior_data): Change type.
9212 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9213 (get_inflow_inferior_data, inflow_inferior_exit)
9214 (swap_terminal_info, _initialize_inflow): Update.
9215
35632941
TT
92162019-05-08 Tom Tromey <tom@tromey.com>
9217
9218 * target-dcache.c (target_dcache_cleanup): Remove.
9219 (target_dcache_aspace_key): Change type.
9220 (target_dcache_init_p, target_dcache_invalidate)
9221 (target_dcache_get, target_dcache_get_or_init)
9222 (_initialize_target_dcache): Update.
9223 * dcache.h (struct dcache_deleter): New.
9224
3017b94d
TT
92252019-05-08 Tom Tromey <tom@tromey.com>
9226
9227 * symtab.c (struct symbol_cache): Add destructor and
9228 initializers.
9229 (symbol_cache_key): Move. Change type.
9230 (make_symbol_cache, free_symbol_cache): Remove.
9231 (get_symbol_cache): Update.
9232 (symbol_cache_cleanup): Remove.
9233 (ALL_PSPACES, symbol_cache_flush)
9234 (maintenance_print_symbol_cache)
9235 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9236 Update.
9237
a32ad8c5
TT
92382019-05-08 Tom Tromey <tom@tromey.com>
9239
9240 * symtab.c (struct main_info): Add destructor and initializers.
9241 (main_progspace_key): Move. Change type.
9242 (get_main_info): Update.
9243 (main_info_cleanup): Remove.
9244 (_initialize_symtab): Update.
9245
5f6e90a0
TT
92462019-05-08 Tom Tromey <tom@tromey.com>
9247
9248 * registry.h (DECLARE_REGISTRY): Define the _key class.
9249
1bd0c6e4
AB
92502019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9251
9252 * NEWS: Merge two 'New commands' sections.
9253
2228ef77
XR
92542019-05-08 Joel Brobecker <brobecker@adacore.com>
9255
9256 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9257 parameter and use Ada language definition instead.
9258 (ada_val_print_ptr): Remove unused language parameter.
9259 (ada_val_print_num): Remove language parameter and use Ada language
9260 definition instead.
9261 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9262 parameter.
9263 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9264 parameter and use Ada language definition instead.
9265 (ada_val_print_1): Update all ada_val_print_xxx calls.
9266 Remove language parameter.
9267 (ada_val_print): Update ada_val_print_1 call.
9268
60fcc1c3
TT
92692019-05-08 Tom Tromey <tromey@adacore.com>
9270
9271 * remote.c (remote_hw_watchpoint_limit)
9272 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9273 Now static.
9274
ed2b7c17
TT
92752019-05-08 Tom Tromey <tromey@adacore.com>
9276
9277 * maint.c (_initialize_maint_cmds): Move initialization code to
9278 remote.c.
9279 (watchdog, show_watchdog): Move to remote.c.
9280 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9281 "watchdog" static.
9282 (_initialize_remote): Move initialization code from maint.c.
9283 * defs.h (watchdog): Don't declare.
9284
b0be6c91
TT
92852019-05-08 Tom Tromey <tromey@adacore.com>
9286
9287 * tui/tui-interp.c: Include main.h.
9288 * interps.c: Include main.h.
9289 * main.h (interpreter_p): Declare.
9290 * defs.h (interpreter_p): Don't declare.
9291
587ee17b
TT
92922019-05-08 Tom Tromey <tromey@adacore.com>
9293
9294 * dwarf2loc.c: Include dwarf2read.h.
9295 * defs.h (read_unsigned_leb128): Don't declare.
9296 * dwarf2read.h (read_unsigned_leb128): Declare.
9297
ca1df239
TT
92982019-05-08 Tom Tromey <tromey@adacore.com>
9299
9300 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9301 method.
9302
99f20f08
TT
93032019-05-08 Tom Tromey <tromey@adacore.com>
9304
9305 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9306 when no wrap column is set.
9307
80e55b13
TT
93082019-05-08 Tom Tromey <tromey@adacore.com>
9309
9310 * c-lang.c (c_get_string): Handle non-C-style arrays.
9311
9d3421af
TT
93122019-05-08 Tom Tromey <tromey@adacore.com>
9313
9314 * typeprint.c (print_offset_data::update): Print the bit offset,
9315 not the number of bits remaining.
9316
844333e2
TT
93172019-05-08 Tom Tromey <tromey@adacore.com>
9318
9319 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9320 padding at end of comment.
9321
988915ee
TT
93222019-05-08 Tom Tromey <tromey@adacore.com>
9323
9324 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9325 Compare main types.
9326
26bfd823
TT
93272019-05-06 Tom Tromey <tom@tromey.com>
9328
9329 * common/scoped_mmap.c: Include common-defs.h.
9330 * common/scoped_mmap.h: Don't include config.h.
9331
89055eaa
TT
93322019-05-04 Tom Tromey <tom@tromey.com>
9333
9334 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9335 (struct aarch64_call_info): Add initializers.
9336 <si>: Now a std::vector.
9337 (pass_on_stack, aarch64_push_dummy_call): Update.
9338
5da01df5
TT
93392019-05-04 Simon Marchi <simon.marchi@efficios.com>
9340 Tom Tromey <tom@tromey.com>
9341
9342 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9343 (ppc_threads): Now a std::vector. Now static.
9344 (hwdebug_find_thread_points_by_tid)
9345 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9346 Update.
9347
fbdf05a1
TT
93482019-05-04 Tom Tromey <tom@tromey.com>
9349
9350 * arc-tdep.c (arc_tdesc_init): Return bool.
9351
06d16ec9
TT
93522019-05-04 Tom Tromey <tom@tromey.com>
9353
9354 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9355 Use gdb_assert_not_reached.
9356
9c056022
TT
93572019-05-04 Tom Tromey <tom@tromey.com>
9358
9359 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9360 "false".
9361
fa9c2a59
TT
93622019-05-04 Tom Tromey <tom@tromey.com>
9363
9364 * arc-tdep.c (arc_tdesc_init): Use bool.
9365
e2eb806a
TT
93662019-05-04 Tom Tromey <tom@tromey.com>
9367
9368 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9369
6fe87677
TT
93702019-05-04 Tom Tromey <tom@tromey.com>
9371
9372 * cli/cli-cmds.c (valid_command_p): Return bool.
9373
7f008c9e
TT
93742019-05-04 Tom Tromey <tom@tromey.com>
9375
9376 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9377 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9378
b6484282
RT
93792019-05-04 Raul Tambre <raul@tambre.ee>
9380
9381 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9382 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9383 operator for comparison.
9384
af97b416
TT
93852019-05-04 Tom Tromey <tom@tromey.com>
9386
9387 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9388 (lookup_partial_symbol, print_partial_symbols)
9389 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9390 (psymbol_compare): Update.
9391 (add_psymbol_to_bcache): Clear the entire psymbol.
9392 (maintenance_check_psymtabs): Update.
9393 * psympriv.h (struct partial_symbol): Don't derive from
9394 general_symbol_info.
9395 <obj_section, unrelocated_address, address,
9396 set_unrelocated_address>: Update.
9397 <ginfo>: New member.
9398 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9399 (debug_names::write_psymbols): Update.
9400
9d6d4be8
TV
94012019-05-04 Tom de Vries <tdevries@suse.de>
9402
9403 * contrib/cc-with-tweaks.sh: Support -n arg.
9404
66452beb
PW
94052019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9406
9407 * corelow.c (core_target::detach): Ensure frame cache and
9408 register caches are cleared.
9409 inferior.c (exit_inferior_1): Likewise.
9410
bde09ab7
TT
94112019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9412 Tom Tromey <tom@tromey.com>
9413
9414 * dictionary.c (collate_pending_symbols_by_language): Remove
9415 "struct" from foreach.
9416 * symtab.c (lookup_global_symbol_from_objfile)
9417 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9418 foreach.
9419 * ser-tcp.c (net_open): Remove "struct" from foreach.
9420 * objfiles.c (objfile_relocate, objfile_rebase)
9421 (objfile_has_symbols): Remove "struct" from foreach.
9422 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9423 from foreach.
9424 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9425 foreach.
9426 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9427 "struct" from foreach.
9428 * ada-lang.c (create_excep_cond_exprs)
9429 (ada_exception_catchpoint_cond_string): Remove "struct" from
9430 foreach.
9431
222a8d25
TT
94322019-05-03 Tom Tromey <tromey@adacore.com>
9433
9434 * ada-exp.y (convert_char_literal): Check suffix of each
9435 enumerator.
9436
fcd60b84
DP
94372019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9438
9439 PR ada/21406:
9440 * ada-exp.y (yywrap): Don't define.
9441 * ada-lex.l (%option): Add noyywrap
9442 (yywrap): Remove.
9443
5f2459c2
EZ
94442019-05-03 Eli Zaretskii <eliz@gnu.org>
9445
353ea2d1
EZ
9446 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9447 _WIN32_WINNT to the XP level, unless already defined to a higher
9448 level.
9449
9450 * unittests/parse-connection-spec-selftests.c:
9451 * ser-tcp.c:
9452 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9453 override.
9454
5f2459c2
EZ
9455 * symfile.c (find_separate_debug_file): Remove colon from the
9456 drive spec of DOS/Windows file names of the target, so that the
9457 file name produced from DEBUGDIR and the target's directory will
9458 be valid on DOS/Windows systems.
9459
80062eb9
AB
94602019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9461
9462 * rust-lang.c (val_print_struct): Handle printing structures
9463 containing strings.
9464
b8c05e85
TT
94652019-05-02 Tom Tromey <tromey@adacore.com>
9466
9467 * valarith.c (_initialize_valarith): Remove.
9468
4504bbde
TT
94692019-05-01 Tom Tromey <tromey@adacore.com>
9470
9471 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9472 bitfields.
9473
d48e62f4
TT
94742019-05-01 Tom Tromey <tromey@adacore.com>
9475
9476 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9477 for big-endian copies.
9478
15f18d14
AT
94792019-04-30 Ali Tamur <tamur@google.com>
9480 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9481 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9482 (read_3_bytes): New function.
9483
ab4ee614
JB
94842019-04-30 Joel Brobecker <brobecker@adacore.com>
9485
9486 * windows-nat.c (main_thread_id): Delete.
9487 (handle_output_debug_string): Replace main_thread_id by
9488 current_event.dwThreadId.
9489 (fake_create_process): Likewise.
9490 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9491 Do not set main_thread_id.
9492 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9493 current_event.dwThreadId.
9494 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9495
8ed5b76e
JB
94962019-04-30 Joel Brobecker <brobecker@adacore.com>
9497
9498 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9499 Use current_event.dwThreadId instead of main_thread_id.
9500
2ff0a947
TT
95012019-04-30 Tom Tromey <tromey@adacore.com>
9502
9503 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9504 (create_excep_cond_exprs): Iterate over program spaces.
9505 (ada_exception_catchpoint_cond_string): Examine all minimal
9506 symbols for exception types.
9507
a776957c
TT
95082019-04-30 Tom Tromey <tromey@adacore.com>
9509
9510 PR c++/24470:
9511 * dwarf2read.c (process_structure_scope): Handle case where type
9512 has template parameters but no symbol was created.
9513
bc68014d
AB
95142019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9515 Chris January <chris.january@arm.com>
9516
9517 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9518 qualifier.
9519 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9520
f1fdc960
AB
95212019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9522
9523 * f-typeprint.c (f_print_type): Update rules for printing
9524 whitespace.
9525 (f_type_print_varspec_suffix): Likewise.
9526
bf7a4de1
AB
95272019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9528 Chris January <chris.january@arm.com>
9529
9530 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9531 function arguments.
9532
bbe75b9d
AB
95332019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9534
9535 * f-lang.c (build_fortran_types): Change name of void type to
9536 lower case.
9537 * f-typeprint.c (f_type_print_base): Print the name of the void
9538 type, rather than a fixed string.
9539 * f-valprint.c (f_decorations): Use lower case void string.
9540
1db455a7
AB
95412019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9542 Chris January <chris.january@arm.com>
9543
9544 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9545 types for Fortran.
9546
b6d03bb2
AB
95472019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9548 Chris January <chris.january@arm.com>
9549 David Lecomber <david.lecomber@arm.com>
9550
9551 * f-exp.y (BINOP_INTRINSIC): New token.
9552 (exp): New parser rule handling BINOP_INTRINSIC.
9553 (f77_keywords): Add new builtin procedures.
9554 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9555 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9556 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9557 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9558 (print_unop_subexp_f): New function.
9559 (print_binop_subexp_f): New function.
9560 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9561 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9562 (dump_subexp_body_f): Likewise.
9563 (operator_check_f): Likewise.
9564 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9565 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9566
83228e93
AB
95672019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9568
9569 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9570 UNOP_KIND.
9571 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9572 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9573 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9574 (operator_length_f): New fuction.
9575 (print_subexp_f): New function.
9576 (op_name_f): New function.
9577 (dump_subexp_body_f): New function.
9578 (operator_check_f): New function.
9579 (exp_descriptor_f): Replace standard expression handling functions
9580 with new functions.
9581 * gdb/fortran-operator.def: New file.
9582 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9583 * gdb/std-operator.def: Remove UNOP_KIND.
9584
6fdcd7cc
AB
95852019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9586
9587 * std-operator.def: Remove unbalanced, stray double quote
9588 character.
9589
2e62ab40
AB
95902019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9591 Chris January <chris.january@arm.com>
9592 Daniel Everett <daniel.everett@arm.com>
9593 Nick Forrington <nick.forrington@arm.com>
9594 Richard Bunt <richard.bunt@arm.com>
9595
9596 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9597 of depth when printing anonymous structs or unions.
9598 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9599 Don't print either the top-level value, or the children if the
9600 max-depth is exceeded.
9601 (ppscm_print_children): When printing the key of a map, allow one
9602 extra level of depth.
9603 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9604 print either the top-level value, or the children if the max-depth
9605 is exceeded.
9606 (print_children): When printing the key of a map, allow one extra
9607 level of depth.
9608 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9609 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9610 (user_print_options): Initialise max_depth field.
9611 (val_print_scalar_or_string_type_p): New function.
9612 (val_print): Check to see if the max depth has been reached.
9613 (val_print_check_max_depth): Define new function.
9614 (show_print_max_depth): New function.
9615 (_initialize_valprint): Add 'print max-depth' option.
9616 * valprint.h (struct value_print_options) <max_depth>: New field.
9617 (val_print_check_max_depth): Declare new function.
9618 * NEWS: Document new feature.
9619
4be290b2
AB
96202019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9621
9622 * ada-lang.c (ada_language_defn): Initialise new field.
9623 * c-lang.c (c_is_string_type_p): New function.
9624 (c_language_defn): Initialise new field.
9625 (cplus_language_defn): Initialise new field.
9626 (asm_language_defn): Initialise new field.
9627 (minimal_language_defn): Initialise new field.
9628 * c-lang.h (c_is_string_type_p): Declare new function.
9629 * d-lang.c (d_language_defn): Initialise new field.
9630 * f-lang.c (f_is_string_type_p): New function.
9631 (f_language_defn): Initialise new field.
9632 * go-lang.c (go_is_string_type_p): New function.
9633 (go_language_defn): Initialise new field.
9634 * language.c (default_is_string_type_p): New function.
9635 (unknown_language_defn): Initialise new field.
9636 (auto_language_defn): Initialise new field.
9637 * language.h (struct language_defn) <la_is_string_type_p>: New
9638 member variable.
9639 (default_is_string_type_p): Declare new function.
9640 * m2-lang.c (m2_language_defn): Initialise new field.
9641 * objc-lang.c (objc_language_defn): Initialise new field.
9642 * opencl-lang.c (opencl_language_defn): Initialise new field.
9643 * p-lang.c (pascal_is_string_type_p): New function.
9644 (pascal_language_defn): Initialise new field.
9645 * rust-lang.c (rust_is_string_type_p): New function.
9646 (rust_language_defn): Initialise new field.
9647
721b08c6
AB
96482019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9649
9650 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9651 New field.
9652 * ada-lang.c (ada_language_defn): Initialise new field.
9653 * c-lang.c (c_language_defn): Likewise.
9654 (cplus_language_defn): Likewise.
9655 (asm_language_defn): Likewise.
9656 (minimal_language_defn): Likewise.
9657 * d-lang.c (d_language_defn): Likewise.
9658 * f-lang.c (f_language_defn): Likewise.
9659 * go-lang.c (go_language_defn): Likewise.
9660 * language.c (unknown_language_defn): Likewise.
9661 (auto_language_defn): Likewise.
9662 * m2-lang.c (m2_language_defn): Likewise.
9663 * objc-lang.c (objc_language_defn): Likewise.
9664 * opencl-lang.c (opencl_language_defn): Likewise.
9665 * p-lang.c (pascal_language_defn): Likewise.
9666 * rust-lang.c (rust_language_defn): Likewise.
9667
fc913e53
AB
96682019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9669
9670 * ada-lang.c (ada_is_character_type): Change return type to bool.
9671 (ada_is_string_type): Likewise.
9672 * ada-lang.h (ada_is_character_type): Update declaration
9673 (ada_is_string_type): Likewise.
9674
fa731fa0
PW
96752019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9676
9677 Support style in 'frame|thread apply'
9678
9679 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9680 * record.c (record_start, record_stop): Update callers of
9681 execute_command_to_string with false.
9682 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9683 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9684 methods.
9685 (class string_file): New constructor with term_out parameter.
9686 Override methods term_out and can_emit_style_escape. New member
9687 term_out.
9688 (class stdio_file): Override can_emit_style_escape.
9689 (class tee_file): Override term_out and can_emit_style_escape.
9690 * utils.h (can_emit_style_escape): Remove.
9691 * utils.c (can_emit_style_escape): Likewise.
9692 Update all callers of can_emit_style_escape (SOMESTREAM) to
9693 SOMESTREAM->can_emit_style_escape.
9694 * source-cache.c (source_cache::get_source_lines): Likewise.
9695 * stack.c (frame_apply_command_count): Call execute_command_to_string
9696 passing the term_out characteristic of the current gdb_stdout.
9697 * thread.c (thr_try_catch_cmd): Likewise.
9698 * top.c (execute_command_to_string): pass term_out parameter
9699 to construct the string_file for the command output.
9700 * ui-file.c (term_cli_styling): New function (most code moved
9701 from utils.c can_emit_style_escape).
9702 (string_file::string_file, string_file::can_emit_style_escape,
9703 stdio_file::can_emit_style_escape, tee_file::term_out,
9704 tee_file::can_emit_style_escape): New functions.
9705
136afab8
PW
97062019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9707
9708 * NEWS: Mention the new set|show may-call-functions.
9709 * infcall.c (may_call_functions_p): New variable.
9710 (show_may_call_functions_p): New function.
9711 (call_function_by_hand_dummy): Throws an error if not
9712 may-call-functions.
9713 (_initialize_infcall): Call add_setshow_boolean_cmd for
9714 may-call-functions.
9715
725cbb63
KS
97162019-04-25 Keith Seitz <keiths@redhat.com>
9717
9718 PR c++/24367
9719 * cp-support.c (inspect_type): Don't attempt substitutions
9720 of symbol with the same name.
9721
3d1cbb78
TT
97222019-04-25 Tom Tromey <tromey@adacore.com>
9723
9724 PR gdb/24475:
9725 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9726 static.
9727
94aeb44b
TT
97282019-04-25 Tom Tromey <tromey@adacore.com>
9729
9730 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9731 rvalue reference.
9732 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9733 (gdb_xml_parser::parse): Use std::move.
9734 * python/python-internal.h (gdbpy_convert_exception): Take a const
9735 reference.
9736 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9737 std::move.
9738 * python/py-utils.c (gdbpy_convert_exception): Take a const
9739 reference.
9740 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9741 Use std::move.
9742 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9743 Use std::move.
9744 * mi/mi-main.c (mi_print_exception): Take a const reference.
9745 * main.c (handle_command_errors): Take a const reference.
9746 * linespec.c (parse_linespec): Use std::move.
9747 * infcall.c (run_inferior_call): Use std::move.
9748 (call_function_by_hand_dummy): Use std::move.
9749 * exec.c (try_open_exec_file): Use std::move.
9750 * exceptions.h (exception_print, exception_fprintf)
9751 (exception_print_same): Update.
9752 * exceptions.c (print_exception, exception_print)
9753 (exception_fprintf, exception_print_same): Change parameters to
9754 const reference.
9755 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9756 * common/new-op.c: Use std::move.
9757 * common/common-exceptions.h (struct gdb_exception): Add move
9758 constructor.
9759 (struct gdb_exception_error, struct gdb_exception_quit, struct
9760 gdb_quit_bad_alloc): Change constructor to move constructor.
9761 (throw_exception): Change parameter to rvalue reference.
9762 * common/common-exceptions.c (throw_exception): Take rvalue
9763 reference.
9764 * cli/cli-interp.c (safe_execute_command): Use std::move.
9765 * breakpoint.c (insert_bp_location, location_to_sals): Use
9766 std::move.
9767
680d7fd5
TT
97682019-04-25 Tom Tromey <tromey@adacore.com>
9769
9770 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9771 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9772 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9773 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9774 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9775 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9776 guile/scm-value.c: Use unpack.
9777 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9778 gdbscm_gdb_exception.
9779 (gdbscm_throw_gdb_exception): Likewise.
9780 (struct gdbscm_gdb_exception): New.
9781 (unpack): New function.
9782 (gdbscm_wrap): Use unpack.
9783
c6fdd8b2
TT
97842019-04-25 Tom Tromey <tromey@adacore.com>
9785
9786 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9787 (gdb_rl_callback_handler): Use std::move.
9788 * common/common-exceptions.h (struct gdb_exception): Add move
9789 assignment operator.
9790 (throw_exception_sjlj): Change "exception" to const reference.
9791 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9792 (throw_exception_sjlj): Change "exception" to const reference.
9793
cc06b668
TT
97942019-04-25 Tom Tromey <tromey@adacore.com>
9795
9796 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9797 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9798 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9799 Update.
9800 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9801 Update.
9802 * mi/mi-interp.c (mi_interp::exec): Update.
9803 * linespec.c (parse_linespec): Update.
9804 * infcall.c (run_inferior_call): Update.
9805 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9806 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9807 (gdbscm_lookup_global_symbol): Update.
9808 * guile/scm-param.c (gdbscm_parameter_value): Update.
9809 * guile/scm-frame.c (gdbscm_frame_read_register)
9810 (gdbscm_frame_read_var): Update.
9811 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9812 * exec.c (try_open_exec_file): Update.
9813 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9814 (gdb_rl_callback_handler): Update.
9815 * common/common-exceptions.h (exception_none): Don't declare.
9816 * common/common-exceptions.c (exception_none): Don't define.
9817 (struct catcher) <exception>: Update.
9818 * cli/cli-interp.c (safe_execute_command): Update.
9819 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9820
cf532bd1
AT
98212019-04-25 Ali Tamur <tamur@google.com>
9822
9823 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9824 (read_attribute_value): Likewise.
9825 (dwarf2_read_addr_index): Update comment.
9826 (read_str_index): Add DW_FORM_strx.
9827 (dwarf2_string_attr): Likewise.
9828 (dwarf2_const_value_attr): Likewise.
9829 (dump_die_shallow): Likewise.
9830 (dwarf2_fetch_constant_bytes): Likewise.
9831 (skip_form_bytes): Likewise.
9832 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9833
82433e3e
SDJ
98342019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9835
9836 PR corefiles/11608
9837 PR corefiles/18187
9838 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9839 OFFSET. Verify if current mapping contains an ELF header.
9840 (linux_find_memory_regions_full): Adjust call to
9841 dump_mapping_p.
9842
723adb65
SL
98432019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9844 Kang Li <kanglictf@gmail.com>
9845
9846 PR gdb/21600
9847
9848 * dwarf2-frame.c (read_initial_length): Be consistent about using
9849 unsigned representation of length.
9850 (decode_frame_entry_1): Likewise. Check for wraparound of
9851 end pointer as well as buffer overflow.
9852
596179f7
SDJ
98532019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9854
9855 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9856 "vq".
9857
a59240a4
TT
98582019-04-24 Tom Tromey <tromey@adacore.com>
9859
9860 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9861
f872fdbb
AB
98622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9863
9864 * s12z-tdep.c (s12z_unwind_pc): Delete.
9865 (s12z_unwind_sp): Delete.
9866 (s12z_gdbarch_init): Don't register deleted functions with
9867 gdbarch.
9868
b614e6f3
AB
98692019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9870
9871 * rl78-tdep.c (rl78_unwind_sp): Delete.
9872 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9873
14faed38
AB
98742019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9875
9876 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9877 (xstormy16_unwind_pc): Delete.
9878 (xstormy16_dummy_id): Delete.
9879 (xstormy16_gdbarch_init): Don't register deleted functions with
9880 gdbarch.
9881
541aad8a
AB
98822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9883
9884 * vax-tdep.c (vax_unwind_pc): Delete.
9885 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9886
29222070
AB
98872019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9888
9889 * v850-tdep.c (v850_unwind_sp): Delete.
9890 (v850_unwind_pc): Delete.
9891 (v850_dummy_id): Delete.
9892 (v850_gdbarch_init): Don't register deleted functions with
9893 gdbarch.
9894
0f534d76
AB
98952019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9896
9897 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9898 (tilegx_unwind_pc): Delete.
9899 (tilegx_unwind_dummy_id): Delete.
9900 (tilegx_gdbarch_init): Don't register deleted functions with
9901 gdbarch.
9902
1ba7b7f9
AB
99032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9904
9905 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9906 (tic6x_dummy_id): Delete.
9907 (tic6x_gdbarch_init): Don't register deleted functions with
9908 gdbarch.
9909
d31f262c
AB
99102019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9911
9912 * sparc-tdep.c (sparc_unwind_pc): Delete.
9913 (sparc32_gdbarch_init): Don't register deleted function with
9914 gdbarch.
9915
6d14d64d
AB
99162019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9917
9918 * sh-tdep.c (sh_unwind_sp): Delete.
9919 (sh_unwind_pc): Delete.
9920 (sh_dummy_id): Delete.
9921 (sh_gdbarch_init): Don't register deleted functions with
9922 gdbarch.
9923
a40dde9d
AB
99242019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9925
9926 * score-tdep.c (score_unwind_sp): Delete.
9927 (score_unwind_pc): Delete.
9928 (score_dummy_id): Delete.
9929 (score_gdbarch_init): Don't register deleted functions with
9930 gdbarch.
9931
47c47d69
AB
99322019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9933
9934 * rx-tdep.c (rx_unwind_pc): Delete.
9935 (rx_unwind_sp): Delete.
9936 (rx_dummy_id): Delete.
9937 (rx_gdbarch_init): Don't register deleted functions with
9938 gdbarch. Update comment.
9939
833a4480
AB
99402019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9941
9942 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9943 (rs6000_dummy_id): Delete.
9944 (rs6000_gdbarch_init): Don't register deleted functions with
9945 gdbarch.
9946
3f2cef49
AB
99472019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9948
9949 * or1k-tdep.c (or1k_dummy_id): Delete.
9950 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9951
96acf884
AB
99522019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9953
9954 * nios2-tdep.c (nios2_dummy_id): Delete.
9955 (nios2_unwind_sp): Delete.
9956 (nios2_gdbarch_init): Don't register deleted functions with
9957 gdbarch.
9958
ca0ab0aa
AB
99592019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9960
9961 * nds32-tdep.c (nds32_dummy_id): Delete.
9962 (nds32_unwind_pc): Delete.
9963 (nds32_unwind_sp): Delete.
9964 (nds32_gdbarch_init): Don't register deleted functions with
9965 gdbarch.
9966
c8259044
AB
99672019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9968
9969 * msp430-tdep.c (msp430_unwind_pc): Delete.
9970 (msp430_unwind_sp): Delete.
9971 (msp430_dummy_id): Delete.
9972 (msp430_gdbarch_init): Don't register deleted functions with
9973 gdbarch.
9974
27f113c8
AB
99752019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9976
9977 * moxie-tdep.c (moxie_unwind_sp): Delete.
9978 (moxie_unwind_pc): Delete.
9979 (moxie_dummy_id): Delete.
9980 (moxie_gdbarch_init): Don't register deleted functions with
9981 gdbarch.
9982
aee6c3cd
AB
99832019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9984
9985 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9986 (mn10300_unwind_pc): Delete.
9987 (mn10300_unwind_sp): Delete.
9988 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9989 mn10300_unwind_sp.
9990 (mn10300_frame_unwind_init): Don't register deleted functions with
9991 gdbarch.
9992
8e2b5aea
AB
99932019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9994
9995 * mep-tdep.c (mep_unwind_pc): Delete.
9996 (mep_unwind_sp): Delete.
9997 (mep_dummy_id): Delete.
9998 (mep_gdbarch_init): Don't register deleted functions with
9999 gdbarch.
10000
43cf3ede
AB
100012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10002
10003 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10004 (m68hc11_unwind_sp): Delete.
10005 (m68hc11_gdbarch_init): Don't register deleted functions with
10006 gdbarch.
10007
5e79b7bb
AB
100082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10009
10010 * m32r-tdep.c (m32r_unwind_sp): Delete.
10011 (m32r_unwind_pc): Delete.
10012 (m32r_dummy_id): Delete.
10013 (m32r_gdbarch_init): Don't register deleted functions with
10014 gdbarch.
10015
89b268d8
AB
100162019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10017
10018 * m32c-tdep.c (m32c_unwind_pc): Delete.
10019 (m32c_unwind_sp): Delete.
10020 (m32c_dummy_id): Delete.
10021 (m32c_gdbarch_init): Don't register deleted functions with
10022 gdbarch.
10023
946c28d2
AB
100242019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10025
10026 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10027 (lm32_unwind_pc): Delete.
10028 (lm32_dummy_id): Delete.
10029 (lm32_gdbarch_init): Don't register deleted functions with
10030 gdbarch.
10031
bf12844a
AB
100322019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10033
10034 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10035 (iq2000_unwind_pc): Delete.
10036 (iq2000_dummy_id): Delete.
10037 (iq2000_gdbarch_init): Don't register deleted functions with
10038 gdbarch.
10039
ecbc06d2
AB
100402019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10041
10042 * nds32-tdep.c (nds32_type_align): Delete.
10043 (nds32_push_dummy_call): Use type_align instead.
10044
030197b4
AB
100452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10046
10047 * arm-tdep.c (arm_type_align): Only handle vector override case.
10048 (arm_push_dummy_call): Use type_align.
10049 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10050
b907456c
AB
100512019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10052
10053 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10054 case.
10055 (pass_on_stack): Use type_align.
10056 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10057 function.
10058
9e97ba43
TT
100592019-04-23 Tom Tromey <tromey@adacore.com>
10060
10061 * dwarf2read.c (line_header::file_name_at): Remove unused
10062 overload.
10063
6892f601
TV
100642019-04-23 Tom de Vries <tdevries@suse.de>
10065
10066 PR gdb/24438
10067 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10068 invocation.
10069
336d760d
AT
10070
100712019-03-27 Ali Tamur <tamur@google.com>
10072
10073 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10074 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10075 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10076 (dwarf_expr_context::get_addr_index): Likewise
10077 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10078 (symbol_needs_eval_context::get_addr_index): Likewise
10079 (disassemble_dwarf_expression): Add DW_OP_addrx
10080 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10081 (read_cutu_die_from_dwo): Update comment
10082 (skip_one_die): Add DW_FORM_addrx
10083 (read_attribute_value): Likewise
10084 (var_decode_location): Add DW_OP_addrx
10085 (dwarf2_const_value_attr): Add DW_FORM_addrx
10086 (dump_die_shallow): Likewise
10087 (dwarf2_fetch_constant_bytes): Likewise
10088 (decode_locdesc): Add DW_OP_addrx
10089 (skip_form_bytes): Add DW_FORM_addrx
10090
ad9d13f8
AT
100912019-04-22 Ali Tamur <tamur@google.com>
10092
10093 * MAINTAINERS (Write After Approval): Add self.
10094
d70cc3ba
SM
100952019-04-22 Simon Marchi <simon.marchi@efficios.com>
10096
10097 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10098 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10099 (open_symbol_file_object): Likewise.
10100 (svr4_default_sos): Add info parameter.
10101 (svr4_read_so_list): Likewise.
10102 (svr4_current_sos_direct): Adjust functions calls to pass down
10103 info.
10104 (svr4_current_sos_1): Add info parameter.
10105 (svr4_current_sos): Call get_svr4_info, pass info down to
10106 svr4_current_sos_1.
10107 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10108 get_svr4_info.
10109 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10110 get_svr4_info.
10111 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10112 to get_svr4_info.
10113 (probes_table_remove_objfile_probes): Likewise.
10114 (register_solib_event_probe): Add info parameter.
10115 (solist_update_incremental): Pass info parameter down to
10116 svr4_read_so_list.
10117 (disable_probes_interface): Add info parameter.
10118 (svr4_handle_solib_event): Pass current_program_space to
10119 get_svr4_info. Adjust disable_probes_interface cleanup.
10120 (svr4_create_probe_breakpoints): Add info parameter, pass it
10121 down to register_solib_event_probe.
10122 (svr4_create_solib_event_breakpoints): Add info parameter,
10123 pass it down to svr4_create_probe_breakpoints.
10124 (enable_break): Pass info down to
10125 svr4_create_solib_event_breakpoints.
10126 (svr4_solib_create_inferior_hook): Pass current_program_space to
10127 get_svr4_info.
10128 (svr4_clear_solib): Likewise.
10129
7905fc35
PA
101302019-04-22 Pedro Alves <palves@redhat.com>
10131
10132 * solib-svr4.c (svr4_free_objfile_observer): New.
10133 (probe_and_action::objfile): New field.
10134 (probes_table_htab_remove_objfile_probes)
10135 (probes_table_remove_objfile_probes): New functions.
10136 (register_solib_event_probe): Add 'objfile' parameter. Store it
10137 in the new probe_and_action. Don't store the probe in 'lookup'.
10138 (svr4_create_probe_breakpoints): Pass objfile to
10139 register_solib_event_probe.
10140 (_initialize_svr4_solib): Register a free_objfile observer.
10141
fb881986
TT
101422019-04-19 Tom Tromey <tom@tromey.com>
10143
10144 * common/queue.h: Remove.
10145
8732db6c
TT
101462019-04-19 Tom Tromey <tom@tromey.com>
10147
10148 * event-loop.c: Don't include "common/queue.h".
10149
97dfbadd
TT
101502019-04-19 Tom Tromey <tom@tromey.com>
10151
10152 * remote.c (remote_target): Use delete.
10153 * remote-notif.h: Include <list>, not "common/queue.h".
10154 (notif_client_p): Remove typedef.
10155 (remote_notif_state): Add constructor, destructor, initializer.
10156 <notif_queue>: Now a std::list.
10157 (remote_notif_state_xfree): Don't declare.
10158 * remote-notif.c (remote_notif_process, handle_notification)
10159 (remote_notif_state_allocate): Update.
10160 (~remote_notif_state): Rename from remote_notif_state_xfree.
10161
cf250e36
TT
101622019-04-19 Tom Tromey <tom@tromey.com>
10163
10164 * symfile.c (reread_symbols): Update.
10165 * objfiles.c (objfile_register_static_link)
10166 (objfile_lookup_static_link): Update
10167 (~objfile) Don't delete static_links.
10168 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10169
61f4b350
TT
101702019-04-19 Tom Tromey <tom@tromey.com>
10171
10172 * type-stack.h (struct type_stack) <insert>: Constify string.
10173 * type-stack.c (type_stack::insert): Constify string.
10174 * gdbtypes.h (lookup_template_type): Update.
10175 (address_space_name_to_int): Update.
10176 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10177 const.
10178 (lookup_template_type): Make name const.
10179 * c-exp.y: Update rules.
10180 (lex_one_token, classify_name, classify_inner_name)
10181 (c_print_token): Update.
10182 * p-exp.y: Update rules.
10183 (yylex): Update.
10184 * f-exp.y: Update rules.
10185 (yylex): Update.
10186 * d-exp.y: Update rules.
10187 (lex_one_token, classify_name, classify_inner_name): Update.
10188 * parse.c (write_dollar_variable, copy_name): Return std::string.
10189 * parser-defs.h (copy_name): Change return type.
10190 * m2-exp.y: Update rules.
10191 (yylex): Update.
10192 * go-exp.y (lex_one_token): Update.
10193 Update rules.
10194 (classify_unsafe_function, classify_packaged_name)
10195 (classify_name, yylex): Update.
10196
189b8c2e
ST
101972019-04-19 Sergei Trofimovich <siarheit@google.com>
10198
10199 * configure.ac: add --enable-source-highlight switch.
10200 * configure: Regenerate.
10201 * top.c (print_gdb_version): plumb --enable-source-highlight
10202 status to "show configuration".
10203
8ecb59f8
TT
102042019-04-19 Tom Tromey <tromey@adacore.com>
10205
10206 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10207 Check ADA_TYPE_P.
10208 (empty_record, ada_template_to_fixed_record_type_1)
10209 (template_to_static_fixed_type)
10210 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10211 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10212 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10213 macros.
10214
62160ec9
TT
102152019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10216
10217 PR symtab/24423:
10218 * source.c (print_source_lines_base): Advance "iter" when a
10219 control character is seen.
10220
f2ae8bc8
PW
102212019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10222
10223 * inferior.h (struct infcall_suspend_state_deleter):
10224 Catch exception in destructor to avoid crash.
10225
d563b953
PW
102262019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10227
10228 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10229 close to the add_com "shell".
10230
dc34c897
TT
102312019-04-18 Tom Tromey <tromey@adacore.com>
10232
10233 * process-stratum-target.h (class process_stratum_target)
10234 <stratum>: Add "final".
10235
a12e5744
TT
102362019-04-17 Tom Tromey <tromey@adacore.com>
10237
10238 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10239 against nullptr before use.
10240
a7e559cc
AH
102412019-04-17 Alan Hayward <alan.hayward@arm.com>
10242
10243 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10244
c01660c6
AB
102452019-04-17 Jim Wilson <jimw@sifive.com>
10246 Andrew Burgess <andrew.burgess@embecosm.com>
10247
10248 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10249 code read might fail, assume 4-byte breakpoint in that case.
10250
4aa866af
LS
102512019-04-15 Leszek Swirski <leszeks@google.com>
10252
10253 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10254 rather than a hand-rolled POD check when checking for forced MEMORY
10255 classification.
10256
48574d91
AH
102572019-04-15 Alan Hayward <alan.hayward@arm.com>
10258
10259 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10260 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10261 function.
10262 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10263 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10264 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10265 declaration.
10266
4da037ef
AH
102672019-04-15 Alan Hayward <alan.hayward@arm.com>
10268
10269 * aarch64-linux-nat.c
10270 (aarch64_linux_nat_target::thread_architecture): Add override.
10271 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10272 each VQ.
10273
ccb8d7e8
AH
102742019-04-15 Alan Hayward <alan.hayward@arm.com>
10275
10276 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10277
35add35e
AB
102782019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10279
10280 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10281 target types of size 96-bits, add some additional comments, and
10282 check that the builtin type we found was the correct size.
10283
51196bbc
EZ
102842019-04-12 Eli Zaretskii <eliz@gnu.org>
10285
10286 * utils.c (prompt_for_continue): Don't restore the styling at the
10287 end, as applied_style has the wrong value. This fixes styling in
10288 long lists of file names that are interrupted by the "Continue?"
10289 prompt.
10290
62253a61
AB
102912019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10292
10293 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10294 * c-lang.c (c_language_defn): Likewise.
10295 (cplus_language_defn): Likewise.
10296 (asm_language_defn): Likewise.
10297 (minimal_language_defn): Likewise.
10298 * d-lang.c (d_language_defn): Likewise.
10299 * f-lang.c (f_language_defn): Likewise.
10300 * go-lang.c (go_language_defn): Likewise.
10301 * language.c (unknown_language_defn): Likewise.
10302 (auto_language_defn): Likewise.
10303 * language.h (struct language_defn): Remove la_magic field.
10304 (LANG_MAGIC): Delete.
10305 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10306 * objc-lang.c (objc_language_defn): Likewise.
10307 * opencl-lang.c (opencl_language_defn): Likewise.
10308 * p-lang.c (pascal_language_defn): Likewise.
10309 * rust-lang.c (rust_language_defn): Likewise.
10310
a9158a86
AB
103112019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10312
10313 * riscv-tdep.c (riscv_type_align): New function.
10314 (riscv_type_alignment): Delete.
10315 (riscv_arg_location): Use 'type_align'.
10316 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10317
41077b66
AB
103182019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10319
10320 * gdbtypes.c (type_align): A struct with no non-static fields also
10321 has alignment of 1.
10322
9f0272f8
AB
103232019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10324
10325 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10326 component to 0.
10327 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10328 member.
10329 (riscv_struct_info::analyse): New implementation using new
10330 analyse_inner member function.
10331 (riscv_struct_info::field_offset): New member function.
10332 (riscv_struct_info::m_offsets): New member variable.
10333 (riscv_struct_info::analyse_inner): New private member function,
10334 takes the old implementation of riscv_struct_info::analyse but
10335 extended to track field offsets.
10336 (riscv_call_arg_struct): Update the struct folding special cases
10337 to handle cases where empty C++ structs, which are non-zero
10338 length, are found.
10339 (riscv_arg_location): Initialise the length of each location, a
10340 non-zero length now indicates the location is in use.
10341 (riscv_push_dummy_call): Allow for the first location having a
10342 non-zero offset when setting up arguments.
10343 (riscv_return_value): Likewise, but for return values.
10344
02cf60c7
TT
103452019-04-11 Tom Tromey <tromey@adacore.com>
10346
10347 * utils.c (internal_vproblem): Make "msg" const.
10348
68811f8f
AH
103492019-04-11 Alan Hayward <alan.hayward@arm.com>
10350
10351 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10352 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10353 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10354 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10355
3f52fdbc
KB
103562019-04-10 Kevin Buettner <kevinb@redhat.com>
10357
10358 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10359 function.
10360 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10361 of amd64_collect_native_gregset.
10362 (amd64_linux_nat_target::store_registers): Likewise.
10363
e9ad22ee
TT
103642019-04-10 Tom Tromey <tom@tromey.com>
10365
10366 * symtab.c (lookup_global_symbol_from_objfile)
10367 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10368 * objfiles.h (class separate_debug_iterator): New.
10369 (class separate_debug_range): New.
10370 (struct objfile) <separate_debug_objfiles>: New method.
10371 (objfile_separate_debug_iterate): Don't declare.
10372 * objfiles.c (separate_debug_iterator::operator++): Rename from
10373 objfile_separate_debug_iterate.
10374 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10375 iterator.
10376 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10377 iterator.
10378
ee371134
TT
103792019-04-10 Tom Tromey <tom@tromey.com>
10380
10381 * symfile.c (reread_symbols): Remove old comment.
10382 * objfiles.c (free_all_objfiles): Fix a typo.
10383
bf227d61
TT
103842019-04-10 Tom Tromey <tom@tromey.com>
10385
10386 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10387 * minsyms.c (lookup_minimal_symbol): Use foreach.
10388 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10389 (lookup_minimal_symbol_solib_trampoline): Likewise.
10390 * symfile.c (reread_symbols): Use foreach.
10391
8dc433a0
TT
103922019-04-09 Ivan Begert <ivanbegert@gmail.com>
10393 Tom Tromey <tromey@adacore.com>
10394
10395 PR rust/24414:
10396 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10397 (rust_lex_int_test): Change "value" to be LONGEST.
10398 (rust_lex_tests): Add test for long integer literal.
10399
9ab8741a
TT
104002019-04-09 Tom Tromey <tromey@adacore.com>
10401
10402 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10403 to bool.
10404 (extended_remote_target::attach): Update.
10405 (remote_target::remote_notice_new_inferior): Update.
10406 (remote_target::add_current_inferior_and_thread): Update.
10407 * inferior.c (exit_inferior_1): Use "false".
10408 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10409
e242fd12
SM
104102019-04-09 Simon Marchi <simon.marchi@efficios.com>
10411
9ca1957f 10412 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
10413 the "start" command.
10414
2b0c8b01
KB
104152019-04-08 Kevin Buettner <kevinb@redhat.com>
10416
10417 * python/py-inferior.c (infpy_thread_from_thread_handle):
10418 Adjust comments to reflect renaming of thread_from_thread_handle
10419 to thread_from_handle. Adjust keywords. Fix type error message.
10420 (inferior_object_methods): Add thread_from_handle. Retain
10421 thread_from_thread_handle, but mark it as deprecated.
10422
50a82723
KB
104232019-04-08 Kevin Buettner <kevinb@redhat.com>
10424
10425 * gdbthread.h (find_thread_by_handle): Revise declaration.
10426 * thread.c (find_thread_by_handle): Likewise. Adjust
10427 implementation too.
10428 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10429 support for buffer objects as handles.
10430
cf63b016
KB
104312019-04-08 Kevin Buettner <kevinb@redhat.com>
10432
10433 * python/py-infthread.c (thpy_thread_handle): New function.
10434 (thread_object_methods): Register thpy_thread_handle.
10435
3d6c6204
KB
104362019-04-08 Kevin Buettner <kevinb@redhat.com>
10437
10438 * gdbthread.h (thread_to_thread_handle): Declare.
10439 * thread.c (gdbtypes.h): Include.
10440 (thread_to_thread_handle): New function.
10441
10442 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10443 (target_thread_info_to_thread_handle): Declare.
10444 * target.c (target_thread_info_to_thread_handle): New function.
10445 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10446 * target-delegates.c: Regenerate.
10447
10448 * linux-thread-db.c (class thread_db_target): Add method
10449 thread_info_to_thread_handle.
10450 (thread_db_target::thread_info_to_thread_handle): Define.
10451 * remote.c (class remote_target): Add new method
10452 thread_info_to_thread_handle.
10453 (remote_target::thread_info_to_thread_handle): Define.
10454
56be6ea8
PA
104552019-04-08 Pedro Alves <palves@redhat.com>
10456
10457 * common/common-exceptions.c (throw_exception): Don't create
10458 named object to throw; throw directly.
10459 (throw_it): Likewise. Don't initialize gdb_exception::message
10460 here, with new; pass FMT and AP to the ctor instead.
10461 * common/common-exceptions.h: Include <string>.
10462 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10463 const char *, va_list)): New ctor. Use std::make_shared.
10464 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10465 errors)): Delete.
10466 (gdb_exception_error::gdb_exception_error(enum errors, const char
10467 *, va_list)): New.
10468 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10469 Add assertion.
10470 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10471 errors)): Delete.
10472 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10473 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10474 Add assertion.
10475
eedc3f4f
TT
104762019-04-08 Tom Tromey <tom@tromey.com>
10477
10478 * valops.c (value_rtti_indirect_type): Replace throw_exception
10479 with throw.
10480 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10481 with throw.
10482 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10483 throw.
10484 * target.c (target_translate_tls_address): Replace throw_exception
10485 with throw.
10486 * stack.c (frame_apply_command_count): Replace throw_exception
10487 with throw.
10488 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10489 throw.
10490 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10491 with throw.
10492 * rs6000-tdep.c (rs6000_frame_cache)
10493 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10494 * remote.c: Replace throw_exception with throw.
10495 * record-full.c (record_full_message, record_full_wait_1)
10496 (record_full_restore): Replace throw_exception with throw.
10497 * record-btrace.c:
10498 (get_thread_current_frame_id, record_btrace_start_replaying)
10499 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10500 (cmd_record_btrace_start): Replace throw_exception with throw.
10501 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10502 throw.
10503 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10504 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10505 * linespec.c:
10506 (find_linespec_symbols): Replace throw_exception with throw.
10507 * infrun.c (displaced_step_prepare, resume): Replace
10508 throw_exception with throw.
10509 * infcmd.c (post_create_inferior): Replace throw_exception with
10510 throw.
10511 * inf-loop.c (inferior_event_handler): Replace throw_exception
10512 with throw.
10513 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10514 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10515 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10516 (get_prev_frame_always, get_frame_pc_if_available)
10517 (get_frame_address_in_block_if_available, get_frame_language):
10518 Replace throw_exception with throw.
10519 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10520 throw_exception with throw.
10521 * eval.c (fetch_subexp_value, evaluate_var_value)
10522 (evaluate_funcall, evaluate_subexp_standard): Replace
10523 throw_exception with throw.
10524 * dwarf2loc.c (call_site_find_chain)
10525 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10526 Replace throw_exception with throw.
10527 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10528 with throw.
10529 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10530 throw.
10531 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10532 * completer.c (complete_line_internal): Replace throw_exception
10533 with throw.
10534 * compile/compile-object-run.c (compile_object_run): Replace
10535 throw_exception with throw.
10536 * cli/cli-script.c (process_next_line): Replace throw_exception
10537 with throw.
10538 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10539 (btrace_enable, btrace_maint_update_pt_packets): Replace
10540 throw_exception with throw.
10541 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10542 throw_exception with throw.
10543 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10544 throw_exception with throw.
10545 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10546 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10547 * aarch64-tdep.c (aarch64_make_prologue_cache)
10548 (aarch64_make_stub_cache): Replace throw_exception with throw.
10549
26003a20
TT
105502019-04-08 Tom Tromey <tom@tromey.com>
10551
10552 * common/common-exceptions.c (throw_exception): Rename from
10553 throw_exception_cxx. Remove old copy. Make argument const.
10554 (throw_it): Create and throw exception objects directly.
10555 * common/common-exceptions.h (throw_exception): Make argument
10556 const.
10557 (struct gdb_exception_error): Add constructor.
10558 (struct gdb_exception_quit): Add constructor.
10559
d272eb37
TT
105602019-04-08 Tom Tromey <tom@tromey.com>
10561
10562 * common/common-exceptions.h (exception_rethrow): Don't declare.
10563 (TRY_SJLJ): Update comment.
10564 (TRY, CATCH, END_CATCH): Remove.
10565 * common/common-exceptions.c (exception_rethrow): Remove.
10566
230d2906
TT
105672019-04-08 Tom Tromey <tom@tromey.com>
10568
10569 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10570 Remove.
10571 (gdb_exception_error): Rename from
10572 gdb_exception_RETURN_MASK_ERROR.
10573 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10574 (gdb_quit_bad_alloc): Update.
10575 * aarch64-tdep.c: Update.
10576 * ada-lang.c: Update.
10577 * ada-typeprint.c: Update.
10578 * ada-valprint.c: Update.
10579 * amd64-tdep.c: Update.
10580 * arch-utils.c: Update.
10581 * break-catch-throw.c: Update.
10582 * breakpoint.c: Update.
10583 * btrace.c: Update.
10584 * c-varobj.c: Update.
10585 * cli/cli-cmds.c: Update.
10586 * cli/cli-interp.c: Update.
10587 * cli/cli-script.c: Update.
10588 * common/common-exceptions.c: Update.
10589 * common/new-op.c: Update.
10590 * common/selftest.c: Update.
10591 * compile/compile-c-symbols.c: Update.
10592 * compile/compile-cplus-symbols.c: Update.
10593 * compile/compile-object-load.c: Update.
10594 * compile/compile-object-run.c: Update.
10595 * completer.c: Update.
10596 * corelow.c: Update.
10597 * cp-abi.c: Update.
10598 * cp-support.c: Update.
10599 * cp-valprint.c: Update.
10600 * darwin-nat.c: Update.
10601 * disasm-selftests.c: Update.
10602 * dtrace-probe.c: Update.
10603 * dwarf-index-cache.c: Update.
10604 * dwarf-index-write.c: Update.
10605 * dwarf2-frame-tailcall.c: Update.
10606 * dwarf2-frame.c: Update.
10607 * dwarf2loc.c: Update.
10608 * dwarf2read.c: Update.
10609 * eval.c: Update.
10610 * event-loop.c: Update.
10611 * event-top.c: Update.
10612 * exec.c: Update.
10613 * f-valprint.c: Update.
10614 * fbsd-tdep.c: Update.
10615 * frame-unwind.c: Update.
10616 * frame.c: Update.
10617 * gdbtypes.c: Update.
10618 * gnu-v3-abi.c: Update.
10619 * guile/guile-internal.h: Update.
10620 * guile/scm-block.c: Update.
10621 * guile/scm-breakpoint.c: Update.
10622 * guile/scm-cmd.c: Update.
10623 * guile/scm-disasm.c: Update.
10624 * guile/scm-frame.c: Update.
10625 * guile/scm-lazy-string.c: Update.
10626 * guile/scm-math.c: Update.
10627 * guile/scm-param.c: Update.
10628 * guile/scm-ports.c: Update.
10629 * guile/scm-pretty-print.c: Update.
10630 * guile/scm-symbol.c: Update.
10631 * guile/scm-symtab.c: Update.
10632 * guile/scm-type.c: Update.
10633 * guile/scm-value.c: Update.
10634 * i386-linux-tdep.c: Update.
10635 * i386-tdep.c: Update.
10636 * inf-loop.c: Update.
10637 * infcall.c: Update.
10638 * infcmd.c: Update.
10639 * infrun.c: Update.
10640 * jit.c: Update.
10641 * language.c: Update.
10642 * linespec.c: Update.
10643 * linux-fork.c: Update.
10644 * linux-nat.c: Update.
10645 * linux-tdep.c: Update.
10646 * linux-thread-db.c: Update.
10647 * main.c: Update.
10648 * mi/mi-cmd-break.c: Update.
10649 * mi/mi-cmd-stack.c: Update.
10650 * mi/mi-interp.c: Update.
10651 * mi/mi-main.c: Update.
10652 * objc-lang.c: Update.
10653 * p-valprint.c: Update.
10654 * parse.c: Update.
10655 * ppc-linux-tdep.c: Update.
10656 * printcmd.c: Update.
10657 * python/py-arch.c: Update.
10658 * python/py-breakpoint.c: Update.
10659 * python/py-cmd.c: Update.
10660 * python/py-finishbreakpoint.c: Update.
10661 * python/py-frame.c: Update.
10662 * python/py-framefilter.c: Update.
10663 * python/py-gdb-readline.c: Update.
10664 * python/py-inferior.c: Update.
10665 * python/py-infthread.c: Update.
10666 * python/py-lazy-string.c: Update.
10667 * python/py-linetable.c: Update.
10668 * python/py-objfile.c: Update.
10669 * python/py-param.c: Update.
10670 * python/py-prettyprint.c: Update.
10671 * python/py-progspace.c: Update.
10672 * python/py-record-btrace.c: Update.
10673 * python/py-record.c: Update.
10674 * python/py-symbol.c: Update.
10675 * python/py-type.c: Update.
10676 * python/py-unwind.c: Update.
10677 * python/py-utils.c: Update.
10678 * python/py-value.c: Update.
10679 * python/python.c: Update.
10680 * record-btrace.c: Update.
10681 * record-full.c: Update.
10682 * remote-fileio.c: Update.
10683 * remote.c: Update.
10684 * riscv-tdep.c: Update.
10685 * rs6000-aix-tdep.c: Update.
10686 * rs6000-tdep.c: Update.
10687 * rust-exp.y: Update.
10688 * rust-lang.c: Update.
10689 * s390-tdep.c: Update.
10690 * selftest-arch.c: Update.
10691 * solib-dsbt.c: Update.
10692 * solib-frv.c: Update.
10693 * solib-spu.c: Update.
10694 * solib-svr4.c: Update.
10695 * solib.c: Update.
10696 * sparc64-linux-tdep.c: Update.
10697 * stack.c: Update.
10698 * symfile-mem.c: Update.
10699 * symmisc.c: Update.
10700 * target.c: Update.
10701 * thread.c: Update.
10702 * top.c: Update.
10703 * tracefile-tfile.c: Update.
10704 * tui/tui.c: Update.
10705 * typeprint.c: Update.
10706 * unittests/cli-utils-selftests.c: Update.
10707 * unittests/parse-connection-spec-selftests.c: Update.
10708 * valops.c: Update.
10709 * valprint.c: Update.
10710 * value.c: Update.
10711 * varobj.c: Update.
10712 * windows-nat.c: Update.
10713 * x86-linux-nat.c: Update.
10714 * xml-support.c: Update.
10715
a70b8144
TT
107162019-04-08 Tom Tromey <tom@tromey.com>
10717
10718 * xml-support.c: Use C++ exception handling.
10719 * x86-linux-nat.c: Use C++ exception handling.
10720 * windows-nat.c: Use C++ exception handling.
10721 * varobj.c: Use C++ exception handling.
10722 * value.c: Use C++ exception handling.
10723 * valprint.c: Use C++ exception handling.
10724 * valops.c: Use C++ exception handling.
10725 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10726 handling.
10727 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10728 * typeprint.c: Use C++ exception handling.
10729 * tui/tui.c: Use C++ exception handling.
10730 * tracefile-tfile.c: Use C++ exception handling.
10731 * top.c: Use C++ exception handling.
10732 * thread.c: Use C++ exception handling.
10733 * target.c: Use C++ exception handling.
10734 * symmisc.c: Use C++ exception handling.
10735 * symfile-mem.c: Use C++ exception handling.
10736 * stack.c: Use C++ exception handling.
10737 * sparc64-linux-tdep.c: Use C++ exception handling.
10738 * solib.c: Use C++ exception handling.
10739 * solib-svr4.c: Use C++ exception handling.
10740 * solib-spu.c: Use C++ exception handling.
10741 * solib-frv.c: Use C++ exception handling.
10742 * solib-dsbt.c: Use C++ exception handling.
10743 * selftest-arch.c: Use C++ exception handling.
10744 * s390-tdep.c: Use C++ exception handling.
10745 * rust-lang.c: Use C++ exception handling.
10746 * rust-exp.y: Use C++ exception handling.
10747 * rs6000-tdep.c: Use C++ exception handling.
10748 * rs6000-aix-tdep.c: Use C++ exception handling.
10749 * riscv-tdep.c: Use C++ exception handling.
10750 * remote.c: Use C++ exception handling.
10751 * remote-fileio.c: Use C++ exception handling.
10752 * record-full.c: Use C++ exception handling.
10753 * record-btrace.c: Use C++ exception handling.
10754 * python/python.c: Use C++ exception handling.
10755 * python/py-value.c: Use C++ exception handling.
10756 * python/py-utils.c: Use C++ exception handling.
10757 * python/py-unwind.c: Use C++ exception handling.
10758 * python/py-type.c: Use C++ exception handling.
10759 * python/py-symbol.c: Use C++ exception handling.
10760 * python/py-record.c: Use C++ exception handling.
10761 * python/py-record-btrace.c: Use C++ exception handling.
10762 * python/py-progspace.c: Use C++ exception handling.
10763 * python/py-prettyprint.c: Use C++ exception handling.
10764 * python/py-param.c: Use C++ exception handling.
10765 * python/py-objfile.c: Use C++ exception handling.
10766 * python/py-linetable.c: Use C++ exception handling.
10767 * python/py-lazy-string.c: Use C++ exception handling.
10768 * python/py-infthread.c: Use C++ exception handling.
10769 * python/py-inferior.c: Use C++ exception handling.
10770 * python/py-gdb-readline.c: Use C++ exception handling.
10771 * python/py-framefilter.c: Use C++ exception handling.
10772 * python/py-frame.c: Use C++ exception handling.
10773 * python/py-finishbreakpoint.c: Use C++ exception handling.
10774 * python/py-cmd.c: Use C++ exception handling.
10775 * python/py-breakpoint.c: Use C++ exception handling.
10776 * python/py-arch.c: Use C++ exception handling.
10777 * printcmd.c: Use C++ exception handling.
10778 * ppc-linux-tdep.c: Use C++ exception handling.
10779 * parse.c: Use C++ exception handling.
10780 * p-valprint.c: Use C++ exception handling.
10781 * objc-lang.c: Use C++ exception handling.
10782 * mi/mi-main.c: Use C++ exception handling.
10783 * mi/mi-interp.c: Use C++ exception handling.
10784 * mi/mi-cmd-stack.c: Use C++ exception handling.
10785 * mi/mi-cmd-break.c: Use C++ exception handling.
10786 * main.c: Use C++ exception handling.
10787 * linux-thread-db.c: Use C++ exception handling.
10788 * linux-tdep.c: Use C++ exception handling.
10789 * linux-nat.c: Use C++ exception handling.
10790 * linux-fork.c: Use C++ exception handling.
10791 * linespec.c: Use C++ exception handling.
10792 * language.c: Use C++ exception handling.
10793 * jit.c: Use C++ exception handling.
10794 * infrun.c: Use C++ exception handling.
10795 * infcmd.c: Use C++ exception handling.
10796 * infcall.c: Use C++ exception handling.
10797 * inf-loop.c: Use C++ exception handling.
10798 * i386-tdep.c: Use C++ exception handling.
10799 * i386-linux-tdep.c: Use C++ exception handling.
10800 * guile/scm-value.c: Use C++ exception handling.
10801 * guile/scm-type.c: Use C++ exception handling.
10802 * guile/scm-symtab.c: Use C++ exception handling.
10803 * guile/scm-symbol.c: Use C++ exception handling.
10804 * guile/scm-pretty-print.c: Use C++ exception handling.
10805 * guile/scm-ports.c: Use C++ exception handling.
10806 * guile/scm-param.c: Use C++ exception handling.
10807 * guile/scm-math.c: Use C++ exception handling.
10808 * guile/scm-lazy-string.c: Use C++ exception handling.
10809 * guile/scm-frame.c: Use C++ exception handling.
10810 * guile/scm-disasm.c: Use C++ exception handling.
10811 * guile/scm-cmd.c: Use C++ exception handling.
10812 * guile/scm-breakpoint.c: Use C++ exception handling.
10813 * guile/scm-block.c: Use C++ exception handling.
10814 * guile/guile-internal.h: Use C++ exception handling.
10815 * gnu-v3-abi.c: Use C++ exception handling.
10816 * gdbtypes.c: Use C++ exception handling.
10817 * frame.c: Use C++ exception handling.
10818 * frame-unwind.c: Use C++ exception handling.
10819 * fbsd-tdep.c: Use C++ exception handling.
10820 * f-valprint.c: Use C++ exception handling.
10821 * exec.c: Use C++ exception handling.
10822 * event-top.c: Use C++ exception handling.
10823 * event-loop.c: Use C++ exception handling.
10824 * eval.c: Use C++ exception handling.
10825 * dwarf2read.c: Use C++ exception handling.
10826 * dwarf2loc.c: Use C++ exception handling.
10827 * dwarf2-frame.c: Use C++ exception handling.
10828 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10829 * dwarf-index-write.c: Use C++ exception handling.
10830 * dwarf-index-cache.c: Use C++ exception handling.
10831 * dtrace-probe.c: Use C++ exception handling.
10832 * disasm-selftests.c: Use C++ exception handling.
10833 * darwin-nat.c: Use C++ exception handling.
10834 * cp-valprint.c: Use C++ exception handling.
10835 * cp-support.c: Use C++ exception handling.
10836 * cp-abi.c: Use C++ exception handling.
10837 * corelow.c: Use C++ exception handling.
10838 * completer.c: Use C++ exception handling.
10839 * compile/compile-object-run.c: Use C++ exception handling.
10840 * compile/compile-object-load.c: Use C++ exception handling.
10841 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10842 * compile/compile-c-symbols.c: Use C++ exception handling.
10843 * common/selftest.c: Use C++ exception handling.
10844 * common/new-op.c: Use C++ exception handling.
10845 * cli/cli-script.c: Use C++ exception handling.
10846 * cli/cli-interp.c: Use C++ exception handling.
10847 * cli/cli-cmds.c: Use C++ exception handling.
10848 * c-varobj.c: Use C++ exception handling.
10849 * btrace.c: Use C++ exception handling.
10850 * breakpoint.c: Use C++ exception handling.
10851 * break-catch-throw.c: Use C++ exception handling.
10852 * arch-utils.c: Use C++ exception handling.
10853 * amd64-tdep.c: Use C++ exception handling.
10854 * ada-valprint.c: Use C++ exception handling.
10855 * ada-typeprint.c: Use C++ exception handling.
10856 * ada-lang.c: Use C++ exception handling.
10857 * aarch64-tdep.c: Use C++ exception handling.
10858
3d6e9d23
TT
108592019-04-08 Tom Tromey <tom@tromey.com>
10860
10861 * xml-support.c (gdb_xml_parser::parse): Update.
10862 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10863 * value.c (show_convenience): Update.
10864 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10865 (test_parse_flags_qcs): Update.
10866 * thread.c (thr_try_catch_cmd): Update.
10867 * target.c (target_translate_tls_address): Update.
10868 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10869 (info_frame_command_core, frame_apply_command_count): Update.
10870 * rust-exp.y (rust_lex_exception_test): Update.
10871 * riscv-tdep.c (riscv_print_one_register_info): Update.
10872 * remote.c (remote_target::enable_btrace): Update.
10873 * record-btrace.c (record_btrace_enable_warn): Update.
10874 * python/py-utils.c (gdbpy_convert_exception): Update.
10875 * printcmd.c (do_one_display, print_variable_and_value): Update.
10876 * mi/mi-main.c (mi_print_exception): Update.
10877 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10878 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10879 * linux-nat.c (linux_nat_target::attach): Update.
10880 * linux-fork.c (class scoped_switch_fork_info): Update.
10881 * infrun.c (displaced_step_prepare): Update.
10882 * infcall.c (call_function_by_hand_dummy): Update.
10883 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10884 * gnu-v3-abi.c (print_one_vtable): Update.
10885 * frame.c (get_prev_frame_always): Update.
10886 * f-valprint.c (info_common_command_for_block): Update.
10887 * exec.c (try_open_exec_file): Update.
10888 * exceptions.c (print_exception, exception_print)
10889 (exception_fprintf, exception_print_same): Update.
10890 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10891 * dwarf-index-cache.c (index_cache::store)
10892 (index_cache::lookup_gdb_index): Update.
10893 * darwin-nat.c (maybe_cache_shell): Update.
10894 * cp-valprint.c (cp_print_value_fields): Update.
10895 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10896 (gcc_cplus_symbol_address): Update.
10897 * compile/compile-c-symbols.c (gcc_convert_symbol)
10898 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10899 * common/selftest.c: Update.
10900 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10901 a std::string.
10902 (exception_try_scope_entry, exception_try_scope_exit): Don't
10903 declare.
10904 (struct exception_try_scope): Remove.
10905 (TRY): Don't use exception_try_scope.
10906 (struct gdb_exception): Add constructor, operator=.
10907 <what>: New method.
10908 (struct gdb_exception_RETURN_MASK_ALL)
10909 (struct gdb_exception_RETURN_MASK_ERROR)
10910 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10911 (struct gdb_quit_bad_alloc): Update.
10912 * common/common-exceptions.c (exception_none): Change
10913 initializer.
10914 (struct catcher) <state, exception>: Initialize inline.
10915 <prev>: Remove member.
10916 (current_catcher): Remove.
10917 (catchers): New global.
10918 (exceptions_state_mc_init): Simplify.
10919 (catcher_pop): Remove.
10920 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10921 (try_scope_depth, exception_try_scope_entry)
10922 (exception_try_scope_exit): Remove.
10923 (throw_exception_sjlj): Update.
10924 (exception_messages, exception_messages_size): Remove.
10925 (throw_it): Simplify.
10926 (gdb_exception_sliced_copy): Remove.
10927 (throw_exception_cxx): Update.
10928 * cli/cli-script.c (script_from_file): Update.
10929 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10930 Update.
10931 * ada-valprint.c (ada_val_print): Update.
10932 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10933 (create_excep_cond_exprs): Update.
10934
c5c10118
TT
109352019-04-08 Tom Tromey <tom@tromey.com>
10936
10937 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10938 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10939 (TRY, CATCH, END_CATCH): Remove some definitions.
10940 * common/common-exceptions.c: Don't use GDB_XCPT.
10941 (catcher_list_size): Remove.
10942 (throw_exception, throw_it): Simplify.
10943
4de283e4
TT
109442019-04-05 Tom Tromey <tom@tromey.com>
10945
10946 Revert the header-sorting patch.
10947 * ft32-tdep.c: Revert.
10948 * frv-tdep.c: Revert.
10949 * frv-linux-tdep.c: Revert.
10950 * frame.c: Revert.
10951 * frame-unwind.c: Revert.
10952 * frame-base.c: Revert.
10953 * fork-child.c: Revert.
10954 * findvar.c: Revert.
10955 * findcmd.c: Revert.
10956 * filesystem.c: Revert.
10957 * filename-seen-cache.h: Revert.
10958 * filename-seen-cache.c: Revert.
10959 * fbsd-tdep.c: Revert.
10960 * fbsd-nat.h: Revert.
10961 * fbsd-nat.c: Revert.
10962 * f-valprint.c: Revert.
10963 * f-typeprint.c: Revert.
10964 * f-lang.c: Revert.
10965 * extension.h: Revert.
10966 * extension.c: Revert.
10967 * extension-priv.h: Revert.
10968 * expprint.c: Revert.
10969 * exec.h: Revert.
10970 * exec.c: Revert.
10971 * exceptions.c: Revert.
10972 * event-top.c: Revert.
10973 * event-loop.c: Revert.
10974 * eval.c: Revert.
10975 * elfread.c: Revert.
10976 * dwarf2read.h: Revert.
10977 * dwarf2read.c: Revert.
10978 * dwarf2loc.c: Revert.
10979 * dwarf2expr.h: Revert.
10980 * dwarf2expr.c: Revert.
10981 * dwarf2-frame.c: Revert.
10982 * dwarf2-frame-tailcall.c: Revert.
10983 * dwarf-index-write.h: Revert.
10984 * dwarf-index-write.c: Revert.
10985 * dwarf-index-common.c: Revert.
10986 * dwarf-index-cache.h: Revert.
10987 * dwarf-index-cache.c: Revert.
10988 * dummy-frame.c: Revert.
10989 * dtrace-probe.c: Revert.
10990 * disasm.h: Revert.
10991 * disasm.c: Revert.
10992 * disasm-selftests.c: Revert.
10993 * dictionary.c: Revert.
10994 * dicos-tdep.c: Revert.
10995 * demangle.c: Revert.
10996 * dcache.h: Revert.
10997 * dcache.c: Revert.
10998 * darwin-nat.h: Revert.
10999 * darwin-nat.c: Revert.
11000 * darwin-nat-info.c: Revert.
11001 * d-valprint.c: Revert.
11002 * d-namespace.c: Revert.
11003 * d-lang.c: Revert.
11004 * ctf.c: Revert.
11005 * csky-tdep.c: Revert.
11006 * csky-linux-tdep.c: Revert.
11007 * cris-tdep.c: Revert.
11008 * cris-linux-tdep.c: Revert.
11009 * cp-valprint.c: Revert.
11010 * cp-support.c: Revert.
11011 * cp-namespace.c: Revert.
11012 * cp-abi.c: Revert.
11013 * corelow.c: Revert.
11014 * corefile.c: Revert.
11015 * continuations.c: Revert.
11016 * completer.h: Revert.
11017 * completer.c: Revert.
11018 * complaints.c: Revert.
11019 * coffread.c: Revert.
11020 * coff-pe-read.c: Revert.
11021 * cli-out.h: Revert.
11022 * cli-out.c: Revert.
11023 * charset.c: Revert.
11024 * c-varobj.c: Revert.
11025 * c-valprint.c: Revert.
11026 * c-typeprint.c: Revert.
11027 * c-lang.c: Revert.
11028 * buildsym.c: Revert.
11029 * buildsym-legacy.c: Revert.
11030 * build-id.h: Revert.
11031 * build-id.c: Revert.
11032 * btrace.c: Revert.
11033 * bsd-uthread.c: Revert.
11034 * breakpoint.h: Revert.
11035 * breakpoint.c: Revert.
11036 * break-catch-throw.c: Revert.
11037 * break-catch-syscall.c: Revert.
11038 * break-catch-sig.c: Revert.
11039 * blockframe.c: Revert.
11040 * block.c: Revert.
11041 * bfin-tdep.c: Revert.
11042 * bfin-linux-tdep.c: Revert.
11043 * bfd-target.c: Revert.
11044 * bcache.c: Revert.
11045 * ax-general.c: Revert.
11046 * ax-gdb.h: Revert.
11047 * ax-gdb.c: Revert.
11048 * avr-tdep.c: Revert.
11049 * auxv.c: Revert.
11050 * auto-load.c: Revert.
11051 * arm-wince-tdep.c: Revert.
11052 * arm-tdep.c: Revert.
11053 * arm-symbian-tdep.c: Revert.
11054 * arm-pikeos-tdep.c: Revert.
11055 * arm-obsd-tdep.c: Revert.
11056 * arm-nbsd-tdep.c: Revert.
11057 * arm-nbsd-nat.c: Revert.
11058 * arm-linux-tdep.c: Revert.
11059 * arm-linux-nat.c: Revert.
11060 * arm-fbsd-tdep.c: Revert.
11061 * arm-fbsd-nat.c: Revert.
11062 * arm-bsd-tdep.c: Revert.
11063 * arch-utils.c: Revert.
11064 * arc-tdep.c: Revert.
11065 * arc-newlib-tdep.c: Revert.
11066 * annotate.h: Revert.
11067 * annotate.c: Revert.
11068 * amd64-windows-tdep.c: Revert.
11069 * amd64-windows-nat.c: Revert.
11070 * amd64-tdep.c: Revert.
11071 * amd64-sol2-tdep.c: Revert.
11072 * amd64-obsd-tdep.c: Revert.
11073 * amd64-obsd-nat.c: Revert.
11074 * amd64-nbsd-tdep.c: Revert.
11075 * amd64-nbsd-nat.c: Revert.
11076 * amd64-nat.c: Revert.
11077 * amd64-linux-tdep.c: Revert.
11078 * amd64-linux-nat.c: Revert.
11079 * amd64-fbsd-tdep.c: Revert.
11080 * amd64-fbsd-nat.c: Revert.
11081 * amd64-dicos-tdep.c: Revert.
11082 * amd64-darwin-tdep.c: Revert.
11083 * amd64-bsd-nat.c: Revert.
11084 * alpha-tdep.c: Revert.
11085 * alpha-obsd-tdep.c: Revert.
11086 * alpha-nbsd-tdep.c: Revert.
11087 * alpha-mdebug-tdep.c: Revert.
11088 * alpha-linux-tdep.c: Revert.
11089 * alpha-linux-nat.c: Revert.
11090 * alpha-bsd-tdep.c: Revert.
11091 * alpha-bsd-nat.c: Revert.
11092 * aix-thread.c: Revert.
11093 * agent.c: Revert.
11094 * addrmap.c: Revert.
11095 * ada-varobj.c: Revert.
11096 * ada-valprint.c: Revert.
11097 * ada-typeprint.c: Revert.
11098 * ada-tasks.c: Revert.
11099 * ada-lang.c: Revert.
11100 * aarch64-tdep.c: Revert.
11101 * aarch64-ravenscar-thread.c: Revert.
11102 * aarch64-newlib-tdep.c: Revert.
11103 * aarch64-linux-tdep.c: Revert.
11104 * aarch64-linux-nat.c: Revert.
11105 * aarch64-fbsd-tdep.c: Revert.
11106 * aarch64-fbsd-nat.c: Revert.
11107 * aarch32-linux-nat.c: Revert.
11108
d55e5aa6
TT
111092019-04-05 Tom Tromey <tom@tromey.com>
11110
11111 * ft32-tdep.c: Sort headers.
11112 * frv-tdep.c: Sort headers.
11113 * frv-linux-tdep.c: Sort headers.
11114 * frame.c: Sort headers.
11115 * frame-unwind.c: Sort headers.
11116 * frame-base.c: Sort headers.
11117 * fork-child.c: Sort headers.
11118 * findvar.c: Sort headers.
11119 * findcmd.c: Sort headers.
11120 * filesystem.c: Sort headers.
11121 * filename-seen-cache.h: Sort headers.
11122 * filename-seen-cache.c: Sort headers.
11123 * fbsd-tdep.c: Sort headers.
11124 * fbsd-nat.h: Sort headers.
11125 * fbsd-nat.c: Sort headers.
11126 * f-valprint.c: Sort headers.
11127 * f-typeprint.c: Sort headers.
11128 * f-lang.c: Sort headers.
11129 * extension.h: Sort headers.
11130 * extension.c: Sort headers.
11131 * extension-priv.h: Sort headers.
11132 * expprint.c: Sort headers.
11133 * exec.h: Sort headers.
11134 * exec.c: Sort headers.
11135 * exceptions.c: Sort headers.
11136 * event-top.c: Sort headers.
11137 * event-loop.c: Sort headers.
11138 * eval.c: Sort headers.
11139 * elfread.c: Sort headers.
11140 * dwarf2read.h: Sort headers.
11141 * dwarf2read.c: Sort headers.
11142 * dwarf2loc.c: Sort headers.
11143 * dwarf2expr.h: Sort headers.
11144 * dwarf2expr.c: Sort headers.
11145 * dwarf2-frame.c: Sort headers.
11146 * dwarf2-frame-tailcall.c: Sort headers.
11147 * dwarf-index-write.h: Sort headers.
11148 * dwarf-index-write.c: Sort headers.
11149 * dwarf-index-common.c: Sort headers.
11150 * dwarf-index-cache.h: Sort headers.
11151 * dwarf-index-cache.c: Sort headers.
11152 * dummy-frame.c: Sort headers.
11153 * dtrace-probe.c: Sort headers.
11154 * disasm.h: Sort headers.
11155 * disasm.c: Sort headers.
11156 * disasm-selftests.c: Sort headers.
11157 * dictionary.c: Sort headers.
11158 * dicos-tdep.c: Sort headers.
11159 * demangle.c: Sort headers.
11160 * dcache.h: Sort headers.
11161 * dcache.c: Sort headers.
11162 * darwin-nat.h: Sort headers.
11163 * darwin-nat.c: Sort headers.
11164 * darwin-nat-info.c: Sort headers.
11165 * d-valprint.c: Sort headers.
11166 * d-namespace.c: Sort headers.
11167 * d-lang.c: Sort headers.
11168 * ctf.c: Sort headers.
11169 * csky-tdep.c: Sort headers.
11170 * csky-linux-tdep.c: Sort headers.
11171 * cris-tdep.c: Sort headers.
11172 * cris-linux-tdep.c: Sort headers.
11173 * cp-valprint.c: Sort headers.
11174 * cp-support.c: Sort headers.
11175 * cp-namespace.c: Sort headers.
11176 * cp-abi.c: Sort headers.
11177 * corelow.c: Sort headers.
11178 * corefile.c: Sort headers.
11179 * continuations.c: Sort headers.
11180 * completer.h: Sort headers.
11181 * completer.c: Sort headers.
11182 * complaints.c: Sort headers.
11183 * coffread.c: Sort headers.
11184 * coff-pe-read.c: Sort headers.
11185 * cli-out.h: Sort headers.
11186 * cli-out.c: Sort headers.
11187 * charset.c: Sort headers.
11188 * c-varobj.c: Sort headers.
11189 * c-valprint.c: Sort headers.
11190 * c-typeprint.c: Sort headers.
11191 * c-lang.c: Sort headers.
11192 * buildsym.c: Sort headers.
11193 * buildsym-legacy.c: Sort headers.
11194 * build-id.h: Sort headers.
11195 * build-id.c: Sort headers.
11196 * btrace.c: Sort headers.
11197 * bsd-uthread.c: Sort headers.
11198 * breakpoint.h: Sort headers.
11199 * breakpoint.c: Sort headers.
11200 * break-catch-throw.c: Sort headers.
11201 * break-catch-syscall.c: Sort headers.
11202 * break-catch-sig.c: Sort headers.
11203 * blockframe.c: Sort headers.
11204 * block.c: Sort headers.
11205 * bfin-tdep.c: Sort headers.
11206 * bfin-linux-tdep.c: Sort headers.
11207 * bfd-target.c: Sort headers.
11208 * bcache.c: Sort headers.
11209 * ax-general.c: Sort headers.
11210 * ax-gdb.h: Sort headers.
11211 * ax-gdb.c: Sort headers.
11212 * avr-tdep.c: Sort headers.
11213 * auxv.c: Sort headers.
11214 * auto-load.c: Sort headers.
11215 * arm-wince-tdep.c: Sort headers.
11216 * arm-tdep.c: Sort headers.
11217 * arm-symbian-tdep.c: Sort headers.
11218 * arm-pikeos-tdep.c: Sort headers.
11219 * arm-obsd-tdep.c: Sort headers.
11220 * arm-nbsd-tdep.c: Sort headers.
11221 * arm-nbsd-nat.c: Sort headers.
11222 * arm-linux-tdep.c: Sort headers.
11223 * arm-linux-nat.c: Sort headers.
11224 * arm-fbsd-tdep.c: Sort headers.
11225 * arm-fbsd-nat.c: Sort headers.
11226 * arm-bsd-tdep.c: Sort headers.
11227 * arch-utils.c: Sort headers.
11228 * arc-tdep.c: Sort headers.
11229 * arc-newlib-tdep.c: Sort headers.
11230 * annotate.h: Sort headers.
11231 * annotate.c: Sort headers.
11232 * amd64-windows-tdep.c: Sort headers.
11233 * amd64-windows-nat.c: Sort headers.
11234 * amd64-tdep.c: Sort headers.
11235 * amd64-sol2-tdep.c: Sort headers.
11236 * amd64-obsd-tdep.c: Sort headers.
11237 * amd64-obsd-nat.c: Sort headers.
11238 * amd64-nbsd-tdep.c: Sort headers.
11239 * amd64-nbsd-nat.c: Sort headers.
11240 * amd64-nat.c: Sort headers.
11241 * amd64-linux-tdep.c: Sort headers.
11242 * amd64-linux-nat.c: Sort headers.
11243 * amd64-fbsd-tdep.c: Sort headers.
11244 * amd64-fbsd-nat.c: Sort headers.
11245 * amd64-dicos-tdep.c: Sort headers.
11246 * amd64-darwin-tdep.c: Sort headers.
11247 * amd64-bsd-nat.c: Sort headers.
11248 * alpha-tdep.c: Sort headers.
11249 * alpha-obsd-tdep.c: Sort headers.
11250 * alpha-nbsd-tdep.c: Sort headers.
11251 * alpha-mdebug-tdep.c: Sort headers.
11252 * alpha-linux-tdep.c: Sort headers.
11253 * alpha-linux-nat.c: Sort headers.
11254 * alpha-bsd-tdep.c: Sort headers.
11255 * alpha-bsd-nat.c: Sort headers.
11256 * aix-thread.c: Sort headers.
11257 * agent.c: Sort headers.
11258 * addrmap.c: Sort headers.
11259 * ada-varobj.c: Sort headers.
11260 * ada-valprint.c: Sort headers.
11261 * ada-typeprint.c: Sort headers.
11262 * ada-tasks.c: Sort headers.
11263 * ada-lang.c: Sort headers.
11264 * aarch64-tdep.c: Sort headers.
11265 * aarch64-ravenscar-thread.c: Sort headers.
11266 * aarch64-newlib-tdep.c: Sort headers.
11267 * aarch64-linux-tdep.c: Sort headers.
11268 * aarch64-linux-nat.c: Sort headers.
11269 * aarch64-fbsd-tdep.c: Sort headers.
11270 * aarch64-fbsd-nat.c: Sort headers.
11271 * aarch32-linux-nat.c: Sort headers.
11272
699bd4cf
TT
112732019-04-04 Tom Tromey <tom@tromey.com>
11274
11275 * varobj.c (varobj_create): Update.
11276 * rust-exp.y (struct rust_parser) <update_innermost_block,
11277 lookup_symbol>: New methods.
11278 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11279 Rename.
11280 (rust_parser::rust_lookup_type)
11281 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11282 * printcmd.c (display_command, do_one_display): Update.
11283 * parser-defs.h (struct parser_state) <parser_state>: Add
11284 "tracker" parameter.
11285 (block_tracker): New member.
11286 (class innermost_block_tracker) <innermost_block_tracker>: Add
11287 "types" parameter.
11288 <reset>: Remove method.
11289 (innermost_block): Don't declare.
11290 (null_post_parser): Update.
11291 * parse.c (innermost_block): Remove global.
11292 (write_dollar_variable): Update.
11293 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11294 Remove "tracker_types" parameter.
11295 (parse_expression): Add "tracker" parameter.
11296 (parse_expression_for_completion): Update.
11297 (null_post_parser): Add "tracker" parameter.
11298 * p-exp.y: Update rules.
11299 * m2-exp.y: Update rules.
11300 * language.h (struct language_defn) <la_post_parser>: Add
11301 "tracker" parameter.
11302 * go-exp.y: Update rules.
11303 * f-exp.y: Update rules.
11304 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11305 parameter.
11306 * d-exp.y: Update rules.
11307 * c-exp.y: Update rules.
11308 * breakpoint.c (set_breakpoint_condition): Create an
11309 innermost_block_tracker.
11310 (watch_command_1): Likewise.
11311 * ada-lang.c (resolve): Add "tracker" parameter.
11312 (resolve_subexp): Likewise.
11313 * ada-exp.y (write_var_from_sym): Update.
11314
dac43e32
TT
113152019-04-04 Tom Tromey <tom@tromey.com>
11316
11317 * type-stack.h: New file.
11318 * type-stack.c: New file.
11319 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11320 type-stack.h.
11321 (insert_into_type_stack, insert_type, push_type, push_type_int)
11322 (insert_type_address_space, pop_type, pop_type_int)
11323 (pop_typelist, pop_type_stack, append_type_stack)
11324 (push_type_stack, get_type_stack, push_typelist)
11325 (follow_type_instance_flags, follow_types): Don't declare.
11326 * parse.c (type_stack): Remove global.
11327 (parse_exp_in_context): Update.
11328 (insert_into_type_stack, insert_type, push_type, push_type_int)
11329 (insert_type_address_space, pop_type, pop_type_int)
11330 (pop_typelist, pop_type_stack, append_type_stack)
11331 (push_type_stack, get_type_stack, push_typelist)
11332 (follow_type_instance_flags, follow_types): Remove (moved to
11333 type-stack.c).
11334 * f-exp.y (type_stack): New global.
11335 Update rules.
11336 (push_kind_type, f_parse): Update.
11337 * d-exp.y (type_stack): New global.
11338 Update rules.
11339 (d_parse): Update.
11340 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11341 Update rules.
11342 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11343 (HFILES_NO_SRCDIR): Add type-stack.h.
11344
2a612529
TT
113452019-04-04 Tom Tromey <tom@tromey.com>
11346
11347 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11348 (rust_parser::convert_ast_to_expression, rust_parse)
11349 (rust_lex_test_completion, rust_lex_tests): Update.
11350 * parser-defs.h (struct expr_completion_state): New.
11351 (struct parser_state) <parser_state>: Add completion parameter.
11352 <mark_struct_expression, mark_completion_tag>: New methods.
11353 <parse_completion, m_completion_state>: New members.
11354 (prefixify_expression, null_post_parser): Update.
11355 (mark_struct_expression, mark_completion_tag): Don't declare.
11356 * parse.c (parse_completion, expout_last_struct)
11357 (expout_tag_completion_type, expout_completion_name): Remove
11358 globals.
11359 (parser_state::mark_struct_expression)
11360 (parser_state::mark_completion_tag): Now methods.
11361 (prefixify_expression): Add last_struct parameter.
11362 (prefixify_subexp): Likewise.
11363 (parse_exp_1): Update.
11364 (parse_exp_in_context): Add cstate parameter. Update.
11365 (parse_expression_for_completion): Create an
11366 expr_completion_state.
11367 (null_post_parser): Add "completion" parameter.
11368 * p-exp.y: Update rules.
11369 (yylex): Update.
11370 * language.h (struct language_defn) <la_post_parser>: Add
11371 "completing" parameter.
11372 * go-exp.y: Update rules.
11373 (lex_one_token): Update.
11374 * expression.h (parse_completion): Don't declare.
11375 * d-exp.y: Update rules.
11376 (lex_one_token): Update rules.
11377 * c-exp.y: Update rules.
11378 (lex_one_token): Update.
11379 * ada-lang.c (resolve): Add "parse_completion" parameter.
11380 (resolve_subexp): Likewise.
11381 (ada_resolve_function): Likewise.
11382
43476f0b
TT
113832019-04-04 Tom Tromey <tom@tromey.com>
11384
11385 * parser-defs.h (struct parser_state) <start_arglist,
11386 end_arglist>: New methods.
11387 <arglist_len, m_funcall_chain>: New members.
11388 (arglist_len, start_arglist, end_arglist): Don't declare.
11389 * parse.c (arglist_len, funcall_chain): Remove global.
11390 (start_arglist, end_arglist): Remove functions.
11391 (parse_exp_in_context): Update.
11392 * p-exp.y: Update rules.
11393 * m2-exp.y: Update rules.
11394 * go-exp.y: Update rules.
11395 * f-exp.y: Update rules.
11396 * d-exp.y: Update rules.
11397 * c-exp.y: Update rules.
11398
5776fca3
TT
113992019-04-04 Tom Tromey <tom@tromey.com>
11400
11401 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11402 lex_operator, push_back>: New methods.
11403 Update all rules.
11404 (rust_parser::lex_hex, lex_escape): Rename and update.
11405 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11406 (rust_parser::lex_operator): Rename and update.
11407 (rust_parser::lex_number, rustyylex, rustyyerror)
11408 (rust_lex_test_init, rust_lex_test_sequence)
11409 (rust_lex_test_push_back, rust_lex_tests): Update.
11410 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11411 parameter.
11412 <lexptr, prev_lexptr>: New members.
11413 (lexptr, prev_lexptr): Don't declare.
11414 * parse.c (lexptr, prev_lexptr): Remove globals.
11415 (parse_exp_in_context): Update.
11416 * p-exp.y (yylex, yyerror): Update.
11417 * m2-exp.y (parse_number, yylex, yyerror): Update.
11418 * go-exp.y (lex_one_token, yyerror): Update.
11419 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11420 * d-exp.y (lex_one_token, yyerror): Update.
11421 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11422 (lex_one_token, yyerror): Update.
11423 * ada-lex.l (YY_INPUT): Update.
11424 (rewind_to_char): Update.
11425 * ada-exp.y (yyerror): Update.
11426
8621b685
TT
114272019-04-04 Tom Tromey <tom@tromey.com>
11428
11429 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11430 * parser-defs.h (struct parser_state) <parser_state>: Add new
11431 parameter.
11432 <comma_terminates>: New member.
11433 (comma_terminates): Don't declare global.
11434 * parse.c (comma_terminates): Remove global.
11435 (parse_exp_in_context): Update.
11436 * p-exp.y (yylex): Update.
11437 * m2-exp.y (yylex): Update.
11438 * go-exp.y (lex_one_token): Update.
11439 * f-exp.y (yylex): Update.
11440 * d-exp.y (lex_one_token): Update.
11441 * c-exp.y (lex_one_token): Update.
11442 * ada-lex.l: Update.
11443
28aaf3fd
TT
114442019-04-04 Tom Tromey <tom@tromey.com>
11445
11446 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11447 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11448 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11449 * parser-defs.h (paren_depth): Don't declare.
11450 * parse.c (paren_depth): Remove global.
11451 (parse_exp_in_context): Update.
11452 * p-exp.y (paren_depth): New global.
11453 (pascal_parse): Initialize it.
11454 * m2-exp.y (paren_depth): New global.
11455 (m2_parse): Initialize it.
11456 * go-exp.y (paren_depth): New global.
11457 (go_parse): Initialize it.
11458 * f-exp.y (paren_depth): New global.
11459 (f_parse): Initialize it.
11460 * d-exp.y (paren_depth): New global.
11461 (d_parse): Initialize it.
11462 * c-exp.y (paren_depth): New global.
11463 (c_parse): Initialize it.
11464 * ada-lex.l (paren_depth): New global.
11465 (lexer_init): Initialize it.
11466
1e58a4a4
TT
114672019-04-04 Tom Tromey <tom@tromey.com>
11468
11469 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11470 (rust_parser::convert_ast_to_type)
11471 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11472 * parser-defs.h (struct parser_state) <parser_state>: Add
11473 parameters. Initialize new members.
11474 <expression_context_block, expression_context_pc>: New members.
11475 * parse.c (expression_context_block, expression_context_pc):
11476 Remove globals.
11477 (parse_exp_in_context): Update.
11478 * p-exp.y: Update all rules.
11479 (yylex): Update.
11480 * m2-exp.y: Update all rules.
11481 (yylex): Update.
11482 * go-exp.y (yylex): Update.
11483 * f-exp.y (yylex): Update.
11484 * d-exp.y: Update all rules.
11485 (yylex): Update.
11486 * c-exp.y: Update all rules.
11487 (lex_one_token, classify_name, yylex, c_parse): Update.
11488 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11489
37eedb39
TT
114902019-04-04 Tom Tromey <tom@tromey.com>
11491
11492 * gdbarch.h, gdbarch.c: Rebuild.
11493 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11494 * stap-probe.h:
11495 (struct stap_parse_info): Replace "parser_state" with
11496 "expr_builder".
11497 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11498 (parser_state): New class.
11499 * parse.c (expr_builder): Rename.
11500 (expr_builder::release): Rename.
11501 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11502 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11503 (write_exp_elt_longcst, write_exp_elt_floatcst)
11504 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11505 (write_exp_string_vector, write_exp_bitstring)
11506 (write_exp_msymbol, mark_struct_expression)
11507 (write_dollar_variable)
11508 (insert_type_address_space, increase_expout_size): Replace
11509 "parser_state" with "expr_builder".
11510 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11511 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11512 "parser_state" with "expr_builder".
11513
73923d7e
TT
115142019-04-04 Tom Tromey <tom@tromey.com>
11515
11516 * rust-exp.y: Replace "parse_language" with method call.
11517 * p-exp.y:
11518 (yylex): Replace "parse_language" with method call.
11519 * m2-exp.y:
11520 (yylex): Replace "parse_language" with method call.
11521 * go-exp.y (classify_name): Replace "parse_language" with method
11522 call.
11523 * f-exp.y (yylex): Replace "parse_language" with method call.
11524 * d-exp.y (lex_one_token): Replace "parse_language" with method
11525 call.
11526 * c-exp.y:
11527 (lex_one_token, classify_name, yylex): Replace "parse_language"
11528 with method call.
11529 * ada-exp.y (find_primitive_type, type_char)
11530 (type_system_address): Replace "parse_language" with method call.
11531
fa9f5be6
TT
115322019-04-04 Tom Tromey <tom@tromey.com>
11533
11534 * rust-exp.y: Replace "parse_gdbarch" with method call.
11535 * parse.c (write_dollar_variable, insert_type_address_space):
11536 Replace "parse_gdbarch" with method call.
11537 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11538 call.
11539 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11540 call.
11541 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11542 "parse_gdbarch" with method call.
11543 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11544 with method call.
11545 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11546 "parse_gdbarch" with method call.
11547 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11548 "parse_gdbarch" with method call.
11549 * c-exp.y (parse_type, parse_number, classify_name): Replace
11550 "parse_gdbarch" with method call.
11551 * ada-lex.l: Replace "parse_gdbarch" with method call.
11552 * ada-exp.y (parse_type, find_primitive_type, type_char)
11553 (type_system_address): Replace "parse_gdbarch" with method call.
11554
1201a264
TT
115552019-04-04 Tom Tromey <tom@tromey.com>
11556
11557 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11558 * stap-probe.c (stap_parse_argument): Update.
11559 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11560 initial_size parameter.
11561 * rust-exp.y (rust_lex_tests): Update.
11562 * parse.c (parser_state): Update.
11563 (parse_exp_in_context): Update.
11564 * parser-defs.h (struct parser_state) <parser_state>: Remove
11565 "initial_size" parameter.
11566
e3980ce2
TT
115672019-04-04 Tom Tromey <tom@tromey.com>
11568
11569 * parser-defs.h (increase_expout_size): Don't declare.
11570 * parse.c (increase_expout_size): Now static.
11571
e9f8e3f1
TS
115722019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11573
11574 * gnu-nat.c (gnu_nat_target::wait): Fix
11575 target_waitstatus_to_string call.
11576
d7df6549
AB
115772019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11578
11579 * eval.c (evaluate_subexp_standard): Handle internal functions
11580 during Fortran function call handling.
11581
8bdc1658
AB
115822019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11583
11584 * NEWS: Mention new internal functions.
11585 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11586 (read_base_type): Use dwarf2_init_complex_target_type.
11587 * value.c (creal_internal_fn): New function.
11588 (cimag_internal_fn): New function.
11589 (_initialize_values): Register new internal functions.
11590
c29705b7
PW
115912019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11592
11593 * infrun.c (stop_all_threads): If debug_infrun, always
11594 trace the wait status after wait_one, using
11595 target_waitstatus_to_string and target_pid_to_str.
11596 (handle_inferior_event): Replace various trace of
11597 wait status kind by a single trace.
11598 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11599 wait status kind image by target_waitstatus_to_string.
11600 * target/waitstatus.c (target_waitstatus_to_string): Fix
11601 obsolete comment.
11602
05caa1d2
TT
116032019-04-01 Tom Tromey <tromey@adacore.com>
11604
11605 PR symtab/23331:
11606 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11607
9d1447e0
SDJ
116082019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11609 Pedro Alves <palves@redhat.com>
11610
11611 * top.c (quit_force): Call 'finalize_values'.
11612 * value.c (finalize_values): New function.
11613 * value.h (finalize_values): Declare.
11614
7734102d
EZ
116152019-03-30 Eli Zaretskii <eliz@gnu.org>
11616
11617 * NEWS: Announce $_gdb_major and $_gdb_minor.
11618
11619 * top.c (init_gdb_version_vars): New function.
11620 (gdb_init): Call init_gdb_version_vars.
11621
188e1fa9
TT
116222019-03-29 Tom Tromey <tromey@adacore.com>
11623
11624 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11625 help text. Remove dead code.
11626
2880242d
KS
116272019-03-29 Keith Seitz <keiths@redhat.com>
11628
11629 From Siddhesh Poyarekar:
11630 * f-lang.h (f77_get_upperbound): Return LONGEST.
11631 (f77_get_lowerbound): Likewise.
11632 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11633 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11634 print them.
11635 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11636 plongest to format print it.
11637 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11638 (f77_get_upperbound): Likewise.
11639 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11640 LOWER_BOUND to LONGEST.
11641 (f77_create_arrayprint_offset_tbl): Likewise.
11642
cc1defb1
KS
116432019-03-29 Keith Seitz <keiths@redhat.com>
11644
11645 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11646 %s/pulongest for TYPE_LENGTH instead of %d in format
11647 strings.
11648 * ada-typerint.c (ada_print_type): Likewise.
11649 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11650 * compile/compile-c-support.c (generate_register_struct): Likewise.
11651 * gdbtypes.c (recursive_dump_type): Likewise.
11652 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11653 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11654 instead of %d in format strings.
11655 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11656 to std::min to ULONGEST.
11657 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11658 instead of %d in format strings.
11659 * tracepoint.c (info_scope_command): Likewise.
11660 * typeprint.c (print_offset_data::update)
11661 (print_offset_data::finish): Likewise.
11662 * xtensa-tdep.c (xtensa_store_return_value)
11663 (xtensa_push_dummy_call): Likewise.
11664
e432ccf1
JT
116652019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11666
11667 * windows-nat.c (display_selector): Fixed format specifications
11668 for 64-bit Cygwin.
11669
65d2b333
PW
116702019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11671
11672 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11673
f489207e
SL
116742019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11675
11676 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11677 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11678 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11679 (nios2_linux_init_abi): Install it.
11680
bffa1015
AH
116812019-03-28 Alan Hayward <alan.hayward@arm.com>
11682
11683 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11684
fc96163a
AH
116852019-03-28 Alan Hayward <alan.hayward@arm.com>
11686
11687 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11688
20dc7e9b
PW
116892019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11690 Tom Tromey <tromey@adacore.com>
11691
11692 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11693
7f5331a8
JB
116942019-03-26 Joel Brobecker <brobecker@adacore.com>
11695
11696 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11697 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11698 method to compute the bounds of range types. Also print "[evaluated]"
11699 if the bounds' values come from a dynamic evaluation.
11700
18c77628
AB
117012019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11702
11703 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11704 whitespace when pretty printing is on.
11705
53c973f2
AH
117062019-03-26 Alan Hayward <alan.hayward@arm.com>
11707
e79be6e5 11708 * ppc-linux-nat.c: Add include.
53c973f2 11709
d851aa71
AH
117102019-03-26 Alan Hayward <alan.hayward@arm.com>
11711
e79be6e5 11712 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 11713
2fe7bab7
AH
117142019-03-26 Alan Hayward <alan.hayward@arm.com>
11715
e79be6e5 11716 * arm-linux-nat.c: Add include.
2fe7bab7 11717
068ef30e
SM
117182019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11719
11720 * source-cache.c (source_cache::get_source_lines): Re-read
11721 fullname after calling open_source_file.
11722
81a24d04
JB
117232019-03-25 John Baldwin <jhb@FreeBSD.org>
11724
11725 * NEWS: Mention TLS support for FreeBSD.
11726
79e7ae11
TT
117272019-03-25 Tom Tromey <tromey@adacore.com>
11728
11729 * minsyms.c (BUNCH_SIZE): Update comment.
11730 (~minimal_symbol_reader): Remove old comment.
11731 (compact_minimal_symbols): Update comment.
11732 (minimal_symbol_reader::install): Remove old comment. Update
11733 other comments.
11734
d45963c2
AH
117352019-03-25 Alan Hayward <alan.hayward@arm.com>
11736
11737 * s390-linux-nat.c: Add include.
11738
0f83012e
AH
117392019-03-25 Alan Hayward <alan.hayward@arm.com>
11740
11741 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11742 Call linux_get_hwcap.
11743 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11744 Likewise.
11745 (aarch64_linux_get_hwcap): Remove function.
11746 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11747 declaration.
11748 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11749 linux_get_hwcap.
11750 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11751 * linux-tdep.c (linux_get_hwcap): Add function.
11752 (linux_get_hwcap2): Likewise.
11753 * linux-tdep.h (linux_get_hwcap): Add declaration.
11754 (linux_get_hwcap2): Likewise.
11755 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11756 (ppc_linux_get_hwcap2): Likewise.
11757 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11758 linux_get_hwcap.
11759 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11760 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11761 (ppc_linux_nat_target::read_description): Likewise.
11762 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11763 * s390-linux-nat.c: Likewise.
11764 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11765
6640a367
TT
117662019-03-24 Tom Tromey <tom@tromey.com>
11767
11768 * ada-lang.c (standard_lookup): Simplify initialization.
11769 (ada_lookup_symbol_nonlocal): Simplify return.
11770 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11771 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11772 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11773 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11774 initialization.
11775 * solib.c (solib_global_lookup): Simplify.
11776 * symtab.c (null_block_symbol): Remove.
11777 (symbol_cache_lookup): Simplify returns.
11778 (lookup_language_this): Simplify returns.
11779 (lookup_symbol_aux): Simplify return.
11780 (lookup_local_symbol): Simplify returns.
11781 (lookup_global_symbol_from_objfile): Simplify return.
11782 (lookup_symbol_in_objfile_symtabs)
11783 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11784 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11785 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11786 * cp-namespace.c (cp_lookup_bare_symbol)
11787 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11788 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11789 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11790 (cp_lookup_symbol_via_imports): Simplify initialization.
11791 (find_symbol_in_baseclass): Likewise.
11792 * symtab.h (null_block_symbol): Remove.
11793 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11794 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11795 (d_lookup_symbol_module): Likewise.
11796 (find_symbol_in_baseclass): Simplify initialization.
11797
a930ebcd
TT
117982019-03-24 Tom Tromey <tom@tromey.com>
11799
11800 * expression.h: Don't include symtab.h.
11801 (struct block): Forward declare.
11802
582942f4
TT
118032019-03-24 Tom Tromey <tom@tromey.com>
11804
11805 * c-exp.y (typebase): Remove casts.
11806 * gdbtypes.c (lookup_unsigned_typename, )
11807 (lookup_signed_typename): Remove cast.
11808 * eval.c (parse_to_comma_and_eval): Remove cast.
11809 * parse.c (write_dollar_variable): Remove cast.
11810 * block.h (struct block) <superblock>: Now const.
11811 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11812 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11813 (map_block): Make "block" const.
11814 * symfile.h (struct quick_symbol_functions)
11815 <map_matching_symbols>: Constify block argument to "callback".
11816 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11817 const.
11818 (find_pc_sect_compunit_symtab): Make "b" const.
11819 (find_symbol_at_address): Likewise.
11820 (search_symbols): Likewise.
11821 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11822 (dw2_debug_names_lookup_symbol): Likewise.
11823 (dw2_map_matching_symbols): Update.
11824 * p-valprint.c (pascal_val_print): Remove "block".
11825 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11826 (aux_add_nonlocal_symbols): Make "block" const.
11827 (resolve_subexp): Remove cast.
11828 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11829 const.
11830 (iterate_over_file_blocks): Likewise.
11831 * f-exp.y (%union) <bval>: Remove.
11832 * coffread.c (patch_opaque_types): Make "b" const.
11833 * spu-tdep.c (spu_catch_start): Make "block" const.
11834 * c-valprint.c (print_unpacked_pointer): Remove "block".
11835 * symmisc.c (dump_symtab_1): Make "b" const.
11836 (block_depth): Make "block" const.
11837 * d-exp.y (%union) <bval>: Remove.
11838 * cp-support.h (cp_lookup_rtti_type): Update.
11839 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11840 * psymtab.c (psym_lookup_symbol): Make "block" const.
11841 (maintenance_check_psymtabs): Make "b" const.
11842 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11843 (enumerate_locals, enumerate_args): Update.
11844 * python/py-symtab.c (stpy_global_block): Make "block" const.
11845 (stpy_static_block): Likewise.
11846 * inline-frame.c (block_starting_point_at): Make "new_block"
11847 const.
11848 * block.c (find_block_in_blockvector): Make return type const.
11849 (blockvector_for_pc_sect): Make "b" const.
11850 (find_block_in_blockvector): Make "b" const.
11851
7ad417dd
TT
118522019-03-23 Tom Tromey <tom@tromey.com>
11853
11854 * varobj.c (varobj_create): Update.
11855 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11856 * printcmd.c (display_command, do_one_display): Don't reset
11857 innermost_block.
11858 * parser-defs.h (enum innermost_block_tracker_type): Move to
11859 expression.h.
11860 (innermost_block): Update comment.
11861 * parse.c (parse_exp_1): Add tracker_types parameter.
11862 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11863 tracker_types parameter. Reset innermost_block.
11864 (parse_exp_in_context): Remove.
11865 (parse_expression_for_completion): Update.
11866 * objfiles.c (~objfile): Don't reset expression_context_block or
11867 innermost_block.
11868 * expression.h (enum innermost_block_tracker_type): Move from
11869 parser-defs.h.
11870 (parse_exp_1): Add tracker_types parameter.
11871 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11872 reset innermost_block.
11873
b366c208
TT
118742019-03-23 Tom Tromey <tom@tromey.com>
11875
11876 * objfiles.h: Include bcache.h.
11877
9bb9b2f9
TT
118782019-03-23 Tom Tromey <tom@tromey.com>
11879
11880 * linespec.c (get_current_search_block): Use
11881 scoped_restore_current_language.
11882 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11883
59c28372
AH
118842019-03-22 Alan Hayward <alan.hayward@arm.com>
11885 Jiong Wang <jiong.wang@arm.com>
11886
11887 * aarch64-linux-tdep.c
11888 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11889 section.
11890 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11891
17e116a7
AH
118922019-03-22 Alan Hayward <alan.hayward@arm.com>
11893 Jiong Wang <jiong.wang@arm.com>
11894
11895 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11896 instructions.
11897 (aarch64_analyze_prologue_test): Add PACIASP test.
11898 (aarch64_prologue_prev_register): Unmask PC value.
11899
11e1b75f
AH
119002019-03-22 Alan Hayward <alan.hayward@arm.com>
11901 Jiong Wang <jiong.wang@arm.com>
11902
11903 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11904 (aarch64_dwarf2_prev_register): Unmask PC value.
11905 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11906 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11907 DW_CFA_AARCH64_negate_ra_state.
11908 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11909
34dcc7cf
AH
119102019-03-22 Alan Hayward <alan.hayward@arm.com>
11911 Jiong Wang <jiong.wang@arm.com>
11912
11913 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11914 registers.
11915 (aarch64_pseudo_register_name): Likewise.
11916 (aarch64_pseudo_register_type): Likewise.
11917 (aarch64_pseudo_register_reggroup_p): Likewise.
11918 (aarch64_gdbarch_init): Add pauth registers.
11919 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11920 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11921 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11922 (struct gdbarch_tdep): Add regnum for ra_state.
11923
1ef53e6b
AH
119242019-03-22 Alan Hayward <alan.hayward@arm.com>
11925 Jiong Wang <jiong.wang@arm.com>
11926
11927 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11928
76bed0fd
AH
119292019-03-22 Alan Hayward <alan.hayward@arm.com>
11930 Jiong Wang <jiong.wang@arm.com>
11931
11932 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11933 function.
11934 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11935 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11936 (aarch64_gdbarch_init): Add puth registers.
11937 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11938 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11939 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11940
ee4fbcfa
AH
119412019-03-22 Alan Hayward <alan.hayward@arm.com>
11942 Jiong Wang <jiong.wang@arm.com>
11943
11944 * aarch64-linux-nat.c
11945 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11946 * aarch64-linux-tdep.c
11947 (aarch64_linux_core_read_description): Likewise.
11948 (aarch64_linux_get_hwcap): New function.
11949 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11950 (aarch64_linux_get_hwcap): New declaration.
11951
6dc0ebde
AH
119522019-03-22 Alan Hayward <alan.hayward@arm.com>
11953 Jiong Wang <jiong.wang@arm.com>
11954
11955 * aarch64-linux-nat.c
11956 (aarch64_linux_nat_target::read_description): Add pauth param.
11957 * aarch64-linux-tdep.c
11958 (aarch64_linux_core_read_description): Likewise.
11959 * aarch64-tdep.c (struct target_desc): Add in pauth.
11960 (aarch64_read_description): Add pauth param.
11961 (aarch64_gdbarch_init): Likewise.
11962 * aarch64-tdep.h (aarch64_read_description): Likewise.
11963 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11964 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11965 * features/Makefile: Add new files.
11966 * features/aarch64-pauth.c: New file.
11967 * features/aarch64-pauth.xml: New file.
11968
595915c1
TT
119692019-03-20 Tom Tromey <tromey@adacore.com>
11970
11971 * infrun.c (handle_inferior_event): Rename from
11972 handle_inferior_event_1. Create a scoped_value_mark.
11973 (handle_inferior_event): Remove.
11974
4c7d57e7
TT
119752019-03-19 Tom Tromey <tromey@adacore.com>
11976
11977 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11978 * infrun.h (print_stop_event): Add "displays" parameter.
11979 * infrun.c (print_stop_event): Add "displays" parameter.
11980
cb246234
PA
119812019-03-19 Pedro Alves <palves@redhat.com>
11982
11983 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11984 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11985 to -1. Fix TABs vs spaces.
11986 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11987 * tui/tui-out.h (tui_ui_out) Add intro comments.
11988 <m_line, m_start_of_line>: In-class initialize, and add describing
11989 comment.
11990
3a0e45b2
AH
119912019-03-18 Alan Hayward <alan.hayward@arm.com>
11992
11993 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11994 variable names.
11995 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
11996
5371b850
PA
119972019-03-18 Pedro Alves <palves@redhat.com>
11998 Eli Zaretskii <eliz@gnu.org>
11999
12000 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12001 m_line and m_start_of_line.
12002
b17c4cd0
EZ
120032019-03-18 Eli Zaretskii <eliz@gnu.org>
12004
12005 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12006 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12007 it returns a newline. This fixes a regression in TU mode, whereby
12008 the next line is output on the same screen line as the user input.
12009
4bd56d18
TT
120102019-03-18 Tom Tromey <tromey@adacore.com>
12011
12012 * minsyms.c (minimal_symbol_reader::install): Remove call to
12013 obstack_blank.
12014
55c10aca
PA
120152019-03-18 Pedro Alves <palves@redhat.com>
12016
12017 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12018 New globals.
12019 (apply_style): New, factored out from ...
12020 (apply_ansi_escape): ... this. Handle reverse video mode.
12021 (tui_set_reverse_mode): New function.
12022 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12023 * tui/tui-winsource.c (tui_show_source_line): Use
12024 tui_set_reverse_mode instead of setting A_STANDOUT.
12025 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12026 New setter methods.
12027
647bb750
HD
120282019-03-18 Hannes Domani <ssbssa@yahoo.de>
12029
12030 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12031 Handle tabs.
12032
bff8c71f
TT
120332019-03-18 Tom Tromey <tromey@adacore.com>
12034
12035 * ada-lang.c (empty_array): Add "high" parameter.
12036 (ada_evaluate_subexp): Update.
12037
58785d98
ST
120382019-03-17 Sergei Trofimovich <siarheit@google.com>
12039
12040 * unittests/string_view-selftests.c: Define
12041 _initialize_string_view_selftests unconditionally.
12042
d4cbef22
ВМ
120432019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12044
12045 PR gdb/24350
12046 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12047
fce4c071
ВМ
120482019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12049
12050 PR gdb/24351
12051 * windows-nat.c (display_selector): Fix format specifiers.
12052
f7f0a123
EZ
120532019-03-17 Eli Zaretskii <eliz@gnu.org>
12054
12055 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12056 tui_refill_source_window instead of tui_refresh_win, to update the
12057 current execution line. This fixes redisplay of the current line
12058 when stepping through the code with "next" or "step".
12059
ab42892f
EZ
120602019-03-16 Eli Zaretskii <eliz@gnu.org>
12061
12062 * source-cache.c (source_cache::get_source_lines): Call
12063 find_source_lines to initialize s->nlines. This fixes vertical
12064 scrolling of TUI source window when the DOWN arrow is pressed.
12065
8d8c087f
PW
120662019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12067
12068 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12069 linux-thread-db.c (_initialize_thread_db): Likewise.
12070
798e1c30
EZ
120712019-03-16 Eli Zaretskii <eliz@gnu.org>
12072
12073 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12074 wclrtoeol in tui_show_source_line". This reverts changes made in
12075 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12076
eefba3da
TT
120772019-03-15 Tom Tromey <tom@tromey.com>
12078
12079 * symtab.h (struct minimal_symbol): Derive from
12080 general_symbol_info.
12081 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12082 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12083 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12084 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12085 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12086 (MSYMBOL_SEARCH_NAME): Update.
12087 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12088 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12089 * minsyms.c (minimal_symbol_reader::record_full): Update.
12090
0de2420c
TT
120912019-03-15 Tom Tromey <tom@tromey.com>
12092
12093 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12094
042d75e4
TT
120952019-03-15 Tom Tromey <tom@tromey.com>
12096
12097 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12098 unique_xmalloc_ptr.
12099 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12100 Update.
12101 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12102 (build_minimal_symbol_hash_tables)
12103 (minimal_symbol_reader::install): Update.
12104
db92718b
TT
121052019-03-15 Tom Tromey <tom@tromey.com>
12106
12107 * symtab.c (create_demangled_names_hash): Update.
12108 (symbol_set_names): Update.
12109 * objfiles.h (struct objfile_per_bfd_storage)
12110 <demangled_names_hash>: Now an htab_up.
12111 * objfiles.c (objfile_per_bfd_storage): Simplify.
12112
d6797f46
TT
121132019-03-15 Tom Tromey <tom@tromey.com>
12114
12115 * objfiles.h (struct objfile_per_bfd_storage): Declare
12116 destructor.
12117 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12118 New.
12119 (get_objfile_bfd_data): Use new. Don't initialize
12120 language_of_main.
12121 (free_objfile_per_bfd_storage): Remove.
12122 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12123
741d7538
TT
121242019-03-15 Tom Tromey <tom@tromey.com>
12125
12126 * symfile.c (reread_symbols): Update.
12127 * objfiles.c (objfile::objfile): Update.
12128 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12129 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12130 comment.
12131 (minimal_symbol_reader::install): Update.
12132 (terminate_minimal_symbol_table): Remove.
12133 * jit.c (jit_object_close_impl): Update.
12134
788c80d1
TT
121352019-03-15 Tom Tromey <tom@tromey.com>
12136
12137 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12138 initializations.
12139
1b7a07cb
TT
121402019-03-15 Tom Tromey <tom@tromey.com>
12141
12142 * objfiles.h (struct objfile_per_bfd_storage)
12143 <demangled_hash_languages>: Now a bitset.
12144 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12145 (lookup_minimal_symbol): Update.
12146
3db066bc
TT
121472019-03-15 Tom Tromey <tom@tromey.com>
12148
12149 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12150 Don't return the symbol.
12151 * coffread.c (record_minimal_symbol): Use record_full.
12152
3fff2c37
EZ
121532019-03-14 Eli Zaretskii <eliz@gnu.org>
12154
12155 The MS-Windows port of ncurses fails to switch to a color pair if
12156 one or both of the colors are the implicit default colors. This
12157 change records the default colors when TUI is initialized, and
12158 then specifies them explicitly when a color pair uses the default
12159 colors. This allows color styling in TUI mode on MS-Windows.
12160
12161 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12162 ncurses_norm_attr.
12163 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12164 colors in ncurses_norm_attr.
12165 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12166 "none", replace it with the default color recorded in
12167 ncurses_norm_attr.
12168
3b336828
TT
121692019-03-14 Tom Tromey <tromey@adacore.com>
12170
12171 * source-cache.h (class source_cache) <get_source_lines>: Return
12172 std::string.
12173 * source-cache.c (source_cache::extract_lines): Handle case where
12174 first_pos==npos. Return std::string.
12175 (source_cache::get_source_lines): Update.
12176
d085f989
TT
121772019-03-14 Tom Tromey <tromey@adacore.com>
12178
12179 * NEWS: Add item for "style sources" commands.
12180 * source-cache.c (source_cache::get_source_lines): Check
12181 source_styling.
12182 * cli/cli-style.c (source_styling): New global.
12183 (_initialize_cli_style): Add "style sources" commands.
12184 (show_style_sources): New function.
12185 * cli/cli-style.h (source_styling): Declare.
12186
6f11e682
TT
121872019-03-14 Pedro Alves <palves@redhat.com>
12188 Tom Tromey <tromey@adacore.com>
12189
12190 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12191 * tui/tui-winsource.c (tui_refill_source_window): New function,
12192 from...
12193 (tui_horizontal_source_scroll): ... here. Move some logic.
12194 * cli/cli-style.c (set_style_enabled): Notify new observable.
12195 * tui/tui-hooks.c (tui_redisplay_source): New function.
12196 (tui_attach_detach_observers): Attach or detach
12197 tui_redisplay_source.
12198 * observable.h (source_styling_changed): New observable.
12199 * observable.c: Define source_styling_changed observable.
12200
a068643d
TT
122012019-03-13 Tom Tromey <tromey@adacore.com>
12202
12203 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12204 (i386_gnu_nat_target::store_registers): Update.
12205 * target-debug.h (target_debug_print_std_string): New macro.
12206 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12207 * windows-tdep.c (display_one_tib): Update.
12208 * tui/tui-stack.c (tui_make_status_line): Update.
12209 * top.c (print_inferior_quit_action): Update.
12210 * thread.c (thr_try_catch_cmd): Update.
12211 (add_thread_with_info): Update.
12212 (thread_target_id_str): Update.
12213 (thr_try_catch_cmd): Update.
12214 (thread_command): Update.
12215 (thread_find_command): Update.
12216 * record-btrace.c (record_btrace_target::info_record)
12217 (record_btrace_resume_thread, record_btrace_target::resume)
12218 (record_btrace_cancel_resume, record_btrace_step_thread)
12219 (record_btrace_target::wait, record_btrace_target::wait)
12220 (record_btrace_target::wait, record_btrace_target::stop): Update.
12221 * progspace.c (print_program_space): Update.
12222 * process-stratum-target.c
12223 (process_stratum_target::thread_address_space): Update.
12224 * linux-fork.c (linux_fork_mourn_inferior)
12225 (detach_checkpoint_command, info_checkpoints_command)
12226 (linux_fork_context): Update.
12227 (linux_fork_detach): Update.
12228 (class scoped_switch_fork_info): Update.
12229 (delete_checkpoint_command): Update.
12230 * infrun.c (follow_fork_inferior): Update.
12231 (follow_fork_inferior): Update.
12232 (proceed_after_vfork_done): Update.
12233 (handle_vfork_child_exec_or_exit): Update.
12234 (follow_exec): Update.
12235 (displaced_step_prepare_throw): Update.
12236 (displaced_step_restore): Update.
12237 (start_step_over): Update.
12238 (resume_1): Update.
12239 (clear_proceed_status_thread): Update.
12240 (proceed): Update.
12241 (print_target_wait_results): Update.
12242 (do_target_wait): Update.
12243 (context_switch): Update.
12244 (stop_all_threads): Update.
12245 (restart_threads): Update.
12246 (finish_step_over): Update.
12247 (handle_signal_stop): Update.
12248 (switch_back_to_stepped_thread): Update.
12249 (keep_going_pass_signal): Update.
12250 (print_exited_reason): Update.
12251 (normal_stop): Update.
12252 * inferior.c (inferior_pid_to_str): Change return type.
12253 (print_selected_inferior): Update.
12254 (add_inferior): Update.
12255 (detach_inferior): Update.
12256 * dummy-frame.c (fprint_dummy_frames): Update.
12257 * dcache.c (dcache_info_1): Update.
12258 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12259 (btrace_fetch, btrace_clear): Update.
12260 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12261 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12262 type.
12263 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12264 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12265 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12266 * gdbarch.c, gdbarch.h: Rebuild.
12267 * gdbarch.sh (core_pid_to_str): Change return type.
12268 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12269 return type.
12270 (windows_nat_target::pid_to_str): Change return type.
12271 (windows_delete_thread): Update.
12272 (windows_nat_target::attach): Update.
12273 (windows_nat_target::files_info): Update.
12274 * target-delegates.c: Rebuild.
12275 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12276 return type.
12277 (sol_thread_target::pid_to_str): Change return type.
12278 * remote.c (class remote_target) <pid_to_str>: Change return
12279 type.
12280 (remote_target::pid_to_str): Change return type.
12281 (extended_remote_target::attach, remote_target::remote_stop_ns)
12282 (remote_target::remote_notif_remove_queued_reply)
12283 (remote_target::push_stop_reply, remote_target::disable_btrace):
12284 Update.
12285 (extended_remote_target::attach): Update.
12286 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12287 type.
12288 (gdbsim_target::pid_to_str): Change return type.
12289 * ravenscar-thread.c (struct ravenscar_thread_target)
12290 <pid_to_str>: Change return type.
12291 (ravenscar_thread_target::pid_to_str): Change return type.
12292 * procfs.c (class procfs_target) <pid_to_str>: Change return
12293 type.
12294 (procfs_target::pid_to_str): Change return type.
12295 (procfs_target::attach): Update.
12296 (procfs_target::detach): Update.
12297 (procfs_target::fetch_registers): Update.
12298 (procfs_target::store_registers): Update.
12299 (procfs_target::wait): Update.
12300 (procfs_target::files_info): Update.
12301 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12302 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12303 return type.
12304 (nto_procfs_target::pid_to_str): Change return type.
12305 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12306 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12307 return type.
12308 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12309 (exit_lwp): Update.
12310 (attach_proc_task_lwp_callback, get_detach_signal)
12311 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12312 (linux_nat_target::resume, wait_lwp, stop_callback)
12313 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12314 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12315 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12316 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12317 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12318 type.
12319 (inf_ptrace_target::attach): Update.
12320 (inf_ptrace_target::files_info): Update.
12321 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12322 type.
12323 (go32_nat_target::pid_to_str): Change return type.
12324 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12325 (gnu_nat_target::wait): Update.
12326 (gnu_nat_target::wait): Update.
12327 (gnu_nat_target::resume): Update.
12328 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12329 (fbsd_nat_target::wait): Update.
12330 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12331 type.
12332 (darwin_nat_target::attach): Update.
12333 * corelow.c (class core_target) <pid_to_str>: Change return type.
12334 (core_target::pid_to_str): Change return type.
12335 * target.c (normal_pid_to_str): Change return type.
12336 (default_pid_to_str): Likewise.
12337 (target_pid_to_str): Change return type.
12338 (target_translate_tls_address): Update.
12339 (target_announce_detach): Update.
12340 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12341 return type.
12342 (bsd_uthread_target::pid_to_str): Change return type.
12343 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12344 type.
12345 (bsd_kvm_target::pid_to_str): Change return type.
12346 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12347 return type.
12348 (aix_thread_target::pid_to_str): Change return type.
12349 * target.h (struct target_ops) <pid_to_str>: Change return type.
12350 (target_pid_to_str, normal_pid_to_str): Likewise.
12351 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12352 type.
12353 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12354 type.
12355 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12356 return type.
12357 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12358 type.
12359 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12360 type.
12361 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12362 return type.
12363
b4be1b06
SM
123642019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12365
12366 * NEWS: Mention that the new default MI version is 3. Mention
12367 changes to the output of commands and events that deal with
12368 multi-location breakpoints.
12369 * breakpoint.c: Include "mi/mi-out.h".
12370 (print_one_breakpoint): Change output syntax if using MI version
12371 >= 3.
12372 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12373 New.
12374 (mi_multi_location_breakpoint_output_fixed): New.
12375 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12376 (mi_cmd_fix_multi_location_breakpoint_output): New.
12377 (mi_multi_location_breakpoint_output_fixed): New.
12378 * mi/mi-cmds.c (mi_cmds): Register command
12379 -fix-multi-location-breakpoint-output.
12380 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12381 interpreter "mi".
12382
8e5e5494
SM
123832019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12384
12385 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12386 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12387 instantiate mi_ui_out based on interpreter name.
12388 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12389 * mi/mi-main.c (mi_load_progress): Likewise.
12390
197df35e
JB
123912019-03-12 John Baldwin <jhb@FreeBSD.org>
12392
12393 * NEWS: Combine separate "New targets" sections for 8.3.
12394
8399425f
JB
123952019-03-12 John Baldwin <jhb@FreeBSD.org>
12396
12397 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12398 (ppcfbsd_init_abi): Install gdbarch
12399 "fetch_tls_load_module_address" and "get_thread_local_address"
12400 methods.
12401
b0f87ed0
JB
124022019-03-12 John Baldwin <jhb@FreeBSD.org>
12403
12404 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12405 (riscv_fbsd_init_abi): Install gdbarch
12406 "fetch_tls_load_module_address" and "get_thread_local_address"
12407 methods.
12408
ce25aa57
JB
124092019-03-12 John Baldwin <jhb@FreeBSD.org>
12410
12411 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12412 (i386fbsd_init_abi): Install gdbarch
12413 "fetch_tls_load_module_address" and "get_thread_local_address"
12414 methods.
12415
f5424cfa
JB
124162019-03-12 John Baldwin <jhb@FreeBSD.org>
12417
12418 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12419 (amd64fbsd_init_abi): Install gdbarch
12420 "fetch_tls_load_module_address" and "get_thread_local_address"
12421 methods.
12422
945f3901
JB
124232019-03-12 John Baldwin <jhb@FreeBSD.org>
12424
12425 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12426 (struct fbsd_pspace_data): New type.
12427 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12428 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12429 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12430 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12431 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12432
ef0bd204
JB
124332019-03-12 John Baldwin <jhb@FreeBSD.org>
12434
12435 * gdbtypes.c (lookup_struct_elt): New function.
12436 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12437 * gdbtypes.h (struct struct_elt): New type.
12438 (lookup_struct_elt): New prototype.
12439
36c53a02
JB
124402019-03-12 John Baldwin <jhb@FreeBSD.org>
12441
12442 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12443 remove disabled code block.
12444
6e056c81
JB
124452019-03-12 John Baldwin <jhb@FreeBSD.org>
12446
12447 * gdbarch.sh (get_thread_local_address): New method.
12448 * gdbarch.h, gdbarch.c: Regenerate.
12449 * target.c (target_translate_tls_address): Use
12450 gdbarch_get_thread_local_address if present instead of
12451 target::get_thread_local_address.
12452
cd250a18
JB
124532019-03-12 John Baldwin <jhb@FreeBSD.org>
12454
12455 * target.h (target::get_thread_local_address): Update comment.
12456
df22c1e5
JB
124572019-03-12 John Baldwin <jhb@FreeBSD.org>
12458
12459 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12460 objfile->separate_debug_objfile_backlink if not NULL.
12461
dd6876c9
JB
124622019-03-12 John Baldwin <jhb@FreeBSD.org>
12463
12464 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12465 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12466 (amd64bsd_store_inferior_registers): Likewise.
12467 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12468 Enable segment base registers.
12469 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12470 PT_GETFSBASE and PT_GETGSBASE.
12471 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12472 PT_SETGSBASE.
12473 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12474 segment base registers.
12475 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12476
1163a4b7
JB
124772019-03-12 John Baldwin <jhb@FreeBSD.org>
12478
12479 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12480 Update calls to i386_target_description to add 'segments'
12481 parameter.
12482 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12483 add segment base registers.
12484 * arch/i386.c (i386_create_target_description): Add 'segments'
12485 parameter to enable segment base registers.
12486 * arch/i386.h (i386_create_target_description): Likewise.
12487 * features/i386/32bit-segments.xml: New file.
12488 * features/i386/32bit-segments.c: Generate.
12489 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12490 call to i386_target_description to add 'segments' parameter.
12491 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12492 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12493 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12494 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12495 if feature is present.
12496 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12497 Add 'segments' parameter to call to i386_target_description.
12498 (i386_target_description): Add 'segments' parameter to enable
12499 segment base registers.
12500 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12501 to call to i386_target_description.
12502 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12503 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12504 Define I386_NUM_REGS.
12505 (i386_target_description): Add 'segments' parameter to enable
12506 segment base registers.
12507
3a350822
EZ
125082019-03-12 Eli Zaretskii <eliz@gnu.org>
12509
12510 PR/24325
12511 * source-cache.c: #undef open and close, to avoid unresolved
12512 externals during linking.
12513
ffdd69cf
TT
125142019-03-12 Tom Tromey <tromey@adacore.com>
12515
12516 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12517 const. Add initializers.
12518 (_initialize_remote): Don't initialize ptid globals.
12519
ec148c57
PA
125202019-03-12 Pedro Alves <palves@redhat.com>
12521
12522 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12523
32764270
PA
125242019-03-12 Pedro Alves <palves@redhat.com>
12525
12526 * cp-name-parser.y (main): Remove unused 'len' variable.
12527
17547186
TT
125282019-03-12 Tom Tromey <tromey@adacore.com>
12529
12530 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12531 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12532
d3a70e03
TT
125332019-03-12 Tom Tromey <tromey@adacore.com>
12534
12535 * linux-nat.c (iterate_over_lwps): Update.
12536 (stop_callback): Remove parameter.
12537 (stop_wait_callback, detach_callback, resume_set_callback)
12538 (select_singlestep_lwp_callback, set_ignore_sigint)
12539 (status_callback, resumed_callback, resume_clear_callback)
12540 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12541 data parameter.
12542 (linux_nat_target::detach, linux_nat_target::resume)
12543 (linux_stop_and_wait_all_lwps, select_event_lwp)
12544 (linux_nat_filter_event, linux_nat_wait_1)
12545 (linux_nat_target::kill, linux_nat_target::stop)
12546 (linux_nat_target::stop): Update.
12547 (linux_nat_resume_callback): Change type.
12548 (resume_stopped_resumed_lwps, count_events_callback)
12549 (select_event_lwp_callback): Likewise.
12550 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12551 * arm-linux-nat.c (struct update_registers_data): Remove.
12552 (update_registers_callback): Change type.
12553 (arm_linux_insert_hw_breakpoint1): Update.
12554 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12555 parameter.
12556 (x86_linux_dr_set_addr): Update.
12557 (x86_linux_dr_set_control): Update.
12558 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12559 (iterate_over_lwps): Use gdb::function_view.
12560 * nat/aarch64-linux-hw-point.c (struct
12561 aarch64_dr_update_callback_param): Remove.
12562 (debug_reg_change_callback): Change type.
12563 (aarch64_notify_debug_reg_change): Update.
12564 * s390-linux-nat.c (s390_refresh_per_info): Update.
12565
82cb27ff
TT
125662019-03-11 Tom Tromey <tromey@adacore.com>
12567
12568 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12569 redundant assignment to "this_cu".
12570
568c0683
SM
125712019-03-08 Simon Marchi <simon.marchi@efficios.com>
12572
12573 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12574
f09ce22d
SM
125752019-03-08 Simon Marchi <simon.marchi@efficios.com>
12576
12577 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12578 from...
12579 (rank_one_type): ... this.
12580
595f96a9
SM
125812019-03-08 Simon Marchi <simon.marchi@efficios.com>
12582
12583 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12584 from...
12585 (rank_one_type): ... this.
12586
2598a94b
SM
125872019-03-08 Simon Marchi <simon.marchi@efficios.com>
12588
12589 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12590 from...
12591 (rank_one_type): ... this.
12592
7f17b20d
SM
125932019-03-08 Simon Marchi <simon.marchi@efficios.com>
12594
12595 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12596 from...
12597 (rank_one_type): ... this.
12598
2c509035
SM
125992019-03-08 Simon Marchi <simon.marchi@efficios.com>
12600
12601 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12602 from...
12603 (rank_one_type): ... this.
12604
0dd322dc
SM
126052019-03-08 Simon Marchi <simon.marchi@efficios.com>
12606
12607 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12608 from...
12609 (rank_one_type): ... this.
12610
41ea4728
SM
126112019-03-08 Simon Marchi <simon.marchi@efficios.com>
12612
12613 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12614 from...
12615 (rank_one_type): ... this.
12616
793cd1d2
SM
126172019-03-08 Simon Marchi <simon.marchi@efficios.com>
12618
12619 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12620 from...
12621 (rank_one_type): ... this.
12622
34910087
SM
126232019-03-08 Simon Marchi <simon.marchi@efficios.com>
12624
12625 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12626 from...
12627 (rank_one_type): ... this.
12628
f1f832d6
SM
126292019-03-08 Simon Marchi <simon.marchi@efficios.com>
12630
12631 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12632 from...
12633 (rank_one_type): ... this.
12634
b9f4512f
SM
126352019-03-08 Simon Marchi <simon.marchi@efficios.com>
12636
12637 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12638 from...
12639 (rank_one_type): ... this.
12640
9293fc63
SM
126412019-03-08 Simon Marchi <simon.marchi@efficios.com>
12642
12643 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12644 from...
12645 (rank_one_type): ... this.
12646
e3abbe7e
PW
126472019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12648
12649 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12650 inferior-events' shows the example events.
12651
e4adb939
EZ
126522019-03-08 Eli Zaretskii <eliz@gnu.org>
12653
12654 Support styling on native MS-Windows console
12655
12656 PR/24315
12657 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12658 on MS-Windows if $TERM is not defined.
12659
12660 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12661
12662 * posix-hdep.c (gdb_console_fputs):
12663 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12664 functions.
12665 * ui-file.h (gdb_console_fputs): Add prototype.
12666
12667 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12668 back to fputs only if the former returns zero.
12669
25629dfd
TT
126702019-03-07 Tom Tromey <tom@tromey.com>
12671
12672 * symmisc.c (print_symbol_bcache_statistics): Update.
12673 (print_objfile_statistics): Update.
12674 * symfile.c (allocate_symtab): Update.
12675 * stabsread.c: Don't include bcache.h.
12676 * psymtab.h (struct psymbol_bcache): Don't declare.
12677 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12678 (psymbol_bcache_init, psymbol_bcache_free)
12679 (psymbol_bcache_get_bcache): Don't declare.
12680 * psymtab.c (struct psymbol_bcache): Remove.
12681 (psymtab_storage::psymtab_storage): Update.
12682 (psymtab_storage::~psymtab_storage): Update.
12683 (psymbol_bcache_init, psymbol_bcache_free)
12684 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12685 (add_psymbol_to_bcache): Update.
12686 (allocate_psymtab): Update.
12687 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12688 macro_cache>: No longer pointers.
12689 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12690 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12691 * macrotab.c (macro_bcache): Update.
12692 * macroexp.c: Don't include bcache.h.
12693 * gdbtypes.c (check_types_worklist): Update.
12694 (types_deeply_equal): Remove TRY/CATCH. Update.
12695 * elfread.c (elf_symtab_read): Update.
12696 * dwarf2read.c: Don't include bcache.h.
12697 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12698 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12699 (print_bcache_statistics, bcache_memory_used): Don't declare.
12700 (struct bcache): Move from bcache.c. Add constructor, destructor,
12701 methods. Rename all data members.
12702 * bcache.c (struct bcache): Move to bcache.h.
12703 (bcache::expand_hash_table): Rename from expand_hash_table.
12704 (bcache): Remove.
12705 (bcache::insert): Rename from bcache_full.
12706 (bcache::compare): Rename from bcache_compare.
12707 (bcache_xmalloc): Remove.
12708 (bcache::~bcache): Rename from bcache_xfree.
12709 (bcache::print_statistics): Rename from print_bcache_statistics.
12710 (bcache::memory_used): Rename from bcache_memory_used.
12711
fe726667
PA
127122019-03-07 Pedro Alves <palves@redhat.com>
12713
12714 * infrun.c (normal_stop): Also check for
12715 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12716
7584bb30
AB
127172019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12718
12719 * f-lang.c (value_from_host_double): Moved to...
12720 * value.c (value_from_host_double): ...here.
12721 * value.h (value_from_host_double): Declare.
12722 * guile/scm-math.c (vlscm_convert_typed_number): Use
12723 value_from_host_double.
12724 (vlscm_convert_number): Likewise.
12725 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12726 * python/py-value.c (convert_value_from_python): Likewise.
12727
a7b1986e
TT
127282019-03-06 Tom Tromey <tom@tromey.com>
12729
12730 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12731
0ccf4211
TT
127322019-03-06 Tom Tromey <tom@tromey.com>
12733
12734 * utils.h (free_current_contents): Don't declare.
12735 * utils.c (free_current_contents): Remove.
12736
fe7b42e5
TT
127372019-03-06 Tom Tromey <tom@tromey.com>
12738
12739 * top.c (quit_force): Update.
12740 * main.c (captured_command_loop): Update.
12741 * common/new-op.c (operator new): Update.
12742 * common/common-exceptions.c (struct catcher)
12743 <save_cleanup_chain>: Remove member.
12744 (exceptions_state_mc_init): Update.
12745 (exception_try_scope_entry): Return nullptr.
12746 (exception_try_scope_exit, exception_rethrow)
12747 (throw_exception_sjlj, throw_exception_cxx): Update.
12748 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12749 (all_cleanups, do_cleanups, discard_cleanups)
12750 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12751 (restore_cleanups, restore_final_cleanups): Don't declare.
12752 (do_final_cleanups): Remove parameter.
12753 * common/cleanups.c (cleanup_chain, make_cleanup)
12754 (make_cleanup_dtor, all_cleanups, do_cleanups)
12755 (discard_my_cleanups, discard_cleanups)
12756 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12757 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12758 (null_cleanup): Remove.
12759 (do_final_cleanups): Remove parameter.
12760
c6321f19
TT
127612019-03-06 Tom Tromey <tom@tromey.com>
12762
12763 * remote.c (remote_target::remote_parse_stop_reply): Use
12764 unique_xmalloc_ptr.
12765
61b30099
TT
127662019-03-06 Tom Tromey <tom@tromey.com>
12767
12768 * stabsread.c (struct stabs_field_info): Rename from field_info.
12769 <list, fnlist>: Add initializers.
12770 <obstack>: New member.
12771 (read_member_functions, read_struct_fields, read_baseclasses):
12772 Allocate on obstack. Don't use cleanups.
12773 (read_one_struct_field, read_member_functions, read_struct_fields)
12774 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12775 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12776 (read_struct_type): Update.
12777
6cceac94
TT
127782019-03-06 Tom Tromey <tom@tromey.com>
12779
12780 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12781 * common/filestuff.h (make_cleanup_close): Don't declare.
12782 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12783 Remove.
12784
72412762
TT
127852019-03-06 Tom Tromey <tom@tromey.com>
12786
12787 * solib-aix.c: Use make_scope_exit.
12788
2b6ff1c0
TT
127892019-03-06 Tom Tromey <tom@tromey.com>
12790
12791 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12792 Use make_scope_exit.
12793
d01c5877
TT
127942019-03-06 Tom Tromey <tom@tromey.com>
12795
12796 * solib-svr4.c (disable_probes_interface): Remove parameter.
12797 (svr4_handle_solib_event): Use make_scope_exit.
12798
32603266
TT
127992019-03-06 Tom Tromey <tom@tromey.com>
12800
12801 * remote.c (struct stop_reply_deleter): Remove.
12802 (stop_reply_up): Update.
12803 (struct stop_reply): Derive from notif_event. Don't typedef.
12804 <regcache>: Now a std::vector.
12805 (stop_reply_xfree): Remove.
12806 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12807 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12808 (remote_target::discard_pending_stop_replies): Use delete.
12809 (remote_target::remote_parse_stop_reply): Update.
12810 (remote_target::process_stop_reply): Update.
12811 * remote-notif.h (struct notif_event): Add virtual destructor.
12812 Remove "dtr" member.
12813 (struct notif_client) <alloc_event>: Return a unique_ptr.
12814 (notif_event_xfree): Don't declare.
12815 (notif_event_up): New typedef.
12816 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12817 (notif_event_xfree, do_notif_event_xfree): Remove.
12818 (remote_notif_state_xfree): Update.
12819
9799571e
TT
128202019-03-06 Tom Tromey <tom@tromey.com>
12821
12822 * infrun.c (displaced_step_clear_cleanup): Now a
12823 forward_scope_exit type.
12824 (displaced_step_prepare_throw): Update.
12825 (displaced_step_fixup): Update.
12826
09e3c4ca
TT
128272019-03-06 Tom Tromey <tom@tromey.com>
12828
12829 * inferior.h (class inferior): Update comment.
12830 * gdbthread.h (class thread_info): Update comment.
12831
e2a03548
TT
128322019-03-06 Joel Brobecker <brobecker@adacore.com>
12833 Tom Tromey <tom@tromey.com>
12834
12835 * stabsread.h (struct stab_section_list): Remove.
12836 (coffstab_build_psymtabs): Update.
12837 * dbxread.c (symbuf_sections): Now a std::vector.
12838 (sect_idx): New global.
12839 (fill_symbuf): Update.
12840 (coffstab_build_psymtabs): Change type of stabsects parameter.
12841 Update.
12842 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12843 std::vector.
12844 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12845 (coff_locate_sections): Update.
12846 (coff_symfile_read): Remove cleanups. Update.
12847 (init_stringtab): Add storage parameter.
12848 (free_stringtab, free_stringtab_cleanup): Remove.
12849 (init_lineno): Add storage parameter.
12850 (free_linetab, free_linetab_cleanup): Remove.
12851
b7e60d85
PA
128522019-03-06 Pedro Alves <palves@redhat.com>
12853
12854 * linux-fork.c (fork_info::clobber_regs): Delete.
12855 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12856 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12857 comment. Adjust.
12858 (scoped_switch_fork_info::scoped_switch_fork_info)
12859 (checkpoint_command, linux_fork_context): Adjust
12860 fork_save_infrun_state calls.
12861
e52c971f
PA
128622019-03-06 Pedro Alves <palves@redhat.com>
12863
12864 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12865 (inf_has_multiple_threads): Return 'bool' and rewrite using
12866 inferior_info::threads().
12867
06974e6c
PA
128682019-03-06 Pedro Alves <palves@redhat.com>
12869
12870 * linux-fork.c: Include <list>.
12871 (fork_list): Now a std::list instance.
12872 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12873 (forks_exist_p, find_last_fork): Adjust.
12874 (new_fork): Delete.
12875 (one_fork_p): New.
12876 (add_fork): Adjust.
12877 (free_fork): Delete, folded into fork_info::~fork_info().
12878 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12879 Adjust.
12880 (init_fork_list): Delete.
12881 (linux_fork_killall, linux_fork_mourn_inferior)
12882 (linux_fork_detach, info_checkpoints_command): Adjust.
12883 (_initialize_linux_fork): No longer call init_fork_list.
12884
72f31aea
PA
128852019-03-06 Pedro Alves <palves@redhat.com>
12886
12887 * linux-fork.c (new_fork): New, split out of ...
12888 (add_fork): ... this. Return void. Move "first fork" special
12889 case from here, to ...
12890 (checkpoint_command): ... here.
12891 * linux-linux.h (add_fork): Return void.
12892
efbecbc1
AB
128932019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12894
12895 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12896
0841c79a
AB
128972019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12898 Chris January <chris.january@arm.com>
12899 David Lecomber <david.lecomber@arm.com>
12900
12901 * f-exp.y: New token, UNOP_INTRINSIC.
12902 (exp): New pattern using UNOP_INTRINSIC token.
12903 (f77_keywords): Add 'abs' keyword.
12904 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12905 (value_from_host_double): New function.
12906 (evaluate_subexp_f): Support UNOP_ABS.
12907
4a270568
AB
129082019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12909
12910 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12911 types.
12912
067630bd
AB
129132019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12914
12915 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12916 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12917 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12918
3be47f7a
AB
129192019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12920
12921 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12922
4d00f5d8
AB
129232019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12924 Chris January <chris.january@arm.com>
12925
12926 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12927 * f-exp.y: Define 'KIND' token.
12928 (exp): New pattern for KIND expressions.
12929 (ptype): Handle types with a kind extension.
12930 (direct_abs_decl): Extend to spot kind extensions.
12931 (f77_keywords): Add 'kind' to the list.
12932 (push_kind_type): New function.
12933 (convert_to_kind_type): New function.
12934 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12935 * parse.c (operator_length_standard): Likewise.
12936 * parser-defs.h (enum type_pieces): Add tp_kind.
12937 * std-operator.def: Add UNOP_KIND.
12938
e454224f
AB
129392019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12940
12941 * f-exp.y (f_parse): Set yydebug.
12942
9dad4a58
AB
129432019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12944
12945 * f-lang.c (evaluate_subexp_f): New function.
12946 (exp_descriptor_f): New global.
12947 (f_language_defn): Use exp_descriptor_f instead of
12948 exp_descriptor_standard.
12949
c8f91604
AB
129502019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12951
12952 * f-exp.y (struct token): Add comments.
12953 (dot_ops): Remove uppercase versions and the end marker.
12954 (f77_keywords): Likewise.
12955 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12956 entries in the dot_ops array are case insensitive, and use
12957 strncasecmp to compare strings. Also some whitespace cleanup in
12958 this area. Similar for the f77_keywords array, except entries in
12959 this list might be case sensitive.
12960
dd9f2c76
AB
129612019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12962
12963 * f-exp.y (struct f77_boolean_val): Add comments.
12964 (boolean_values): Remove uppercase versions, and end marker.
12965 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12966 and use strncasecmp to achieve case insensitivity. Additionally,
12967 perform whitespace cleanup around this code.
12968
67a3048c
TT
129692019-03-06 Tom Tromey <tromey@adacore.com>
12970
12971 * remote-sim.c (gdbsim_target_open): Use result of
12972 gdb_argv::release.
12973
aa3cfbda
RB
129742019-03-06 Richard Bunt <richard.bunt@arm.com>
12975 Dirk Schubert <dirk.schubert@arm.com>
12976 Chris January <chris.january@arm.com>
12977
12978 * eval.c (evaluate_subexp_standard): Call Fortran argument
12979 wrapping logic.
12980 * f-lang.c (struct value): A value which can be passed into a
12981 Fortran function call.
12982 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12983 where appropriate.
12984 (struct type): Value ready for a Fortran function call.
12985 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12986 is needed.
12987 * f-lang.h (fortran_argument_convert): Declaration.
12988 (fortran_preserve_arg_pointer): Declaration.
12989 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12990
ea38e5df
TT
129912019-03-05 Tom Tromey <tromey@adacore.com>
12992
12993 * python/py-prettyprint.c (print_string_repr): Remove #if.
12994 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
12995
06b5b831
TT
129962019-03-05 Tom Tromey <tromey@adacore.com>
12997
12998 * target.c (the_dummy_target): Move later. Change type to
12999 "dummy_target".
13000 (initialize_targets): Don't initialize the_dummy_target.
13001
edbd9e45
TT
130022019-03-05 Tom Tromey <tromey@adacore.com>
13003
13004 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13005 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13006
c119e040
TT
130072019-03-05 Tom Tromey <tromey@adacore.com>
13008
13009 * windows-nat.c (windows_nat_target::attach)
13010 (windows_nat_target::detach): Don't call gdb_flush.
13011 * valprint.c (generic_val_print, val_print, val_print_string):
13012 Don't call gdb_flush.
13013 * utils.c (defaulted_query): Don't call gdb_flush.
13014 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13015 * target.c (target_announce_detach): Don't call gdb_flush.
13016 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13017 * remote.c (extended_remote_target::attach): Don't call
13018 gdb_flush.
13019 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13020 * printcmd.c (do_examine): Don't call gdb_flush.
13021 (info_display_command): Don't call gdb_flush.
13022 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13023 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13024 * memattr.c (info_mem_command): Don't call gdb_flush.
13025 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13026 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13027 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13028 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13029 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13030 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13031 (gnu_nat_target::detach): Don't call gdb_flush.
13032 * f-valprint.c (f_val_print): Don't call gdb_flush.
13033 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13034 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13035 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13036 gdb_flush.
13037 * c-valprint.c (c_val_print): Don't call gdb_flush.
13038 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13039
895dafa6
TT
130402019-03-05 Tom Tromey <tromey@adacore.com>
13041
13042 * varobj.c (update_dynamic_varobj_children): Update.
13043 (install_default_visualizer): Use reset, not release.
13044 * value.c (set_internalvar): Update.
13045 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13046 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13047 ATTRIBUTE_UNUSED_RESULT.
13048
88a774b9
TT
130492019-03-05 Tom Tromey <tromey@adacore.com>
13050
13051 * remote.c (class scoped_remote_fd) <release>: Add
13052 ATTRIBUTE_UNUSED_RESULT.
13053
4e4a8b93
TT
130542019-03-05 Tom Tromey <tromey@adacore.com>
13055
13056 * macroexp.c (struct macro_buffer) <release>: Add
13057 ATTRIBUTE_UNUSED_RESULT.
13058
083eef1f
TT
130592019-03-05 Tom Tromey <tromey@adacore.com>
13060
13061 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13062 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13063 ATTRIBUTE_UNUSED_RESULT.
13064
3cabd438
TT
130652019-03-05 Tom Tromey <tromey@adacore.com>
13066
13067 * common/scoped_fd.h (class scoped_fd) <release>: Add
13068 ATTRIBUTE_UNUSED_RESULT.
13069
41e3300a
TT
130702019-03-05 Tom Tromey <tromey@adacore.com>
13071
13072 * parser-defs.h (struct parser_state) <release>: Add
13073 ATTRIBUTE_UNUSED_RESULT.
13074
18cb7c9f
TT
130752019-03-05 Tom Tromey <tromey@adacore.com>
13076
13077 * utils.h (class gdb_argv) <release>: Add
13078 ATTRIBUTE_UNUSED_RESULT.
13079 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13080
41fa577f
EZ
130812019-03-02 Eli Zaretskii <eliz@gnu.org>
13082
a6a4b2c6
EZ
13083 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13084 for-loop range, to avoid compiler warnings.
13085
13086 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13087 avoid compiler warnings about unused variables.
13088
742a7df5
EZ
13089 * NEWS: Mention end of support for native debugging on MS-Windows
13090 before XP.
13091
41fa577f
EZ
13092 PR gdb/24292
13093 * common/netstuff.c:
13094 * gdbserver/gdbreplay.c
13095 * gdbserver/remote-utils.c:
13096 * ser-tcp.c:
13097 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13098 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13099 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13100 'getaddrinfo' and 'freeaddrinfo' were not available before
13101 Windows XP, and mingw.org's MinGW headers by default define
13102 _WIN32_WINNT to 0x500.
13103
827f438f
GB
131042019-03-01 Gary Benson <gbenson@redhat.com>
13105
13106 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13107
92137da0
RO
131082019-02-28 Brian Vandenberg <phantall@gmail.com>
13109 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13110
13111 PR gdb/8527
13112 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13113 set_sigint_trap, clear_sigint_trap.
13114
799efbe8
PW
131152019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13116
13117 * target.c (target_detach): Clear the regcache and the
13118 frame cache.
13119
8ed25214
PA
131202019-02-27 Pedro Alves <palves@redhat.com>
13121
13122 * utils.c (set_screen_size): When we cap the height/width sizes,
13123 tweak the corresponding command variable to show "unlimited":
13124
23031e31
SJ
131252019-02-27 Saagar Jha <saagar@saagarjha.com>
13126 Pedro Alves <palves@redhat.com>
13127
13128 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13129 before calling rl_set_screen_size.
13130
6c28e44a
TT
131312019-02-27 Tom Tromey <tromey@adacore.com>
13132
13133 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13134 define.
13135 * python/py-value.c: Remove Python 2.4 workaround.
13136 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13137 workaround.
13138 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13139 Python 2.4 workaround.
13140 * python/python-internal.h: Remove Python 2.4 comment.
13141 (Py_ssize_t): Don't define.
13142 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13143 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13144 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13145 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13146 * python/python.c (do_start_initialization): Remove Python 2.4
13147 workaround.
13148 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13149 (print_children): Remove Python 2.4 workaround.
13150 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13151 workaround.
13152 (CHARBUFFERPROC_NAME): Remove.
13153 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13154 Python 2.4 workaround.
13155
2c3fc25d 131562019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 13157
2c3fc25d
KB
13158 * NEWS: Note minimum Python version.
13159
6ca62222
KB
131602019-02-27 Kevin Buettner <kevinb@redhat.com>
13161
13162 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13163 code from these functions. Remove corresponding ifdefs. Use
13164 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13165 Remove gotos and target of gotos.
13166 (infpy_search_memory): Likewise.
13167
f4bc7d2c
AB
131682019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13169
13170 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13171 (hppa_gdbarch_init): Don't register deleted functions with
13172 gdbarch.
13173
9734a586
AB
131742019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13175
13176 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13177 (h8300_unwind_sp): Delete.
13178 (h8300_dummy_id): Delete.
13179 (h8300_gdbarch_init): Don't register deleted functions with
13180 gdbarch.
13181
68b867f3
AB
131822019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13183
13184 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13185 (ft32_unwind_pc): Delete.
13186 (ft32_unwind_sp): Delete.
13187 (ft32_gdbarch_init): Don't register deleted functions with
13188 gdbarch.
13189
2fbe7ad0
AB
131902019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13191
13192 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13193 (frv_unwind_pc): Delete.
13194 (frv_unwind_sp): Delete.
13195 (frv_gdbarch_init): Don't register deleted functions with
13196 gdbarch.
13197
76055cbe
AB
131982019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13199
13200 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13201 (riscv_unwind_pc): Delete.
13202 (riscv_unwind_sp): Delete.
13203 (riscv_gdbarch_init): Don't register deleted functions with
13204 gdbarch.
13205
4133e5a1
AB
132062019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13207
13208 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13209 (csky_unwind_pc): Delete.
13210 (csky_unwind_sp): Delete.
13211 (csky_gdbarch_init): Don't register deleted functions with
13212 gdbarch.
13213
8010f576
AB
132142019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13215
13216 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13217 (cris_unwind_pc): Delete.
13218 (cris_unwind_sp): Delete.
13219 (cris_gdbarch_init): Don't register deleted functions with
13220 gdbarch.
13221
b56bf084
AB
132222019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13223
13224 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13225 (bfin_unwind_pc): Delete.
13226 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13227
a19a650f
AB
132282019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13229
13230 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13231 (arm_unwind_pc): Delete.
13232 (arm_unwind_sp): Delete.
13233 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13234
f8278c3c
AB
132352019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13236
13237 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13238 (arc_unwind_pc): Delete.
13239 (arc_unwind_sp): Delete.
13240 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13241
480e46cf
AB
132422019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13243
13244 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13245 (alpha_unwind_pc): Delete.
13246 (alpha_gdbarch_init): Don't register deleted functions with
13247 gdbarch.
13248
7a995095
AB
132492019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13250
13251 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13252 (aarch64_unwind_pc): Delete.
13253 (aarch64_unwind_sp): Delete.
13254 (aarch64_gdbarch_init): Don't register deleted functions with
13255 gdbarch.
13256
bf9a735e
AB
132572019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13258
13259 * gdbtypes.c (type_align): Don't consider static members when
13260 computing structure alignment.
13261
5561fc30
AB
132622019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13263
13264 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13265 return 0 for other types.
13266 * arch-utils.c (default_type_align): Always return 0.
13267 * gdbarch.h: Regenerate.
13268 * gdbarch.sh (type_align): Extend comment.
13269 * gdbtypes.c (type_align): Add additional comments, always call
13270 gdbarch_type_align before applying the default rules.
13271 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13272 generic code will then apply a suitable default.
13273 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13274 types, return 0 for other types.
13275
9335e75a
JB
132762019-02-27 Joel Brobecker <brobecker@adacore.com>
13277
13278 * NEWS: Create a new section for the next release branch.
13279 Rename the section of the current branch, now that it has
13280 been cut.
13281
3d34d8de
JB
132822019-02-27 Joel Brobecker <brobecker@adacore.com>
13283
13284 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13285 * version.in: Bump version to 8.3.50.DATE-git.
13286
143420fb
SM
132872019-02-26 Simon Marchi <simon.marchi@efficios.com>
13288
13289 * aix-thread.c (ptid_cmp): Remove unused variable.
13290 (get_signaled_thread): Likewise.
13291 (store_regs_user_thread): Likewise.
13292 (store_regs_kernel_thread): Likewise.
13293 (fetch_regs_kernel_thread): Remove shadowed variable.
13294
172fb711
AB
132952019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13296
13297 * features/riscv/32bit-cpu.xml: Add register numbers.
13298 * features/riscv/32bit-fpu.c: Regenerate.
13299 * features/riscv/32bit-fpu.xml: Add register numbers.
13300 * features/riscv/64bit-cpu.xml: Add register numbers.
13301 * features/riscv/64bit-fpu.c: Regenerate.
13302 * features/riscv/64bit-fpu.xml: Add register numbers.
13303
26c89782
KB
133042019-02-26 Kevin Buettner <kevinb@redhat.com>
13305
af54ade9 13306 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
13307 * python/py-value.c (convert_buffer_and_type_to_value): New
13308 function.
13309 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13310 Add support for handling an optional second argument. Call
13311 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
13312 * python/python-internal.h (Py_buffer_deleter): New struct.
13313 (Py_buffer_up): New typedef.
13314
0f58c9e8
JB
133152019-02-25 John Baldwin <jhb@FreeBSD.org>
13316
13317 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13318 instead of releasing ownership.
13319
0a0f4c01
JR
133202019-02-25 Jordan Rupprecht <rupprecht@google.com>
13321
13322 * dwarf2read.c (open_and_init_dwp_file): Call
13323 elf_numsections instead of bfd_count_sections to initialize
13324 dwp_file->num_sections.
13325
cd5a152c
TT
133262019-02-25 Tom Tromey <tromey@adacore.com>
13327
13328 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13329
8a6a8513
SDJ
133302019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13331
13332 * gcore.in: Add '--readnever' option when invoking GDB.
13333
04dcda9c
SM
133342019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13335
13336 * MAINTAINERS: Update my email address.
13337
07bc701d
SM
133382019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13339
13340 * build-id.c (build_id_to_debug_bfd_1): New function.
13341 (build_id_to_debug_bfd): Look for separate debug file in
13342 sysroot.
13343
c6f4a5d0
AB
133442019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13345
13346 * gdbarch.sh: Update the copyright year range that is placed into
13347 generated files.
13348
9600246d
KS
133492019-02-22 Keith Seitz <keiths@redhat.com>
13350
13351 PR symtab/23853
13352 * linespec.c (create_sals_line_offset): Search for the default
13353 symtab's filename instead of its fullname.
13354
7557a514
AH
133552019-02-21 Alan Hayward <alan.hayward@arm.com>
13356
13357 * NEWS: Update style defaults.
13358
ee2bcb0c
AH
133592019-02-21 Alan Hayward <alan.hayward@arm.com>
13360
13361 * main.c (captured_main_1): Disable styling in batch mode.
13362
0c95f9ed
TT
133632019-02-20 Tom Tromey <tom@tromey.com>
13364
13365 * symtab.c (symtab_symbol_info): Fix typos.
13366
c763b894
TT
133672019-02-20 Tom Tromey <tromey@adacore.com>
13368
13369 * findcmd.c (_initialize_mem_search): Use upper case for
13370 metasyntactic variables.
13371
0ef8a082
AH
133722019-02-20 Alan Hayward <alan.hayward@arm.com>
13373
13374 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13375 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13376
6caa91b6
SM
133772019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13378
13379 * top.h (source_file_name): Change to std::string.
13380 * top.c (source_file_name): Likewise.
13381 (command_line_input): Adjust.
13382 * cli/cli-script.c (script_from_file): Adjust.
13383
98814c6c
TT
133842019-02-19 Tom Tromey <tromey@adacore.com>
13385
13386 * ravenscar-thread.c
13387 (ravenscar_thread_target::update_thread_list): Don't call
13388 ada_build_task_list.
13389 * ada-lang.h (ada_build_task_list): Don't declare.
13390 * ada-tasks.c (struct ada_tasks_inferior_data)
13391 <task_list_valid_p>: Now bool.
13392 (read_known_tasks, ada_task_list_changed)
13393 (ada_tasks_invalidate_inferior_data): Update.
13394 (read_known_tasks_array): Return bool.
13395 (read_known_tasks_list): Likewise.
13396 (read_known_tasks): Return void.
13397 (ada_build_task_list): Now static.
13398
70cd633e
AB
133992019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13400
13401 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13402 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13403
040b3e95
PW
134042019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13405
13406 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13407 variant for ada_tasks_pspace_data_handle and
13408 ada_tasks_inferior_data_handle.
13409 (ada_tasks_pspace_data_cleanup): New function.
13410 (ada_tasks_inferior_data_cleanup): New function.
13411
9409233b
TT
134122019-02-17 Tom Tromey <tom@tromey.com>
13413
13414 * macrotab.h (macro_source_fullname): Return a std::string.
13415 * macrotab.c (macro_include, check_for_redefinition)
13416 (macro_undef, macro_lookup_definition, foreach_macro)
13417 (foreach_macro_in_scope): Update.
13418 (macro_source_fullname): Return a std::string.
13419 * macrocmd.c (show_pp_source_pos): Update.
13420
6506371f
TT
134212019-02-17 Tom Tromey <tom@tromey.com>
13422
13423 * macrocmd.c (show_pp_source_pos): Style the file names.
13424
0c820d67
TT
134252019-02-17 Tom Tromey <tom@tromey.com>
13426
13427 PR tui/24197:
13428 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13429
a0087920
TT
134302019-02-17 Tom Tromey <tom@tromey.com>
13431
13432 * ada-lang.c (user_select_syms): Use filtered printing.
13433 * utils.c (wrap_style): New global.
13434 (desired_style): Remove.
13435 (emit_style_escape): Add stream parameter.
13436 (set_output_style, reset_terminal_style, prompt_for_continue):
13437 Update.
13438 (flush_wrap_buffer): Only flush gdb_stdout.
13439 (wrap_here): Set wrap_style.
13440 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13441 treat escape sequences as a character. Change when wrap buffer is
13442 flushed.
13443 (fputs_styled): Do not set the output style when the default is
13444 requested.
13445 * ui-style.h (struct ui_file_style) <is_default>: New method.
13446 * source.c (print_source_lines_base): Emit escape sequences in one
13447 piece.
13448
75ba10dc
JB
134492019-02-17 Joel Brobecker <brobecker@adacore.com>
13450
13451 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13452 integers and enumeration types.
13453
a2cd4f14
JB
134542019-02-17 Joel Brobecker <brobecker@adacore.com>
13455
13456 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13457 instead of lookup_symbol_in_language
13458 (do_exact_match): New function.
13459 (ada_get_symbol_name_matcher): Return do_exact_match when
13460 doing a verbatim match.
13461
485b851b
TT
134622019-02-15 Tom Tromey <tromey@adacore.com>
13463
13464 * ravenscar-thread.c (ravenscar_thread_target::resume)
13465 (ravenscar_thread_target::wait): Special case wildcard requests.
13466
0b790b1e
TT
134672019-02-15 Tom Tromey <tromey@adacore.com>
13468
13469 * ravenscar-thread.c (base_ptid): Remove.
13470 (struct ravenscar_thread_target) <close>: New method.
13471 <m_base_ptid>: New member.
13472 <update_inferior_ptid, active_task, task_is_currently_active,
13473 runtime_initialized>: Declare methods.
13474 <ravenscar_thread_target>: Add constructor.
13475 (ravenscar_thread_target::task_is_currently_active)
13476 (ravenscar_thread_target::update_inferior_ptid)
13477 (ravenscar_runtime_initialized): Rename. Now methods.
13478 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13479 (ravenscar_thread_target::update_thread_list): Update.
13480 (ravenscar_thread_target::active_task): Now method.
13481 (ravenscar_thread_target::store_registers)
13482 (ravenscar_thread_target::prepare_to_store)
13483 (ravenscar_thread_target::prepare_to_store)
13484 (ravenscar_thread_target::mourn_inferior): Update.
13485 (ravenscar_inferior_created): Use "new" to create target.
13486 (ravenscar_thread_target::get_ada_task_ptid): Update.
13487 (_initialize_ravenscar): Don't initialize base_ptid.
13488 (ravenscar_ops): Remove global.
13489
dea57a62
TT
134902019-02-15 Tom Tromey <tromey@adacore.com>
13491
13492 * target.h (push_target): Declare new overload.
13493 * target.c (push_target): New overload, taking an rvalue reference.
13494 * remote.c (remote_target::open_1): Use push_target overload.
13495 * corelow.c (core_target_open): Use push_target overload.
13496
989f3c58
TT
134972019-02-15 Tom Tromey <tromey@adacore.com>
13498
13499 * ravenscar-thread.c (is_ravenscar_task)
13500 (ravenscar_task_is_currently_active): Return bool.
13501 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13502 (_initialize_ravenscar): Remove "(void)".
13503 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13504 Return bool.
13505
6cbcc006
TT
135062019-02-15 Tom Tromey <tromey@adacore.com>
13507
13508 * ravenscar-thread.c (ravenscar_runtime_initializer)
13509 (has_ravenscar_runtime, get_running_thread_id)
13510 (ravenscar_thread_target::resume): Fix indentation.
13511
7657f14d
TT
135122019-02-15 Tom Tromey <tromey@adacore.com>
13513
13514 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13515 from ravenscar_arch_ops.
13516 (sparc_ravenscar_ops::fetch_registers)
13517 (sparc_ravenscar_ops::store_registers): Now methods.
13518 (sparc_ravenscar_prepare_to_store): Remove.
13519 (sparc_ravenscar_ops): Redefine.
13520 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13521 methods and destructor. Remove members.
13522 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13523 (ravenscar_thread_target::store_registers)
13524 (ravenscar_thread_target::prepare_to_store): Update.
13525 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13526 Remove.
13527 (struct ppc_ravenscar_powerpc_ops): Derive from
13528 ravenscar_arch_ops.
13529 (ppc_ravenscar_powerpc_ops::fetch_registers)
13530 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13531 (ppc_ravenscar_powerpc_ops): Redefine.
13532 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13533 (ppc_ravenscar_e500_ops::fetch_registers)
13534 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13535 (ppc_ravenscar_e500_ops): Redefine.
13536 * aarch64-ravenscar-thread.c
13537 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13538 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13539 (aarch64_ravenscar_fetch_registers)
13540 (aarch64_ravenscar_store_registers): Now methods.
13541 (aarch64_ravenscar_ops): Redefine.
13542
5b6ea500
TT
135432019-02-15 Tom Tromey <tromey@adacore.com>
13544
13545 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13546 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13547 (ravenscar_thread_target::stopped_by_watchpoint)
13548 (ravenscar_thread_target::stopped_data_address)
13549 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13550
e397fd39
TT
135512019-02-15 Tom Tromey <tromey@adacore.com>
13552
13553 * ravenscar-thread.c: Fix some typos.
13554
cc12f4a8
TT
135552019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13556 Tom Tromey <tromey@adacore.com>
13557
13558 * ada-lang.c (ada_exception_sal): Change addr_string to a
13559 std::string.
13560 (create_ada_exception_catchpoint): Update.
13561
5f486660
TT
135622019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13563 Tom Tromey <tromey@adacore.com>
13564
13565 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13566 (bp_location_ops): Remove.
13567 (base_breakpoint_allocate_location): Update.
13568 (free_bp_location): Update.
13569 * ada-lang.c (class ada_catchpoint_location)
13570 <ada_catchpoint_location>: Remove ops parameter.
13571 (ada_catchpoint_location_dtor): Remove.
13572 (ada_catchpoint_location_ops): Remove.
13573 (allocate_location_exception): Update.
13574 * breakpoint.h (struct bp_location_ops): Remove.
13575 (class bp_location) <bp_location>: Remove bp_location_ops
13576 parameter.
13577 <~bp_location>: Add destructor.
13578 <ops>: Remove.
13579
b671c7fb
TS
135802019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13581 Pedro Alves <palves@redhat.com>
13582
13583 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13584 'PATH_MAX'.
13585
8071c5ce
DM
135862019-02-14 David Michael <fedora.dm0@gmail.com>
13587 Samuel Thibault <samuel.thibault@gnu.org>
13588 Thomas Schwinge <thomas@codesourcery.com>
13589
13590 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13591 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13592
b1041ae0
TS
135932019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13594
924514e1
TS
13595 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13596 (check_empty): Use "const char *".
13597
c29ee8d4
TS
13598 * gnu-nat.c (gnu_nat_target::detach): Instead of
13599 'detach_inferior (pid)' call
13600 'detach_inferior (find_inferior_pid (pid))'.
13601
6c6ef69f
TS
13602 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13603 'nat/fork-inferior.o'.
13604 * gnu-nat.c: #include "nat/fork-inferior.h".
13605
2d0a338c
TS
13606 * gnu-nat.c (gnu_nat_target::detach): Instead of
13607 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13608 * gnu-nat.h: #include "inf-child.h".
13609 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13610 'i386_gnu_nat_target::fetch_registers'.
13611 (gnu_store_registers): Rename/move to
13612 'i386_gnu_nat_target::store_registers'.
13613
cabb5f06
TS
13614 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13615 * gnu-nat.h (mach_thread_info): New function.
13616 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13617
b1041ae0
TS
13618 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13619
2988d01e
KF
136202019-02-14 Frederic Konrad <konrad@adacore.com>
13621
13622 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13623
c559d709
JB
136242019-02-14 Joel Brobecker <brobecker@adacore.com>
13625
13626 * windows-nat.c (windows_add_thread): Add new parameter
13627 "main_thread_p" with default value set to false. Update
13628 function documentation as well as all callers.
13629 (windows_delete_thread): Likewise.
13630 (fake_create_process): Update call to windows_add_thread.
13631 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13632 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13633 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13634 call to windows_delete_thread.
13635
007024cc
SM
136362019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13637
13638 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13639
f62318e9
JB
136402019-02-12 John Baldwin <jhb@FreeBSD.org>
13641
13642 * symfile.c (find_separate_debug_file): Use canonical path of
13643 sysroot with child_path instead of gdb_sysroot if it is valid.
13644
cd4b7848
JB
136452019-02-12 John Baldwin <jhb@FreeBSD.org>
13646
13647 * symfile.c (find_separate_debug_file): Use child_path to
13648 determine if an object file is under a sysroot.
13649
efac4bfe
JB
136502019-02-12 John Baldwin <jhb@FreeBSD.org>
13651
13652 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13653 unittests/child-path-selftests.c.
13654 * common/pathstuff.c (child_path): New function.
13655 * common/pathstuff.h (child_path): New prototype.
13656 * unittests/child-path-selftests.c: New file.
13657
402d2bfe
JB
136582019-02-12 John Baldwin <jhb@FreeBSD.org>
13659
13660 * symfile.c (find_separate_debug_file): Look for separate debug
13661 files in debug directories under the sysroot.
13662
1ed9f74e
PW
136632019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13664
13665 * symtab.h (struct minimal_symbol data_p): New const method.
13666 (struct minimal_symbol text_p): Likewise.
13667 * symtab.c (output_source_filename): Use file name style
13668 to print file name.
13669 (print_symbol_info): Likewise.
13670 (print_msymbol_info): Use address style to print addresses.
13671 Use function name style to print executable text symbols.
13672 (expand_symtab_containing_pc): Use data_p.
13673 (find_pc_sect_compunit_symtab): Likewise.
13674
2636d81d
PW
136752019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13676
13677 * breakpoint.c (describe_other_breakpoints): Use address style
13678 to print addresses.
13679 (say_where): Likewise.
13680
ac8c53cc
PW
136812019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13682
13683 * ada-typeprint.c (print_func_type): Print function name
13684 style to print function name.
13685 * c-typeprint.c (c_print_type_1): Likewise.
13686
ea638c43
AH
136872019-02-11 Alan Hayward <alan.hayward@arm.com>
13688
13689 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13690 for execve.
13691
ab759ca8
PW
136922019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13693
13694 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13695 type_stack.
13696
aff29d1c
JB
136972019-02-10 Joel Brobecker <brobecker@adacore.com>
13698
13699 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13700 TYPE_CODE_REF types.
13701
617126bc
JW
137022019-02-08 Jim Wilson <jimw@sifive.com>
13703
13704 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13705 (riscv_linux_fregset): New.
13706 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13707
46e3ed7f
TT
137082019-02-07 Tom Tromey <tom@tromey.com>
13709
13710 * thread.c (thread_cancel_execution_command): Update.
13711 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13712 methods.
13713 (struct thread_fsm_ops): Remove.
13714 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13715 (thread_fsm_should_stop, thread_fsm_return_value)
13716 (thread_fsm_set_finished, thread_fsm_finished_p)
13717 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13718 Don't declare.
13719 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13720 * infrun.c (clear_proceed_status_thread)
13721 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13722 (print_stop_event): Update.
13723 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13724 Add constructor.
13725 (step_command_fsm_ops): Remove.
13726 (new_step_command_fsm): Remove.
13727 (step_1): Update.
13728 (step_command_fsm::should_stop): Rename from
13729 step_command_fsm_should_stop.
13730 (step_command_fsm::clean_up): Rename from
13731 step_command_fsm_clean_up.
13732 (step_command_fsm::do_async_reply_reason): Rename from
13733 step_command_fsm_async_reply_reason.
13734 (struct until_next_fsm): Inherit from thread_fsm. Add
13735 constructor.
13736 (until_next_fsm_ops): Remove.
13737 (new_until_next_fsm): Remove.
13738 (until_next_fsm::should_stop): Rename from
13739 until_next_fsm_should_stop.
13740 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13741 (until_next_fsm::do_async_reply_reason): Rename from
13742 until_next_fsm_async_reply_reason.
13743 (struct finish_command_fsm): Inherit from thread_fsm. Add
13744 constructor. Change type of breakpoint.
13745 (finish_command_fsm_ops): Remove.
13746 (new_finish_command_fsm): Remove.
13747 (finish_command_fsm::should_stop): Rename from
13748 finish_command_fsm_should_stop.
13749 (finish_command_fsm::clean_up): Rename from
13750 finish_command_fsm_clean_up.
13751 (finish_command_fsm::return_value): Rename from
13752 finish_command_fsm_return_value.
13753 (finish_command_fsm::do_async_reply_reason): Rename from
13754 finish_command_fsm_async_reply_reason.
13755 (finish_command): Update.
13756 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13757 Add constructor.
13758 (call_thread_fsm_ops): Remove.
13759 (call_thread_fsm::call_thread_fsm): Rename from
13760 new_call_thread_fsm.
13761 (call_thread_fsm::should_stop): Rename from
13762 call_thread_fsm_should_stop.
13763 (call_thread_fsm::should_notify_stop): Rename from
13764 call_thread_fsm_should_notify_stop.
13765 (run_inferior_call, call_function_by_hand_dummy): Update.
13766 * cli/cli-interp.c (should_print_stop_to_console): Update.
13767 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13768 Add constructor. Change type of location_breakpoint,
13769 caller_breakpoint.
13770 (until_break_fsm_ops): Remove.
13771 (new_until_break_fsm): Remove.
13772 (until_break_fsm::should_stop): Rename from
13773 until_break_fsm_should_stop.
13774 (until_break_fsm::clean_up): Rename from
13775 until_break_fsm_clean_up.
13776 (until_break_fsm::do_async_reply_reason): Rename from
13777 until_break_fsm_async_reply_reason.
13778 (until_break_command): Update.
13779 * thread-fsm.c: Remove.
13780 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13781
1a5c2598
TT
137822019-02-07 Tom Tromey <tom@tromey.com>
13783
13784 * yy-remap.h: Add include guard.
13785 * xtensa-tdep.h: Add include guard.
13786 * xcoffread.h: Rename include guard.
13787 * varobj-iter.h: Add include guard.
13788 * tui/tui.h: Rename include guard.
13789 * tui/tui-winsource.h: Rename include guard.
13790 * tui/tui-wingeneral.h: Rename include guard.
13791 * tui/tui-windata.h: Rename include guard.
13792 * tui/tui-win.h: Rename include guard.
13793 * tui/tui-stack.h: Rename include guard.
13794 * tui/tui-source.h: Rename include guard.
13795 * tui/tui-regs.h: Rename include guard.
13796 * tui/tui-out.h: Rename include guard.
13797 * tui/tui-layout.h: Rename include guard.
13798 * tui/tui-io.h: Rename include guard.
13799 * tui/tui-hooks.h: Rename include guard.
13800 * tui/tui-file.h: Rename include guard.
13801 * tui/tui-disasm.h: Rename include guard.
13802 * tui/tui-data.h: Rename include guard.
13803 * tui/tui-command.h: Rename include guard.
13804 * tic6x-tdep.h: Add include guard.
13805 * target/waitstatus.h: Rename include guard.
13806 * target/wait.h: Rename include guard.
13807 * target/target.h: Rename include guard.
13808 * target/resume.h: Rename include guard.
13809 * target-float.h: Rename include guard.
13810 * stabsread.h: Add include guard.
13811 * rs6000-tdep.h: Add include guard.
13812 * riscv-fbsd-tdep.h: Add include guard.
13813 * regformats/regdef.h: Rename include guard.
13814 * record.h: Rename include guard.
13815 * python/python.h: Rename include guard.
13816 * python/python-internal.h: Rename include guard.
13817 * python/py-stopevent.h: Rename include guard.
13818 * python/py-ref.h: Rename include guard.
13819 * python/py-record.h: Rename include guard.
13820 * python/py-record-full.h: Rename include guard.
13821 * python/py-record-btrace.h: Rename include guard.
13822 * python/py-instruction.h: Rename include guard.
13823 * python/py-events.h: Rename include guard.
13824 * python/py-event.h: Rename include guard.
13825 * procfs.h: Add include guard.
13826 * proc-utils.h: Add include guard.
13827 * p-lang.h: Add include guard.
13828 * or1k-tdep.h: Rename include guard.
13829 * observable.h: Rename include guard.
13830 * nto-tdep.h: Rename include guard.
13831 * nat/x86-linux.h: Rename include guard.
13832 * nat/x86-linux-dregs.h: Rename include guard.
13833 * nat/x86-gcc-cpuid.h: Add include guard.
13834 * nat/x86-dregs.h: Rename include guard.
13835 * nat/x86-cpuid.h: Rename include guard.
13836 * nat/ppc-linux.h: Rename include guard.
13837 * nat/mips-linux-watch.h: Rename include guard.
13838 * nat/linux-waitpid.h: Rename include guard.
13839 * nat/linux-ptrace.h: Rename include guard.
13840 * nat/linux-procfs.h: Rename include guard.
13841 * nat/linux-osdata.h: Rename include guard.
13842 * nat/linux-nat.h: Rename include guard.
13843 * nat/linux-namespaces.h: Rename include guard.
13844 * nat/linux-btrace.h: Rename include guard.
13845 * nat/glibc_thread_db.h: Rename include guard.
13846 * nat/gdb_thread_db.h: Rename include guard.
13847 * nat/gdb_ptrace.h: Rename include guard.
13848 * nat/fork-inferior.h: Rename include guard.
13849 * nat/amd64-linux-siginfo.h: Rename include guard.
13850 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13851 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13852 * nat/aarch64-linux.h: Rename include guard.
13853 * nat/aarch64-linux-hw-point.h: Rename include guard.
13854 * mn10300-tdep.h: Add include guard.
13855 * mips-linux-tdep.h: Add include guard.
13856 * mi/mi-parse.h: Rename include guard.
13857 * mi/mi-out.h: Rename include guard.
13858 * mi/mi-main.h: Rename include guard.
13859 * mi/mi-interp.h: Rename include guard.
13860 * mi/mi-getopt.h: Rename include guard.
13861 * mi/mi-console.h: Rename include guard.
13862 * mi/mi-common.h: Rename include guard.
13863 * mi/mi-cmds.h: Rename include guard.
13864 * mi/mi-cmd-break.h: Rename include guard.
13865 * m2-lang.h: Add include guard.
13866 * location.h: Rename include guard.
13867 * linux-record.h: Rename include guard.
13868 * linux-nat.h: Add include guard.
13869 * linux-fork.h: Add include guard.
13870 * i386-darwin-tdep.h: Rename include guard.
13871 * hppa-linux-offsets.h: Add include guard.
13872 * guile/guile.h: Rename include guard.
13873 * guile/guile-internal.h: Rename include guard.
13874 * gnu-nat.h: Rename include guard.
13875 * gdb-stabs.h: Rename include guard.
13876 * frv-tdep.h: Add include guard.
13877 * f-lang.h: Add include guard.
13878 * event-loop.h: Add include guard.
13879 * darwin-nat.h: Rename include guard.
13880 * cp-abi.h: Rename include guard.
13881 * config/sparc/nm-sol2.h: Rename include guard.
13882 * config/nm-nto.h: Rename include guard.
13883 * config/nm-linux.h: Add include guard.
13884 * config/i386/nm-i386gnu.h: Rename include guard.
13885 * config/djgpp/nl_types.h: Rename include guard.
13886 * config/djgpp/langinfo.h: Rename include guard.
13887 * compile/gcc-cp-plugin.h: Add include guard.
13888 * compile/gcc-c-plugin.h: Add include guard.
13889 * compile/compile.h: Rename include guard.
13890 * compile/compile-object-run.h: Rename include guard.
13891 * compile/compile-object-load.h: Rename include guard.
13892 * compile/compile-internal.h: Rename include guard.
13893 * compile/compile-cplus.h: Rename include guard.
13894 * compile/compile-c.h: Rename include guard.
13895 * common/xml-utils.h: Rename include guard.
13896 * common/x86-xstate.h: Rename include guard.
13897 * common/version.h: Rename include guard.
13898 * common/vec.h: Rename include guard.
13899 * common/tdesc.h: Rename include guard.
13900 * common/selftest.h: Rename include guard.
13901 * common/scoped_restore.h: Rename include guard.
13902 * common/scoped_mmap.h: Rename include guard.
13903 * common/scoped_fd.h: Rename include guard.
13904 * common/safe-iterator.h: Rename include guard.
13905 * common/run-time-clock.h: Rename include guard.
13906 * common/refcounted-object.h: Rename include guard.
13907 * common/queue.h: Rename include guard.
13908 * common/ptid.h: Rename include guard.
13909 * common/print-utils.h: Rename include guard.
13910 * common/preprocessor.h: Rename include guard.
13911 * common/pathstuff.h: Rename include guard.
13912 * common/observable.h: Rename include guard.
13913 * common/netstuff.h: Rename include guard.
13914 * common/job-control.h: Rename include guard.
13915 * common/host-defs.h: Rename include guard.
13916 * common/gdb_wait.h: Rename include guard.
13917 * common/gdb_vecs.h: Rename include guard.
13918 * common/gdb_unlinker.h: Rename include guard.
13919 * common/gdb_unique_ptr.h: Rename include guard.
13920 * common/gdb_tilde_expand.h: Rename include guard.
13921 * common/gdb_sys_time.h: Rename include guard.
13922 * common/gdb_string_view.h: Rename include guard.
13923 * common/gdb_splay_tree.h: Rename include guard.
13924 * common/gdb_setjmp.h: Rename include guard.
13925 * common/gdb_ref_ptr.h: Rename include guard.
13926 * common/gdb_optional.h: Rename include guard.
13927 * common/gdb_locale.h: Rename include guard.
13928 * common/gdb_assert.h: Rename include guard.
13929 * common/filtered-iterator.h: Rename include guard.
13930 * common/filestuff.h: Rename include guard.
13931 * common/fileio.h: Rename include guard.
13932 * common/environ.h: Rename include guard.
13933 * common/common-utils.h: Rename include guard.
13934 * common/common-types.h: Rename include guard.
13935 * common/common-regcache.h: Rename include guard.
13936 * common/common-inferior.h: Rename include guard.
13937 * common/common-gdbthread.h: Rename include guard.
13938 * common/common-exceptions.h: Rename include guard.
13939 * common/common-defs.h: Rename include guard.
13940 * common/common-debug.h: Rename include guard.
13941 * common/cleanups.h: Rename include guard.
13942 * common/buffer.h: Rename include guard.
13943 * common/btrace-common.h: Rename include guard.
13944 * common/break-common.h: Rename include guard.
13945 * cli/cli-utils.h: Rename include guard.
13946 * cli/cli-style.h: Rename include guard.
13947 * cli/cli-setshow.h: Rename include guard.
13948 * cli/cli-script.h: Rename include guard.
13949 * cli/cli-interp.h: Rename include guard.
13950 * cli/cli-decode.h: Rename include guard.
13951 * cli/cli-cmds.h: Rename include guard.
13952 * charset-list.h: Add include guard.
13953 * buildsym-legacy.h: Rename include guard.
13954 * bfin-tdep.h: Add include guard.
13955 * ax.h: Rename include guard.
13956 * arm-linux-tdep.h: Add include guard.
13957 * arm-fbsd-tdep.h: Add include guard.
13958 * arch/xtensa.h: Rename include guard.
13959 * arch/tic6x.h: Add include guard.
13960 * arch/i386.h: Add include guard.
13961 * arch/arm.h: Rename include guard.
13962 * arch/arm-linux.h: Rename include guard.
13963 * arch/arm-get-next-pcs.h: Rename include guard.
13964 * arch/amd64.h: Add include guard.
13965 * arch/aarch64-insn.h: Rename include guard.
13966 * arch-utils.h: Rename include guard.
13967 * annotate.h: Add include guard.
13968 * amd64-darwin-tdep.h: Rename include guard.
13969 * aarch64-linux-tdep.h: Add include guard.
13970 * aarch64-fbsd-tdep.h: Add include guard.
13971 * aarch32-linux-nat.h: Add include guard.
13972
ab9268d2
PW
139732019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13974
13975 * macrotab.c (macro_define_internal): New function that
13976 factorizes macro_define_object_internal and macro_define_function
13977 code.
13978 (macro_define_object_internal): Use macro_define_internal.
13979 (macro_define_function): Likewise.
13980
bb0da2b4
PW
139812019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13982
13983 * macrocmd.c (extract_identifier): Return
13984 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13985 callers.
13986
424eb552
JB
139872019-02-06 John Baldwin <jhb@FreeBSD.org>
13988
13989 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13990
1688cb29
TT
139912019-02-05 Tom Tromey <tom@tromey.com>
13992
13993 * target.c (target_stack::unpush): Move assertion earlier.
13994
b5eba2d8
TT
139952019-01-30 Tom Tromey <tom@tromey.com>
13996
13997 PR python/23615:
13998 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
13999 (gdbpy_parse_and_eval): Likewise.
14000 * python/python-internal.h (gdbpy_allow_threads): New class.
14001
7054e2ff
JB
140022019-01-28 John Baldwin <jhb@FreeBSD.org>
14003
14004 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14005 (aarch64_fbsd_fpregmap): Move earlier.
14006 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14007 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14008 instead of individual calls to trad_frame_set_reg_addr.
14009 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14010 earlier.
14011 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14012 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14013 instead of individual calls to trad_frame_set_reg_addr.
14014
36c25ffa
AH
140152019-01-28 Alan Hayward <alan.hayward@arm.com>
14016
14017 * CONTRIBUTE: Replace contribution list with wiki link.
14018
a0707f3c
TT
140192019-01-25 Tom Tromey <tom@tromey.com>
14020
14021 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14022
0747795c
TT
140232019-01-25 Tom Tromey <tom@tromey.com>
14024
14025 * xtensa-linux-nat.c: Fix common/ includes.
14026 * xml-support.h: Fix common/ includes.
14027 * xml-support.c: Fix common/ includes.
14028 * x86-linux-nat.c: Fix common/ includes.
14029 * windows-nat.c: Fix common/ includes.
14030 * varobj.h: Fix common/ includes.
14031 * varobj.c: Fix common/ includes.
14032 * value.c: Fix common/ includes.
14033 * valops.c: Fix common/ includes.
14034 * utils.c: Fix common/ includes.
14035 * unittests/xml-utils-selftests.c: Fix common/ includes.
14036 * unittests/utils-selftests.c: Fix common/ includes.
14037 * unittests/unpack-selftests.c: Fix common/ includes.
14038 * unittests/tracepoint-selftests.c: Fix common/ includes.
14039 * unittests/style-selftests.c: Fix common/ includes.
14040 * unittests/string_view-selftests.c: Fix common/ includes.
14041 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14042 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14043 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14044 * unittests/rsp-low-selftests.c: Fix common/ includes.
14045 * unittests/parse-connection-spec-selftests.c: Fix common/
14046 includes.
14047 * unittests/optional-selftests.c: Fix common/ includes.
14048 * unittests/offset-type-selftests.c: Fix common/ includes.
14049 * unittests/observable-selftests.c: Fix common/ includes.
14050 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14051 * unittests/memrange-selftests.c: Fix common/ includes.
14052 * unittests/memory-map-selftests.c: Fix common/ includes.
14053 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14054 * unittests/function-view-selftests.c: Fix common/ includes.
14055 * unittests/environ-selftests.c: Fix common/ includes.
14056 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14057 * unittests/common-utils-selftests.c: Fix common/ includes.
14058 * unittests/cli-utils-selftests.c: Fix common/ includes.
14059 * unittests/array-view-selftests.c: Fix common/ includes.
14060 * ui-file.c: Fix common/ includes.
14061 * tui/tui-io.c: Fix common/ includes.
14062 * tracepoint.h: Fix common/ includes.
14063 * tracepoint.c: Fix common/ includes.
14064 * tracefile-tfile.c: Fix common/ includes.
14065 * top.h: Fix common/ includes.
14066 * top.c: Fix common/ includes.
14067 * thread.c: Fix common/ includes.
14068 * target/waitstatus.h: Fix common/ includes.
14069 * target/waitstatus.c: Fix common/ includes.
14070 * target.h: Fix common/ includes.
14071 * target.c: Fix common/ includes.
14072 * target-memory.c: Fix common/ includes.
14073 * target-descriptions.c: Fix common/ includes.
14074 * symtab.h: Fix common/ includes.
14075 * symfile.c: Fix common/ includes.
14076 * stap-probe.c: Fix common/ includes.
14077 * spu-linux-nat.c: Fix common/ includes.
14078 * sparc-nat.c: Fix common/ includes.
14079 * source.c: Fix common/ includes.
14080 * solib.c: Fix common/ includes.
14081 * solib-target.c: Fix common/ includes.
14082 * ser-unix.c: Fix common/ includes.
14083 * ser-tcp.c: Fix common/ includes.
14084 * ser-pipe.c: Fix common/ includes.
14085 * ser-base.c: Fix common/ includes.
14086 * selftest-arch.c: Fix common/ includes.
14087 * s12z-tdep.c: Fix common/ includes.
14088 * rust-exp.y: Fix common/ includes.
14089 * rs6000-aix-tdep.c: Fix common/ includes.
14090 * riscv-tdep.c: Fix common/ includes.
14091 * remote.c: Fix common/ includes.
14092 * remote-notif.h: Fix common/ includes.
14093 * remote-fileio.h: Fix common/ includes.
14094 * remote-fileio.c: Fix common/ includes.
14095 * regcache.h: Fix common/ includes.
14096 * regcache.c: Fix common/ includes.
14097 * record-btrace.c: Fix common/ includes.
14098 * python/python.c: Fix common/ includes.
14099 * python/py-type.c: Fix common/ includes.
14100 * python/py-inferior.c: Fix common/ includes.
14101 * progspace.h: Fix common/ includes.
14102 * producer.c: Fix common/ includes.
14103 * procfs.c: Fix common/ includes.
14104 * proc-api.c: Fix common/ includes.
14105 * printcmd.c: Fix common/ includes.
14106 * ppc-linux-nat.c: Fix common/ includes.
14107 * parser-defs.h: Fix common/ includes.
14108 * osdata.c: Fix common/ includes.
14109 * obsd-nat.c: Fix common/ includes.
14110 * nat/x86-linux.c: Fix common/ includes.
14111 * nat/x86-linux-dregs.c: Fix common/ includes.
14112 * nat/x86-dregs.h: Fix common/ includes.
14113 * nat/x86-dregs.c: Fix common/ includes.
14114 * nat/ppc-linux.c: Fix common/ includes.
14115 * nat/mips-linux-watch.h: Fix common/ includes.
14116 * nat/mips-linux-watch.c: Fix common/ includes.
14117 * nat/linux-waitpid.c: Fix common/ includes.
14118 * nat/linux-ptrace.h: Fix common/ includes.
14119 * nat/linux-ptrace.c: Fix common/ includes.
14120 * nat/linux-procfs.c: Fix common/ includes.
14121 * nat/linux-personality.c: Fix common/ includes.
14122 * nat/linux-osdata.c: Fix common/ includes.
14123 * nat/linux-namespaces.c: Fix common/ includes.
14124 * nat/linux-btrace.h: Fix common/ includes.
14125 * nat/linux-btrace.c: Fix common/ includes.
14126 * nat/fork-inferior.c: Fix common/ includes.
14127 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14128 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14129 * nat/aarch64-linux.c: Fix common/ includes.
14130 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14131 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14132 * namespace.h: Fix common/ includes.
14133 * mips-linux-tdep.c: Fix common/ includes.
14134 * minsyms.c: Fix common/ includes.
14135 * mi/mi-parse.h: Fix common/ includes.
14136 * mi/mi-main.c: Fix common/ includes.
14137 * mi/mi-cmd-env.c: Fix common/ includes.
14138 * memrange.h: Fix common/ includes.
14139 * memattr.c: Fix common/ includes.
14140 * maint.h: Fix common/ includes.
14141 * maint.c: Fix common/ includes.
14142 * main.c: Fix common/ includes.
14143 * machoread.c: Fix common/ includes.
14144 * location.c: Fix common/ includes.
14145 * linux-thread-db.c: Fix common/ includes.
14146 * linux-nat.c: Fix common/ includes.
14147 * linux-fork.c: Fix common/ includes.
14148 * inline-frame.c: Fix common/ includes.
14149 * infrun.c: Fix common/ includes.
14150 * inflow.c: Fix common/ includes.
14151 * inferior.h: Fix common/ includes.
14152 * inferior.c: Fix common/ includes.
14153 * infcmd.c: Fix common/ includes.
14154 * inf-ptrace.c: Fix common/ includes.
14155 * inf-child.c: Fix common/ includes.
14156 * ia64-linux-nat.c: Fix common/ includes.
14157 * i387-tdep.c: Fix common/ includes.
14158 * i386-tdep.c: Fix common/ includes.
14159 * i386-linux-tdep.c: Fix common/ includes.
14160 * i386-linux-nat.c: Fix common/ includes.
14161 * i386-go32-tdep.c: Fix common/ includes.
14162 * i386-fbsd-tdep.c: Fix common/ includes.
14163 * i386-fbsd-nat.c: Fix common/ includes.
14164 * guile/scm-type.c: Fix common/ includes.
14165 * guile/guile.c: Fix common/ includes.
14166 * go32-nat.c: Fix common/ includes.
14167 * gnu-nat.c: Fix common/ includes.
14168 * gdbthread.h: Fix common/ includes.
14169 * gdbarch-selftests.c: Fix common/ includes.
14170 * gdb_usleep.c: Fix common/ includes.
14171 * gdb_select.h: Fix common/ includes.
14172 * gdb_bfd.c: Fix common/ includes.
14173 * gcore.c: Fix common/ includes.
14174 * fork-child.c: Fix common/ includes.
14175 * findvar.c: Fix common/ includes.
14176 * fbsd-nat.c: Fix common/ includes.
14177 * event-top.c: Fix common/ includes.
14178 * event-loop.c: Fix common/ includes.
14179 * dwarf2read.c: Fix common/ includes.
14180 * dwarf2loc.c: Fix common/ includes.
14181 * dwarf2-frame.c: Fix common/ includes.
14182 * dwarf-index-cache.c: Fix common/ includes.
14183 * dtrace-probe.c: Fix common/ includes.
14184 * disasm-selftests.c: Fix common/ includes.
14185 * defs.h: Fix common/ includes.
14186 * csky-tdep.c: Fix common/ includes.
14187 * cp-valprint.c: Fix common/ includes.
14188 * cp-support.h: Fix common/ includes.
14189 * cp-support.c: Fix common/ includes.
14190 * corelow.c: Fix common/ includes.
14191 * completer.h: Fix common/ includes.
14192 * completer.c: Fix common/ includes.
14193 * compile/compile.c: Fix common/ includes.
14194 * compile/compile-loc2c.c: Fix common/ includes.
14195 * compile/compile-cplus-types.c: Fix common/ includes.
14196 * compile/compile-cplus-symbols.c: Fix common/ includes.
14197 * command.h: Fix common/ includes.
14198 * cli/cli-dump.c: Fix common/ includes.
14199 * cli/cli-cmds.c: Fix common/ includes.
14200 * charset.c: Fix common/ includes.
14201 * build-id.c: Fix common/ includes.
14202 * btrace.h: Fix common/ includes.
14203 * btrace.c: Fix common/ includes.
14204 * breakpoint.h: Fix common/ includes.
14205 * breakpoint.c: Fix common/ includes.
14206 * ax.h:
14207 (enum agent_op): Fix common/ includes.
14208 * ax-general.c (struct aop_map): Fix common/ includes.
14209 * ax-gdb.c: Fix common/ includes.
14210 * auxv.c: Fix common/ includes.
14211 * auto-load.c: Fix common/ includes.
14212 * arm-tdep.c: Fix common/ includes.
14213 * arch/riscv.c: Fix common/ includes.
14214 * arch/ppc-linux-common.c: Fix common/ includes.
14215 * arch/i386.c: Fix common/ includes.
14216 * arch/arm.c: Fix common/ includes.
14217 * arch/arm-linux.c: Fix common/ includes.
14218 * arch/arm-get-next-pcs.c: Fix common/ includes.
14219 * arch/amd64.c: Fix common/ includes.
14220 * arch/aarch64.c: Fix common/ includes.
14221 * arch/aarch64-insn.c: Fix common/ includes.
14222 * arch-utils.c: Fix common/ includes.
14223 * amd64-windows-tdep.c: Fix common/ includes.
14224 * amd64-tdep.c: Fix common/ includes.
14225 * amd64-sol2-tdep.c: Fix common/ includes.
14226 * amd64-obsd-tdep.c: Fix common/ includes.
14227 * amd64-nbsd-tdep.c: Fix common/ includes.
14228 * amd64-linux-tdep.c: Fix common/ includes.
14229 * amd64-linux-nat.c: Fix common/ includes.
14230 * amd64-fbsd-tdep.c: Fix common/ includes.
14231 * amd64-fbsd-nat.c: Fix common/ includes.
14232 * amd64-dicos-tdep.c: Fix common/ includes.
14233 * amd64-darwin-tdep.c: Fix common/ includes.
14234 * agent.c: Fix common/ includes.
14235 * ada-lang.h: Fix common/ includes.
14236 * ada-lang.c: Fix common/ includes.
14237 * aarch64-tdep.c: Fix common/ includes.
14238
2f5c153e
TT
142392019-01-25 Tom Tromey <tom@tromey.com>
14240
14241 * common/create-version.sh: Use common/version.h.
14242
adc6a863
PA
142432019-01-24 Pedro Alves <palves@redhat.com>
14244
14245 * infrun.c (signal_stop, signal_print, signal_program)
14246 (signal_catch, signal_pass): Now arrays instead of pointers.
14247 (update_signals_program_target, do_target_resume)
14248 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14249 * linux-nat.c (linux_nat_target::pass_signals)
14250 (linux_nat_target::create_inferior, linux_nat_target::attach):
14251 Adjust.
14252 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14253 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14254 * procfs.c (procfs_target::pass_signals): Adjust.
14255 * record-full.c (record_full_target::resume): Adjust.
14256 * remote.c (remote_target::pass_signals)
14257 (remote_target::program_signals): Adjust.
14258 * target-debug.h (target_debug_print_signals): Now takes a
14259 gdb::array_view as parameter. Adjust.
14260 * target.h (target_ops) <pass_signals, program_signals>: Replace
14261 pointer and length parameters with gdb::array_view.
14262 (target_pass_signals, target_program_signals): Likewise.
14263 * target-delegates.c: Regenerate.
14264
3046d67a
PA
142652019-01-24 Pedro Alves <palves@redhat.com>
14266
14267 * common/forward-scope-exit.h
14268 (forward_scope_exit::forward_scope_exit): Pass arguments to
14269 m_bind_function directly, instead of creating a std::bind and
14270 copying that.
14271
353229bf
AH
142722019-01-24 Alan Hayward <alan.hayward@arm.com>
14273
14274 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14275 for static members.
14276 (pass_in_v_vfp_candidate): Likewise.
14277
311dc83a
TT
142782019-01-23 Tom Tromey <tom@tromey.com>
14279 Pedro Alves <palves@redhat.com>
14280
14281 * regcache.c (class regcache_invalidator): Remove.
14282 (regcache::raw_write): Use make_scope_exit.
14283
296bd123
TT
142842019-01-23 Tom Tromey <tom@tromey.com>
14285
14286 * ui-out.h (class ui_out_emit_type): Update comment.
14287
979a0d13
TT
142882019-01-23 Tom Tromey <tom@tromey.com>
14289
14290 * infrun.c (fetch_inferior_event): Update comment.
14291
d238133d
TT
142922019-01-23 Tom Tromey <tom@tromey.com>
14293 Pedro Alves <palves@redhat.com>
14294
14295 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14296 parameter.
14297 (fetch_inferior_event): Use SCOPE_EXIT.
14298
14299
9885e6bb
TT
143002019-01-23 Tom Tromey <tom@tromey.com>
14301 Pedro Alves <palves@redhat.com>
14302
14303 * infrun.c (disable_thread_events): Delete.
14304 (stop_all_threads): Use SCOPE_EXIT.
14305
286526c1
TT
143062019-01-23 Tom Tromey <tom@tromey.com>
14307 Pedro Alves <palves@redhat.com>
14308
14309 * symfile.c: Include forward-scope-exit.h.
14310 (clear_symtab_users_cleanup): Replace forward declaration with
14311 a FORWARD_SCOPE_EXIT.
14312 (syms_from_objfile_1): Use the forward_scope_exit and
14313 gdb::optional instead of cleanup_function.
14314 (reread_symbols): Use the forward_scope_exit instead of
14315 cleanup_function.
14316 (clear_symtab_users_cleanup): Remove function.
14317
1db93f14
TT
143182019-01-23 Tom Tromey <tom@tromey.com>
14319 Pedro Alves <palves@redhat.com>
14320
14321 * linux-nat.c: Include scope-exit.h.
14322 (cleanup_target_stop): Remove.
14323 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14324 SCOPE_EXIT.
14325
2cc83d1e
TT
143262019-01-23 Tom Tromey <tom@tromey.com>
14327 Pedro Alves <palves@redhat.com>
14328
14329 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14330 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14331
694c6bf5
TT
143322019-01-23 Tom Tromey <tom@tromey.com>
14333 Andrew Burgess <andrew.burgess@embecosm.com>
14334 Pedro Alves <palves@redhat.com>
14335
14336 * infrun.c (fetch_inferior_event): Use scope_exit.
14337 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14338 * top.c (execute_command): Use scope_exit.
14339 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14340 * utils.c (do_bpstat_clear_actions_cleanup)
14341 (make_bpstat_clear_actions_cleanup): Remove.
14342
4c41382a
TT
143432019-01-23 Tom Tromey <tom@tromey.com>
14344 Pedro Alves <palves@redhat.com>
14345
14346 * infrun.c: Include "common/scope-exit.h"
14347 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14348 (wait_for_inferior): Use SCOPE_EXIT.
14349 (fetch_inferior_event): Use scope_exit.
14350
89f8fb50
TT
143512019-01-23 Tom Tromey <tom@tromey.com>
14352 Pedro Alves <palves@redhat.com>
14353
14354 * breakpoint.c (create_breakpoint): Remove cleanup.
14355
5419bdae
TT
143562019-01-23 Tom Tromey <tom@tromey.com>
14357 Andrew Burgess <andrew.burgess@embecosm.com>
14358 Pedro Alves <palves@redhat.com>
14359
e587ef42
PA
143602019-01-23 Pedro Alves <palves@redhat.com>
14361
14362 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14363
77f0e74c
PA
143642019-01-23 Pedro Alves <palves@redhat.com>
14365 Andrew Burgess <andrew.burgess@embecosm.com>
14366
14367 * gdbthread.h: Include "common/forward-scope-exit.h".
14368 (scoped_finish_thread_state): Redefine custom class in terms of
14369 forward_scope_exit.
14370
5b9b3e53
PA
143712019-01-23 Pedro Alves <palves@redhat.com>
14372 Andrew Burgess <andrew.burgess@embecosm.com>
14373
14374 * common/forward-scope-exit.h: New file.
14375
54b65c9b
PA
143762019-01-23 Pedro Alves <palves@redhat.com>
14377 Andrew Burgess <andrew.burgess@embecosm.com>
14378 Tom Tromey <tom@tromey.com>
14379
14380 * common/scope-exit.h: New file.
14381
cf08fb29
PA
143822019-01-23 Pedro Alves <palves@redhat.com>
14383
14384 * common/preprocessor.h (ESC): Rename to ...
14385 (ESC_PARENS): ... this.
14386 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14387 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14388
ae73e2e2
TT
143892019-01-23 Tom Tromey <tom@tromey.com>
14390
14391 * language.h (class scoped_switch_to_sym_language_if_auto):
14392 Initialize m_lang in both cases.
14393
6594e122
AH
143942019-01-23 Alan Hayward <alan.hayward@arm.com>
14395
14396 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14397 with XCNEW.
14398
a7c9855d
TT
143992019-01-22 Tom Tromey <tom@tromey.com>
14400
14401 * corelow.c: Do not include sys/file.h.
14402
93cc1d53
TT
144032019-01-22 Tom Tromey <tom@tromey.com>
14404
14405 * tui/tui-wingeneral.h: Include gdb_curses.h.
14406
38561778
TT
144072019-01-22 Tom Tromey <tom@tromey.com>
14408
14409 * source-cache.h (class source_cache) <get_source_lines,
14410 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14411
37b3ab5b
TT
144122019-01-22 Tom Tromey <tom@tromey.com>
14413
14414 * remote-fileio.h (struct remote_target): Declare.
14415
3fabc016
TT
144162019-01-22 Tom Tromey <tom@tromey.com>
14417
14418 * python/py-arch.c: Do not include py-ref.h.
14419 * python/py-bpevent.c: Do not include py-ref.h.
14420 * python/py-cmd.c: Do not include py-ref.h.
14421 * python/py-continueevent.c: Do not include py-ref.h.
14422 * python/py-event.h: Do not include py-ref.h.
14423 * python/py-evtregistry.c: Do not include py-ref.h.
14424 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14425 * python/py-frame.c: Do not include py-ref.h.
14426 * python/py-framefilter.c: Do not include py-ref.h.
14427 * python/py-function.c: Do not include py-ref.h.
14428 * python/py-infevents.c: Do not include py-ref.h.
14429 * python/py-linetable.c: Do not include py-ref.h.
14430 * python/py-objfile.c: Do not include py-ref.h.
14431 * python/py-param.c: Do not include py-ref.h.
14432 * python/py-prettyprint.c: Do not include py-ref.h.
14433 * python/py-progspace.c: Do not include py-ref.h.
14434 * python/py-symbol.c: Do not include py-ref.h.
14435 * python/py-symtab.c: Do not include py-ref.h.
14436 * python/py-type.c: Do not include py-ref.h.
14437 * python/py-unwind.c: Do not include py-ref.h.
14438 * python/py-utils.c: Do not include py-ref.h.
14439 * python/py-value.c: Do not include py-ref.h.
14440 * python/py-varobj.c: Do not include py-ref.h.
14441 * python/py-xmethods.c: Do not include py-ref.h.
14442 * python/python.c: Do not include py-ref.h.
14443 * varobj.c: Do not include py-ref.h.
14444
6b4d7774
TT
144452019-01-22 Tom Tromey <tom@tromey.com>
14446
14447 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14448 keyword for bcache.
14449
7af7e9b5
TT
144502019-01-22 Tom Tromey <tom@tromey.com>
14451
14452 * compile/compile-cplus-types.c: Remove a comment by #include.
14453
951d1049
TT
144542019-01-22 Tom Tromey <tom@tromey.com>
14455
14456 * compile/gcc-c-plugin.h: Include compile-internal.h.
14457
d65d5705
TT
144582019-01-22 Tom Tromey <tom@tromey.com>
14459
14460 * stabsread.c (EXTERN): Do not define.
14461 (symnum, next_symbol_text_func, processing_gcc_compilation)
14462 (within_function, global_sym_chain, global_stabs)
14463 (previous_stab_code, this_object_header_files)
14464 (n_this_object_header_files)
14465 (n_allocated_this_object_header_files): Define.
14466 * stabsread.h (EXTERN): Never define. Use "extern".
14467
b6fb1ee5
PW
144682019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14469
14470 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14471 history_value.
14472
be6d4f74
TT
144732019-01-21 Tom Tromey <tom@tromey.com>
14474
14475 * ui-out.c: Fix includes.
14476 * tui/tui-source.c: Fix includes.
14477 * target.c: Fix includes.
14478 * remote.c: Fix includes.
14479 * regcache.c: Fix includes.
14480 * python/py-block.c: Fix includes.
14481 * printcmd.c: Fix includes.
14482 * or1k-tdep.c: Fix includes.
14483 * mi/mi-main.c: Fix includes.
14484 * m32r-tdep.c: Fix includes.
14485 * csky-tdep.c: Fix includes.
14486 * compile/compile-cplus-types.c: Fix includes.
14487 * cli/cli-interp.c: Fix includes.
14488
73021deb
AH
144892019-01-21 Alan Hayward <alan.hayward@arm.com>
14490
14491 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14492 for padding.
14493
7932255d
TT
144942019-01-16 Tom Tromey <tom@tromey.com>
14495
14496 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14497 earlier.
14498 (struct objfile) <msymbols_range>: Move from top level.
14499 <msymbols>: New method.
14500 (class objfile_msymbols): Remove.
14501 * symtab.c (default_collect_symbol_completion_matches_break_on):
14502 Update.
14503 * symmisc.c (dump_msymbols): Update.
14504 * stabsread.c (scan_file_globals): Update.
14505 * objc-lang.c (info_selectors_command, info_classes_command)
14506 (find_methods): Update.
14507 * minsyms.c (find_solib_trampoline_target): Update.
14508 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14509 * coffread.c (coff_symfile_read): Update.
14510 * ada-lang.c (ada_lookup_simple_minsym)
14511 (ada_collect_symbol_completion_matches): Update.
14512
604b1bfb
TT
145132019-01-16 Tom Tromey <tom@tromey.com>
14514
14515 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14516 type. Remove no-argument constructor.
14517 <iterator::operator++>: Simplify.
14518 <begin>: Update.
14519 <end>: Use minimal_symbol_count.
14520
f252c6d5
TT
145212019-01-16 Tom Tromey <tom@tromey.com>
14522
14523 * objfiles.h (struct objfile) <psymtabs>: New method.
14524 (class objfile_psymtabs): Remove.
14525 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14526 typedef.
14527 <range>: New method.
14528 (require_partial_symbols): Change return type.
14529 * psymtab.c (require_partial_symbols)
14530 (psym_expand_symtabs_matching): Update.
14531 * mdebugread.c (parse_partial_symbols): Update.
14532 * dbxread.c (dbx_end_psymtab): Update.
14533
b669c953
TT
145342019-01-15 Tom Tromey <tom@tromey.com>
14535
14536 * symtab.c (lookup_objfile_from_block)
14537 (lookup_symbol_in_objfile_symtabs)
14538 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14539 (find_line_symtab, info_sources_command)
14540 (default_collect_symbol_completion_matches_break_on)
14541 (make_source_files_completion_list): Update.
14542 * symmisc.c (print_objfile_statistics, dump_objfile)
14543 (maintenance_print_symbols, maintenance_info_symtabs)
14544 (maintenance_check_symtabs, maintenance_info_line_tables):
14545 Update.
14546 * source.c (select_source_symtab)
14547 (forget_cached_source_info_for_objfile): Update.
14548 * objfiles.h (class objfile_compunits): Remove.
14549 (struct objfile) <compunits_range>: New typedef.
14550 (compunits): New method.
14551 * objfiles.c (objfile_relocate1): Update.
14552 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14553 * maint.c (count_symtabs_and_blocks): Update.
14554 * linespec.c (iterate_over_all_matching_symtabs): Update.
14555 * cp-support.c (add_symbol_overload_list_qualified): Update.
14556 * coffread.c (coff_symtab_read): Update.
14557 * ada-lang.c (add_nonlocal_symbols)
14558 (ada_collect_symbol_completion_matches)
14559 (ada_add_global_exceptions): Update.
14560
7e955d83
TT
145612019-01-15 Tom Tromey <tom@tromey.com>
14562
14563 * progspace.h (program_space) <objfiles_safe_range>: New
14564 typedef.
14565 <objfiles_safe>: New method.
14566 * objfiles.h (class all_objfiles_safe): Remove.
14567 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14568 * jit.c (jit_inferior_exit_hook): Update.
14569
2030c079
TT
145702019-01-17 Tom Tromey <tom@tromey.com>
14571
14572 * progspace.h (program_space) <objfiles_range>: New typedef.
14573 <objfiles>: New method.
14574 <objfiles_head>: Rename from objfiles.
14575 (object_files): Update.
14576 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14577 * guile/scm-pretty-print.c
14578 (ppscm_find_pretty_printer_from_objfiles): Update.
14579 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14580 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14581 Update.
14582 * python/py-progspace.c (pspy_get_objfiles): Update.
14583 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14584 Update.
14585 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14586 (objfpy_lookup_objfile_by_build_id): Update.
14587 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14588 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14589 Update.
14590 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14591 (expand_symtab_containing_pc, lookup_objfile_from_block)
14592 (lookup_static_symbol, basic_lookup_transparent_type)
14593 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14594 (find_line_symtab, info_sources_command)
14595 (default_collect_symbol_completion_matches_break_on)
14596 (make_source_files_completion_list, find_main_name): Update.
14597 * symmisc.c (print_symbol_bcache_statistics)
14598 (print_objfile_statistics, maintenance_print_symbols)
14599 (maintenance_print_msymbols, maintenance_print_objfiles)
14600 (maintenance_info_symtabs, maintenance_check_symtabs)
14601 (maintenance_expand_symtabs, maintenance_info_line_tables):
14602 Update.
14603 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14604 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14605 (map_overlay_command, unmap_overlay_command)
14606 (simple_overlay_update, expand_symtabs_matching)
14607 (map_symbol_filenames): Update.
14608 * symfile-debug.c (set_debug_symfile): Update.
14609 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14610 Update.
14611 * source.c (select_source_symtab, forget_cached_source_info):
14612 Update.
14613 * solib.c (solib_read_symbols): Update.
14614 * solib-spu.c (append_ocl_sos): Update.
14615 * psymtab.c (maintenance_print_psymbols)
14616 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14617 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14618 * printcmd.c (info_symbol_command): Update.
14619 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14620 Update.
14621 * objfiles.h (class all_objfiles): Remove.
14622 * objfiles.c (have_partial_symbols, have_full_symbols)
14623 (have_minimal_symbols, qsort_cmp, update_section_map)
14624 (shared_objfile_contains_address_p)
14625 (default_iterate_over_objfiles_in_search_order): Update.
14626 * objc-lang.c (info_selectors_command, info_classes_command)
14627 (find_methods): Update.
14628 * minsyms.c (find_solib_trampoline_target): Update.
14629 * maint.c (maintenance_info_sections)
14630 (maintenance_translate_address, count_symtabs_and_blocks):
14631 Update.
14632 * main.c (captured_main_1): Update.
14633 * linux-thread-db.c (try_thread_db_load_from_pdir)
14634 (has_libpthread): Update.
14635 * linespec.c (iterate_over_all_matching_symtabs)
14636 (search_minsyms_for_name): Update.
14637 * jit.c (jit_find_objf_with_entry_addr): Update.
14638 * hppa-tdep.c (find_unwind_entry)
14639 (hppa_lookup_stub_minimal_symbol): Update.
14640 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14641 Update.
14642 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14643 (elf_gnu_ifunc_resolve_by_got): Update.
14644 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14645 * dwarf-index-write.c (save_gdb_index_command): Update.
14646 * cp-support.c (add_symbol_overload_list_qualified): Update.
14647 * breakpoint.c (create_overlay_event_breakpoint)
14648 (create_longjmp_master_breakpoint)
14649 (create_std_terminate_master_breakpoint)
14650 (create_exception_master_breakpoint): Update.
14651 * blockframe.c (find_pc_partial_function): Update.
14652 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14653 (ada_collect_symbol_completion_matches)
14654 (ada_add_global_exceptions): Update.
14655
776489e0
TT
146562019-01-17 Tom Tromey <tom@tromey.com>
14657
14658 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14659 declare VEC.
14660 (solib_target_parse_libraries): Change return type.
14661 (library_list_start_segment, library_list_start_section)
14662 (library_list_end_library, library_list_start_library); Update.
14663 (solib_target_free_library_list): Remove.
14664 (solib_target_parse_libraries): Remove cleanup. Change return
14665 type.
14666 (solib_target_current_sos): Update.
14667
6471e7d2
TT
146682019-01-17 Tom Tromey <tromey@bapiya>
14669
14670 * valprint.c: Replace "the the" with "the".
14671 * symtab.c: Replace "the the" with "the".
14672 * solib.c: Replace "the the" with "the".
14673 * solib-dsbt.c: Replace "the the" with "the".
14674 * linespec.c: Replace "the the" with "the".
14675 * dwarf2loc.h: Replace "the the" with "the".
14676 * amd64-windows-tdep.c: Replace "the the" with "the".
14677 * aarch64-tdep.c: Replace "the the" with "the".
14678
c24bdb02
KS
146792019-01-16 Keith Seitz <keiths@redhat.com>
14680
14681 PR gdb/23773
14682 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14683 <builder>: Rename to ..
14684 <m_builder>: ... this and make private.
14685 (dwarf2_cu::get_builder): New method. Change all users of
14686 `builder' to use this method.
14687 (dwarf2_start_symtab): Move to ...
14688 (dwarf2_cu::start_symtab): ... here. Update all callers
14689 (setup_type_unit_groups): Move to ...
14690 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14691 callers.
14692 (dwarf2_cu::reset_builder): New method.
14693 (process_full_compunit, process_full_type_unit): Use
14694 dwarf2_cu::reset_builder.
14695 (follow_die_offset): Record the ancestor CU if it is different
14696 from the followed DIE's CU.
14697 (follow_die_sig_1): Likewise.
14698
8d64371b
TT
146992019-01-15 Tom Tromey <tom@tromey.com>
14700
14701 * remote.c (class remote_state) <buf>: Now a char_vector.
14702 <buf_size>: Remove.
14703 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14704 parameter.
14705 (remote_target::getpkt_or_notif_sane_1)
14706 (remote_target::getpkt_sane)
14707 (remote_target::getpkt_or_notif_sane): Likewise.
14708 (class remote_target) <putpkt>: New overload.
14709 (remote_target::read_frame): Change type of "buf_p". Remove
14710 sizeof_p parameter.
14711 (packet_ok): New overload.
14712 (packet_check_result): New overload.
14713 Update all uses.
14714
bb277751
TT
147152019-01-14 Tom Tromey <tom@tromey.com>
14716
14717 * remote-notif.c (handle_notification, remote_notif_ack)
14718 (remote_notif_parse): Make "buf" const.
14719 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14720 const.
14721 (remote_notif_parse, remote_notif_ack, handle_notification):
14722 Likewise.
14723 * remote.c (remote_notif_stop_parse): Make "buf" const.
14724 (remote_target::remote_parse_stop_reply): Make "buf" const.
14725 (remote_notif_stop_ack): Make "buf" const.
14726
05be00a8
TT
147272019-01-14 Tom Tromey <tom@tromey.com>
14728
14729 * remote.c (remote_console_output): Make parameter const.
14730
491adeca
TT
147312019-01-14 Tom Tromey <tom@tromey.com>
14732
14733 * target-debug.h (target_debug_print_signals): Constify.
14734 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14735 * procfs.c (procfs_target::pass_signals): Update.
14736 * linux-nat.c (linux_nat_target::pass_signals): Update.
14737 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14738 * target-delegates.c: Rebuild.
14739 * remote.c (remote_target::program_signals): Update.
14740 (remote_target::pass_signals): Update.
14741 * target.c (target_pass_signals): Constify argument.
14742 (target_program_signals): Likewise.
14743 * target.h (struct target_ops) <pass_signals, program_signals>:
14744 Constify argument.
14745 (target_pass_signals, target_program_signals): Constify argument.
14746
bbd94648
TT
147472019-01-14 Tom Tromey <tom@tromey.com>
14748
14749 PR tui/28819:
14750 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14751
6f072a10
PFC
147522019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14753
14754 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14755 field.
14756 * rs6000-tdep.c: Include reggroups.h.
14757 (IS_V_ALIAS_PSEUDOREG): Define.
14758 (rs6000_register_name): Return names for the "vX" aliases.
14759 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14760 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14761 aliases. Call default_register_reggroup_p for all other
14762 pseudo-registers.
14763 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14764 New functions.
14765 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14766 Handle "vX" aliases.
14767 (v_alias_pseudo_register_collect): New function.
14768 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14769 (rs6000_gdbarch_init): Initialize "vX" aliases as
14770 pseudo-registers. Restore registration of
14771 rs6000_pseudo_register_reggroup_p with
14772 set_tdesc_pseudo_register_reggroup_p.
14773
1a782351
MF
147742019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14775
14776 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14777 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14778 set_gdbarch_num_pseudo_regs.
14779
d73cff18
PW
147802019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14781
14782 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14783 Remove arg prefixname, add do_set and do_show.
14784 Add member functions set_list and show_list.
14785 * cli/cli-style.c (class cli_style_option): Update accordingly.
14786 (style_set_list): Move to file scope.
14787 (style_show_list): Likewise.
14788 (set_style): Call help_list.
14789 (show_style): Call cmd_show_list.
14790 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14791 Update to use the new macro.
14792
60a90376
JB
147932019-10-12 Joel Brobecker <brobecker@adacore.com>
14794
14795 * ada-lang.c (_initialize_ada_language): Expand the help text
14796 for the "catch exception" command.
14797
9d7c67bf
PW
147982019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14799
14800 * symtab.c (matching_obj_sections): Initialize obj,
14801 declare it closer to its usage.
14802
7cf47dc4
TT
148032019-01-10 Tom Tromey <tom@tromey.com>
14804
14805 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14806 (basic_inf_threads_range): Remove.
14807 (inf_threads_range, inf_non_exited_threads_range)
14808 (safe_inf_threads_range): Use next_adapter.
14809
d3cb6808
KS
148102019-01-10 Keith Seitz <keiths@redhat.com>
14811
14812 PR gdb/23712
14813 PR symtab/23010
14814 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14815 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14816
63a20375
KS
148172019-01-10 Keith Seitz <keiths@redhat.com>
14818
14819 PR gdb/23712
14820 PR symtab/23010
14821 * dictionary.c (pending_to_vector): Remove.
14822 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14823 Remove _1 suffix, replacing functions of the same name. Update
14824 all callers.
14825 (dict_create_hashed, dict_create_hashed_expandable)
14826 (dict_create_linear, dict_create_linear_expandable, dict_free)
14827 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14828 Make functions static.
14829
b026f593
KS
148302019-01-10 Keith Seitz <keiths@redhat.com>
14831
14832 PR gdb/23712
14833 PR symtab/23010
14834 * dictionary.h (struct dictionary): Replace declaration with
14835 multidictionary.
14836 (dict_create_hashed, dict_create_hashed_expandable)
14837 (dict_create_linear, dict_create_linear_expandable)
14838 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14839 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14840 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14841 taking multidictionary argument.
14842 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14843 * block.h (struct block) <dict>: Change to multidictionary
14844 and rename `multidict'.
14845 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14846 symmisc.c: Update all dictionary references to multidictionary.
14847
c7748ee9
KS
148482019-01-10 Keith Seitz <keiths@redhat.com>
14849
14850 PR gdb/23712
14851 PR symtab/23010
14852 * dictionary.c: Include unordered_map.
14853 (pending_to_vector): New function.
14854 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14855 Rewrite the non-"_1" functions to take vector instead
14856 of linked list.
14857 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14858 "new" _1 versions of the same name.
14859 (multidictionary): Define.
14860 (std::hash<enum language): New definition.
14861 (collate_pending_symbols_by_language, mdict_create_hashed)
14862 (mdict_create_hashed_expandable, mdict_create_linear)
14863 (mdict_create_linear_expandable, mdict_free)
14864 (find_language_dictionary, create_new_language_dictionary)
14865 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14866 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14867 (mdict_size, mdict_empty): New functions.
14868 * dictionary.h (mdict_iterator): Define.
14869
67aa1f3c
PA
148702019-01-10 Pedro Alves <palves@redhat.com>
14871
14872 * breakpoint.c (read_uploaded_action)
14873 (create_tracepoint_from_upload): Adjust to use
14874 gdb::unique_xmalloc_ptr.
14875 * ctf.c (ctf_write_uploaded_tp):
14876 (SET_ARRAY_FIELD): Use emplace_back.
14877 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14878 * tracefile-tfile.c (tfile_write_uploaded_tp):
14879 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14880 gdb::unique_xmalloc_ptr.
14881 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14882 at_string, cond_string, cmd_strings>: Replace char pointers
14883 with gdb::unique_xmalloc_ptr.
14884
2f667667
PA
148852019-01-10 Pedro Alves <palves@redhat.com>
14886
14887 * solib-target.c (library_list_start_library): Don't xstrdup name.
14888
36cb7237
PA
148892019-01-10 Pedro Alves <palves@redhat.com>
14890
14891 * mdebugread.c (parse_partial_symbols): Use
14892 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14893
da584958
AB
148942019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14895
14896 * linux-fork.c (scoped_switch_fork_info)
14897 <~scoped_switch_fork_info>: Fix incorrect variable name.
14898
1ef8573c
AB
148992019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14900
14901 * linux-fork.c (scoped_switch_fork_info)
14902 <scoped_switch_fork_info>: Make explicit.
14903 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14904
8d7bcccb
TT
149052019-01-10 Tom Tromey <tom@tromey.com>
14906
14907 * objfiles.h (objfile::reset_psymtabs): Update.
14908 * objfiles.c (objfile::objfile): Update.
14909 * psymtab.h (psymtab_storage::obstack): Update.
14910 (psymtab_storage::m_obstack): Use gdb::optional.
14911 (class psymtab_storage): Update comment. Remove objfile
14912 parameter.
14913 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14914
b596a3c7
TT
149152019-01-10 Tom Tromey <tom@tromey.com>
14916
14917 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14918 <free_psymtabs>: Now private.
14919 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14920 (allocate_psymtab): Use new method.
14921
a9342b62
TT
149222019-01-10 Tom Tromey <tom@tromey.com>
14923
14924 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14925 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14926 * mdebugread.c (parse_partial_symbols): Use
14927 allocate_dependencies.
14928 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14929 allocate_dependencies.
14930 (process_psymtab_comp_unit_reader)
14931 (build_type_psymtab_dependencies): Likewise.
14932 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14933
5af70966
TT
149342019-01-10 Tom Tromey <tom@tromey.com>
14935
14936 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14937 PSYMBOL_SET_LANGUAGE.
14938 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14939
5923a04c
TT
149402019-01-10 Tom Tromey <tom@tromey.com>
14941
14942 * psymtab.h (psymtab_storage::obstack): New method.
14943 <m_obstack>: Rename from obstack; now private.
14944 * psymtab.c (psymtab_storage): Update.
14945 * dwarf2read.c (create_addrmap_from_index)
14946 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14947 Update.
14948
6d6a12bf
TT
149492019-01-10 Tom Tromey <tom@tromey.com>
14950
14951 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14952 * objfiles.h (objfile::reset_psymtabs): New method.
14953
d320c2b5
TT
149542019-01-10 Tom Tromey <tom@tromey.com>
14955
14956 * symmisc.c (print_symbol_bcache_statistics): Update.
14957 (print_objfile_statistics): Update.
14958 * symfile.c (reread_symbols): Update.
14959 * psymtab.h (class psymtab_storage): New.
14960 * psymtab.c (psymtab_storage): New constructor.
14961 (~psymtab_storage): New destructor.
14962 (require_partial_symbols): Update.
14963 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14964 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14965 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14966 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14967 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14968 (start_psymtab_common, end_psymtab_common)
14969 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14970 (allocate_psymtab): Update.
14971 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14972 Update.
14973 (dump_psymtab_addrmap, maintenance_print_psymbols)
14974 (maintenance_check_psymtabs): Update.
14975 (class objfile_psymtabs): Move to objfiles.h.
14976 * psympriv.h (discard_psymtab): Now inline.
14977 (psymtab_discarder::psymtab_discarder): Update.
14978 (psymtab_discarder::~psymtab_discarder): Update.
14979 (ALL_OBJFILE_PSYMTABS): Rewrite.
14980 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14981 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14982 Remove fields.
14983 <partial_symtabs>: New field.
14984 (class objfile_psymtabs): Move from psymtab.h. Update.
14985 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14986 psymbol_cache.
14987 (objfile::~objfile): Don't destroy psymbol_cache.
14988 * mdebugread.c (parse_partial_symbols): Update.
14989 * dwarf2read.c (create_addrmap_from_index)
14990 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14991 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14992 (add_partial_subprogram, dwarf2_ranges_read): Update.
14993 * dwarf-index-write.c (write_address_map)
14994 (write_one_signatured_type, recursively_write_psymbols)
14995 (class debug_names, class debug_names, write_psymtabs_to_index):
14996 Update.
14997
1d94a5a3
TT
149982019-01-10 Tom Tromey <tom@tromey.com>
14999
15000 * symtab.h (SYMBOL_SET_NAMES): Update.
15001 (symbol_set_names): Update.
15002 (MSYMBOL_SET_NAMES): Update.
15003 * symtab.c (symbol_set_names): Change argument to be an
15004 objfile_per_bfd_storage.
15005 * psymtab.c (add_psymbol_to_bcache): Update.
15006 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15007
0f14768a
TT
150082019-01-10 Tom Tromey <tom@tromey.com>
15009
15010 * symtab.c (create_demangled_names_hash): Change argument to be an
15011 objfile_per_bfd_storage.
15012 (symbol_set_names): Update.
15013
6eee24ce
TT
150142019-01-10 Tom Tromey <tom@tromey.com>
15015
15016 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15017 init_psymbol_list.
15018 * psymtab.c (init_psymbol_list): Do nothing if already called.
15019 * psympriv.h (init_psymbol_list): Add comment.
15020 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15021 init_psymbol_list.
15022 * dbxread.c (dbx_symfile_read): Unconditionally call
15023 init_psymbol_list.
15024
75aedd27
TT
150252019-01-10 Tom Tromey <tom@tromey.com>
15026
15027 * xcoffread.c (scan_xcoff_symtab): Update.
15028 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15029 "where".
15030 * mdebugread.c (parse_partial_symbols)
15031 (handle_psymbol_enumerators): Update.
15032 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15033 * dbxread.c (read_dbx_symtab): Update.
15034 * psympriv.h (psymbol_placement): New enum.
15035 (add_psymbol_to_list): Update.
15036
939652a5
TT
150372019-01-10 Tom Tromey <tom@tromey.com>
15038
15039 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15040 static_psymbols parameters.
15041 (scan_xcoff_symtab): Update.
15042 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15043 static_psymbols parameters.
15044 * psympriv.h (start_psymtab_common): Update.
15045 * mdebugread.c (parse_partial_symbols): Update.
15046 * dwarf2read.c (create_partial_symtab): Update.
15047 * dbxread.c (read_dbx_symtab): Update.
15048 (start_psymtab): Remove global_psymbols and static_psymbols
15049 parameters.
15050
baa62830
TT
150512019-01-10 Tom Tromey <tom@tromey.com>
15052
15053 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15054 * psymtab.c (allocate_psymtab): Add comment.
15055 * psympriv.h (allocate_psymtab): Add comment.
15056 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15057 initializations.
15058 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15059
0e8f53ba
TT
150602019-01-10 Tom Tromey <tom@tromey.com>
15061
15062 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15063 Don't declare.
15064 * mipsread.c: Include mdebugread.h.
15065 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15066 Declare.
15067 * elfread.c: Include mdebugread.h.
15068
b22a7c6a
TT
150692019-01-09 Tom Tromey <tom@tromey.com>
15070
15071 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15072 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15073 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15074 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15075 (psym_lookup_symbol, psym_find_last_source_symtab)
15076 (psym_forget_cached_source_info, psym_print_stats)
15077 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15078 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15079 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15080 (psym_find_compunit_symtab_by_address)
15081 (maintenance_print_psymbols, maintenance_info_psymtabs)
15082 (maintenance_check_psymtabs): Use ranged for.
15083 * psymtab.h (class objfile_psymtabs): New.
15084 (require_partial_symbols): Return objfile_psymtabs.
15085 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15086
3b9d3ac2
TT
150872019-01-09 Tom Tromey <tom@tromey.com>
15088
15089 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15090 (find_pc_mapped_section, list_overlays_command)
15091 (map_overlay_command, unmap_overlay_command)
15092 (simple_overlay_update): Use all_objfiles.
15093 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15094 * printcmd.c (info_symbol_command): Use all_objfiles.
15095 * objfiles.h (ALL_OBJSECTIONS): Remove.
15096 * maint.c (maintenance_translate_address): Use all_objfiles.
15097 * gcore.c (gcore_create_callback): Use all_objfiles.
15098 (objfile_find_memory_regions): Likewise.
15099
8b31193a
TT
151002019-01-09 Tom Tromey <tom@tromey.com>
15101
15102 * symtab.c (find_line_symtab, info_sources_command)
15103 (make_source_files_completion_list): Use objfile_compunits.
15104 * source.c (select_source_symtab): Use objfile_compunits.
15105 * objfiles.h (struct objfile): Update comment.
15106 (ALL_OBJFILES): Remove.
15107 (ALL_FILETABS): Remove.
15108 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15109 objfile_compunits.
15110
d5da8b3c
TT
151112019-01-09 Tom Tromey <tom@tromey.com>
15112
15113 * symmisc.c (print_objfile_statistics, dump_objfile)
15114 (maintenance_print_symbols): Use compunit_filetabs.
15115 * source.c (forget_cached_source_info_for_objfile): Use
15116 compunit_filetabs.
15117 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15118 (ALL_FILETABS): Use compunit_filetabs.
15119 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15120 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15121
5accd1a0
TT
151222019-01-09 Tom Tromey <tom@tromey.com>
15123
15124 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15125 (compunit_filetabs): New.
15126 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15127 compunit_filetabs.
15128 (info_sources_command, make_source_files_completion_list): Remove
15129 declaration.
15130 * symmisc.c (print_objfile_statistics, dump_objfile)
15131 (maintenance_print_symbols): Remove declaration.
15132 (maintenance_info_symtabs): Use compunit_filetabs.
15133 (maintenance_info_line_tables): Likewise.
15134 * source.c (select_source_symtab): Change local variable name.
15135 (forget_cached_source_info_for_objfile): Remove declaration.
15136 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15137 * objfiles.c (objfile_relocate1): Remove declaration.
15138 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15139 declaration.
15140 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15141 * coffread.c (coff_symtab_read): Remove declaration.
15142 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15143 compunit_filetabs.
15144
d8aeb77f
TT
151452019-01-09 Tom Tromey <tom@tromey.com>
15146
15147 * symtab.c (lookup_objfile_from_block)
15148 (find_pc_sect_compunit_symtab, search_symbols)
15149 (default_collect_symbol_completion_matches_break_on): Use
15150 objfile_compunits.
15151 * objfiles.h (ALL_COMPUNITS): Remove.
15152 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15153 * cp-support.c (add_symbol_overload_list_qualified): Use
15154 objfile_compunits.
15155 * ada-lang.c (ada_collect_symbol_completion_matches)
15156 (ada_add_global_exceptions): Use objfile_compunits.
15157
592553c4
TT
151582019-01-09 Tom Tromey <tom@tromey.com>
15159
15160 * source.c (select_source_symtab)
15161 (forget_cached_source_info_for_objfile): Remove declaration.
15162 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15163 declaration.
15164 * maint.c (count_symtabs_and_blocks): Remove declaration.
15165 * cp-support.c (add_symbol_overload_list_qualified): Remove
15166 declaration.
15167 * coffread.c (coff_symtab_read): Remove declaration.
15168 * symtab.c (lookup_symbol_in_objfile_symtabs)
15169 (basic_lookup_transparent_type_1): Use objfile_compunits.
15170 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15171 (info_sources_command, search_symbols)
15172 (default_collect_symbol_completion_matches_break_on)
15173 (make_source_files_completion_list): Remove declaration.
15174 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15175 (ada_collect_symbol_completion_matches)
15176 (ada_add_global_exceptions): Remove declaration.
15177 * linespec.c (iterate_over_all_matching_symtabs): Use
15178 objfile_compunits.
15179 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15180 (class objfile_compunits): New.
15181 (ALL_COMPUNITS): Use objfile_compunits.
15182 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15183 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15184 objfile_compunits.
15185 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15186
5325b9bf
TT
151872019-01-09 Tom Tromey <tom@tromey.com>
15188
15189 * symtab.c (search_symbols)
15190 (default_collect_symbol_completion_matches_break_on): Use
15191 objfile_msymbols.
15192 * ada-lang.c (ada_lookup_simple_minsym)
15193 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15194 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15195 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15196 objfile_msymbols.
15197 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15198 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15199 * objc-lang.c (find_methods): Use objfile_msymbols.
15200 (info_selectors_command, info_classes_command): Likewise.
15201 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15202 * objfiles.h (class objfile_msymbols): New.
15203 (ALL_OBJFILE_MSYMBOLS): Remove.
15204 (ALL_MSYMBOLS): Remove.
15205
cac85af2
TT
152062019-01-09 Tom Tromey <tom@tromey.com>
15207
15208 * common/next-iterator.h (next_adapter): Add Iterator template
15209 parameter.
15210 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15211 (class all_objfiles_safe): New.
15212 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15213 * objfiles.c (put_objfile_before): Update comment.
15214 (add_separate_debug_objfile): Likewise.
15215 (free_all_objfiles): Use all_objfiles_safe.
15216 (objfile_purge_solibs): Likewise.
15217
aed57c53
TT
152182019-01-09 Tom Tromey <tom@tromey.com>
15219
15220 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15221 (expand_symtab_containing_pc, lookup_static_symbol)
15222 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15223 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15224 all_objfiles.
15225 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15226 * breakpoint.c (create_overlay_event_breakpoint)
15227 (create_longjmp_master_breakpoint)
15228 (create_std_terminate_master_breakpoint)
15229 (create_exception_master_breakpoint): Use all_objfiles.
15230 * linux-thread-db.c (try_thread_db_load_from_pdir)
15231 (has_libpthread): Use all_objfiles.
15232 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15233 * linespec.c (iterate_over_all_matching_symtabs)
15234 (search_minsyms_for_name): Use all_objfiles.
15235 * maint.c (maintenance_info_sections): Use all_objfiles.
15236 * main.c (captured_main_1): Use all_objfiles.
15237 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15238 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15239 * guile/scm-pretty-print.c
15240 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15241 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15242 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15243 (maintenance_print_msymbols): Use all_objfiles.
15244 * source.c (select_source_symtab): Use all_objfiles.
15245 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15246 * symfile.c (remove_symbol_file_command)
15247 (expand_symtabs_matching, map_symbol_filenames): Use
15248 all_objfiles.
15249 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15250 all_objfiles.
15251 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15252 * objc-lang.c (find_methods): Use all_objfiles.
15253 * objfiles.c (have_partial_symbols, have_full_symbols)
15254 (have_minimal_symbols, qsort_cmp)
15255 (default_iterate_over_objfiles_in_search_order): Use
15256 all_objfiles.
15257 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15258 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15259 (maintenance_check_psymtabs): Use all_objfiles.
15260 (ALL_PSYMTABS): Remove.
15261 * compile/compile-object-run.c (do_module_cleanup): Use
15262 all_objfiles.
15263 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15264 * cp-support.c (add_symbol_overload_list_qualified): Use
15265 all_objfiles.
15266 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15267 Use all_objfiles.
15268 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15269 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15270 all_objfiles.
15271 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15272 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15273 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15274 Uses all_objfiles.
15275 * solib.c (solib_read_symbols): Use all_objfiles
15276
99d89cde
TT
152772019-01-09 Tom Tromey <tom@tromey.com>
15278
15279 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15280 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15281 all_objfiles.
15282 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15283 * symmisc.c (print_symbol_bcache_statistics)
15284 (print_objfile_statistics, maintenance_print_objfiles)
15285 (maintenance_info_symtabs, maintenance_check_symtabs)
15286 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15287 all_objfiles.
15288 * source.c (forget_cached_source_info): Use all_objfiles.
15289 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15290 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15291 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15292 * objfiles.c (update_section_map): Use all_objfiles.
15293 (shared_objfile_contains_address_p): Likewise.
15294 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15295 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15296
21708325
TT
152972019-01-09 Tom Tromey <tom@tromey.com>
15298
15299 * common/next-iterator.h: New file.
15300 * objfiles.h (class all_objfiles): New.
15301 (struct objfile_iterator): New.
15302
669e09f6
PW
153032019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15304
15305 * NEWS: Move the description of the changed "frame", "select-frame",
15306 and "info frame" commands to the Changed commands section.
15307
041be526
SM
153082019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15309
15310 * gdbtypes.c (check_stub_method_group): Remove handling of old
15311 mangling schemes.
15312 * linespec.c (find_methods): Likewise.
15313 * stabsread.c (read_member_functions): Likewise.
15314 * valops.c (search_struct_method): Likewise.
15315 (value_struct_elt_for_reference): Likewise.
15316 * NEWS: Mention this change.
15317
0e2a2133
AB
153182019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15319
15320 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15321 print_source_lines.
15322 * source.c (print_source_lines_base): Update line number check.
15323 (print_source_lines): New function.
15324 (source_lines_range::source_lines_range): New function.
15325 * source.h (class source_lines_range): New class.
15326 (print_source_lines): New declaration.
15327
1055a3b4
PW
153282019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15329
15330 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15331
cfeadda5
TT
153322019-01-08 Tom Tromey <tom@tromey.com>
15333 Simon Marchi <simon.marchi@ericsson.com>
15334
15335 PR gdb/24060
15336 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15337 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15338 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15339 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15340 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15341 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15342
583068ca
AB
153432019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15344
15345 * source.c (select_source_symtab): Move header comment to
15346 declaration in source.h.
15347 (forget_cached_source_info_for_objfile): Likewise.
15348 (forget_cached_source_info): Likewise.
15349 (identify_source_line): Likewise.
15350 * source.h (identify_source_line): Move declaration from symtab.h
15351 and add comment from source.c
15352 (print_source_lines): Likewise.
15353 (forget_cached_source_info_for_objfile): Likewise.
15354 (forget_cached_source_info): Likewise.
15355 (select_source_symtab): Likewise.
15356 (enum print_source_lines_flag): Move definition from symtab.h.
15357 * symtab.h (identify_source_line): Move declaration to source.h.
15358 (print_source_lines): Likewise.
15359 (forget_cached_source_info_for_objfile): Likewise.
15360 (forget_cached_source_info): Likewise.
15361 (select_source_symtab): Likewise.
15362 (enum print_source_lines_flag): Move definition to source.h.
15363 * tui/tui-hooks.c: Add 'source.h' include.
15364
ec98a4ad
AB
153652019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15366
15367 * source.c (print_source_lines_base): Handle requests to print
15368 reverse line number sequences, and guard against empty lines
15369 string.
15370
62ea19c1
AB
153712019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15372
15373 * source.c (print_source_lines_base): Fix skip of '\r' if next
15374 character is '\n'.
15375
9d30e1fd
TT
153762019-01-06 Tom Tromey <tom@tromey.com>
15377
15378 * c-exp.y (struct c_parse_state) <macro_original_text,
15379 expansion_obstack>: New member.
15380 (macro_original_text, expansion_obstack): Remove globals.
15381 (scan_macro_expansion, scanning_macro_expansion)
15382 (finished_macro_expansion): Update.
15383 (scan_macro_cleanup): Remove.
15384 (yylex, c_parse): Update.
15385
c65bac38
TT
153862019-01-06 Tom Tromey <tom@tromey.com>
15387
15388 * c-exp.y (struct c_parse_state) <strings>: New member.
15389 (operator_stoken): Update.
15390
02e12e38
TT
153912019-01-06 Tom Tromey <tom@tromey.com>
15392
15393 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15394 (union type_stack_elt) <typelist_val>: Now a pointer to
15395 std::vector.
15396 (type_stack_cleanup): Don't declare.
15397 (push_typelist): Update.
15398 * parse.c (pop_typelist): Return a std::vector.
15399 (push_typelist): Take a std::vector.
15400 (follow_types): Update. Do not free args.
15401 (type_stack_cleanup): Remove.
15402 * c-exp.y (struct c_parse_state): New.
15403 (cpstate): New global.
15404 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15405 (nonempty_typelist): Update.
15406 (func_mod): Create a new vector.
15407 (c_parse): Create a c_parse_state.
15408 (check_parameter_typelist): Do not delete params.
15409 (function_method): Update. Do not delete type_list.
15410
f097f5ad
TT
154112019-01-06 Tom Tromey <tom@tromey.com>
15412
15413 PR gdb/28155:
15414 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15415 check_typedef.
15416 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15417 (print_return_value): Likewise.
15418
d2adf9f1
TT
154192019-01-05 Tom Tromey <tom@tromey.com>
15420
15421 * contrib/cleanup_check.py: Remove.
15422 * contrib/gcc-with-excheck: Remove.
15423 * contrib/exsummary.py: Remove.
15424 * contrib/excheck.py: Remove.
15425
2eab46b1
JB
154262019-01-05 Joel Brobecker <brobecker@adacore.com>
15427
15428 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15429 NULL. Initialize tpprev to NULL instead of assigning it
15430 to NULL on the next statement.
15431 * windows-nat.c (windows_delete_thread): Remove check for
15432 main_thread_id before printing thread exit notifications.
15433 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15434 Remove thread ID check against main_thread_id.
15435 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15436 windows_delete_thread.
15437 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15438
48c5e7e2
TT
154392019-01-04 Tom Tromey <tom@tromey.com>
15440
15441 * compile/compile.c (_initialize_compile): Use upper case for
15442 metasyntactic variables.
15443 * symmisc.c (_initialize_symmisc): Use upper case for
15444 metasyntactic variables.
15445 * psymtab.c (_initialize_psymtab): Use upper case for
15446 metasyntactic variables.
15447 * demangle.c (demangle_command): Use upper case for metasyntactic
15448 variables.
15449 (_initialize_demangler): Likewise.
15450 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15451 variables.
15452
986041cd
TT
154532019-01-03 Tom Tromey <tom@tromey.com>
15454
15455 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15456
7c711119
TT
154572019-01-03 Tom Tromey <tom@tromey.com>
15458
15459 * python/py-symtab.c (salpy_str): Update.
15460 (struct salpy_sal_object) <symtab>: Now a PyObject.
15461 (salpy_dealloc): Update.
15462 (del_objfile_sal): Use gdbpy_ref.
15463
1b20edf0
TT
154642019-01-03 Tom Tromey <tom@tromey.com>
15465
15466 * python/py-type.c (convert_field): Use new_reference. Return
15467 gdbpy_ref.
15468 (make_fielditem): Return gdbpy_ref.
15469 (typy_fields): Update.
15470 (typy_getitem): Update.
15471 (field_name): Return gdbpy_ref. Use new_reference.
15472 (typy_iterator_iternext): Update.
15473
ea41325b
TT
154742019-01-03 Tom Tromey <tom@tromey.com>
15475
15476 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15477
2a3c71d6
TT
154782019-01-03 Tom Tromey <tom@tromey.com>
15479
15480 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15481 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15482 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15483 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15484 (pspy_set_type_printers): Likewise.
15485 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15486 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15487 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15488 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15489 (objfpy_set_type_printers): Likewise.
15490
5c329e6a
TT
154912019-01-03 Tom Tromey <tom@tromey.com>
15492
15493 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15494 (gdbpy_print_stack): Use gdbpy_err_fetch.
15495 * python/python-internal.h (class gdbpy_err_fetch): New class.
15496 (class gdbpy_enter) <m_error_type, m_error_value,
15497 m_error_traceback>: Remove.
15498 <m_error>: New member.
15499 (gdbpy_exception_to_string): Don't declare.
15500 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15501 * python/py-value.c (convert_value_from_python): Use
15502 gdbpy_err_fetch.
15503 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15504 gdbpy_exception_to_string.
15505 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15506 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15507 gdbpy_err_fetch.
15508
169bb27b
AB
155092019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15510
15511 * linux-nat.c (delete_lwp_cleanup): Delete.
15512 (struct lwp_deleter): New struct.
15513 (lwp_info_up): New typedef.
15514 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15515 lwp_info_up.
15516
a07c8880
AB
155172019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15518
15519 * linux-fork.c (class scoped_switch_fork_info): New class.
15520 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15521
26089c49
AB
155222019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15523
15524 * valops.c (find_overload_match): Remove use of null_cleanup, and
15525 calls to do_cleanups.
15526
06d3e5b0
AB
155272019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15528
15529 * compile/compile-cplus-types.c
15530 (compile_cplus_instance::decl_name): Handle changes to
15531 cp_func_name.
15532 * cp-support.c (cp_func_name): Update header comment, update
15533 return type.
15534 * cp-support.h (cp_func_name): Update return type in declaration.
15535 * valops.c (find_overload_match): Move temp_func local to top
15536 level of function and change its type. Use temp_func to hold and
15537 delete temporary string obtained from cp_func_name.
15538
66644cd3
AB
155392019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15540
15541 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15542 gdb::char_vector, remove cleanup, and update uses of `msg`.
15543
592d8c0a
JW
155442019-01-03 Jim Wilson <jimw@sifive.com>
15545
15546 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15547
c55d06ec
TT
155482019-01-02 Tom Tromey <tom@tromey.com>
15549
15550 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15551 (tdesc_parse_xml): Remove cleanups.
15552 * target-descriptions.h (make_cleanup_free_target_description):
15553 Don't declare.
15554 (target_desc_deleter): New struct.
15555 (target_desc_up): New typedef.
15556 * target-descriptions.c (target_desc_deleter::operator()): Rename
15557 from free_target_description.
15558 (make_cleanup_free_target_description): Remove.
15559
3a6ae42d
TT
155602019-01-02 Tom Tromey <tom@tromey.com>
15561
15562 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15563 constructor, destructor.
15564 (linespec_parser): Remove typedef.
15565 (~linespec_parser): Rename from linespec_parser_delete.
15566 (linespec_lex_to_end, linespec_complete_label)
15567 (linespec_complete): Update.
15568 (decode_line_full): Remove cleanups.
15569 (decode_line_1): Update.
15570
61fd3e73
TT
155712019-01-02 Tom Tromey <tom@tromey.com>
15572
15573 * python/python-internal.h (inferior_to_inferior_object): Change
15574 return type.
15575 * python/py-exitedevent.c (create_exited_event_object): Update.
15576 * python/py-inferior.c (inferior_to_inferior_object): Return
15577 gdbpy_ref.
15578 (python_new_inferior, python_inferior_deleted)
15579 (thread_to_thread_object, delete_thread_object)
15580 (build_inferior_list, gdbpy_selected_inferior): Update.
15581 * python/py-infthread.c (create_thread_object): Update. Also fail
15582 if inferior_to_inferior_object fails.
15583
d20172fc
SM
155842019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15585
15586 * inferior.h (class inferior) <displaced_step_state>: New field.
15587 * infrun.h (struct displaced_step_state): Move here from
15588 infrun.c. Initialize fields, add constructor.
15589 <inf>: Remove field.
15590 <reset>: New method.
15591 * infrun.c (struct displaced_step_inferior_state): Move to
15592 infrun.h.
15593 (displaced_step_inferior_states): Remove.
15594 (get_displaced_stepping_state): Adust.
15595 (displaced_step_in_progress_any_inferior): Adjust.
15596 (displaced_step_in_progress_thread): Adjust.
15597 (displaced_step_in_progress): Adjust.
15598 (add_displaced_stepping_state): Remove.
15599 (get_displaced_step_closure_by_addr): Adjust.
15600 (remove_displaced_stepping_state): Remove.
15601 (infrun_inferior_exit): Call displaced_step_state.reset.
15602 (use_displaced_stepping): Don't check for NULL.
15603 (displaced_step_prepare_throw): Call
15604 get_displaced_stepping_state.
15605 (displaced_step_fixup): Don't check for NULL.
15606 (prepare_for_detach): Don't check for NULL.
15607
e3319240
PW
156082019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15609
15610 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15611 in case of call that did not complete.
15612
5d36dfb9
AU
156132019-01-02 Andrey Utkin <autkin@undo.io>
15614
15615 * symfile.c (find_separate_debug_file): Fix search of debug files for
15616 remote debuggee.
15617
8833fbf0
TT
156182019-01-02 Tom Tromey <tom@tromey.com>
15619
15620 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15621 indentation.
15622 * python/py-frame.c (frapy_older): Remove cast.
15623 (frapy_newer): Likewise.
15624 * python/py-breakpoint.c (local_setattro): Remove cast.
15625 * python/py-arch.c (archpy_name): Remove local variable.
15626 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15627
4ada3dfd
JB
156282019-01-02 Joel Brobecker <brobecker@adacore.com>
15629
15630 * unittests/basic_string_view/element_access/char/empty.cc:
15631 Fix year range in copyright header.
15632
113b7b81
AB
156332019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15634
15635 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15636 Delete.
15637 <operator==>: Update with for removed field.
15638 <hash>: Likewise.
15639 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15640 <isa_features>: ...this.
15641 <abi_features>: New field.
15642 (riscv_isa_flen): Update comment.
15643 (riscv_abi_xlen): New declaration.
15644 (riscv_abi_flen): New declaration.
15645 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15646 isa_features.
15647 (riscv_abi_xlen): New function.
15648 (riscv_isa_flen): Update to get answer from isa_features.
15649 (riscv_abi_flen): New function.
15650 (riscv_has_fp_abi): Update to get answer from abi_features.
15651 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15652 xlen and flen.
15653 (riscv_call_info) <xlen, flen>: Update comment.
15654 (riscv_call_arg_struct): Remove invalid assertions
15655 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15656 is removed.
15657 (riscv_gdbarch_init): Gather isa features and abi features
15658 separately, ensure both match on the gdbarch when reusing an old
15659 gdbarch. Relax an error check to allow 32-bit abi float to run on
15660 a target with 64-bit float hardware.
15661
b18ca514
PW
156622019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15663
15664 * source.c (search_command_helper): Stop reverse search
15665 when line 1 has been searched.
15666
ec70d8db
PW
156672019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15668
15669 * record-full.c (record_full_base_target::close): Rewrite
15670 record_full_core_buf_list free logic.
15671
5b38f9c1
PW
156722019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15673
15674 * break-catch-syscall.c (print_one_catch_syscall): xfree
15675 the last text.
15676
66d91b39
JB
156772019-01-01 Joel Brobecker <brobecker@adacore.com>
15678
15679 * top.c (print_gdb_version): Update Copyright year in version
15680 message.
15681
42a4f53d
JB
156822019-01-01 Joel Brobecker <brobecker@adacore.com>
15683
15684 Update copyright year range in all GDB files.
15685
7e955d83 156862019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 15687
5bbd631d 15688 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 15689
5bbd631d 15690For older changes see ChangeLog-2018.
c906108c
SS
15691\f
15692Local Variables:
15693mode: change-log
15694left-margin: 8
15695fill-column: 74
15696version-control: never
57da7796 15697coding: utf-8
c906108c 15698End:
5bbd631d 15699
This page took 2.893657 seconds and 4 git commands to generate.