Make functions static in unittests
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
dd694d77
SM
12019-11-26 Simon Marchi <simon.marchi@efficios.com>
2
3 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
4 static.
5 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
6 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
7 (main): Likewise.
8 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
9 (main): Likewise.
10 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
11 (main): Likewise.
12 * unittests/basic_string_view/element_access/char/1.cc (test01):
13 Likewise.
14 (main): Likewise.
15 * unittests/basic_string_view/element_access/char/empty.cc (main):
16 Likewise.
17 * unittests/basic_string_view/element_access/char/front_back.cc
18 (test01): Likewise.
19 (main): Likewise.
20 * unittests/basic_string_view/inserters/char/2.cc (test05):
21 Likewise.
22 (main): Likewise.
23 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
24 (test01): Likewise.
25 (main): Likewise.
26 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
27 (test01): Likewise.
28 (main): Likewise.
29 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
30 Likewise.
31 * unittests/basic_string_view/operations/compare/char/1.cc
32 (test01): Likewise.
33 (main): Likewise.
34 * unittests/basic_string_view/operations/compare/char/13650.cc
35 (test01): Likewise.
36 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
37 Likewise.
38 (main): Likewise.
39 * unittests/basic_string_view/operations/data/char/1.cc (test01):
40 Likewise.
41 (main): Likewise.
42 * unittests/basic_string_view/operations/find/char/1.cc (test01):
43 Likewise.
44 (main): Likewise.
45 * unittests/basic_string_view/operations/find/char/2.cc (test02):
46 Likewise.
47 (main): Likewise.
48 * unittests/basic_string_view/operations/find/char/3.cc (test03):
49 Likewise.
50 (main): Likewise.
51 * unittests/basic_string_view/operations/find/char/4.cc (main):
52 Likewise.
53 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
54 Likewise.
55 (main): Likewise.
56 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
57 Likewise.
58 (main): Likewise.
59 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
60 Likewise.
61 (main): Likewise.
62 * unittests/basic_string_view/operations/substr/char/1.cc
63 (test01): Likewise.
64 (main): Likewise.
65 * unittests/basic_string_view/operators/char/2.cc (main):
66 Likewise.
67 * unittests/optional/assignment/1.cc (test): Likewise.
68 * unittests/optional/assignment/2.cc (test): Likewise.
69 * unittests/optional/assignment/3.cc (test): Likewise.
70 * unittests/optional/assignment/4.cc (test): Likewise.
71 * unittests/optional/assignment/5.cc (test): Likewise.
72 * unittests/optional/assignment/6.cc (test): Likewise.
73 * unittests/optional/assignment/7.cc (test): Likewise.
74 * unittests/optional/cons/copy.cc (test): Likewise.
75 * unittests/optional/cons/default.cc (test): Likewise.
76 * unittests/optional/cons/move.cc (test): Likewise.
77 * unittests/optional/cons/value.cc (test): Likewise.
78 * unittests/optional/in_place.cc (test): Likewise.
79 * unittests/optional/observers/1.cc (test): Likewise.
80 * unittests/optional/observers/2.cc (test): Likewise.
81
3b5c1d49
SM
822019-11-26 Simon Marchi <simon.marchi@efficios.com>
83
84 * tui-win.h (tui_set_var_cmd): Remove.
85 * tui-win.c (tui_set_var_cmd): Make static.
86
adce99fe
SM
872019-11-26 Simon Marchi <simon.marchi@efficios.com>
88
89 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
90 rbreak_command_wrapper): Remove.
91 * symtab.c (rbreak_command_wrapper): Remove.
92
fe3adccf
SM
932019-11-26 Simon Marchi <simon.marchi@efficios.com>
94
95 * inferior.h (info_terminal_command): Remove declaration.
96 * inflow.c (info_terminal_command): Make static.
97
b926335f
SM
982019-11-26 Simon Marchi <simon.marchi@efficios.com>
99
100 * inferior.c (exit_inferior_silent): Remove.
101
b62f6f54
SM
1022019-11-26 Simon Marchi <simon.marchi@efficios.com>
103
104 * dictionary.c (dict_empty, mdict_empty): Remove.
105 * dictionary.c (mdict_empty): Remove.
106
cb8c24b6
SM
1072019-11-26 Simon Marchi <simon.marchi@efficios.com>
108
109 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
110 (arc_insn_get_memory_offset): Likewise.
111 (arc_insn_dump): Likewise.
112 * cp-support.c (test_cp_symbol_name_matches): Likewise.
113 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
114 * dictionary.c (dict_iterator_next): Likewise.
115 (dict_iter_match_first): Likewise.
116 (dict_iter_match_next): Likewise.
117 * f-lang.c (evaluate_subexp_f): Likewise.
118 * hppa-tdep.c (hppa_read_pc): Likewise.
119 * i386-tdep.c (i386_floatformat_for_type): Likewise.
120 * parse.c (write_exp_elt_msym): Likewise.
121 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
122 * remote.c (remote_packet_size): Likewise.
123 (remote_notif_stop_parse): Likewise.
124 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
125 * s12z-tdep.c (s12z_disassemble_info): Likewise.
126 * source.c (prepare_path_for_appending): Likewise.
127 * sparc64-linux-tdep.c
128 (sparc64_linux_handle_segmentation_fault); Likewise.
129 * stack.c (frame_selection_by_function_completer): Likewise.
130
781597ff
SM
1312019-11-26 Simon Marchi <simon.marchi@efficios.com>
132
133 * completer.c (set_gdb_completion_word_break_characters):
134 Remove.
135
23baa4cc
SM
1362019-11-26 Simon Marchi <simon.marchi@efficios.com>
137
138 * dwarf-index-write.c: Include dwarf-index-write.h.
139 * mi/mi-interp.c: Include mi/mi-interp.h.
140
23767560
SM
1412019-11-26 Simon Marchi <simon.marchi@efficios.com>
142
143 * aarch32-tdep.c: Include aarch32-tdep.h.
144 * aarch32-tdep.h: Forward-declare struct target_desc.
145
6d91ce9a
CB
1462019-11-26 Christian Biesinger <cbiesinger@google.com>
147
148 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
149 strerror.
150 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
151 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
152
3cf2f237
TV
1532019-11-25 Tom de Vries <tdevries@suse.de>
154
155 * contrib/words.sh: Add -c option.
156
5b89c67a
CB
1572019-11-25 Christian Biesinger <cbiesinger@google.com>
158
159 * solib.c (solib_find_1): Change int to bool.
160 (exec_file_find): Change int to bool.
161 (solib_find): Change int to bool.
162 (solib_read_symbols): Change int to bool.
163 (solib_used): Change int to bool.
164 (solib_add): Change int to bool.
165 (info_sharedlibrary_command): Change int to bool.
166 (solib_contains_address_p): Change int to bool.
167 (solib_keep_data_in_core): Change int to bool.
168 (in_solib_dynsym_resolve_code): Change int to bool.
169 (reload_shared_libraries_1): Change int to bool.
170 (gdb_sysroot_changed): Change int to bool.
171 * solib.h (solib_read_symbols): Change int to bool.
172 (solib_contains_address_p): Change int to bool.
173 (solib_keep_data_in_core): Change int to bool.
174 (in_solib_dynsym_resolve_code): Change int to bool.
175 (libpthread_name_p): Change int to bool.
176
6cc8564b
LM
1772019-11-25 Luis Machado <luis.machado@linaro.org>
178
179 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
180 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
181 (remote_packet_max_chars): New static global.
182 (show_remote_packet_max_chars): New function.
183 (remote_target::putpkt_binary): Adjust to use new
184 remote_packet_max_chars option.
185 (remote_target::getpkt_or_notif_sane_1): Likewise.
186 (_initialize_remote): Register new remote-packet-max-chars option.
187
a7cdaa91
SM
1882019-11-24 Simon Marchi <simon.marchi@efficios.com>
189
190 * m68k-linux-nat.c: Include gdbarch.h.
191
26abc753
TT
1922019-11-24 Tom Tromey <tom@tromey.com>
193
194 * symfile.c (read_symbols): Update.
195 * psymtab.c (require_partial_symbols): Change type of "verbose" to
196 bool.
197 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
198 (psym_lookup_symbol, psym_find_last_source_symtab)
199 (psym_forget_cached_source_info, psym_print_stats)
200 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
201 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
202 (psym_map_matching_symbols, psym_expand_symtabs_matching)
203 (psym_find_compunit_symtab_by_address)
204 (maintenance_print_psymbols, maintenance_info_psymtabs)
205 (maintenance_check_psymtabs): Update.
206 * psymtab.h (require_partial_symbols): Change type of "verbose" to
207 bool.
208
012fc909
TT
2092019-11-22 Tom Tromey <tom@tromey.com>
210
211 * observable.h: Update comments.
212
c83d8d32
TT
2132019-11-22 Tom Tromey <tromey@adacore.com>
214
215 * ada-tasks.c (ada_task_is_alive): Make parameter const.
216 (print_ada_task_info): Don't try to fetch thread id if task is not
217 alive.
218
987012b8
CB
2192019-11-22 Christian Biesinger <cbiesinger@google.com>
220
221 * ada-exp.y: Update.
222 * ada-lang.c (sort_choices): Update.
223 (ada_print_symbol_signature): Update.
224 (resolve_subexp): Update.
225 (ada_parse_renaming): Update.
226 (ada_read_renaming_var_value): Update.
227 (lesseq_defined_than): Update.
228 (remove_extra_symbols): Update.
229 (remove_irrelevant_renamings): Update.
230 (ada_add_block_symbols): Update.
231 (ada_collect_symbol_completion_matches): Update.
232 (ada_is_renaming_symbol): Update.
233 (aggregate_assign_from_choices): Update.
234 (ada_evaluate_subexp): Update.
235 (ada_has_this_exception_support): Update.
236 (ada_is_non_standard_exception_sym): Update.
237 (ada_add_exceptions_from_frame): Update.
238 (ada_add_global_exceptions): Update.
239 (ada_print_subexp): Update.
240 * ax-gdb.c (gen_var_ref): Update.
241 (gen_maybe_namespace_elt): Update.
242 (gen_expr_for_cast): Update.
243 (gen_expr): Update.
244 * block.h: Update.
245 * blockframe.c (find_pc_partial_function): Update.
246 * breakpoint.c (print_breakpoint_location): Update.
247 (update_static_tracepoint): Update.
248 * btrace.c (ftrace_print_function_name): Update.
249 (ftrace_function_switched): Update.
250 * buildsym.c (find_symbol_in_list): Update.
251 * c-exp.y: Update.
252 * c-typeprint.c (c_print_typedef): Update.
253 (c_type_print_template_args): Update.
254 * cli/cli-cmds.c (edit_command): Update.
255 (list_command): Update.
256 (print_sal_location): Update.
257 * coffread.c (patch_opaque_types): Update.
258 (process_coff_symbol): Update.
259 (coff_read_enum_type): Update.
260 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
261 (convert_one_symbol): Update.
262 (hash_symname): Update.
263 (eq_symname): Update.
264 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
265 * compile/compile-cplus-types.c (debug_print_scope): Update.
266 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
267 * compile/compile-object-load.c (get_out_value_type): Update.
268 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
269 (search_symbol_list): Update.
270 (cp_lookup_symbol_imports_or_template): Update.
271 * cp-support.c (overload_list_add_symbol): Update.
272 * ctfread.c (psymtab_to_symtab): Update.
273 * dbxread.c (cp_set_block_scope): Update.
274 * dictionary.c (iter_match_first_hashed): Update.
275 (iter_match_next_hashed): Update.
276 (insert_symbol_hashed): Update.
277 (iter_match_next_linear): Update.
278 * dictionary.h: Update.
279 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
280 (locexpr_describe_location_piece): Update.
281 (locexpr_describe_location_1): Update.
282 (locexpr_generate_c_location): Update.
283 (loclist_describe_location): Update.
284 (loclist_generate_c_location): Update.
285 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
286 (read_func_scope): Update.
287 (process_enumeration_scope): Update.
288 (new_symbol): Update.
289 (dwarf2_const_value): Update.
290 (dwarf2_symbol_mark_computed): Update.
291 * eval.c (evaluate_funcall): Update.
292 (evaluate_subexp_standard): Update.
293 * expprint.c (print_subexp_standard): Update.
294 (dump_subexp_body_standard): Update.
295 * f-valprint.c (info_common_command_for_block): Update.
296 * findvar.c (get_hosting_frame): Update.
297 (default_read_var_value): Update.
298 * go-lang.c (go_symbol_package_name): Update.
299 * guile/scm-block.c (bkscm_print_block_smob): Update.
300 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
301 (gdbscm_symbol_name): Update.
302 (gdbscm_symbol_linkage_name): Update.
303 (gdbscm_symbol_print_name): Update.
304 * infcall.c (get_function_name): Update.
305 * infcmd.c (jump_command): Update.
306 (finish_command): Update.
307 * infrun.c (insert_exception_resume_breakpoint): Update.
308 * linespec.c (canonicalize_linespec): Update.
309 (create_sals_line_offset): Update.
310 (convert_linespec_to_sals): Update.
311 (complete_label): Update.
312 (find_label_symbols_in_block): Update.
313 * m2-typeprint.c (m2_print_typedef): Update.
314 * mdebugread.c (mdebug_reg_to_regnum): Update.
315 (parse_symbol): Update.
316 (mylookup_symbol): Update.
317 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
318 (list_args_or_locals): Update.
319 * objc-lang.c (compare_selectors): Update.
320 (info_selectors_command): Update.
321 (compare_classes): Update.
322 (info_classes_command): Update.
323 (find_imps): Update.
324 * p-typeprint.c (pascal_print_typedef): Update.
325 * printcmd.c (build_address_symbolic): Update.
326 (info_address_command): Update.
327 (print_variable_and_value): Update.
328 * python/py-framefilter.c (extract_sym): Update.
329 (py_print_single_arg): Update.
330 * python/py-symbol.c (sympy_str): Update.
331 (sympy_get_name): Update.
332 (sympy_get_linkage_name): Update.
333 * python/python.c (gdbpy_rbreak): Update.
334 * record-btrace.c (btrace_get_bfun_name): Update.
335 (btrace_call_history): Update.
336 * rust-lang.c (rust_print_typedef): Update.
337 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
338 * stabsread.c (stab_reg_to_regnum): Update.
339 (define_symbol): Update.
340 (read_enum_type): Update.
341 (common_block_end): Update.
342 (cleanup_undefined_types_1): Update.
343 (scan_file_globals): Update.
344 * stack.c (print_frame_arg): Update.
345 (print_frame_args): Update.
346 (find_frame_funname): Update.
347 (info_frame_command_core): Update.
348 (iterate_over_block_locals): Update.
349 (print_block_frame_labels): Update.
350 (do_print_variable_and_value): Update.
351 (iterate_over_block_arg_vars): Update.
352 (return_command): Update.
353 * symmisc.c (dump_symtab_1): Update.
354 (print_symbol): Update.
355 * symtab.c (eq_symbol_entry): Update.
356 (symbol_cache_dump): Update.
357 (lookup_language_this): Update.
358 (find_pc_sect_line): Update.
359 (skip_prologue_sal): Update.
360 (symbol_search::compare_search_syms): Update.
361 (treg_matches_sym_type_name): Update.
362 (search_symbols): Update.
363 (print_symbol_info): Update.
364 (rbreak_command): Update.
365 (completion_list_add_symbol): Update.
366 (find_gnu_ifunc): Update.
367 (get_symbol_address): Update.
368 (search_module_symbols): Update.
369 (info_module_subcommand): Update.
370 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
371 (SYMBOL_LINKAGE_NAME): Remove.
372 (SYMBOL_DEMANGLED_NAME): Remove.
373 (SYMBOL_PRINT_NAME): Remove.
374 (SYMBOL_SEARCH_NAME): Remove.
375 * tracepoint.c (set_traceframe_context): Update.
376 (validate_actionline): Update.
377 (collection_list::collect_symbol): Update.
378 (encode_actions_1): Update.
379 (info_scope_command): Update.
380 (print_one_static_tracepoint_marker): Update.
381 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
382 * valops.c (address_of_variable): Update.
383 (find_overload_match): Update.
384 (find_oload_champ): Update.
385
c9d95fa3
CB
3862019-11-22 Christian Biesinger <cbiesinger@google.com>
387
388 * ada-lang.c (ada_lookup_simple_minsym): Update.
389 (ada_collect_symbol_completion_matches): Update.
390 * ada-tasks.c (read_atcb): Update.
391 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
392 (amd64_windows_skip_trampoline_code): Update.
393 * arm-tdep.c (skip_prologue_function): Update.
394 (arm_skip_stack_protector): Update.
395 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
396 (arm_wince_skip_main_prologue): Update.
397 * ax-gdb.c (gen_expr): Update.
398 * block.c (call_site_for_pc): Update.
399 * blockframe.c (find_pc_partial_function): Update.
400 * breakpoint.c (set_breakpoint_location_function): Update.
401 * btrace.c (ftrace_print_function_name): Update.
402 (ftrace_function_switched): Update.
403 * c-valprint.c (print_unpacked_pointer): Update.
404 * coffread.c (coff_symfile_read): Update.
405 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
406 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
407 * dwarf-index-write.c (write_psymbols): Update.
408 * dwarf2loc.c (call_site_to_target_addr): Update.
409 (func_verify_no_selftailcall): Update.
410 (tailcall_dump): Update.
411 (call_site_find_chain_1): Update.
412 (dwarf_expr_reg_to_entry_parameter): Update.
413 * elfread.c (elf_gnu_ifunc_record_cache): Update.
414 * eval.c (evaluate_funcall): Update.
415 (evaluate_subexp_standard): Update.
416 (evaluate_subexp_for_sizeof): Update.
417 * expprint.c (print_subexp_standard): Update.
418 (dump_subexp_body_standard): Update.
419 * frame.c (get_prev_frame_always_1): Update.
420 * frv-tdep.c (frv_skip_main_prologue): Update.
421 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
422 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
423 (gnuv3_get_typename_from_type_info): Update.
424 (gnuv3_skip_trampoline): Update.
425 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
426 * i386-tdep.c (i386_skip_main_prologue): Update.
427 (i386_pe_skip_trampoline_code): Update.
428 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
429 * infcall.c (get_function_name): Update.
430 * linespec.c (minsym_found): Update.
431 * linux-fork.c (info_checkpoints_command): Update.
432 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
433 (m32c_m16c_pointer_to_address): Update.
434 * maint.c (maintenance_translate_address): Update.
435 * minsyms.c (add_minsym_to_hash_table): Update.
436 (add_minsym_to_demangled_hash_table): Update.
437 (lookup_minimal_symbol_mangled): Update.
438 (lookup_minimal_symbol_demangled): Update.
439 (lookup_minimal_symbol_linkage): Update.
440 (lookup_minimal_symbol_text): Update.
441 (lookup_minimal_symbol_by_pc_name): Update.
442 (minimal_symbol_is_less_than): Update.
443 (compact_minimal_symbols): Update.
444 (build_minimal_symbol_hash_tables): Update.
445 (find_solib_trampoline_target): Update.
446 * mips-tdep.c (mips_stub_frame_sniffer): Update.
447 (mips_skip_pic_trampoline_code): Update.
448 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
449 * objc-lang.c (info_selectors_command): Update.
450 (info_classes_command): Update.
451 (find_methods): Update.
452 (find_imps): Update.
453 * p-valprint.c (pascal_val_print): Update.
454 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
455 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
456 * printcmd.c (build_address_symbolic): Update.
457 (info_symbol_command): Update.
458 * psymtab.c (psymbol_name_matches): Update.
459 (match_partial_symbol): Update.
460 (lookup_partial_symbol): Update.
461 (print_partial_symbols): Update.
462 (sort_pst_symbols): Update.
463 (maintenance_check_psymtabs): Update.
464 * python/py-framefilter.c (py_print_frame): Update.
465 * python/python.c (gdbpy_rbreak): Update.
466 * record-btrace.c (btrace_get_bfun_name): Update.
467 (btrace_call_history): Update.
468 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
469 (rs6000_skip_trampoline_code): Update.
470 * sol-thread.c (info_cb): Update.
471 * stabsread.c (scan_file_globals): Update.
472 * stack.c (find_frame_funname): Update.
473 (info_frame_command_core): Update.
474 * symmisc.c (dump_msymbols): Update.
475 * symtab.c (symbol_natural_name): Rename to..,
476 (general_symbol_info::natural_name): ...this.
477 (symbol_demangled_name): Rename to...
478 (general_symbol_info::demangled_name): ...this.
479 (symbol_search_name): Rename to...
480 (general_symbol_info::search_name): ...this.
481 (symbol_matches_search_name): Update.
482 (find_pc_sect_line): Update.
483 (skip_prologue_sal): Update.
484 (search_symbols): Update.
485 (print_msymbol_info): Update.
486 (rbreak_command): Update.
487 (completion_list_add_msymbol): Update.
488 (completion_list_objc_symbol): Update.
489 (get_msymbol_address): Update.
490 * symtab.h (struct general_symbol_info): Add member functions
491 natural_name (), linkage_name (), print_name (), demangled_name (),
492 and search_name ().
493 (SYMBOL_NATURAL_NAME): Update.
494 (symbol_natural_name): Move to a member function on general_symbol_info.
495 (SYMBOL_DEMANGLED_NAME): Update.
496 (symbol_demangled_name): Move to a member function on
497 general_symbol_info.
498 (SYMBOL_SEARCH_NAME): Update.
499 (symbol_search_name): Move to a member function on general_symbol_info.
500 (MSYMBOL_NATURAL_NAME): Remove.
501 (MSYMBOL_LINKAGE_NAME): Remove.
502 (MSYMBOL_PRINT_NAME): Remove.
503 (MSYMBOL_DEMANGLED_NAME): Remove.
504 (MSYMBOL_SEARCH_NAME): Remove.
505 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
506
f8bab2d6
CB
5072019-11-22 Christian Biesinger <cbiesinger@google.com>
508
509 * symtab.c (create_demangled_names_hash): Use per_bfd->
510 minimal_symbol_count for computing the initial size, if greater
511 than our default size.
512
85e7588d
TV
5132019-11-22 Tom de Vries <tdevries@suse.de>
514
515 * contrib/words.sh: Improve words extraction.
516
f6180073
TV
5172019-11-22 Tom de Vries <tdevries@suse.de>
518
519 * contrib/words.sh: Combine sed invocations.
520
f10ffa41
CB
5212019-11-21 Christian Biesinger <cbiesinger@google.com>
522
523 * Makefile.in: Update.
524 * demangle.c: Rename to...
525 * gdb-demangle.c: ..this.
526 (is_cplus_marker): Change return type to bool.
527 (_initialize_demangler): Rename to...
528 (_initialize_gdb_demangle): ...this.
529 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
530 * symtab.h (demangle): Remove declaration; instead include
531 gdb-demangle.h.
532
6ba18521
TT
5332019-11-21 Tom Tromey <tromey@adacore.com>
534
535 * gdbsupport/format.c (format_pieces): Parse %I64d.
536 * unittests/format_pieces-selftests.c (test_windows_formats): New
537 function.
538 (run_tests): Call it.
539
34877895
PJ
5402019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
541
542 Byte reverse display of variables with DW_END_big, DW_END_little
543 (DW_AT_endianity) dwarf attributes if different than the native
544 byte order.
545 * ada-lang.c (ada_value_binop):
546 Use type_byte_order instead of gdbarch_byte_order.
547 * ada-valprint.c (printstr):
548 (ada_val_print_string):
549 * ada-lang.c (value_pointer):
550 (ada_value_binop):
551 Use type_byte_order instead of gdbarch_byte_order.
552 * c-lang.c (c_get_string):
553 Use type_byte_order instead of gdbarch_byte_order.
554 * c-valprint.c (c_val_print_array):
555 Use type_byte_order instead of gdbarch_byte_order.
556 * cp-valprint.c (cp_print_class_member):
557 Use type_byte_order instead of gdbarch_byte_order.
558 * dwarf2loc.c (rw_pieced_value):
559 Use type_byte_order instead of gdbarch_byte_order.
560 * dwarf2read.c (read_base_type): Handle DW_END_big,
561 DW_END_little
562 * f-lang.c (f_get_encoding):
563 Use type_byte_order instead of gdbarch_byte_order.
564 * findvar.c (default_read_var_value):
565 Use type_byte_order instead of gdbarch_byte_order.
566 * gdbtypes.c (check_types_equal):
567 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
568 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
569 and TYPE_ENDIANITY_LITTLE if set.
570 (type_byte_order): new function.
571 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
572 (struct main_type) <flag_endianity_not_default>:
573 New field.
574 (type_byte_order): New function.
575 * infcmd.c (default_print_one_register_info):
576 Use type_byte_order instead of gdbarch_byte_order.
577 * p-lang.c (pascal_printstr):
578 Use type_byte_order instead of gdbarch_byte_order.
579 * p-valprint.c (pascal_val_print):
580 Use type_byte_order instead of gdbarch_byte_order.
581 * printcmd.c (print_scalar_formatted):
582 Use type_byte_order instead of gdbarch_byte_order.
583 * solib-darwin.c (darwin_current_sos):
584 Use type_byte_order instead of gdbarch_byte_order.
585 * solib-svr4.c (solib_svr4_r_ldsomap):
586 Use type_byte_order instead of gdbarch_byte_order.
587 * stap-probe.c (stap_modify_semaphore):
588 Use type_byte_order instead of gdbarch_byte_order.
589 * target-float.c (target_float_same_format_p):
590 Use type_byte_order instead of gdbarch_byte_order.
591 * valarith.c (scalar_binop):
592 (value_bit_index):
593 Use type_byte_order instead of gdbarch_byte_order.
594 * valops.c (value_cast):
595 Use type_byte_order instead of gdbarch_byte_order.
596 * valprint.c (generic_emit_char):
597 (generic_printstr):
598 (val_print_string):
599 Use type_byte_order instead of gdbarch_byte_order.
600 * value.c (unpack_long):
601 (unpack_bits_as_long):
602 (unpack_value_bitfield):
603 (modify_field):
604 (pack_long):
605 (pack_unsigned_long):
606 Use type_byte_order instead of gdbarch_byte_order.
607 * findvar.c (unsigned_pointer_to_address):
608 (signed_pointer_to_address):
609 (unsigned_address_to_pointer):
610 (address_to_signed_pointer):
611 (default_read_var_value):
612 (default_value_from_register):
613 Use type_byte_order instead of gdbarch_byte_order.
614 * gnu-v3-abi.c (gnuv3_make_method_ptr):
615 Use type_byte_order instead of gdbarch_byte_order.
616 * riscv-tdep.c (riscv_print_one_register_info):
617 Use type_byte_order instead of gdbarch_byte_order.
618
87fb00ea
SM
6192019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
620
621 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
622 (current_ui_gdb_stdin_ptr): Likewise.
623 (current_ui_gdb_stderr_ptr): Likewise.
624 (current_ui_gdb_stdlog_ptr): Likewise.
625 (current_ui_current_uiout_ptr): Likewise.
626 (gen_ret_current_ui_field_ptr): Remove.
627
65d1cd5f
TV
6282019-11-21 Tom de Vries <tdevries@suse.de>
629
630 PR gdb/24956
631 * cli/cli-script.c (execute_control_command): Only switch to
632 INTERP_CONSOLE's ui_out when INTERP_MI is active.
633
9f6ad286
TT
6342019-11-19 Tom Tromey <tom@tromey.com>
635
636 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
637 Now static. Change type of "name".
638 (tui_set_win_height_command): Don't copy "arg".
639 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
640 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
641
435d3d88
AT
6422019-11-19 Ali Tamur <tamur@google.com>
643
644 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
645 "if (attr != nullptr)".
646 (dwarf2_find_base_address): Likewise.
647 (dwarf2_build_include_psymtabs): Likewise.
648 (read_cutu_die_from_dwo): Likewise.
649 (read_func_scope): Likewise.
650 (read_call_site_scope): Likewise.
651 (dwarf2_get_pc_bounds): Likewise.
652 (dwarf2_record_block_ranges): Likewise.
653 (dwarf2_add_field): Likewise.
654 (dwarf2_add_member_fn): Likewise.
655 (read_structure_type): Likewise.
656 (read_enumeration_type): Likewise.
657 (read_array_type): Likewise.
658 (read_array_order): Likewise.
659 (read_set_type): Likewise.
660 (read_common_block): Likewise.
661 (read_tag_reference_type): Likewise.
662 (read_tag_string_type): Likewise.
663 (read_subroutine_type): Likewise.
664 (read_base_type): Likewise.
665 (read_subrange_type): Likewise.
666 (new_symbol): Likewise.
667 (prepare_one_comp_unit): Likewise.
668
c9739b6a
TT
6692019-11-19 Tom Tromey <tromey@adacore.com>
670
671 * windows-nat.c (windows_nat_target::attach): Include GetLastError
672 result in error when DebugActiveProcess fails.
673
494409bb
SDJ
6742019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
675 Pedro Alves <palves@redhat.com>
676
677 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
678 * target.c (target_stack::push): Call 'unpush' if there's a
679 target on top of the stack.
680
2e953aca
PW
6812019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
682
683 * python/py-block.c (blpy_dealloc): Call tp_free.
684 (blpy_block_syms_dealloc): Likewise.
685 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
686 * python/py-inferior.c (infpy_dealloc): Likewise.
687 * python/py-lazy-string.c (stpy_dealloc): Likewise.
688 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
689 * python/py-symbol.c (sympy_dealloc): Likewise.
690 * python/py-symtab.c (stpy_dealloc): Likewise.
691 * python/py-type.c (typy_iterator_dealloc): Likewise.
692
6edc43ec
CB
6932019-11-18 Christian Biesinger <cbiesinger@google.com>
694
695 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
696 constructor instead of using a class initializer.
697
cd850b40
CB
6982019-11-15 Christian Biesinger <cbiesinger@google.com>
699
700 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
701 * configure: Regenerate.
702 * configure.ac: Don't source common.host.
703 * gdbsupport/common.host: Remove.
704 * gdbsupport/mingw-strerror.c: Remove.
705 * gdbsupport/posix-strerror.c: Rename to...
706 * gdbsupport/safe-strerror.c: ...this.
707
53fea9c7
CB
7082019-11-15 Christian Biesinger <cbiesinger@google.com>
709
710 * maint.c (scoped_command_stats::print_time): Use localtime_r
711 instead of localtime (provided through gnulib if necessary).
712 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
713 of ctime.
714
f8e27d88
CB
7152019-11-15 Christian Biesinger <cbiesinger@google.com>
716
717 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
718 avoid compile errors.
719
5abebf3c
CB
7202019-11-15 Christian Biesinger <cbiesinger@google.com>
721
722 * config.in: Regenerate.
723 * configure: Regenerate.
724 * gdbsupport/common.m4: No longer check for strerror_r.
725 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
726 POSIX version of strerror_r, now that gnulib provides it if
727 necessary.
728
9a351667
CB
7292019-11-14 Christian Biesinger <cbiesinger@google.com>
730
731 * README (`configure' options): Update.
732
55708e99
TT
7332019-11-14 Tom Tromey <tromey@adacore.com>
734
735 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
736 expected type for the RHS if the LHS is a convenience variable.
737
4b09bb2e
SM
7382019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
739
740 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
741 Provide explicit default and copy constructor.
742
bd454f8b
PW
7432019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
744
745 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
746 only call Py_INCREF (newbp) in the bppy_pending_object case.
747
d1aa3cf0
TT
7482019-11-13 Tom Tromey <tromey@adacore.com>
749
750 PR build/25182:
751 * psympriv.h (partial_symbol): Remove static assert.
752 * symtab.h (general_symbol_info, symbol): Remove static assert.
753
e06f3d6e
AB
7542019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
755
756 * gdbsupport/format.c (format_pieces::format_pieces): Support
757 printf 'z' size modifier.
758 * gdbsupport/format.h (enum argclass): Add size_t_arg.
759 * printcmd.c (ui_printf): Handle size_t_arg.
760 * ui-out.c (ui_out::vmessage): Likewise.
761 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
762 function.
763 (run_tests): Call test_format_int_sizes.
764
468c0cbb
CB
7652019-11-12 Christian Biesinger <cbiesinger@google.com>
766
767 * ada-exp.y (write_ambiguous_var): Update.
768 * buildsym.c (add_symbol_to_list): Update.
769 * dwarf2read.c (read_variable): Update.
770 (new_symbol): Update.
771 * jit.c (finalize_symtab): Update.
772 * language.c (language_alloc_type_symbol): Update.
773 * symtab.c (fixup_symbol_section): Update.
774 (initialize_objfile_symbol_1): Move code to...
775 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
776 (allocate_symbol): Update.
777 (allocate_template_symbol): Update.
778 (get_symbol_address): Update.
779 * symtab.h (struct symbol): Inherit from general_symbol_info instead
780 of having as a field, and add a constructor.
781 (SYMBOL_VALUE): Update.
782 (SYMBOL_VALUE_ADDRESS): Update.
783 (SET_SYMBOL_VALUE_ADDRESS): Update.
784 (SYMBOL_VALUE_BYTES): Update.
785 (SYMBOL_VALUE_COMMON_BLOCK): Update.
786 (SYMBOL_BLOCK_VALUE): Update.
787 (SYMBOL_VALUE_CHAIN): Update.
788 (SYMBOL_LANGUAGE): Update.
789 (SYMBOL_SECTION): Update.
790 (SYMBOL_OBJ_SECTION): Update.
791 (SYMBOL_SET_LANGUAGE): Update.
792 (SYMBOL_SET_LINKAGE_NAME): Update.
793 (SYMBOL_SET_NAMES): Update.
794 (SYMBOL_NATURAL_NAME): Update.
795 (SYMBOL_LINKAGE_NAME): Update.
796 (SYMBOL_DEMANGLED_NAME): Update.
797 (SYMBOL_SEARCH_NAME): Update.
798 (SYMBOL_MATCHES_SEARCH_NAME): Update.
799 (struct symbol): Update.
800 (struct template_symbol): Update.
801 (struct rust_vtable_symbol): Update.
802 * xcoffread.c (SYMBOL_DUP): Update.
803
ed2c82c3
TT
8042019-11-12 Tom Tromey <tom@tromey.com>
805
806 * tui/tui-layout.c (show_layout): Set current_layout.
807 (show_source_disasm_command, show_data)
808 (show_source_or_disasm_and_command): Don't set current_layout.
809
d9fcefd5
TT
8102019-11-12 Tom Tromey <tom@tromey.com>
811
812 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
813
45e42163
TT
8142019-11-12 Tom Tromey <tom@tromey.com>
815
816 * tui/tui-win.c (resize_message): New global.
817 (show_tui_resize_message): New function.
818 (tui_async_resize_screen): Print message if requested.
819 (_initialize_tui_win): Add tui-resize-message setting.
820 * NEWS: Add entry for new commands.
821
c86d74cc
TT
8222019-11-11 Tom Tromey <tom@tromey.com>
823
824 * tui/tui.c (tui_initialize_readline): Add new bindable readline
825 functions.
826
7b7b9424
CB
8272019-11-11 Christian Biesinger <cbiesinger@google.com>
828
829 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
830
086baaf1
AB
8312019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
832
833 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
834 function.
835 * python/python-internal.h (gdbpy_lookup_static_symbols):
836 Declare new function.
837 * python/python.c (python_GdbMethods): Add
838 gdb.lookup_static_symbols method.
839 * NEWS: Mention gdb.lookup_static_symbols.
840
09ff83af
AB
8412019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
842
843 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
844 static block of current object file first. Also fix typo in
845 header comment.
846
eb2dd8df
AB
8472019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
848
849 * stack.c (set_last_displayed_sal): Delete.
850 (last_displayed_sal_valid): Delete.
851 (last_displayed_pspace): Delete.
852 (last_displayed_addr): Delete.
853 (last_displayed_symtab): Delete.
854 (last_displayed_line): Delete.
855 (class last_displayed_symtab_info_type): New.
856 (last_displayed_symtab_info): New static global variable.
857 (print_frame_info): Call methods on last_displayed_symtab_info.
858 (clear_last_displayed_sal): Update header comment, and make use of
859 last_displayed_symtab_info.
860 (last_displayed_sal_is_valid): Likewise.
861 (get_last_displayed_pspace): Likewise.
862 (get_last_displayed_addr): Likewise.
863 (get_last_displayed_symtab): Likewise.
864 (get_last_displayed_line): Likewise.
865 (get_last_displayed_sal): Likewise.
866 * stack.h (clear_last_displayed_sal): Update header comment.
867 (last_displayed_sal_is_valid): Likewise.
868 (get_last_displayed_pspace): Likewise.
869 (get_last_displayed_addr): Likewise.
870 (get_last_displayed_symtab): Likewise.
871 (get_last_displayed_line): Likewise.
872 (get_last_displayed_sal): Likewise.
873
62137775
AB
8742019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
875
876 * stack.c (frame_show_address): Convert return type to bool.
877 * stack.h (frame_show_address): Likewise, and update header
878 comment.
879
cf57ad6d
AB
8802019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
881
882 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
883 * unittests/vec-utils-selftests.c: New file.
884 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
885
0b026263
TT
8862019-11-10 Tom Tromey <tom@tromey.com>
887
888 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
889 (tui_highlight_win): Likewise.
890 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
891 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
892 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
893 Don't set can_highlight.
894
b049ce2d
TT
8952019-11-10 Tom Tromey <tom@tromey.com>
896
897 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
898 Remove unused declaration.
899
992a7040
TT
9002019-11-08 Tom Tromey <tromey@adacore.com>
901
902 * top.c (read_command_file): Update.
903 (command_line_input): Make return type const.
904 * python/py-gdb-readline.c: Update.
905 * linespec.c (decode_line_2): Update.
906 * defs.h (command_line_input): Make return type const.
907 * cli/cli-script.c (read_next_line): Make return type const.
908 * ada-lang.c (get_selections): Update.
909
ca3a04f6
CB
9102019-11-06 Christian Biesinger <cbiesinger@google.com>
911
912 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
913 * mi/mi-main.c (output_cores): Likewise.
914 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
915 (linux_xfer_osdata_modules): Likewise.
916 * remote.c (register_remote_support_xml): Likewise.
917 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
918 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
919
e0eac551
TT
9202019-11-06 Tom Tromey <tom@tromey.com>
921
922 * tui/tui-interp.c: Don't include readline.h.
923 * tui/tui-hooks.c: Don't include readline.h.
924 * symmisc.c: Include tilde.h, not readline.h.
925 * symfile.c: Include tilde.h, not readline.h.
926 * source.c: Include tilde.h, not readline.h.
927 * solib.c: Include tilde.h, not readline.h.
928 * psymtab.c: Include tilde.h, not readline.h.
929 * exec.c: Include tilde.h, not readline.h.
930 * corelow.c: Include tilde.h, not readline.h.
931 * cli/cli-dump.c: Include tilde.h, not readline.h.
932 * cli/cli-cmds.c: Don't include readline.h.
933
825165c5
TT
9342019-11-05 Tom Tromey <tom@tromey.com>
935
936 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
937 (tui_disassemble): Set addr_size.
938 (tui_disasm_window::set_contents): Use addr_size.
939
91ae903f
TT
9402019-11-05 Tom Tromey <tom@tromey.com>
941
942 * rust-lang.c (rust_language_defn): Update.
943 * python/py-value.c (valpy_string): Call c_get_string.
944 * p-lang.c (pascal_language_defn): Update.
945 * opencl-lang.c (opencl_language_defn): Update.
946 * objc-lang.c (objc_language_defn): Update.
947 * m2-lang.c (m2_language_defn): Update.
948 * language.c (unknown_language_defn, auto_language_defn): Update.
949 (default_get_string): Remove.
950 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
951 * go-lang.c (go_language_defn): Update.
952 * f-lang.c (f_language_defn): Update.
953 * d-lang.c (d_language_defn): Update.
954 * c-lang.c (c_language_defn, cplus_language_defn)
955 (asm_language_defn, minimal_language_defn): Update.
956 * ada-lang.c (ada_language_defn): Update.
957 * language.h (struct language_defn) <la_get_string>: Remove.
958 (LA_GET_STRING): Remove.
959 (default_get_string): Don't declare.
960
1df2f9ef
TT
9612019-11-05 Tom Tromey <tom@tromey.com>
962
963 * tui/tui-source.h (struct tui_source_window): Inline
964 constructor. Remove destructor.
965 <style_changed, m_observable>: Move to superclass.
966 * tui/tui-winsource.h (tui_copy_source_line): Declare.
967 (struct tui_source_window_base): Move private members to end.
968 <style_changed, m_observable>: Move from tui_source_window.
969 * tui/tui-winsource.c (tui_copy_source_line): Move from
970 tui-source.c. Rename from copy_source_line. Add special handling
971 for negative line number.
972 (tui_source_window_base::style_changed): Move from
973 tui_source_window.
974 (tui_source_window_base): Register observer.
975 (~tui_source_window_base): New.
976 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
977 rename.
978 (tui_source_window::set_contents): Use tui_copy_source_line.
979 (tui_source_window::tui_source_window): Move to tui-source.h.
980 (tui_source_window::~tui_source_window): Remove.
981 (tui_source_window::style_changed): Move to superclass.
982 * tui/tui-disasm.c (tui_disassemble): Create string file with
983 styling, when possible. Add "addr_size" parameter.
984 (tui_disasm_window::set_contents): Use tui_copy_source_line.
985 Don't compute maximum size.
986 (len_without_escapes): New function
987
5d051055
TT
9882019-11-05 Tom Tromey <tom@tromey.com>
989
990 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
991 std::string.
992 * tui/tui-winsource.c (tui_show_source_line): Update.
993 * tui/tui-source.c (tui_source_window::set_contents): Update.
994 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
995
ade7beea
CB
9962019-11-05 Christian Biesinger <cbiesinger@google.com>
997
998 * symtab.h (gdb_static_assert): Put && operator at the beginning
999 of the line instead of the end.
1000
3573abe1
CB
10012019-11-04 Christian Biesinger <cbiesinger@google.com>
1002
1003 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1004 and sizeof (symbol).
1005 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1006
dae8b3eb
RO
10072019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1008
1009 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1010 * configure.host: Mark *-*-solaris2.10* obsolete.
1011 * configure.tgt: Mark Solaris < 11 obsolete.
1012 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1013 Update target triplet.
1014
5df96a4e
TT
10152019-11-01 Tom Tromey <tromey@adacore.com>
1016
1017 * utils.c (print_sys_errmsg): Simplify.
1018
b7481649
TT
10192019-11-01 Tom Tromey <tromey@adacore.com>
1020
1021 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1022
e48f6033
CB
10232019-11-01 Christian Biesinger <cbiesinger@google.com>
1024
1025 * configure: Regenerate.
1026 * configure.ac: Remove check for strerror_r.
1027 * gdbsupport/common.m4: Check for strerror_r.
1028
bd5766ec
LM
10292019-11-01 Luis Machado <luis.machado@linaro.org>
1030
1031 PR gdb/25124
1032
1033 * arm-tdep.c (arm_per_objfile): Rename to ...
1034 (arm_per_bfd): ... this.
1035 (arm_objfile_data_key): Rename to ...
1036 (arm_bfd_data_key): ... this.
1037 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1038 data.
1039 (arm_record_special_symbol): Likewise.
1040
e1709896
AB
10412019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1042
1043 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1044 end.
1045 * c-typeprint.c (c_print_typedef): Likewise.
1046 * f-typeprint.c (f_print_typedef): Likewise.
1047 * m2-typeprint.c (m2_print_typedef): Likewise.
1048 * p-typeprint.c (pascal_print_typedef): Likewise.
1049 * rust-lang.c (rust_print_typedef): Likewise.
1050 * symtab.c (print_symbol_info): Print a newline after calling
1051 typedef_print.
1052
165f8965
AB
10532019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1054
1055 * symtab.c (info_module_cmdlist): New variable.
1056 (info_module_command): New function.
1057 (search_module_symbols): New function.
1058 (info_module_subcommand): New function.
1059 (struct info_modules_var_func_options): New struct.
1060 (info_modules_var_func_options_defs): New variable.
1061 (make_info_modules_var_func_options_def_group): New function.
1062 (info_module_functions_command): New function.
1063 (info_module_variables_command): New function.
1064 (info_module_var_func_command_completer): New function.
1065 (_initialize_symtab): Register new 'info module functions' and
1066 'info module variables' commands.
1067 * symtab.h (typedef symbol_search_in_module): New typedef.
1068 (search_module_symbols): Declare new function.
1069 * NEWS: Mention new commands.
1070
59c35742
AB
10712019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1072
1073 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1074 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1075 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1076 MODULES_DOMAIN.
1077 (scan_partial_symbols): Only create partial module symbols for non
1078 declarations.
1079 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1080 and MODULES_DOMAIN.
1081 * symtab.c (search_domain_name): Likewise.
1082 (search_symbols): Likewise.
1083 (print_symbol_info): Likewise.
1084 (symtab_symbol_info): Likewise.
1085 (info_modules_command): New function.
1086 (_initialize_symtab): Register 'info modules' command.
1087 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1088 * NEWS: Mention new 'info modules' command.
1089
aed61d02
PW
10902019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1091
1092 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1093 and $_gdb_maint_setting_str.
1094
9ad9b77d
PW
10952019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1096
1097 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1098 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1099 (str_value_from_setting, gdb_setting_str_internal_fn)
1100 (gdb_maint_setting_str_internal_fn): New functions.
1101 (_initialize_cli_cmds): Define the new convenience functions.
1102 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1103 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1104
8d6efaa2
CB
11052019-10-31 Christian Biesinger <cbiesinger@google.com>
1106
1107 * agent.c (set_can_use_agent): When the setting is turned on,
1108 look up agent symbols if we don't have them yet.
1109 (agent_new_objfile): Don't look up agent symbols when the agent
1110 setting is off.
1111
33cb1647
CB
11122019-10-31 Christian Biesinger <cbiesinger@google.com>
1113
1114 * config.in: Regenerate.
1115
b231e86a
CB
11162019-10-31 Christian Biesinger <cbiesinger@google.com>
1117
1118 * configure: Regenerate.
1119 * configure.ac: Check for strerror_r.
1120 * gdbsupport/common-utils.h (safe_strerror): Change return value
1121 to const char * and document that this function is now threadsafe.
1122 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1123 thread_local and call strerror_r, if available.
1124 * utils.c (perror_string): Update.
1125 (print_sys_errmsg): Update.
1126
a2726d4f
LM
11272019-10-31 Luis Machado <luis.machado@linaro.org>
1128
1129 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1130 objfile_key.
1131 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1132 objfile to fetch per-bfd data.
1133 (arm_find_exidx_entry): Likewise.
1134
75cafaa6
CB
11352019-10-31 Christian Biesinger <cbiesinger@google.com>
1136
1137 * gdbsupport/agent.c (debug_agent): Change type to bool.
1138 (use_agent): Likewise.
1139 (all_agent_symbols_look_up): Likewise.
1140 (agent_loaded_p): Change return value to bool.
1141 (agent_look_up_symbols): Update.
1142 (agent_capability_check): Change return value to bool.
1143 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1144 (debug_agent): Change type to bool.
1145 (use_agent): Likewise.
1146 (agent_capability_check): Change return value to bool.
1147
808590ec
CB
11482019-10-30 Christian Biesinger <cbiesinger@google.com>
1149
1150 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1151 (build_minimal_symbol_hash_tables): Code to clear the table moved
1152 to clear_minimal_symbol_hash_tables.
1153 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1154 when needed.
1155
f18ad8a1
SM
11562019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1157
1158 * infcmd.c: Remove includes.
1159 * infrun.c: Remove includes.
1160
de93309a
SM
11612019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1162
1163 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1164 (grow_vect): Remove declaration.
1165 (ada_type_of_array): Remove declaration.
1166 (ada_update_initial_language): Remove declaration.
1167 (ada_fold_name): Remove declaration.
1168 (ada_fill_in_ada_prototype): Remove declaration.
1169 (user_select_syms): Remove declaration.
1170 (get_selections): Remove declaration.
1171 (ada_tag_type): Remove declaration.
1172 (ada_value_tag): Remove declaration.
1173 (ada_is_others_clause): Remove declaration.
1174 (ada_in_variant): Remove declaration.
1175 (ada_value_struct_elt): Remove declaration.
1176 (ada_attribute_name): Remove declaration.
1177 (ada_system_address_type): Remove declaration.
1178 * ada-lang.c (ada_watch_location_expression): Make static.
1179 (GROW_VECT): Move here from ada-lang.h.
1180 (grow_vect): Make static.
1181 (ada_update_initial_language): Make static.
1182 (ada_fold_name): Make static.
1183 (ada_type_of_array): Make static.
1184 (encoded_ordered_before): Move up.
1185 (sort_choices): Move up.
1186 (print_signatures): Move up.
1187 (ada_print_symbol_signature): Move up.
1188 (get_selections): Move up and make static.
1189 (user_select_syms): Move up and make static.
1190 (ada_value_struct_elt): Move up and make static.
1191 (ada_tag_type): Make static.
1192 (ada_value_tag): Make static.
1193 (ada_is_others_clause): Make static.
1194 (ada_in_variant): Make static.
1195 (ada_attribute_name): Make static.
1196
cdc46a9f
SM
11972019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1198
1199 * ada-lang.c: Remove includes.
1200 * ada-typeprint.c: Remove includes.
1201 * ada-valprint.c: Remove includes.
1202
90421c56
SM
12032019-10-29 Simon Marchi <simon.marchi@efficios.com>
1204
1205 * addrmap.c: Add static assertions of type size, moved from
1206 _initialize_addrmap.
1207 (_initialize_addrmap): Remove.
1208
31edb802
CB
12092019-10-29 Christian Biesinger <cbiesinger@google.com>
1210
1211 * coffread.c (record_minimal_symbol): Update.
1212 (process_coff_symbol): Update.
1213 * dbxread.c (read_dbx_symtab): Update.
1214 * dwarf2read.c (add_partial_symbol): Update.
1215 (fixup_go_packaging): Update.
1216 (load_partial_dies): Update.
1217 (new_symbol): Update.
1218 * elfread.c (record_minimal_symbol): Change signature to use
1219 gdb::string_view instead of name+len.
1220 (elf_symtab_read): Update.
1221 (elf_rel_plt_read): Update.
1222 * mdebugread.c (parse_partial_symbols): Update.
1223 (handle_psymbol_enumerators): Update.
1224 (new_symbol): Update.
1225 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1226 to use gdb::string_view instead of name+len.
1227 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1228 * psympriv.h (add_psymbol_to_list): Likewise.
1229 * psymtab.c (add_psymbol_to_bcache): Likewise.
1230 (add_psymbol_to_list): Likewise.
1231 * stabsread.c (define_symbol): Update.
1232 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1233 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1234 (symbol_set_names): Likewise.
1235 * xcoffread.c (scan_xcoff_symtab): Update.
1236
0c921b21
CB
12372019-10-29 Christian Biesinger <cbiesinger@google.com>
1238
1239 * symtab.h (symbol_set_names): Document that copy_name must be
1240 set to true for non-nullterminated strings.
1241 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1242 linkage_name if the entry was not found and we need to demangle.
1243
35e65c49
CB
12442019-10-29 Christian Biesinger <cbiesinger@google.com>
1245
1246 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1247 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1248 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1249 * gdbsupport/gdb_binary_search.h: New file.
1250
ed2a2229
CB
12512019-10-29 Christian Biesinger <cbiesinger@google.com>
1252
1253 * NEWS: Mention new --with-system-gdbinit-dir option.
1254 * config.in: Regenerate.
1255 * configure: Regenerate.
1256 * configure.ac: Add new option --with-system-gdbinit-dir.
1257 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1258 for a ".gdb" suffix.
1259 * main.c (get_init_files): Change system_gdbinit argument to
1260 a vector and return the files in SYSTEM_GDBINIT_DIR in
1261 addition to SYSTEM_GDBINIT.
1262 (captured_main_1): Update.
1263 (print_gdb_help): Update.
1264 * top.c (print_gdb_configuration): Also print the value of
1265 SYSTEM_GDBINIT_DIR.
1266
87f34879
CB
12672019-10-28 Christian Biesinger <cbiesinger@google.com>
1268
1269 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1270 that takes gdb::string_view arguments.
1271
30baf67b
TV
12722019-10-26 Tom de Vries <tdevries@suse.de>
1273
1274 * aarch64-linux-tdep.c: Fix typos in comments.
1275 * aarch64-tdep.c: Same.
1276 * ada-lang.c: Same.
1277 * amd64-nat.c: Same.
1278 * arc-tdep.c: Same.
1279 * arch/aarch64-insn.c: Same.
1280 * block.c: Same.
1281 * breakpoint.h: Same.
1282 * btrace.h: Same.
1283 * c-varobj.c: Same.
1284 * cli/cli-decode.c: Same.
1285 * cli/cli-script.c: Same.
1286 * cli/cli-utils.h: Same.
1287 * coff-pe-read.c: Same.
1288 * coffread.c: Same.
1289 * compile/compile-cplus-symbols.c: Same.
1290 * compile/compile-object-run.c: Same.
1291 * completer.c: Same.
1292 * corelow.c: Same.
1293 * cp-support.c: Same.
1294 * demangle.c: Same.
1295 * dwarf-index-write.c: Same.
1296 * dwarf2-frame.c: Same.
1297 * dwarf2-frame.h: Same.
1298 * eval.c: Same.
1299 * frame-base.h: Same.
1300 * frame.h: Same.
1301 * gdbcmd.h: Same.
1302 * gdbtypes.h: Same.
1303 * gnu-nat.c: Same.
1304 * guile/scm-objfile.c: Same.
1305 * i386-tdep.c: Same.
1306 * i386-tdep.h: Same.
1307 * infcall.c: Same.
1308 * infcall.h: Same.
1309 * linux-nat.c: Same.
1310 * m68k-tdep.c: Same.
1311 * macroexp.c: Same.
1312 * memattr.c: Same.
1313 * mi/mi-cmd-disas.c: Same.
1314 * mi/mi-getopt.h: Same.
1315 * mi/mi-main.c: Same.
1316 * minsyms.c: Same.
1317 * nat/aarch64-sve-linux-sigcontext.h: Same.
1318 * objfiles.h: Same.
1319 * ppc-linux-nat.c: Same.
1320 * ppc-linux-tdep.c: Same.
1321 * ppc-tdep.h: Same.
1322 * progspace.h: Same.
1323 * prologue-value.h: Same.
1324 * python/py-evtregistry.c: Same.
1325 * python/py-instruction.h: Same.
1326 * record-btrace.c: Same.
1327 * record-full.c: Same.
1328 * remote.c: Same.
1329 * rs6000-tdep.c: Same.
1330 * ser-tcp.c: Same.
1331 * sol-thread.c: Same.
1332 * sparc-sol2-tdep.c: Same.
1333 * sparc64-tdep.c: Same.
1334 * stabsread.c: Same.
1335 * symfile.c: Same.
1336 * symtab.h: Same.
1337 * target.c: Same.
1338 * tracepoint.c: Same.
1339 * tui/tui-data.h: Same.
1340 * tui/tui-io.c: Same.
1341 * tui/tui-win.c: Same.
1342 * tui/tui.c: Same.
1343 * unittests/rsp-low-selftests.c: Same.
1344 * user-regs.h: Same.
1345 * utils.c: Same.
1346 * utils.h: Same.
1347 * valarith.c: Same.
1348 * valops.c: Same.
1349 * valprint.c: Same.
1350 * valprint.h: Same.
1351 * value.c: Same.
1352 * value.h: Same.
1353 * varobj.c: Same.
1354 * x86-nat.h: Same.
1355 * xtensa-tdep.c: Same.
1356
1834d45f
AT
13572019-10-25 Ali Tamur <tamur@google.com>
1358
1359 * charset.c (find_charset_names): Reflect API change.
1360
5396ae17
CB
13612019-10-25 Christian Biesinger <cbiesinger@google.com>
1362
1363 * symtab.c (struct demangled_name_entry): Change demangled name
1364 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1365 part of the struct anymore.
1366 (symbol_set_names): No longer obstack allocate + copy the demangled
1367 name, just store the allocated name from bfd.
1368
93878f47
TT
13692019-10-25 Tom Tromey <tromey@adacore.com>
1370
1371 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1372 (bsearch_cie_cmp, add_cie): Remove.
1373 (find_cie): Reimplement.
1374 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1375 (dwarf2_build_frame_info): Update.
1376
7b71fc97
L
13772019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1378
1379 PR gdb/25126
1380 * symfile.c (reread_symbols): Call forget_cached_source_info to
1381 clear the stale source cache.
1382
cbb5a2ea
CB
13832019-10-24 Christian Biesinger <cbiesinger@google.com>
1384
1385 * configure: Regenerate.
1386 * configure.ac: Remove code that sets python_has_threads.
1387
71737c43
CB
13882019-10-24 Christian Biesinger <cbiesinger@google.com>
1389
1390 * config.in: Regenerate.
1391 * configure: Regenerate.
1392 * configure.ac: Remove the code that uses sed to get the python
1393 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1394
33d569b7
AB
13952019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1396
1397 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1398 error paths.
1399
f16f7b7c
TT
14002019-10-23 Tom Tromey <tom@tromey.com>
1401
1402 * arc-tdep.c: Remove ".." from include.
1403 * frv-tdep.c: Remove ".." from include.
1404 * lm32-tdep.c: Remove ".." from include.
1405 * microblaze-tdep.c: Remove ".." from include.
1406 * or1k-tdep.h: Remove ".." from include.
1407 * s12z-tdep.c: Remove ".." from include.
1408 * Makefile.in (OPCODES_CFLAGS): Add comment.
1409 (TOP_CFLAGS): New variable.
1410 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1411
6999161a
TT
14122019-10-23 Tom Tromey <tom@tromey.com>
1413
1414 * Makefile.in (READLINE_DIR): Update.
1415
12e7c35e
TBA
14162019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1417
1418 * infcall.c (call_function_by_hand_dummy): Fix the function
1419 comment. And extract out a code section into...
1420 (reserve_stack_space): ...this new function.
1421
37055cad
TBA
14222019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1423
1424 * infcall.c (value_arg_coerce): Remove an unused parameter.
1425 (call_function_by_hand_dummy): Update the call to
1426 'value_arg_coerce'.
1427
39bcc47c
TBA
14282019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1429
1430 * infcall.c (call_function_by_hand_dummy): Refactor.
1431
bd888c0f
TBA
14322019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1433
1434 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1435
c12d372d
TT
14362019-10-23 Tom Tromey <tom@tromey.com>
1437
1438 * configure: Rebuild.
1439 * configure.ac: Don't check for sigprocmask.
1440 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1441
4d0b984b
TT
14422019-10-23 Tom Tromey <tom@tromey.com>
1443
1444 * configure: Rebuild.
1445 * acinclude.m4: Use m4_include, not sinclude.
1446
7e785608
TV
14472019-10-23 Tom de Vries <tdevries@suse.de>
1448
1449 PR breakpoints/24687
1450 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1451
403772ef
CB
14522019-10-22 Christian Biesinger <cbiesinger@google.com>
1453
1454 * symtab.c (struct demangled_name_entry) <language>: Change from
1455 bitfield to regular variable.
1456
3a494279
CB
14572019-10-22 Christian Biesinger <cbiesinger@google.com>
1458
1459 * symtab.c (struct demangled_name_entry): Add a constructor.
1460 (free_demangled_name_entry): New function to call the destructor
1461 for demangled_name_entry.
1462 (create_demangled_names_hash): Pass free_demangled_name_entry to
1463 htab_create_alloc.
1464 (symbol_set_names): Call placement new for demangled_name_entry.
1465 * utils.c: No longer include xxhash.h here, now that fast_hash
1466 is inlined in the header.
1467 * utils.h: Instead, include it here.
1468
ccb1ba62
CB
14692019-10-22 Christian Biesinger <cbiesinger@google.com>
1470
1471 * Makefile.in: Link with libxxhash.
1472 * config.in: Regenerate.
1473 * configure: Regenerate.
1474 * configure.ac: Search for libxxhash.
1475 * utils.c (fast_hash): Use xxhash if present.
1476
1a6ff1a9
CB
14772019-10-22 Christian Biesinger <cbiesinger@google.com>
1478
1479 * utils.h (fast_hash): New function.
1480 * symtab.c (hash_demangled_name_entry): Call new function
1481 fast_hash.
1482
7bb43059
CB
14832019-10-22 Christian Biesinger <cbiesinger@google.com>
1484
1485 * symtab.c (struct demangled_name_entry): Change type of mangled
1486 to gdb::string_view. Also adds a constructor that takes the
1487 mangled name.
1488 (hash_demangled_name_entry): Update.
1489 (eq_demangled_name_entry): Update.
1490 (free_demangled_name_entry): New function to call the destructor
1491 now that this is not a POD anymore.
1492 (create_demangled_names_hash): Pass free_demangled_name_entry to
1493 htab_create_alloc.
1494 (symbol_set_names): Update.
1495
7ba99d21
AT
14962019-10-21 Ali Tamur <tamu@google.com>
1497
1498 * dwarf2read.c (dir_index): Change type.
1499 (file_name_index): Likewise.
1500 (line_header::include_dir_at): Change comment and implementation on
1501 whether it is DWARF 5.
1502 (line_header::is_valid_file_index): New function.
1503 (line_header::file_name_at): Change comment and implementation on
1504 whether it is DWARF 5.
1505 (line_header::file_names): Change to private field renamed as
1506 m_file_names and introduce a new accessor method.
1507 (line_header::file_names_size): New method.
1508 (line_header::include_dirs): Change to private field and rename as
1509 m_include_dirs.
1510 (dw2_get_file_names_reader): Define local var at a smaller scope and
1511 reflect API change.
1512 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1513 (process_structure_scope): Likewise.
1514 (line_header::add_include_dir): Change message and reflect renaming.
1515 (line_header::add_file_name): Likewise.
1516 (read_formatted_entries): Handle DW_FORM_data16.
1517 (dwarf_decode_line_header): Fix line header length calculation.
1518 (psymtab_include_file_name): Change comment and API.
1519 (lnp_state_machine::m_file): Update comment and reflect type change.
1520 (lnp_state_machine::record_line): Reflect type change.
1521 (dwarf_decode_lines): Reflect API change.
1522 (file_file_name): Likewise.
1523 (file_full_name): Likewise.
1524
45f47c3a
AB
15252019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1526
1527 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1528
e5f3c0e3
TT
15292019-10-21 Tom Tromey <tom@tromey.com>
1530
1531 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1532
a0a461e5
TT
15332019-10-21 Tom Tromey <tom@tromey.com>
1534
1535 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1536 NM_H. Use AC_CONFIG_LINKS.
1537 * configure: Rebuild.
1538 * Makefile.in (NM_H): New variable.
1539 (generated_files): Add NM_H. Remove gcore.
1540 (nm.h, stamp-nmh): New targets.
1541
54d83b8d
TT
15422019-10-20 Tom Tromey <tom@tromey.com>
1543
1544 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1545 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1546 obsolete comment.
1547 (put_objfile_before): Now static.
1548
23771117
SM
15492019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1550
1551 * gdbsupport/common-utils.h (startswith): Change return type to
1552 bool.
1553
39ef2f62
CB
15542019-10-19 Christian Biesinger <cbiesinger@google.com>
1555
1556 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1557 * breakpoint.c (bp_locations_compare): Rename to...
1558 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1559 (update_global_location_list): Use std::sort instead of qsort.
1560 * buildsym.c (compare_line_numbers): Rename to...
1561 (lte_is_less_than): ...this, and change to std::sort semantics.
1562 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1563 instead of qsort.
1564 * disasm.c (compare_lines): Rename to...
1565 (line_is_less_than): ...this, and change to std::sort semantics.
1566 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1567 of qsort.
1568 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1569 (fde_is_less_than): ...this, and change to std::sort semantics.
1570 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1571 * mdebugread.c (compare_blocks):
1572 (block_is_less_than): ...this, and change to std::sort semantics.
1573 (sort_blocks): Call std::sort instead of qsort.
1574 * objfiles.c (qsort_cmp): Rename to...
1575 (sort_cmp): ...this, and change to std::sort semantics.
1576 (update_section_map): Call std::sort instead of qsort.
1577 * remote.c (compare_pnums): Remove.
1578 (map_regcache_remote_table): Call std::sort instead of qsort.
1579 * utils.c (compare_positive_ints): Remove.
1580 * utils.h (compare_positive_ints): Remove.
1581 * xcoffread.c (compare_lte): Remove.
1582 (arrange_linetable): Call std::sort instead of qsort.
1583
f71433ee
SDJ
15842019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1585
1586 * symfile.c (init_entry_point_info): Fix typo.
1587 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1588
85102364
TV
15892019-10-18 Tom de Vries <tdevries@suse.de>
1590
1591 * aarch64-tdep.c: Fix typos in comments.
1592 * ada-lang.c: Same.
1593 * ada-tasks.c: Same.
1594 * alpha-tdep.c: Same.
1595 * alpha-tdep.h: Same.
1596 * amd64-nat.c: Same.
1597 * amd64-windows-tdep.c: Same.
1598 * arc-tdep.c: Same.
1599 * arc-tdep.h: Same.
1600 * arch-utils.c: Same.
1601 * arm-nbsd-tdep.c: Same.
1602 * arm-tdep.c: Same.
1603 * ax-gdb.c: Same.
1604 * blockframe.c: Same.
1605 * btrace.c: Same.
1606 * c-varobj.c: Same.
1607 * coff-pe-read.c: Same.
1608 * coffread.c: Same.
1609 * cris-tdep.c: Same.
1610 * darwin-nat.c: Same.
1611 * dbxread.c: Same.
1612 * dcache.c: Same.
1613 * disasm.c: Same.
1614 * dtrace-probe.c: Same.
1615 * dwarf-index-write.c: Same.
1616 * dwarf2-frame-tailcall.c: Same.
1617 * dwarf2-frame.c: Same.
1618 * dwarf2read.c: Same.
1619 * eval.c: Same.
1620 * exceptions.c: Same.
1621 * fbsd-tdep.c: Same.
1622 * findvar.c: Same.
1623 * frame.c: Same.
1624 * frv-tdep.c: Same.
1625 * gnu-v3-abi.c: Same.
1626 * go32-nat.c: Same.
1627 * h8300-tdep.c: Same.
1628 * hppa-tdep.c: Same.
1629 * i386-linux-tdep.c: Same.
1630 * i386-tdep.c: Same.
1631 * ia64-libunwind-tdep.c: Same.
1632 * ia64-tdep.c: Same.
1633 * infcmd.c: Same.
1634 * infrun.c: Same.
1635 * linespec.c: Same.
1636 * linux-nat.c: Same.
1637 * linux-thread-db.c: Same.
1638 * machoread.c: Same.
1639 * mdebugread.c: Same.
1640 * mep-tdep.c: Same.
1641 * mn10300-tdep.c: Same.
1642 * namespace.c: Same.
1643 * objfiles.c: Same.
1644 * opencl-lang.c: Same.
1645 * or1k-tdep.c: Same.
1646 * osabi.c: Same.
1647 * ppc-linux-nat.c: Same.
1648 * ppc-linux-tdep.c: Same.
1649 * ppc-sysv-tdep.c: Same.
1650 * printcmd.c: Same.
1651 * procfs.c: Same.
1652 * record-btrace.c: Same.
1653 * record-full.c: Same.
1654 * remote-fileio.c: Same.
1655 * remote.c: Same.
1656 * rs6000-tdep.c: Same.
1657 * s12z-tdep.c: Same.
1658 * score-tdep.c: Same.
1659 * ser-base.c: Same.
1660 * ser-go32.c: Same.
1661 * skip.c: Same.
1662 * sol-thread.c: Same.
1663 * solib-svr4.c: Same.
1664 * solib.c: Same.
1665 * source.c: Same.
1666 * sparc-nat.c: Same.
1667 * sparc-sol2-tdep.c: Same.
1668 * sparc-tdep.c: Same.
1669 * sparc64-tdep.c: Same.
1670 * stabsread.c: Same.
1671 * stack.c: Same.
1672 * symfile.c: Same.
1673 * symtab.c: Same.
1674 * target-descriptions.c: Same.
1675 * target-float.c: Same.
1676 * thread.c: Same.
1677 * utils.c: Same.
1678 * valops.c: Same.
1679 * valprint.c: Same.
1680 * value.c: Same.
1681 * varobj.c: Same.
1682 * windows-nat.c: Same.
1683 * xcoffread.c: Same.
1684 * xstormy16-tdep.c: Same.
1685 * xtensa-tdep.c: Same.
1686
c5adaa19
TT
16872019-10-17 Tom Tromey <tromey@adacore.com>
1688
1689 * configure: Rebuild.
1690 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1691 in AC_CONFIG_FILES invocation.
1692 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1693 new-style config.status invocation.
1694
405feb71
TV
16952019-10-17 Tom de Vries <tdevries@suse.de>
1696
1697 * arm-nbsd-nat.c: Fix typos in comments.
1698 * arm-tdep.c: Same.
1699 * darwin-nat-info.c: Same.
1700 * dwarf2read.c: Same.
1701 * elfread.c: Same.
1702 * event-top.c: Same.
1703 * findvar.c: Same.
1704 * gdbtypes.c: Same.
1705 * hppa-tdep.c: Same.
1706 * i386-tdep.c: Same.
1707 * jit.c: Same.
1708 * main.c: Same.
1709 * mdebugread.c: Same.
1710 * moxie-tdep.c: Same.
1711 * nto-procfs.c: Same.
1712 * osabi.c: Same.
1713 * ppc-linux-tdep.c: Same.
1714 * remote.c: Same.
1715 * riscv-tdep.c: Same.
1716 * s390-tdep.c: Same.
1717 * sh-tdep.c: Same.
1718 * sparc-linux-tdep.c: Same.
1719 * sparc-nat.c: Same.
1720 * stack.c: Same.
1721 * target-descriptions.c: Same.
1722 * top.c: Same.
1723 * varobj.c: Same.
1724
befcd486
TT
17252019-10-16 Tom Tromey <tom@tromey.com>
1726
1727 * objfiles.h (struct objfile) <original_name>: Now const.
1728
17bfe554
CB
17292019-10-16 Christian Biesinger <cbiesinger@google.com>
1730
1731 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1732 pass on to sigsetjmp's second argument.
1733 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1734
950b7495
KS
17352019-10-16 Keith Seitz <keiths@redhat.com>
1736
1737 PR gdb/23567
1738 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1739 sections whose size is greater than the file size.
1740
ff371ec9
JW
17412019-10-16 Jim Wilson <jimw@sifive.com>
1742
1743 * riscv-tdep.c (riscv_gcc_target_options): New.
1744 (riscv_gnu_triplet_regexp): New.
1745 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1746 set_gdbarch_gnu_triplet_regexp.
1747
fec4e896
CB
17482019-10-16 Christian Biesinger <cbiesinger@google.com>
1749
1750 * Makefile.in: Add xml-builtin.h.
1751 * features/feature_to_c.sh: Add an include for xml-builtin.h
1752 to ensure that the compiler checks that the types match.
1753 * xml-builtin.h: New file.
1754 * xml-support.c (fetch_xml_builtin): Add missing const.
1755 * xml-support.h: Remove declaration of xml_builtins.
1756
d10eccaa
TV
17572019-10-16 Tom de Vries <tdevries@suse.de>
1758
1759 PR tdep/25096
1760 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1761 (amd64_classify_aggregate): ... here.
1762 (amd64_classify_aggregate_field): Handled fiels of nested structs
1763 recursively.
1764
745ff14e
TV
17652019-10-16 Tom de Vries <tdevries@suse.de>
1766
1767 PR tdep/24104
1768 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1769 that handles 'theclass'.
1770
791b7405
AB
17712019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1772
1773 * linespec.c (decode_digits_ordinary): Update comment.
1774 * make-target-delegates: No longer need to handle VEC case.
1775 * memrange.c (normalize_mem_ranges): Update comment.
1776 * namespace.c (add_using_directive): Update comment.
1777 * objc-lang.c (uniquify_strings): Update comment.
1778 * ppc-linux-nat.c (struct thread_points): Update comment.
1779 * probe.h (find_probes_in_objfile): Update comment.
1780 * target.h (enum flash_preserve_mode): Update comment.
1781 * varobj.c (varobj_restrict_range): Update comment.
1782 * varobj.h (varobj_list_children): Update comment.
1783
0dc32745
AB
17842019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1785
1786 * Makefile.in: Remove references to vec.h and vec.c.
1787 * aarch64-tdep.c: No longer include vec.h.
1788 * ada-lang.c: Likewise.
1789 * ada-lang.h: Likewise.
1790 * arm-tdep.c: Likewise.
1791 * ax.h: Likewise.
1792 * breakpoint.h: Likewise.
1793 * charset.c: Likewise.
1794 * cp-support.h: Likewise.
1795 * dtrace-probe.c: Likewise.
1796 * dwarf2read.c: Likewise.
1797 * extension.h: Likewise.
1798 * gdb_bfd.c: Likewise.
1799 * gdbsupport/gdb_vecs.h: Likewise.
1800 * gdbsupport/vec.c: Remove.
1801 * gdbsupport/vec.h: Remove.
1802 * gdbthread.h: Likewise.
1803 * guile/scm-type.c: Likewise.
1804 * inline-frame.c: Likewise.
1805 * machoread.c: Likewise.
1806 * memattr.c: Likewise.
1807 * memrange.h: Likewise.
1808 * namespace.h: Likewise.
1809 * nat/linux-btrace.h: Likewise.
1810 * osdata.c: Likewise.
1811 * parser-defs.h: Likewise.
1812 * progspace.h: Likewise.
1813 * python/py-type.c: Likewise.
1814 * record-btrace.c: Likewise.
1815 * rust-exp.y: Likewise.
1816 * solib-target.c: Likewise.
1817 * stap-probe.c: Likewise.
1818 * target-descriptions.c: Likewise.
1819 * target-memory.c: Likewise.
1820 * target.h: Likewise.
1821 * varobj.c: Likewise.
1822 * varobj.h: Likewise.
1823 * xml-support.h: Likewise.
1824
ae640021
AB
18252019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1826
1827 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1828 Update for new std::vector based implementation.
1829 (process_psymtab_comp_unit_reader): Likewise.
1830 (scan_partial_symbols): Likewise.
1831 (recursively_compute_inclusions): Likewise.
1832 (compute_compunit_symtab_includes): Likewise.
1833 (process_imported_unit_die): Likewise.
1834 (queue_and_load_dwo_tu): Likewise.
1835 (follow_die_sig_1): Likewise.
1836 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1837 (typedef dwarf2_per_cu_ptr): Remove.
1838 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1839 function.
1840 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1841 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1842 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1843 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1844 std::vector.
1845
55dfc88f
TT
18462019-10-15 Tom Tromey <tromey@adacore.com>
1847
1848 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1849 TID.
1850
96b49c5e
TT
18512019-10-15 Tom Tromey <tromey@adacore.com>
1852
1853 * windows-nat.c (windows_nat_target::fetch_registers)
1854 (windows_nat_target::store_registers): Rename "pid" to "tid".
1855
953cff56
TT
18562019-10-15 Tom Tromey <tromey@adacore.com>
1857
1858 * gdbarch.h, gdbarch.c: Rebuild.
1859 * gdbarch.sh (gcc_target_options): Change return type to
1860 std::string.
1861 * compile/compile.c (get_args): Update.
1862 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1863 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1864 std::string.
1865 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1866 std::string.
1867 * arch-utils.c (default_gcc_target_options): Return std::string.
1868 * arch-utils.h (default_gcc_target_options): Return std::string.
1869 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1870
81e6b8eb
CB
18712019-10-15 Christian Biesinger <cbiesinger@google.com>
1872
1873 * breakpoint.c (breakpoint_chain): Make static.
1874 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1875 of accessing breakpoint_chain.
1876
95da600f
CB
18772019-10-15 Christian Biesinger <cbiesinger@google.com>
1878
1879 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1880 to a gdb::function_view and return value to bool.
1881 * breakpoint.h (iterate_over_breakpoints): Likewise.
1882 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1883 (pop_dummy_frame): Update.
1884 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1885 (gdbscm_breakpoints): Update.
1886 * python/py-breakpoint.c (build_bp_list): Update.
1887 (gdbpy_breakpoints): Update.
1888 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1889 Update.
1890 (bpfinishpy_handle_stop): Update.
1891 (bpfinishpy_handle_exit): Update.
1892 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1893 (svr4_update_solib_event_breakpoints): Update.
1894
ba18312d
AA
18952019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1896
1897 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1898 when unwrapping single-field structs.
1899
6acc1a0b
SM
19002019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1901
1902 * dwarf2read.c: Remove includes.
1903
284782de
SM
19042019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1905
1906 * ui-out.c (ui_out::call_do_message): Silence
1907 -Wformat-nonliteral warning.
1908
073bbbb0
SM
19092019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1910
1911 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1912 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1913 include: readline/tilde.h.
1914
7b9a15e1
CB
19152019-10-12 Christian Biesinger <cbiesinger@google.com>
1916
1917 * remote.c (remote_target::get_trace_status): Remove declaration of
1918 trace_regblock_size.
1919
cc8dee1f
CB
19202019-10-12 Christian Biesinger <cbiesinger@google.com>
1921
1922 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1923 (show_user): Remove declaration of cmdlist.
1924 * cli/cli-cmds.h (max_user_call_depth): Declare.
1925 * cli/cli-script.c (execute_user_command): Remove declaration
1926 of max_user_call_depth.
1927
a83d4ef6
JW
19282019-10-11 Jim Wilson <jimw@sifive.com>
1929
5f93c5a6
JW
1930 * gdbsupport/print-utils.h (pulongest): Fix comment.
1931 (plongest): Likewise.
1932 (phex): Add missing comment, mention leading zeros.
1933 (phex_nz): Add mention of no leading zeros to comment.
1934
a83d4ef6
JW
1935 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1936 plongest instead of unsigned long long cast.
1937
26344e0c
CB
19382019-10-10 Christian Biesinger <cbiesinger@google.com>
1939
1940 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1941 for external_editor_command and gdbtk_test.
1942
c2c440a9
CB
19432019-10-10 Christian Biesinger <cbiesinger@google.com>
1944
1945 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1946 * varobj.c (varobjdebug): Move comment to...
1947 * varobj.h (varobjdebug): ...here, and declare.
1948
a31bff9d
TT
19492019-10-09 Tom Tromey <tom@tromey.com>
1950
1951 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1952 erase_data_content.
1953
7523da63
TT
19542019-10-09 Tom Tromey <tom@tromey.com>
1955
1956 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1957 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1958 * tui/tui-command.c (tui_cmd_window::resize)
1959 (tui_refresh_cmd_win): Update.
1960 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1961 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1962 * tui/tui-data.c (~tui_gen_win_info): Remove.
1963 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1964 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1965 (tui_redisplay_readline, tui_mld_flush)
1966 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1967 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1968 (tui_data_window::erase_data_content)
1969 (tui_data_item_window::rerender)
1970 (tui_data_item_window::refresh_window): Update.
1971 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1972 (box_win, tui_gen_win_info::make_window)
1973 (tui_gen_win_info::make_visible): Update.
1974 (tui_delete_win): Remove.
1975 * tui/tui-winsource.c
1976 (tui_source_window_base::do_erase_source_content): Update.
1977 (tui_show_source_line, tui_source_window_base::update_tab_width)
1978 (tui_source_window_base::update_exec_info): Update.
1979 * tui/tui-data.h (struct curses_deleter): New.
1980 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1981 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1982
a7798e7f
TT
19832019-10-09 Tom Tromey <tom@tromey.com>
1984
1985 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1986
5c45899e
TT
19872019-10-09 Tom Tromey <tom@tromey.com>
1988
1989 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
1990 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
1991
6d7fd9aa
TT
19922019-10-09 Tom Tromey <tom@tromey.com>
1993
1994 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
1995 window height directly.
1996 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
1997 declare.
1998 * tui/tui-layout.c (tui_default_win_height): Remove.
1999 (tui_default_win_viewport_height): Remove.
2000
d2dd1084
TT
20012019-10-09 Tom Tromey <tom@tromey.com>
2002
2003 * tui/tui.h: Remove comments.
2004
cff32449
TV
20052019-10-09 Tom de Vries <tdevries@suse.de>
2006
2007 * python/lib/gdb/printer/bound_registers.py: Use
2008 '^builtin_type_bound128' as regexp argument for
2009 add_builtin_pretty_printer.
2010
6a25e8a2
CB
20112019-10-09 Christian Biesinger <cbiesinger@google.com>
2012
2013 * guile/guile.c (guile_extension_script_ops): Remove forward
2014 declaration and mark as static.
2015 (guile_script_ops): Likewise.
2016 (extension_language_guile): Move further down in the file so
2017 it can reference the definitions for guile_{extension_,}script_ops.
2018
6d9d6da4
AA
20192019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2020
2021 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2022 except SORTL, DFLTCC, and KDSA.
2023
3abea05d
TT
20242019-10-08 Tom Tromey <tromey@adacore.com>
2025
2026 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2027 (struct safe_symbol_file_add_args): Remove.
2028
dde996e2
TT
20292019-10-08 Tom Tromey <tromey@adacore.com>
2030
2031 * windows-nat.c: Don't include buildsym-legacy.h.
2032
cd6fdaa1
TT
20332019-10-08 Tom Tromey <tromey@adacore.com>
2034
2035 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2036
79bb1944
CB
20372019-10-08 Christian Biesinger <cbiesinger@google.com>
2038
2039 * gdbtypes.c (overload_debug): Move comment to header.
2040 * gdbtypes.h (overload_debug): Declare.
2041 * valops.c: Remove declaration of overload_debug, instead
2042 include gdbtypes.h.
2043
34916edc
CB
20442019-10-08 Christian Biesinger <cbiesinger@google.com>
2045
2046 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2047 through _().
2048 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2049 move comment...
2050 * language.h (lang_frame_mismatch_warn): ... here. Also add
2051 declaration.
2052 * top.c (lang_frame_mismatch_warn): Remove declaration.
2053 (check_frame_language_change): Pass lang_frame_mismatch_warn
2054 through _().
2055
bad5c026
CB
20562019-10-07 Christian Biesinger <cbiesinger@google.com>
2057
2058 * c-lang.h (vtbl_ptr_name): Declare.
2059 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2060 it from the header.
2061 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2062
51f1fdc3
CB
20632019-10-07 Christian Biesinger <cbiesinger@google.com>
2064
2065 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2066 gdb_static_assert.
2067
30d1f018
WP
20682019-10-07 Weimin Pan <weimin.pan@oracle.com>
2069
606813d5
WP
2070 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2071 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
2072 * ctfread.c: New file.
2073 * ctfread.h: New file.
2074 * elfread.c: Include ctfread.h.
2075 (struct elfinfo text_p): New member ctfsect.
2076 (elf_locate_sections): Mark CTF section.
2077 (elf_symfile_read): Call elfctf_build_psymtabs.
2078 * Makefile.in (LIBCTF): Add.
2079 (CLIBS): Use it.
2080 (CDEPS): Likewise.
2081 (DIST): Add ctfread.c.
606813d5
WP
2082
20832019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2084
2085 * ctfread.c (struct nextfield): Renamed to ...
2086 (struct ctf_nextfield): ... this.
2087 (struct field_info): Renamed to ...
2088 (strut ctf_field_info): ... this.
2089 (attach_fields_to_type): Update for renamed structures.
2090 (ctf_add_member_cb): Likewise.
2091 (ctf_add_enum_member_cb): Likewise.
2092 (process_struct_members): Likewise.
2093 (process_enum_type): Likewise.
30d1f018 2094
518fe38c
WP
20952019-10-07 Weimin Pan <weimin.pan@oracle.com>
2096
2097 * tracectf.h: Rename, was ctf.h.
2098 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2099 * tracefile.c: Likewise.
2100 * tracepoint.c: Remove unused include ctf.h.
2101 * mi/mi-main.c: Likewise.
2102 * Makefile.in Replace ctf.c with tracectf.c.
2103
225f296a
JB
21042019-10-06 Joel Brobecker <brobecker@adacore.com>
2105
2106 * version.in: Change version number to "9.0.50.DATE-git".
2107
77c2dba3
TT
21082019-10-03 Tom Tromey <tom@tromey.com>
2109
2110 PR rust/24976:
2111 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2112
179aed7f
AB
21132019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2114
2115 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2116 cp_search_name_hash.
2117 * NEWS: Add entry about nested function support.
2118
0a4b0913
AB
21192019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2120 Andrew Burgess <andrew.burgess@embecosm.com>
2121
2122 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2123 for nested static variables when searchin VAR_DOMAIN.
2124 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2125 global scope, update comment.
2126 (add_partial_subprogram): Call add_partial_subprogram recursively
2127 for nested subroutines when processinng Fortran.
2128 (load_partial_dies): Process the child entities of a subprogram
2129 when processing Fortran.
2130 (partial_die_parent_scope): Handle building scope
2131 for Fortran nested functions.
2132 (process_die): Record that nested functions have a scope.
2133 (new_symbol): Always record Fortran subprograms on the global
2134 symbol list.
2135 (determine_prefix): How to build the prefix for Fortran
2136 subprograms.
2137
d8c06f22
AB
21382019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2139
2140 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2141 have just sent the thread a SIGSTOP and are waiting for it to
2142 arrive.
2143
a8b3b8e9
AB
21442019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2145
2146 * btrace.c (btrace_add_pc): Remove whitespace before the template
2147 parameter in 'std::vector <...>'.
2148 (parse_xml_btrace_block): Likewise.
2149 (btrace_maint_decode_pt): Likewise.
2150 (btrace_maint_update_packets): Likewise.
2151 (btrace_maint_print_packets): Likewise.
2152 * btrace.h (struct btrace_maint_info): Likewise.
2153 * dwarf2read.c (struct type_unit_group): Likewise.
2154 (build_type_psymtabs_reader): Likewise.
2155 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2156 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2157 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2158
4d825eab
TV
21592019-10-03 Tom de Vries <tdevries@suse.de>
2160
2161 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2162 the first line of the help text for set/show style metadata.
2163
80fd2826
TT
21642019-10-02 Tom Tromey <tromey@adacore.com>
2165
2166 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2167 * gdbsupport/common-inferior.c: New file.
2168 * infcmd.c (startup_with_shell): Don't define.
2169 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2170 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2171 * inferior.h (startup_with_shell): Don't declare.
2172
70054538
CB
21732019-10-02 Christian Biesinger <cbiesinger@google.com>
2174
2175 * gdbsupport/gdb_assert.h: Include errors.h.
2176 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2177
37f6a7f4
TT
21782019-10-02 Tom Tromey <tromey@adacore.com>
2179
2180 * NEWS: Add $_ada_exception entry.
2181 * ada-lang.c (struct ada_catchpoint): Add constructor.
2182 <m_kind>: New member.
2183 (allocate_location_exception, re_set_exception): Remove
2184 "ex" parameter.
2185 (should_stop_exception): Compute $_ada_exception.
2186 (check_status_exception, print_it_exception)
2187 (print_one_exception, print_mention_exception): Remove
2188 "ex" parameter.
2189 (allocate_location_catch_exception, re_set_catch_exception)
2190 (check_status_exception, print_it_catch_exception)
2191 (print_one_catch_exception, print_mention_catch_exception)
2192 (print_recreate_catch_exception)
2193 (allocate_location_catch_exception_unhandled)
2194 (re_set_catch_exception_unhandled)
2195 (check_status_exception, print_it_catch_exception_unhandled)
2196 (print_one_catch_exception_unhandled)
2197 (print_mention_catch_exception_unhandled)
2198 (print_recreate_catch_exception_unhandled)
2199 (allocate_location_catch_assert, re_set_catch_assert)
2200 (check_status_assert, print_it_catch_assert)
2201 (print_one_catch_assert, print_mention_catch_assert)
2202 (print_recreate_catch_assert)
2203 (allocate_location_catch_handlers, re_set_catch_handlers)
2204 (check_status_handlers, print_it_catch_handlers)
2205 (print_one_catch_handlers, print_mention_catch_handlers)
2206 (print_recreate_catch_handlers): Remove.
2207 (create_ada_exception_catchpoint): Update.
2208 (initialize_ada_catchpoint_ops): Update.
2209
fccf9de1
TT
22102019-10-02 Tom Tromey <tromey@adacore.com>
2211
2212 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2213 (create_excep_cond_exprs): Simplify exception string computation.
2214 (ada_exception_catchpoint_cond_string): Likewise.
2215
4b610737
TT
22162019-10-02 Tom Tromey <tromey@adacore.com>
2217
2218 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2219 * ada-lang.c (lesseq_defined_than): Handle
2220 LOC_STATIC.
2221 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2222 parameter.
2223 (dwarf2_has_info): Likewise.
2224 (new_symbol): Set maybe_copied on symbol when
2225 appropriate.
2226 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2227 parameter.
2228 <can_copy>: New member.
2229 * elfread.c (record_minimal_symbol): Set maybe_copied
2230 on symbol when appropriate.
2231 (elf_symfile_read): Update call to dwarf2_has_info.
2232 * minsyms.c (lookup_minimal_symbol_linkage): New
2233 function.
2234 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2235 * symtab.c (get_symbol_address, get_msymbol_address):
2236 New functions.
2237 * symtab.h (get_symbol_address, get_msymbol_address):
2238 Declare.
2239 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2240 maybe_copied.
2241 (struct symbol, struct minimal_symbol) <maybe_copied>:
2242 New member.
2243
1dd58850
TT
22442019-10-02 Tom Tromey <tromey@adacore.com>
2245
2246 * source.c (struct current_source_location): New.
2247 (current_source_key): New global.
2248 (current_source_symtab, current_source_line)
2249 (current_source_pspace): Remove.
2250 (get_source_location): New function.
2251 (get_current_source_symtab_and_line)
2252 (set_default_source_symtab_and_line)
2253 (set_current_source_symtab_and_line)
2254 (clear_current_source_symtab_and_line, select_source_symtab)
2255 (info_source_command, print_source_lines_base)
2256 (info_line_command, search_command_helper, _initialize_source):
2257 Update.
2258
5c281dbb
TT
22592019-10-02 Tom Tromey <tromey@adacore.com>
2260
2261 * source.c (select_source_symtab): Don't call
2262 decode_line_with_current_source.
2263
d3d32391
AB
22642019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2265
2266 * symtab.c (lookup_global_symbol): Search global block.
2267
38583298
TT
22682019-10-02 Tom Tromey <tromey@adacore.com>
2269
2270 * coffread.c (process_coff_symbol): Update.
2271 * dwarf2read.c (var_decode_location, new_symbol): Update.
2272 * mdebugread.c (parse_symbol): Update.
2273 * objfiles.c (relocate_one_symbol): Update.
2274 * stabsread.c (define_symbol, fix_common_block)
2275 (scan_file_globals): Update.
2276 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2277 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2278 * xcoffread.c (process_xcoff_symbol): Update.
2279
9344c18f
AA
22802019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2281
2282 * MAINTAINERS: Update my email address.
2283
df07e2c7
AB
22842019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2285
2286 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2287 std::vector.
2288 (build_type_psymtabs_reader): Update for std::vector.
2289 (build_type_psymtab_dependencies): Likewise.
2290 * dwarf2read.h: Remove use of DEF_VEC_P.
2291 (typedef sig_type_ptr): Delete.
2292
554ac434
AB
22932019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2294
2295 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2296 to std::vector.
2297 (btrace_maint_decode_pt): Likewise, and move allocation of the
2298 vector outside of the loop.
2299 (btrace_maint_update_packets): Update to handle change from VEC to
2300 std::vector.
2301 (btrace_maint_print_packets): Likewise.
2302 (maint_info_btrace_cmd): Likewise.
2303 * btrace.h: Remove use of DEF_VEC_O.
2304 (typedef btrace_pt_packet_s): Delete.
2305 (struct btrace_maint_info) <packets>: Change fromm VEC to
2306 std::vector.
2307 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2308
46f29a9a
AB
23092019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2310
2311 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2312 make accesses into the vector constant references.
2313 (btrace_add_pc): Update for std::vector.
2314 (btrace_stitch_bts): Likewise.
2315 (parse_xml_btrace_block): Likewise.
2316 (btrace_maint_update_packets): Likewise.
2317 (btrace_maint_print_packets): Likewise.
2318 (maint_info_btrace_cmd): Likewise.
2319 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2320 std::vector.
2321 (btrace_data::empty): Likewise.
2322 (btrace_data_append): Likewise.
2323 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2324 (typedef btrace_block_s): Delete.
2325 (struct btrace_block): Add constructor.
2326 (struct btrace_data_bts) <blocks>: Change to std::vector.
2327 * nat/linux-btrace.c (perf_event_read_bts): Update for
2328 std::vector.
2329 (linux_read_bts): Likewise.
2330
d770d56f
TT
23312019-10-01 Tom Tromey <tom@tromey.com>
2332
2333 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2334
9d636d67
TT
23352019-10-01 Tom Tromey <tom@tromey.com>
2336
2337 * stack.c (print_frame, info_frame_command_core): Use
2338 styled_string.
2339 * linux-thread-db.c (try_thread_db_load_1)
2340 (try_thread_db_load_from_pdir_1): Use styled_string.
2341 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2342 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2343 (maybe_print_unsupported_script_warning)
2344 (maybe_print_script_not_found_warning): Use styled_string.
2345 * ada-lang.c (user_select_syms): Use styled_string.
2346
7f6aba03
TT
23472019-10-01 Tom Tromey <tom@tromey.com>
2348
2349 * p-lang.c (pascal_printstr): Use metadata style.
2350 * value.c (show_convenience): Use metadata style.
2351 * valprint.c (valprint_check_validity, val_print_optimized_out)
2352 (val_print_not_saved, val_print_unavailable)
2353 (val_print_invalid_address, generic_val_print, val_print)
2354 (value_check_printable, val_print_array_elements): Use metadata
2355 style.
2356 * ui-out.h (class ui_out) <field_fmt>: New overload.
2357 <do_field_fmt>: Add style parameter.
2358 * ui-out.c (ui_out::field_fmt): New overload.
2359 * typeprint.c (type_print_unknown_return_type)
2360 (val_print_not_allocated, val_print_not_associated): Use metadata
2361 style.
2362 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2363 parameter.
2364 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2365 * tracepoint.c (tvariables_info_1): Use metadata style.
2366 * stack.c (print_frame_arg, print_frame_info, print_frame)
2367 (info_frame_command_core): Use metadata style.
2368 * skip.c (info_skip_command): Use metadata style.
2369 * rust-lang.c (rust_print_enum): Use metadata style.
2370 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2371 metadata style.
2372 * python/py-framefilter.c (py_print_single_arg): Use metadata
2373 style.
2374 * printcmd.c (do_one_display, print_variable_and_value): Use
2375 metadata style.
2376 * p-valprint.c (pascal_val_print)
2377 (pascal_object_print_value_fields): Use metadata style.
2378 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2379 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2380 parameter.
2381 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2382 * m2-valprint.c (m2_print_long_set): Use metadata style.
2383 * m2-typeprint.c (m2_print_type): Use metadata style.
2384 * infcmd.c (print_return_value_1): Use metadata style.
2385 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2386 * f-valprint.c (info_common_command_for_block): Use metadata
2387 style.
2388 * f-typeprint.c (f_type_print_base): Use metadata style.
2389 * expprint.c (print_subexp_standard): Use metadata style.
2390 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2391 * cli/cli-style.h (class cli_style_option): Add constructor.
2392 (metadata_style): Declare.
2393 * cli/cli-style.c (metadata_style): New global.
2394 (_initialize_cli_style): Register metadata style.
2395 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2396 parameter.
2397 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2398 * c-typeprint.c (c_type_print_base_struct_union)
2399 (c_type_print_base_1): Use metadata style.
2400 * breakpoint.c (watchpoint_value_print)
2401 (print_one_breakpoint_location): Use metadata style.
2402 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2403 style.
2404 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2405 style.
2406 * ada-valprint.c (val_print_packed_array_elements, printstr)
2407 (print_field_values, ada_val_print_ref, ada_val_print): Use
2408 metadata style.
2409 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2410 style.
2411 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2412 style.
2413 * ada-lang.c (user_select_syms): Use metadata style.
2414
14309bb6
TT
24152019-10-01 Tom Tromey <tom@tromey.com>
2416
2417 * cli/cli-cmds.c (pwd_command): Style output.
2418
6a831f06
PA
24192019-10-01 Pedro Alves <palves@redhat.com>
2420 Tom Tromey <tom@tromey.com>
2421
2422 * symtab.c (print_symbol_info): Use %ps.
2423 (print_msymbol_info): Use %ps.
2424 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2425 * printcmd.c (print_variable_and_value): Use %ps.
2426 * macrocmd.c (show_pp_source_pos): Use %ps.
2427 * infrun.c (print_exited_reason): Use ui_out::message.
2428 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2429 (describe_other_breakpoints): Use ui_out::message and new
2430 formats.
2431 (say_where): Use new formats.
2432 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2433 and new formats.
2434
2a3c1174
PA
24352019-10-01 Pedro Alves <palves@redhat.com>
2436 Tom Tromey <tom@tromey.com>
2437
2438 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2439 (test_gdb_formats): New function.
2440 (run_tests): Call it.
2441 (test_format_specifier): Update.
2442 * utils.h (fputs_filtered): Update comment.
2443 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2444 (fputs_styled_unfiltered): Declare.
2445 * utils.c (fputs_styled_unfiltered): New function.
2446 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2447 (vfprintf_filtered): Update.
2448 (vfprintf_unfiltered, vprintf_filtered): Update.
2449 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2450 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2451 disallow_ui_out_field>: New constants.
2452 (enum class field_kind): New.
2453 (struct base_field_s, struct signed_field_s): New.
2454 (signed_field): New function.
2455 (struct string_field_s): New.
2456 (string_field): New function.
2457 (struct styled_string_s): New.
2458 (styled_string): New function.
2459 (class ui_out) <message>: Add comment.
2460 <vmessage, call_do_message>: New methods.
2461 <do_message>: Add style parameter.
2462 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2463 methods.
2464 (ui_out::message): Rewrite.
2465 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2466 parameter.
2467 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2468 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2469 gdb_extensions parameter.
2470 (class format_piece): Add parameter to constructor.
2471 (n_int_args): New field.
2472 * gdbsupport/format.c (format_pieces::format_pieces): Add
2473 gdb_extensions parameter. Handle '*'.
2474 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2475 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2476 vfprintf_styled_no_gdbfmt.
2477 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2478 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2479 unfiltered output.
2480 * ui-style.h (struct ui_file_style) <ptr>: New method.
2481
0dfe5bfb
TT
24822019-10-01 Tom Tromey <tom@tromey.com>
2483
2484 * unittests/format_pieces-selftests.c: Update. Add final format.
2485 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2486 empty literal pieces.
2487
e43b10e1
TT
24882019-10-01 Tom Tromey <tom@tromey.com>
2489
2490 * ui-out.h (enum class ui_out_style_kind): Remove.
2491 (class ui_out) <field_string, field_stsream, do_field_string>:
2492 Change type of "style".
2493 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2494 (ui_out::field_string): Update.
2495 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2496 of "style".
2497 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2498 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2499 * stack.c (print_frame_arg, print_frame_info, print_frame):
2500 Update.
2501 * source.c (print_source_lines_base): Update.
2502 * solib.c (info_sharedlibrary_command): Update.
2503 * skip.c (info_skip_command): Update.
2504 * record-btrace.c (btrace_call_history_src_line)
2505 (btrace_call_history): Update.
2506 * python/py-framefilter.c (py_print_frame): Update.
2507 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2508 "style".
2509 * mi/mi-out.c (mi_ui_out::do_table_header)
2510 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2511 (mi_ui_out::do_field_string): Update.
2512 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2513 Update.
2514 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2515 "style".
2516 * cli-out.c (cli_ui_out::do_table_header)
2517 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2518 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2519 (cli_ui_out::do_field_fmt): Update.
2520 * breakpoint.c (print_breakpoint_location): Update.
2521 (update_static_tracepoint): Update.
2522
cd7c32c3
PW
25232019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2524
2525 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2526 conversion of gdb_datadir.
2527 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2528 remove not needed c_str ().
2529
8fe0f950
AT
25302019-09-30 Ali Tamur <tamur@google.com>
2531
2532 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2533 (dwarf2_string_attr): Likewise.
2534
5f48f8f3
AT
25352019-09-30 Ali Tamur <tamur@google.com>
2536
2537 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2538 (process_full_type_unit): Likewise.
2539 (dump_die_shallow): Likewise.
2540 (cu_debug_loc_section): Likewise.
2541
6fb08628
CB
25422019-09-28 Christian Biesinger <cbiesinger@google.com>
2543
2544 * minsyms.c (compare_minimal_symbols): Rename to...
2545 (minimal_symbol_is_less_than): ...this, and adjust to STL
2546 conventions (return bool, take arguments as references)
2547 (minimal_symbol_reader::install): Call std::sort instead
2548 of qsort.
2549
c7ee338a
CB
25502019-09-29 Christian Biesinger <cbiesinger@google.com>
2551
2552 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2553 hash and why.
2554 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2555 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2556
703a86c2
SM
25572019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2558
2559 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2560 * psympriv.h (add_psymbol_to_list): Move comment here and update
2561 it.
2562
0df0352a
TV
25632019-09-29 Tom de Vries <tdevries@suse.de>
2564
2565 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2566 Use $tmpdir/$(basename "$output_file").dwz instead of
2567 "${output_file}.dwz".
2568
ad75efa6
SM
25692019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2570
2571 PR gdb/25045
2572 * hppa-linux-nat.c: Include gdbarch.h.
2573
ececd218
CB
25742019-09-26 Christian Biesinger <cbiesinger@google.com>
2575
2576 * blockframe.c (find_pc_partial_function): Change return type to bool.
2577 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2578 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2579 (stub_gnu_ifunc_resolve_name): Likewise.
2580 * symtab.c (compare_filenames_for_search): Likewise.
2581 (compare_glob_filenames_for_search): Likewise.
2582 (matching_obj_sections): Likewise.
2583 (symbol_matches_domain): Likewise.
2584 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2585 (find_line_pc): Change return type to bool.
2586 (find_line_pc_range): Likewise.
2587 (producer_is_realview): Likewise.
2588 * symtab.h (symbol_matches_domain): Likewise.
2589 (find_pc_partial_function): Likewise.
2590 (find_pc_line_pc_range): Likewise.
2591 (in_gnu_ifunc_stub): Likewise.
2592 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2593 (find_line_pc): Likewise.
2594 (find_line_pc_range): Likewise.
2595 (matching_obj_sections): Likewise.
2596 (find_line_symtab): Change out parameter to bool.
2597 (producer_is_realview): Change return type to bool.
2598 (compare_filenames_for_search): Likewise.
2599 (compare_glob_filenames_for_search): Likewise.
2600
27a900b8
TT
26012019-09-26 Tom Tromey <tom@tromey.com>
2602
2603 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2604 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2605 * gdb_usleep.h: Remove.
2606 * gdb_usleep.c: Remove.
2607 * utils.c: Don't include gdb_usleep.h.
2608
5d63b30a
TT
26092019-09-26 Tom Tromey <tromey@adacore.com>
2610
2611 * python/py-type.c (type_to_type_object): Call check_typedef
2612 for stub types.
2613
12904d37
TT
26142019-09-26 Tom Tromey <tom@tromey.com>
2615
2616 * utils.h (initialize_utils): Don't declare.
2617 * top.c (gdb_init): Don't call initialize_utils.
2618 * utils.c (initialize_utils): Remove. Move contents...
2619 (_initialize_utils): ... here.
2620
858f25f0
TT
26212019-09-25 Tom Tromey <tom@tromey.com>
2622
2623 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2624 * utils.h (make_hex_string): Don't declare.
2625 * utils.c (make_hex_string): Remove.
2626
3d435220
TV
26272019-09-24 Tom de Vries <tdevries@suse.de>
2628
2629 PR gdb/23815
2630 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2631 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2632
ddd44b70
DD
26332019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2634
2635 * NEWS: Mention new simulator port for PRU.
2636
f945dedf
CB
26372019-09-23 Christian Biesinger <cbiesinger@google.com>
2638
2639 * ada-exp.y (write_object_remaining): Update.
2640 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2641 and eliminate the static buffer.
2642 (ada_decode_symbol): Update.
2643 (ada_la_decode): Update.
2644 (ada_sniff_from_mangled_name): Update.
2645 (is_valid_name_for_wild_match): Update.
2646 (ada_lookup_name_info::matches): Update and simplify.
2647 (name_matches_regex): Update.
2648 (ada_add_global_exceptions): Update.
2649 * ada-lang.h (ada_decode): Update signature.
2650 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2651 * dwarf-index-write.c (debug_names::insert): Update.
2652
7ab78ccb
SM
26532019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2654
2655 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2656 formatting.
2657
9252448b
SM
26582019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2659
2660 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2661 Change "nonzero" to "true" in documentation.
2662
626ca2c0
CB
26632019-09-20 Christian Biesinger <cbiesinger@google.com>
2664
2665 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2666 (_initialize_darwin_solib): Don't set
2667 darwin_so_ops.lookup_lib_global_symbol.
2668 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2669 set_gdbarch_iterate_over_objfiles_in_search_order.
2670 (elf_lookup_lib_symbol): Rename to...
2671 (svr4_iterate_over_objfiles_in_search_order): this, and update
2672 to iterate semantics.
2673 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2674 * solib.c (solib_global_lookup): Remove.
2675 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2676 (solib_global_lookup): Remove.
2677 * symtab.c (lookup_global_or_static_symbol): Remove call to
2678 solib_global_lookup.
2679
5a3a0d63
JB
26802019-09-20 Joel Brobecker <brobecker@adacore.com>
2681
2682 * NEWS: Move entries about default MI version now being
2683 version 3, and about the GDB/MI fix for multi-location
2684 breakpoints to the "since GDB 8.3" section.
2685
ffea1427
JB
26862019-09-20 Joel Brobecker <brobecker@adacore.com>
2687
2688 GDB 8.3.1 released.
2689
abf516c6
UW
26902019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2691
2692 * NEWS: Mention that Cell/B.E. debugging support was removed.
2693 * MAINTAINERS: Remove spu target.
2694
2695 * config/djgpp/fnchange.lst: Remove entries for removed files.
2696
2697 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2698 spu-multiarch.o, and spu-tdep.o.
2699 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2700 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2701 spu-multiarch.c, and spu-tdep.c.
2702 * spu-linux-nat.c: Remove file.
2703 * spu-multiarch.c: Remove file.
2704 * spu-tdep.c: Remove file.
2705 * spu-tdep.h: Remove file.
2706 * solib-spu.c: Remove file.
2707 * solib-spu.h: Remove file.
2708
2709 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2710 * configure.nat (spu-linux): Remove.
2711 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2712 solib-multiarch.o from gdb_target_obs.
2713 (spu*-*-*): Remove.
2714
2715 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2716 feature flag.
2717 (ppc_linux_no_features): Update.
2718 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2719 Cell/B.E. support.
2720 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2721 (tdesc_powerpc_cell64l): Likewise.
2722 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2723 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2724 Cell/B.E. support.
2725 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2726 Do not include "features/rs6000/powerpc-cell32l.c" or
2727 "features/rs6000/powerpc-cell64l.c".
2728 (ppc_linux_spu_section): Remove.
2729 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2730 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2731 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2732 (ppc_linux_spe_context_lookup): Remove.
2733 (ppc_linux_spe_context_inferior_created): Remove.
2734 (ppc_linux_spe_context_solib_loaded): Remove.
2735 (ppc_linux_spe_context_solib_unloaded): Remove.
2736 (ppc_linux_spe_context): Remove.
2737 (struct ppu2spu_cache): Remove.
2738 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2739 (struct ppu2spu_data): Remove.
2740 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2741 ppu2spu_unwind): Remove.
2742 (ppc_linux_init_abi): Remove Cell/B.E. support.
2743 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2744
2745 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2746 (rs6000/powerpc-cell64l-expedite): Likewise
2747 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2748 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2749 rs6000/powerpc-cell64l.xml.
2750 * features/rs6000/powerpc-cell32l.xml: Remove.
2751 * features/rs6000/powerpc-cell64l.xml: Likewise.
2752 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2753 * features/rs6000/powerpc-cell64l.c: Likewise.
2754 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2755 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2756 * regformats/reg-spu.dat: Remove.
2757
2758 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2759 * corelow.c (struct spuid_list): Remove.
2760 (add_to_spuid_list): Remove.
2761 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2762 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2763 (remote_protocol_features): Remove associated entries.
2764 (_initialize_remote): No longer initialize them.
2765 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2766 * linux-nat.c (SPUFS_MAGIC): Remove.
2767 (linux_proc_xfer_spu): Remove.
2768 (spu_enumerate_spu_ids): Remove.
2769 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2770 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2771 (linux_make_corefile_notes): No longer call it.
2772
2773 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2774 (cooked_write_test): Likewise.
2775
78e8cb91
TT
27762019-09-20 Tom Tromey <tom@tromey.com>
2777
2778 * NEWS: Mention case-sensitivity of TUI commands.
2779 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2780 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2781 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2782
f074b67e
TT
27832019-09-20 Tom Tromey <tom@tromey.com>
2784
2785 * tui/tui-source.c (tui_source_window::set_contents): Use
2786 make_unique_xstrdup.
2787 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2788 make_unique_xstrdup.
2789
63c4bf19
TT
27902019-09-20 Tom Tromey <tom@tromey.com>
2791
2792 * tui/tui-data.c: Remove separator comments.
2793 * tui/tui-layout.c: Remove separator comments.
2794 * tui/tui-win.c: Remove separator comments.
2795 * tui/tui-wingeneral.c: Remove separator comments.
2796
43df9b2f
TT
27972019-09-20 Tom Tromey <tom@tromey.com>
2798
2799 * tui/tui.h (strcat_to_buf): Don't declare.
2800 * tui/tui.c (strcat_to_buf): Remove.
2801
7226433c
TT
28022019-09-20 Tom Tromey <tom@tromey.com>
2803
2804 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2805 from "fullname".
2806 * tui/tui-source.c (tui_source_window::set_contents)
2807 (tui_source_window::location_matches_p)
2808 (tui_source_window::maybe_update): Update.
2809
80df3337
TT
28102019-09-20 Tom Tromey <tom@tromey.com>
2811
2812 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2813 Update.
2814 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2815 prefix.
2816 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2817 (tui_data_window::line_from_reg_element_no)
2818 (tui_data_window::first_reg_element_no_inline)
2819 (tui_data_window::show_registers)
2820 (tui_data_window::show_register_group)
2821 (tui_data_window::display_registers_from)
2822 (tui_data_window::display_registers_from_line)
2823 (tui_data_window::first_data_item_displayed)
2824 (tui_data_window::delete_data_content_windows)
2825 (tui_data_window::erase_data_content)
2826 (tui_data_window::do_scroll_vertical)
2827 (tui_data_window::refresh_window)
2828 (tui_data_window::check_register_values): Update.
2829
9923f347
TT
28302019-09-20 Tom Tromey <tom@tromey.com>
2831
2832 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2833 (struct tui_locator_window) <full_name, proc_name>: Now
2834 std::string.
2835 * tui/tui-stack.c (tui_locator_window::make_status_line)
2836 (tui_locator_window::set_locator_fullname)
2837 (tui_locator_window::set_locator_info): Update.
2838 * tui/tui-source.c (tui_source_window::set_contents)
2839 (tui_source_window::showing_source_p): Update.
2840
b76251ab
TT
28412019-09-20 Tom Tromey <tom@tromey.com>
2842
2843 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2844 Don't call tui_locator_win_info_ptr.
2845
0891be08
TT
28462019-09-20 Tom Tromey <tom@tromey.com>
2847
2848 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2849
1b935acf
TT
28502019-09-20 Tom Tromey <tom@tromey.com>
2851
2852 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2853 height for locator.
2854 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2855 * tui/tui-layout.c (show_source_disasm_command, show_data)
2856 (show_source_or_disasm_and_command): Use 1 as height for locator.
2857
9abd8a65
TT
28582019-09-20 Tom Tromey <tom@tromey.com>
2859
2860 * tui/tui.c (tui_enable): Update.
2861 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2862 Update.
2863 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2864 Update.
2865 * tui/tui-data.c (win_resized): Now bool.
2866 (tui_win_resized): Return bool.
2867 (tui_set_win_resized_to): Accept a bool.
2868
b5457826
TT
28692019-09-20 Tom Tromey <tom@tromey.com>
2870
2871 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2872 Change type of "refresh_values_only".
2873 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2874 type of "refresh_values_only".
2875
6b915f7d
TT
28762019-09-20 Tom Tromey <tom@tromey.com>
2877
2878 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2879 std::string.
2880 (tui_disassemble): Add "pos" parameter.
2881 (tui_disasm_window::set_contents): Simplify.
2882
2ad52f6f
TT
28832019-09-20 Tom Tromey <tom@tromey.com>
2884
2885 * tui/tui-winsource.h (struct tui_source_window_base)
2886 <show_source_content>: Now private.
2887 * tui/tui-winsource.c
2888 (tui_source_window_base::show_source_content): Don't handle empty
2889 content case.
2890
b3b1bde6
TT
28912019-09-20 Tom Tromey <tom@tromey.com>
2892
2893 * tui/tui-layout.c (show_source_disasm_command)
2894 (show_source_or_disasm_and_command): Don't call
2895 show_source_content.
2896
71a25ed2
TT
28972019-09-20 Tom Tromey <tom@tromey.com>
2898
2899 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2900 Declare.
2901 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2902 from tui_make_status_line.
2903 (tui_locator_window::rerender): Update.
2904
f8532154
TT
29052019-09-20 Tom Tromey <tom@tromey.com>
2906
2907 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2908 (tui_locator_window::rerender): Update.
2909
2d81b349
TT
29102019-09-20 Tom Tromey <tom@tromey.com>
2911
2912 * tui/tui-winsource.h (struct tui_source_window_base)
2913 <~tui_source_window_base>: Don't declare.
2914 <fullname>: Remove.
2915 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2916 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2917 member.
2918 * tui/tui-source.c (tui_source_window::set_contents): Update.
2919 (tui_source_window::location_matches_p)
2920 (tui_source_window::maybe_update): Update.
2921
f14bec58
TT
29222019-09-20 Tom Tromey <tom@tromey.com>
2923
2924 * tui/tui-winsource.h (~tui_source_element): Remove.
2925 (tui_source_element): Update.
2926 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2927 * tui/tui-winsource.c (tui_show_source_line): Update.
2928 * tui/tui-source.c (tui_source_window::set_contents): Update.
2929 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2930
78d5933a
TT
29312019-09-20 Tom Tromey <tom@tromey.com>
2932
2933 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2934 declare.
2935 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2936 tui_clear_source_windows_detail.
2937 * tui/tui-winsource.h (struct tui_source_window_base)
2938 <clear_detail>: Don't declare.
2939 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2940 Remove.
2941 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2942
d4207696
TT
29432019-09-20 Tom Tromey <tromey@adacore.com>
2944
2945 PR ada/24919:
2946 * block.c (contained_in): Fix final return value.
2947
00f93c44
AM
29482019-09-20 Alan Modra <amodra@gmail.com>
2949
2950 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2951 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2952 (read_indirect_string_from_dwz): Use bfd accessor.
2953 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2954 * machoread.c (macho_symfile_read_all_oso): Likewise.
2955 * solib.c (solib_bfd_open): Likewise.
2956
e4153ae6
CB
29572019-09-19 Christian Biesinger <cbiesinger@google.com>
2958
2959 * eval.c: Move declaration of overload_resolution to...
2960 * value.h: ...here.
2961
c7ae7675
CB
29622019-09-19 Christian Biesinger <cbiesinger@google.com>
2963
2964 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2965 * arm-linux-tdep.c: Likewise.
2966 * arm-nbsd-nat.c: Likewise.
2967 * arm-tdep.h: Declare arm_apcs_32.
2968 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2969
e86f08d2
CB
29702019-09-19 Christian Biesinger <cbiesinger@google.com>
2971
2972 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2973 * dwarf2read.h: Declare dwarf_always_disassemble.
2974
f64e2f40
TV
29752019-09-19 Tom de Vries <tdevries@suse.de>
2976
2977 PR gdb/25009
2978 * source-cache.c (source_cache::ensure): Catch exception thrown during
2979 construction of the highlighter.
2980
fd361982
AM
29812019-09-18 Alan Modra <amodra@gmail.com>
2982
2983 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2984 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2985 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2986 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2987 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2988 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2989 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
2990 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
2991 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
2992 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
2993 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
2994 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
2995 * solib-spu.c, * solib-svr4.c, * solib-target.c,
2996 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
2997 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
2998 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
2999 * mi/mi-interp.c: Update throughout for bfd section macro and
3000 function changes.
3001 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3002 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3003
11061048
TT
30042019-09-18 Tom Tromey <tom@tromey.com>
3005
3006 * NEWS: Add entry.
3007 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3008 call rl_initialize.
3009 (tui_enable): Do not call rl_initialize.
3010
7a27b85f
CG
30112019-09-18 Christian Groessler <chris@groessler.org>
3012
3013 * alpha-linux-nat.c: Include gdbarch.h.
3014
f64eea3a
SM
30152019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3016
3017 * ui-file.c: Include cli/cli-style.h.
3018 (term_cli_styling): Remove cli_styling declaration.
3019
e6f7f6d1
AM
30202019-09-18 Alan Modra <amodra@gmail.com>
3021
3022 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3023 to bfd_asymbol_section.
3024
1d38e9d1
AM
30252019-09-18 Alan Modra <amodra@gmail.com>
3026
3027 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3028 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3029 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3030
90d92a63
AM
30312019-09-18 Alan Modra <amodra@gmail.com>
3032
3033 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3034 * spu-linux-nat.c (spu_bfd_open): Likewise.
3035
a3d181d2
CB
30362019-09-18 Christian Biesinger <cbiesinger@google.com>
3037
3038 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3039 to bool to match definition in dwarf2read.c.
3040
491144b5
CB
30412019-09-17 Christian Biesinger <cbiesinger@google.com>
3042
3043 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3044 (print_signatures): Likewise.
3045 (trust_pad_over_xvs): Likewise.
3046 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3047 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3048 * arm-linux-nat.c (arm_apcs_32): Likewise.
3049 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3050 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3051 * arm-tdep.c (arm_debug): Likewise.
3052 (arm_apcs_32): Likewise.
3053 * auto-load.c (debug_auto_load): Likewise.
3054 (auto_load_gdb_scripts): Likewise.
3055 (global_auto_load): Likewise.
3056 (auto_load_local_gdbinit): Likewise.
3057 (auto_load_local_gdbinit_loaded): Likewise.
3058 * auto-load.h (global_auto_load): Likewise.
3059 (auto_load_local_gdbinit): Likewise.
3060 (auto_load_local_gdbinit_loaded): Likewise.
3061 * breakpoint.c (disconnected_dprintf): Likewise.
3062 (breakpoint_proceeded): Likewise.
3063 (automatic_hardware_breakpoints): Likewise.
3064 (always_inserted_mode): Likewise.
3065 (target_exact_watchpoints): Likewise.
3066 (_initialize_breakpoint): Update.
3067 * breakpoint.h (target_exact_watchpoints): Change to bool.
3068 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3069 * cli/cli-cmds.c (trace_commands): Likewise.
3070 * cli/cli-cmds.h (trace_commands): Likewise.
3071 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3072 to bool*.
3073 * cli/cli-logging.c (logging_overwrite): Change to bool.
3074 (logging_redirect): Likewise.
3075 (debug_redirect): Likewise.
3076 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3077 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3078 to bool.
3079 <boolean_option_def>: Update.
3080 (struct flag_option_def): Change default type of Context to bool
3081 from int.
3082 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3083 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3084 (get_setshow_command_value_string): Likewise.
3085 * cli/cli-style.c (cli_styling): Change to bool.
3086 (source_styling): Likewise.
3087 * cli/cli-style.h (source_styling): Likewise.
3088 (cli_styling): Likewise.
3089 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3090 to bool.
3091 * command.h (var_types): Update comment.
3092 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3093 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3094 bool.
3095 (debug_compile_cplus_scopes): Likewise.
3096 * compile/compile-internal.h (compile_debug): Likewise.
3097 * compile/compile.c (compile_debug): Likewise.
3098 (struct compile_options) <raw>: Likewise.
3099 * cp-support.c (catch_demangler_crashes): Likewise.
3100 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3101 (usr_cmd_cris_dwarf2_cfi): Likewise.
3102 * csky-tdep.c (csky_debug): Likewise.
3103 * darwin-nat.c (enable_mach_exceptions): Likewise.
3104 * dcache.c (dcache_enabled_p): Likewise.
3105 * defs.h (info_verbose): Likewise.
3106 * demangle.c (demangle): Likewise.
3107 (asm_demangle): Likewise.
3108 * dwarf-index-cache.c (debug_index_cache): Likewise.
3109 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3110 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3111 * dwarf2read.c (check_physname): Likewise.
3112 (use_deprecated_index_sections): Likewise.
3113 (dwarf_always_disassemble): Likewise.
3114 * eval.c (overload_resolution): Likewise.
3115 * event-top.c (set_editing_cmd_var): Likewise.
3116 (exec_done_display_p): Likewise.
3117 * event-top.h (set_editing_cmd_var): Likewise.
3118 (exec_done_display_p): Likewise.
3119 * exec.c (write_files): Likewise.
3120 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3121 (debug_fbsd_nat): Likewise.
3122 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3123 Likewise.
3124 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3125 <backtrace_past_entry> Likewise.
3126 * gdb-demangle.h (demangle): Likewise.
3127 (asm_demangle): Likewise.
3128 * gdb_bfd.c (bfd_sharing): Likewise.
3129 * gdbcore.h (write_files): Likewise.
3130 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3131 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3132 * gdbthread.h (print_thread_events): Likewise.
3133 * gdbtypes.c (opaque_type_resolution): Likewise.
3134 (strict_type_checking): Likewise.
3135 * gnu-nat.c (gnu_debug_flag): Likewise.
3136 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3137 * guile/scm-param.c (pascm_variable): Add boolval.
3138 (add_setshow_generic): Update.
3139 (pascm_param_value): Update.
3140 (pascm_set_param_value_x): Update.
3141 * hppa-tdep.c (hppa_debug): Change to bool..
3142 * infcall.c (may_call_functions_p): Likewise.
3143 (coerce_float_to_double_p): Likewise.
3144 (unwind_on_signal_p): Likewise.
3145 (unwind_on_terminating_exception_p): Likewise.
3146 * infcmd.c (startup_with_shell): Likewise.
3147 * inferior.c (print_inferior_events): Likewise.
3148 * inferior.h (startup_with_shell): Likewise.
3149 (print_inferior_events): Likewise.
3150 * infrun.c (step_stop_if_no_debug): Likewise.
3151 (detach_fork): Likewise.
3152 (debug_displaced): Likewise.
3153 (disable_randomization): Likewise.
3154 (non_stop): Likewise.
3155 (non_stop_1): Likewise.
3156 (observer_mode): Likewise.
3157 (observer_mode_1): Likewise.
3158 (set_observer_mode): Update.
3159 (sched_multi): Change to bool.
3160 * infrun.h (debug_displaced): Likewise.
3161 (sched_multi): Likewise.
3162 (step_stop_if_no_debug): Likewise.
3163 (non_stop): Likewise.
3164 (disable_randomization): Likewise.
3165 * linux-tdep.c (use_coredump_filter): Likewise.
3166 (dump_excluded_mappings): Likewise.
3167 * linux-thread-db.c (auto_load_thread_db): Likewise.
3168 (check_thread_db_on_load): Likewise.
3169 * main.c (captured_main_1): Update.
3170 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3171 xx2_opt, boolean_opt>: Change to bool.
3172 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3173 * maint.c (maintenance_profile_p): Likewise.
3174 (per_command_time): Likewise.
3175 (per_command_space): Likewise.
3176 (per_command_symtab): Likewise.
3177 * memattr.c (inaccessible_by_default): Likewise.
3178 * mi/mi-main.c (mi_async): Likewise.
3179 (mi_async_1): Likewise.
3180 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3181 * nat/fork-inferior.h (startup_with_shell): Likewise.
3182 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3183 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3184 * nios2-tdep.c (nios2_debug): Likewise.
3185 * or1k-tdep.c (or1k_debug): Likewise.
3186 * parse.c (parser_debug): Likewise.
3187 * parser-defs.h (parser_debug): Likewise.
3188 * printcmd.c (print_symbol_filename): Likewise.
3189 * proc-api.c (procfs_trace): Likewise.
3190 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3191 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3192 (set_parameter_value): Update.
3193 (add_setshow_generic): Update.
3194 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3195 to bool*.
3196 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3197 int*.
3198 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3199 * record-btrace.c (record_btrace_target::store_registers): Update.
3200 * record-full.c (record_full_memory_query): Change to bool.
3201 (record_full_stop_at_limit): Likewise.
3202 * record-full.h (record_full_memory_query): Likewise.
3203 * remote-notif.c (notif_debug): Likewise.
3204 * remote-notif.h (notif_debug): Likewise.
3205 * remote.c (use_range_stepping): Likewise.
3206 (interrupt_on_connect): Likewise.
3207 (remote_break): Likewise.
3208 * ser-tcp.c (tcp_auto_retry): Likewise.
3209 * ser-unix.c (serial_hwflow): Likewise.
3210 * skip.c (debug_skip): Likewise.
3211 * solib-aix.c (solib_aix_debug): Likewise.
3212 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3213 (spu_auto_flush_cache_p): Likewise.
3214 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3215 Likewise.
3216 (struct info_print_options) <quiet>: Likewise.
3217 * symfile-debug.c (debug_symfile): Likewise.
3218 * symfile.c (auto_solib_add): Likewise.
3219 (separate_debug_file_debug): Likewise.
3220 * symfile.h (auto_solib_add): Likewise.
3221 (separate_debug_file_debug): Likewise.
3222 * symtab.c (basenames_may_differ): Likewise.
3223 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3224 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3225 (struct info_types_options) <quiet>: Likewise.
3226 * symtab.h (demangle): Likewise.
3227 (basenames_may_differ): Likewise.
3228 * target-dcache.c (stack_cache_enabled_1): Likewise.
3229 (code_cache_enabled_1): Likewise.
3230 * target.c (trust_readonly): Likewise.
3231 (may_write_registers): Likewise.
3232 (may_write_memory): Likewise.
3233 (may_insert_breakpoints): Likewise.
3234 (may_insert_tracepoints): Likewise.
3235 (may_insert_fast_tracepoints): Likewise.
3236 (may_stop): Likewise.
3237 (auto_connect_native_target): Likewise.
3238 (target_stop_and_wait): Update.
3239 (target_async_permitted): Change to bool.
3240 (target_async_permitted_1): Likewise.
3241 (may_write_registers_1): Likewise.
3242 (may_write_memory_1): Likewise.
3243 (may_insert_breakpoints_1): Likewise.
3244 (may_insert_tracepoints_1): Likewise.
3245 (may_insert_fast_tracepoints_1): Likewise.
3246 (may_stop_1): Likewise.
3247 * target.h (target_async_permitted): Likewise.
3248 (may_write_registers): Likewise.
3249 (may_write_memory): Likewise.
3250 (may_insert_breakpoints): Likewise.
3251 (may_insert_tracepoints): Likewise.
3252 (may_insert_fast_tracepoints): Likewise.
3253 (may_stop): Likewise.
3254 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3255 (make_thread_apply_all_options_def_group): Change argument from int*
3256 to bool*.
3257 (thread_apply_all_command): Update.
3258 (print_thread_events): Change to bool.
3259 * top.c (confirm): Likewise.
3260 (command_editing_p): Likewise.
3261 (history_expansion_p): Likewise.
3262 (write_history_p): Likewise.
3263 (info_verbose): Likewise.
3264 * top.h (confirm): Likewise.
3265 (history_expansion_p): Likewise.
3266 * tracepoint.c (disconnected_tracing): Likewise.
3267 (circular_trace_buffer): Likewise.
3268 * typeprint.c (print_methods): Likewise.
3269 (print_typedefs): Likewise.
3270 * utils.c (debug_timestamp): Likewise.
3271 (sevenbit_strings): Likewise.
3272 (pagination_enabled): Likewise.
3273 * utils.h (sevenbit_strings): Likewise.
3274 (pagination_enabled): Likewise.
3275 * valops.c (overload_resolution): Likewise.
3276 * valprint.h (struct value_print_options) <prettyformat_arrays,
3277 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3278 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3279 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3280 Likewise.
3281 * windows-nat.c (new_console): Likewise.
3282 (cygwin_exceptions): Likewise.
3283 (new_group): Likewise.
3284 (debug_exec): Likewise.
3285 (debug_events): Likewise.
3286 (debug_memory): Likewise.
3287 (debug_exceptions): Likewise.
3288 (useshell): Likewise.
3289 * windows-tdep.c (maint_display_all_tib): Likewise.
3290 * xml-support.c (debug_xml): Likewise.
3291
f1b620e9
MG
32922019-09-17 Mike Gulick <mgulick@mathworks.com>
3293
3294 * source.c (prepare_path_for_appending): New function.
3295 (openp): Make use of new function.
3296 (find_and_open_source): Search for the compilation directory and
3297 source file as a relative path beneath the directory search path.
3298
67f3ed6a
AB
32992019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3300
3301 * source-cache.c (source_cache::get_line_charpos): Catch
3302 exceptions and return false, this matches the behaviour documented
3303 in the header file.
3304
74332189
JB
33052019-09-17 Joel Brobecker <brobecker@adacore.com>
3306
3307 * ada-tasks.c (info_task): Remove quoting of the task's name.
3308
f2f24aa9
CB
33092019-09-16 Christian Biesinger <cbiesinger@google.com>
3310
3311 * symfile.c (auto_solib_add): Replace comment with a reference
3312 to the header file.
3313
6a062a93
CB
33142019-09-14 Christian Biesinger <cbiesinger@google.com>
3315
3316 * NEWS: Mention that gdb can now be compiled with Python 3
3317 on Windows.
3318
ec6c8338
AB
33192019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3320
3321 * maint.c (maint_print_section_data::maint_print_section_data):
3322 Force use of 'float log10 (float)' by casting the argument to
3323 float.
3324
aa17805f
AB
33252019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3326
3327 * maint.c: Add 'cmath' include.
3328 (struct maint_print_section_data): New structure.
3329 (print_section_index): New function.
3330 (print_bfd_section_info): Add header comment, small whitespace
3331 cleanup, and update to call new print_section_index function.
3332 (print_objfile_section_info): Likewise.
3333 (maint_obj_section_from_bfd_section): New function.
3334 (print_bfd_section_info_maybe_relocated): New function.
3335 (maintenance_info_sections): Add header comment, always use
3336 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3337
3dd9bb46
AB
33382019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3339
3340 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3341 inner scope, add check that the objfile has psymtabs before
3342 checking psymtabs_addrmap.
3343 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3344
4993045d
PW
33452019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3346
3347 * NEWS: Announce that Ada task names are now shown at more places,
3348 and between quotes (except in info task output).
3349 * gdb/ada-tasks.c (task_to_str): New function.
3350 (display_current_task_id): Call task_to_str.
3351 (task_command_1): Likewise.
3352 (print_ada_task_info): In non-mi mode, Properly align headers and data
3353 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3354
7a289707
RO
33552019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3356
3357 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3358 prstatus.pr_lwp.pr_info instead of making it up.
3359
f2aec7f6
CB
33602019-09-11 Christian Biesinger <cbiesinger@google.com>
3361
3362 * auto-load.c (auto_load_expand_dir_vars): Update.
3363 * defs.h (gdb_datadir): Change to std::string.
3364 (python_libdir): Likewise.
3365 (relocate_gdb_directory): Change return type to std::string.
3366 * guile/guile.c (gdbscm_data_directory): Update.
3367 (initialize_scheme_side): Update.
3368 * jit.c (jit_reader_dir): Change to std::string.
3369 (jit_reader_load_command): Update.
3370 * main.c (gdb_datadir): Change to std::string.
3371 (python_libdir): Likewise.
3372 (set_gdb_data_directory): Update.
3373 (relocate_path): Change to return std::string.
3374 (relocate_gdb_directory): Change to return std::string.
3375 (relocate_gdbinit_path_maybe_in_datadir): Update.
3376 (captured_main_1): Update.
3377 * python/python.c (do_start_initialization): Update.
3378 * top.c (show_gdb_datadir): Update.
3379 * xml-syscall.c (xml_init_syscalls_info): Update.
3380 (init_syscalls_info): Update.
3381
9224a013
CB
33822019-09-11 Christian Biesinger <cbiesinger@google.com>
3383
3384 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3385 out of get_init_files.
3386 (get_init_files): Update.
3387
f48cd836
CB
33882019-09-11 Christian Biesinger <cbiesinger@google.com>
3389
3390 * main.c (get_init_files): Change to use std::string.
3391 (captured_main_1): Update.
3392 (print_gdb_help): Update.
3393
9cab7ecd
AT
33942019-09-11 Ali Tamur <tamur@google.com>
3395
3396 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3397 implementation.
3398
67547d89
CB
33992019-09-11 Christian Biesinger <cbiesinger@google.com>
3400
3401 * dbxread.c (read_dbx_symtab): Update.
3402 * dwarf2read.c (load_partial_dies): Update.
3403 * mdebugread.c (parse_partial_symbols): Update.
3404 (handle_psymbol_enumerators): Update.
3405 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3406 * psymtab.c (add_psymbol_to_bcache): Likewise.
3407 (add_psymbol_to_list): Likewise.
3408 * symtab.c (symbol_set_names): Likewise.
3409 * symtab.h (symbol_set_names): Likewise.
3410 * xcoffread.c (scan_xcoff_symtab): Update.
3411
64b2d4a0
TT
34122019-09-11 Tom Tromey <tom@tromey.com>
3413
3414 * symfile-mem.c (symbol_file_add_from_memory): Use
3415 bfd_set_filename.
3416 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3417 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3418
3b00ef10
TT
34192019-09-10 Tom Tromey <tromey@adacore.com>
3420
3421 * dwarf-index-write.c (write_psymbols): Extend error message.
3422 (debug_names::insert): Add Ada code.
3423 (debug_names::write_psymbols): Remove Ada check.
3424 (debug_names) <m_string_obstack>: New member.
3425 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3426 (gdb_index_symbol_name_matcher::matches): Remove.
3427 (mapped_index_base::find_name_components_bounds): Add "lang"
3428 parameter.
3429 (mapped_index_base::build_name_components): Also split names
3430 according to Ada syntax.
3431 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3432 type of "match_callback".
3433 (check_match, check_find_bounds_finds)
3434 (dw2_expand_symtabs_matching): Update.
3435 (dw2_debug_names_iterator): Add new constructor.
3436 (dw2_debug_names_map_matching_symbols): New function.
3437 (dw2_debug_names_expand_symtabs_matching): Update.
3438 (dwarf2_debug_names_functions): Use
3439 dw2_debug_names_map_matching_symbols.
3440
aa391654
TT
34412019-09-10 Tom Tromey <tromey@adacore.com>
3442
3443 * dwarf2read.c (dw2_get_file_names_reader): Add the
3444 CU's file name to the results.
3445
b054970d
TT
34462019-09-10 Tom Tromey <tromey@adacore.com>
3447
3448 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3449 map_matching_symbols. Update.
3450 * dwarf2read.c (dw2_map_matching_symbols): Update.
3451 * psymtab.c (match_partial_symbol): Change type; update.
3452 (psym_map_matching_symbols): Likewise.
3453 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3454 type; update.
3455 * symfile.h (struct quick_symbol_functions)
3456 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3457 Remove "match".
3458
6a3dbf1b
TT
34592019-09-10 Tom Tromey <tromey@adacore.com>
3460
3461 * psymtab.c (map_block): Remove.
3462 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3463 * symtab.c (iterate_over_symbols_terminated): New function.
3464 * symtab.c (iterate_over_symbols_terminated): Declare.
3465
6969f124
TT
34662019-09-10 Tom Tromey <tromey@adacore.com>
3467
3468 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3469 * language.h (struct language_defn) <la_iterate_over_symbols>:
3470 Return bool.
3471 * symtab.c (iterate_over_symbols): Return bool.
3472 * symtab.h (iterate_over_symbols): Return bool.
3473
199b4314
TT
34742019-09-10 Tom Tromey <tromey@adacore.com>
3475
3476 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3477 (add_nonlocal_symbols): Update.
3478 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3479 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3480 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3481 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3482 Change type of "callback". Remove "data".
3483
a084a2a6
AT
3484
34852019-09-09 Ali Tamur <tamur@google.com>
3486
3487 * dwarf2read.c (comp_unit_head): Update comment.
3488 (dwarf2_dwo_name): New function declaration.
3489 (dwarf_unit_type_name): New function declaration.
3490 (read_comp_unit_head): Add support for new compilation units,
3491 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3492 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3493 (currently named as "signature") in their header. Also clarify error
3494 messages.
3495 (lookup_dwo_id): New function. Returns the dwo id of the given
3496 compile unit.
3497 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3498 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3499 functions.
3500 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3501 (dwarf2_dwo_name): Get the dwo name if present.
3502 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3503 purposes.
3504
25a2915e
TT
35052019-09-09 Tom Tromey <tom@tromey.com>
3506
3507 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3508
e4df0874
PW
35092019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3510
3511 * python/python.c (do_start_initialization): Make progname_copy static,
3512 to avoid a leak report.
3513
8634b462
TT
35142019-09-08 Tom Tromey <tom@tromey.com>
3515
3516 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3517
c7f839cb
SM
35182019-09-07 Simon Marchi <simon.marchi@efficios.com>
3519
3520 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3521 Change type to gdb::optional<block_enum>.
3522 (dw2_symtab_iter_init): Change block_index parameter type
3523 to gdb::optional<block_enum>.
3524 (dw2_lookup_symbol): Change block_index parameter
3525 type to block_enum.c
3526 (dw2_debug_names_lookup_symbol): Likewise.
3527 * psymtab.c (psym_lookup_symbol): Likewise.
3528 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3529 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3530 Likewise.
3531
ead0e69a
CB
35322019-09-06 Christian Biesinger <cbiesinger@google.com>
3533
3534 * defs.h (relocate_gdb_directory): Change int to bool in
3535 signature and rename flag to relocatable.
3536 * main.c (relocate_path): Likewise.
3537 (relocate_gdb_directory): Likewise.
3538
b16c44de
AM
35392019-09-06 Alan Modra <amodra@gmail.com>
3540
3541 * coffread.c (coff_symfile_read): Constify filename variable.
3542 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3543 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3544 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3545 * solib.c (reload_shared_libraries_1): Likewise.
3546 * symfile.c (reread_symbols): Likewise.
3547 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3548 * solib-darwin.c (darwin_bfd_open): Likewise.
3549 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3550
06ff036e
AB
35512019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3552
3553 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3554 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3555
4e962e74
TT
35562019-09-03 Tom Tromey <tromey@adacore.com>
3557
3558 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3559 types.
3560 (has_negatives): Unbias a range type bound.
3561 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3562 * gdbtypes.c (operator==): Handle new field.
3563 (create_range_type): Add "bias" parameter.
3564 (create_static_range_type, resolve_dynamic_range): Update.
3565 * gdbtypes.h (struct range_bounds) <bias>: New member.
3566 (create_range_type): Add bias parameter.
3567 * printcmd.c (print_scalar_formatted): Unbias range types.
3568 * value.c (unpack_long): Unbias range types.
3569 (pack_long): Bias range types.
3570
d90b8f26
AH
35712019-09-02 Alan Hayward <alan.hayward@arm.com>
3572
3573 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3574 probe arguments.
3575
fe01123e
AH
35762019-09-02 Alan Hayward <alan.hayward@arm.com>
3577
3578 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3579 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3580 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3581 (compile_probe_arg): Likewise.
3582 * probe.h (get_argument_count): Likewise.
3583 * solib-svr4.c (solib_event_probe_action): Likewise.
3584 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3585
e661ef01
AH
35862019-09-02 Alan Hayward <alan.hayward@arm.com>
3587
3588 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3589 code to here...
3590 (svr4_create_solib_event_breakpoints): ...from here.
3591
47a536d9
SDJ
35922019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3593
3594 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3595 suffix from warning message.
3596
d6a00eba
TT
35972019-08-30 Tom Tromey <tom@tromey.com>
3598
3599 * tui/tui-winsource.h (struct tui_source_window_base)
3600 <refresh_all>: Don't declare.
3601 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3602 Remove.
3603 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3604 tui_show_locator_content.
3605 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3606 declare.
3607 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3608 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3609 declare.
3610
55b2657b
TT
36112019-08-30 Tom Tromey <tom@tromey.com>
3612
3613 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3614
12a8555a
TT
36152019-08-30 Tom Tromey <tom@tromey.com>
3616
3617 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3618 Remove unnecessary forward declarations.
3619
900ac242
TT
36202019-08-30 Tom Tromey <tom@tromey.com>
3621
3622 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3623 rerender.
3624 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3625 tui_show_locator_content.
3626
99ab33fb
TT
36272019-08-30 Tom Tromey <tom@tromey.com>
3628
3629 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3630 (tui_locator_window::rerender): Rewrite using body of previous
3631 tui_show_locator_content.
3632
e594a5d1
TT
36332019-08-30 Tom Tromey <tom@tromey.com>
3634
3635 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3636 set_locator_fullname>: New methods.
3637 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3638 Rename from tui_set_locator_fullname.
3639 (tui_locator_window::set_locator_info): Rename from
3640 tui_set_locator_info. Return bool.
3641 (tui_update_locator_fullname, tui_show_frame_info): Update.
3642
715bb467
TT
36432019-08-30 Tom Tromey <tom@tromey.com>
3644
3645 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3646
772f3f03
TT
36472019-08-30 Tom Tromey <tom@tromey.com>
3648
3649 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3650 call touchwin.
3651
108e13ab
TT
36522019-08-30 Tom Tromey <tom@tromey.com>
3653
3654 * tui/tui-wingeneral.c (box_win): Assume win_info and
3655 win_info->handle cannot be NULL.
3656
cdaa6eb4
TT
36572019-08-30 Tom Tromey <tom@tromey.com>
3658
3659 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3660 refresh_window>: Declare.
3661 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3662 resize.
3663 (tui_data_item_window::rerender): Rename from
3664 tui_display_register.
3665 (tui_data_item_window::refresh_window): New method.
3666 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3667 no-op.
3668
89df7f90
TT
36692019-08-30 Tom Tromey <tom@tromey.com>
3670
3671 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3672 regs_column_count, current_group>: Move later. Now private.
3673 <get_current_group>: New method.
3674 * tui/tui-regs.c (tui_reg_command): Update.
3675 * tui/tui-layout.c (tui_set_layout): Update.
3676
1bf2866a
TT
36772019-08-30 Tom Tromey <tom@tromey.com>
3678
3679 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3680 (tui_data_window::rerender): Don't call
3681 check_and_display_highlight_if_needed.
3682 (tui_data_window::refresh_all): Remove call to
3683 erase_data_content.
3684
0670413d
TT
36852019-08-30 Tom Tromey <tom@tromey.com>
3686
3687 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3688 (tui_data_window::display_registers_from)
3689 (tui_data_window::display_reg_element_at_line)
3690 (tui_data_window::display_registers_from_line): Remove checks of
3691 "empty".
3692
18bb55c7
TT
36932019-08-30 Tom Tromey <tom@tromey.com>
3694
3695 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3696 Don't declare.
3697 * tui/tui-regs.c (tui_data_window::show_registers): Call
3698 rerender.
3699 (tui_data_window::rerender): Rename from display_all_data.
3700 (tui_data_window::rerender): Remove old implementation.
3701
1f6d2f10
TT
37022019-08-30 Tom Tromey <tom@tromey.com>
3703
3704 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3705 text.
3706 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3707
16d01f9c
BW
37082019-08-29 Bernhard Wodok <barto@gmx.net>
3709 Sergio Durigan Junior <sergiodj@redhat.com>
3710
3711 PR win32/24284
3712 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3713
d8f27c60
AB
37142019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3715
3716 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3717 when searching for types.
3718
1f20c35e
AB
37192019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3720
3721 * f-lang.c (f_language_defn): Use f_print_typedef.
3722 * f-lang.h (f_print_typedef): Declare.
3723 * f-typeprint.c (f_print_typedef): Define.
3724
550105b7
CB
37252019-08-27 Christian Biesinger <cbiesinger@google.com>
3726
3727 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3728
4acfdd20
AB
37292019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3730
3731 * cli/cli-utils.c (info_print_options_defs): Delete.
3732 (make_info_print_options_def_group): Delete.
3733 (extract_info_print_options): Delete.
3734 (info_print_command_completer): Delete.
3735 (info_print_args_help): Add extra parameter, and optionally
3736 include text about -n flag.
3737 * cli/cli-utils.h (struct info_print_options): Delete.
3738 (extract_info_print_options): Delete declaration.
3739 (info_print_command_completer): Delete declaration.
3740 (info_print_args_help): Add extra parameter, extend header
3741 comment.
3742 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3743 search_symbols.
3744 * stack.c (struct info_print_options): New type.
3745 (info_print_options_defs): New file scoped variable.
3746 (make_info_print_options_def_group): New static function.
3747 (info_print_command_completer): New static function.
3748 (info_locals_command): Update to use new local functions.
3749 (info_args_command): Likewise.
3750 (_initialize_stack): Add extra parameter to calls to
3751 info_print_args_help.
3752 * symtab.c (search_symbols): Add extra parameter, use this to
3753 possibly excluse non-debug symbols.
3754 (symtab_symbol_info): Add extra parameter, which is passed on to
3755 search_symbols.
3756 (struct info_print_options): New type.
3757 (info_print_options_defs): New file scoped variable.
3758 (make_info_print_options_def_group): New static function.
3759 (info_print_command_completer): New static function.
3760 (info_variables_command): Update to use local functions, and pass
3761 extra parameter through to symtab_symbol_info.
3762 (info_functions_command): Likewise.
3763 (info_types_command): Pass additional argument through to
3764 symtab_symbol_info.
3765 (rbreak_command): Pass extra argument to search_symbols.
3766 (_initialize_symtab): Add extra arguments for calls to
3767 info_print_args_help, and update help text for 'info variables',
3768 'whereis', and 'info functions' commands.
3769 * symtab.h (search_symbols): Add extra argument to declaration.
3770 * NEWS: Mention new flags.
3771
9aa55206
CB
37722019-08-26 Christian Biesinger <cbiesinger@google.com>
3773
3774 * symtab.c (lookup_static_symbol): Call the new function (and move
3775 it down to be next to lookup_global_symbol).
3776 (struct global_sym_lookup_data): Add block_enum member and rename to...
3777 (struct global_or_static_sym_lookup_data): ...this.
3778 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3779 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3780 (lookup_symbol_global_or_static_iterator_cb): ...this.
3781 (lookup_global_or_static_symbol): New function.
3782 (lookup_global_symbol): Call new function.
3783
5c31b358
TV
37842019-08-26 Tom de Vries <tdevries@suse.de>
3785
3786 PR c++/24852
3787 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3788 when pc_probe.prob == NULL.
3789
23c13d42
SM
37902019-08-25 Simon Marchi <simon.marchi@efficios.com>
3791
3792 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3793 variable symbol_linkage to symbol_linkage_.
3794
beadd3e8
SM
37952019-08-25 Simon Marchi <simon.marchi@efficios.com>
3796
3797 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3798 represent whether the symbol is static, dynamic, or we don't
3799 know.
3800
e3ec872f
YS
38012019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3802
3803 * gdb/rx-tdep.c (rx_register_names): New.
3804 (rx_register_name): Delete.
3805 (rx_psw_type): Delete.
3806 (rx_fpsw_type): Delete.
3807 (rx_register_type): Delete.
3808 (rx_gdbarch_init): Convert target-descriptions.
3809 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3810 * gdb/features/Makefile: Add rx.xml.
3811 * gdb/features/rx.xml: New.
3812 * gdb/features/rx.c: Generated.
3813 * gdb/NEWS: Mention target description support.
3814
d0509ba4
CB
38152019-08-22 Christian Biesinger <cbiesinger@google.com>
3816
3817 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3818 *slot_ptr.
3819
2d41fa11
SDJ
38202019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3821
3822 * configure.ac: Don't check for 'dlfcn.h' (moved to
3823 gdbsupport/common.m4).
3824 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3825 'gdbsupport/'.
3826 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3827 * compile/compile-c-support.c: Include
3828 'gdbsupport/gdb-dlfcn.h'.
3829 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3830 * gdb-dlfcn.c: Move to...
3831 * gdbsupport/gdb-dlfcn.c: ... here.
3832 * gdb-dlfcn.h: Move to...
3833 * gdbsupport/gdb-dlfcn.h: ... here.
3834
de8af808
SL
38352019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3836
3837 * nios2-tdep.c (struct reg_value): Improve comments. Make
3838 the offset field signed.
3839
27204489
CB
38402019-08-22 Christian Biesinger <cbiesinger@google.com>
3841
3842 * python/lib/gdb/__init__.py (_execute_file): New function.
3843 * python/python.c (python_run_simple_file): Call gdb._execute_file
3844 on Windows.
3845
43771869
AB
38462019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3847
3848 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3849 all uses as this was never set to anything but a zero value.
3850
26c957f1
PA
38512019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3852
3853 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3854
c07aae6e
CB
38552019-08-21 Christian Biesinger <cbiesinger@google.com>
3856
3857 * tui/tui-data.h (tui_gen_win_info): Add an =default
3858 move constructor, required by some GCC versions.
3859
3960cb7a
JF
38602019-08-21 Jinke Fan <fanjinke51@yeah.net>
3861
3862 * go32-nat.c (go32_sysinfo): Add hygon_p.
3863
04c72a68
TT
38642019-08-20 Tom Tromey <tom@tromey.com>
3865
3866 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3867 line_from_reg_element_no, first_reg_element_no_inline,
3868 display_all_data, delete_data_content_windows,
3869 erase_data_content>: Now private.
3870
072272ce
TT
38712019-08-20 Tom Tromey <tom@tromey.com>
3872
3873 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3874 (tui_unhighlight_win, tui_highlight_win)
3875 (tui_win_info::make_window): Update.
3876 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3877
973961bd
TT
38782019-08-20 Tom Tromey <tom@tromey.com>
3879
3880 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3881 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3882 (MAX_PID_WIDTH): Move to tui-stack.c.
3883 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3884 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3885 (MAX_PID_WIDTH): Move from tui-data.h.
3886
ab0e1f1a
TT
38872019-08-20 Tom Tromey <tom@tromey.com>
3888
3889 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3890 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3891 (box_win): Update.
3892 (tui_gen_win_info::make_window): Rename from tui_make_window.
3893 (tui_win_info::make_window): New method.
3894 (tui_gen_win_info::make_visible): Update.
3895 * tui/tui-source.c (tui_source_window::set_contents): Update.
3896 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3897 (tui_data_window::display_registers_from): Update.
3898 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3899 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3900 Declare.
3901 <can_box>: Remove.
3902 <title>: Remove.
3903 (struct tui_win_info) <make_window>: Declare.
3904 <can_box>: Now virtual.
3905 <title>: New member.
3906 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3907 * tui/tui-command.c (tui_cmd_window::resize): Update.
3908
100c2bf3
TT
39092019-08-20 Tom Tromey <tom@tromey.com>
3910
3911 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3912 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3913 (tui_data_window::check_register_values): Update.
3914
fa4dc567
TT
39152019-08-20 Tom Tromey <tom@tromey.com>
3916
3917 * tui/tui-regs.h (struct tui_data_window): Use
3918 DISABLE_COPY_AND_ASSIGN.
3919 <regs_content>: Change type, removing unique_ptr.
3920 <tui_data_window>: Add move constructor.
3921 * tui/tui-regs.c (tui_data_window::show_registers)
3922 (tui_data_window::show_register_group)
3923 (tui_data_window::display_registers_from)
3924 (tui_data_window::display_registers_from)
3925 (tui_data_window::first_data_item_displayed)
3926 (tui_data_window::delete_data_content_windows)
3927 (tui_data_window::rerender, tui_data_window::refresh_window)
3928 (tui_data_window::check_register_values): Update.
3929
ca02d7c8
TT
39302019-08-20 Tom Tromey <tom@tromey.com>
3931
3932 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3933 show_register_group>: Declare.
3934 (tui_show_register_group): Don't declare.
3935 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3936 tui_show_registers.
3937 (tui_data_window::show_register_group): Rename from
3938 tui_show_register_group.
3939 (tui_data_window::check_register_values, tui_reg_command):
3940 Update.
3941 * tui/tui-layout.c (tui_set_layout): Update.
3942
63356bfd
TT
39432019-08-20 Tom Tromey <tom@tromey.com>
3944
3945 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3946 Declare.
3947 (tui_check_register_values): Don't declare.
3948 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3949 from tui_check_register_values.
3950 * tui/tui-hooks.c (tui_register_changed): Update.
3951
42cc14a7
TT
39522019-08-20 Tom Tromey <tom@tromey.com>
3953
3954 * tui/tui-regs.c (tui_reg_layout): Move later.
3955 (tui_show_registers): Don't enable TUI mode or change layout.
3956
b9ad3686
TT
39572019-08-20 Tom Tromey <tom@tromey.com>
3958
3959 * tui/tui-regs.h (struct tui_data_item_window)
3960 <~tui_data_item_window>: Remove.
3961 <content>: Now a unique_xmalloc_ptr.
3962 * tui/tui-regs.c (tui_register_format): Return a
3963 unique_xmalloc_ptr.
3964 (tui_get_register): Update.
3965 (~tui_data_item_window): Remove.
3966 (tui_data_window::display_registers_from, tui_display_register):
3967 Update.
3968 * tui/tui-io.h (tui_expand_tabs): Update.
3969 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3970 Remove "col" parameter.
3971
8e114aab
TT
39722019-08-20 Tom Tromey <tom@tromey.com>
3973
3974 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3975 field.
3976 * tui/tui-regs.c (~tui_data_item_window): Update.
3977
1a4f81dd
TT
39782019-08-20 Tom Tromey <tom@tromey.com>
3979
3980 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3981 earlier.
3982
0f8d8876
TT
39832019-08-20 Tom Tromey <tom@tromey.com>
3984
3985 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3986
605dc2c2
TT
39872019-08-20 Tom Tromey <tom@tromey.com>
3988
3989 * tui/tui-source.h (struct tui_source_window): Update.
3990 * tui/tui-regs.c (tui_show_registers): Update.
3991 * tui/tui-disasm.h (struct tui_disasm_window): Update.
3992 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
3993 (NO_REGS_STRING): Remove defines.
3994
aedbe3bb
CM
39952019-08-20 Conrad Meyer <cem@FreeBSD.org>
3996
3997 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
3998 unnecessary thread walk if remote doesn't support the packet.
3999
7ce8f214
TT
40002019-08-19 Tom Tromey <tromey@adacore.com>
4001
4002 * python/py-value.c (value_has_field): Fix indentation.
4003
f21c2bd7
TT
40042019-08-19 Tom Tromey <tromey@adacore.com>
4005
4006 * printcmd.c (do_one_display, info_display_command): Update.
4007 * block.h (contained_in): Return bool. Add allow_nested
4008 parameter.
4009 * block.c (contained_in): Return bool. Add allow_nested
4010 parameter.
4011
d806ea2d
TT
40122019-08-19 Tom Tromey <tom@tromey.com>
4013
4014 * configure: Rebuild.
4015 * configure.ac: Disallow the combination of -static-libstdc++ and
4016 source highlight.
4017 * source-cache.c (get_language_name): Handle rust.
4018 (source_cache::get_source_lines): Ignore highlighting exceptions.
4019
398fdd60
TT
40202019-08-16 Tom Tromey <tom@tromey.com>
4021
4022 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4023 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4024 (struct tui_source_window_base) <make_visible, refresh_window,
4025 resize>: Remove methods.
4026 <execution_info>: Remove field.
4027 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4028 (tui_show_source_line, tui_source_window_base)
4029 (~tui_source_window_base): Update.
4030 (tui_source_window_base::resize)
4031 (tui_source_window_base::make_visible)
4032 (tui_source_window_base::refresh_window): Remove.
4033 (tui_source_window_base::update_exec_info): Update.
4034 * tui/tui-source.c (tui_source_window::set_contents): Update.
4035 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4036
e699d331
TT
40372019-08-16 Tom Tromey <tom@tromey.com>
4038
4039 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4040 deprecated_query_hook.
4041
bb01dbfc
TT
40422019-08-16 Tom Tromey <tom@tromey.com>
4043
4044 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4045 (tui_update_source_windows_with_line): Update.
4046 * tui/tui-source.h (struct tui_source_window)
4047 <show_symtab_source>: Declare.
4048 (tui_show_symtab_source): Don't declare.
4049 * tui/tui-source.c (tui_show_symtab_source): Rename from
4050 tui_show_symtab_source.
4051
81c82c4b
TT
40522019-08-16 Tom Tromey <tom@tromey.com>
4053
4054 * tui/tui-winsource.h (struct tui_source_window_base)
4055 <set_contents>: Declare.
4056 * tui/tui-winsource.c
4057 (tui_source_window_base::update_source_window_as_is): Update.
4058 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4059 Declare.
4060 (tui_set_source_content): Don't declare.
4061 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4062 tui_set_source_content.
4063 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4064 Declare.
4065 (tui_set_disassem_content): Don't declare.
4066 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4067 tui_set_disassem_content.
4068
2ddaf614
TT
40692019-08-16 Tom Tromey <tom@tromey.com>
4070
4071 * tui/tui-winsource.h (struct tui_source_window_base)
4072 <update_breakpoint_info>: Declare.
4073 (tui_update_breakpoint_info): Don't declare.
4074 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4075 (tui_update_all_breakpoint_info): Update.
4076 (tui_source_window_base::update_breakpoint_info): Rename from
4077 tui_update_breakpoint_info.
4078 (tui_source_window_base::update_exec_info): Update.
4079
017f9828
TT
40802019-08-16 Tom Tromey <tom@tromey.com>
4081
4082 * tui/tui-winsource.h (struct tui_source_window_base)
4083 <update_source_window>: Declare.
4084 (tui_update_source_window): Don't declare.
4085 * tui/tui-winsource.c
4086 (tui_source_window_base::update_source_window): Rename from
4087 tui_update_source_window.
4088 (tui_source_window_base::rerender): Update.
4089 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4090 * tui/tui-disasm.c (tui_show_disassem)
4091 (tui_show_disassem_and_update_source)
4092 (tui_disasm_window::maybe_update): Update.
4093
ed8358e9
TT
40942019-08-16 Tom Tromey <tom@tromey.com>
4095
4096 * tui/tui-winsource.h (struct tui_source_window_base)
4097 <update_source_window_as_is>: Declare.
4098 (tui_update_source_window_as_is): Don't declare.
4099 * tui/tui-winsource.c (tui_update_source_window): Update
4100 (tui_source_window_base::update_source_window_as_is): Rename from
4101 tui_update_source_window_as_is.
4102 (tui_source_window_base::refill): Update.
4103 * tui/tui-source.c (tui_show_symtab_source): Update.
4104 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4105 Update.
4106
20149b6b
TT
41072019-08-16 Tom Tromey <tom@tromey.com>
4108
4109 * tui/tui-winsource.h (tui_update_source_window)
4110 (tui_update_source_window_as_is): Remove "noerror" parameter.
4111 * tui/tui-winsource.c (tui_update_source_window)
4112 (tui_update_source_window_as_is): Remove "noerror" parameter.
4113 (tui_update_source_windows_with_addr)
4114 (tui_update_source_windows_with_line)
4115 (tui_source_window_base::rerender)
4116 (tui_source_window_base::refill): Update.
4117 * tui/tui-source.h (tui_set_source_content)
4118 (tui_show_symtab_source): Remove "noerror" parameter.
4119 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4120 parameter.
4121 (tui_show_symtab_source): Likewise.
4122 (tui_source_window::maybe_update): Update.
4123 * tui/tui-disasm.c (tui_show_disassem)
4124 (tui_show_disassem_and_update_source)
4125 (tui_disasm_window::do_scroll_vertical)
4126 (tui_disasm_window::maybe_update): Update.
4127
2d83e710
TT
41282019-08-16 Tom Tromey <tom@tromey.com>
4129
4130 * tui/tui.c (tui_is_window_visible): Update.
4131 * tui/tui-wingeneral.c (tui_make_window)
4132 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4133 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4134 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4135 (tui_set_win_height_command, parse_scrolling_args): Update.
4136 * tui/tui-source.c (tui_source_window::style_changed): Update.
4137 * tui/tui-regs.c (tui_show_registers)
4138 (tui_data_window::first_data_item_displayed)
4139 (tui_data_window::delete_data_content_windows)
4140 (tui_check_register_values, tui_reg_command): Update.
4141 * tui/tui-disasm.c (tui_show_disassem): Update.
4142 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4143 method.
4144 <is_visible>: Remove field.
4145 * tui/tui-data.c (tui_next_win, tui_prev_win)
4146 (tui_delete_invisible_windows): Update.
4147
d4ab829a
TT
41482019-08-16 Tom Tromey <tom@tromey.com>
4149
4150 * tui/tui-winsource.h (struct tui_source_window_base)
4151 <m_has_locator>: Remove.
4152 * tui/tui-layout.c (show_source_disasm_command, show_data)
4153 (show_source_or_disasm_and_command): Update.
4154
aa7ca1bb
AH
41552019-08-16 Alan Hayward <alan.hayward@arm.com>
4156
4157 * NEWS (Other MI changes): New subsection.
4158 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4159 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4160 * arch-utils.c (default_get_pc_address_flags): New function.
4161 * arch-utils.h (default_get_pc_address_flags): New declaration.
4162 * gdbarch.sh: Add get_pc_address_flags.
4163 * gdbarch.c: Regenerate.
4164 * gdbarch.h: Likewise.
4165 * stack.c (print_pc): New function.
4166 (print_frame_info) (print_frame): Call print_pc.
4167
6eac171f
TV
41682019-08-16 Tom de Vries <tdevries@suse.de>
4169
4170 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4171 print_objfile_section_info.
4172
3df505f6
TT
41732019-08-15 Tom Tromey <tom@tromey.com>
4174
4175 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4176 calling update_cmdwin_start_line.
4177 * tui/tui-winsource.h (struct tui_source_window_base)
4178 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4179 <rerender>: Declare.
4180 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4181 Call rerender.
4182 (tui_source_window_base::set_new_height): Remove.
4183 (tui_source_window_base::rerender): Rename from
4184 do_make_visible_with_new_height.
4185 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4186 resize method.
4187 (tui_win_info::make_invisible_and_set_new_height)
4188 (tui_win_info::make_visible_with_new_height): Remove.
4189 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4190 Declare.
4191 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4192 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4193 do_make_visible_with_new_height>: Don't declare.
4194 <rerender>: Declare.
4195 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4196 set_new_height.
4197 (tui_data_window::do_make_visible_with_new_height): Remove.
4198 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4199 call tui_show_locator_content.
4200 (tui_gen_win_info::resize): Call rerender.
4201 (show_source_or_disasm_and_command): Don't call
4202 tui_show_locator_content.
4203 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4204 method.
4205 (struct tui_win_info) <rerender>: Declare.
4206 <set_new_height, make_invisible_and_set_new_height,
4207 make_visible_with_new_height>: Don't declare.
4208 * tui/tui-data.c (tui_win_list::rerender): New method.
4209 * tui/tui-command.h (struct tui_cmd_window)
4210 <do_make_visible_with_new_height>: Don't declare.
4211 * tui/tui-command.c
4212 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4213
272560b5
TT
42142019-08-15 Tom Tromey <tromey@adacore.com>
4215
4216 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4217 * ada-lang.c (ada_enum_name): Likewise.
4218
08235187
CB
42192019-08-15 Christian Biesinger <cbiesinger@google.com>
4220
4221 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4222 leading underscore.
4223 (GdbOutputErrorFile): Likewise.
4224 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4225 accordingly.
4226 (execute_unwinders): Rename to have a leading underscore.
4227 (auto_load_packages): Likewise.
4228 (global scope): Adjust call to auto_load_packages accordingly.
4229 (GdbSetPythonDirectory): Likewise.
4230 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4231 instead of execute_unwinders.
4232
db502012
TT
42332019-08-15 Tom Tromey <tom@tromey.com>
4234
4235 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4236 (show_data): Don't change window visibility.
4237 (tui_gen_win_info::resize): Remove special case for command
4238 window. Use wresize, when available.
4239 (show_source_or_disasm_and_command): Don't change window
4240 visibility.
4241 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4242 <make_visible>: New method.
4243 * tui/tui-command.c (tui_cmd_window::resize): New method.
4244
3891b65e
TT
42452019-08-15 Tom Tromey <tom@tromey.com>
4246
4247 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4248 (struct tui_source_windows): New.
4249 * tui/tui-winsource.c (tui_display_main): Update.
4250 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4251 (new_height_ok, parse_scrolling_args): Update.
4252 * tui/tui-layout.c (show_layout, show_data): Update.
4253 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4254 (tui_add_to_source_windows): Don't declare.
4255 * tui/tui-data.c (source_windows, tui_source_windows)
4256 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4257
ee556432
TT
42582019-08-15 Tom Tromey <tom@tromey.com>
4259
4260 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4261 Rename from reset.
4262 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4263 * tui/tui-layout.c (show_source_disasm_command, show_data):
4264 Update.
4265 (tui_gen_win_info::resize): Rename.
4266 (show_source_or_disasm_and_command): Update.
4267 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4268 reset.
4269
46f438e3
TT
42702019-08-15 Tom Tromey <tom@tromey.com>
4271
4272 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4273 * tui/tui-interp.c (tui_interp::init): Don't call
4274 tui_initialize_static_data.
4275 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4276
f4ce562c
TT
42772019-08-15 Tom Tromey <tom@tromey.com>
4278
4279 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4280 examine tui_win_list.
4281
c398c3d0
TT
42822019-08-15 Tom Tromey <tom@tromey.com>
4283
4284 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4285 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4286 tui_clear_source_content.
4287 (tui_clear_source_content): Remove.
4288 (tui_source_window_base::do_erase_source_content): Hoist call to
4289 content.clear().
4290 * tui/tui-stack.c (tui_show_frame_info): Don't call
4291 tui_clear_source_content.
4292
e25d2004
TT
42932019-08-15 Tom Tromey <tom@tromey.com>
4294
4295 * tui/tui-winsource.h (struct tui_source_window_base)
4296 <do_erase_source_content>: New method.
4297 <erase_source_content>: New method.
4298 (tui_erase_source_content): Don't declare.
4299 * tui/tui-winsource.c (tui_clear_source_content): Update.
4300 (tui_source_window_base::do_erase_source_content): Rename from
4301 tui_erase_source_content.
4302 (tui_source_window_base::show_source_content): Update.
4303 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4304 * tui/tui-source.h (struct tui_source_window)
4305 <erase_source_content>: New method.
4306 * tui/tui-disasm.h (struct tui_disasm_window)
4307 <erase_source_content>: New method.
4308
002f15c2
TT
43092019-08-15 Tom Tromey <tom@tromey.com>
4310
4311 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4312 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4313 constructor.
4314 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4315 * tui/tui-source.c (tui_set_source_content): Update.
4316 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4317
c9033fe8
TT
43182019-08-15 Tom Tromey <tom@tromey.com>
4319
4320 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4321 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4322 tui-source.c.
4323 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4324 Declare.
4325 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4326 method.
4327 (tui_source_window::maybe_update): Update.
4328
088f37dd
TT
43292019-08-15 Tom Tromey <tom@tromey.com>
4330
4331 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4332 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4333 tui-disasm.c.
4334 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4335 Declare.
4336 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4337 method.
4338 (tui_disasm_window::maybe_update): Update.
4339
a54700c6
TT
43402019-08-15 Tom Tromey <tom@tromey.com>
4341
4342 * tui/tui-winsource.h (struct tui_source_window_base)
4343 <maybe_update>: Declare.
4344 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4345 method.
4346 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4347 Declare.
4348 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4349 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4350 Declare.
4351 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4352
e2a678a5
TT
43532019-08-15 Tom Tromey <tom@tromey.com>
4354
4355 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4356
f2dda477
TT
43572019-08-15 Tom Tromey <tom@tromey.com>
4358
4359 * tui/tui-wingeneral.c: Include tui-stack.h.
4360 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4361 (struct tui_locator_window): Move from tui-data.h.
4362 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4363 (tui_initialize_static_data): Move from tui-data.c.
4364 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4365 (struct tui_locator_window): Move to tui-stack.c.
4366 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4367 (tui_initialize_static_data): Move to tui-stack.c.
4368
ed4a1084
TT
43692019-08-15 Tom Tromey <tom@tromey.com>
4370
4371 * tui/tui-layout.c (show_source_disasm_command)
4372 (show_source_or_disasm_and_command): Use make_visible method, not
4373 tui_make_window.
4374 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4375 Remove.
4376
65962b20
TT
43772019-08-15 Tom Tromey <tom@tromey.com>
4378
4379 * tui/tui-wingeneral.h (tui_make_window): Update.
4380 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4381 parameter.
4382 (tui_gen_win_info::make_visible): Update.
4383 * tui/tui-regs.c (tui_data_window::display_registers_from):
4384 Update.
4385 * tui/tui-layout.c (show_source_disasm_command)
4386 (show_source_or_disasm_and_command): Update.
4387 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4388 (enum tui_box): Remove.
4389 (struct tui_win_info) <can_box>: New method.
4390 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4391 method.
4392
2208ee91
TV
43932019-08-15 Tom de Vries <tdevries@suse.de>
4394
4395 * linux-nat-trad.c: Include gdbarch.h.
4396
75faf5c4
AH
43972019-08-14 Alan Hayward <alan.hayward@arm.com>
4398
4399 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4400 register sizes.
4401
b1c896b3
TT
44022019-08-14 Tom Tromey <tromey@adacore.com>
4403
4404 * darwin-nat.c: Include gdbarch.h.
4405 * darwin-nat-info.c: Include gdbarch.h.
4406
6405cd73
TT
44072019-08-13 Tom Tromey <tom@tromey.com>
4408
4409 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4410 Remove.
4411 * tui/tui-data.c (tui_initialize_static_data): Update.
4412
5216580d
TT
44132019-08-13 Tom Tromey <tom@tromey.com>
4414
4415 * tui/tui-winsource.h (struct tui_exec_info_window)
4416 <~tui_exec_info_window, maybe_allocate_content, get_content,
4417 m_content>: Remove.
4418 (struct tui_source_window_base) <set_exec_info_content,
4419 show_exec_info_content>: Don't declare.
4420 * tui/tui-winsource.c
4421 (tui_exec_info_window::maybe_allocate_content): Remove.
4422 (tui_source_window_base::update_exec_info): Rename from
4423 set_exec_info_content.
4424 (tui_source_window_base::show_exec_info_content)
4425 (tui_source_window_base::update_exec_info): Remove.
4426
93858ad3
TT
44272019-08-13 Tom Tromey <tom@tromey.com>
4428
4429 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4430 declare.
4431 * tui/tui-winsource.c (tui_update_source_window_as_is)
4432 (tui_update_source_windows_with_addr, tui_erase_source_content):
4433 Update.
4434 (tui_clear_exec_info_content): Remove.
4435
e321e7ce
TT
44362019-08-13 Tom Tromey <tom@tromey.com>
4437
4438 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4439 declare.
4440 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4441 call tui_erase_exec_info_content.
4442 (tui_clear_exec_info_content): Rename from
4443 tui_erase_exec_info_content.
4444 (tui_clear_exec_info_content): Delete.
4445
8270ac62
TT
44462019-08-13 Tom Tromey <tom@tromey.com>
4447
4448 * tui/tui-winsource.h (struct tui_source_window_base)
4449 <show_exec_info_content>: Declare.
4450 (tui_show_exec_info_content): Don't declare.
4451 * tui/tui-winsource.c
4452 (tui_source_window_base::show_exec_info_content): Rename from
4453 tui_show_exec_info_content.
4454 (tui_source_window_base::update_exec_info): Update.
4455
7b56485d
TT
44562019-08-13 Tom Tromey <tom@tromey.com>
4457
4458 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4459 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4460 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4461 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4462 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4463 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4464 ... here.
4465
7ba913dc
TT
44662019-08-13 Tom Tromey <tom@tromey.com>
4467
4468 * tui/tui-winsource.h (struct tui_source_window_base)
4469 <update_exec_info>: Declare.
4470 (tui_update_exec_info): Don't declare.
4471 * tui/tui-winsource.c (tui_update_source_window_as_is)
4472 (tui_source_window_base::refresh_all)
4473 (tui_update_all_breakpoint_info): Update.
4474 (tui_source_window_base::update_exec_info): Rename from
4475 tui_update_exec_info.
4476 * tui/tui-stack.c (tui_show_frame_info): Update.
4477
37a4a131
TT
44782019-08-13 Tom Tromey <tom@tromey.com>
4479
4480 * tui/tui-winsource.h (struct tui_source_window_base)
4481 <set_exec_info_content>: Declare.
4482 (tui_set_exec_info_content): Don't declare.
4483 * tui/tui-winsource.c
4484 (tui_source_window_base::set_exec_info_content): Rename from
4485 tui_set_exec_info_content.
4486 (tui_update_exec_info): Update.
4487
0bd27e07
TT
44882019-08-13 Tom Tromey <tom@tromey.com>
4489
4490 * tui/tui-winsource.h (struct tui_source_window_base)
4491 <show_source_content>: Declare.
4492 (tui_show_source_content): Don't declare.
4493 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4494 (tui_source_window_base::show_source_content): Rename from
4495 tui_show_source_content.
4496 (tui_source_window_base::refresh_all): Update.
4497 * tui/tui-layout.c (show_source_disasm_command)
4498 (show_source_or_disasm_and_command): Update.
4499
b4ef5aeb
TT
45002019-08-13 Tom Tromey <tom@tromey.com>
4501
4502 * tui/tui-winsource.c (tui_erase_source_content)
4503 (tui_show_source_content, tui_source_window_base::refresh_all):
4504 Update.
4505 * tui/tui-wingeneral.h
4506 (tui_check_and_display_highlight_if_needed): Don't declare.
4507 * tui/tui-wingeneral.c
4508 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4509 check_and_display_highlight_if_needed.
4510 * tui/tui-win.c (tui_rehighlight_all)
4511 (tui_win_info::make_visible_with_new_height): Update.
4512 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4513 (tui_data_window::erase_data_content)
4514 (tui_data_window::display_all_data): Update.
4515 * tui/tui-data.h (struct tui_win_info)
4516 <check_and_display_highlight_if_needed>: Declare.
4517
fede5273
TT
45182019-08-13 Tom Tromey <tom@tromey.com>
4519
4520 * tui/tui-win.c (tui_resize_all): Call
4521 tui_delete_invisible_windows.
4522 * tui/tui-layout.c (show_layout): Call
4523 tui_delete_invisible_windows.
4524 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4525 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4526
22c3f490
TT
45272019-08-13 Tom Tromey <tom@tromey.com>
4528
4529 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4530 tui_add_win_to_layout.
4531
16cb7910
TT
45322019-08-13 Tom Tromey <tom@tromey.com>
4533
4534 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4535 * tui/tui-layout.c (tui_default_win_height): Now static.
4536
cc0c3ffb
TT
45372019-08-13 Tom Tromey <tom@tromey.com>
4538
4539 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4540 single switch.
4541 (show_source_disasm_command, show_source_or_disasm_and_command):
4542 Don't check current layout.
4543
3f3ffe54
TT
45442019-08-13 Tom Tromey <tom@tromey.com>
4545
4546 * tui/tui-wingeneral.c (make_all_visible): Remove.
4547 (tui_make_all_invisible): Simplify.
4548 * tui/tui-layout.c (tui_make_all_invisible): Move from
4549 tui-wingeneral.c; simplify.
4550 (show_layout): Hoist call to tui_make_all_invisible.
4551 (show_data): Don't call tui_make_all_invisible.
4552
69258091
TT
45532019-08-13 Tom Tromey <tom@tromey.com>
4554
4555 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4556 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4557
62cf57fe
TT
45582019-08-13 Tom Tromey <tom@tromey.com>
4559
4560 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4561 tui-data.c.
4562 (show_source_disasm_command, show_data)
4563 (show_source_or_disasm_and_command): Don't use
4564 tui_set_current_layout_to.
4565 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4566 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4567 tui-layout.c.
4568 (tui_set_current_layout_to): Remove.
4569
2afade5d
TT
45702019-08-13 Tom Tromey <tom@tromey.com>
4571
4572 * tui/tui-layout.c (tui_set_layout): Update.
4573 * tui/tui-data.h (struct tui_layout_def): Remove.
4574 (tui_layout_def): Don't declare.
4575 * tui/tui-data.c (layout_def): Remove.
4576 (tui_layout_def): Remove.
4577
a3504e96
TT
45782019-08-13 Tom Tromey <tom@tromey.com>
4579
4580 * tui/tui-winsource.h (struct tui_source_window_base)
4581 <clear_detail>: No longer "override".
4582 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4583 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4584 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4585 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4586 Remove.
4587 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4588
29c92911
TT
45892019-08-13 Tom Tromey <tromey@adacore.com>
4590
4591 * tracepoint.c: Don't include readline.h or history.h.
4592
86c6b807
TT
45932019-08-12 Tom Tromey <tom@tromey.com>
4594
4595 * configure: Rebuild.
4596 * configure.ac: Check for readline 7.
4597 * NEWS: Mention readline 7 requirement.
4598 * README: Update.
4599
5db2718c
TT
46002019-08-12 Tom Tromey <tom@tromey.com>
4601
4602 * mingw-hdep.c (gdb_select): Remove readline hack.
4603
dac36daf
PFC
46042019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4605
4606 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4607 when the function fails.
4608
1022c627
AA
46092019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4610
4611 * s390-tdep.c (s390_type_align): New function.
4612 (s390_gdbarch_init): Set it as type_align gdbarch method.
4613
eba4caf2
TV
46142019-08-09 Tom de Vries <tdevries@suse.de>
4615
4616 PR gdb/24591
4617 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4618 pc_low with relocation offset.
4619
123cd851
TT
46202019-08-07 Tom Tromey <tromey@adacore.com>
4621
4622 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4623 (print_frame_args): Update.
4624 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4625 Update.
4626 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4627 * frame.h (struct frame_arg): Add initializers.
4628 <error>: Now a unique_xmalloc_ptr.
4629
3d31bc39
AH
46302019-08-07 Alan Hayward <alan.hayward@arm.com>
4631
4632 * NEWS: Expand the Pointer Authentication entry.
4633 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4634 (aarch64_frame_unmask_lr): ... to this.
4635 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4636 Call aarch64_frame_unmask_lr.
4637 * frame.c (struct frame_info): Add "masked" variable.
4638 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4639 (fprint_frame): Check for masked pc.
4640 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4641 declarations.
4642 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4643 * stack.c (print_frame): Check for masked pc.
4644
0cf9feb9
TT
46452019-08-06 Tom Tromey <tom@tromey.com>
4646
4647 * stabsread.c (patch_block_stabs, read_one_struct_field)
4648 (read_enum_type): Use obstack_strndup.
4649 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4650 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4651 * dwarf2read.c (guess_full_die_structure_name)
4652 (anonymous_struct_prefix): Use obstack_strndup.
4653 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4654 * c-exp.y (yylex): Use obstack_strndup.
4655 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4656 (write_var_or_type): Use obstack_strndup.
4657
efba19b0
TT
46582019-08-06 Tom Tromey <tom@tromey.com>
4659
4660 * symfile.c (reread_symbols): Use obstack_strdup.
4661 * stabsread.c (read_type): Use obstack_strdup.
4662 * gdb_obstack.h (obstack_strdup): New overload.
4663 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4664 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4665 (dwarf2_canonicalize_name): Use obstack_strdup.
4666 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4667 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4668 Use obstack_strdup.
4669
f25102f7
TT
46702019-08-06 Tom Tromey <tom@tromey.com>
4671
4672 * gdb_obstack.h (obstack_strdup): Define.
4673 * gdb_obstack.c (obstack_strdup): Don't define.
4674
021887d8
TT
46752019-08-06 Tom Tromey <tom@tromey.com>
4676
4677 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4678 obstack_strdup.
4679 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4680 obstack_strdup.
4681 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4682 * stabsread.c (common_block_start): Use obstack_strdup.
4683 * objfiles.c (set_objfile_main_name, objfile): Use
4684 obstack_strdup.
4685 * namespace.c (add_using_directive): Use obstack_strdup.
4686 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4687 * jit.c (finalize_symtab): Use obstack_strdup.
4688 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4689 (guess_partial_die_structure_name, partial_die_info::fixup)
4690 (dwarf2_name): Use obstack_strdup.
4691 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4692 obstack_strdup.
4693 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4694 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4695 obstack_strdup.
4696 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4697
d2834edc
PW
46982019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4699
4700 * unittests/help-doc-selftests.c: New file.
4701 * Makefile.in: Add the new file.
4702
590042fc
PW
47032019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4704
4705 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4706 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4707 the full first line, except when FOR_VALUE_PREFIX. In this case,
4708 the trailing '.' is not output, and the first character is uppercased.
4709 (print_help_for_command): Update call to print_doc_line.
4710 (print_doc_of_command): Likewise.
4711 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4712 * cli/cli-option.c (append_indented_doc): Do not append newline.
4713 (build_help_option): Append newline after first appended_indented_doc
4714 only if a second call is done.
4715 (build_help): Append 2 new lines before each option, except the first
4716 one.
4717 * compile/compile.c (_initialize_compile): Add new lines after
4718 %OPTIONS%, when not at the end of the help.
4719 Change help doc or code
4720 producing the help doc to respect the invariants.
4721 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4722 Also removed the new line after 'Options:', as all other commands
4723 do not put an empty line between 'Options:' and the first option.
4724 * printcmd.c (_initialize_printcmd): Likewise.
4725 * stack.c (_initialize_stack): Likewise.
4726 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4727 incorrectly telling COMMAND is optional.
4728 * ada-lang.c (_initialize_ada_language): Change help doc or code
4729 producing the help doc to respect the invariants.
4730 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4731 * breakpoint.c (_initialize_breakpoint): Likewise.
4732 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4733 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4734 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4735 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4736 _initialize_cli_style): Likewise.
4737 * corelow.c (core_target_info): Likewise.
4738 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4739 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4740 * filesystem.c (_initialize_filesystem): Likewise.
4741 * frame.c (_initialize_frame): Likewise.
4742 * gnu-nat.c (add_task_commands): Likewise.
4743 * infcall.c (_initialize_infcall): Likewise.
4744 * infcmd.c (_initialize_infcmd): Likewise.
4745 * interps.c (_initialize_interpreter): Likewise.
4746 * language.c (_initialize_language): Likewise.
4747 * linux-fork.c (_initialize_linux_fork): Likewise.
4748 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4749 * maint.c (_initialize_maint_cmds): Likewise.
4750 * memattr.c (_initialize_mem): Likewise.
4751 * printcmd.c (_initialize_printcmd): Likewise.
4752 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4753 _RegEx): Likewise.
4754 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4755 * record-btrace.c (_initialize_record_btrace): Likewise.
4756 * record-full.c (_initialize_record_full): Likewise.
4757 * record.c (_initialize_record): Likewise.
4758 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4759 * regcache.c (_initialize_regcache): Likewise.
4760 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4761 _initialize_remote): Likewise.
4762 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4763 * serial.c (_initialize_serial): Likewise.
4764 * skip.c (_initialize_step_skip): Likewise.
4765 * source.c (_initialize_source): Likewise.
4766 * stack.c (_initialize_stack): Likewise.
4767 * symfile.c (_initialize_symfile): Likewise.
4768 * symtab.c (_initialize_symtab): Likewise.
4769 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4770 * top.c (init_main): Likewise.
4771 * tracefile-tfile.c (tfile_target_info): Likewise.
4772 * tracepoint.c (_initialize_tracepoint): Likewise.
4773 * tui/tui-win.c (_initialize_tui_win): Likewise.
4774 * utils.c (add_internal_problem_command): Likewise.
4775 * valprint.c (value_print_option_defs): Likewise.
4776
404f2902
FCE
47772019-08-06 Frank Ch. Eigler <fche@redhat.com>
4778
4779 PR build/24886
4780 * configure.ac: Drop enable-libmcheck support.
4781 * configure, config.in: Rebuild.
4782 * libmcheck.m4: Remove.
4783 * acinclude.m4: Don't include it.
4784 * Makefile.in: Don't distribute it.
4785 * top.c (print_gdb_configuration): Don't mention it.
4786
046bebe1
TT
47872019-08-06 Tom Tromey <tom@tromey.com>
4788
4789 * utils.c (set_output_style): Sometimes pass stream to
4790 emit_style_escape.
4791 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4792 * record-btrace.c (btrace_insn_history): Update.
4793 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4794 method.
4795 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4796 Update initializers.
4797 <m_uiout>: New field.
4798 <m_di>: Move lower.
4799 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4800 Remove "uiout" parameter.
4801 (dump_insns): Update.
4802 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4803 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4804
ddbcedf5
CB
48052019-08-06 Christian Biesinger <cbiesinger@google.com>
4806
4807 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4808 (error_in_psymtab_expansion): Likewise.
4809 (lookup_symbol_via_quick_fns): Likewise.
4810 (basic_lookup_transparent_type_quick): Likewise.
4811 (basic_lookup_transparent_type_1): Likewise.
4812
b08b16c8
TT
48132019-08-06 Tom Tromey <tromey@adacore.com>
4814
4815 * source.c (last_source_error): Now bool.
4816 (print_source_lines_base): Make "noprint" bool. Only open
4817 source file when last_source_visited changes.
4818
cb44333d
TT
48192019-08-06 Tom Tromey <tromey@adacore.com>
4820
4821 * annotate.c (annotate_source_line): Use g_source_cache.
4822 * source-cache.c (source_cache::get_plain_source_lines): Change
4823 parameters. Populate m_offset_cache.
4824 (source_cache::ensure): New method.
4825 (source_cache::get_line_charpos): New method.
4826 (extract_lines): Move lower. Change parameters.
4827 (source_cache::get_source_lines): Move lower.
4828 * source-cache.h (class source_cache): Update comment.
4829 <get_line_charpos>: New method.
4830 <get_source_lines>: Update comment.
4831 <clear>: Clear m_offset_cache.
4832 <get_plain_source_lines>: Change parameters.
4833 <ensure>: New method
4834 <m_offset_cache>: New member.
4835 * source.c (forget_cached_source_info_for_objfile): Update.
4836 (info_source_command): Use g_source_cache.
4837 (find_source_lines, open_source_file_with_line_charpos): Remove.
4838 (print_source_lines_base, search_command_helper): Use g_source_cache.
4839 * source.h (open_source_file_with_line_charpos): Don't declare.
4840 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4841 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4842 Use g_source_cache.
4843
872dceaa
TT
48442019-08-06 Tom Tromey <tromey@adacore.com>
4845
4846 * source-cache.c (source_cache::get_plain_source_lines):
4847 Remove "first_line" and "last_line" parameters.
4848 (source_cache::get_source_lines): Cache plain text.
4849 * source-cache.h (class source_cache)
4850 <get_plain_source_lines>: Update.
4851
269249d9
TT
48522019-08-06 Tom Tromey <tromey@adacore.com>
4853
4854 * source-cache.c (extract_lines): No longer a method.
4855 Changed type of parameter. Include final newline.
4856 (selftests::extract_lines_test): New function.
4857 (_initialize_source_cache): Likewise.
4858 * source-cache.h (class source_cache)
4859 <extract_lines>: Don't declare.
4860
c0e8dcd8
TT
48612019-08-06 Tom Tromey <tromey@adacore.com>
4862
4863 * breakpoint.c (init_breakpoint_sal): Update.
4864 (breakpoint): Update.
4865 * breakpoint.h (struct breakpoint) <filter>: Now a
4866 unique_xmalloc_ptr.
4867
0b27c27d
CB
48682019-08-05 Christian Biesinger <cbiesinger@google.com>
4869
4870 * NEWS: Mention dictionary access on blocks.
4871 * python/py-block.c (blpy_getitem): New function.
4872 (block_object_as_mapping): New struct.
4873 (block_object_type): Use new struct for tp_as_mapping field.
4874
4ee94178
CB
48752019-08-05 Christian Biesinger <cbiesinger@google.com>
4876
4877 * objfiles.h (objfile): Add a comment describing partial symbols.
4878
8abfcabc
TT
48792019-08-05 Tom Tromey <tromey@adacore.com>
4880
4881 * compile/compile.c (_initialize_compile): Use _(), not N_().
4882 * thread.c (_initialize_thread): Use _(), not N_().
4883 * stack.c (_initialize_stack): Use _(), not N_().
4884 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4885
2b79f376
SM
48862019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4887
4888 * dwarf2read.c (struct dw2_symtab_iterator):
4889 <want_specific_block>: Remove.
4890 <block_index>: Change type to gdb::optional.
4891 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4892 change type of BLOCK_INDEX parameter to gdb::optional.
4893 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4894 (dw2_lookup_symbol): Don't pass argument for
4895 WANT_SPECIFIC_BLOCK.
4896 (dw2_expand_symtabs_for_function): Don't pass argument for
4897 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4898 (class dw2_debug_names_iterator)
4899 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4900 parameter, change BLOCK_INDEX type to gdb::optional.
4901 <m_want_specific_block>: Remove.
4902 <m_block_index>: Change type to gdb::optional.
4903 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4904 gdb::optional. Re-write in function of gdb::optional.
4905 (dw2_debug_names_lookup_symbol): Don't pass argument for
4906 WANT_SPECIFIC_BLOCK.
4907 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4908 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4909 BLOCK_INDEX.
4910
ae60f04e
PW
49112019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4912
4913 * NEWS: Mention changes to "info sources" command.
4914
28cd9371
PW
49152019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4916
4917 * symtab.c (filename_partial_match_opts): New struct type.
4918 (struct output_source_filename_data): New members
4919 regexp, c_regexp, partial_match.
4920 (output_source_filename): Use new members to decide to print file.
4921 (info_sources_option_defs): New variable.
4922 (make_info_sources_options_def_group, print_info_sources_header,
4923 info_sources_command_completer):
4924 New functions.
4925 (info_sources_command): Read new optional arguments.
4926 (_initialize_symtab): Update info sources help.
4927
ca683e3a
AO
49282019-08-02 Alexandre Oliva <oliva@adacore.com>
4929
4930 * ada-lang.c (exception_support_info_v0): Renamed from...
4931 (default_exception_support_info): ... this. Create new
4932 definition for v1.
4933 (ada_has_this_exception_support): Look up catch_handlers_sym.
4934 (ada_exception_support_info_sniffer): Try v0 after default.
4935
f1264162
TT
49362019-08-01 Tom Tromey <tromey@adacore.com>
4937
4938 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4939 gdbarch.h.
4940
0a7b2485
CB
49412019-08-01 Christian Biesinger <cbiesinger@google.com>
4942
4943 * s12z-tdep.c: Fix include path for s12z-opc.h.
4944
c6bdbeb7
AH
49452019-08-01 Alan Hayward <alan.hayward@arm.com>
4946
4947 * NEWS: Require GNU make 3.82.
4948
a2bd7b82
TT
49492019-07-16 Tom Tromey <tom@tromey.com>
4950
4951 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4952 declare.
4953
aa3b6533
TT
49542019-07-30 Tom Tromey <tromey@adacore.com>
4955
4956 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4957
a1530dc7
KB
49582019-07-30 Kevin Buettner <kevinb@redhat.com>
4959
4960 * printcmd.c (print_address_symbolic): Print negative offsets.
4961 (build_address_symbolic): Force signed arithmetic when computing
4962 offset.
4963
2906593f
CB
49642019-07-30 Christian Biesinger <cbiesinger@google.com>
4965
4966 PR/24474: Add a function to lookup static variables.
4967 * NEWS: Mention this new function.
4968 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4969 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4970 * python/python.c (python_GdbMethods): Add new function.
4971
c620ed88
CB
49722019-07-29 Christian Biesinger <cbiesinger@google.com>
4973
4974 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4975 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4976 (objfpy_lookup_static_symbol): New function.
4977 (objfile_object_methods): Add new functions.
4978
bc4268a5
PW
49792019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4980
4981 * NEWS: Mention 'set|show print frame-info'. Mention new
4982 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4983 backtrace argument. Mention that python frame filtering code
4984 is now consistent with what 'backtrace' command prints.
4985
4b5e8d19
PW
49862019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4987
4988 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4989 comments.
4990 (print_frame_info_auto, print_frame_info_source_line,
4991 print_frame_info_location, print_frame_info_source_and_location,
4992 print_frame_info_location_and_address, print_frame_info_short_location):
4993 New declarations.
4994 (struct frame_print_options): New member print_frame_info.
4995 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
4996 * stack.h (get_user_print_what_frame_info): New declaration.
4997 (frame_show_address): New declaration.
4998 * stack.c (print_frame_arguments_choices): New value 'presence'.
4999 (print_frame_info_auto, print_frame_info_source_line,
5000 print_frame_info_location, print_frame_info_source_and_location,
5001 print_frame_info_location_and_address, print_frame_info_short_location,
5002 print_frame_info_choices, print_frame_info_print_what): New definitions.
5003 (print_frame_args): Only print dots for args if print frame-arguments
5004 is 'presence'.
5005 (frame_print_option_defs): New element for "frame-info".
5006 (get_user_print_what_frame_info): New function.
5007 (frame_show_address): Make non static. Move comment to stack.h.
5008 (print_frame_info_to_print_what): New function.
5009 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5010 to decide what to print.
5011 (backtrace_command_1): Handle the new print_frame_arguments_presence
5012 value.
5013 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5014 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5015 (py_print_frame): In non-mi mode, use LOCATION as default for
5016 print_what, similarly to frame information printed directly by
5017 backtrace command. Handle frame-info user option in non MI mode.
5018
6bdfee81
KB
50192019-07-27 Kevin Buettner <kevinb@redhat.com>
5020
5021 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5022 Add case for debugging 32-bit target on 64-bit host. Revise
5023 comment.
5024
98a617f8
KB
50252019-07-27 Kevin Buettner <kevinb@redhat.com>
5026
5027 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5028 instead of find_function_entry_range_from_pc.
5029
567238c9
KB
50302019-07-27 Kevin Buettner <kevinb@redhat.com>
5031
5032 * stack.c (find_frame_funname): Remove code which preferred
5033 minsym over symtab sym in "certain pathological cases".
5034
2dc80cf8
KB
5035 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5036 parameter. Change type of "do_demangle" to bool.
5037 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5038 Pass suitable "prefer_sym_over_minsym" flag to
5039 build_address_symbolic(). Don't output "+" for negative offsets.
5040 * printcmd.c (print_address_symbolic): Update invocation of
5041 build_address_symbolic to include a "prefer_sym_over_minsym"
5042 flag.
5043 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5044 Restrict cases in which use of minimal symbol is preferred to that
5045 of a found symbol. Update comments.
5046
1aff7173
KB
5047 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5048 for entry pc when entry pc is out of range for that FDE.
5049
89b085ac
BC
50502019-07-26 Brian Callahan <bcallah@openbsd.org>
5051
5052 PR gdb/24839:
5053 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5054 type.
5055
f32feb4a
CB
50562019-07-25 Christian Biesinger <cbiesinger@google.com>
5057
5058 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5059 this function's Python signature.
5060
5061
50622019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
5063
5064 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5065 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5066 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5067 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5068 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5069
5070
c54e4253
YS
50712019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5072
5073 * h8300-tdep.c (h8300_register_name_common): New.
5074 h8300_register_name): Use h8300_register_name_common.
5075 (h8300s_register_name): Likewise.
5076 (h8300sx_register_name): Likewise.
5077 (h8300h_register_nam): New.
5078 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5079
5080
40eadf04
SP
50812019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5082
5083 * arm-tdep.c (arm_skip_cmse_entry): New function.
5084 (arm_is_sgstubs_section): New function.
5085 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5086
bfa2a36d
TT
50872019-07-22 Tom Tromey <tom@tromey.com>
5088
5089 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5090 Don't self-assign.
5091
a8e9d247
AB
50922019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5093
5094 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5095 type_print.
5096
eb86c5e2
AB
50972019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5098
5099 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5100 so that GDB doesn't match any msymbols when searching in the
5101 TYPES_DOMAIN.
5102 (print_symbol_info): Print using typedef_print or type_print based
5103 on the type of the symbol. Add updated FIXME comment moved from...
5104 (_initialize_symtab): ... move and update FIXME comment to above.
5105
a8eab7c6
AB
51062019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5107
5108 * NEWS: Mention adding -q option to "info types".
5109 * symtab.c (struct info_types_options): New struct.
5110 (info_types_options_defs): New variable.
5111 (make_info_types_options_def_group): New function.
5112 (info_types_command): Use gdb::option framework to parse options.
5113 (info_types_command_completer): New function.
5114 (_initialize_symtab): Extend the help text on "info types" and
5115 register command completer.
5116
b4603c34
CB
51172019-07-21 Christian Biesinger <cbiesinger@google.com>
5118
5119 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5120 (lookup_symbol_in_objfile): Change int to block_enum and add a
5121 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5122
c8cdc1e0
CB
51232019-07-20 Christian Biesinger <cbiesinger@google.com>
5124
5125 * MAINTAINERS (Write After Approval): Add self.
5126
01e175fe
AB
51272019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5128
5129 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5130 instruction to the dummy code region.
5131
56f79b63
TT
51322019-07-19 Tom Tromey <tromey@adacore.com>
5133
5134 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5135 (ARGSUSED, PARAMS, __func__): Remove rules.
5136
4c5aa8e0
AH
51372019-07-19 Alan Hayward <alan.hayward@arm.com>
5138
5139 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5140 * features/arm/arm-with-iwmmxt.c: Remove.
5141 * features/arm/arm-with-iwmmxt.xml: Remove.
5142 * features/arm/arm-with-m-fpa-layout.c: Remove.
5143 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5144 * features/arm/arm-with-m-vfp-d16.c: Remove.
5145 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5146 * features/arm/arm-with-m.c: Remove.
5147 * features/arm/arm-with-m.xml: Remove.
5148 * features/arm/arm-with-neon.c: Remove.
5149 * features/arm/arm-with-neon.xml: Remove.
5150 * features/arm/arm-with-vfpv2.c: Remove.
5151 * features/arm/arm-with-vfpv2.xml: Remove.
5152 * features/arm/arm-with-vfpv3.c: Remove.
5153 * features/arm/arm-with-vfpv3.xml: Remove.
5154
f42b2617
AH
51552019-07-19 Alan Hayward <alan.hayward@arm.com>
5156
5157 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5158
f29ec966
AH
51592019-07-19 Alan Hayward <alan.hayward@arm.com>
5160
5161 * arch/aarch32.c (aarch32_create_target_description): Create
5162 target descriptions using features.
5163 * arch/arm.c (arm_create_target_description)
5164 (arm_create_mprofile_target_description): Likewise.
5165 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5166
d105cce5
AH
51672019-07-19 Alan Hayward <alan.hayward@arm.com>
5168
5169 * Makefile.in: Add new files.
5170 * aarch32-tdep.c: New file.
5171 * aarch32-tdep.h: New file.
5172 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5173 Call aarch32_read_description.
5174 * arch/aarch32.c: New file.
5175 * arch/aarch32.h: New file.
5176 * arch/arm.c (arm_create_target_description)
5177 (arm_create_mprofile_target_description): New function.
5178 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5179 (arm_create_target_description)
5180 (arm_create_mprofile_target_description): New declaration.
5181 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5182 read_description functions.
5183 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5184 Likewise.
5185 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5186 * arm-tdep.c (tdesc_arm_list): New variable.
5187 (arm_register_g_packet_guesses): Call create description functions.
5188 (arm_read_description) (arm_read_mprofile_description): New
5189 function.
5190 * arm-tdep.h (arm_read_description)
5191 (arm_read_mprofile_description): Add declaration.
5192 * configure.tgt: Add new files.
5193
afe09f0b
GL
51942019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5195
5196 * top.c (new_ui_command): Open specified terminal just once.
5197
cd215b2e
TT
51982019-07-18 Tom Tromey <tromey@adacore.com>
5199
5200 * symtab.c (main_name): Constify return type.
5201 * symfile.c (set_initial_language): Update.
5202 * symtab.h (main_name): Constify return type.
5203
d8f68fcb
TT
52042019-07-17 Tom Tromey <tom@tromey.com>
5205
5206 * tui/tui-winsource.c (tui_update_source_window)
5207 (tui_update_source_window_as_is)
5208 (tui_update_source_windows_with_line): Remove return.
5209 * tui/tui-disasm.c (tui_show_disassem)
5210 (tui_show_disassem_and_update_source): Remove return.
5211 * tui/tui.c (tui_reset): Remove return.
5212 * tui/tui-wingeneral.c
5213 (tui_check_and_display_highlight_if_needed): Remove return.
5214
ca5af91e
TT
52152019-07-17 Tom Tromey <tom@tromey.com>
5216
5217 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5218
5104fe36
TT
52192019-07-17 Tom Tromey <tom@tromey.com>
5220
5221 * tui/tui-winsource.h (struct tui_exec_info_window)
5222 (struct tui_source_window_base): Move from tui-data.h.
5223 * tui/tui-winsource.c: Move many method definitions from
5224 elsewhere. Remove "structuring" comments.
5225 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5226 (tui_source_window_base::refresh_window): Move to
5227 tui-winsource.c.
5228 * tui/tui-win.c (tui_source_window_base::refresh_all)
5229 (tui_source_window_base::update_tab_width)
5230 (tui_source_window_base::set_new_height)
5231 (tui_source_window_base::do_make_visible_with_new_height): Move to
5232 tui-winsource.c.
5233 * tui/tui-source.h: Update.
5234 * tui/tui-source.c (tui_source_window_base::reset): Move to
5235 tui-winsource.c.
5236 * tui/tui-disasm.h: Update.
5237 * tui/tui-data.h (struct tui_exec_info_window): Move to
5238 tui-winsource.h.
5239 (struct tui_source_window_base): Likewise.
5240 * tui/tui-data.c (tui_source_window_base::clear_detail)
5241 (tui_source_window_base, ~tui_source_window_base): Move to
5242 tui-winsource.c.
5243
daa15dde
TT
52442019-07-17 Tom Tromey <tom@tromey.com>
5245
5246 * tui/tui-win.c (tui_resize_all)
5247 (tui_source_window_base::update_tab_width)
5248 (tui_adjust_win_heights): Update.
5249 (tui_win_info::make_invisible_and_set_new_height): Rename from
5250 make_invisible_and_set_new_height.
5251 * tui/tui-data.h (struct tui_win_info)
5252 <make_invisible_and_set_new_height>: New method.
5253
bfad4537
TT
52542019-07-17 Tom Tromey <tom@tromey.com>
5255
5256 * tui/tui.c: Update.
5257 * tui/tui-source.h (struct tui_source_window): Move from
5258 tui-data.h.
5259 * tui/tui-layout.c: Update.
5260 * tui/tui-disasm.c: Update.
5261 * tui/tui-data.h (struct tui_source_window): Move to
5262 tui-source.h.
5263
88f7e873
TT
52642019-07-17 Tom Tromey <tom@tromey.com>
5265
5266 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5267 tui-data.h.
5268 * tui/tui-data.h (struct tui_disasm_window): Move to
5269 tui-disasm.h.
5270
96bd6233
TT
52712019-07-17 Tom Tromey <tom@tromey.com>
5272
5273 * tui/tui-regs.h (struct tui_data_item_window): Move from
5274 tui-data.h.
5275 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5276 * tui/tui-data.h (struct tui_data_item_window): Move to
5277 tui-regs.h.
5278 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5279
ce38393b
TT
52802019-07-17 Tom Tromey <tom@tromey.com>
5281
5282 * tui/tui.c: Update.
5283 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5284 (tui_cmd_window::max_height): Move to tui-command.c.
5285 * tui/tui-layout.c: Update.
5286 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5287 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5288 tui-command.c.
5289 * tui/tui-command.h (struct tui_cmd_window): Move from
5290 tui-data.h.
5291 * tui/tui-command.c: Remove "structuring" comments.
5292 (tui_cmd_window::clear_detail)
5293 (tui_cmd_window::do_make_visible_with_new_height)
5294 (tui_cmd_window::max_height): Move from elsewhere.
5295
2d8b51cb
TT
52962019-07-17 Tom Tromey <tom@tromey.com>
5297
5298 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5299 Now static.
5300 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5301 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5302
18ab23af
TT
53032019-07-17 Tom Tromey <tom@tromey.com>
5304
5305 * tui/tui.c: Update.
5306 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5307 tui-regs.c.
5308 * tui/tui-windata.h: Remove file.
5309 * tui/tui-windata.c: Remove file.
5310 * tui/tui-win.c (tui_data_window::set_new_height)
5311 (tui_data_window::do_make_visible_with_new_height): Move to
5312 tui-regs.c.
5313 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5314 * tui/tui-regs.c: Remove "structuring" comments.
5315 (tui_data_window::first_data_item_displayed)
5316 (tui_data_window::delete_data_content_windows)
5317 (tui_data_window::erase_data_content)
5318 (tui_data_window::display_all_data)
5319 (tui_data_window::refresh_all)
5320 (tui_data_window::do_scroll_vertical)
5321 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5322 (tui_data_window::do_make_visible_with_new_height)
5323 (tui_data_window::refresh_window): Move from elsewhere.
5324 (_initialize_tui_regs): Move to end of file.
5325 * tui/tui-layout.c: Update.
5326 * tui/tui-hooks.c: Update.
5327 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5328 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5329 tui-regs.c.
5330 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5331
88b7e7cc
TT
53322019-07-17 Tom Tromey <tom@tromey.com>
5333
5334 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5335 seen.
5336
0fcd3711
TT
53372019-07-17 Tom Tromey <tom@tromey.com>
5338
5339 * tui/tui-win.c (tui_source_window_base::set_new_height)
5340 (tui_source_window_base::do_make_visible_with_new_height): Use
5341 m_has_locator field directly.
5342 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5343 method.
5344 (struct tui_source_window_base) <has_locator>: Likewise.
5345
4a38112d
TT
53462019-07-17 Tom Tromey <tom@tromey.com>
5347
5348 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5349 Don't declare.
5350 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5351 Remove.
5352 * tui/tui-win.c (tui_source_window_base::set_new_height)
5353 (tui_source_window_base::set_new_height)
5354 (make_invisible_and_set_new_height)
5355 (tui_source_window_base::do_make_visible_with_new_height)
5356 (tui_source_window_base::do_make_visible_with_new_height):
5357 Update.
5358 * tui/tui-layout.c (show_source_disasm_command, show_data)
5359 (show_source_or_disasm_and_command): Update.
5360 * tui/tui-layout.c (show_layout): Update.
5361
09129226
TT
53622019-07-17 Tom Tromey <tom@tromey.com>
5363
5364 * tui/tui-layout.c (make_data_window): Remove.
5365 (show_data): Unify creation and re-initialization cases.
5366
4a8a5e84
TT
53672019-07-17 Tom Tromey <tom@tromey.com>
5368
5369 * tui/tui-layout.c (make_source_window, make_disasm_window):
5370 Remove.
5371 (show_data): Unify creation and re-initialization cases.
5372
76d2be8e
TT
53732019-07-17 Tom Tromey <tom@tromey.com>
5374
5375 * tui/tui-layout.c (make_command_window): Remove.
5376 (show_source_disasm_command, show_source_or_disasm_and_command):
5377 Unify creation and re-initialization cases.
5378
890b8bde
TT
53792019-07-17 Tom Tromey <tom@tromey.com>
5380
5381 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5382 creation and re-initialization cases.
5383
2cdfa113
TT
53842019-07-17 Tom Tromey <tom@tromey.com>
5385
5386 * tui/tui-regs.c (tui_get_register): Return void.
5387
8e3cfd09
TT
53882019-07-17 Tom Tromey <tom@tromey.com>
5389
5390 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5391 Simplify.
5392
f4e04977
TT
53932019-07-17 Tom Tromey <tom@tromey.com>
5394
5395 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5396 resetting.
5397
0379b883
TT
53982019-07-17 Tom Tromey <tom@tromey.com>
5399
5400 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5401 * tui/tui-regs.c (tui_reg_layout): New function.
5402 (tui_show_registers, tui_reg_command): Use it.
5403 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5404 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5405 parameters.
5406 (tui_layout_command): Remove.
5407
b7fbad91
TT
54082019-07-17 Tom Tromey <tom@tromey.com>
5409
5410 * tui/tui-layout.h (tui/tui-layout): Return void.
5411 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5412
4e1e56b9
TT
54132019-07-17 Tom Tromey <tom@tromey.com>
5414
5415 * tui/tui-layout.c (show_source_disasm_command, show_data):
5416 Update.
5417 (reset_locator): Remove.
5418 (show_source_or_disasm_and_command): Update.
5419
1e0c09ba
TT
54202019-07-17 Tom Tromey <tom@tromey.com>
5421
5422 * tui/tui-source.c (tui_source_window_base::reset): Remove
5423 win_type parameter.
5424 * tui/tui-layout.c (make_command_window, make_source_window)
5425 (make_disasm_window, make_data_window)
5426 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5427 (reset_locator, show_source_or_disasm_and_command): Update.
5428 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5429 win_type parameter.
5430 (struct tui_source_window_base) <reset>: Likewise.
5431
1bf605de
TT
54322019-07-17 Tom Tromey <tom@tromey.com>
5433
5434 * tui/tui-layout.c (show_source_disasm_command): Use
5435 reset_locator.
5436 (reset_locator): New function.
5437 (init_and_make_win): Remove.
5438 (show_source_or_disasm_and_command): Use reset_locator.
5439
098f9ed4
TT
54402019-07-17 Tom Tromey <tom@tromey.com>
5441
5442 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5443 condition.
5444 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5445 Remove condition.
5446 * tui/tui-source.c (tui_source_window_base::reset): New method.
5447 * tui/tui-layout.c (make_command_window): Don't call
5448 init_and_make_win.
5449 (make_source_window, make_disasm_window): Don't call
5450 make_source_or_disasm_window.
5451 (make_data_window): Don't call init_and_make_win. Change calling
5452 convention.
5453 (show_source_disasm_command, show_data): Simplify.
5454 (make_source_or_disasm_window): Remove.
5455 (show_source_or_disasm_and_command): Simplify.
5456 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5457 (struct tui_source_window_base) <reset>: Likewise.
5458 <execution_info>: Remove initializer.
5459 * tui/tui-data.c (tui_source_window_base): Initialize
5460 execution_info.
5461
80110957
TT
54622019-07-17 Tom Tromey <tom@tromey.com>
5463
5464 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5465 variable.
5466
cf82af05
TT
54672019-07-17 Tom Tromey <tom@tromey.com>
5468
5469 * tui/tui.c (tui_rl_other_window): Update.
5470 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5471 superclass method first. Always iterate over regs_content.
5472 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5473 method.
5474 * tui/tui-win.c (tui_set_focus_command): Update.
5475
01aeb396
TT
54762019-07-17 Tom Tromey <tom@tromey.com>
5477
5478 * tui/tui-win.c (tui_set_focus_command): Rename from
5479 tui_set_focus. Call tui_enable.
5480 (tui_set_focus_command): Remove.
5481
fd6c75ee
TT
54822019-07-17 Tom Tromey <tom@tromey.com>
5483
5484 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5485 refresh_window.
5486 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5487 touchwin.
5488 (tui_data_window::refresh_window): Call refresh_window on data
5489 items. Always call superclass refresh_window.
5490 (tui_win_info::refresh): Remove.
5491 (tui_source_window_base::refresh_window): Update.
5492 (tui_refresh_all): Update.
5493 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5494 refresh_window.
5495 (show_source_or_disasm_and_command): Likewise.
5496 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5497 (struct tui_source_window_base) <refresh>: Likewise.
5498
f6cc34a9
TT
54992019-07-17 Tom Tromey <tom@tromey.com>
5500
5501 * tui/tui-winsource.c (tui_clear_source_content)
5502 (tui_show_source_content): Update.
5503 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5504 whether content is empty.
5505 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5506 Remove.
5507
f31ec9af
TT
55082019-07-17 Tom Tromey <tom@tromey.com>
5509
5510 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5511 window's contents.
5512 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5513 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5514
d1b6f1e5
TT
55152019-07-17 Tom Tromey <tom@tromey.com>
5516
5517 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5518 (struct tui_data_item_window): Update.
5519
d9743a13
TT
55202019-07-17 Tom Tromey <tom@tromey.com>
5521
5522 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5523 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5524 defines.
5525
caf0bc4e
TT
55262019-07-17 Tom Tromey <tom@tromey.com>
5527
5528 * tui/tui-winsource.h (tui_erase_source_content)
5529 (tui_clear_source_content): Remove "display_prompt" parameter.
5530 * tui/tui-winsource.c (tui_update_source_window_as_is)
5531 (tui_update_source_windows_with_addr): Update.
5532 (tui_clear_source_content): Remove "display_prompt" parameter.
5533 (tui_erase_source_content): Likewise. Simplify.
5534 (tui_show_source_content): Update.
5535 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5536 * tui/tui-stack.c (tui_show_frame_info): Update.
5537 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5538 Remove defines.
5539
9d391078
TT
55402019-07-17 Tom Tromey <tom@tromey.com>
5541
5542 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5543 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5544 parameter.
5545 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5546 parameter.
5547
a38da35d
TT
55482019-07-17 Tom Tromey <tom@tromey.com>
5549
5550 * tui/tui-winsource.c (tui_clear_source_content)
5551 (tui_show_source_content, tui_show_exec_info_content)
5552 (tui_clear_exec_info_content): Update.
5553 * tui/tui-stack.c (tui_show_locator_content): Update.
5554 (tui_show_frame_info): Update.
5555 * tui/tui-source.h (tui_source_window): Don't declare.
5556 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5557 from tui_source_is_displayed.
5558 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5559 Remove field.
5560 (struct tui_source_window_base) <content_in_use>: New field. Now
5561 bool.
5562 (struct tui_source_window) <showing_source_p>: New method.
5563 (TUI_SRC_WIN): Change cast.
5564 * tui/tui-data.c (tui_initialize_static_data): Update.
5565
c2cd8994
TT
55662019-07-17 Tom Tromey <tom@tromey.com>
5567
5568 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5569 location_matches_p.
5570 * tui/tui-source.c (tui_source_window::location_matches_p): New
5571 method.
5572 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5573 method.
5574 * tui/tui-data.h (struct tui_source_window_base)
5575 <location_matches_p>: New method.
5576 (struct tui_source_window, struct tui_disasm_window)
5577 <location_matches_p>: Likewise.
5578
4dde7b34
TT
55792019-07-17 Tom Tromey <tom@tromey.com>
5580
5581 * tui/tui-win.c (tui_set_win_height_command): Rename from
5582 tui_set_win_height.
5583 (tui_set_win_height_command): Remove.
5584
b73dd877
TT
55852019-07-17 Tom Tromey <tom@tromey.com>
5586
5587 * tui/tui-source.c (tui_source_window): New constructor. Add
5588 observer.
5589 (~tui_source_window): New destructor.
5590 (tui_source_window::style_changed): New method.
5591 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5592 (tui_attach_detach_observers): Update.
5593 * tui/tui-data.h (struct tui_source_window): Make constructor not
5594 inline. Add destructor.
5595 (struct tui_source_window) <style_changed>: New method.
5596 <m_observable>: New member.
5597
ae2b5380
TT
55982019-07-17 Tom Tromey <tom@tromey.com>
5599
5600 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5601 * tui/tui-win.c (tui_resize_all): Fix typo.
5602
1ce3e844
TT
56032019-07-17 Tom Tromey <tom@tromey.com>
5604
5605 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5606 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5607 (tui_refresh_all): Remove "list" parameter. Use foreach.
5608 * tui/tui-win.c (window_name_completer): Use foreach.
5609 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5610 (update_tab_width): Likewise.
5611 * tui/tui-layout.c (show_layout): Update.
5612 * tui/tui-data.h (class tui_window_iterator): New.
5613 (struct all_tui_windows): New.
5614 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5615
fe3eaf1c
TT
56162019-07-17 Tom Tromey <tom@tromey.com>
5617
5618 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5619 parameter. Don't reference globals.
5620 (tui_reg_command): Update.
5621
368c1354
TT
56222019-07-17 Tom Tromey <tom@tromey.com>
5623
5624 * tui/tui-regs.c (tui_show_registers): Simplify.
5625
e80cd204
TT
56262019-07-17 Tom Tromey <tom@tromey.com>
5627
5628 * tui/tui-regs.c (tui_show_registers): Update.
5629 (tui_show_register_group): Add win_info parameter.
5630
aca2dd16
TT
56312019-07-17 Tom Tromey <tom@tromey.com>
5632
5633 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5634 Rename from tui_display_reg_element_at_line.
5635 (tui_data_window::display_registers_from_line): Update.
5636 * tui/tui-data.h (struct tui_data_window)
5637 <display_reg_element_at_line>: New method.
5638
517e9505
TT
56392019-07-17 Tom Tromey <tom@tromey.com>
5640
5641 * tui/tui-regs.h (tui_display_registers_from)
5642 (tui_display_registers_from_line): Don't declare.
5643 * tui/tui-windata.c (tui_data_window::display_all_data)
5644 (tui_data_window::refresh_all)
5645 (tui_data_window::do_scroll_vertical): Update.
5646 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5647 from tui_display_registers_from.
5648 (tui_display_reg_element_at_line): Update.
5649 (tui_data_window::display_registers_from_line): Rename from
5650 tui_display_registers_from_line.
5651 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5652 display_registers_from_line>: New methods.
5653
f76d8b19
TT
56542019-07-17 Tom Tromey <tom@tromey.com>
5655
5656 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5657 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5658 from tui_erase_data_content.
5659 (tui_data_window::display_all_data)
5660 (tui_data_window::refresh_all)
5661 (tui_data_window::do_scroll_vertical): Update.
5662 * tui/tui-regs.c (tui_show_registers): Update.
5663 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5664 New method.
5665
b4094625
TT
56662019-07-17 Tom Tromey <tom@tromey.com>
5667
5668 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5669 declare.
5670 * tui/tui-windata.c
5671 (tui_data_window::delete_data_content_windows): Rename from
5672 tui_delete_data_content_windows.
5673 (tui_data_window::display_all_data)
5674 (tui_data_window::do_scroll_vertical): Update.
5675 * tui/tui-data.h (struct tui_data_window)
5676 <delete_data_content_windows>: New method.
5677
c223a729
TT
56782019-07-17 Tom Tromey <tom@tromey.com>
5679
5680 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5681 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5682
50daf268
TT
56832019-07-17 Tom Tromey <tom@tromey.com>
5684
5685 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5686 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5687 from tui_display_all_data.
5688 * tui/tui-win.c
5689 (tui_data_window::do_make_visible_with_new_height): Update.
5690 * tui/tui-regs.c (tui_show_registers): Update.
5691 * tui/tui-layout.c (tui_set_layout): Update.
5692 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5693 method.
5694
df5f8cab
TT
56952019-07-17 Tom Tromey <tom@tromey.com>
5696
5697 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5698 * tui/tui-windata.c (tui_display_data_from): Remove.
5699 (tui_data_window::refresh_all): Update.
5700
80cb6c27
TT
57012019-07-17 Tom Tromey <tom@tromey.com>
5702
5703 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5704 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5705 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5706 tui_display_registers_from_line.
5707 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5708 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5709 "force_display" parameter.
5710
baff0c28
TT
57112019-07-17 Tom Tromey <tom@tromey.com>
5712
5713 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5714 declare.
5715 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5716 Rename from tui_first_reg_element_no_inline.
5717 (tui_display_reg_element_at_line)
5718 (tui_display_registers_from_line): Update.
5719 * tui/tui-data.h (struct tui_data_window)
5720 <first_reg_element_no_inline>: New method.
5721
3b23c5f2
TT
57222019-07-17 Tom Tromey <tom@tromey.com>
5723
5724 * tui/tui-windata.c (tui_display_data_from)
5725 (tui_data_window::do_scroll_vertical): Update.
5726 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5727 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5728 Rename from tui_line_from_reg_element_no.
5729 (tui_display_registers_from_line): Update.
5730 * tui/tui-data.h (struct tui_data_window)
5731 <line_from_reg_element_no>: New method.
5732
0b5ec218
TT
57332019-07-17 Tom Tromey <tom@tromey.com>
5734
5735 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5736 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5737 tui_last_regs_line_no.
5738 (tui_display_reg_element_at_line)
5739 (tui_display_registers_from_line): Update.
5740 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5741 method.
5742
0807ab7b
TT
57432019-07-17 Tom Tromey <tom@tromey.com>
5744
5745 PR tui/24722:
5746 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5747 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5748 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5749 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5750 (tui_update_breakpoint_info): Likewise.
5751 * tui/tui-hooks.c (tui_event_create_breakpoint)
5752 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5753 Update.
5754
9ad7fdef
TT
57552019-07-17 Tom Tromey <tom@tromey.com>
5756
5757 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5758
5813316f
TT
57592019-07-17 Tom Tromey <tom@tromey.com>
5760
5761 * tui/tui-winsource.c (tui_update_source_window_as_is)
5762 (tui_update_source_windows_with_addr): Update.
5763 * tui/tui-source.h (tui_set_source_content)
5764 (tui_show_symtab_source): Add "win_info" parameter.
5765 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5766 parameter.
5767 (tui_show_symtab_source): Likewise.
5768
00e264e7
TT
57692019-07-17 Tom Tromey <tom@tromey.com>
5770
5771 * tui/tui-wingeneral.c
5772 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5773
06210ce4
TT
57742019-07-17 Tom Tromey <tom@tromey.com>
5775
5776 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5777 (struct tui_cmd_window) <can_scroll>: New method.
5778 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5779 method.
5780
381befee
TT
57812019-07-17 Tom Tromey <tromey@adacore.com>
5782
5783 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5784 do_field_signed>: Rename. Change type of "value".
5785 * ui-out.c (ui_out::field_signed): Rename from field_int.
5786 Change type of "value".
5787 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5788 type of "value".
5789 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5790 do_field_int. Change type of "value".
5791 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5792 do_field_int. Change type of "value".
5793 * tracepoint.c (trace_status_mi, tfind_1)
5794 (print_one_static_tracepoint_marker): Update.
5795 * thread.c (print_thread_info_1, print_selected_thread_frame):
5796 Update.
5797 * stack.c (print_frame, print_frame_info): Update.
5798 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5799 Update.
5800 * source.c (print_source_lines_base): Update.
5801 * skip.c (info_skip_command): Update.
5802 * record-btrace.c (btrace_ui_out_decode_error)
5803 (btrace_call_history_src_line): Update.
5804 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5805 Update.
5806 * progspace.c (print_program_space): Update.
5807 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5808 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5809 do_field_int. Change type of "value".
5810 * mi/mi-out.c (mi_ui_out::do_table_begin)
5811 (mi_ui_out::do_table_header): Update.
5812 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5813 type of "value".
5814 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5815 (mi_cmd_data_list_changed_registers, output_register)
5816 (mi_cmd_data_read_memory, mi_load_progress)
5817 (mi_cmd_trace_frame_collected): Update.
5818 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5819 Update.
5820 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5821 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5822 (mi_cmd_var_list_children, varobj_update_one): Update.
5823 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5824 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5825 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5826 * inferior.c (print_inferior): Update.
5827 * gdb_bfd.c (print_one_bfd): Update.
5828 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5829 Update.
5830 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5831 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5832 do_field_int. Change type of "value".
5833 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5834 do_field_int. Change type of "value".
5835 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5836 (print_one_breakpoint_location, print_it_catch_fork)
5837 (print_one_catch_fork, print_it_catch_vfork)
5838 (print_one_catch_vfork, print_it_catch_solib)
5839 (print_it_catch_exec, print_it_ranged_breakpoint)
5840 (print_mention_watchpoint, print_mention_masked_watchpoint)
5841 (bkpt_print_it, update_static_tracepoint): Update.
5842 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5843 * break-catch-syscall.c (print_it_catch_syscall): Update.
5844 * ada-tasks.c (print_ada_task_info): Update.
5845 * ada-lang.c (print_it_exception, print_mention_exception):
5846 Update.
5847
6b78c3f8
AB
58482019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5849
5850 PR breakpoints/24541
5851 * gdbarch.c: Regenerate.
5852 * gdbarch.h: Regenerate.
5853 * gdbarch.sh: Adjust return type and parameter types for
5854 'stap_adjust_register'.
5855 (i386_stap_adjust_register): Adjust signature and return new
5856 register name.
5857 * stap-probe.c (stap_parse_register_operand): Adjust use of
5858 'gdbarch_stap_adjust_register'.
5859
d72a9b85
TT
58602019-07-17 Tom Tromey <tromey@adacore.com>
5861
5862 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5863 declare VEC.
5864 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5865 std::vector.
5866 (struct s390_process_info): Add initializers.
5867 (s390_add_process): Use new.
5868 (s390_linux_nat_target::low_forget_process): Use delete.
5869 (s390_linux_nat_target::low_new_fork)
5870 (s390_linux_nat_target::stopped_by_watchpoint)
5871 (s390_linux_nat_target::low_prepare_to_resume)
5872 (s390_linux_nat_target::insert_watchpoint)
5873 (s390_linux_nat_target::insert_hw_breakpoint)
5874 (s390_linux_nat_target::remove_watchpoint)
5875 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5876
206e6c58
JB
58772019-07-16 John Baldwin <jhb@FreeBSD.org>
5878
5879 * aarch64-fbsd-nat.c: Include regcache.h.
5880 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5881 argument.
5882 (aarch64_fbsd_nat_target::fetch_registers)
5883 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5884 variable.
5885 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5886
cbde90f2
JB
58872019-07-16 John Baldwin <jhb@FreeBSD.org>
5888
5889 * fbsd-nat.c: Include gdbarch.h.
5890
07128006
TT
58912019-07-15 Tom Tromey <tromey@adacore.com>
5892
5893 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5894
1f77b012
TT
58952019-07-15 Tom Tromey <tromey@adacore.com>
5896
5897 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5898 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5899 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5900 * cli-out.c (cli_ui_out::do_field_int): New method.
5901 * ui-out.c (ui_out::field_unsigned): New method.
5902 * symfile.c (generic_load): Use field_unsigned.
5903 (print_transfer_performance): Likewise.
5904 * record-btrace.c (ui_out_field_uint): Remove.
5905 (btrace_call_history_insn_range, btrace_call_history): Use
5906 field_unsigned.
5907 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5908 field_unsigned.
5909 * ui-out.h (class ui_out) <field_unsigned>: New method.
5910 <do_field_unsigned>: Likewise.
5911
33eca680
TT
59122019-07-15 Tom Tromey <tromey@adacore.com>
5913
5914 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5915 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5916 * target.c (flash_erase_command): Use field_string.
5917 * infrun.c (print_signal_received_reason): Use field_string.
5918 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5919 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5920 field_string.
5921 * ada-tasks.c (print_ada_task_info): Use field_string.
5922
ca8d69be
TT
59232019-07-15 Tom Tromey <tromey@adacore.com>
5924
5925 * target.c (flash_erase_command): Use field_core_addr.
5926 * symfile.c (generic_load): Use field_core_addr.
5927 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5928 Use field_core_addr.
5929 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5930 field_core_addr.
5931
0d4e84ed
AB
59322019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5933
5934 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5935 value if its desired type is smaller than a CORE_ADDR and signed.
5936
9a49df9d
AB
59372019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5938
5939 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5940 of changes to field names, and use new is_reference field to
5941 decide if a property is a reference or not.
5942 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5943 field.
5944 (struct dwarf2_property_baton): Update header comment, rename
5945 'referenced_type' to 'property_type' and update comments.
5946 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5947 default property type, store in property baton, update to take
5948 accound of renamed field.
5949 (read_func_scope): Update call to attr_to_dynamic_prop.
5950 (read_array_type): Likewise.
5951 (dwarf2_per_cu_addr_sized_int_type): New function.
5952 (read_subrange_index_type): Move type finding code to
5953 dwarf2_per_cu_addr_sized_int_type.
5954 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5955 (dwarf2_per_cu_addr_type): New function.
5956 (set_die_type): Update calls to attr_to_dynamic_prop.
5957
b86352cf
AB
59582019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5959
5960 * dwarf2read.c (read_subrange_index_type): New function.
5961 (read_subrange_type): Move code into new function and call it.
5962 * gdbtypes.c (create_range_type): Add some asserts.
5963
603490bf
AB
59642019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5965
5966 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5967 update return statements.
5968 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5969 declaration, and update comment to match.
5970 * gdbtypes.c (resolve_dynamic_array): Update call to
5971 dwarf2_evaluate_property to match new return type.
5972
592f9d27
AB
59732019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5974
5975 * valarith.c (value_subscripted_rvalue): Change lowerbound
5976 parameter type from int to LONGEST.
5977 * value.h (value_subscripted_rvalue): Likewise in declaration.
5978
60cfcb20
AB
59792019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5980
5981 * cli/cli-utils.c (info_print_command_completer): New function.
5982 * cli/cli-utils.h: Add 'completer.h' include, and forward
5983 declaration for 'struct cmd_list_element'.
5984 (info_print_command_completer): Declare.
5985 * stack.c (_initialize_stack): Add completer for 'info locals' and
5986 'info args'.
5987 * symtab.c (_initialize_symtab): Add completer for 'info
5988 variables' and 'info functions'.
5989 * NEWS: Mention completion for additional info commands.
5990
b16507e0
AB
59912019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5992
5993 * cli/cli-utils.c (extract_info_print_args): Delete.
5994 (extract_arg_maybe_quoted): Delete.
5995 (info_print_options_defs): New variable.
5996 (make_info_print_options_def_group): New function.
5997 (extract_info_print_options): Define new function.
5998 * cli/cli-utils.h (extract_info_print_args): Delete.
5999 (struct info_print_options): New structure.
6000 (extract_info_print_options): Declare new function.
6001 * stack.c (info_locals_command): Update to use new
6002 extract_info_print_options, also add a header comment.
6003 (info_args_command): Likewise.
6004 * symtab.c (info_variables_command): Likewise.
6005 (info_functions_command): Likewise.
6006
021d8588
AB
60072019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6008
6009 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6010 to extract string arguments.
6011 * common/common-utils.c (extract_string_maybe_quoted): New function.
6012 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6013
b777eb6d
TT
60142019-07-11 Tom Tromey <tromey@adacore.com>
6015
6016 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6017 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6018 * top.h (gdbinit): Don't declare.
6019 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6020 into...
6021 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6022 * top.c (gdb_init): Don't call init_cli_cmds.
6023 (gdbinit): Remove.
6024 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6025
72ee03ff
TT
60262019-07-11 Tom Tromey <tromey@adacore.com>
6027
6028 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6029 after it has been moved.
6030
00db9531
SM
60312019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6032
6033 * valops.c (value_must_coerce_to_target): Change return type to
6034 bool.
6035 * value.h (value_must_coerce_to_target): Likewise.
6036
f2478a7e
SM
60372019-07-10 Simon Marchi <simon.marchi@efficios.com>
6038
6039 * breakpoint.c (is_hardware_watchpoint): Remove
6040 forward-declaration.
6041 (is_masked_watchpoint): Change return type to bool.
6042 (is_tracepoint): Likewise.
6043 (is_breakpoint): Likewise.
6044 (is_hardware_watchpoint): Likewise.
6045 (is_watchpoint): Likewise.
6046 (is_no_memory_software_watchpoint): Likewise.
6047 (is_catchpoint): Likewise.
6048 (breakpoint_1): Make FILTER parameter's return type bool.
6049 is_masked_watchpoint): Change return type to bool.
6050 (save_breakpoints): Make FILTER parameter's return type bool.
6051 * breakpoint.h (is_breakpoint): Change return type to bool.
6052 (is_watchpoint): Likewise.
6053 (is_catchpoint): Likewise.
6054 (is_tracepoint): Likewise.
6055
0d12e84c
TT
60562019-07-10 Tom Tromey <tom@tromey.com>
6057
6058 * defs.h: Don't include gdbarch.h.
6059 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6060 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6061 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6062 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6063 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6064 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6065 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6066 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6067 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6068 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6069 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6070 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6071 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6072 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6073 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6074 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6075 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6076 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6077 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6078 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6079 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6080 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6081 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6082 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6083 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6084 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6085 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6086
f06f1252
TT
60872019-07-10 Tom Tromey <tromey@adacore.com>
6088
6089 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6090 * breakpoint.c (init_ada_exception_breakpoint): Register as
6091 bp_catchpoint.
6092 (print_one_breakpoint_location, print_one_breakpoint): Use
6093 is_ada_exception_catchpoint.
6094 * ada-lang.c (class ada_catchpoint_location): Pass
6095 bp_loc_software_breakpoint to bp_location constructor.
6096 (is_ada_exception_catchpoint): New function.
6097
7a5d944b
TT
60982019-07-10 Tom Tromey <tromey@adacore.com>
6099
6100 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6101 VEC.
6102 (struct arm_exidx_entry): New method operator<.
6103 (struct arm_exidx_data) <section_maps>: Change type.
6104 (arm_exidx_data_free): Remove.
6105 (arm_exidx_data_key): Change type. Move lower.
6106 (arm_exidx_new_objfile): Update.
6107 (arm_compare_exidx_entries): Remove.
6108 (arm_find_exidx_entry, _initialize_arm_tdep)
6109
48c66e1d
TT
61102019-07-10 Tom Tromey <tromey@adacore.com>
6111
6112 * solib-spu.c (ocl_program_data_key): Change type.
6113 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6114 Update.
6115
a269fbf1
TT
61162019-07-10 Tom Tromey <tromey@adacore.com>
6117
6118 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6119 (struct solib_aix_inferior_data) <library_list>: Change type.
6120 (solib_aix_inferior_data_handle): Change type.
6121 (get_solib_aix_inferior_data): Update.
6122 (solib_aix_free_library_list): Remove.
6123 (library_list_start_library): Update.
6124 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6125 return type.
6126 (solib_aix_get_library_list)
6127 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6128 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6129
c294730c
TT
61302019-07-10 Tom Tromey <tromey@adacore.com>
6131
6132 * solib-dsbt.c (struct dsbt_info): Add initializers.
6133 (solib_dsbt_pspace_data): Change type.
6134 (dsbt_pspace_data_cleanup): Remove.
6135 (get_dsbt_info, _initialize_dsbt_solib): Update.
6136
9d52077d
TT
61372019-07-10 Tom Tromey <tromey@adacore.com>
6138
6139 * spu-tdep.c (spu_overlay_data): Change type.
6140 (spu_get_overlay_table, spu_overlay_new_objfile)
6141 (_initialize_spu_tdep): Update.
6142
22a20dca
TT
61432019-07-10 Tom Tromey <tromey@adacore.com>
6144
6145 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6146 destructor.
6147 (dbx_objfile_data_key): Change type and declare later.
6148 (DBX_SYMFILE_INFO): Rewrite.
6149 * dbxread.c (dbx_objfile_data_key): Change type.
6150 (dbx_symfile_init): Update.
6151 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6152 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6153 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6154
cb60f420
TT
61552019-07-10 Tom Tromey <tromey@adacore.com>
6156
6157 * jit.c (jit_program_space_key): Change type. Move lower.
6158 (get_jit_program_space_data): Update.
6159 (jit_program_space_data_cleanup): Remove.
6160 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6161 Update.
6162 (struct jit_program_space_data): Add initializers.
6163
51df2ae3
TT
61642019-07-10 Tom Tromey <tromey@adacore.com>
6165
6166 * solib-darwin.c (struct darwin_info): Add initializers.
6167 (solib_darwin_pspace_data): Change type.
6168 (darwin_pspace_data_cleanup): Remove.
6169 (get_darwin_info, _initialize_darwin_solib): Update.
6170
18101a35
TT
61712019-07-10 Tom Tromey <tromey@adacore.com>
6172
6173 * remote-sim.c (struct sim_inferior_data): Add initializers,
6174 constructor, and destructor.
6175 (sim_inferior_data_key): Change type. Move lower.
6176 (check_for_duplicate_sim_descriptor): Update.
6177 (get_sim_inferior_data): Use new. Update.
6178 (~sim_inferior_data_cleanup): Rename from
6179 sim_inferior_data_cleanup. Simplify.
6180 (gdbsim_close_inferior, simulator_command)
6181 (sim_command_completer, _initialize_remote_sim): Update.
6182 (next_pid, INITIAL_PID): Move earlier.
6183
05b08ac1
TT
61842019-07-10 Tom Tromey <tromey@adacore.com>
6185
6186 * python/python-internal.h (create_thread_object): Return
6187 gdbpy_ref.
6188 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6189 * python/py-inferior.c (struct threadlist_entry): Add
6190 constructor.
6191 <thread_obj>: Now a gdbpy_ref.
6192 (thread_to_thread_object): Update.
6193 (add_thread_object): Use new.
6194 (delete_thread_object): Use delete.
6195 (infpy_threads): Update.
6196 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6197 GIL.
6198
32372d80
TT
61992019-07-10 Tom Tromey <tromey@adacore.com>
6200
6201 * valops.c (value_cast): Specialize error message for Ada.
6202
5c458ae8
SM
62032019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6204
6205 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6206
4c462cb0
SM
62072019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6208
6209 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6210 bpstat_should_step): Return bool, adjust comments.
6211 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6212 bpstat_should_step): Likewise.
6213
89abbcc2
AH
62142019-07-10 Alan Hayward <alan.hayward@arm.com>
6215
6216 * features/Makefile: Use feature target descriptions for Arm.
6217 * features/arm/arm-core.c: Generate new file.
6218 * features/arm/arm-fpa.c: Likewise.
6219 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6220 * features/arm/arm-m-profile.c: Likewise.
6221 * features/arm/arm-vfpv2.c: Likewise.
6222 * features/arm/arm-vfpv3.c: Likewise.
6223 * features/arm/xscale-iwmmxt.c: Likewise.
6224 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6225
166a82be
AH
62262019-07-10 Alan Hayward <alan.hayward@arm.com>
6227
6228 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6229 ptrace earlier.
6230
9fb4c7e9
AH
62312019-07-10 Alan Hayward <alan.hayward@arm.com>
6232
6233 * features/aarch64-pauth.c: Regenerate.
6234
e2d0f980
SM
62352019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6236
6237 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6238 bool.
6239 (bpstat_what): Use false instead of 0.
6240
a38118e5
PA
62412019-07-09 Pedro Alves <palves@redhat.com>
6242
6243 * break-catch-throw.c (is_exception_catchpoint): New.
6244 * breakpoint.c (print_one_breakpoint_location): New parameter
6245 'raw_loc'. Handle it. Use
6246 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6247 looking at the breakpoint's type.
6248 (print_one_breakpoint): If handling "maint info breakpoints", also
6249 print locations of exception catchpoints.
6250 * breakpoint.h (is_exception_catchpoint): Declare.
6251
cb1e4e32
PA
62522019-07-09 Pedro Alves <palves@redhat.com>
6253
6254 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6255 "addr" field.
6256 (allocate_location_exception_catchpoint): New.
6257 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6258 (initialize_throw_catchpoint_ops): Install
6259 allocate_location_exception_catchpoint as allocate_location
6260 method.
6261 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6262 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6263 bp_loc_other.
6264 (breakpoint_address_is_meaningful): Delete.
6265 (bl_address_is_meaningful): New.
6266 (breakpoint_locations_match): Adjust comment.
6267 (bp_location_from_bp_type): New, factored out of...
6268 (bp_location::bp_location(breakpoint *)): ... this.
6269 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6270 factored out of...
6271 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6272 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6273 breakpoint_address_is_meaningful.
6274 (bp_locations_compare): Adjust comment.
6275 (update_global_location_list): Use bl_address_is_meaningful
6276 instead of breakpoint_address_is_meaningful.
6277 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6278 explicit.
6279 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6280 * python/py-breakpoint.c (bppy_get_location): No longer check
6281 whether location is null.
6282
b58a68fe
PA
62832019-07-09 Pedro Alves <palves@redhat.com>
6284
6285 PR c++/15468
6286 * breakpoint.c (print_one_breakpoint_location): Remove
6287 single-location assert.
6288
268a13a5
TT
62892019-07-09 Tom Tromey <tom@tromey.com>
6290
6291 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6292 * configure: Rebuild.
6293 * configure.ac: Change common to gdbsupport.
6294 * gdbsupport: Rename from common.
6295 * acinclude.m4: Change common to gdbsupport.
6296 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6297 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6298 gdbsupport.
6299 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6300 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6301 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6302 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6303 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6304 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6305 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6306 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6307 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6308 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6309 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6310 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6311 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6312 coff-pe-read.c, command.h, compile/compile-c-support.c,
6313 compile/compile-c.h, compile/compile-cplus-symbols.c,
6314 compile/compile-cplus-types.c, compile/compile-cplus.h,
6315 compile/compile-loc2c.c, compile/compile.c, completer.c,
6316 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6317 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6318 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6319 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6320 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6321 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6322 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6323 features/aarch64-core.c, features/aarch64-fpu.c,
6324 features/aarch64-pauth.c, features/aarch64-sve.c,
6325 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6326 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6327 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6328 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6329 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6330 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6331 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6332 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6333 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6334 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6335 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6336 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6337 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6338 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6339 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6340 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6341 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6342 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6343 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6344 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6345 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6346 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6347 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6348 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6349 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6350 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6351 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6352 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6353 minsyms.c, mips-linux-tdep.c, namespace.h,
6354 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6355 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6356 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6357 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6358 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6359 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6360 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6361 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6362 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6363 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6364 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6365 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6366 procfs.c, producer.c, progspace.h, psymtab.h,
6367 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6368 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6369 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6370 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6371 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6372 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6373 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6374 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6375 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6376 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6377 target-memory.c, target.c, target.h, target/waitstatus.c,
6378 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6379 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6380 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6381 unittests/array-view-selftests.c,
6382 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6383 unittests/common-utils-selftests.c,
6384 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6385 unittests/format_pieces-selftests.c,
6386 unittests/function-view-selftests.c,
6387 unittests/lookup_name_info-selftests.c,
6388 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6389 unittests/mkdir-recursive-selftests.c,
6390 unittests/observable-selftests.c,
6391 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6392 unittests/parse-connection-spec-selftests.c,
6393 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6394 unittests/scoped_fd-selftests.c,
6395 unittests/scoped_mmap-selftests.c,
6396 unittests/scoped_restore-selftests.c,
6397 unittests/string_view-selftests.c, unittests/style-selftests.c,
6398 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6399 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6400 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6401 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6402 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6403 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6404
5b0e2db4
AB
64052019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6406
6407 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6408 bool value.
6409 (decode_digits_ordinary): Set explicit_line field in sal.
6410 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6411 symtab_and_line that was set on an explicit line number in
6412 assembler code. Do always update the recorded symtab and line if
6413 we do skip the prologue.
6414
0ba852ab
AB
64152019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6416
6417 * breakpoint.c (set_breakpoint_location_function): Remove
6418 explicit_loc parameter.
6419 (momentary_breakpoint_from_master): Update call to
6420 set_breakpoint_location_function.
6421 (add_location_to_breakpoint): Likewise.
6422
b3a7d171
AB
64232019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6424
6425 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6426 required features based on default bfd type when no specific bfd
6427 is present.
6428
1f6f6e21
PW
64292019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6430
6431 * NEWS: Mention that GDB printf and eval commands can now print
6432 C-style and Ada-style convenience var strings without
6433 calling the inferior.
6434 * printcmd.c (printf_c_string): Locally print GDB internal var
6435 instead of transiting via the inferior.
6436 (printf_wide_c_string): Likewise.
6437
64382019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 6439
5862c886 6440 PR breakpoints/25011
ea142fbf
AH
6441 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6442
0598af48
TT
64432019-07-04 Tom Tromey <tom@tromey.com>
6444
6445 PR tui/24724:
6446 * tui/tui-winsource.c (tui_clear_source_content): Update.
6447 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6448 (tui_update_breakpoint_info): Update.
6449 (tui_set_exec_info_content): Update.
6450 * tui/tui-source.c (tui_set_source_content_nil): Update.
6451 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6452 has_break.
6453 * tui/tui-data.h (enum tui_bp_flag): New.
6454 (tui_bp_flags): New enum flags type.
6455 (struct tui_source_element) <break_mode>: Change type. Rename
6456 from has_break.
6457 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6458 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6459 constants.
6460 * tui/tui-winsource.h: Fix comment.
6461
350fab54
AH
64622019-07-04 Alan Hayward <alan.hayward@arm.com>
6463
6464 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6465 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6466 (store_fpregs_to_thread)
6467 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6468 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6469 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6470 (IWMMXT_REGS_SIZE): Add define.
6471 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6472 (fetch_vfp_regs, store_vfp_regs)
6473 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6474 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6475
f0452268
AH
64762019-07-04 Alan Hayward <alan.hayward@arm.com>
6477
6478 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6479 defines.
6480 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6481 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6482 (ARM_INT_REGISTER_SIZE): ...to this.
6483 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6484 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6485 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6486 (arm_linux_collect_gregset, supply_nwfpe_register)
6487 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6488 defines.
6489 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6490 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6491 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6492 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6493 (arm_return_in_memory, arm_store_return_value)
6494 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6495 (arm_record_ld_st_multiple): Likewise.
6496 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6497 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6498
e935475c
AH
64992019-07-04 Alan Hayward <alan.hayward@arm.com>
6500
6501 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6502 AARCH64_DISPLACED_MODIFIED_INSNS.
6503 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6504 (aarch64_displaced_step_copy_insn): Likewise.
6505 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6506 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6507 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6508 ARM_DISPLACED_MODIFIED_INSNS.
6509 * arm-tdep.c (arm_gdbarch_init): Likewise.
6510 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6511 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6512 (struct arm_displaced_step_closure): Use
6513 ARM_DISPLACED_MODIFIED_INSNS.
6514
df0bb381
AH
65152019-07-04 Alan Hayward <alan.hayward@arm.com>
6516
6517 * features/Makefile: Remove unused xml files.
6518 * features/aarch64.xml: Remove.
6519 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6520 * features/i386/amd64-avx-avx512.xml: Remove.
6521 * features/i386/amd64-avx-linux.xml: Remove.
6522 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6523 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6524 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6525 * features/i386/amd64-avx-mpx.xml: Remove.
6526 * features/i386/amd64-avx.xml: Remove.
6527 * features/i386/amd64-linux.xml: Remove.
6528 * features/i386/amd64-mpx-linux.xml: Remove.
6529 * features/i386/amd64-mpx.xml: Remove.
6530 * features/i386/amd64.xml: Remove.
6531 * features/i386/i386-avx-avx512-linux.xml: Remove.
6532 * features/i386/i386-avx-avx512.xml: Remove.
6533 * features/i386/i386-avx-linux.xml: Remove.
6534 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6535 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6536 * features/i386/i386-avx-mpx-linux.xml: Remove.
6537 * features/i386/i386-avx-mpx.xml: Remove.
6538 * features/i386/i386-avx.xml: Remove.
6539 * features/i386/i386-linux.xml: Remove.
6540 * features/i386/i386-mmx-linux.xml: Remove.
6541 * features/i386/i386-mmx.xml: Remove.
6542 * features/i386/i386-mpx-linux.xml: Remove.
6543 * features/i386/i386-mpx.xml: Remove.
6544 * features/i386/i386.xml: Remove.
6545 * features/i386/x32-avx-avx512-linux.xml: Remove.
6546 * features/i386/x32-avx-linux.xml: Remove.
6547 * features/i386/x32-linux.xml: Remove.
6548
edd6266a
AH
65492019-07-04 Alan Hayward <alan.hayward@arm.com>
6550
6551 * regformats/aarch64.dat: Remove.
6552 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6553 * regformats/i386/amd64-avx-linux.dat: Remove.
6554 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6555 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6556 * regformats/i386/amd64-linux.dat: Remove.
6557 * regformats/i386/amd64-mpx-linux.dat: Remove.
6558 * regformats/i386/amd64.dat: Remove.
6559 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6560 * regformats/i386/i386-avx-linux.dat: Remove.
6561 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6562 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6563 * regformats/i386/i386-linux.dat: Remove.
6564 * regformats/i386/i386-mmx-linux.dat: Remove.
6565 * regformats/i386/i386-mpx-linux.dat: Remove.
6566 * regformats/i386/i386.dat: Remove.
6567 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6568 * regformats/i386/x32-avx-linux.dat: Remove.
6569 * regformats/i386/x32-linux.dat: Remove.
6570
2b40fda7
AH
65712019-07-04 Alan Hayward <alan.hayward@arm.com>
6572
6573 * aarch64-tdep.c: Remove xml self tests.
6574 * amd64-linux-tdep.c: Likewise.
6575 * amd64-tdep.c: Likewise.
6576 * i386-linux-tdep.c: Likewise.
6577 * i386-tdep.c: Likewise.
6578
5f4ba3e7
PA
65792019-07-03 Pedro Alves <palves@redhat.com>
6580
6581 PR cli/24732
6582 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6583 (pipe_cmd_option_defs): New.
6584 (make_pipe_cmd_options_def_group): New.
6585 (pipe_command): Use gdb::option::process_options.
6586 (pipe_command_completer): New function.
6587 (_initialize_cli_cmds): Install completer for "pipe" command.
6588
3d9be6f5
PA
65892019-07-03 Pedro Alves <palves@redhat.com>
6590
6591 * cli/cli-option.c (union option_value) <string>: New field.
6592 (struct option_def_and_value): Add ctor, move ctor, dtor and
6593 use DISABLE_COPY_AND_ASSIGN.
6594 (option_def_and_value::clear_value): New.
6595 (parse_option, save_option_value_in_ctx, get_val_type_str)
6596 (add_setshow_cmds_for_options): Handle var_string.
6597 * cli-option.h (union option_def::var_address) <string>: New
6598 field.
6599 (struct string_option_def): New.
6600 * maint-test-options.c (struct test_options_opts): Add default
6601 ctor and use DISABLE_COPY_AND_ASSIGN.
6602 <string_opt>: New field.
6603 (test_options_opts::~test_options_opts): New.
6604 (test_options_opts::dump): Also dump "-string".
6605 (test_options_option_defs): Install "string.
6606
41fc454c
PA
66072019-07-03 Pedro Alves <palves@redhat.com>
6608
6609 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6610 option_value with a null enumeration.
6611 (complete_options): Save the option values in the context.
6612 (save_option_value_in_ctx): New, factored out from ...
6613 (process_options): ... here.
6614 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6615 of the function.
6616 * maint-test-options.c (test_options_opts::dump): New, factored
6617 out from ...
6618 (maintenance_test_options_command_mode): ... here.
6619 (maintenance_test_options_command_completion_result): Delete.
6620 (maintenance_test_options_command_completion_text): Update
6621 comment.
6622 (maintenance_show_test_options_completion_result): Change
6623 prototype. Just print
6624 maintenance_test_options_command_completion_text.
6625 (save_completion_result): New.
6626 (maintenance_test_options_completer_mode): Pass options context to
6627 complete_options, and then save a dump.
6628 (_initialize_maint_test_options): Use add_cmd to install "maint
6629 show test-options-completion-result".
6630
fdbc9870
PA
66312019-07-03 Pedro Alves <palves@redhat.com>
6632
6633 * NEWS (New commands): Mention "with" and "maint with".
6634 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6635 (with_command, with_command_completer): New.
6636 (pipe_command): Adjust to new repeat_previous
6637 interface.
6638 (_initialize_cli_cmds): Install the "with" command and its "w"
6639 alias.
6640 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6641 declarations.
6642 * cli/cli-setshow.c (parse_cli_var_uinteger)
6643 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6644 argument strings for all var_types.
6645 (get_setshow_command_value_string): New, factored out from ...
6646 (do_show_command): ... this.
6647 * cli/cli-setshow.h: Include <string>.
6648 (get_setshow_command_value_string): Declare.
6649 * command.h (repeat_previous): Now returns const char *. Adjust
6650 comment.
6651 * maint.c: Include "cli/cli-cmds.h".
6652 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6653 (_initialize_maint_cmds): Register the "maintenance with" command.
6654 * top.c (repeat_previous): Move bits from pipe_command here:
6655 Return the saved command line, if any; error out if there's no
6656 command to relaunch.
6657
c6ac8931
PA
66582019-07-03 Pedro Alves <palves@redhat.com>
6659
6660 * NEWS (New commands): Mention "maint set/show test-settings"
6661 instead of "maint test-settings".
6662 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6663 (maintenance_test_settings_set_list): Rename to ...
6664 (maintenance_set_test_settings_list): ... this.
6665 (maintenance_test_settings_show_list): Rename to ...
6666 (maintenance_show_test_settings_list): ... this.
6667 (maintenance_test_settings_cmd): Delete.
6668 (maintenance_test_settings_set_cmd): ...
6669 (maintenance_set_test_settings_cmd): ... this.
6670 (maintenance_test_settings_show_cmd): ...
6671 (maintenance_show_test_settings_cmd): ... this.
6672 (maintenance_test_settings_show_value_cmd):
6673 (maintenance_show_test_settings_value_cmd): ... this.
6674 (_initialize_maint_test_settings): No longer install the "maint
6675 test-settings" prefix command. Rename "maint test-settings set"
6676 to "maint set test-settings", and "maint test-settings show" to
6677 "maint show test-settings". Adjust all subcommands.
6678
d1fcf2fd
PA
66792019-07-03 Pedro Alves <palves@redhat.com>
6680
6681 * maint-test-settings.c: Fix file's intro comment. Replace all
6682 references to "test-options" with references to "test-settings",
6683 in comments.
6684
970f9d09
PA
66852019-07-03 Pedro Alves <palves@redhat.com>
6686
6687 * maint-test-settings.c (maintenance_test_settings_xxx)
6688 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6689 New.
6690 (maintenance_test_settings_enums): Use them.
6691 (maintenance_test_settings_enum): Default to
6692 maintenance_test_settings_xxx.
6693 (_initialize_maint_test_settings): Initialize
6694 MAINTENANCE_TEST_SETTINGS_FILENAME.
6695
f3869b1a
SM
66962019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6697
6698 * breakpoint.h (remove_breakpoints_inf): Change return type to
6699 void, move function documentation here.
6700 * breakpoint.c (remove_breakpoints_inf): Change return type to
6701 void, move function documentation to header.
6702
54d66006
PA
67032019-07-02 Pedro Alves <palves@redhat.com>
6704
6705 * NEWS (Completion improvements): Mention "info threads".
6706 * thread.c (struct info_threads_opts, info_threads_option_defs)
6707 (make_info_threads_options_def_group): New.
6708 (info_threads_command): Use gdb::option::process_options.
6709 (info_threads_command_completer): New.
6710 (_initialize_thread): Use gdb::option::build_help to build the
6711 help text for "info threads".
6712
854f6088
SM
67132019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6714
6715 * defs.h (generic_load): Move from here...
6716 * symfile.h (generic_load): ... to here. Rename name parameter
6717 to args.
6718 * symfile.c (generic_load): Add comment.
6719
54ee4252
TT
67202019-07-01 Tom Tromey <tromey@adacore.com>
6721
6722 * dwarf2read.c
6723 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6724 declaration of without_params. Fix formatting.
6725
65392b3e
TT
67262019-07-01 Tom Tromey <tromey@adacore.com>
6727
6728 * ada-exp.y (find_primitive_type): Update.
6729 * ada-lang.h (ada_lookup_symbol): Update.
6730 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6731 parameter.
6732 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6733
7d7571f0
SDJ
67342019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6735
6736 PR breakpoints/24541
6737 * gdbarch.c: Regenerate.
6738 * gdbarch.h: Regenerate.
6739 * gdbarch.sh: Add 'stap_adjust_register'.
6740 * i386-tdep.c: Include '<unordered_set>'.
6741 (i386_stap_adjust_register): New function.
6742 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6743 * stap-probe.c (stap_parse_register_operand): Call
6744 'gdbarch_stap_adjust_register'.
6745
5af5392a
SDJ
67462019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6747
6748 PR python/24742
6749 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6750 * python/python.c (do_start_initialization): Use 'xmalloc'
6751 instead of 'PyMem_Malloc'.
6752
10d06d82
TT
67532019-06-28 Tom Tromey <tromey@adacore.com>
6754
6755 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6756 for Ada.
6757
1b7f24cd
TT
67582019-06-27 Tom Tromey <tromey@adacore.com>
6759
6760 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6761 objfile_key.
6762 (arm_find_mapping_symbol, arm_record_special_symbol)
6763 (_initialize_arm_tdep): Update.
6764 (arm_objfile_data_free): Remove.
6765
3d507ff2
TT
67662019-06-27 Tom Tromey <tromey@adacore.com>
6767
6768 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6769 to cp_print_static_field.
6770
762c164d
TT
67712019-06-26 Tom Tromey <tromey@adacore.com>
6772
6773 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6774 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6775 declare.
6776
aa2f9bcf
AH
67772019-06-26 Alan Hayward <alan.hayward@arm.com>
6778
6779 * features/aarch64-core.c (create_feature_aarch64_core):
6780 Regenerate.
6781 * features/aarch64-core.xml: Add cpsr flags.
6782
3426ae57
AH
67832019-06-26 Alan Hayward <alan.hayward@arm.com>
6784
6785 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6786 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6787
4838e44c
SM
67882019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6789
6790 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6791 field.
6792 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6793 use.
6794 (arm_record_special_symbol): Don't insert new symbol in sorted
6795 position, push it at the end.
6796
54cc7474
SM
67972019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6798
6799 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6800 (arm_mapping_symbol_s): Remove.
6801 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6802 (arm_mapping_symbol_vec): New typedef.
6803 (struct arm_per_objfile): Add constructor.
6804 <section_maps>: Change type to
6805 std::unique_ptr<arm_mapping_symbol_vec[]>.
6806 (arm_compare_mapping_symbols): Remove.
6807 (arm_find_mapping_symbol): Adjust to section_maps type change.
6808 (arm_objfile_data_free): Call delete on arm_per_objfile.
6809 (arm_record_special_symbol): Adjust to section_maps type change.
6810 Allocate arm_per_objfile with new.
6811
b65b566c
PW
68122019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6813
6814 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6815 with the command prefix.
6816
c2fc64f5
TT
68172019-06-25 Tom Tromey <tom@tromey.com>
6818
6819 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6820 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6821
fb54fa76
TT
68222019-06-25 Tom Tromey <tom@tromey.com>
6823
6824 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6825 type.
6826 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6827 protected.
6828
f7952c57
TT
68292019-06-25 Tom Tromey <tom@tromey.com>
6830
6831 * tui/tui-winsource.c
6832 (tui_source_window_base::set_is_exec_point_at): Add check against
6833 LOA_ADDRESS.
6834
17568d78
TT
68352019-06-25 Tom Tromey <tom@tromey.com>
6836
6837 * tui/tui-source.c (tui_set_source_content): Don't check before
6838 xfree.
6839 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6840
53e7cdba
TT
68412019-06-25 Tom Tromey <tom@tromey.com>
6842
6843 * tui/tui-winsource.h (tui_update_source_window_as_is)
6844 (tui_alloc_source_buffer, tui_line_is_displayed)
6845 (tui_addr_is_displayed): Change type of win_info.
6846 * tui/tui-winsource.c (tui_update_source_window_as_is)
6847 (tui_clear_source_content, tui_show_source_line)
6848 (tui_show_source_content, tui_source_window_base::refill)
6849 (tui_source_window_base::set_is_exec_point_at)
6850 (tui_source_window_base::set_is_exec_point_at)
6851 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6852 (tui_alloc_source_buffer, tui_line_is_displayed)
6853 (tui_addr_is_displayed): Change type of win_info. Update.
6854 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6855 (tui_source_window_base::do_make_visible_with_new_height):
6856 Update.
6857 * tui/tui-source.c (tui_set_source_content)
6858 (tui_set_source_content_nil)
6859 (tui_source_window::do_scroll_vertical): Update.
6860 * tui/tui-layout.c (show_layout): Update.
6861 * tui/tui-disasm.c (tui_set_disassem_content)
6862 (tui_disasm_window::do_scroll_vertical): Update.
6863 * tui/tui-data.h (tui_win_content): Remove.
6864 (struct tui_gen_win_info) <content, content_size>: Remove.
6865 (struct tui_source_element): Add initializers and destructor.
6866 (union tui_which_element, struct tui_win_element): Remove.
6867 (struct tui_source_window_base) <content>: New field.
6868 (struct tui_data_window): Remove destructor.
6869 (tui_alloc_content, tui_free_win_content)
6870 (tui_free_all_source_wins_content): Don't declare.
6871 * tui/tui-data.c (tui_initialize_static_data): Update.
6872 (init_content_element, tui_alloc_content): Remove.
6873 (~tui_gen_win_info): Update.
6874 (~tui_data_window, tui_free_all_source_wins_content)
6875 (tui_free_win_content, free_content, free_content_elements):
6876 Remove.
6877
7908abbf
TT
68782019-06-25 Tom Tromey <tom@tromey.com>
6879
6880 * tui/tui-winsource.h (tui_clear_source_content)
6881 (tui_erase_source_content, tui_show_source_content): Change type
6882 of win_info.
6883 * tui/tui-winsource.c (tui_clear_source_content)
6884 (tui_erase_source_content, tui_show_source_content): Change type
6885 of win_info.
6886 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6887 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6888 win_info.
6889 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6890 win_info.
6891 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6892
02c28df0
TT
68932019-06-25 Tom Tromey <tom@tromey.com>
6894
6895 * tui/tui-winsource.c (tui_clear_source_content)
6896 (tui_source_window_base::set_is_exec_point_at): Update.
6897 * tui/tui-source.c (tui_set_source_content_nil): Update.
6898 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6899 a bool.
6900 * tui/tui-data.c (init_content_element): Update.
6901
6658b1bf
TT
69022019-06-25 Tom Tromey <tom@tromey.com>
6903
6904 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6905 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6906 * tui/tui-layout.c (init_and_make_win): Update.
6907 * tui/tui.h (enum tui_win_type): Update.
6908 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6909 tui_win_is_auxillary.
6910 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6911 tui_win_is_auxillary.
6912
21e1c91e
TT
69132019-06-25 Tom Tromey <tom@tromey.com>
6914
6915 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6916 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6917 (tui_delete_data_content_windows, tui_display_all_data)
6918 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6919 Update.
6920 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6921 * tui/tui-regs.c (tui_last_regs_line_no)
6922 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6923 (tui_show_registers): Update.
6924 (tui_show_register_group): Return void. Update.
6925 (tui_display_registers_from, tui_display_reg_element_at_line)
6926 (tui_display_registers_from_line, tui_check_register_values):
6927 Update.
6928 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6929 member.
6930 (struct tui_data_window) <regs_content>: Now a std::vector.
6931 <regs_content_count>: Remove.
6932 (tui_add_content_elements, tui_free_data_content): Don't declare.
6933 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6934 (init_content_element): Remove DATA_WIN case. Add assert.
6935 (tui_add_content_elements): Remove.
6936 (tui_data_window): Update.
6937 (tui_free_data_content): Remove.
6938 (free_content_elements): Remove DATA_WIN case.
6939
115ac53b
TT
69402019-06-25 Tom Tromey <tom@tromey.com>
6941
6942 * tui/tui-data.c (tui_data_item_window): Update.
6943 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6944 * tui/tui-windata.c (tui_display_all_data)
6945 (tui_display_data_from_line): Update.
6946 (tui_check_data_values): Remove.
6947 * tui/tui-regs.c (tui_show_register_group)
6948 (tui_display_reg_element_at_line): Update.
6949 * tui/tui-hooks.c (tui_register_changed)
6950 (tui_refresh_frame_and_register_information): Call
6951 tui_check_register_values.
6952 * tui/tui-data.h (struct tui_data_window) <data_content,
6953 data_content_count, data_type>: Remove.
6954 (enum tui_data_type): Remove.
6955
6956 * tui/tui-data.c (tui_data_window::clear_detail)
6957 (~tui_data_window): Update.
6958
eaf9738b
TT
69592019-06-25 Tom Tromey <tom@tromey.com>
6960
6961 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6962 declare.
6963 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6964 Rename from tui_first_data_item_displayed. Update.
6965 (tui_data_window::refresh_all)
6966 (tui_data_window::do_scroll_vertical): Update.
6967 * tui/tui-data.h (struct tui_data_window)
6968 <first_data_item_displayed>: Declare new method.
6969
31ca4723
TT
69702019-06-25 Tom Tromey <tom@tromey.com>
6971
6972 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6973 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6974 contents...
6975 (tui_initialize_static_data): ...here.
6976
41bcff7f
TT
69772019-06-25 Tom Tromey <tom@tromey.com>
6978
6979 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6980 (tui_display_registers_from, tui_check_register_values): Update.
6981 (tui_display_register): Remove win_info parameter; update.
6982 (tui_get_register): Change type of parameters.
6983 * tui/tui-data.h (struct tui_data_element): Remove.
6984 (union tui_which_element) <data>: Remove.
6985 <data_window>: Change type.
6986 (struct tui_data_item_window): New.
6987 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6988 case. Add assert.
6989 (~tui_data_item_window): New destructor.
6990 (free_content_elements): Remove DATA_ITEM_WIN case.
6991
d2802c33
TT
69922019-06-25 Tom Tromey <tom@tromey.com>
6993
6994 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
6995 Remove.
6996
dd835f8b
TT
69972019-06-25 Tom Tromey <tom@tromey.com>
6998
6999 * tui/tui-data.h (struct tui_command_element): Remove.
7000 (union tui_which_element) <command>: Remove.
7001 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7002 assert.
7003 (free_content_elements): Remove CMD_WIN case.
7004
bd7db367
TT
70052019-06-25 Tom Tromey <tom@tromey.com>
7006
7007 * tui/tui-layout.c (tui_set_layout): Update.
7008 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7009 * tui/tui-data.c (layout_def): Update.
7010
3add462f
TT
70112019-06-25 Tom Tromey <tom@tromey.com>
7012
7013 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7014 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7015 (tui_source_window_base::set_new_height): Update.
7016 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7017 Update.
7018 (tui_set_locator_fullname, tui_set_locator_info)
7019 (tui_show_frame_info): Update.
7020 * tui/tui-source.c (tui_set_source_content)
7021 (tui_source_is_displayed): Update.
7022 * tui/tui-layout.c (show_source_disasm_command, show_data)
7023 (show_source_or_disasm_and_command): Update.
7024 * tui/tui-disasm.c (tui_set_disassem_content)
7025 (tui_get_begin_asm_address): Update.
7026 * tui/tui-data.h (struct tui_locator_element): Remove.
7027 (union tui_which_element) <locator>: Remove.
7028 (struct tui_locator_window): New.
7029 (tui_locator_win_info_ptr): Change return type.
7030 * tui/tui-data.c (_locator): Change type.
7031 (tui_locator_win_info_ptr): Change return type.
7032 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7033 (tui_alloc_content): Add assert.
7034
489e9d8b
TT
70352019-06-25 Tom Tromey <tom@tromey.com>
7036
7037 * tui/tui-winsource.c
7038 (tui_exec_info_window::maybe_allocate_content): New method.
7039 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7040 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7041 (make_source_or_disasm_window): Add cast.
7042 * tui/tui-data.h (union tui_which_element) <simple_string>:
7043 Remove.
7044 (struct tui_source_info): New.
7045 (struct tui_source_window_base) <execution_info>: Change type.
7046 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7047 case, and add assert.
7048 (tui_alloc_content): Add assert.
7049
c3fabb7d
TT
70502019-06-25 Tom Tromey <tom@tromey.com>
7051
7052 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7053 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7054 * tui/tui-data.c (tui_alloc_win_info): Remove.
7055
bbc228ee
TT
70562019-06-25 Tom Tromey <tom@tromey.com>
7057
7058 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7059 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7060 can_highlight.
7061
5fcee43a
TT
70622019-06-25 Tom Tromey <tom@tromey.com>
7063
7064 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7065 make_visible_with_new_height method.
7066 (tui_win_info::make_visible_with_new_height): New method.
7067 (tui_source_window_base::do_make_visible_with_new_height)
7068 (tui_data_window::do_make_visible_with_new_height)
7069 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7070 (make_visible_with_new_height): Remove.
7071 (tui_resize_all, tui_adjust_win_heights): Use
7072 make_visible_with_new_height method.
7073 * tui/tui-data.h (struct tui_win_info)
7074 <do_make_visible_with_new_height, make_visible_with_new_height>:
7075 New methods.
7076 (struct tui_source_window_base, struct tui_data_window)
7077 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7078 methods.
7079
d83f1fe6
TT
70802019-06-25 Tom Tromey <tom@tromey.com>
7081
7082 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7083 method.
7084 (update_tab_width): Call update_tab_width method.
7085 * tui/tui-data.h (struct tui_win_info)
7086 (struct tui_source_window_base) <update_tab_width>: New methods.
7087
17374de4
TT
70882019-06-25 Tom Tromey <tom@tromey.com>
7089
7090 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7091 parameter.
7092 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7093 parameter.
7094 (tui_gen_win_info::make_visible): Update.
7095 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7096 parameter.
7097 * tui/tui-data.h (enum tui_box): New enum.
7098 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7099
f936bca2
TT
71002019-06-25 Tom Tromey <tom@tromey.com>
7101
7102 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7103 init_and_make_win for EXEC_INFO_WIN.
7104 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7105 longer inline.
7106 (struct tui_win_info) <~tui_win_info>: Inline.
7107 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7108 Don't declare.
7109 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7110 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7111 Remove.
7112 (tui_initialize_static_data): Update.
7113 (~tui_gen_win_info): Handle more cleanup here.
7114 (~tui_source_window_base): Delete "execution_info".
7115 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7116
d6ba6a11
TT
71172019-06-25 Tom Tromey <tom@tromey.com>
7118
7119 * tui/tui-layout.c (make_command_window): Don't set
7120 can_highlight.
7121 (show_source_disasm_command): Call the reset method.
7122 (show_data): Don't set can_highlight. Call the reset method.
7123 (tui_gen_win_info::reset): Rename from init_gen_win_info
7124 (init_and_make_win): Simplify. Return tui_gen_win_info.
7125 (show_source_or_disasm_and_command): Call the reset method.
7126 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7127 (struct tui_cmd_window): Set can_highlight.
7128
48a3bd16
TT
71292019-06-25 Tom Tromey <tom@tromey.com>
7130
7131 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7132 from make_visible.
7133 (tui_make_visible, tui_make_invisible): Rewrite.
7134 (tui_win_info::make_visible): Remove.
7135 (tui_source_window_base::make_visible): Update.
7136 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7137 method. Moved from...
7138 (struct tui_win_info) <make_visible>: ...here.
7139
c3bd716f
TT
71402019-06-25 Tom Tromey <tom@tromey.com>
7141
7142 * tui/tui-winsource.c
7143 (tui_source_window_base::do_scroll_horizontal): Remove direction
7144 parameter.
7145 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7146 direction parameter.
7147 * tui/tui-win.c (tui_win_info::forward_scroll)
7148 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7149 (tui_win_info::right_scroll): Update.
7150 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7151 direction parameter.
7152 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7153 direction parameter.
7154 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7155 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7156 Remove direction parameter.
7157 (struct tui_source_window_base, struct tui_source_window)
7158 (struct tui_disasm_window, struct tui_data_window)
7159 (struct tui_cmd_window): Update.
7160
21c32dca
TT
71612019-06-25 Tom Tromey <tom@tromey.com>
7162
7163 * tui/tui-winsource.h (tui_set_exec_info_content)
7164 (tui_show_exec_info_content, tui_erase_exec_info_content)
7165 (tui_clear_exec_info_content, tui_update_exec_info): Change
7166 argument to tui_source_window_base.
7167 * tui/tui-winsource.c (tui_set_exec_info_content)
7168 (tui_show_exec_info_content, tui_erase_exec_info_content)
7169 (tui_clear_exec_info_content, tui_update_exec_info): Change
7170 argument to tui_source_window_base.
7171
73fbdc65
TT
71722019-06-25 Tom Tromey <tom@tromey.com>
7173
7174 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7175 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7176
33325343
TT
71772019-06-25 Tom Tromey <tom@tromey.com>
7178
7179 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7180 check.
7181
29d2c474
TT
71822019-06-25 Tom Tromey <tom@tromey.com>
7183
7184 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7185 type to void.
7186 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7187 type to void.
7188 * tui/tui-source.c (tui_set_source_content): Update.
7189 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7190
152f3f4b
TT
71912019-06-25 Tom Tromey <tom@tromey.com>
7192
7193 * tui/tui-win.c (window_name_completer, tui_set_focus)
7194 (tui_all_windows_info): Use name method.
7195 * tui/tui-data.h (struct tui_gen_win_info)
7196 (struct tui_source_window, struct tui_disasm_window)
7197 (struct tui_data_window, struct tui_cmd_window) <name>: New
7198 method.
7199 (tui_win_name): Don't declare.
7200 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7201 (tui_win_name): Remove.
7202
be4da588
TT
72032019-06-25 Tom Tromey <tom@tromey.com>
7204
7205 * tui/tui-winsource.h (tui_update_source_window)
7206 (tui_update_source_window_as_is): Change parameter type.
7207 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7208 to be a tui_source_window_base.
7209 (tui_update_source_window_as_is): Likewise.
7210 * tui/tui-win.c (make_visible_with_new_height): Update.
7211
5b81daba
TT
72122019-06-25 Tom Tromey <tom@tromey.com>
7213
7214 * tui/tui-winsource.c (tui_erase_source_content)
7215 (tui_show_source_content, tui_show_exec_info_content)
7216 (tui_erase_exec_info_content): Use refresh_window method.
7217 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7218 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7219 from tui_refresh_win.
7220 (tui_data_window::refresh_window): New method.
7221 (tui_win_info::refresh, tui_source_window_base::refresh)
7222 (tui_refresh_all): Use refresh_window method.
7223 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7224 method.
7225 * tui/tui-regs.c (tui_display_register): Call refresh_window
7226 method.
7227 * tui/tui-layout.c (show_source_disasm_command)
7228 (show_source_or_disasm_and_command): Call refresh_window method.
7229 * tui/tui-data.h (struct tui_gen_win_info)
7230 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7231 New method.
7232
cb2ce893
TT
72332019-06-25 Tom Tromey <tom@tromey.com>
7234
7235 * tui/tui.c (tui_rl_other_window, tui_enable)
7236 (tui_is_window_visible, tui_get_command_dimension): Update.
7237 * tui/tui-winsource.c (tui_update_source_window_as_is)
7238 (tui_clear_source_content, tui_erase_source_content)
7239 (tui_show_source_line, tui_source_window_base::refill)
7240 (tui_source_window_base::do_scroll_horizontal)
7241 (tui_source_window_base::set_is_exec_point_at)
7242 (tui_update_breakpoint_info, tui_set_exec_info_content)
7243 (tui_alloc_source_buffer, tui_line_is_displayed)
7244 (tui_addr_is_displayed): Update.
7245 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7246 (tui_check_and_display_highlight_if_needed)
7247 (tui_win_info::make_visible, tui_win_info::refresh)
7248 (tui_refresh_all): Update.
7249 * tui/tui-windata.c (tui_first_data_item_displayed)
7250 (tui_delete_data_content_windows, tui_erase_data_content)
7251 (tui_display_all_data, tui_data_window::refresh_all)
7252 (tui_check_data_values): Update.
7253 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7254 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7255 (tui_win_info::backward_scroll, tui_refresh_all_win)
7256 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7257 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7258 (tui_source_window_base::set_new_height)
7259 (tui_data_window::set_new_height)
7260 (make_invisible_and_set_new_height)
7261 (make_visible_with_new_height, new_height_ok)
7262 (parse_scrolling_args): Update.
7263 * tui/tui-stack.c (tui_show_frame_info): Update.
7264 * tui/tui-source.c (tui_set_source_content)
7265 (tui_set_source_content_nil, tui_source_is_displayed)
7266 (tui_source_window::do_scroll_vertical): Update.
7267 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7268 (tui_display_registers_from, tui_display_reg_element_at_line)
7269 (tui_check_register_values, tui_reg_command): Update.
7270 * tui/tui-layout.c (tui_default_win_height)
7271 (show_source_disasm_command, show_data, init_and_make_win)
7272 (show_source_or_disasm_and_command): Update.
7273 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7274 (tui_redisplay_readline, tui_mld_flush)
7275 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7276 (tui_getc): Update.
7277 * tui/tui-disasm.c (tui_set_disassem_content)
7278 (tui_disasm_window::do_scroll_vertical): Update.
7279 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7280 Now virtual.
7281 (struct tui_win_info): Derive from tui_gen_win_info.
7282 <~tui_win_info>: Mark as override.
7283 <generic>: Remove member.
7284 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7285 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7286 (~tui_data_window, ~tui_win_info)
7287 (tui_free_all_source_wins_content): Update.
7288 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7289
ab313b35
TT
72902019-06-25 Tom Tromey <tom@tromey.com>
7291
7292 * tui/tui-layout.c (init_and_make_win): Use new.
7293 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7294 destructor, initializers.
7295 (tui_alloc_generic_win_info): Don't declare.
7296 * tui/tui-data.c (_locator): Add argument to constructor.
7297 (source_win, disasm_win): New globals.
7298 (exec_info): Remove.
7299 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7300 Update.
7301 (tui_alloc_generic_win_info): Remove.
7302 (init_content_element): Use new.
7303 (tui_win_info::tui_win_info): Update.
7304 (free_content_elements) <case DATA_WIN>: Use delete.
7305
dc2c33e4
TT
73062019-06-25 Tom Tromey <tom@tromey.com>
7307
7308 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7309 * tui/tui-windata.c (tui_first_data_item_displayed)
7310 (tui_delete_data_content_windows): Update.
7311 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7312 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7313 (tui_display_registers_from, tui_check_register_values): Update.
7314 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7315 pointer.
7316 * tui/tui-data.c (init_content_element): Update. Allocate the new
7317 window.
7318 (tui_free_data_content): Update.
7319 (free_content_elements) <case DATA_WIN>: Free the window.
7320
214a5cbe
TT
73212019-06-25 Tom Tromey <tom@tromey.com>
7322
7323 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7324 Update.
7325 * tui/tui-layout.c (make_command_window)
7326 (show_source_disasm_command, show_data, init_and_make_win)
7327 (show_source_or_disasm_and_command): Update.
7328 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7329 method.
7330 <can_highight, is_highlighted>: Now bool.
7331 (tui_set_win_highlight): Don't declare.
7332 * tui/tui-data.c (tui_set_win_highlight): Remove.
7333
8e2daf15
TT
73342019-06-25 Tom Tromey <tom@tromey.com>
7335
7336 * tui/tui-wingeneral.c (make_visible): Remove check of window
7337 type.
7338
8903bd8a
TT
73392019-06-25 Tom Tromey <tom@tromey.com>
7340
7341 * tui/tui-win.c (tui_win_info::max_height)
7342 (tui_cmd_window::max_height): New methods.
7343 (new_height_ok): Call max_height.
7344 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7345 <max_height>: New method.
7346
3f02ce1e
TT
73472019-06-25 Tom Tromey <tom@tromey.com>
7348
7349 * tui/tui-win.c (tui_source_window_base::set_new_height)
7350 (tui_data_window::set_new_height): New methods.
7351 (make_invisible_and_set_new_height): Call set_new_height method.
7352 * tui/tui-data.h (struct tui_win_info)
7353 (struct tui_source_window_base, struct tui_data_window)
7354 <set_new_height>: New method.
7355
1825f487
TT
73562019-06-25 Tom Tromey <tom@tromey.com>
7357
7358 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7359 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7360 tui_refresh_data_win.
7361 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7362 method.
7363 (tui_refresh_all_win): Call the refresh_all method.
7364 (tui_set_focus): Likewise.
7365 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7366 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7367 Likewise.
7368
ad54d15b
TT
73692019-06-25 Tom Tromey <tom@tromey.com>
7370
7371 * tui/tui-winsource.h (tui_refill_source_window)
7372 (tui_set_is_exec_point_at): Don't declare.
7373 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7374 (tui_source_window_base::refill): Rename from
7375 tui_refill_source_window.
7376 (tui_source_window_base::do_scroll_horizontal): Update.
7377 (tui_source_window_base::set_is_exec_point_at): Rename from
7378 tui_set_is_exec_point_at.
7379 (tui_update_all_breakpoint_info): Update.
7380 * tui/tui-stack.c (tui_show_frame_info): Update.
7381 * tui/tui-layout.c (show_data): Add cast.
7382 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7383 * tui/tui-data.h (struct tui_source_window_base) <refill,
7384 set_is_exec_point_at>: New methods.
7385 (tui_source_windows, tui_add_to_source_windows): Update types.
7386 (tui_add_to_source_windows): Remove redundant declaration.
7387 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7388 (tui_source_windows): Change return type.
7389 (tui_clear_source_windows_detail): Update.
7390 (tui_add_to_source_windows): Change type of parameter.
7391 (tui_free_all_source_wins_content): Update.
7392
2042b506
TT
73932019-06-25 Tom Tromey <tom@tromey.com>
7394
7395 * tui/tui-wingeneral.c (tui_win_info::refresh)
7396 (tui_source_window_base::refresh): New methods.
7397 (tui_refresh_all): Call the refresh method.
7398 * tui/tui-data.h (struct tui_win_info)
7399 (struct tui_source_window_base) <refresh>: New method.
7400
56122977
TT
74012019-06-25 Tom Tromey <tom@tromey.com>
7402
7403 * tui/tui.h (tui_is_window_visible): Return bool.
7404 * tui/tui.c (tui_is_window_visible): Return bool.
7405 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7406 (tui_make_visible, tui_make_invisible)
7407 (tui_win_info::make_visible)
7408 (tui_source_window_base::make_visible, make_all_visible)
7409 (tui_make_all_visible, tui_make_all_invisible): Update.
7410 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7411 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7412 bool.
7413 (struct tui_win_info, struct tui_source_window_base)
7414 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7415 * tui/tui-data.c (tui_init_generic_part): Update.
7416
cda37efb
TT
74172019-06-25 Tom Tromey <tom@tromey.com>
7418
7419 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7420 (tui_source_window_base::make_visible): New methods.
7421 (make_all_visible): Make method call.
7422 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7423 (struct tui_source_window_base, struct tui_cmd_window): Override
7424 make_visible.
7425 (tui_win_is_source_type): Don't declare.
7426 * tui/tui-data.c (tui_win_is_source_type): Remove.
7427
6a0ee02c
TT
74282019-06-25 Tom Tromey <tom@tromey.com>
7429
7430 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7431 NULL check.
7432
63901aec
TT
74332019-06-25 Tom Tromey <tom@tromey.com>
7434
7435 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7436 Inline constructor. Add initializers for members.
7437 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7438 constructors; now inline in class.
7439
ceb13a13
TT
74402019-06-25 Tom Tromey <tom@tromey.com>
7441
7442 * tui/tui-regs.c (tui_show_registers): Update.
7443 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7444 bool.
7445 * tui/tui-data.c (tui_data_window::clear_detail)
7446 (tui_data_window): Update.
7447
238eb706
TT
74482019-06-25 Tom Tromey <tom@tromey.com>
7449
7450 * tui/tui-windata.c (tui_display_all_data)
7451 (tui_display_data_from_line, tui_display_data_from)
7452 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7453 Update.
7454 * tui/tui-regs.c (tui_last_regs_line_no)
7455 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7456 (tui_show_registers, tui_show_register_group)
7457 (tui_display_registers_from, tui_display_reg_element_at_line)
7458 (tui_display_registers_from_line, tui_check_register_values)
7459 (tui_reg_next, tui_reg_prev): Update.
7460 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7461 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7462 tui_data_window.
7463 (struct tui_win_info) <detail>: Remove. Add new fields from
7464 tui_data_info.
7465 (TUI_DATA_WIN): Add cast.
7466 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7467 (~tui_data_window): Simplify.
7468
81491aa0
TT
74692019-06-25 Tom Tromey <tom@tromey.com>
7470
7471 * tui/tui-layout.c (show_source_disasm_command)
7472 (show_source_or_disasm_and_command): Update.
7473 * tui/tui-io.c (update_cmdwin_start_line)
7474 (tui_redisplay_readline): Update.
7475 * tui/tui-data.h (struct tui_command_info): Remove.
7476 (struct tui_win_info) <detail>: Remove command_info member.
7477 (struct tui_data_window) <start_line>: New member, from
7478 tui_command_info.
7479 (TUI_CMD_WIN): Add casts.
7480
e6e41501
TT
74812019-06-25 Tom Tromey <tom@tromey.com>
7482
7483 * tui/tui-winsource.c (tui_update_source_window)
7484 (tui_refill_source_window)
7485 (tui_source_window_base::do_scroll_horizontal)
7486 (tui_update_breakpoint_info, tui_set_exec_info_content)
7487 (tui_show_exec_info_content, tui_erase_exec_info_content)
7488 (tui_clear_exec_info_content): Update.
7489 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7490 Update.
7491 * tui/tui-win.c (make_invisible_and_set_new_height)
7492 (make_visible_with_new_height): Update.
7493 * tui/tui-source.c (tui_set_source_content)
7494 (tui_show_symtab_source): Update.
7495 * tui/tui-layout.c (extract_display_start_addr)
7496 (show_source_disasm_command, show_data)
7497 (make_source_or_disasm_window)
7498 (show_source_or_disasm_and_command): Update.
7499 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7500 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7501 "gdbarch".
7502 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7503 to tui_source_window_base.
7504 (struct tui_win_info) <detail>: Remove source_info member.
7505 (struct tui_source_window_base) <has_locator>: Inline.
7506 Move contents from tui_source_info; rename has_locator member to
7507 m_has_locator.
7508 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7509 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7510 header file.
7511 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7512 Simplify.
7513 (tui_free_all_source_wins_content): Cast to
7514 tui_source_window_base.
7515
44f0e208
TT
75162019-06-25 Tom Tromey <tom@tromey.com>
7517
7518 * tui/tui-win.c (make_invisible_and_set_new_height)
7519 (make_visible_with_new_height): Call has_locator method.
7520 * tui/tui-layout.c (show_source_disasm_command, show_data)
7521 (show_source_or_disasm_and_command): Update for bool change.
7522 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7523 (tui_win_info) <has_locator>: New method.
7524 (struct tui_source_window_base) <has_locator>: New method.
7525 (tui_win_has_locator): Don't declare.
7526 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7527 from tui_win_has_locator.
7528 (tui_source_window_base): Use false, not FALSE.
7529
7778b912
TT
75302019-06-25 Tom Tromey <tom@tromey.com>
7531
7532 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7533 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7534 clear_detail method directly.
7535 (tui_clear_win_detail): Remove.
7536
f83d391c
TT
75372019-06-25 Tom Tromey <tom@tromey.com>
7538
7539 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7540 "this", not TUI_DISASM_WIN.
7541
13446e05
TT
75422019-06-25 Tom Tromey <tom@tromey.com>
7543
7544 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7545 declare.
7546 * tui/tui-winsource.c
7547 (tui_source_window_base::do_scroll_horizontal): Rename from
7548 tui_horizontal_source_scroll.
7549 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7550 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7551 from tui_vertical_data_scroll.
7552 * tui/tui-win.h (tui_scroll): Don't declare.
7553 * tui/tui-win.c (tui_win_info::forward_scroll)
7554 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7555 (tui_win_info::right_scroll): Rename and update.
7556 (tui_scroll_forward_command, tui_scroll_backward_command)
7557 (tui_scroll_left_command, tui_scroll_right_command): Update.
7558 (tui_scroll): Remove.
7559 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7560 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7561 from tui_vertical_source_scroll.
7562 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7563 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7564 from tui_vertical_disassem_scroll.
7565 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7566 do_scroll_horizontal>: New methods.
7567 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7568 Likewise.
7569 (struct tui_source_window_base): Add do_scroll_horizontal.
7570 (struct tui_source_window, struct tui_disasm_window): Add
7571 do_scroll_vertical.
7572 (struct tui_data_window, struct tui_cmd_window): Add
7573 do_scroll_horizontal and do_scroll_vertical.
7574 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7575
5cf82909
TT
75762019-06-25 Tom Tromey <tom@tromey.com>
7577
7578 * tui/tui-data.h (struct tui_source_window_base): New struct.
7579 (struct tui_source_window): Derive from tui_source_window_base.
7580 (struct tui_disasm_window): New struct.
7581 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7582 from tui_source_window::clear_detail.
7583 (tui_source_window_base): Rename from tui_source_window.
7584 (~tui_source_window_base): Rename from ~tui_source_window.
7585 (tui_alloc_win_info): Create a tui_disasm_window.
7586
ee1d42d6
TT
75872019-06-25 Tom Tromey <tom@tromey.com>
7588
7589 * tui/tui-data.h (struct tui_source_window)
7590 (struct tui_data_window): Declare destructors.
7591 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7592 destructors.
7593 (tui_win_info): Simplify.
7594
b4eb2452
TT
75952019-06-25 Tom Tromey <tom@tromey.com>
7596
7597 * tui/tui-winsource.c (tui_display_main)
7598 (tui_update_source_windows_with_addr)
7599 (tui_update_all_breakpoint_info): Update.
7600 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7601 (new_height_ok, parse_scrolling_args): Update.
7602 * tui/tui-stack.c (tui_show_frame_info): Update.
7603 * tui/tui-data.h (struct tui_list): Remove.
7604 (tui_source_windows): Return a reference to a std::vector.
7605 * tui/tui-data.c (source_windows): Now a std::vector.
7606 (tui_source_windows): Change return type.
7607 (tui_clear_source_windows): Rewrite.
7608 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7609 (tui_free_all_source_wins_content): Rewrite.
7610
8761a91b
TT
76112019-06-25 Tom Tromey <tom@tromey.com>
7612
7613 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7614 (struct tui_data_window, struct tui_cmd_window): Declare
7615 clear_detail method.
7616 * tui/tui-data.c (tui_source_window::clear_detail)
7617 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7618 methods.
7619 (tui_clear_win_detail): Simplify.
7620
0ed69eda
TT
76212019-06-25 Tom Tromey <tom@tromey.com>
7622
7623 * tui/tui-layout.c (make_source_window, make_disasm_window)
7624 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7625 Return the new window.
7626 (show_source_disasm_command, show_data)
7627 (show_source_or_disasm_and_command): Update.
7628
82432e10
TT
76292019-06-25 Tom Tromey <tom@tromey.com>
7630
7631 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7632 parameter. Return the new window.
7633 (show_source_disasm_command): Update and remove NULL check.
7634 (show_source_or_disasm_and_command): Update.
7635
ec328aa5
TT
76362019-06-25 Tom Tromey <tom@tromey.com>
7637
7638 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7639
33b906ab
TT
76402019-06-25 Tom Tromey <tom@tromey.com>
7641
7642 * tui/tui-data.h (struct tui_win_info): Make constructor
7643 protected. Make destructor virtual. Add initializers.
7644 (tui_source_window, tui_data_window, tui_cmd_window): New
7645 classes.
7646 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7647 constructor. Add "type" parameter.
7648 (tui_source_window, tui_data_window, tui_cmd_window): New
7649 constructors.
7650 (tui_alloc_win_info): Instantiate the appropriate subclass.
7651
e7e11af4
TT
76522019-06-25 Tom Tromey <tom@tromey.com>
7653
7654 * tui/tui-win.c (tui_resize_all): Use delete.
7655 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7656 destructor.
7657 (tui_free_window): Don't declare.
7658 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7659 Update.
7660
6792b55e
TT
76612019-06-25 Tom Tromey <tom@tromey.com>
7662
7663 * tui/tui-data.h (struct tui_win_info): Add constructor.
7664 * tui/tui-data.c (tui_alloc_win_info): Use new.
7665 (tui_free_window): Use delete.
7666
f95675e1
TT
76672019-06-22 Tom Tromey <tom@tromey.com>
7668
7669 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7670 declare.
7671 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7672
5bff081c
TT
76732019-06-22 Tom Tromey <tom@tromey.com>
7674
7675 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7676 declare.
7677 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7678
47e3f474
TV
76792019-06-22 Tom de Vries <tdevries@suse.de>
7680
7681 * dwarf2read.c (create_addrmap_from_aranges)
7682 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7683 instead of '%zu'.
7684
fd5866f6
SM
76852019-06-21 Simon Marchi <simon.marchi@efficios.com>
7686
7687 * dwarf2read.h (dwarf2_section_info_def): Remove.
7688 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7689 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7690 std::vector<dwarf2_section_info>.
7691 (struct dwo_file) <~dwo_file>: Remove.
7692 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7693 types field.
7694 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7695 (dwarf2_read_debug_names): Likewise.
7696 (create_debug_types_hash_table): Change parameter type to
7697 array_view, adjust code accordingly.
7698 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7699 (partial_die_info::fixup): Likewise.
7700 (determine_prefix): Likewise.
7701 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7702
fb1eb2f9
SM
77032019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7704
7705 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7706 gdb_bfd_ref_ptr.
7707 <~dwo_file>: Remove call to gdb_bfd_unref.
7708 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7709 gdb_bfd_ref_ptr::get.
7710
51ac9db5
SM
77112019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7712
7713 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7714 type to htab_up.
7715 * dwarf2read.c (struct dwo_file): Initialize fields.
7716 <~dwo_file>: New.
7717 (free_dwo_file): Remove, move content to ~dwo_file.
7718 (struct dwo_file_deleter): Remove.
7719 (dwo_file_up>: Remove custom deleter.
7720 (free_dwo_files): Remove.
7721 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7722 dwo_files.
7723 (process_skeletonless_type_units): Call unique_ptr::get.
7724 (allocate_dwo_file_hash_table): Add deleter to created hash
7725 table. Change return type to htab_up.
7726 (lookup_dwo_file_slot): Don't memset dwo_file, call
7727 unique_ptr::get.
7728 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7729 (create_dwo_unit_in_dwp_v2): Likewise.
7730 (open_and_init_dwo_file): Likewise.
7731 (free_dwo_file_from_slot): Remove.
7732
dc4ccb6f
SM
77332019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7734
7735 * dwarf2read.h (struct dwarf2_section_info) <readin,
7736 is_virtual>: Change type to bool.
7737 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7738 true instead of 1.
7739
e6a1c5cb
TT
77402019-06-19 Tom Tromey <tom@tromey.com>
7741
7742 * tui/tui-data.h (tui_init_content_element): Don't declare.
7743
6f6ffbeb
TT
77442019-06-19 Tom Tromey <tom@tromey.com>
7745
7746 * tui/tui-data.h (tui_init_win_info): Don't declare.
7747
f23f598e
TV
77482019-06-19 Tom de Vries <tdevries@suse.de>
7749
7750 * dwarf2read.h (abstract_to_concrete): Change type to
7751 std::unordered_map<sect_offset, std::vector<sect_offset>,
7752 gdb::hash_enum<sect_offset>>.
7753
680e1bee
TT
77542019-06-19 Tom Tromey <tromey@adacore.com>
7755
7756 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7757 EVAL_AVOID_SIDE_EFFECTS specially.
7758
dcf37923
TT
77592019-06-19 Tom Tromey <tromey@adacore.com>
7760
7761 * source-cache.c (highlighter): New global.
7762 (source_cache::get_source_lines): Create a highlighter on demand.
7763
494986d5
AB
77642019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7765
7766 * defs.h (deprecated_interactive_hook): Delete declaration.
7767 * interps.c (clear_interpreter_hooks): Remove use of
7768 deprecated_interactive_hook.
7769 * top.c (deprecated_interactive_hook): Delete definition.
7770 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7771
3360b6e7
TV
77722019-06-18 Tom de Vries <tdevries@suse.de>
7773
7774 PR gdb/24515
7775 * dwarf2read.h (abstract_to_concrete): Change type from
7776 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7777 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7778 * dwarf2read.c (read_variable): Update.
7779 (dwarf2_fetch_die_loc_sect_off): Update.
7780
310b3441
TV
77812019-06-17 Tom de Vries <tdevries@suse.de>
7782
7783 PR gdb/24617
7784 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7785 accessing parent[parent_len - 1].
7786
ba9777be
PP
77872019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7788
7789 PR gdb/24364
7790 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7791 call dtrace_process_dof with NULL dof.
7792
2b9f6e89
TV
77932019-06-16 Tom de Vries <tdevries@suse.de>
7794
7795 PR gdb/24445
7796 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7797
431b3ead
TT
77982019-06-16 Tom Tromey <tom@tromey.com>
7799
7800 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7801 (make_all_visible): Use address of member.
7802
d04b44a1
TT
78032019-06-16 Tom Tromey <tom@tromey.com>
7804
7805 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7806 (tui_free_window, free_content, free_content_elements): Remove
7807 unnecessary cast.
7808 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7809 cast.
7810 * tui/tui-regs.c (tui_show_register_group)
7811 (tui_display_registers_from, tui_display_reg_element_at_line):
7812 Remove unnecessary cast.
7813
bf5142e7
AB
78142019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7815
7816 * linux-nat.c (normal_mask): Delete.
7817 (_initialize_linux_nat): Don't initialise normal_mask.
7818
c4973306
SM
78192019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7820
7821 PR gdb/24445
7822 * dwarf-index-write.h (write_psymtabs_to_index): Add
7823 dwz_basename parameter.
7824 * dwarf-index-write.c (write_gdbindex): Move file writing to
7825 write_gdbindex_1. Change return type void.
7826 (assert_file_size): Move up, remove filename parameter.
7827 (write_gdbindex_1): New function.
7828 (write_debug_names): Change return type to void, call
7829 assert_file_size.
7830 (struct index_wip_file): New struct.
7831 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7832 file logic to index_wip_file. Write index for dwz file if
7833 needed.
7834 (save_gdb_index_command): Pass basename of dwz file, if present.
7835 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7836 build-id of dwz file, if present.
7837 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7838 (dwarf2_get_dwz_file): Likewise.
7839 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7840 (dwarf2_get_dwz_file): Likewise.
7841
395f9c91
TT
78422019-06-16 Tom Tromey <tom@tromey.com>
7843
7844 * coffread.c (process_coff_symbol): Use xstrdup.
7845 * value.c (create_internalvar): Use xstrdup.
7846
cafb3438
TT
78472019-06-16 Tom Tromey <tom@tromey.com>
7848
7849 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7850 * breakpoint.c (stopin_command, stopat_command)
7851 (until_break_command, decode_location_default): Remove unnecessary
7852 cast.
7853 * utils.c (subset_compare): Remove unnecessary cast.
7854 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7855 cast.
7856 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7857 cast.
7858 * infcmd.c (path_command): Remove unnecessary cast.
7859 * coffread.c (decode_type): Remove unnecessary cast.
7860 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7861 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7862 * tui/tui-stack.c (tui_show_locator_content)
7863 (tui_show_frame_info): Remove unnecessary cast.
7864 * tui/tui-win.c (tui_scroll_forward_command)
7865 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7866 (parse_scrolling_args): Remove unnecessary cast.
7867 * tui/tui-data.c (init_win_info, tui_del_window)
7868 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7869 (free_content_elements): Remove unnecessary cast.
7870 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7871 unnecessary cast.
7872 * tui/tui-source.c (tui_set_source_content)
7873 (tui_vertical_source_scroll): Remove unnecessary cast.
7874 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7875 cast.
7876 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7877 * tui/tui-regs.c (tui_display_registers_from)
7878 (tui_display_register): Remove unnecessary cast.
7879 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7880 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7881 (make_visible): Remove unnecessary cast.
7882 * tui/tui-winsource.c (tui_erase_source_content)
7883 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7884 unnecessary cast.
7885 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7886 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7887 * stabsread.c (read_type, read_array_type, read_range_type):
7888 Remove unnecessary cast.
7889 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7890 (parse_symbol, parse_type, upgrade_type, parse_external)
7891 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7892 unnecessary cast.
7893 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7894
730ead81
TT
78952019-06-16 Tom Tromey <tom@tromey.com>
7896
7897 * tui/tui-data.c (tui_alloc_generic_win_info)
7898 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7899 checks.
7900
584a927c
AB
79012019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7902 Andrew Burgess <andrew.burgess@embecosm.com>
7903
7904 * f-typeprint.c (f_print_type): Don't return early for not
7905 associated or not allocated types.
7906 (f_type_print_varspec_suffix): Add print_rank parameter and print
7907 ranks of array types in case they dangling.
7908 (f_type_print_base): Add print_rank parameter.
7909
30056ea0
AB
79102019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7911
7912 * NEWS: Mention new MI commands.
7913 * break-catch-throw.c (enum exception_event_kind): Move to
7914 breakpoint.h.
7915 (print_mention_exception_catchpoint): Output text as a single
7916 message.
7917 (catch_exception_command_1): Rename to...
7918 (catch_exception_event): ...this, make non-static, update header
7919 command, and change some parameter types.
7920 (catch_catch_command): Update for changes to
7921 catch_exception_command_1.
7922 (catch_throw_command): Likewise.
7923 (catch_rethrow_command): Likewise.
7924 * breakpoint.c (enum exception_event_kind): Delete.
7925 * breakpoint.h (enum exception_event_kind): Moved here from
7926 break-catch-throw.c.
7927 (catch_exception_event): Declare.
7928 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7929 (mi_cmd_catch_throw): New function.
7930 (mi_cmd_catch_rethrow): New function.
7931 (mi_cmd_catch_catch): New function.
7932 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7933 'catch-catch' entries.
7934 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7935 (mi_cmd_catch_rethrow): Declare.
7936 (mi_cmd_catch_catch): Declare.
7937
ec8e2b6d
AB
79382019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7939
7940 * annotate.c (annotate_source_line): Change return type to void,
7941 update implementation to match.
7942 * annotate.h (annotate_source_line): Change return type to void,
7943 update header comment.
7944 * stack.c (print_frame_info): Don't change what frame information
7945 is printed based on whether annotations are on or not.
7946
0d3abd8c
AB
79472019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7948
7949 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7950 (annotate_source): Make static.
7951 (annotate_source_line): Moved from source.c and renamed from
7952 identify_source_line. Update the return type.
7953 * annotate.h (annotate_source): Delete declaration.
7954 (annotate_source_line): Declaration moved from source.h, and
7955 renamed from identify_source_line. Return type updated.
7956 * source.c (identify_source_line): Moved to annotate.c and renamed
7957 to annotate_source_line.
7958 (info_line_command): Remove check of annotation_level.
7959 * source.h (identify_source_line): Move declaration to annotate.h
7960 and rename to annotate_source_line.
7961 * stack.c: Add 'annotate.h' include.
7962 (print_frame_info): Remove check of annotation_level before
7963 calling annotate_source_line.
7964
00df30ae
AB
79652019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7966
7967 * source-cache.c (source_cache::get_plain_source_lines): Use
7968 open_source_file_with_line_charpos instead of just
7969 open_source_file, remove call to find_source_lines.
7970 (source_cache::get_source_lines): Likewise.
7971 * source.c (find_source_lines): Make static.
7972 (get_filename_and_charpos): Renamed into...
7973 (open_source_file_with_line_charpos): ..this along with changes to
7974 return a scoped_fd, and some other minor clean ups.
7975 (identify_source_line): Use open_source_file_with_line_charpos.
7976 (search_command_helper): Use open_source_file_with_line_charpos
7977 instead of just open_source_file, remove call to
7978 find_source_lines.
7979 * source.h (open_source_file_with_line_charpos): Declare new
7980 function.
7981 (find_source_lines): Delete declaration.
7982
afda45a2
AB
79832019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7984
7985 * source.c (get_filename_and_charpos): Remove fullname
7986 parameter.
7987 (identify_source_line): Update call to get_filename_and_charpos.
7988
0735b091
TT
79892019-06-14 Tom Tromey <tromey@adacore.com>
7990
7991 PR gdb/24502:
7992 * ui-style.h (skip_ansi_escape): Update comment.
7993 * ui-file.h (class no_terminal_escape_file): New class.
7994 * ui-file.c (no_terminal_escape_file::write)
7995 (no_terminal_escape_file::puts): New methods.
7996 * cli/cli-logging.c (handle_redirections): Use
7997 no_terminal_escape_file.
7998
52ce35e2
TT
79992019-06-14 Tom Tromey <tromey@adacore.com>
8000
8001 * NEWS: Move convenience variable news above Python news.
8002
73cc7272
TT
80032019-06-14 Tom Tromey <tom@tromey.com>
8004
8005 * gnulib: Move directory to top-level.
8006 * configure.ac: Don't configure gnulib.
8007 * configure: Rebuild.
8008 * common/common-defs.h: Use new path to gnulib.
8009 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8010 (GNULIB_H): Remove.
8011 (INCGNU): Look in new gnulib location.
8012 (HFILES_NO_SRCDIR): Remove gnulib files.
8013 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8014 (generated_files): Remove GNULIB_H.
8015 ($(LIBGNU), all-lib): Remove targets.
8016 (distclean): Don't mention GNULIB_BUILDDIR.
8017 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8018
f5686554
TT
80192019-06-14 Tom Tromey <tromey@adacore.com>
8020
8021 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8022 Warn if symbol file does not provide any symbols.
8023
a0c1ffed
TT
80242019-06-14 Tom Tromey <tromey@adacore.com>
8025
8026 * source.c (find_and_open_source): Respect basenames_may_differ.
8027
7c39e397
AB
80282019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8029
8030 * annotate.c (annotate_breakpoints_invalid): Make use of
8031 scoped_restore_terminal_state.
8032 (annotate_frames_invalid): Likewise.
8033
f411722c
TT
80342019-06-14 Tom Tromey <tromey@adacore.com>
8035
8036 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8037 allow assignment to an internalvar.
8038
4268ec18
TT
80392019-06-14 Tom Tromey <tromey@adacore.com>
8040
8041 * ada-lex.l: Allow "_" in attribute names.
8042
abdb711e
TT
80432019-06-14 Tom Tromey <tromey@adacore.com>
8044
8045 PR gdb/24653:
8046 * regcache.c (registers_changed): Don't call alloca.
8047 * top.c (execute_command): Don't call alloca.
8048
4c048731
PA
80492019-06-13 Pedro Alves <palves@redhat.com>
8050
8051 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8052 'expression'. When parsing an expression, error out if there's
8053 junk after "unlimited".
8054 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8055 (do_set_command): Adjust calls to is_unlimited_literal.
8056
66eb1ed3
PA
80572019-06-13 Pedro Alves <palves@redhat.com>
8058
8059 * compile/compile.c (make_compile_options_def_group): Add braces
8060 around array_view initializer.
8061 * thread.c (make_thread_apply_all_options_def_group)
8062 (make_thread_apply_all_options_def_group): Likewise.
8063
3345721a
PA
80642019-06-13 Pedro Alves <palves@redhat.com>
8065
8066 * NEWS (New commands): Mention "maint test-options
8067 require-delimiter", "maint test-options unknown-is-error", "maint
8068 test-options unknown-is-operand" and "maint show
8069 test-options-completion-result".
8070 (New command options, command completion): New section.
8071 (Completion improvements): New section.
8072 Mention that you can abbreviate "unlimited".
8073
6206060d
PA
80742019-06-13 Pedro Alves <palves@redhat.com>
8075
8076 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8077 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8078 * unittests/cli-utils-selftests.c (test_parse_flags)
8079 (test_parse_flags_qcs): Delete.
8080 (test_cli_utils): Don't call deleted functions.
8081
6665660a
PA
80822019-06-13 Pedro Alves <palves@redhat.com>
8083
8084 * thread.c: Include "cli/cli-option.h".
8085 (tp_array_compar_ascending): Global.
8086 (tp_array_compar): Delete function.
8087 (tp_array_compar_ascending, tp_array_compar_descending): New
8088 functions.
8089 (ascending_option_def, qcs_flag_option_def)
8090 (thr_qcs_flags_option_defs)
8091 (make_thread_apply_all_options_def_group)
8092 (make_thread_apply_options_def_group): New.
8093 (thread_apply_all_command): Use gdb::option::process_options.
8094 (thread_apply_command_completer)
8095 (thread_apply_all_command_completer): New.
8096 (thread_apply_command): Use gdb::option::process_options.
8097 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8098 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8099 to generate help text of "thread apply". Adjust "taas"'s help.
8100 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8101 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8102
f7e13587
PA
81032019-06-13 Pedro Alves <palves@redhat.com>
8104
8105 * thread.c (thread_apply_command): Check for invalid TID with
8106 isdigit instead of !isalpha.
8107
5d707134
PA
81082019-06-13 Pedro Alves <palves@redhat.com>
8109
8110 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8111 (validate_flags_qcs): New.
8112 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8113 (validate_flags_qcs): Declare.
8114 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8115 (make_frame_apply_options_def_group): New.
8116 (frame_apply_command_count): Process options with
8117 gdb::option::process_options.
8118 (frame_apply_completer): New.
8119 (frame_apply_level_completer, frame_apply_all_completer)
8120 (frame_apply_completer): New.
8121 (_initialize_stack): Update help of "frame apply", "frame apply
8122 level", "frame apply all" and "faas" to mention supported options
8123 and install command completers.
8124 * stack.h (frame_apply_all_completer): Declare.
8125 * thread.c: Include "stack.h".
8126 (tfaas_command): Add "--".
8127 (_initialize_thread): Update help "tfaas" to mention supported
8128 options and install command completer.
8129
272d4594
PA
81302019-06-13 Pedro Alves <palves@redhat.com>
8131
8132 * completer.c (complete_nested_command_line): New.
8133 (gdb_completion_word_break_characters_throw): Add assertion.
8134 * completer.h (complete_nested_command_line): Declare.
8135
90a1ef87
PA
81362019-06-13 Pedro Alves <palves@redhat.com>
8137
8138 * stack.c (parse_backtrace_qualifiers): New.
8139 (backtrace_command): Use it.
8140 (backtrace_command_completer): Complete on qualifiers.
8141
d4c16835
PA
81422019-06-13 Pedro Alves <palves@redhat.com>
8143
8144 * frame.c: Include "cli/cli-option.h.
8145 (user_set_backtrace_options): New.
8146 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8147 Delete.
8148 (get_prev_frame): Adjust.
8149 (boolean_option_def, uinteger_option_def)
8150 (set_backtrace_option_defs): New.
8151 (_initialize_frame): Adjust and use
8152 gdb::option::add_setshow_cmds_for_options to install "set
8153 backtrace past-main" and "set backtrace past-entry".
8154 * frame.h: Include "cli/cli-option.h".
8155 (struct frame_print_options): Forward declare.
8156 (print_frame_arguments_all, print_frame_arguments_scalars)
8157 (print_frame_arguments_none): Declare.
8158 (print_entry_values): Delete declaration.
8159 (struct frame_print_options, user_frame_print_options): New.
8160 (struct set_backtrace_options): New.
8161 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8162 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8163 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8164 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8165 (list_args_or_locals): Add frame_print_options parameter.
8166 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8167 * python/py-framefilter.c (enumerate_args): Pass down
8168 USER_FRAME_PRINT_OPTIONS.
8169 * stack.c: Include "cli/cli-option.h".
8170 (print_frame_arguments_all, print_frame_arguments_scalars)
8171 (print_frame_arguments_none): Declare.
8172 (print_raw_frame_arguments, print_entry_values): Delete.
8173 (user_frame_print_options): New.
8174 (boolean_option_def, enum_option_def, frame_print_option_defs):
8175 New.
8176 (struct backtrace_cmd_options): New.
8177 (bt_flag_option_def): New.
8178 (backtrace_command_option_defs): New.
8179 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8180 (print_frame_arg, read_frame_arg, print_frame_args)
8181 (print_frame_info, print_frame): Add frame_print_options parameter
8182 and use it.
8183 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8184 (backtrace_command_1): Add frame_print_options and
8185 backtrace_cmd_options parameters and use them.
8186 (make_backtrace_options_def_group): New.
8187 (backtrace_command): Process command options with
8188 gdb::option::process_options.
8189 (backtrace_command_completer): New.
8190 (_initialize_stack): Extend "backtrace"'s help to mention
8191 supported options. Install completer for "backtrace".
8192 Install some settings commands with add_setshow_cmds_for_options.
8193
2daf894e
PA
81942019-06-13 Pedro Alves <palves@redhat.com>
8195
8196 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8197 and that "set/show print raw frame-arguments" are now deprecated.
8198
8199 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8200 command.
8201 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8202 * stack.c (_initialize_stack): Install "set/show print
8203 raw-frame-arguments", and deprecate "set/show print raw
8204 frame-arguments".
8205 * valprint.c (_initialize_valprint): Deprecate "set/show print
8206 raw".
8207
e6ed716c
PA
82082019-06-13 Pedro Alves <palves@redhat.com>
8209
8210 * compile/compile.c (struct compile_options): New.
8211 (compile_flag_option_def, compile_command_option_defs)
8212 (make_compile_options_def_group): New.
8213 (compile_file_command): Handle options with
8214 gdb::option::process_options.
8215 (compile_file_command_completer): New function.
8216 (compile_code_command): Handle options with
8217 gdb::option::process_options.
8218 (compile_code_command_completer): New function.
8219 (_initialize_compiler): Install completers for "compile code" and
8220 "compile file". Mention available options in "compile code" and
8221 "compile code"'s help.
8222 * completer.c (advance_to_completion_word): New, factored out from
8223 ...
8224 (advance_to_expression_complete_word_point): ... this.
8225 (advance_to_filename_complete_word_point): New.
8226 * completer.h (advance_to_filename_complete_word_point): New
8227 declaration.
8228
7d8062de
PA
82292019-06-13 Pedro Alves <palves@redhat.com>
8230
8231 * compile/compile.c: Include "cli/cli-option.h".
8232 (compile_print_value): Scope data pointer is now a
8233 value_print_options pointer; adjust.
8234 (compile_print_command): Process options. Scope data pointer is
8235 now a value_print_options pointer; adjust.
8236 (_initialize_compile): Update "compile print"'s help to include
8237 supported options. Install a completer for "compile print".
8238 * cp-valprint.c (show_vtblprint, show_objectprint)
8239 (show_static_field_print): Delete.
8240 (_initialize_cp_valprint): Don't install "set print
8241 static-members", "set print vtbl", "set print object" here.
8242 * printcmd.c: Include "cli/cli-option.h" and
8243 "common/gdb_optional.h".
8244 (print_command_parse_format): Rework to fill in a
8245 value_print_options instead of a format_data.
8246 (print_value): Change parameter type from format_data pointer to
8247 value_print_options reference. Adjust.
8248 (print_command_1): Process options. Adjust to pass down a
8249 value_print_options.
8250 (print_command_completer): New.
8251 (_initialize_printcmd): Install print_command_completer as
8252 handle_brkchars completer for the "print" command. Update
8253 "print"'s help to include supported options.
8254 * valprint.c: Include "cli/cli-option.h".
8255 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8256 here from cp-valprint.c.
8257 (boolean_option_def, uinteger_option_def)
8258 (value_print_option_defs, make_value_print_options_def_group):
8259 New. Use gdb::option::add_setshow_cmds_for_options to install
8260 "set print elements", "set print null-stop", "set print repeats",
8261 "set print pretty", "set print union", "set print array", "set
8262 print address", "set print symbol", "set print array-indexes".
8263 * valprint.h: Include <string> and "cli/cli-option.h".
8264 (make_value_print_options_def_group): Declare.
8265 (print_value): Change parameter type from format_data pointer to
8266 value_print_options reference.
8267 (print_command_completer): Declare.
8268
9d0faba9
PA
82692019-06-13 Pedro Alves <palves@redhat.com>
8270
8271 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8272 (COMMON_SFILES): Add maint-test-settings.c.
8273 * cli/cli-decode.c (boolean_enums): New global, factored out from
8274 ...
8275 (add_setshow_boolean_cmd): ... here.
8276 * cli/cli-decode.h (boolean_enums): Declare.
8277 * cli/cli-option.c: New file.
8278 * cli/cli-option.h: New file.
8279 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8280 factored out from ...
8281 (parse_cli_boolean_value(const char *)): ... this.
8282 (is_unlimited_literal): Change parameter type to pointer to
8283 pointer. Adjust and advance ARG pointer.
8284 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8285 (parse_cli_var_enum): New, factored out from ...
8286 (do_set_command): ... this. Adjust.
8287 * cli/cli-setshow.h (parse_cli_boolean_value)
8288 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8289 (parse_cli_var_enum): Declare.
8290 * cli/cli-utils.c: Include "cli/cli-option.h".
8291 (get_ulongest): New.
8292 * cli/cli-utils.h (get_ulongest): Declare.
8293 (check_for_argument): New overloads.
8294 * maint-test-options.c: New file.
8295
2c722807
PA
82962019-06-13 Pedro Alves <palves@redhat.com>
8297
8298 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8299 parse a range if "-" is at the end of the string.
8300
dee7b4c8
PA
83012019-06-13 Pedro Alves <palves@redhat.com>
8302
8303 * cli/cli-setshow.c (parse_auto_binary_operation)
8304 (parse_cli_boolean_value): Don't allow "o".
8305
dca0f6c0
PA
83062019-06-13 Pedro Alves <palves@redhat.com>
8307
8308 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8309 * NEWS: Mention maint test-settings KIND.
8310 * maint-test-settings.c: New file.
8311
597bf39d
PA
83122019-06-13 Pedro Alves <palves@redhat.com>
8313
8314 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8315 completer.
8316 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8317 "set" completers.
8318
48c410fb
PA
83192019-06-13 Pedro Alves <palves@redhat.com>
8320
8321 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8322 after item.
8323
93bcb043
PA
83242019-06-13 Pedro Alves <palves@redhat.com>
8325
8326 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8327
cbba3ecd
PA
83282019-06-13 Pedro Alves <palves@redhat.com>
8329
8330 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8331 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8332 call.
8333 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8334 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8335 calls.
8336 (check_for_argument): Skip spaces after argument.
8337
b9a3f842
PA
83382019-06-13 Pedro Alves <palves@redhat.com>
8339
8340 * thread.c (thread_apply_command): Adjust TID parsing.
8341 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8342 detected before end of string.
8343 (tid_is_in_list): Error out if LIST is invalid.
8344
3844e605
PA
83452019-06-13 Pedro Alves <palves@redhat.com>
8346
8347 * completer.c (complete_line_internal_1): Rewind completion word
8348 point.
8349 (completion_tracker::advance_custom_word_point_by): Change
8350 parameter type to int.
8351 * completer.h (completion_tracker::advance_custom_word_point_by):
8352 Likewise.
8353
00b56dbe
PA
83542019-06-13 Pedro Alves <palves@redhat.com>
8355
8356 * completer.c (advance_to_completion_word): Handle delimiters.
8357
d106773e
PA
83582019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8359
8360 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8361
08f10e02
TT
83622019-06-11 Tom Tromey <tom@tromey.com>
8363
8364 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8365 (xmalloc_failed): Move to alloc.c.
8366 * alloc.c: New file.
8367 * Makefile.in (COMMON_SFILES): Add alloc.c.
8368
1c7fe951
TT
83692019-06-11 Tom Tromey <tom@tromey.com>
8370
8371 * nat/linux-waitpid.c: Don't include server.h.
8372 (linux_debug): Remove.
8373 (my_waitpid): Update.
8374
89549d7f
TT
83752019-06-11 Tom Tromey <tromey@adacore.com>
8376
8377 * infcall.c (_initialize_infcall): Remove trailing newline from
8378 help.
8379 * user-regs.c (_initialize_user_regs): Remove trailing newline
8380 from help.
8381 * typeprint.c (_initialize_typeprint): Remove trailing newline
8382 from help.
8383 * reverse.c (_initialize_reverse): Remove trailing newlines from
8384 help.
8385 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8386 from help.
8387 * language.c (add_set_language_command): Remove trailing newline
8388 from help.
8389 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8390 help.
8391 * disasm.c (_initialize_disasm): Remove trailing newline from
8392 help.
8393 * top.c (init_main): Remove trailing newline from help.
8394 * interps.c (_initialize_interpreter): Remove trailing newline
8395 from help.
8396 * btrace.c (_initialize_btrace): Remove trailing newlines from
8397 help.
8398 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8399 from help.
8400 * python/python.c (_initialize_python): Remove trailing newline
8401 from help.
8402 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8403 help.
8404 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8405 from help. Reformat some text.
8406 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8407 from help.
8408 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8409 newline from help.
8410
86108c13
TT
84112019-06-11 Tom Tromey <tromey@adacore.com>
8412
8413 * darwin-nat.c (darwin_decode_exception_message)
8414 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8415
a7067863
AB
84162019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8417
8418 * valops.c (value_slice): Check for not allocated or not
8419 associated values.
8420
9ab08412
TV
84212019-06-10 Tom de Vries <tdevries@suse.de>
8422
8423 PR gdb/24618
8424 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8425 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8426 invalid.
8427
f19e22e9
TV
84282019-06-10 Tom de Vries <tdevries@suse.de>
8429
8430 PR gdb/24611
8431 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8432 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8433
e99f9db0
TV
84342019-06-10 Tom de Vries <tdevries@suse.de>
8435
8436 PR symtab/24545
8437 * symtab.c (struct demangled_name_entry): Add language field.
8438 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8439 static minimal symbol". Set and use language field.
8440
9bf7038b
TT
84412019-06-10 Tom Tromey <tromey@adacore.com>
8442
8443 * ada-lang.c (_initialize_ada_language): Update help text.
8444
422186a9
TT
84452019-06-10 Tom Tromey <tromey@adacore.com>
8446
8447 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8448 with a newline.
8449 * guile/guile.c (handle_boot_error): Don't end warning with a
8450 newline.
8451 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8452 warning with a newline.
8453 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8454 newline.
8455 (s12z_frame_cache): Likewise.
8456 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8457 a newline.
8458 * solib-svr4.c (disable_probes_interface): Don't end warning with
8459 a newline.
8460 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8461 newline.
8462 * python/python.c (do_finish_initialization): Don't end warning
8463 with a newline.
8464
25ce02ee
TT
84652019-06-10 Tom Tromey <tom@tromey.com>
8466
8467 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8468 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8469 gdbpy_enter.
8470
caa429d8
TT
84712019-06-10 Tom Tromey <tromey@adacore.com>
8472
8473 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8474 data.
8475 (elf_new_init): Don't call stabsread_new_init.
8476 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8477 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8478 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8479
81873cc8
TV
84802019-06-10 Tom de Vries <tdevries@suse.de>
8481
8482 PR symtab/16264
8483 PR symtab/24517
8484 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8485
4fa0265e
РИ
84862019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8487
8488 * source.c (find_and_open_source): Also rewrite relative file
8489 names.
8490
1a3da2cd
AB
84912019-04-26 Amos Bird <amosbird@gmail.com>
8492
8493 * annotate.c (annotate_thread_exited): Add "thread-exited"
8494 annotation.
8495
3847a7bf
TT
84962019-06-06 Tom Tromey <tromey@adacore.com>
8497
8498 * maint.h (class scoped_command_stats): Use
8499 DISABLE_COPY_AND_ASSIGN.
8500 <print_time>: New method.
8501 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8502 print_time.
8503 (scoped_command_stats::print_time): New method.
8504
312617a3
AB
85052019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8506
8507 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8508 instructions of lengths 6 or 8 bytes.
8509
b02f78f9
PA
85102019-06-04 Pedro Alves <palves@redhat.com>
8511
8512 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8513
8514 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8515 * breakpoint.c (condition_completer): Likewise.
8516 * cli/cli-dump.c (scan_expression): Likewise.
8517 * common/filestuff.c (mkdir_recursive): Likewise.
8518 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8519 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8520 (gdb_abspath): Likewise.
8521 * compile/compile-cplus-types.c
8522 (compile_cplus_instance::decl_name): Likewise.
8523 * completer.c (complete_explicit_location):
8524 (signal_completer, reg_or_group_completer_1): Likewise.
8525 * cp-support.c (cp_remove_params_if_any): Likewise.
8526 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8527 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8528 * infcmd.c (strip_bg_char): Likewise.
8529 * linespec.c (copy_token_string): Likewise.
8530 * mi/mi-main.c (output_cores): Likewise.
8531 * psymtab.c (psymtab_search_name):
8532 * symfile.c (test_set_ext_lang_command): Likewise.
8533 * target.c (target_fileio_read_stralloc): Likewise.
8534 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8535 * value.c (complete_internalvar): Likewise.
8536
e1f2e1a2
CB
85372019-06-04 Christian Biesinger <cbiesinger@google.com>
8538
8539 Add objfile property to gdb.Type.
d3238f7d
PA
8540 * NEWS: Mention Python API addition.
8541 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 8542
e664d728
PW
85432019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8544
8545 * NEWS: Mention the new set|show style [title|highlight].
8546 Mention changes to "show style", "help" and "apropos".
8547
66d8c862
PW
85482019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8549
8550 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8551 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8552 instead of print_help_for_command.
8553 (print_doc_of_command): New function.
8554 (help_list): Add 'apropos -v word' suggestion.
8555 (print_help_for_command): Style the command name using title style.
8556 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8557 (_initialize_cli_cmds): Describe -v in apropos_command help.
8558
9303eb2f
PW
85592019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8560
8561 * cli/cli-style.h (cli_style_option): Add name in constructor,
8562 add m_name class member, add constructor with intensity,
8563 add name class function.
8564 (cli_style_option::add_setshow_commands): Remove name argument.
8565 (highlight_style, title_style): New styles.
8566 * cli/cli-style.c (do_show): New function that shows a style
8567 characteristic styling the style name with itself.
8568 (set_style_name): New function.
8569 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8570 Update all callers according to the changes in cli/cli-style.h.
8571 * utils.h (fputs_highlighted): New function.
8572 * utils.c (fputs_highlighted): Likewise.
8573
e2c52041
PW
85742019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8575
8576 * NEWS: Mention new pipe command and new convenience variables.
8577
947d3946
PW
85782019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8579
8580 * cli/cli-cmds.c (pipe_command): New function.
8581 (_initialize_cli_cmds): Call add_com for pipe_command.
8582 Define | as an alias for pipe.
8583 (exit_status_set_internal_vars): New function.
8584 (shell_escape): Call exit_status_set_internal_vars.
8585 cli/cli-decode.c (find_command_name_length): Recognize | as
8586 a single character command.
8587
b8fd0918
PW
85882019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8589
8590 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8591 top.c (execute_command_to_ui_file): New function, mostly a copy
8592 of execute_command_to_string.
8593 (execute_command_to_string): Implement by calling
8594 execute_command_to_ui_file.
8595
68bb5386
PW
85962019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8597
8598 * top.h (saved_command_line): Remove declaration.
8599 * top.c (previous_saved_command_line, previous_repeat_arguments):
8600 New variables.
8601 (saved_command_line): Make static, define together with other
8602 'repeat variables'.
8603 (dont_repeat): Clear repeat_arguments.
8604 (repeat_previous, get_saved_command_line, save_command_line):
8605 New functions.
8606 (gdb_init): Initialize saved_command_line
8607 and previous_saved_command_line.
8608 * main.c (captured_main_1): Remove saved_command_line initialization.
8609 * event-top.c (handle_line_of_input): Update to use
8610 the new 'repeat' related functions instead of direct access to
8611 saved_command_line.
8612 * command.h (repeat_previous, get_saved_command_line,
8613 save_command_line): New declarations.
8614 (dont_repeat): Add comment.
8615
bfcdb852
TT
86162019-05-30 Tom Tromey <tromey@adacore.com>
8617
8618 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8619 Fix comment.
8620 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8621
0ef209f2
JV
86222019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8623
8624 PR cli/24587
8625 * completer.c (complete): Initialize variable word.
8626
955b06fa
SDJ
86272019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8628
8629 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8630 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8631 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8632 'body' is NULL to the outter 'if', protecting the '!is_define'
8633 situation as well.
8634
fa9c3fa0
TT
86352019-05-29 Tom Tromey <tromey@adacore.com>
8636
8637 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8638 (dwarf_unknown): New function.
8639 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8640 (dwarf_type_encoding_name): Use dwarf_unknown.
8641
4330d61d
TT
86422019-05-29 Tom Tromey <tromey@adacore.com>
8643
8644 PR c++/20020:
8645 * cp-valprint.c (cp_print_value_fields): Call
8646 cp_print_static_field inside "try".
8647
33a6bc35
TT
86482019-05-29 Tom Tromey <tromey@adacore.com>
8649
8650 * inflow.c (struct terminal_info): Add default operator=.
8651 * configure: Rebuild.
8652 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8653 -Wdeprecated-copy-dtor, -Wredundant-move.
8654
000439d5
TT
86552019-05-29 Tom Tromey <tromey@adacore.com>
8656
8657 * NEWS: Add entry.
8658 * infcmd.c (print_return_value_1): Handle finish_print
8659 option.
8660 (show_print_finish): New function.
8661 (_initialize_infcmd): Add "set/show print finish" commands.
8662 * valprint.c (user_print_options): Initialize new member.
8663 * valprint.h (struct value_print_options) <finish_print>: New
8664 member.
8665
c0e70c62
TT
86662019-05-28 Tom Tromey <tromey@adacore.com>
8667
8668 * ada-lang.c (ada_remove_Xbn_suffix)
8669 (find_old_style_renaming_symbol)
8670 (parse_old_style_renaming): Remove.
8671 (ada_find_renaming_symbol): Don't call
8672 find_old_style_renaming_symbol.
8673 (ada_is_renaming_symbol): Rename from
8674 ada_find_renaming_symbol. Remove "block" parameter. Return
8675 bool. Now static.
8676 (ada_read_var_value): Update and simplify.
8677 * ada-exp.y (write_var_or_type): Remove old code.
8678
766f8836
AH
86792019-05-28 Alan Hayward <alan.hayward@arm.com>
8680
68255adc 8681 PR gdb/25010
766f8836
AH
8682 * event-top.c: Remove include comment.
8683 * inflow.c (class scoped_ignore_sigttou): Move from here...
8684 * inflow.h (class scoped_ignore_sigttou): ...to here.
8685 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8686 * top.c: Remove include comment.
8687
eb41253a
TT
86882019-05-27 Tom Tromey <tom@tromey.com>
8689
8690 * NEWS: Fix typo.
8691
4ca51187
TT
86922019-05-22 Tom Tromey <tromey@adacore.com>
8693
8694 * target.c (target_follow_exec): Constify parameter.
8695 * target-delegates.c: Rebuild.
8696 * remote.c (remote_target::follow_exec): Constify parameter.
8697 * infrun.c (follow_exec): Constify parameter.
8698 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8699 (target_follow_exec): Likewise.
8700
8fca4da0
AH
87012019-05-22 Alan Hayward <alan.hayward@arm.com>
8702
8703 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8704 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8705
b7060614
AH
87062019-05-22 Alan Hayward <alan.hayward@arm.com>
8707
8708 * NEWS: Add debugredirect and testsuite sections.
8709
0a5954bd
SC
87102019-05-22 Simon Cook <simon.cook@embecosm.com>
8711
8712 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8713 target descriptions using exclusively floating point register name
8714 aliases.
8715
dc42e902
AB
87162019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8717
8718 PR gdb/18644:
8719 * f-lang.c (build_fortran_types): Handle the case where
8720 gdbarch_floatformat_for_type returns a nullptr.
8721
fb7806c7
TV
87222019-05-21 Tom de Vries <tdevries@suse.de>
8723
8724 PR cli/24587
8725 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8726
34d11c68
AB
87272019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8728
8729 PR gdb/18644:
8730 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8731 16-byte floats.
8732 * i386-tdep.c (i386_floatformat_for_type): Use
8733 floatformats_ia64_quad for the 16-byte floating point component
8734 within a fortran 32-byte complex number.
8735
122cf0f2
AB
87362019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8737
8738 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8739 delete default constructor.
8740 (find_partial_die): Update to return const struct.
8741 (partial_die_parent_scope): Move variable declaration into scope
8742 of its use and change its type to auto.
8743 (guess_partial_die_structure_name): Likewise.
8744 (partial_die_info::fixup): Likewise.
8745
33d0e35a
TT
87462019-05-17 Tom Tromey <tromey@adacore.com>
8747
8748 * source.c (find_and_open_source): Remove cast.
8749
a45575b0
TT
87502019-05-17 Tom Tromey <tromey@adacore.com>
8751
8752 * annotate.c (annotate_source): Make "filename" const.
8753 * annotate.h (annotate_source): Use const.
8754
81f47ac2
AH
87552019-05-17 Alan Hayward <alan.hayward@arm.com>
8756
8757 * disasm.c (set_disassembler_options): Send errors to stderr.
8758
ca1285d1
AH
87592019-05-17 Alan Hayward <alan.hayward@arm.com>
8760
8761 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8762 (cli_interp_base::set_logging): Check debug_redirect.
8763 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8764 * cli/cli-logging.c (debug_redirect): Add static variable.
8765 (pop_output_files): Add default param.
8766 (handle_redirections): Print debug setting.
8767 (show_logging_command): Likewise.
8768 (_initialize_cli_logging): Add debugredirect command.
8769 * interps.c (current_interp_set_logging): Add debug_redirect
8770 parameter.
8771 * interps.h (set_logging): Add debug_redirect parameter.
8772 (current_interp_set_logging): Likewise.
8773 * mi/mi-common.h: Likewise.
8774 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8775
87762019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
8777 Tom Tromey <tromey@adacore.com>
8778
8779 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8780 directly.
8781 * cli/cli-interp.h (make_logging_output): Remove declaration.
8782 * cli/cli-logging.c (make_logging_output): Remove function.
8783 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8784 directly.
8785 * ui-file.c (tee_file::tee_file): Remove bools.
8786 (tee_file::~tee_file): Remove deletes.
8787 * ui-file.h (tee_file): Remove bools.
8788
26648588
JV
87892019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8790
8791 * mi/mi-cmds.h (mi_cmd_complete): New function.
8792 * mi/mi-main.c (mi_cmd_complete): Likewise.
8793 * mi/mi-cmds.c: Define new MI command -complete.
8794 * NEWS: Mention new -complete command.
8795
6e035501
JV
87962019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8797
8798 * completer.h (complete): New function.
8799 * completer.c (complete): Likewise.
8800 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8801 function defined in completer.h.
8802
7d0e2ece
JV
88032019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8804
e79be6e5 8805 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 8806
fb816e8b
TV
88072019-05-17 Tom de Vries <tdevries@suse.de>
8808
8809 PR gdb/24094
8810 * dwarf2read.c (struct cu_partial_die_info): New struct.
8811 (find_partial_die): Return cu_partial_die_info.
8812 (partial_die_parent_scope, guess_partial_die_structure_name)
8813 (partial_die_info::fixup): Handle new return type of find_partial_die.
8814
677052f2
SDJ
88152019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8816
a1726c38 8817 PR breakpoints/24541
677052f2
SDJ
8818 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8819 "std::string", simplifying the algorithm.
8820
f3da9116
SDJ
88212019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8822
8823 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8824 (stap_static_probe_ops::get_probes): Likewise.
8825
f1bb75ab
SDJ
88262019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8827
8828 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8829 '-')" and "else if".
8830 (stap_parse_single_operand): Join checks for
8831 "gdbarch_stap_parse_special_token_p" and
8832 "gdbarch_stap_parse_special_token" in the same "if" statement.
8833 Invert check when verifying for operation on register
8834 displacement.
8835
3ca58cde
SDJ
88362019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8837
8838 * stap-probe.c (stap_get_opcode): Update comment.
8839 (stap_get_expected_argument_type): Likewise.
8840 (handle_stap_probe): Likewise.
8841
af2d9bee
SDJ
88422019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8843
8844 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8845 return type to 'bool'. Adjust comment. Use 'bool' when
8846 appropriate.
8847 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8848 * stap-probe.c (stap_parse_argument_1): Likewise.
8849 (stap_is_operator): Likewise.
8850 (stap_is_generic_prefix): Likewise.
8851 (stap_is_register_prefix): Likewise.
8852 (stap_is_register_indirection_prefix): Likewise.
8853 (stap_is_integer_prefix): Likewise.
8854 (stap_generic_check_suffix): Likewise.
8855 (stap_check_integer_suffix): Likewise.
8856 (stap_check_register_suffix): Likewise.
8857 (stap_check_register_indirection_suffix): Likewise.
8858 (stap_parse_register_operand): Likewise.
8859 (stap_parse_single_operand): Likewise.
8860 (stap_parse_argument_1): Likewise.
8861 (stap_probe::get_argument_count): Likewise.
8862 (stap_is_operator): Likewise.
8863
61c9c421
TT
88642019-05-16 Tom Tromey <tromey@adacore.com>
8865
8866 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8867 keyword to foreach.
8868
9ddc1af1
SM
88692019-05-15 Simon Marchi <simon.marchi@efficios.com>
8870
8871 * linux-thread-db.c (try_thread_db_load_1): Change return type
8872 to bool.
8873 (try_thread_db_load): Likewise.
8874 (try_thread_db_load_from_pdir_1): Likewise.
8875 (try_thread_db_load_from_pdir): Likewise.
8876 (try_thread_db_load_from_sdir): Likewise.
8877 (try_thread_db_load_from_dir): Likewise.
8878 (thread_db_load_search): Likewise.
8879 (has_libpthread): Likewise.
8880 (thread_db_load): Likewise.
8881
7bede828
SDJ
88822019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8883
8884 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8885 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8886 NULL, and complain/return if that's the case.
8887
c5358db4
JD
88882019-05-15 John Darrington <john@darrington.wattle.id.au>
8889
8890 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8891 (advance, posn, abstract_read_memory): New functions.
8892 [struct mem_read_abstraction]: New struct.
8893 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8894
c408a94f
TT
88952019-05-14 Tom Tromey <tromey@adacore.com>
8896
8897 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8898 value is not lval_memory.
8899
e7bd7fba
TT
89002019-05-14 Tom Tromey <tromey@adacore.com>
8901
8902 * solib.c (info_sharedlibrary_command): Style the file name.
8903
a6d0f249
AH
89042019-05-14 Alan Hayward <alan.hayward@arm.com>
8905
8906 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8907 (aarch64_vnv_type): Likewise.
8908 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8909 * common/tdesc.c: Likewise.
8910 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8911 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8912 * features/aarch64-fpu.xml: Add ieee half view.
8913 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8914 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8915 * gdbtypes.h (struct builtin_type): Likewise.
8916 (struct objfile_type): Likewise.
8917
66b8bb74
SM
89182019-05-12 Paul Naert <paul.naert@polymtl.ca>
8919
8920 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8921 typo.
8922 * location.h (string_to_event_location): Likewise.
8923
21c219fd
JB
89242019-05-11 Joel Brobecker <brobecker@adacore.com>
8925
8926 GDB 8.3 released.
8927
13674803
SM
89282019-05-10 Simon Marchi <simon.marchi@efficios.com>
8929
8930 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8931 New variable declaration.
8932 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8933 New variable.
8934 (print_one_breakpoint): Use ui_out::test_flags and new global
8935 variable to compute use_fixed_output.
8936 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8937 Remove.
8938 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8939 (mi_multi_location_breakpoint_output_fixed): Remove.
8940 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8941 new variable.
8942 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8943 fix_multi_location_breakpoint_output flag if version >= 3.
8944 * ui-out.h (enum ui_out_flag)
8945 <fix_multi_location_breakpoint_output>: New enumerator.
8946
a9eac7f9
SM
89472019-05-10 Simon Marchi <simon.marchi@efficios.com>
8948
8949 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8950
71bed2db
TT
89512019-05-10 Tom Tromey <tromey@adacore.com>
8952
8953 * ada-lang.c (catch_ada_completer): New function.
8954 (_initialize_ada_language): Use it.
8955
24c54127
TT
89562019-05-10 Tom Tromey <tromey@adacore.com>
8957
8958 * thread.c (print_thread_info): Make "requested_threads" const.
8959 * gdbthread.h (print_thread_info): Make "requested_threads"
8960 const.
8961 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8962 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8963
7a102139
TT
89642019-05-08 Tom Tromey <tom@tromey.com>
8965
8966 * gdbtypes.c (objfile_type_data): Change type.
8967 (objfile_type, _initialize_gdbtypes): Update.
8968
924d79e2
TT
89692019-05-08 Tom Tromey <tom@tromey.com>
8970
8971 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8972 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8973 (_initialize_dwarf2_frame): Update.
8974
4c58e337
TT
89752019-05-08 Tom Tromey <tom@tromey.com>
8976
8977 * objc-lang.c (objc_objfile_data): Change type.
8978 (find_methods): Update.
8979 (_initialize_objc_lang): Remove.
8980
d772d2ab
TT
89812019-05-08 Tom Tromey <tom@tromey.com>
8982
8983 * stabsread.c (rs6000_builtin_type_data): Change type.
8984 (rs6000_builtin_type, _initialize_stabsread): Update.
8985
d11d83f4
TT
89862019-05-08 Tom Tromey <tom@tromey.com>
8987
8988 * mips-tdep.c (mips_pdr_data): Remove.
8989 (_initialize_mips_tdep): Update.
8990
9a73f0ad
TT
89912019-05-08 Tom Tromey <tom@tromey.com>
8992
8993 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
8994 (hppa_init_objfile_priv_data, read_unwind_info)
8995 (find_unwind_entry, _initialize_hppa_tdep): Update.
8996
8127a2fa
TT
89972019-05-08 Tom Tromey <tom@tromey.com>
8998
8999 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9000 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9001 on obstack.
9002 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9003
91d3055d
TT
90042019-05-08 Tom Tromey <tom@tromey.com>
9005
9006 * mdebugread.c (basic_type_data): Change type.
9007 (basic_type, _initialize_mdebugread): Update.
9008
31930bd3
TT
90092019-05-08 Tom Tromey <tom@tromey.com>
9010
9011 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9012
bdb3ed9e
TT
90132019-05-08 Tom Tromey <tom@tromey.com>
9014
9015 * nto-tdep.c (nto_inferior_data_reg): Change type.
9016 (nto_inferior_data): Update.
9017 (nto_inferior_data_cleanup, nto_new_inferior_data)
9018 (_initialize_nto_tdep): Remove.
9019 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9020
f37b313d
TT
90212019-05-08 Tom Tromey <tom@tromey.com>
9022
9023 * ada-lang.c (struct ada_inferior_data): Add initializers.
9024 (ada_inferior_data): Change type.
9025 (ada_inferior_data_cleanup): Remove.
9026 (get_ada_inferior_data, ada_inferior_exit)
9027 (struct ada_pspace_data): Add initializers, destructor.
9028 (ada_pspace_data_handle): Change type.
9029 (get_ada_pspace_data): Update.
9030 (ada_pspace_data_cleanup): Remove.
9031
24699405
TT
90322019-05-08 Tom Tromey <tom@tromey.com>
9033
9034 * coffread.c (struct coff_symfile_info): Add initializers.
9035 (coff_objfile_data_key): Move lower. Change type.
9036 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9037 Update.
9038 (coff_free_info): Remove.
9039
d4e05d2f
TT
90402019-05-08 Tom Tromey <tom@tromey.com>
9041
9042 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9043 (fbsd_pspace_data_handle): Move lower. Change type.
9044 (get_fbsd_pspace_data): Update.
9045 (fbsd_pspace_data_cleanup): Remove.
9046 (_initialize_fbsd_tdep): Update.
9047
14ef6690
TT
90482019-05-08 Tom Tromey <tom@tromey.com>
9049
9050 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9051 (get_ada_tasks_pspace_data): Update.
9052 (ada_tasks_pspace_data_cleanup): Remove.
9053 (_initialize_tasks): Update.
9054 (ada_tasks_inferior_data_handle): Change type.
9055 (get_ada_tasks_inferior_data): Update.
9056 (ada_tasks_inferior_data_cleanup): Remove.
9057 (struct ada_tasks_pspace_data): Add initializers.
9058
814cf43a
TT
90592019-05-08 Tom Tromey <tom@tromey.com>
9060
9061 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9062 * symfile-debug.c (debug_sym_get_probes): Change type.
9063 * stap-probe.c (handle_stap_probe):
9064 (stap_static_probe_ops::get_probes): Change type.
9065 * probe.h (class static_probe_ops) <get_probes>: Change type.
9066 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9067 (parse_probes_in_pspace): Update.
9068 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9069 Update.
9070 (any_static_probe_ops::get_probes): Change type.
9071 * elfread.c (elfread_data): New typedef.
9072 (probe_key): Change type.
9073 (elf_get_probes): Likewise. Update.
9074 (probe_key_free): Remove.
9075 (_initialize_elfread): Update.
9076 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9077 Change type.
9078 (dtrace_process_dof_probe, dtrace_process_dof)
9079 (dtrace_static_probe_ops::get_probe): Change type.
9080
02dc647e
TT
90812019-05-08 Tom Tromey <tom@tromey.com>
9082
9083 * xcoffread.c (struct xcoff_symfile_info): Rename from
9084 coff_symfile_info. Add initializers.
9085 (xcoff_objfile_data_key): Move lower. Change type.
9086 (XCOFF_DATA): Rewrite.
9087 (xcoff_free_info): Remove.
9088 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9089 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9090 (xcoff_initial_scan): Update.
9091
09232438
TT
90922019-05-08 Tom Tromey <tom@tromey.com>
9093
9094 * solib-svr4.c (struct svr4_info): Add initializers and
9095 destructor.
9096 <probes_table>: Now an htab_up.
9097 (solib_svr4_pspace_data): Change type.
9098 (free_probes_table): Simplify.
9099 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9100 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9101 (probes_table_remove_objfile_probes, register_solib_event_probe)
9102 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9103 (_initialize_svr4_solib): Update.
9104
7b4a314f
TT
91052019-05-08 Tom Tromey <tom@tromey.com>
9106
9107 * remote.c (remote_pspace_data): Change type.
9108 (remote_pspace_data_cleanup): Remove.
9109 (get_remote_exec_file, set_pspace_remote_exec_file)
9110 (_initialize_remote): Update.
9111
51d3063a
TT
91122019-05-08 Tom Tromey <tom@tromey.com>
9113
9114 * breakpoint.c (breakpoint_objfile_key): Change type.
9115 (get_breakpoint_objfile_data): Update.
9116 (free_breakpoint_objfile_data): Remove.
9117 (_initialize_breakpoint): Update.
9118
89fb8848
TT
91192019-05-08 Tom Tromey <tom@tromey.com>
9120
9121 * linux-tdep.c (struct linux_info): Add initializers.
9122 (linux_inferior_data): Move. Change type.
9123 (invalidate_linux_cache_inf): Update.
9124 (linux_inferior_data_cleanup): Remove.
9125 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9126
e9b89e2d
TT
91272019-05-08 Tom Tromey <tom@tromey.com>
9128
9129 * auxv.c (auxv_inferior_data): Move. Change type.
9130 (auxv_inferior_data_cleanup): Remove.
9131 (invalidate_auxv_cache_inf): Rewrite.
9132 (get_auxv_inferior_data, _initialize_auxv): Update.
9133
8c42777c
TT
91342019-05-08 Tom Tromey <tom@tromey.com>
9135
9136 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9137 (symfile_debug_objfile_data_key): Change type.
9138 (symfile_debug_installed, debug_qf_has_symbols)
9139 (debug_qf_find_last_source_symtab)
9140 (debug_qf_forget_cached_source_info)
9141 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9142 (debug_qf_print_stats, debug_qf_dump)
9143 (debug_qf_expand_symtabs_for_function)
9144 (debug_qf_expand_all_symtabs)
9145 (debug_qf_expand_symtabs_with_fullname)
9146 (debug_qf_map_matching_symbols)
9147 (debug_qf_expand_symtabs_matching)
9148 (debug_qf_find_pc_sect_compunit_symtab)
9149 (debug_qf_map_symbol_filenames)
9150 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9151 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9152 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9153 (debug_sym_read_linetable, debug_sym_relocate): Update.
9154 (symfile_debug_free_objfile): Remove.
9155 (install_symfile_debug_logging, _initialize_symfile_debug):
9156 Update.
9157
5bfd760d
TT
91582019-05-08 Tom Tromey <tom@tromey.com>
9159
9160 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9161 allocate_on_obstack.
9162 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9163 (get_dwarf2_per_objfile): Update.
9164 (set_dwarf2_per_objfile): Remove.
9165 (dwarf2_has_info, dwarf2_get_section_info): Update.
9166 (dwarf2_free_objfile): Remove.
9167 (_initialize_dwarf2_read): Update.
9168
e85e19b4
TT
91692019-05-08 Tom Tromey <tom@tromey.com>
9170
9171 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9172 initializers.
9173 <unsupported_script_warning_printed,
9174 script_not_found_warning_printed>: Now bool.
9175 (auto_load_pspace_data): Change type.
9176 (~auto_load_pspace_info): Rename from
9177 auto_load_pspace_data_cleanup.
9178 (get_auto_load_pspace_data, init_loaded_scripts_info)
9179 (clear_section_scripts, maybe_print_unsupported_script_warning)
9180 (maybe_print_script_not_found_warning, _initialize_auto_load):
9181 Update.
9182
f6aa7436
TT
91832019-05-08 Tom Tromey <tom@tromey.com>
9184
9185 * objfiles.c (objfile_pspace_info): Add destructor and
9186 initializers.
9187 (objfiles_pspace_data): Change type.
9188 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9189 (get_objfile_pspace_data): Update.
9190 (objfiles_bfd_data): Change type.
9191 (get_objfile_bfd_data): Update.
9192 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9193
6ae614f6
TT
91942019-05-08 Tom Tromey <tom@tromey.com>
9195
9196 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9197 Change type.
9198 (get_catch_syscall_inferior_data): Update.
9199 (catch_syscall_inferior_data_cleanup): Remove.
9200 (_initialize_break_catch_syscall): Update.
9201
6509b8eb
TT
92022019-05-08 Tom Tromey <tom@tromey.com>
9203
9204 * inflow.c (struct terminal_info): Add destructor and
9205 initializers.
9206 (inflow_inferior_data): Change type.
9207 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9208 (get_inflow_inferior_data, inflow_inferior_exit)
9209 (swap_terminal_info, _initialize_inflow): Update.
9210
35632941
TT
92112019-05-08 Tom Tromey <tom@tromey.com>
9212
9213 * target-dcache.c (target_dcache_cleanup): Remove.
9214 (target_dcache_aspace_key): Change type.
9215 (target_dcache_init_p, target_dcache_invalidate)
9216 (target_dcache_get, target_dcache_get_or_init)
9217 (_initialize_target_dcache): Update.
9218 * dcache.h (struct dcache_deleter): New.
9219
3017b94d
TT
92202019-05-08 Tom Tromey <tom@tromey.com>
9221
9222 * symtab.c (struct symbol_cache): Add destructor and
9223 initializers.
9224 (symbol_cache_key): Move. Change type.
9225 (make_symbol_cache, free_symbol_cache): Remove.
9226 (get_symbol_cache): Update.
9227 (symbol_cache_cleanup): Remove.
9228 (ALL_PSPACES, symbol_cache_flush)
9229 (maintenance_print_symbol_cache)
9230 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9231 Update.
9232
a32ad8c5
TT
92332019-05-08 Tom Tromey <tom@tromey.com>
9234
9235 * symtab.c (struct main_info): Add destructor and initializers.
9236 (main_progspace_key): Move. Change type.
9237 (get_main_info): Update.
9238 (main_info_cleanup): Remove.
9239 (_initialize_symtab): Update.
9240
5f6e90a0
TT
92412019-05-08 Tom Tromey <tom@tromey.com>
9242
9243 * registry.h (DECLARE_REGISTRY): Define the _key class.
9244
1bd0c6e4
AB
92452019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9246
9247 * NEWS: Merge two 'New commands' sections.
9248
2228ef77
XR
92492019-05-08 Joel Brobecker <brobecker@adacore.com>
9250
9251 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9252 parameter and use Ada language definition instead.
9253 (ada_val_print_ptr): Remove unused language parameter.
9254 (ada_val_print_num): Remove language parameter and use Ada language
9255 definition instead.
9256 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9257 parameter.
9258 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9259 parameter and use Ada language definition instead.
9260 (ada_val_print_1): Update all ada_val_print_xxx calls.
9261 Remove language parameter.
9262 (ada_val_print): Update ada_val_print_1 call.
9263
60fcc1c3
TT
92642019-05-08 Tom Tromey <tromey@adacore.com>
9265
9266 * remote.c (remote_hw_watchpoint_limit)
9267 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9268 Now static.
9269
ed2b7c17
TT
92702019-05-08 Tom Tromey <tromey@adacore.com>
9271
9272 * maint.c (_initialize_maint_cmds): Move initialization code to
9273 remote.c.
9274 (watchdog, show_watchdog): Move to remote.c.
9275 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9276 "watchdog" static.
9277 (_initialize_remote): Move initialization code from maint.c.
9278 * defs.h (watchdog): Don't declare.
9279
b0be6c91
TT
92802019-05-08 Tom Tromey <tromey@adacore.com>
9281
9282 * tui/tui-interp.c: Include main.h.
9283 * interps.c: Include main.h.
9284 * main.h (interpreter_p): Declare.
9285 * defs.h (interpreter_p): Don't declare.
9286
587ee17b
TT
92872019-05-08 Tom Tromey <tromey@adacore.com>
9288
9289 * dwarf2loc.c: Include dwarf2read.h.
9290 * defs.h (read_unsigned_leb128): Don't declare.
9291 * dwarf2read.h (read_unsigned_leb128): Declare.
9292
ca1df239
TT
92932019-05-08 Tom Tromey <tromey@adacore.com>
9294
9295 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9296 method.
9297
99f20f08
TT
92982019-05-08 Tom Tromey <tromey@adacore.com>
9299
9300 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9301 when no wrap column is set.
9302
80e55b13
TT
93032019-05-08 Tom Tromey <tromey@adacore.com>
9304
9305 * c-lang.c (c_get_string): Handle non-C-style arrays.
9306
9d3421af
TT
93072019-05-08 Tom Tromey <tromey@adacore.com>
9308
9309 * typeprint.c (print_offset_data::update): Print the bit offset,
9310 not the number of bits remaining.
9311
844333e2
TT
93122019-05-08 Tom Tromey <tromey@adacore.com>
9313
9314 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9315 padding at end of comment.
9316
988915ee
TT
93172019-05-08 Tom Tromey <tromey@adacore.com>
9318
9319 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9320 Compare main types.
9321
26bfd823
TT
93222019-05-06 Tom Tromey <tom@tromey.com>
9323
9324 * common/scoped_mmap.c: Include common-defs.h.
9325 * common/scoped_mmap.h: Don't include config.h.
9326
89055eaa
TT
93272019-05-04 Tom Tromey <tom@tromey.com>
9328
9329 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9330 (struct aarch64_call_info): Add initializers.
9331 <si>: Now a std::vector.
9332 (pass_on_stack, aarch64_push_dummy_call): Update.
9333
5da01df5
TT
93342019-05-04 Simon Marchi <simon.marchi@efficios.com>
9335 Tom Tromey <tom@tromey.com>
9336
9337 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9338 (ppc_threads): Now a std::vector. Now static.
9339 (hwdebug_find_thread_points_by_tid)
9340 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9341 Update.
9342
fbdf05a1
TT
93432019-05-04 Tom Tromey <tom@tromey.com>
9344
9345 * arc-tdep.c (arc_tdesc_init): Return bool.
9346
06d16ec9
TT
93472019-05-04 Tom Tromey <tom@tromey.com>
9348
9349 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9350 Use gdb_assert_not_reached.
9351
9c056022
TT
93522019-05-04 Tom Tromey <tom@tromey.com>
9353
9354 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9355 "false".
9356
fa9c2a59
TT
93572019-05-04 Tom Tromey <tom@tromey.com>
9358
9359 * arc-tdep.c (arc_tdesc_init): Use bool.
9360
e2eb806a
TT
93612019-05-04 Tom Tromey <tom@tromey.com>
9362
9363 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9364
6fe87677
TT
93652019-05-04 Tom Tromey <tom@tromey.com>
9366
9367 * cli/cli-cmds.c (valid_command_p): Return bool.
9368
7f008c9e
TT
93692019-05-04 Tom Tromey <tom@tromey.com>
9370
9371 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9372 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9373
b6484282
RT
93742019-05-04 Raul Tambre <raul@tambre.ee>
9375
9376 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9377 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9378 operator for comparison.
9379
af97b416
TT
93802019-05-04 Tom Tromey <tom@tromey.com>
9381
9382 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9383 (lookup_partial_symbol, print_partial_symbols)
9384 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9385 (psymbol_compare): Update.
9386 (add_psymbol_to_bcache): Clear the entire psymbol.
9387 (maintenance_check_psymtabs): Update.
9388 * psympriv.h (struct partial_symbol): Don't derive from
9389 general_symbol_info.
9390 <obj_section, unrelocated_address, address,
9391 set_unrelocated_address>: Update.
9392 <ginfo>: New member.
9393 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9394 (debug_names::write_psymbols): Update.
9395
9d6d4be8
TV
93962019-05-04 Tom de Vries <tdevries@suse.de>
9397
9398 * contrib/cc-with-tweaks.sh: Support -n arg.
9399
66452beb
PW
94002019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9401
9402 * corelow.c (core_target::detach): Ensure frame cache and
9403 register caches are cleared.
9404 inferior.c (exit_inferior_1): Likewise.
9405
bde09ab7
TT
94062019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9407 Tom Tromey <tom@tromey.com>
9408
9409 * dictionary.c (collate_pending_symbols_by_language): Remove
9410 "struct" from foreach.
9411 * symtab.c (lookup_global_symbol_from_objfile)
9412 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9413 foreach.
9414 * ser-tcp.c (net_open): Remove "struct" from foreach.
9415 * objfiles.c (objfile_relocate, objfile_rebase)
9416 (objfile_has_symbols): Remove "struct" from foreach.
9417 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9418 from foreach.
9419 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9420 foreach.
9421 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9422 "struct" from foreach.
9423 * ada-lang.c (create_excep_cond_exprs)
9424 (ada_exception_catchpoint_cond_string): Remove "struct" from
9425 foreach.
9426
222a8d25
TT
94272019-05-03 Tom Tromey <tromey@adacore.com>
9428
9429 * ada-exp.y (convert_char_literal): Check suffix of each
9430 enumerator.
9431
fcd60b84
DP
94322019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9433
9434 PR ada/21406:
9435 * ada-exp.y (yywrap): Don't define.
9436 * ada-lex.l (%option): Add noyywrap
9437 (yywrap): Remove.
9438
5f2459c2
EZ
94392019-05-03 Eli Zaretskii <eliz@gnu.org>
9440
353ea2d1
EZ
9441 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9442 _WIN32_WINNT to the XP level, unless already defined to a higher
9443 level.
9444
9445 * unittests/parse-connection-spec-selftests.c:
9446 * ser-tcp.c:
9447 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9448 override.
9449
5f2459c2
EZ
9450 * symfile.c (find_separate_debug_file): Remove colon from the
9451 drive spec of DOS/Windows file names of the target, so that the
9452 file name produced from DEBUGDIR and the target's directory will
9453 be valid on DOS/Windows systems.
9454
80062eb9
AB
94552019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9456
9457 * rust-lang.c (val_print_struct): Handle printing structures
9458 containing strings.
9459
b8c05e85
TT
94602019-05-02 Tom Tromey <tromey@adacore.com>
9461
9462 * valarith.c (_initialize_valarith): Remove.
9463
4504bbde
TT
94642019-05-01 Tom Tromey <tromey@adacore.com>
9465
9466 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9467 bitfields.
9468
d48e62f4
TT
94692019-05-01 Tom Tromey <tromey@adacore.com>
9470
9471 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9472 for big-endian copies.
9473
15f18d14
AT
94742019-04-30 Ali Tamur <tamur@google.com>
9475 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9476 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9477 (read_3_bytes): New function.
9478
ab4ee614
JB
94792019-04-30 Joel Brobecker <brobecker@adacore.com>
9480
9481 * windows-nat.c (main_thread_id): Delete.
9482 (handle_output_debug_string): Replace main_thread_id by
9483 current_event.dwThreadId.
9484 (fake_create_process): Likewise.
9485 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9486 Do not set main_thread_id.
9487 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9488 current_event.dwThreadId.
9489 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9490
8ed5b76e
JB
94912019-04-30 Joel Brobecker <brobecker@adacore.com>
9492
9493 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9494 Use current_event.dwThreadId instead of main_thread_id.
9495
2ff0a947
TT
94962019-04-30 Tom Tromey <tromey@adacore.com>
9497
9498 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9499 (create_excep_cond_exprs): Iterate over program spaces.
9500 (ada_exception_catchpoint_cond_string): Examine all minimal
9501 symbols for exception types.
9502
a776957c
TT
95032019-04-30 Tom Tromey <tromey@adacore.com>
9504
9505 PR c++/24470:
9506 * dwarf2read.c (process_structure_scope): Handle case where type
9507 has template parameters but no symbol was created.
9508
bc68014d
AB
95092019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9510 Chris January <chris.january@arm.com>
9511
9512 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9513 qualifier.
9514 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9515
f1fdc960
AB
95162019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9517
9518 * f-typeprint.c (f_print_type): Update rules for printing
9519 whitespace.
9520 (f_type_print_varspec_suffix): Likewise.
9521
bf7a4de1
AB
95222019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9523 Chris January <chris.january@arm.com>
9524
9525 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9526 function arguments.
9527
bbe75b9d
AB
95282019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9529
9530 * f-lang.c (build_fortran_types): Change name of void type to
9531 lower case.
9532 * f-typeprint.c (f_type_print_base): Print the name of the void
9533 type, rather than a fixed string.
9534 * f-valprint.c (f_decorations): Use lower case void string.
9535
1db455a7
AB
95362019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9537 Chris January <chris.january@arm.com>
9538
9539 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9540 types for Fortran.
9541
b6d03bb2
AB
95422019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9543 Chris January <chris.january@arm.com>
9544 David Lecomber <david.lecomber@arm.com>
9545
9546 * f-exp.y (BINOP_INTRINSIC): New token.
9547 (exp): New parser rule handling BINOP_INTRINSIC.
9548 (f77_keywords): Add new builtin procedures.
9549 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9550 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9551 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9552 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9553 (print_unop_subexp_f): New function.
9554 (print_binop_subexp_f): New function.
9555 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9556 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9557 (dump_subexp_body_f): Likewise.
9558 (operator_check_f): Likewise.
9559 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9560 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9561
83228e93
AB
95622019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9563
9564 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9565 UNOP_KIND.
9566 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9567 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9568 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9569 (operator_length_f): New fuction.
9570 (print_subexp_f): New function.
9571 (op_name_f): New function.
9572 (dump_subexp_body_f): New function.
9573 (operator_check_f): New function.
9574 (exp_descriptor_f): Replace standard expression handling functions
9575 with new functions.
9576 * gdb/fortran-operator.def: New file.
9577 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9578 * gdb/std-operator.def: Remove UNOP_KIND.
9579
6fdcd7cc
AB
95802019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9581
9582 * std-operator.def: Remove unbalanced, stray double quote
9583 character.
9584
2e62ab40
AB
95852019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9586 Chris January <chris.january@arm.com>
9587 Daniel Everett <daniel.everett@arm.com>
9588 Nick Forrington <nick.forrington@arm.com>
9589 Richard Bunt <richard.bunt@arm.com>
9590
9591 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9592 of depth when printing anonymous structs or unions.
9593 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9594 Don't print either the top-level value, or the children if the
9595 max-depth is exceeded.
9596 (ppscm_print_children): When printing the key of a map, allow one
9597 extra level of depth.
9598 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9599 print either the top-level value, or the children if the max-depth
9600 is exceeded.
9601 (print_children): When printing the key of a map, allow one extra
9602 level of depth.
9603 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9604 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9605 (user_print_options): Initialise max_depth field.
9606 (val_print_scalar_or_string_type_p): New function.
9607 (val_print): Check to see if the max depth has been reached.
9608 (val_print_check_max_depth): Define new function.
9609 (show_print_max_depth): New function.
9610 (_initialize_valprint): Add 'print max-depth' option.
9611 * valprint.h (struct value_print_options) <max_depth>: New field.
9612 (val_print_check_max_depth): Declare new function.
9613 * NEWS: Document new feature.
9614
4be290b2
AB
96152019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9616
9617 * ada-lang.c (ada_language_defn): Initialise new field.
9618 * c-lang.c (c_is_string_type_p): New function.
9619 (c_language_defn): Initialise new field.
9620 (cplus_language_defn): Initialise new field.
9621 (asm_language_defn): Initialise new field.
9622 (minimal_language_defn): Initialise new field.
9623 * c-lang.h (c_is_string_type_p): Declare new function.
9624 * d-lang.c (d_language_defn): Initialise new field.
9625 * f-lang.c (f_is_string_type_p): New function.
9626 (f_language_defn): Initialise new field.
9627 * go-lang.c (go_is_string_type_p): New function.
9628 (go_language_defn): Initialise new field.
9629 * language.c (default_is_string_type_p): New function.
9630 (unknown_language_defn): Initialise new field.
9631 (auto_language_defn): Initialise new field.
9632 * language.h (struct language_defn) <la_is_string_type_p>: New
9633 member variable.
9634 (default_is_string_type_p): Declare new function.
9635 * m2-lang.c (m2_language_defn): Initialise new field.
9636 * objc-lang.c (objc_language_defn): Initialise new field.
9637 * opencl-lang.c (opencl_language_defn): Initialise new field.
9638 * p-lang.c (pascal_is_string_type_p): New function.
9639 (pascal_language_defn): Initialise new field.
9640 * rust-lang.c (rust_is_string_type_p): New function.
9641 (rust_language_defn): Initialise new field.
9642
721b08c6
AB
96432019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9644
9645 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9646 New field.
9647 * ada-lang.c (ada_language_defn): Initialise new field.
9648 * c-lang.c (c_language_defn): Likewise.
9649 (cplus_language_defn): Likewise.
9650 (asm_language_defn): Likewise.
9651 (minimal_language_defn): Likewise.
9652 * d-lang.c (d_language_defn): Likewise.
9653 * f-lang.c (f_language_defn): Likewise.
9654 * go-lang.c (go_language_defn): Likewise.
9655 * language.c (unknown_language_defn): Likewise.
9656 (auto_language_defn): Likewise.
9657 * m2-lang.c (m2_language_defn): Likewise.
9658 * objc-lang.c (objc_language_defn): Likewise.
9659 * opencl-lang.c (opencl_language_defn): Likewise.
9660 * p-lang.c (pascal_language_defn): Likewise.
9661 * rust-lang.c (rust_language_defn): Likewise.
9662
fc913e53
AB
96632019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9664
9665 * ada-lang.c (ada_is_character_type): Change return type to bool.
9666 (ada_is_string_type): Likewise.
9667 * ada-lang.h (ada_is_character_type): Update declaration
9668 (ada_is_string_type): Likewise.
9669
fa731fa0
PW
96702019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9671
9672 Support style in 'frame|thread apply'
9673
9674 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9675 * record.c (record_start, record_stop): Update callers of
9676 execute_command_to_string with false.
9677 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9678 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9679 methods.
9680 (class string_file): New constructor with term_out parameter.
9681 Override methods term_out and can_emit_style_escape. New member
9682 term_out.
9683 (class stdio_file): Override can_emit_style_escape.
9684 (class tee_file): Override term_out and can_emit_style_escape.
9685 * utils.h (can_emit_style_escape): Remove.
9686 * utils.c (can_emit_style_escape): Likewise.
9687 Update all callers of can_emit_style_escape (SOMESTREAM) to
9688 SOMESTREAM->can_emit_style_escape.
9689 * source-cache.c (source_cache::get_source_lines): Likewise.
9690 * stack.c (frame_apply_command_count): Call execute_command_to_string
9691 passing the term_out characteristic of the current gdb_stdout.
9692 * thread.c (thr_try_catch_cmd): Likewise.
9693 * top.c (execute_command_to_string): pass term_out parameter
9694 to construct the string_file for the command output.
9695 * ui-file.c (term_cli_styling): New function (most code moved
9696 from utils.c can_emit_style_escape).
9697 (string_file::string_file, string_file::can_emit_style_escape,
9698 stdio_file::can_emit_style_escape, tee_file::term_out,
9699 tee_file::can_emit_style_escape): New functions.
9700
136afab8
PW
97012019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9702
9703 * NEWS: Mention the new set|show may-call-functions.
9704 * infcall.c (may_call_functions_p): New variable.
9705 (show_may_call_functions_p): New function.
9706 (call_function_by_hand_dummy): Throws an error if not
9707 may-call-functions.
9708 (_initialize_infcall): Call add_setshow_boolean_cmd for
9709 may-call-functions.
9710
725cbb63
KS
97112019-04-25 Keith Seitz <keiths@redhat.com>
9712
9713 PR c++/24367
9714 * cp-support.c (inspect_type): Don't attempt substitutions
9715 of symbol with the same name.
9716
3d1cbb78
TT
97172019-04-25 Tom Tromey <tromey@adacore.com>
9718
9719 PR gdb/24475:
9720 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9721 static.
9722
94aeb44b
TT
97232019-04-25 Tom Tromey <tromey@adacore.com>
9724
9725 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9726 rvalue reference.
9727 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9728 (gdb_xml_parser::parse): Use std::move.
9729 * python/python-internal.h (gdbpy_convert_exception): Take a const
9730 reference.
9731 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9732 std::move.
9733 * python/py-utils.c (gdbpy_convert_exception): Take a const
9734 reference.
9735 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9736 Use std::move.
9737 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9738 Use std::move.
9739 * mi/mi-main.c (mi_print_exception): Take a const reference.
9740 * main.c (handle_command_errors): Take a const reference.
9741 * linespec.c (parse_linespec): Use std::move.
9742 * infcall.c (run_inferior_call): Use std::move.
9743 (call_function_by_hand_dummy): Use std::move.
9744 * exec.c (try_open_exec_file): Use std::move.
9745 * exceptions.h (exception_print, exception_fprintf)
9746 (exception_print_same): Update.
9747 * exceptions.c (print_exception, exception_print)
9748 (exception_fprintf, exception_print_same): Change parameters to
9749 const reference.
9750 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9751 * common/new-op.c: Use std::move.
9752 * common/common-exceptions.h (struct gdb_exception): Add move
9753 constructor.
9754 (struct gdb_exception_error, struct gdb_exception_quit, struct
9755 gdb_quit_bad_alloc): Change constructor to move constructor.
9756 (throw_exception): Change parameter to rvalue reference.
9757 * common/common-exceptions.c (throw_exception): Take rvalue
9758 reference.
9759 * cli/cli-interp.c (safe_execute_command): Use std::move.
9760 * breakpoint.c (insert_bp_location, location_to_sals): Use
9761 std::move.
9762
680d7fd5
TT
97632019-04-25 Tom Tromey <tromey@adacore.com>
9764
9765 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9766 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9767 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9768 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9769 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9770 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9771 guile/scm-value.c: Use unpack.
9772 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9773 gdbscm_gdb_exception.
9774 (gdbscm_throw_gdb_exception): Likewise.
9775 (struct gdbscm_gdb_exception): New.
9776 (unpack): New function.
9777 (gdbscm_wrap): Use unpack.
9778
c6fdd8b2
TT
97792019-04-25 Tom Tromey <tromey@adacore.com>
9780
9781 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9782 (gdb_rl_callback_handler): Use std::move.
9783 * common/common-exceptions.h (struct gdb_exception): Add move
9784 assignment operator.
9785 (throw_exception_sjlj): Change "exception" to const reference.
9786 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9787 (throw_exception_sjlj): Change "exception" to const reference.
9788
cc06b668
TT
97892019-04-25 Tom Tromey <tromey@adacore.com>
9790
9791 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9792 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9793 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9794 Update.
9795 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9796 Update.
9797 * mi/mi-interp.c (mi_interp::exec): Update.
9798 * linespec.c (parse_linespec): Update.
9799 * infcall.c (run_inferior_call): Update.
9800 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9801 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9802 (gdbscm_lookup_global_symbol): Update.
9803 * guile/scm-param.c (gdbscm_parameter_value): Update.
9804 * guile/scm-frame.c (gdbscm_frame_read_register)
9805 (gdbscm_frame_read_var): Update.
9806 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9807 * exec.c (try_open_exec_file): Update.
9808 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9809 (gdb_rl_callback_handler): Update.
9810 * common/common-exceptions.h (exception_none): Don't declare.
9811 * common/common-exceptions.c (exception_none): Don't define.
9812 (struct catcher) <exception>: Update.
9813 * cli/cli-interp.c (safe_execute_command): Update.
9814 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9815
cf532bd1
AT
98162019-04-25 Ali Tamur <tamur@google.com>
9817
9818 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9819 (read_attribute_value): Likewise.
9820 (dwarf2_read_addr_index): Update comment.
9821 (read_str_index): Add DW_FORM_strx.
9822 (dwarf2_string_attr): Likewise.
9823 (dwarf2_const_value_attr): Likewise.
9824 (dump_die_shallow): Likewise.
9825 (dwarf2_fetch_constant_bytes): Likewise.
9826 (skip_form_bytes): Likewise.
9827 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9828
82433e3e
SDJ
98292019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9830
9831 PR corefiles/11608
9832 PR corefiles/18187
9833 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9834 OFFSET. Verify if current mapping contains an ELF header.
9835 (linux_find_memory_regions_full): Adjust call to
9836 dump_mapping_p.
9837
723adb65
SL
98382019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9839 Kang Li <kanglictf@gmail.com>
9840
9841 PR gdb/21600
9842
9843 * dwarf2-frame.c (read_initial_length): Be consistent about using
9844 unsigned representation of length.
9845 (decode_frame_entry_1): Likewise. Check for wraparound of
9846 end pointer as well as buffer overflow.
9847
596179f7
SDJ
98482019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9849
9850 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9851 "vq".
9852
a59240a4
TT
98532019-04-24 Tom Tromey <tromey@adacore.com>
9854
9855 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9856
f872fdbb
AB
98572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9858
9859 * s12z-tdep.c (s12z_unwind_pc): Delete.
9860 (s12z_unwind_sp): Delete.
9861 (s12z_gdbarch_init): Don't register deleted functions with
9862 gdbarch.
9863
b614e6f3
AB
98642019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9865
9866 * rl78-tdep.c (rl78_unwind_sp): Delete.
9867 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9868
14faed38
AB
98692019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9870
9871 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9872 (xstormy16_unwind_pc): Delete.
9873 (xstormy16_dummy_id): Delete.
9874 (xstormy16_gdbarch_init): Don't register deleted functions with
9875 gdbarch.
9876
541aad8a
AB
98772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9878
9879 * vax-tdep.c (vax_unwind_pc): Delete.
9880 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9881
29222070
AB
98822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9883
9884 * v850-tdep.c (v850_unwind_sp): Delete.
9885 (v850_unwind_pc): Delete.
9886 (v850_dummy_id): Delete.
9887 (v850_gdbarch_init): Don't register deleted functions with
9888 gdbarch.
9889
0f534d76
AB
98902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9891
9892 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9893 (tilegx_unwind_pc): Delete.
9894 (tilegx_unwind_dummy_id): Delete.
9895 (tilegx_gdbarch_init): Don't register deleted functions with
9896 gdbarch.
9897
1ba7b7f9
AB
98982019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9899
9900 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9901 (tic6x_dummy_id): Delete.
9902 (tic6x_gdbarch_init): Don't register deleted functions with
9903 gdbarch.
9904
d31f262c
AB
99052019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9906
9907 * sparc-tdep.c (sparc_unwind_pc): Delete.
9908 (sparc32_gdbarch_init): Don't register deleted function with
9909 gdbarch.
9910
6d14d64d
AB
99112019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9912
9913 * sh-tdep.c (sh_unwind_sp): Delete.
9914 (sh_unwind_pc): Delete.
9915 (sh_dummy_id): Delete.
9916 (sh_gdbarch_init): Don't register deleted functions with
9917 gdbarch.
9918
a40dde9d
AB
99192019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9920
9921 * score-tdep.c (score_unwind_sp): Delete.
9922 (score_unwind_pc): Delete.
9923 (score_dummy_id): Delete.
9924 (score_gdbarch_init): Don't register deleted functions with
9925 gdbarch.
9926
47c47d69
AB
99272019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9928
9929 * rx-tdep.c (rx_unwind_pc): Delete.
9930 (rx_unwind_sp): Delete.
9931 (rx_dummy_id): Delete.
9932 (rx_gdbarch_init): Don't register deleted functions with
9933 gdbarch. Update comment.
9934
833a4480
AB
99352019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9936
9937 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9938 (rs6000_dummy_id): Delete.
9939 (rs6000_gdbarch_init): Don't register deleted functions with
9940 gdbarch.
9941
3f2cef49
AB
99422019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9943
9944 * or1k-tdep.c (or1k_dummy_id): Delete.
9945 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9946
96acf884
AB
99472019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9948
9949 * nios2-tdep.c (nios2_dummy_id): Delete.
9950 (nios2_unwind_sp): Delete.
9951 (nios2_gdbarch_init): Don't register deleted functions with
9952 gdbarch.
9953
ca0ab0aa
AB
99542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9955
9956 * nds32-tdep.c (nds32_dummy_id): Delete.
9957 (nds32_unwind_pc): Delete.
9958 (nds32_unwind_sp): Delete.
9959 (nds32_gdbarch_init): Don't register deleted functions with
9960 gdbarch.
9961
c8259044
AB
99622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9963
9964 * msp430-tdep.c (msp430_unwind_pc): Delete.
9965 (msp430_unwind_sp): Delete.
9966 (msp430_dummy_id): Delete.
9967 (msp430_gdbarch_init): Don't register deleted functions with
9968 gdbarch.
9969
27f113c8
AB
99702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9971
9972 * moxie-tdep.c (moxie_unwind_sp): Delete.
9973 (moxie_unwind_pc): Delete.
9974 (moxie_dummy_id): Delete.
9975 (moxie_gdbarch_init): Don't register deleted functions with
9976 gdbarch.
9977
aee6c3cd
AB
99782019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9979
9980 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9981 (mn10300_unwind_pc): Delete.
9982 (mn10300_unwind_sp): Delete.
9983 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9984 mn10300_unwind_sp.
9985 (mn10300_frame_unwind_init): Don't register deleted functions with
9986 gdbarch.
9987
8e2b5aea
AB
99882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9989
9990 * mep-tdep.c (mep_unwind_pc): Delete.
9991 (mep_unwind_sp): Delete.
9992 (mep_dummy_id): Delete.
9993 (mep_gdbarch_init): Don't register deleted functions with
9994 gdbarch.
9995
43cf3ede
AB
99962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9997
9998 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
9999 (m68hc11_unwind_sp): Delete.
10000 (m68hc11_gdbarch_init): Don't register deleted functions with
10001 gdbarch.
10002
5e79b7bb
AB
100032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10004
10005 * m32r-tdep.c (m32r_unwind_sp): Delete.
10006 (m32r_unwind_pc): Delete.
10007 (m32r_dummy_id): Delete.
10008 (m32r_gdbarch_init): Don't register deleted functions with
10009 gdbarch.
10010
89b268d8
AB
100112019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10012
10013 * m32c-tdep.c (m32c_unwind_pc): Delete.
10014 (m32c_unwind_sp): Delete.
10015 (m32c_dummy_id): Delete.
10016 (m32c_gdbarch_init): Don't register deleted functions with
10017 gdbarch.
10018
946c28d2
AB
100192019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10020
10021 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10022 (lm32_unwind_pc): Delete.
10023 (lm32_dummy_id): Delete.
10024 (lm32_gdbarch_init): Don't register deleted functions with
10025 gdbarch.
10026
bf12844a
AB
100272019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10028
10029 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10030 (iq2000_unwind_pc): Delete.
10031 (iq2000_dummy_id): Delete.
10032 (iq2000_gdbarch_init): Don't register deleted functions with
10033 gdbarch.
10034
ecbc06d2
AB
100352019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10036
10037 * nds32-tdep.c (nds32_type_align): Delete.
10038 (nds32_push_dummy_call): Use type_align instead.
10039
030197b4
AB
100402019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10041
10042 * arm-tdep.c (arm_type_align): Only handle vector override case.
10043 (arm_push_dummy_call): Use type_align.
10044 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10045
b907456c
AB
100462019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10047
10048 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10049 case.
10050 (pass_on_stack): Use type_align.
10051 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10052 function.
10053
9e97ba43
TT
100542019-04-23 Tom Tromey <tromey@adacore.com>
10055
10056 * dwarf2read.c (line_header::file_name_at): Remove unused
10057 overload.
10058
6892f601
TV
100592019-04-23 Tom de Vries <tdevries@suse.de>
10060
10061 PR gdb/24438
10062 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10063 invocation.
10064
336d760d
AT
10065
100662019-03-27 Ali Tamur <tamur@google.com>
10067
10068 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10069 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10070 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10071 (dwarf_expr_context::get_addr_index): Likewise
10072 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10073 (symbol_needs_eval_context::get_addr_index): Likewise
10074 (disassemble_dwarf_expression): Add DW_OP_addrx
10075 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10076 (read_cutu_die_from_dwo): Update comment
10077 (skip_one_die): Add DW_FORM_addrx
10078 (read_attribute_value): Likewise
10079 (var_decode_location): Add DW_OP_addrx
10080 (dwarf2_const_value_attr): Add DW_FORM_addrx
10081 (dump_die_shallow): Likewise
10082 (dwarf2_fetch_constant_bytes): Likewise
10083 (decode_locdesc): Add DW_OP_addrx
10084 (skip_form_bytes): Add DW_FORM_addrx
10085
ad9d13f8
AT
100862019-04-22 Ali Tamur <tamur@google.com>
10087
10088 * MAINTAINERS (Write After Approval): Add self.
10089
d70cc3ba
SM
100902019-04-22 Simon Marchi <simon.marchi@efficios.com>
10091
10092 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10093 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10094 (open_symbol_file_object): Likewise.
10095 (svr4_default_sos): Add info parameter.
10096 (svr4_read_so_list): Likewise.
10097 (svr4_current_sos_direct): Adjust functions calls to pass down
10098 info.
10099 (svr4_current_sos_1): Add info parameter.
10100 (svr4_current_sos): Call get_svr4_info, pass info down to
10101 svr4_current_sos_1.
10102 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10103 get_svr4_info.
10104 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10105 get_svr4_info.
10106 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10107 to get_svr4_info.
10108 (probes_table_remove_objfile_probes): Likewise.
10109 (register_solib_event_probe): Add info parameter.
10110 (solist_update_incremental): Pass info parameter down to
10111 svr4_read_so_list.
10112 (disable_probes_interface): Add info parameter.
10113 (svr4_handle_solib_event): Pass current_program_space to
10114 get_svr4_info. Adjust disable_probes_interface cleanup.
10115 (svr4_create_probe_breakpoints): Add info parameter, pass it
10116 down to register_solib_event_probe.
10117 (svr4_create_solib_event_breakpoints): Add info parameter,
10118 pass it down to svr4_create_probe_breakpoints.
10119 (enable_break): Pass info down to
10120 svr4_create_solib_event_breakpoints.
10121 (svr4_solib_create_inferior_hook): Pass current_program_space to
10122 get_svr4_info.
10123 (svr4_clear_solib): Likewise.
10124
7905fc35
PA
101252019-04-22 Pedro Alves <palves@redhat.com>
10126
10127 * solib-svr4.c (svr4_free_objfile_observer): New.
10128 (probe_and_action::objfile): New field.
10129 (probes_table_htab_remove_objfile_probes)
10130 (probes_table_remove_objfile_probes): New functions.
10131 (register_solib_event_probe): Add 'objfile' parameter. Store it
10132 in the new probe_and_action. Don't store the probe in 'lookup'.
10133 (svr4_create_probe_breakpoints): Pass objfile to
10134 register_solib_event_probe.
10135 (_initialize_svr4_solib): Register a free_objfile observer.
10136
fb881986
TT
101372019-04-19 Tom Tromey <tom@tromey.com>
10138
10139 * common/queue.h: Remove.
10140
8732db6c
TT
101412019-04-19 Tom Tromey <tom@tromey.com>
10142
10143 * event-loop.c: Don't include "common/queue.h".
10144
97dfbadd
TT
101452019-04-19 Tom Tromey <tom@tromey.com>
10146
10147 * remote.c (remote_target): Use delete.
10148 * remote-notif.h: Include <list>, not "common/queue.h".
10149 (notif_client_p): Remove typedef.
10150 (remote_notif_state): Add constructor, destructor, initializer.
10151 <notif_queue>: Now a std::list.
10152 (remote_notif_state_xfree): Don't declare.
10153 * remote-notif.c (remote_notif_process, handle_notification)
10154 (remote_notif_state_allocate): Update.
10155 (~remote_notif_state): Rename from remote_notif_state_xfree.
10156
cf250e36
TT
101572019-04-19 Tom Tromey <tom@tromey.com>
10158
10159 * symfile.c (reread_symbols): Update.
10160 * objfiles.c (objfile_register_static_link)
10161 (objfile_lookup_static_link): Update
10162 (~objfile) Don't delete static_links.
10163 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10164
61f4b350
TT
101652019-04-19 Tom Tromey <tom@tromey.com>
10166
10167 * type-stack.h (struct type_stack) <insert>: Constify string.
10168 * type-stack.c (type_stack::insert): Constify string.
10169 * gdbtypes.h (lookup_template_type): Update.
10170 (address_space_name_to_int): Update.
10171 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10172 const.
10173 (lookup_template_type): Make name const.
10174 * c-exp.y: Update rules.
10175 (lex_one_token, classify_name, classify_inner_name)
10176 (c_print_token): Update.
10177 * p-exp.y: Update rules.
10178 (yylex): Update.
10179 * f-exp.y: Update rules.
10180 (yylex): Update.
10181 * d-exp.y: Update rules.
10182 (lex_one_token, classify_name, classify_inner_name): Update.
10183 * parse.c (write_dollar_variable, copy_name): Return std::string.
10184 * parser-defs.h (copy_name): Change return type.
10185 * m2-exp.y: Update rules.
10186 (yylex): Update.
10187 * go-exp.y (lex_one_token): Update.
10188 Update rules.
10189 (classify_unsafe_function, classify_packaged_name)
10190 (classify_name, yylex): Update.
10191
189b8c2e
ST
101922019-04-19 Sergei Trofimovich <siarheit@google.com>
10193
10194 * configure.ac: add --enable-source-highlight switch.
10195 * configure: Regenerate.
10196 * top.c (print_gdb_version): plumb --enable-source-highlight
10197 status to "show configuration".
10198
8ecb59f8
TT
101992019-04-19 Tom Tromey <tromey@adacore.com>
10200
10201 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10202 Check ADA_TYPE_P.
10203 (empty_record, ada_template_to_fixed_record_type_1)
10204 (template_to_static_fixed_type)
10205 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10206 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10207 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10208 macros.
10209
62160ec9
TT
102102019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10211
10212 PR symtab/24423:
10213 * source.c (print_source_lines_base): Advance "iter" when a
10214 control character is seen.
10215
f2ae8bc8
PW
102162019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10217
10218 * inferior.h (struct infcall_suspend_state_deleter):
10219 Catch exception in destructor to avoid crash.
10220
d563b953
PW
102212019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10222
10223 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10224 close to the add_com "shell".
10225
dc34c897
TT
102262019-04-18 Tom Tromey <tromey@adacore.com>
10227
10228 * process-stratum-target.h (class process_stratum_target)
10229 <stratum>: Add "final".
10230
a12e5744
TT
102312019-04-17 Tom Tromey <tromey@adacore.com>
10232
10233 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10234 against nullptr before use.
10235
a7e559cc
AH
102362019-04-17 Alan Hayward <alan.hayward@arm.com>
10237
10238 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10239
c01660c6
AB
102402019-04-17 Jim Wilson <jimw@sifive.com>
10241 Andrew Burgess <andrew.burgess@embecosm.com>
10242
10243 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10244 code read might fail, assume 4-byte breakpoint in that case.
10245
4aa866af
LS
102462019-04-15 Leszek Swirski <leszeks@google.com>
10247
10248 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10249 rather than a hand-rolled POD check when checking for forced MEMORY
10250 classification.
10251
48574d91
AH
102522019-04-15 Alan Hayward <alan.hayward@arm.com>
10253
10254 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10255 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10256 function.
10257 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10258 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10259 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10260 declaration.
10261
4da037ef
AH
102622019-04-15 Alan Hayward <alan.hayward@arm.com>
10263
10264 * aarch64-linux-nat.c
10265 (aarch64_linux_nat_target::thread_architecture): Add override.
10266 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10267 each VQ.
10268
ccb8d7e8
AH
102692019-04-15 Alan Hayward <alan.hayward@arm.com>
10270
10271 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10272
35add35e
AB
102732019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10274
10275 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10276 target types of size 96-bits, add some additional comments, and
10277 check that the builtin type we found was the correct size.
10278
51196bbc
EZ
102792019-04-12 Eli Zaretskii <eliz@gnu.org>
10280
10281 * utils.c (prompt_for_continue): Don't restore the styling at the
10282 end, as applied_style has the wrong value. This fixes styling in
10283 long lists of file names that are interrupted by the "Continue?"
10284 prompt.
10285
62253a61
AB
102862019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10287
10288 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10289 * c-lang.c (c_language_defn): Likewise.
10290 (cplus_language_defn): Likewise.
10291 (asm_language_defn): Likewise.
10292 (minimal_language_defn): Likewise.
10293 * d-lang.c (d_language_defn): Likewise.
10294 * f-lang.c (f_language_defn): Likewise.
10295 * go-lang.c (go_language_defn): Likewise.
10296 * language.c (unknown_language_defn): Likewise.
10297 (auto_language_defn): Likewise.
10298 * language.h (struct language_defn): Remove la_magic field.
10299 (LANG_MAGIC): Delete.
10300 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10301 * objc-lang.c (objc_language_defn): Likewise.
10302 * opencl-lang.c (opencl_language_defn): Likewise.
10303 * p-lang.c (pascal_language_defn): Likewise.
10304 * rust-lang.c (rust_language_defn): Likewise.
10305
a9158a86
AB
103062019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10307
10308 * riscv-tdep.c (riscv_type_align): New function.
10309 (riscv_type_alignment): Delete.
10310 (riscv_arg_location): Use 'type_align'.
10311 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10312
41077b66
AB
103132019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10314
10315 * gdbtypes.c (type_align): A struct with no non-static fields also
10316 has alignment of 1.
10317
9f0272f8
AB
103182019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10319
10320 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10321 component to 0.
10322 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10323 member.
10324 (riscv_struct_info::analyse): New implementation using new
10325 analyse_inner member function.
10326 (riscv_struct_info::field_offset): New member function.
10327 (riscv_struct_info::m_offsets): New member variable.
10328 (riscv_struct_info::analyse_inner): New private member function,
10329 takes the old implementation of riscv_struct_info::analyse but
10330 extended to track field offsets.
10331 (riscv_call_arg_struct): Update the struct folding special cases
10332 to handle cases where empty C++ structs, which are non-zero
10333 length, are found.
10334 (riscv_arg_location): Initialise the length of each location, a
10335 non-zero length now indicates the location is in use.
10336 (riscv_push_dummy_call): Allow for the first location having a
10337 non-zero offset when setting up arguments.
10338 (riscv_return_value): Likewise, but for return values.
10339
02cf60c7
TT
103402019-04-11 Tom Tromey <tromey@adacore.com>
10341
10342 * utils.c (internal_vproblem): Make "msg" const.
10343
68811f8f
AH
103442019-04-11 Alan Hayward <alan.hayward@arm.com>
10345
10346 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10347 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10348 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10349 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10350
3f52fdbc
KB
103512019-04-10 Kevin Buettner <kevinb@redhat.com>
10352
10353 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10354 function.
10355 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10356 of amd64_collect_native_gregset.
10357 (amd64_linux_nat_target::store_registers): Likewise.
10358
e9ad22ee
TT
103592019-04-10 Tom Tromey <tom@tromey.com>
10360
10361 * symtab.c (lookup_global_symbol_from_objfile)
10362 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10363 * objfiles.h (class separate_debug_iterator): New.
10364 (class separate_debug_range): New.
10365 (struct objfile) <separate_debug_objfiles>: New method.
10366 (objfile_separate_debug_iterate): Don't declare.
10367 * objfiles.c (separate_debug_iterator::operator++): Rename from
10368 objfile_separate_debug_iterate.
10369 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10370 iterator.
10371 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10372 iterator.
10373
ee371134
TT
103742019-04-10 Tom Tromey <tom@tromey.com>
10375
10376 * symfile.c (reread_symbols): Remove old comment.
10377 * objfiles.c (free_all_objfiles): Fix a typo.
10378
bf227d61
TT
103792019-04-10 Tom Tromey <tom@tromey.com>
10380
10381 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10382 * minsyms.c (lookup_minimal_symbol): Use foreach.
10383 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10384 (lookup_minimal_symbol_solib_trampoline): Likewise.
10385 * symfile.c (reread_symbols): Use foreach.
10386
8dc433a0
TT
103872019-04-09 Ivan Begert <ivanbegert@gmail.com>
10388 Tom Tromey <tromey@adacore.com>
10389
10390 PR rust/24414:
10391 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10392 (rust_lex_int_test): Change "value" to be LONGEST.
10393 (rust_lex_tests): Add test for long integer literal.
10394
9ab8741a
TT
103952019-04-09 Tom Tromey <tromey@adacore.com>
10396
10397 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10398 to bool.
10399 (extended_remote_target::attach): Update.
10400 (remote_target::remote_notice_new_inferior): Update.
10401 (remote_target::add_current_inferior_and_thread): Update.
10402 * inferior.c (exit_inferior_1): Use "false".
10403 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10404
e242fd12
SM
104052019-04-09 Simon Marchi <simon.marchi@efficios.com>
10406
9ca1957f 10407 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
10408 the "start" command.
10409
2b0c8b01
KB
104102019-04-08 Kevin Buettner <kevinb@redhat.com>
10411
10412 * python/py-inferior.c (infpy_thread_from_thread_handle):
10413 Adjust comments to reflect renaming of thread_from_thread_handle
10414 to thread_from_handle. Adjust keywords. Fix type error message.
10415 (inferior_object_methods): Add thread_from_handle. Retain
10416 thread_from_thread_handle, but mark it as deprecated.
10417
50a82723
KB
104182019-04-08 Kevin Buettner <kevinb@redhat.com>
10419
10420 * gdbthread.h (find_thread_by_handle): Revise declaration.
10421 * thread.c (find_thread_by_handle): Likewise. Adjust
10422 implementation too.
10423 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10424 support for buffer objects as handles.
10425
cf63b016
KB
104262019-04-08 Kevin Buettner <kevinb@redhat.com>
10427
10428 * python/py-infthread.c (thpy_thread_handle): New function.
10429 (thread_object_methods): Register thpy_thread_handle.
10430
3d6c6204
KB
104312019-04-08 Kevin Buettner <kevinb@redhat.com>
10432
10433 * gdbthread.h (thread_to_thread_handle): Declare.
10434 * thread.c (gdbtypes.h): Include.
10435 (thread_to_thread_handle): New function.
10436
10437 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10438 (target_thread_info_to_thread_handle): Declare.
10439 * target.c (target_thread_info_to_thread_handle): New function.
10440 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10441 * target-delegates.c: Regenerate.
10442
10443 * linux-thread-db.c (class thread_db_target): Add method
10444 thread_info_to_thread_handle.
10445 (thread_db_target::thread_info_to_thread_handle): Define.
10446 * remote.c (class remote_target): Add new method
10447 thread_info_to_thread_handle.
10448 (remote_target::thread_info_to_thread_handle): Define.
10449
56be6ea8
PA
104502019-04-08 Pedro Alves <palves@redhat.com>
10451
10452 * common/common-exceptions.c (throw_exception): Don't create
10453 named object to throw; throw directly.
10454 (throw_it): Likewise. Don't initialize gdb_exception::message
10455 here, with new; pass FMT and AP to the ctor instead.
10456 * common/common-exceptions.h: Include <string>.
10457 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10458 const char *, va_list)): New ctor. Use std::make_shared.
10459 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10460 errors)): Delete.
10461 (gdb_exception_error::gdb_exception_error(enum errors, const char
10462 *, va_list)): New.
10463 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10464 Add assertion.
10465 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10466 errors)): Delete.
10467 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10468 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10469 Add assertion.
10470
eedc3f4f
TT
104712019-04-08 Tom Tromey <tom@tromey.com>
10472
10473 * valops.c (value_rtti_indirect_type): Replace throw_exception
10474 with throw.
10475 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10476 with throw.
10477 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10478 throw.
10479 * target.c (target_translate_tls_address): Replace throw_exception
10480 with throw.
10481 * stack.c (frame_apply_command_count): Replace throw_exception
10482 with throw.
10483 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10484 throw.
10485 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10486 with throw.
10487 * rs6000-tdep.c (rs6000_frame_cache)
10488 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10489 * remote.c: Replace throw_exception with throw.
10490 * record-full.c (record_full_message, record_full_wait_1)
10491 (record_full_restore): Replace throw_exception with throw.
10492 * record-btrace.c:
10493 (get_thread_current_frame_id, record_btrace_start_replaying)
10494 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10495 (cmd_record_btrace_start): Replace throw_exception with throw.
10496 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10497 throw.
10498 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10499 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10500 * linespec.c:
10501 (find_linespec_symbols): Replace throw_exception with throw.
10502 * infrun.c (displaced_step_prepare, resume): Replace
10503 throw_exception with throw.
10504 * infcmd.c (post_create_inferior): Replace throw_exception with
10505 throw.
10506 * inf-loop.c (inferior_event_handler): Replace throw_exception
10507 with throw.
10508 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10509 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10510 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10511 (get_prev_frame_always, get_frame_pc_if_available)
10512 (get_frame_address_in_block_if_available, get_frame_language):
10513 Replace throw_exception with throw.
10514 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10515 throw_exception with throw.
10516 * eval.c (fetch_subexp_value, evaluate_var_value)
10517 (evaluate_funcall, evaluate_subexp_standard): Replace
10518 throw_exception with throw.
10519 * dwarf2loc.c (call_site_find_chain)
10520 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10521 Replace throw_exception with throw.
10522 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10523 with throw.
10524 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10525 throw.
10526 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10527 * completer.c (complete_line_internal): Replace throw_exception
10528 with throw.
10529 * compile/compile-object-run.c (compile_object_run): Replace
10530 throw_exception with throw.
10531 * cli/cli-script.c (process_next_line): Replace throw_exception
10532 with throw.
10533 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10534 (btrace_enable, btrace_maint_update_pt_packets): Replace
10535 throw_exception with throw.
10536 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10537 throw_exception with throw.
10538 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10539 throw_exception with throw.
10540 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10541 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10542 * aarch64-tdep.c (aarch64_make_prologue_cache)
10543 (aarch64_make_stub_cache): Replace throw_exception with throw.
10544
26003a20
TT
105452019-04-08 Tom Tromey <tom@tromey.com>
10546
10547 * common/common-exceptions.c (throw_exception): Rename from
10548 throw_exception_cxx. Remove old copy. Make argument const.
10549 (throw_it): Create and throw exception objects directly.
10550 * common/common-exceptions.h (throw_exception): Make argument
10551 const.
10552 (struct gdb_exception_error): Add constructor.
10553 (struct gdb_exception_quit): Add constructor.
10554
d272eb37
TT
105552019-04-08 Tom Tromey <tom@tromey.com>
10556
10557 * common/common-exceptions.h (exception_rethrow): Don't declare.
10558 (TRY_SJLJ): Update comment.
10559 (TRY, CATCH, END_CATCH): Remove.
10560 * common/common-exceptions.c (exception_rethrow): Remove.
10561
230d2906
TT
105622019-04-08 Tom Tromey <tom@tromey.com>
10563
10564 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10565 Remove.
10566 (gdb_exception_error): Rename from
10567 gdb_exception_RETURN_MASK_ERROR.
10568 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10569 (gdb_quit_bad_alloc): Update.
10570 * aarch64-tdep.c: Update.
10571 * ada-lang.c: Update.
10572 * ada-typeprint.c: Update.
10573 * ada-valprint.c: Update.
10574 * amd64-tdep.c: Update.
10575 * arch-utils.c: Update.
10576 * break-catch-throw.c: Update.
10577 * breakpoint.c: Update.
10578 * btrace.c: Update.
10579 * c-varobj.c: Update.
10580 * cli/cli-cmds.c: Update.
10581 * cli/cli-interp.c: Update.
10582 * cli/cli-script.c: Update.
10583 * common/common-exceptions.c: Update.
10584 * common/new-op.c: Update.
10585 * common/selftest.c: Update.
10586 * compile/compile-c-symbols.c: Update.
10587 * compile/compile-cplus-symbols.c: Update.
10588 * compile/compile-object-load.c: Update.
10589 * compile/compile-object-run.c: Update.
10590 * completer.c: Update.
10591 * corelow.c: Update.
10592 * cp-abi.c: Update.
10593 * cp-support.c: Update.
10594 * cp-valprint.c: Update.
10595 * darwin-nat.c: Update.
10596 * disasm-selftests.c: Update.
10597 * dtrace-probe.c: Update.
10598 * dwarf-index-cache.c: Update.
10599 * dwarf-index-write.c: Update.
10600 * dwarf2-frame-tailcall.c: Update.
10601 * dwarf2-frame.c: Update.
10602 * dwarf2loc.c: Update.
10603 * dwarf2read.c: Update.
10604 * eval.c: Update.
10605 * event-loop.c: Update.
10606 * event-top.c: Update.
10607 * exec.c: Update.
10608 * f-valprint.c: Update.
10609 * fbsd-tdep.c: Update.
10610 * frame-unwind.c: Update.
10611 * frame.c: Update.
10612 * gdbtypes.c: Update.
10613 * gnu-v3-abi.c: Update.
10614 * guile/guile-internal.h: Update.
10615 * guile/scm-block.c: Update.
10616 * guile/scm-breakpoint.c: Update.
10617 * guile/scm-cmd.c: Update.
10618 * guile/scm-disasm.c: Update.
10619 * guile/scm-frame.c: Update.
10620 * guile/scm-lazy-string.c: Update.
10621 * guile/scm-math.c: Update.
10622 * guile/scm-param.c: Update.
10623 * guile/scm-ports.c: Update.
10624 * guile/scm-pretty-print.c: Update.
10625 * guile/scm-symbol.c: Update.
10626 * guile/scm-symtab.c: Update.
10627 * guile/scm-type.c: Update.
10628 * guile/scm-value.c: Update.
10629 * i386-linux-tdep.c: Update.
10630 * i386-tdep.c: Update.
10631 * inf-loop.c: Update.
10632 * infcall.c: Update.
10633 * infcmd.c: Update.
10634 * infrun.c: Update.
10635 * jit.c: Update.
10636 * language.c: Update.
10637 * linespec.c: Update.
10638 * linux-fork.c: Update.
10639 * linux-nat.c: Update.
10640 * linux-tdep.c: Update.
10641 * linux-thread-db.c: Update.
10642 * main.c: Update.
10643 * mi/mi-cmd-break.c: Update.
10644 * mi/mi-cmd-stack.c: Update.
10645 * mi/mi-interp.c: Update.
10646 * mi/mi-main.c: Update.
10647 * objc-lang.c: Update.
10648 * p-valprint.c: Update.
10649 * parse.c: Update.
10650 * ppc-linux-tdep.c: Update.
10651 * printcmd.c: Update.
10652 * python/py-arch.c: Update.
10653 * python/py-breakpoint.c: Update.
10654 * python/py-cmd.c: Update.
10655 * python/py-finishbreakpoint.c: Update.
10656 * python/py-frame.c: Update.
10657 * python/py-framefilter.c: Update.
10658 * python/py-gdb-readline.c: Update.
10659 * python/py-inferior.c: Update.
10660 * python/py-infthread.c: Update.
10661 * python/py-lazy-string.c: Update.
10662 * python/py-linetable.c: Update.
10663 * python/py-objfile.c: Update.
10664 * python/py-param.c: Update.
10665 * python/py-prettyprint.c: Update.
10666 * python/py-progspace.c: Update.
10667 * python/py-record-btrace.c: Update.
10668 * python/py-record.c: Update.
10669 * python/py-symbol.c: Update.
10670 * python/py-type.c: Update.
10671 * python/py-unwind.c: Update.
10672 * python/py-utils.c: Update.
10673 * python/py-value.c: Update.
10674 * python/python.c: Update.
10675 * record-btrace.c: Update.
10676 * record-full.c: Update.
10677 * remote-fileio.c: Update.
10678 * remote.c: Update.
10679 * riscv-tdep.c: Update.
10680 * rs6000-aix-tdep.c: Update.
10681 * rs6000-tdep.c: Update.
10682 * rust-exp.y: Update.
10683 * rust-lang.c: Update.
10684 * s390-tdep.c: Update.
10685 * selftest-arch.c: Update.
10686 * solib-dsbt.c: Update.
10687 * solib-frv.c: Update.
10688 * solib-spu.c: Update.
10689 * solib-svr4.c: Update.
10690 * solib.c: Update.
10691 * sparc64-linux-tdep.c: Update.
10692 * stack.c: Update.
10693 * symfile-mem.c: Update.
10694 * symmisc.c: Update.
10695 * target.c: Update.
10696 * thread.c: Update.
10697 * top.c: Update.
10698 * tracefile-tfile.c: Update.
10699 * tui/tui.c: Update.
10700 * typeprint.c: Update.
10701 * unittests/cli-utils-selftests.c: Update.
10702 * unittests/parse-connection-spec-selftests.c: Update.
10703 * valops.c: Update.
10704 * valprint.c: Update.
10705 * value.c: Update.
10706 * varobj.c: Update.
10707 * windows-nat.c: Update.
10708 * x86-linux-nat.c: Update.
10709 * xml-support.c: Update.
10710
a70b8144
TT
107112019-04-08 Tom Tromey <tom@tromey.com>
10712
10713 * xml-support.c: Use C++ exception handling.
10714 * x86-linux-nat.c: Use C++ exception handling.
10715 * windows-nat.c: Use C++ exception handling.
10716 * varobj.c: Use C++ exception handling.
10717 * value.c: Use C++ exception handling.
10718 * valprint.c: Use C++ exception handling.
10719 * valops.c: Use C++ exception handling.
10720 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10721 handling.
10722 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10723 * typeprint.c: Use C++ exception handling.
10724 * tui/tui.c: Use C++ exception handling.
10725 * tracefile-tfile.c: Use C++ exception handling.
10726 * top.c: Use C++ exception handling.
10727 * thread.c: Use C++ exception handling.
10728 * target.c: Use C++ exception handling.
10729 * symmisc.c: Use C++ exception handling.
10730 * symfile-mem.c: Use C++ exception handling.
10731 * stack.c: Use C++ exception handling.
10732 * sparc64-linux-tdep.c: Use C++ exception handling.
10733 * solib.c: Use C++ exception handling.
10734 * solib-svr4.c: Use C++ exception handling.
10735 * solib-spu.c: Use C++ exception handling.
10736 * solib-frv.c: Use C++ exception handling.
10737 * solib-dsbt.c: Use C++ exception handling.
10738 * selftest-arch.c: Use C++ exception handling.
10739 * s390-tdep.c: Use C++ exception handling.
10740 * rust-lang.c: Use C++ exception handling.
10741 * rust-exp.y: Use C++ exception handling.
10742 * rs6000-tdep.c: Use C++ exception handling.
10743 * rs6000-aix-tdep.c: Use C++ exception handling.
10744 * riscv-tdep.c: Use C++ exception handling.
10745 * remote.c: Use C++ exception handling.
10746 * remote-fileio.c: Use C++ exception handling.
10747 * record-full.c: Use C++ exception handling.
10748 * record-btrace.c: Use C++ exception handling.
10749 * python/python.c: Use C++ exception handling.
10750 * python/py-value.c: Use C++ exception handling.
10751 * python/py-utils.c: Use C++ exception handling.
10752 * python/py-unwind.c: Use C++ exception handling.
10753 * python/py-type.c: Use C++ exception handling.
10754 * python/py-symbol.c: Use C++ exception handling.
10755 * python/py-record.c: Use C++ exception handling.
10756 * python/py-record-btrace.c: Use C++ exception handling.
10757 * python/py-progspace.c: Use C++ exception handling.
10758 * python/py-prettyprint.c: Use C++ exception handling.
10759 * python/py-param.c: Use C++ exception handling.
10760 * python/py-objfile.c: Use C++ exception handling.
10761 * python/py-linetable.c: Use C++ exception handling.
10762 * python/py-lazy-string.c: Use C++ exception handling.
10763 * python/py-infthread.c: Use C++ exception handling.
10764 * python/py-inferior.c: Use C++ exception handling.
10765 * python/py-gdb-readline.c: Use C++ exception handling.
10766 * python/py-framefilter.c: Use C++ exception handling.
10767 * python/py-frame.c: Use C++ exception handling.
10768 * python/py-finishbreakpoint.c: Use C++ exception handling.
10769 * python/py-cmd.c: Use C++ exception handling.
10770 * python/py-breakpoint.c: Use C++ exception handling.
10771 * python/py-arch.c: Use C++ exception handling.
10772 * printcmd.c: Use C++ exception handling.
10773 * ppc-linux-tdep.c: Use C++ exception handling.
10774 * parse.c: Use C++ exception handling.
10775 * p-valprint.c: Use C++ exception handling.
10776 * objc-lang.c: Use C++ exception handling.
10777 * mi/mi-main.c: Use C++ exception handling.
10778 * mi/mi-interp.c: Use C++ exception handling.
10779 * mi/mi-cmd-stack.c: Use C++ exception handling.
10780 * mi/mi-cmd-break.c: Use C++ exception handling.
10781 * main.c: Use C++ exception handling.
10782 * linux-thread-db.c: Use C++ exception handling.
10783 * linux-tdep.c: Use C++ exception handling.
10784 * linux-nat.c: Use C++ exception handling.
10785 * linux-fork.c: Use C++ exception handling.
10786 * linespec.c: Use C++ exception handling.
10787 * language.c: Use C++ exception handling.
10788 * jit.c: Use C++ exception handling.
10789 * infrun.c: Use C++ exception handling.
10790 * infcmd.c: Use C++ exception handling.
10791 * infcall.c: Use C++ exception handling.
10792 * inf-loop.c: Use C++ exception handling.
10793 * i386-tdep.c: Use C++ exception handling.
10794 * i386-linux-tdep.c: Use C++ exception handling.
10795 * guile/scm-value.c: Use C++ exception handling.
10796 * guile/scm-type.c: Use C++ exception handling.
10797 * guile/scm-symtab.c: Use C++ exception handling.
10798 * guile/scm-symbol.c: Use C++ exception handling.
10799 * guile/scm-pretty-print.c: Use C++ exception handling.
10800 * guile/scm-ports.c: Use C++ exception handling.
10801 * guile/scm-param.c: Use C++ exception handling.
10802 * guile/scm-math.c: Use C++ exception handling.
10803 * guile/scm-lazy-string.c: Use C++ exception handling.
10804 * guile/scm-frame.c: Use C++ exception handling.
10805 * guile/scm-disasm.c: Use C++ exception handling.
10806 * guile/scm-cmd.c: Use C++ exception handling.
10807 * guile/scm-breakpoint.c: Use C++ exception handling.
10808 * guile/scm-block.c: Use C++ exception handling.
10809 * guile/guile-internal.h: Use C++ exception handling.
10810 * gnu-v3-abi.c: Use C++ exception handling.
10811 * gdbtypes.c: Use C++ exception handling.
10812 * frame.c: Use C++ exception handling.
10813 * frame-unwind.c: Use C++ exception handling.
10814 * fbsd-tdep.c: Use C++ exception handling.
10815 * f-valprint.c: Use C++ exception handling.
10816 * exec.c: Use C++ exception handling.
10817 * event-top.c: Use C++ exception handling.
10818 * event-loop.c: Use C++ exception handling.
10819 * eval.c: Use C++ exception handling.
10820 * dwarf2read.c: Use C++ exception handling.
10821 * dwarf2loc.c: Use C++ exception handling.
10822 * dwarf2-frame.c: Use C++ exception handling.
10823 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10824 * dwarf-index-write.c: Use C++ exception handling.
10825 * dwarf-index-cache.c: Use C++ exception handling.
10826 * dtrace-probe.c: Use C++ exception handling.
10827 * disasm-selftests.c: Use C++ exception handling.
10828 * darwin-nat.c: Use C++ exception handling.
10829 * cp-valprint.c: Use C++ exception handling.
10830 * cp-support.c: Use C++ exception handling.
10831 * cp-abi.c: Use C++ exception handling.
10832 * corelow.c: Use C++ exception handling.
10833 * completer.c: Use C++ exception handling.
10834 * compile/compile-object-run.c: Use C++ exception handling.
10835 * compile/compile-object-load.c: Use C++ exception handling.
10836 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10837 * compile/compile-c-symbols.c: Use C++ exception handling.
10838 * common/selftest.c: Use C++ exception handling.
10839 * common/new-op.c: Use C++ exception handling.
10840 * cli/cli-script.c: Use C++ exception handling.
10841 * cli/cli-interp.c: Use C++ exception handling.
10842 * cli/cli-cmds.c: Use C++ exception handling.
10843 * c-varobj.c: Use C++ exception handling.
10844 * btrace.c: Use C++ exception handling.
10845 * breakpoint.c: Use C++ exception handling.
10846 * break-catch-throw.c: Use C++ exception handling.
10847 * arch-utils.c: Use C++ exception handling.
10848 * amd64-tdep.c: Use C++ exception handling.
10849 * ada-valprint.c: Use C++ exception handling.
10850 * ada-typeprint.c: Use C++ exception handling.
10851 * ada-lang.c: Use C++ exception handling.
10852 * aarch64-tdep.c: Use C++ exception handling.
10853
3d6e9d23
TT
108542019-04-08 Tom Tromey <tom@tromey.com>
10855
10856 * xml-support.c (gdb_xml_parser::parse): Update.
10857 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10858 * value.c (show_convenience): Update.
10859 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10860 (test_parse_flags_qcs): Update.
10861 * thread.c (thr_try_catch_cmd): Update.
10862 * target.c (target_translate_tls_address): Update.
10863 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10864 (info_frame_command_core, frame_apply_command_count): Update.
10865 * rust-exp.y (rust_lex_exception_test): Update.
10866 * riscv-tdep.c (riscv_print_one_register_info): Update.
10867 * remote.c (remote_target::enable_btrace): Update.
10868 * record-btrace.c (record_btrace_enable_warn): Update.
10869 * python/py-utils.c (gdbpy_convert_exception): Update.
10870 * printcmd.c (do_one_display, print_variable_and_value): Update.
10871 * mi/mi-main.c (mi_print_exception): Update.
10872 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10873 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10874 * linux-nat.c (linux_nat_target::attach): Update.
10875 * linux-fork.c (class scoped_switch_fork_info): Update.
10876 * infrun.c (displaced_step_prepare): Update.
10877 * infcall.c (call_function_by_hand_dummy): Update.
10878 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10879 * gnu-v3-abi.c (print_one_vtable): Update.
10880 * frame.c (get_prev_frame_always): Update.
10881 * f-valprint.c (info_common_command_for_block): Update.
10882 * exec.c (try_open_exec_file): Update.
10883 * exceptions.c (print_exception, exception_print)
10884 (exception_fprintf, exception_print_same): Update.
10885 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10886 * dwarf-index-cache.c (index_cache::store)
10887 (index_cache::lookup_gdb_index): Update.
10888 * darwin-nat.c (maybe_cache_shell): Update.
10889 * cp-valprint.c (cp_print_value_fields): Update.
10890 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10891 (gcc_cplus_symbol_address): Update.
10892 * compile/compile-c-symbols.c (gcc_convert_symbol)
10893 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10894 * common/selftest.c: Update.
10895 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10896 a std::string.
10897 (exception_try_scope_entry, exception_try_scope_exit): Don't
10898 declare.
10899 (struct exception_try_scope): Remove.
10900 (TRY): Don't use exception_try_scope.
10901 (struct gdb_exception): Add constructor, operator=.
10902 <what>: New method.
10903 (struct gdb_exception_RETURN_MASK_ALL)
10904 (struct gdb_exception_RETURN_MASK_ERROR)
10905 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10906 (struct gdb_quit_bad_alloc): Update.
10907 * common/common-exceptions.c (exception_none): Change
10908 initializer.
10909 (struct catcher) <state, exception>: Initialize inline.
10910 <prev>: Remove member.
10911 (current_catcher): Remove.
10912 (catchers): New global.
10913 (exceptions_state_mc_init): Simplify.
10914 (catcher_pop): Remove.
10915 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10916 (try_scope_depth, exception_try_scope_entry)
10917 (exception_try_scope_exit): Remove.
10918 (throw_exception_sjlj): Update.
10919 (exception_messages, exception_messages_size): Remove.
10920 (throw_it): Simplify.
10921 (gdb_exception_sliced_copy): Remove.
10922 (throw_exception_cxx): Update.
10923 * cli/cli-script.c (script_from_file): Update.
10924 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10925 Update.
10926 * ada-valprint.c (ada_val_print): Update.
10927 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10928 (create_excep_cond_exprs): Update.
10929
c5c10118
TT
109302019-04-08 Tom Tromey <tom@tromey.com>
10931
10932 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10933 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10934 (TRY, CATCH, END_CATCH): Remove some definitions.
10935 * common/common-exceptions.c: Don't use GDB_XCPT.
10936 (catcher_list_size): Remove.
10937 (throw_exception, throw_it): Simplify.
10938
4de283e4
TT
109392019-04-05 Tom Tromey <tom@tromey.com>
10940
10941 Revert the header-sorting patch.
10942 * ft32-tdep.c: Revert.
10943 * frv-tdep.c: Revert.
10944 * frv-linux-tdep.c: Revert.
10945 * frame.c: Revert.
10946 * frame-unwind.c: Revert.
10947 * frame-base.c: Revert.
10948 * fork-child.c: Revert.
10949 * findvar.c: Revert.
10950 * findcmd.c: Revert.
10951 * filesystem.c: Revert.
10952 * filename-seen-cache.h: Revert.
10953 * filename-seen-cache.c: Revert.
10954 * fbsd-tdep.c: Revert.
10955 * fbsd-nat.h: Revert.
10956 * fbsd-nat.c: Revert.
10957 * f-valprint.c: Revert.
10958 * f-typeprint.c: Revert.
10959 * f-lang.c: Revert.
10960 * extension.h: Revert.
10961 * extension.c: Revert.
10962 * extension-priv.h: Revert.
10963 * expprint.c: Revert.
10964 * exec.h: Revert.
10965 * exec.c: Revert.
10966 * exceptions.c: Revert.
10967 * event-top.c: Revert.
10968 * event-loop.c: Revert.
10969 * eval.c: Revert.
10970 * elfread.c: Revert.
10971 * dwarf2read.h: Revert.
10972 * dwarf2read.c: Revert.
10973 * dwarf2loc.c: Revert.
10974 * dwarf2expr.h: Revert.
10975 * dwarf2expr.c: Revert.
10976 * dwarf2-frame.c: Revert.
10977 * dwarf2-frame-tailcall.c: Revert.
10978 * dwarf-index-write.h: Revert.
10979 * dwarf-index-write.c: Revert.
10980 * dwarf-index-common.c: Revert.
10981 * dwarf-index-cache.h: Revert.
10982 * dwarf-index-cache.c: Revert.
10983 * dummy-frame.c: Revert.
10984 * dtrace-probe.c: Revert.
10985 * disasm.h: Revert.
10986 * disasm.c: Revert.
10987 * disasm-selftests.c: Revert.
10988 * dictionary.c: Revert.
10989 * dicos-tdep.c: Revert.
10990 * demangle.c: Revert.
10991 * dcache.h: Revert.
10992 * dcache.c: Revert.
10993 * darwin-nat.h: Revert.
10994 * darwin-nat.c: Revert.
10995 * darwin-nat-info.c: Revert.
10996 * d-valprint.c: Revert.
10997 * d-namespace.c: Revert.
10998 * d-lang.c: Revert.
10999 * ctf.c: Revert.
11000 * csky-tdep.c: Revert.
11001 * csky-linux-tdep.c: Revert.
11002 * cris-tdep.c: Revert.
11003 * cris-linux-tdep.c: Revert.
11004 * cp-valprint.c: Revert.
11005 * cp-support.c: Revert.
11006 * cp-namespace.c: Revert.
11007 * cp-abi.c: Revert.
11008 * corelow.c: Revert.
11009 * corefile.c: Revert.
11010 * continuations.c: Revert.
11011 * completer.h: Revert.
11012 * completer.c: Revert.
11013 * complaints.c: Revert.
11014 * coffread.c: Revert.
11015 * coff-pe-read.c: Revert.
11016 * cli-out.h: Revert.
11017 * cli-out.c: Revert.
11018 * charset.c: Revert.
11019 * c-varobj.c: Revert.
11020 * c-valprint.c: Revert.
11021 * c-typeprint.c: Revert.
11022 * c-lang.c: Revert.
11023 * buildsym.c: Revert.
11024 * buildsym-legacy.c: Revert.
11025 * build-id.h: Revert.
11026 * build-id.c: Revert.
11027 * btrace.c: Revert.
11028 * bsd-uthread.c: Revert.
11029 * breakpoint.h: Revert.
11030 * breakpoint.c: Revert.
11031 * break-catch-throw.c: Revert.
11032 * break-catch-syscall.c: Revert.
11033 * break-catch-sig.c: Revert.
11034 * blockframe.c: Revert.
11035 * block.c: Revert.
11036 * bfin-tdep.c: Revert.
11037 * bfin-linux-tdep.c: Revert.
11038 * bfd-target.c: Revert.
11039 * bcache.c: Revert.
11040 * ax-general.c: Revert.
11041 * ax-gdb.h: Revert.
11042 * ax-gdb.c: Revert.
11043 * avr-tdep.c: Revert.
11044 * auxv.c: Revert.
11045 * auto-load.c: Revert.
11046 * arm-wince-tdep.c: Revert.
11047 * arm-tdep.c: Revert.
11048 * arm-symbian-tdep.c: Revert.
11049 * arm-pikeos-tdep.c: Revert.
11050 * arm-obsd-tdep.c: Revert.
11051 * arm-nbsd-tdep.c: Revert.
11052 * arm-nbsd-nat.c: Revert.
11053 * arm-linux-tdep.c: Revert.
11054 * arm-linux-nat.c: Revert.
11055 * arm-fbsd-tdep.c: Revert.
11056 * arm-fbsd-nat.c: Revert.
11057 * arm-bsd-tdep.c: Revert.
11058 * arch-utils.c: Revert.
11059 * arc-tdep.c: Revert.
11060 * arc-newlib-tdep.c: Revert.
11061 * annotate.h: Revert.
11062 * annotate.c: Revert.
11063 * amd64-windows-tdep.c: Revert.
11064 * amd64-windows-nat.c: Revert.
11065 * amd64-tdep.c: Revert.
11066 * amd64-sol2-tdep.c: Revert.
11067 * amd64-obsd-tdep.c: Revert.
11068 * amd64-obsd-nat.c: Revert.
11069 * amd64-nbsd-tdep.c: Revert.
11070 * amd64-nbsd-nat.c: Revert.
11071 * amd64-nat.c: Revert.
11072 * amd64-linux-tdep.c: Revert.
11073 * amd64-linux-nat.c: Revert.
11074 * amd64-fbsd-tdep.c: Revert.
11075 * amd64-fbsd-nat.c: Revert.
11076 * amd64-dicos-tdep.c: Revert.
11077 * amd64-darwin-tdep.c: Revert.
11078 * amd64-bsd-nat.c: Revert.
11079 * alpha-tdep.c: Revert.
11080 * alpha-obsd-tdep.c: Revert.
11081 * alpha-nbsd-tdep.c: Revert.
11082 * alpha-mdebug-tdep.c: Revert.
11083 * alpha-linux-tdep.c: Revert.
11084 * alpha-linux-nat.c: Revert.
11085 * alpha-bsd-tdep.c: Revert.
11086 * alpha-bsd-nat.c: Revert.
11087 * aix-thread.c: Revert.
11088 * agent.c: Revert.
11089 * addrmap.c: Revert.
11090 * ada-varobj.c: Revert.
11091 * ada-valprint.c: Revert.
11092 * ada-typeprint.c: Revert.
11093 * ada-tasks.c: Revert.
11094 * ada-lang.c: Revert.
11095 * aarch64-tdep.c: Revert.
11096 * aarch64-ravenscar-thread.c: Revert.
11097 * aarch64-newlib-tdep.c: Revert.
11098 * aarch64-linux-tdep.c: Revert.
11099 * aarch64-linux-nat.c: Revert.
11100 * aarch64-fbsd-tdep.c: Revert.
11101 * aarch64-fbsd-nat.c: Revert.
11102 * aarch32-linux-nat.c: Revert.
11103
d55e5aa6
TT
111042019-04-05 Tom Tromey <tom@tromey.com>
11105
11106 * ft32-tdep.c: Sort headers.
11107 * frv-tdep.c: Sort headers.
11108 * frv-linux-tdep.c: Sort headers.
11109 * frame.c: Sort headers.
11110 * frame-unwind.c: Sort headers.
11111 * frame-base.c: Sort headers.
11112 * fork-child.c: Sort headers.
11113 * findvar.c: Sort headers.
11114 * findcmd.c: Sort headers.
11115 * filesystem.c: Sort headers.
11116 * filename-seen-cache.h: Sort headers.
11117 * filename-seen-cache.c: Sort headers.
11118 * fbsd-tdep.c: Sort headers.
11119 * fbsd-nat.h: Sort headers.
11120 * fbsd-nat.c: Sort headers.
11121 * f-valprint.c: Sort headers.
11122 * f-typeprint.c: Sort headers.
11123 * f-lang.c: Sort headers.
11124 * extension.h: Sort headers.
11125 * extension.c: Sort headers.
11126 * extension-priv.h: Sort headers.
11127 * expprint.c: Sort headers.
11128 * exec.h: Sort headers.
11129 * exec.c: Sort headers.
11130 * exceptions.c: Sort headers.
11131 * event-top.c: Sort headers.
11132 * event-loop.c: Sort headers.
11133 * eval.c: Sort headers.
11134 * elfread.c: Sort headers.
11135 * dwarf2read.h: Sort headers.
11136 * dwarf2read.c: Sort headers.
11137 * dwarf2loc.c: Sort headers.
11138 * dwarf2expr.h: Sort headers.
11139 * dwarf2expr.c: Sort headers.
11140 * dwarf2-frame.c: Sort headers.
11141 * dwarf2-frame-tailcall.c: Sort headers.
11142 * dwarf-index-write.h: Sort headers.
11143 * dwarf-index-write.c: Sort headers.
11144 * dwarf-index-common.c: Sort headers.
11145 * dwarf-index-cache.h: Sort headers.
11146 * dwarf-index-cache.c: Sort headers.
11147 * dummy-frame.c: Sort headers.
11148 * dtrace-probe.c: Sort headers.
11149 * disasm.h: Sort headers.
11150 * disasm.c: Sort headers.
11151 * disasm-selftests.c: Sort headers.
11152 * dictionary.c: Sort headers.
11153 * dicos-tdep.c: Sort headers.
11154 * demangle.c: Sort headers.
11155 * dcache.h: Sort headers.
11156 * dcache.c: Sort headers.
11157 * darwin-nat.h: Sort headers.
11158 * darwin-nat.c: Sort headers.
11159 * darwin-nat-info.c: Sort headers.
11160 * d-valprint.c: Sort headers.
11161 * d-namespace.c: Sort headers.
11162 * d-lang.c: Sort headers.
11163 * ctf.c: Sort headers.
11164 * csky-tdep.c: Sort headers.
11165 * csky-linux-tdep.c: Sort headers.
11166 * cris-tdep.c: Sort headers.
11167 * cris-linux-tdep.c: Sort headers.
11168 * cp-valprint.c: Sort headers.
11169 * cp-support.c: Sort headers.
11170 * cp-namespace.c: Sort headers.
11171 * cp-abi.c: Sort headers.
11172 * corelow.c: Sort headers.
11173 * corefile.c: Sort headers.
11174 * continuations.c: Sort headers.
11175 * completer.h: Sort headers.
11176 * completer.c: Sort headers.
11177 * complaints.c: Sort headers.
11178 * coffread.c: Sort headers.
11179 * coff-pe-read.c: Sort headers.
11180 * cli-out.h: Sort headers.
11181 * cli-out.c: Sort headers.
11182 * charset.c: Sort headers.
11183 * c-varobj.c: Sort headers.
11184 * c-valprint.c: Sort headers.
11185 * c-typeprint.c: Sort headers.
11186 * c-lang.c: Sort headers.
11187 * buildsym.c: Sort headers.
11188 * buildsym-legacy.c: Sort headers.
11189 * build-id.h: Sort headers.
11190 * build-id.c: Sort headers.
11191 * btrace.c: Sort headers.
11192 * bsd-uthread.c: Sort headers.
11193 * breakpoint.h: Sort headers.
11194 * breakpoint.c: Sort headers.
11195 * break-catch-throw.c: Sort headers.
11196 * break-catch-syscall.c: Sort headers.
11197 * break-catch-sig.c: Sort headers.
11198 * blockframe.c: Sort headers.
11199 * block.c: Sort headers.
11200 * bfin-tdep.c: Sort headers.
11201 * bfin-linux-tdep.c: Sort headers.
11202 * bfd-target.c: Sort headers.
11203 * bcache.c: Sort headers.
11204 * ax-general.c: Sort headers.
11205 * ax-gdb.h: Sort headers.
11206 * ax-gdb.c: Sort headers.
11207 * avr-tdep.c: Sort headers.
11208 * auxv.c: Sort headers.
11209 * auto-load.c: Sort headers.
11210 * arm-wince-tdep.c: Sort headers.
11211 * arm-tdep.c: Sort headers.
11212 * arm-symbian-tdep.c: Sort headers.
11213 * arm-pikeos-tdep.c: Sort headers.
11214 * arm-obsd-tdep.c: Sort headers.
11215 * arm-nbsd-tdep.c: Sort headers.
11216 * arm-nbsd-nat.c: Sort headers.
11217 * arm-linux-tdep.c: Sort headers.
11218 * arm-linux-nat.c: Sort headers.
11219 * arm-fbsd-tdep.c: Sort headers.
11220 * arm-fbsd-nat.c: Sort headers.
11221 * arm-bsd-tdep.c: Sort headers.
11222 * arch-utils.c: Sort headers.
11223 * arc-tdep.c: Sort headers.
11224 * arc-newlib-tdep.c: Sort headers.
11225 * annotate.h: Sort headers.
11226 * annotate.c: Sort headers.
11227 * amd64-windows-tdep.c: Sort headers.
11228 * amd64-windows-nat.c: Sort headers.
11229 * amd64-tdep.c: Sort headers.
11230 * amd64-sol2-tdep.c: Sort headers.
11231 * amd64-obsd-tdep.c: Sort headers.
11232 * amd64-obsd-nat.c: Sort headers.
11233 * amd64-nbsd-tdep.c: Sort headers.
11234 * amd64-nbsd-nat.c: Sort headers.
11235 * amd64-nat.c: Sort headers.
11236 * amd64-linux-tdep.c: Sort headers.
11237 * amd64-linux-nat.c: Sort headers.
11238 * amd64-fbsd-tdep.c: Sort headers.
11239 * amd64-fbsd-nat.c: Sort headers.
11240 * amd64-dicos-tdep.c: Sort headers.
11241 * amd64-darwin-tdep.c: Sort headers.
11242 * amd64-bsd-nat.c: Sort headers.
11243 * alpha-tdep.c: Sort headers.
11244 * alpha-obsd-tdep.c: Sort headers.
11245 * alpha-nbsd-tdep.c: Sort headers.
11246 * alpha-mdebug-tdep.c: Sort headers.
11247 * alpha-linux-tdep.c: Sort headers.
11248 * alpha-linux-nat.c: Sort headers.
11249 * alpha-bsd-tdep.c: Sort headers.
11250 * alpha-bsd-nat.c: Sort headers.
11251 * aix-thread.c: Sort headers.
11252 * agent.c: Sort headers.
11253 * addrmap.c: Sort headers.
11254 * ada-varobj.c: Sort headers.
11255 * ada-valprint.c: Sort headers.
11256 * ada-typeprint.c: Sort headers.
11257 * ada-tasks.c: Sort headers.
11258 * ada-lang.c: Sort headers.
11259 * aarch64-tdep.c: Sort headers.
11260 * aarch64-ravenscar-thread.c: Sort headers.
11261 * aarch64-newlib-tdep.c: Sort headers.
11262 * aarch64-linux-tdep.c: Sort headers.
11263 * aarch64-linux-nat.c: Sort headers.
11264 * aarch64-fbsd-tdep.c: Sort headers.
11265 * aarch64-fbsd-nat.c: Sort headers.
11266 * aarch32-linux-nat.c: Sort headers.
11267
699bd4cf
TT
112682019-04-04 Tom Tromey <tom@tromey.com>
11269
11270 * varobj.c (varobj_create): Update.
11271 * rust-exp.y (struct rust_parser) <update_innermost_block,
11272 lookup_symbol>: New methods.
11273 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11274 Rename.
11275 (rust_parser::rust_lookup_type)
11276 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11277 * printcmd.c (display_command, do_one_display): Update.
11278 * parser-defs.h (struct parser_state) <parser_state>: Add
11279 "tracker" parameter.
11280 (block_tracker): New member.
11281 (class innermost_block_tracker) <innermost_block_tracker>: Add
11282 "types" parameter.
11283 <reset>: Remove method.
11284 (innermost_block): Don't declare.
11285 (null_post_parser): Update.
11286 * parse.c (innermost_block): Remove global.
11287 (write_dollar_variable): Update.
11288 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11289 Remove "tracker_types" parameter.
11290 (parse_expression): Add "tracker" parameter.
11291 (parse_expression_for_completion): Update.
11292 (null_post_parser): Add "tracker" parameter.
11293 * p-exp.y: Update rules.
11294 * m2-exp.y: Update rules.
11295 * language.h (struct language_defn) <la_post_parser>: Add
11296 "tracker" parameter.
11297 * go-exp.y: Update rules.
11298 * f-exp.y: Update rules.
11299 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11300 parameter.
11301 * d-exp.y: Update rules.
11302 * c-exp.y: Update rules.
11303 * breakpoint.c (set_breakpoint_condition): Create an
11304 innermost_block_tracker.
11305 (watch_command_1): Likewise.
11306 * ada-lang.c (resolve): Add "tracker" parameter.
11307 (resolve_subexp): Likewise.
11308 * ada-exp.y (write_var_from_sym): Update.
11309
dac43e32
TT
113102019-04-04 Tom Tromey <tom@tromey.com>
11311
11312 * type-stack.h: New file.
11313 * type-stack.c: New file.
11314 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11315 type-stack.h.
11316 (insert_into_type_stack, insert_type, push_type, push_type_int)
11317 (insert_type_address_space, pop_type, pop_type_int)
11318 (pop_typelist, pop_type_stack, append_type_stack)
11319 (push_type_stack, get_type_stack, push_typelist)
11320 (follow_type_instance_flags, follow_types): Don't declare.
11321 * parse.c (type_stack): Remove global.
11322 (parse_exp_in_context): Update.
11323 (insert_into_type_stack, insert_type, push_type, push_type_int)
11324 (insert_type_address_space, pop_type, pop_type_int)
11325 (pop_typelist, pop_type_stack, append_type_stack)
11326 (push_type_stack, get_type_stack, push_typelist)
11327 (follow_type_instance_flags, follow_types): Remove (moved to
11328 type-stack.c).
11329 * f-exp.y (type_stack): New global.
11330 Update rules.
11331 (push_kind_type, f_parse): Update.
11332 * d-exp.y (type_stack): New global.
11333 Update rules.
11334 (d_parse): Update.
11335 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11336 Update rules.
11337 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11338 (HFILES_NO_SRCDIR): Add type-stack.h.
11339
2a612529
TT
113402019-04-04 Tom Tromey <tom@tromey.com>
11341
11342 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11343 (rust_parser::convert_ast_to_expression, rust_parse)
11344 (rust_lex_test_completion, rust_lex_tests): Update.
11345 * parser-defs.h (struct expr_completion_state): New.
11346 (struct parser_state) <parser_state>: Add completion parameter.
11347 <mark_struct_expression, mark_completion_tag>: New methods.
11348 <parse_completion, m_completion_state>: New members.
11349 (prefixify_expression, null_post_parser): Update.
11350 (mark_struct_expression, mark_completion_tag): Don't declare.
11351 * parse.c (parse_completion, expout_last_struct)
11352 (expout_tag_completion_type, expout_completion_name): Remove
11353 globals.
11354 (parser_state::mark_struct_expression)
11355 (parser_state::mark_completion_tag): Now methods.
11356 (prefixify_expression): Add last_struct parameter.
11357 (prefixify_subexp): Likewise.
11358 (parse_exp_1): Update.
11359 (parse_exp_in_context): Add cstate parameter. Update.
11360 (parse_expression_for_completion): Create an
11361 expr_completion_state.
11362 (null_post_parser): Add "completion" parameter.
11363 * p-exp.y: Update rules.
11364 (yylex): Update.
11365 * language.h (struct language_defn) <la_post_parser>: Add
11366 "completing" parameter.
11367 * go-exp.y: Update rules.
11368 (lex_one_token): Update.
11369 * expression.h (parse_completion): Don't declare.
11370 * d-exp.y: Update rules.
11371 (lex_one_token): Update rules.
11372 * c-exp.y: Update rules.
11373 (lex_one_token): Update.
11374 * ada-lang.c (resolve): Add "parse_completion" parameter.
11375 (resolve_subexp): Likewise.
11376 (ada_resolve_function): Likewise.
11377
43476f0b
TT
113782019-04-04 Tom Tromey <tom@tromey.com>
11379
11380 * parser-defs.h (struct parser_state) <start_arglist,
11381 end_arglist>: New methods.
11382 <arglist_len, m_funcall_chain>: New members.
11383 (arglist_len, start_arglist, end_arglist): Don't declare.
11384 * parse.c (arglist_len, funcall_chain): Remove global.
11385 (start_arglist, end_arglist): Remove functions.
11386 (parse_exp_in_context): Update.
11387 * p-exp.y: Update rules.
11388 * m2-exp.y: Update rules.
11389 * go-exp.y: Update rules.
11390 * f-exp.y: Update rules.
11391 * d-exp.y: Update rules.
11392 * c-exp.y: Update rules.
11393
5776fca3
TT
113942019-04-04 Tom Tromey <tom@tromey.com>
11395
11396 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11397 lex_operator, push_back>: New methods.
11398 Update all rules.
11399 (rust_parser::lex_hex, lex_escape): Rename and update.
11400 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11401 (rust_parser::lex_operator): Rename and update.
11402 (rust_parser::lex_number, rustyylex, rustyyerror)
11403 (rust_lex_test_init, rust_lex_test_sequence)
11404 (rust_lex_test_push_back, rust_lex_tests): Update.
11405 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11406 parameter.
11407 <lexptr, prev_lexptr>: New members.
11408 (lexptr, prev_lexptr): Don't declare.
11409 * parse.c (lexptr, prev_lexptr): Remove globals.
11410 (parse_exp_in_context): Update.
11411 * p-exp.y (yylex, yyerror): Update.
11412 * m2-exp.y (parse_number, yylex, yyerror): Update.
11413 * go-exp.y (lex_one_token, yyerror): Update.
11414 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11415 * d-exp.y (lex_one_token, yyerror): Update.
11416 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11417 (lex_one_token, yyerror): Update.
11418 * ada-lex.l (YY_INPUT): Update.
11419 (rewind_to_char): Update.
11420 * ada-exp.y (yyerror): Update.
11421
8621b685
TT
114222019-04-04 Tom Tromey <tom@tromey.com>
11423
11424 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11425 * parser-defs.h (struct parser_state) <parser_state>: Add new
11426 parameter.
11427 <comma_terminates>: New member.
11428 (comma_terminates): Don't declare global.
11429 * parse.c (comma_terminates): Remove global.
11430 (parse_exp_in_context): Update.
11431 * p-exp.y (yylex): Update.
11432 * m2-exp.y (yylex): Update.
11433 * go-exp.y (lex_one_token): Update.
11434 * f-exp.y (yylex): Update.
11435 * d-exp.y (lex_one_token): Update.
11436 * c-exp.y (lex_one_token): Update.
11437 * ada-lex.l: Update.
11438
28aaf3fd
TT
114392019-04-04 Tom Tromey <tom@tromey.com>
11440
11441 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11442 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11443 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11444 * parser-defs.h (paren_depth): Don't declare.
11445 * parse.c (paren_depth): Remove global.
11446 (parse_exp_in_context): Update.
11447 * p-exp.y (paren_depth): New global.
11448 (pascal_parse): Initialize it.
11449 * m2-exp.y (paren_depth): New global.
11450 (m2_parse): Initialize it.
11451 * go-exp.y (paren_depth): New global.
11452 (go_parse): Initialize it.
11453 * f-exp.y (paren_depth): New global.
11454 (f_parse): Initialize it.
11455 * d-exp.y (paren_depth): New global.
11456 (d_parse): Initialize it.
11457 * c-exp.y (paren_depth): New global.
11458 (c_parse): Initialize it.
11459 * ada-lex.l (paren_depth): New global.
11460 (lexer_init): Initialize it.
11461
1e58a4a4
TT
114622019-04-04 Tom Tromey <tom@tromey.com>
11463
11464 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11465 (rust_parser::convert_ast_to_type)
11466 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11467 * parser-defs.h (struct parser_state) <parser_state>: Add
11468 parameters. Initialize new members.
11469 <expression_context_block, expression_context_pc>: New members.
11470 * parse.c (expression_context_block, expression_context_pc):
11471 Remove globals.
11472 (parse_exp_in_context): Update.
11473 * p-exp.y: Update all rules.
11474 (yylex): Update.
11475 * m2-exp.y: Update all rules.
11476 (yylex): Update.
11477 * go-exp.y (yylex): Update.
11478 * f-exp.y (yylex): Update.
11479 * d-exp.y: Update all rules.
11480 (yylex): Update.
11481 * c-exp.y: Update all rules.
11482 (lex_one_token, classify_name, yylex, c_parse): Update.
11483 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11484
37eedb39
TT
114852019-04-04 Tom Tromey <tom@tromey.com>
11486
11487 * gdbarch.h, gdbarch.c: Rebuild.
11488 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11489 * stap-probe.h:
11490 (struct stap_parse_info): Replace "parser_state" with
11491 "expr_builder".
11492 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11493 (parser_state): New class.
11494 * parse.c (expr_builder): Rename.
11495 (expr_builder::release): Rename.
11496 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11497 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11498 (write_exp_elt_longcst, write_exp_elt_floatcst)
11499 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11500 (write_exp_string_vector, write_exp_bitstring)
11501 (write_exp_msymbol, mark_struct_expression)
11502 (write_dollar_variable)
11503 (insert_type_address_space, increase_expout_size): Replace
11504 "parser_state" with "expr_builder".
11505 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11506 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11507 "parser_state" with "expr_builder".
11508
73923d7e
TT
115092019-04-04 Tom Tromey <tom@tromey.com>
11510
11511 * rust-exp.y: Replace "parse_language" with method call.
11512 * p-exp.y:
11513 (yylex): Replace "parse_language" with method call.
11514 * m2-exp.y:
11515 (yylex): Replace "parse_language" with method call.
11516 * go-exp.y (classify_name): Replace "parse_language" with method
11517 call.
11518 * f-exp.y (yylex): Replace "parse_language" with method call.
11519 * d-exp.y (lex_one_token): Replace "parse_language" with method
11520 call.
11521 * c-exp.y:
11522 (lex_one_token, classify_name, yylex): Replace "parse_language"
11523 with method call.
11524 * ada-exp.y (find_primitive_type, type_char)
11525 (type_system_address): Replace "parse_language" with method call.
11526
fa9f5be6
TT
115272019-04-04 Tom Tromey <tom@tromey.com>
11528
11529 * rust-exp.y: Replace "parse_gdbarch" with method call.
11530 * parse.c (write_dollar_variable, insert_type_address_space):
11531 Replace "parse_gdbarch" with method call.
11532 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11533 call.
11534 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11535 call.
11536 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11537 "parse_gdbarch" with method call.
11538 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11539 with method call.
11540 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11541 "parse_gdbarch" with method call.
11542 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11543 "parse_gdbarch" with method call.
11544 * c-exp.y (parse_type, parse_number, classify_name): Replace
11545 "parse_gdbarch" with method call.
11546 * ada-lex.l: Replace "parse_gdbarch" with method call.
11547 * ada-exp.y (parse_type, find_primitive_type, type_char)
11548 (type_system_address): Replace "parse_gdbarch" with method call.
11549
1201a264
TT
115502019-04-04 Tom Tromey <tom@tromey.com>
11551
11552 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11553 * stap-probe.c (stap_parse_argument): Update.
11554 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11555 initial_size parameter.
11556 * rust-exp.y (rust_lex_tests): Update.
11557 * parse.c (parser_state): Update.
11558 (parse_exp_in_context): Update.
11559 * parser-defs.h (struct parser_state) <parser_state>: Remove
11560 "initial_size" parameter.
11561
e3980ce2
TT
115622019-04-04 Tom Tromey <tom@tromey.com>
11563
11564 * parser-defs.h (increase_expout_size): Don't declare.
11565 * parse.c (increase_expout_size): Now static.
11566
e9f8e3f1
TS
115672019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11568
11569 * gnu-nat.c (gnu_nat_target::wait): Fix
11570 target_waitstatus_to_string call.
11571
d7df6549
AB
115722019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11573
11574 * eval.c (evaluate_subexp_standard): Handle internal functions
11575 during Fortran function call handling.
11576
8bdc1658
AB
115772019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11578
11579 * NEWS: Mention new internal functions.
11580 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11581 (read_base_type): Use dwarf2_init_complex_target_type.
11582 * value.c (creal_internal_fn): New function.
11583 (cimag_internal_fn): New function.
11584 (_initialize_values): Register new internal functions.
11585
c29705b7
PW
115862019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11587
11588 * infrun.c (stop_all_threads): If debug_infrun, always
11589 trace the wait status after wait_one, using
11590 target_waitstatus_to_string and target_pid_to_str.
11591 (handle_inferior_event): Replace various trace of
11592 wait status kind by a single trace.
11593 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11594 wait status kind image by target_waitstatus_to_string.
11595 * target/waitstatus.c (target_waitstatus_to_string): Fix
11596 obsolete comment.
11597
05caa1d2
TT
115982019-04-01 Tom Tromey <tromey@adacore.com>
11599
11600 PR symtab/23331:
11601 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11602
9d1447e0
SDJ
116032019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11604 Pedro Alves <palves@redhat.com>
11605
11606 * top.c (quit_force): Call 'finalize_values'.
11607 * value.c (finalize_values): New function.
11608 * value.h (finalize_values): Declare.
11609
7734102d
EZ
116102019-03-30 Eli Zaretskii <eliz@gnu.org>
11611
11612 * NEWS: Announce $_gdb_major and $_gdb_minor.
11613
11614 * top.c (init_gdb_version_vars): New function.
11615 (gdb_init): Call init_gdb_version_vars.
11616
188e1fa9
TT
116172019-03-29 Tom Tromey <tromey@adacore.com>
11618
11619 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11620 help text. Remove dead code.
11621
2880242d
KS
116222019-03-29 Keith Seitz <keiths@redhat.com>
11623
11624 From Siddhesh Poyarekar:
11625 * f-lang.h (f77_get_upperbound): Return LONGEST.
11626 (f77_get_lowerbound): Likewise.
11627 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11628 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11629 print them.
11630 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11631 plongest to format print it.
11632 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11633 (f77_get_upperbound): Likewise.
11634 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11635 LOWER_BOUND to LONGEST.
11636 (f77_create_arrayprint_offset_tbl): Likewise.
11637
cc1defb1
KS
116382019-03-29 Keith Seitz <keiths@redhat.com>
11639
11640 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11641 %s/pulongest for TYPE_LENGTH instead of %d in format
11642 strings.
11643 * ada-typerint.c (ada_print_type): Likewise.
11644 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11645 * compile/compile-c-support.c (generate_register_struct): Likewise.
11646 * gdbtypes.c (recursive_dump_type): Likewise.
11647 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11648 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11649 instead of %d in format strings.
11650 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11651 to std::min to ULONGEST.
11652 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11653 instead of %d in format strings.
11654 * tracepoint.c (info_scope_command): Likewise.
11655 * typeprint.c (print_offset_data::update)
11656 (print_offset_data::finish): Likewise.
11657 * xtensa-tdep.c (xtensa_store_return_value)
11658 (xtensa_push_dummy_call): Likewise.
11659
e432ccf1
JT
116602019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11661
11662 * windows-nat.c (display_selector): Fixed format specifications
11663 for 64-bit Cygwin.
11664
65d2b333
PW
116652019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11666
11667 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11668
f489207e
SL
116692019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11670
11671 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11672 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11673 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11674 (nios2_linux_init_abi): Install it.
11675
bffa1015
AH
116762019-03-28 Alan Hayward <alan.hayward@arm.com>
11677
11678 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11679
fc96163a
AH
116802019-03-28 Alan Hayward <alan.hayward@arm.com>
11681
11682 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11683
20dc7e9b
PW
116842019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11685 Tom Tromey <tromey@adacore.com>
11686
11687 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11688
7f5331a8
JB
116892019-03-26 Joel Brobecker <brobecker@adacore.com>
11690
11691 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11692 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11693 method to compute the bounds of range types. Also print "[evaluated]"
11694 if the bounds' values come from a dynamic evaluation.
11695
18c77628
AB
116962019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11697
11698 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11699 whitespace when pretty printing is on.
11700
53c973f2
AH
117012019-03-26 Alan Hayward <alan.hayward@arm.com>
11702
e79be6e5 11703 * ppc-linux-nat.c: Add include.
53c973f2 11704
d851aa71
AH
117052019-03-26 Alan Hayward <alan.hayward@arm.com>
11706
e79be6e5 11707 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 11708
2fe7bab7
AH
117092019-03-26 Alan Hayward <alan.hayward@arm.com>
11710
e79be6e5 11711 * arm-linux-nat.c: Add include.
2fe7bab7 11712
068ef30e
SM
117132019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11714
11715 * source-cache.c (source_cache::get_source_lines): Re-read
11716 fullname after calling open_source_file.
11717
81a24d04
JB
117182019-03-25 John Baldwin <jhb@FreeBSD.org>
11719
11720 * NEWS: Mention TLS support for FreeBSD.
11721
79e7ae11
TT
117222019-03-25 Tom Tromey <tromey@adacore.com>
11723
11724 * minsyms.c (BUNCH_SIZE): Update comment.
11725 (~minimal_symbol_reader): Remove old comment.
11726 (compact_minimal_symbols): Update comment.
11727 (minimal_symbol_reader::install): Remove old comment. Update
11728 other comments.
11729
d45963c2
AH
117302019-03-25 Alan Hayward <alan.hayward@arm.com>
11731
11732 * s390-linux-nat.c: Add include.
11733
0f83012e
AH
117342019-03-25 Alan Hayward <alan.hayward@arm.com>
11735
11736 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11737 Call linux_get_hwcap.
11738 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11739 Likewise.
11740 (aarch64_linux_get_hwcap): Remove function.
11741 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11742 declaration.
11743 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11744 linux_get_hwcap.
11745 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11746 * linux-tdep.c (linux_get_hwcap): Add function.
11747 (linux_get_hwcap2): Likewise.
11748 * linux-tdep.h (linux_get_hwcap): Add declaration.
11749 (linux_get_hwcap2): Likewise.
11750 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11751 (ppc_linux_get_hwcap2): Likewise.
11752 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11753 linux_get_hwcap.
11754 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11755 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11756 (ppc_linux_nat_target::read_description): Likewise.
11757 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11758 * s390-linux-nat.c: Likewise.
11759 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11760
6640a367
TT
117612019-03-24 Tom Tromey <tom@tromey.com>
11762
11763 * ada-lang.c (standard_lookup): Simplify initialization.
11764 (ada_lookup_symbol_nonlocal): Simplify return.
11765 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11766 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11767 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11768 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11769 initialization.
11770 * solib.c (solib_global_lookup): Simplify.
11771 * symtab.c (null_block_symbol): Remove.
11772 (symbol_cache_lookup): Simplify returns.
11773 (lookup_language_this): Simplify returns.
11774 (lookup_symbol_aux): Simplify return.
11775 (lookup_local_symbol): Simplify returns.
11776 (lookup_global_symbol_from_objfile): Simplify return.
11777 (lookup_symbol_in_objfile_symtabs)
11778 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11779 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11780 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11781 * cp-namespace.c (cp_lookup_bare_symbol)
11782 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11783 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11784 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11785 (cp_lookup_symbol_via_imports): Simplify initialization.
11786 (find_symbol_in_baseclass): Likewise.
11787 * symtab.h (null_block_symbol): Remove.
11788 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11789 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11790 (d_lookup_symbol_module): Likewise.
11791 (find_symbol_in_baseclass): Simplify initialization.
11792
a930ebcd
TT
117932019-03-24 Tom Tromey <tom@tromey.com>
11794
11795 * expression.h: Don't include symtab.h.
11796 (struct block): Forward declare.
11797
582942f4
TT
117982019-03-24 Tom Tromey <tom@tromey.com>
11799
11800 * c-exp.y (typebase): Remove casts.
11801 * gdbtypes.c (lookup_unsigned_typename, )
11802 (lookup_signed_typename): Remove cast.
11803 * eval.c (parse_to_comma_and_eval): Remove cast.
11804 * parse.c (write_dollar_variable): Remove cast.
11805 * block.h (struct block) <superblock>: Now const.
11806 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11807 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11808 (map_block): Make "block" const.
11809 * symfile.h (struct quick_symbol_functions)
11810 <map_matching_symbols>: Constify block argument to "callback".
11811 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11812 const.
11813 (find_pc_sect_compunit_symtab): Make "b" const.
11814 (find_symbol_at_address): Likewise.
11815 (search_symbols): Likewise.
11816 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11817 (dw2_debug_names_lookup_symbol): Likewise.
11818 (dw2_map_matching_symbols): Update.
11819 * p-valprint.c (pascal_val_print): Remove "block".
11820 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11821 (aux_add_nonlocal_symbols): Make "block" const.
11822 (resolve_subexp): Remove cast.
11823 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11824 const.
11825 (iterate_over_file_blocks): Likewise.
11826 * f-exp.y (%union) <bval>: Remove.
11827 * coffread.c (patch_opaque_types): Make "b" const.
11828 * spu-tdep.c (spu_catch_start): Make "block" const.
11829 * c-valprint.c (print_unpacked_pointer): Remove "block".
11830 * symmisc.c (dump_symtab_1): Make "b" const.
11831 (block_depth): Make "block" const.
11832 * d-exp.y (%union) <bval>: Remove.
11833 * cp-support.h (cp_lookup_rtti_type): Update.
11834 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11835 * psymtab.c (psym_lookup_symbol): Make "block" const.
11836 (maintenance_check_psymtabs): Make "b" const.
11837 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11838 (enumerate_locals, enumerate_args): Update.
11839 * python/py-symtab.c (stpy_global_block): Make "block" const.
11840 (stpy_static_block): Likewise.
11841 * inline-frame.c (block_starting_point_at): Make "new_block"
11842 const.
11843 * block.c (find_block_in_blockvector): Make return type const.
11844 (blockvector_for_pc_sect): Make "b" const.
11845 (find_block_in_blockvector): Make "b" const.
11846
7ad417dd
TT
118472019-03-23 Tom Tromey <tom@tromey.com>
11848
11849 * varobj.c (varobj_create): Update.
11850 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11851 * printcmd.c (display_command, do_one_display): Don't reset
11852 innermost_block.
11853 * parser-defs.h (enum innermost_block_tracker_type): Move to
11854 expression.h.
11855 (innermost_block): Update comment.
11856 * parse.c (parse_exp_1): Add tracker_types parameter.
11857 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11858 tracker_types parameter. Reset innermost_block.
11859 (parse_exp_in_context): Remove.
11860 (parse_expression_for_completion): Update.
11861 * objfiles.c (~objfile): Don't reset expression_context_block or
11862 innermost_block.
11863 * expression.h (enum innermost_block_tracker_type): Move from
11864 parser-defs.h.
11865 (parse_exp_1): Add tracker_types parameter.
11866 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11867 reset innermost_block.
11868
b366c208
TT
118692019-03-23 Tom Tromey <tom@tromey.com>
11870
11871 * objfiles.h: Include bcache.h.
11872
9bb9b2f9
TT
118732019-03-23 Tom Tromey <tom@tromey.com>
11874
11875 * linespec.c (get_current_search_block): Use
11876 scoped_restore_current_language.
11877 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11878
59c28372
AH
118792019-03-22 Alan Hayward <alan.hayward@arm.com>
11880 Jiong Wang <jiong.wang@arm.com>
11881
11882 * aarch64-linux-tdep.c
11883 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11884 section.
11885 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11886
17e116a7
AH
118872019-03-22 Alan Hayward <alan.hayward@arm.com>
11888 Jiong Wang <jiong.wang@arm.com>
11889
11890 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11891 instructions.
11892 (aarch64_analyze_prologue_test): Add PACIASP test.
11893 (aarch64_prologue_prev_register): Unmask PC value.
11894
11e1b75f
AH
118952019-03-22 Alan Hayward <alan.hayward@arm.com>
11896 Jiong Wang <jiong.wang@arm.com>
11897
11898 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11899 (aarch64_dwarf2_prev_register): Unmask PC value.
11900 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11901 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11902 DW_CFA_AARCH64_negate_ra_state.
11903 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11904
34dcc7cf
AH
119052019-03-22 Alan Hayward <alan.hayward@arm.com>
11906 Jiong Wang <jiong.wang@arm.com>
11907
11908 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11909 registers.
11910 (aarch64_pseudo_register_name): Likewise.
11911 (aarch64_pseudo_register_type): Likewise.
11912 (aarch64_pseudo_register_reggroup_p): Likewise.
11913 (aarch64_gdbarch_init): Add pauth registers.
11914 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11915 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11916 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11917 (struct gdbarch_tdep): Add regnum for ra_state.
11918
1ef53e6b
AH
119192019-03-22 Alan Hayward <alan.hayward@arm.com>
11920 Jiong Wang <jiong.wang@arm.com>
11921
11922 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11923
76bed0fd
AH
119242019-03-22 Alan Hayward <alan.hayward@arm.com>
11925 Jiong Wang <jiong.wang@arm.com>
11926
11927 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11928 function.
11929 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11930 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11931 (aarch64_gdbarch_init): Add puth registers.
11932 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11933 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11934 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11935
ee4fbcfa
AH
119362019-03-22 Alan Hayward <alan.hayward@arm.com>
11937 Jiong Wang <jiong.wang@arm.com>
11938
11939 * aarch64-linux-nat.c
11940 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11941 * aarch64-linux-tdep.c
11942 (aarch64_linux_core_read_description): Likewise.
11943 (aarch64_linux_get_hwcap): New function.
11944 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11945 (aarch64_linux_get_hwcap): New declaration.
11946
6dc0ebde
AH
119472019-03-22 Alan Hayward <alan.hayward@arm.com>
11948 Jiong Wang <jiong.wang@arm.com>
11949
11950 * aarch64-linux-nat.c
11951 (aarch64_linux_nat_target::read_description): Add pauth param.
11952 * aarch64-linux-tdep.c
11953 (aarch64_linux_core_read_description): Likewise.
11954 * aarch64-tdep.c (struct target_desc): Add in pauth.
11955 (aarch64_read_description): Add pauth param.
11956 (aarch64_gdbarch_init): Likewise.
11957 * aarch64-tdep.h (aarch64_read_description): Likewise.
11958 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11959 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11960 * features/Makefile: Add new files.
11961 * features/aarch64-pauth.c: New file.
11962 * features/aarch64-pauth.xml: New file.
11963
595915c1
TT
119642019-03-20 Tom Tromey <tromey@adacore.com>
11965
11966 * infrun.c (handle_inferior_event): Rename from
11967 handle_inferior_event_1. Create a scoped_value_mark.
11968 (handle_inferior_event): Remove.
11969
4c7d57e7
TT
119702019-03-19 Tom Tromey <tromey@adacore.com>
11971
11972 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11973 * infrun.h (print_stop_event): Add "displays" parameter.
11974 * infrun.c (print_stop_event): Add "displays" parameter.
11975
cb246234
PA
119762019-03-19 Pedro Alves <palves@redhat.com>
11977
11978 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11979 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11980 to -1. Fix TABs vs spaces.
11981 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11982 * tui/tui-out.h (tui_ui_out) Add intro comments.
11983 <m_line, m_start_of_line>: In-class initialize, and add describing
11984 comment.
11985
3a0e45b2
AH
119862019-03-18 Alan Hayward <alan.hayward@arm.com>
11987
11988 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11989 variable names.
11990 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
11991
5371b850
PA
119922019-03-18 Pedro Alves <palves@redhat.com>
11993 Eli Zaretskii <eliz@gnu.org>
11994
11995 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
11996 m_line and m_start_of_line.
11997
b17c4cd0
EZ
119982019-03-18 Eli Zaretskii <eliz@gnu.org>
11999
12000 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12001 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12002 it returns a newline. This fixes a regression in TU mode, whereby
12003 the next line is output on the same screen line as the user input.
12004
4bd56d18
TT
120052019-03-18 Tom Tromey <tromey@adacore.com>
12006
12007 * minsyms.c (minimal_symbol_reader::install): Remove call to
12008 obstack_blank.
12009
55c10aca
PA
120102019-03-18 Pedro Alves <palves@redhat.com>
12011
12012 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12013 New globals.
12014 (apply_style): New, factored out from ...
12015 (apply_ansi_escape): ... this. Handle reverse video mode.
12016 (tui_set_reverse_mode): New function.
12017 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12018 * tui/tui-winsource.c (tui_show_source_line): Use
12019 tui_set_reverse_mode instead of setting A_STANDOUT.
12020 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12021 New setter methods.
12022
647bb750
HD
120232019-03-18 Hannes Domani <ssbssa@yahoo.de>
12024
12025 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12026 Handle tabs.
12027
bff8c71f
TT
120282019-03-18 Tom Tromey <tromey@adacore.com>
12029
12030 * ada-lang.c (empty_array): Add "high" parameter.
12031 (ada_evaluate_subexp): Update.
12032
58785d98
ST
120332019-03-17 Sergei Trofimovich <siarheit@google.com>
12034
12035 * unittests/string_view-selftests.c: Define
12036 _initialize_string_view_selftests unconditionally.
12037
d4cbef22
ВМ
120382019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12039
12040 PR gdb/24350
12041 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12042
fce4c071
ВМ
120432019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12044
12045 PR gdb/24351
12046 * windows-nat.c (display_selector): Fix format specifiers.
12047
f7f0a123
EZ
120482019-03-17 Eli Zaretskii <eliz@gnu.org>
12049
12050 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12051 tui_refill_source_window instead of tui_refresh_win, to update the
12052 current execution line. This fixes redisplay of the current line
12053 when stepping through the code with "next" or "step".
12054
ab42892f
EZ
120552019-03-16 Eli Zaretskii <eliz@gnu.org>
12056
12057 * source-cache.c (source_cache::get_source_lines): Call
12058 find_source_lines to initialize s->nlines. This fixes vertical
12059 scrolling of TUI source window when the DOWN arrow is pressed.
12060
8d8c087f
PW
120612019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12062
12063 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12064 linux-thread-db.c (_initialize_thread_db): Likewise.
12065
798e1c30
EZ
120662019-03-16 Eli Zaretskii <eliz@gnu.org>
12067
12068 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12069 wclrtoeol in tui_show_source_line". This reverts changes made in
12070 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12071
eefba3da
TT
120722019-03-15 Tom Tromey <tom@tromey.com>
12073
12074 * symtab.h (struct minimal_symbol): Derive from
12075 general_symbol_info.
12076 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12077 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12078 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12079 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12080 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12081 (MSYMBOL_SEARCH_NAME): Update.
12082 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12083 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12084 * minsyms.c (minimal_symbol_reader::record_full): Update.
12085
0de2420c
TT
120862019-03-15 Tom Tromey <tom@tromey.com>
12087
12088 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12089
042d75e4
TT
120902019-03-15 Tom Tromey <tom@tromey.com>
12091
12092 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12093 unique_xmalloc_ptr.
12094 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12095 Update.
12096 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12097 (build_minimal_symbol_hash_tables)
12098 (minimal_symbol_reader::install): Update.
12099
db92718b
TT
121002019-03-15 Tom Tromey <tom@tromey.com>
12101
12102 * symtab.c (create_demangled_names_hash): Update.
12103 (symbol_set_names): Update.
12104 * objfiles.h (struct objfile_per_bfd_storage)
12105 <demangled_names_hash>: Now an htab_up.
12106 * objfiles.c (objfile_per_bfd_storage): Simplify.
12107
d6797f46
TT
121082019-03-15 Tom Tromey <tom@tromey.com>
12109
12110 * objfiles.h (struct objfile_per_bfd_storage): Declare
12111 destructor.
12112 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12113 New.
12114 (get_objfile_bfd_data): Use new. Don't initialize
12115 language_of_main.
12116 (free_objfile_per_bfd_storage): Remove.
12117 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12118
741d7538
TT
121192019-03-15 Tom Tromey <tom@tromey.com>
12120
12121 * symfile.c (reread_symbols): Update.
12122 * objfiles.c (objfile::objfile): Update.
12123 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12124 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12125 comment.
12126 (minimal_symbol_reader::install): Update.
12127 (terminate_minimal_symbol_table): Remove.
12128 * jit.c (jit_object_close_impl): Update.
12129
788c80d1
TT
121302019-03-15 Tom Tromey <tom@tromey.com>
12131
12132 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12133 initializations.
12134
1b7a07cb
TT
121352019-03-15 Tom Tromey <tom@tromey.com>
12136
12137 * objfiles.h (struct objfile_per_bfd_storage)
12138 <demangled_hash_languages>: Now a bitset.
12139 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12140 (lookup_minimal_symbol): Update.
12141
3db066bc
TT
121422019-03-15 Tom Tromey <tom@tromey.com>
12143
12144 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12145 Don't return the symbol.
12146 * coffread.c (record_minimal_symbol): Use record_full.
12147
3fff2c37
EZ
121482019-03-14 Eli Zaretskii <eliz@gnu.org>
12149
12150 The MS-Windows port of ncurses fails to switch to a color pair if
12151 one or both of the colors are the implicit default colors. This
12152 change records the default colors when TUI is initialized, and
12153 then specifies them explicitly when a color pair uses the default
12154 colors. This allows color styling in TUI mode on MS-Windows.
12155
12156 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12157 ncurses_norm_attr.
12158 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12159 colors in ncurses_norm_attr.
12160 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12161 "none", replace it with the default color recorded in
12162 ncurses_norm_attr.
12163
3b336828
TT
121642019-03-14 Tom Tromey <tromey@adacore.com>
12165
12166 * source-cache.h (class source_cache) <get_source_lines>: Return
12167 std::string.
12168 * source-cache.c (source_cache::extract_lines): Handle case where
12169 first_pos==npos. Return std::string.
12170 (source_cache::get_source_lines): Update.
12171
d085f989
TT
121722019-03-14 Tom Tromey <tromey@adacore.com>
12173
12174 * NEWS: Add item for "style sources" commands.
12175 * source-cache.c (source_cache::get_source_lines): Check
12176 source_styling.
12177 * cli/cli-style.c (source_styling): New global.
12178 (_initialize_cli_style): Add "style sources" commands.
12179 (show_style_sources): New function.
12180 * cli/cli-style.h (source_styling): Declare.
12181
6f11e682
TT
121822019-03-14 Pedro Alves <palves@redhat.com>
12183 Tom Tromey <tromey@adacore.com>
12184
12185 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12186 * tui/tui-winsource.c (tui_refill_source_window): New function,
12187 from...
12188 (tui_horizontal_source_scroll): ... here. Move some logic.
12189 * cli/cli-style.c (set_style_enabled): Notify new observable.
12190 * tui/tui-hooks.c (tui_redisplay_source): New function.
12191 (tui_attach_detach_observers): Attach or detach
12192 tui_redisplay_source.
12193 * observable.h (source_styling_changed): New observable.
12194 * observable.c: Define source_styling_changed observable.
12195
a068643d
TT
121962019-03-13 Tom Tromey <tromey@adacore.com>
12197
12198 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12199 (i386_gnu_nat_target::store_registers): Update.
12200 * target-debug.h (target_debug_print_std_string): New macro.
12201 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12202 * windows-tdep.c (display_one_tib): Update.
12203 * tui/tui-stack.c (tui_make_status_line): Update.
12204 * top.c (print_inferior_quit_action): Update.
12205 * thread.c (thr_try_catch_cmd): Update.
12206 (add_thread_with_info): Update.
12207 (thread_target_id_str): Update.
12208 (thr_try_catch_cmd): Update.
12209 (thread_command): Update.
12210 (thread_find_command): Update.
12211 * record-btrace.c (record_btrace_target::info_record)
12212 (record_btrace_resume_thread, record_btrace_target::resume)
12213 (record_btrace_cancel_resume, record_btrace_step_thread)
12214 (record_btrace_target::wait, record_btrace_target::wait)
12215 (record_btrace_target::wait, record_btrace_target::stop): Update.
12216 * progspace.c (print_program_space): Update.
12217 * process-stratum-target.c
12218 (process_stratum_target::thread_address_space): Update.
12219 * linux-fork.c (linux_fork_mourn_inferior)
12220 (detach_checkpoint_command, info_checkpoints_command)
12221 (linux_fork_context): Update.
12222 (linux_fork_detach): Update.
12223 (class scoped_switch_fork_info): Update.
12224 (delete_checkpoint_command): Update.
12225 * infrun.c (follow_fork_inferior): Update.
12226 (follow_fork_inferior): Update.
12227 (proceed_after_vfork_done): Update.
12228 (handle_vfork_child_exec_or_exit): Update.
12229 (follow_exec): Update.
12230 (displaced_step_prepare_throw): Update.
12231 (displaced_step_restore): Update.
12232 (start_step_over): Update.
12233 (resume_1): Update.
12234 (clear_proceed_status_thread): Update.
12235 (proceed): Update.
12236 (print_target_wait_results): Update.
12237 (do_target_wait): Update.
12238 (context_switch): Update.
12239 (stop_all_threads): Update.
12240 (restart_threads): Update.
12241 (finish_step_over): Update.
12242 (handle_signal_stop): Update.
12243 (switch_back_to_stepped_thread): Update.
12244 (keep_going_pass_signal): Update.
12245 (print_exited_reason): Update.
12246 (normal_stop): Update.
12247 * inferior.c (inferior_pid_to_str): Change return type.
12248 (print_selected_inferior): Update.
12249 (add_inferior): Update.
12250 (detach_inferior): Update.
12251 * dummy-frame.c (fprint_dummy_frames): Update.
12252 * dcache.c (dcache_info_1): Update.
12253 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12254 (btrace_fetch, btrace_clear): Update.
12255 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12256 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12257 type.
12258 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12259 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12260 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12261 * gdbarch.c, gdbarch.h: Rebuild.
12262 * gdbarch.sh (core_pid_to_str): Change return type.
12263 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12264 return type.
12265 (windows_nat_target::pid_to_str): Change return type.
12266 (windows_delete_thread): Update.
12267 (windows_nat_target::attach): Update.
12268 (windows_nat_target::files_info): Update.
12269 * target-delegates.c: Rebuild.
12270 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12271 return type.
12272 (sol_thread_target::pid_to_str): Change return type.
12273 * remote.c (class remote_target) <pid_to_str>: Change return
12274 type.
12275 (remote_target::pid_to_str): Change return type.
12276 (extended_remote_target::attach, remote_target::remote_stop_ns)
12277 (remote_target::remote_notif_remove_queued_reply)
12278 (remote_target::push_stop_reply, remote_target::disable_btrace):
12279 Update.
12280 (extended_remote_target::attach): Update.
12281 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12282 type.
12283 (gdbsim_target::pid_to_str): Change return type.
12284 * ravenscar-thread.c (struct ravenscar_thread_target)
12285 <pid_to_str>: Change return type.
12286 (ravenscar_thread_target::pid_to_str): Change return type.
12287 * procfs.c (class procfs_target) <pid_to_str>: Change return
12288 type.
12289 (procfs_target::pid_to_str): Change return type.
12290 (procfs_target::attach): Update.
12291 (procfs_target::detach): Update.
12292 (procfs_target::fetch_registers): Update.
12293 (procfs_target::store_registers): Update.
12294 (procfs_target::wait): Update.
12295 (procfs_target::files_info): Update.
12296 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12297 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12298 return type.
12299 (nto_procfs_target::pid_to_str): Change return type.
12300 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12301 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12302 return type.
12303 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12304 (exit_lwp): Update.
12305 (attach_proc_task_lwp_callback, get_detach_signal)
12306 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12307 (linux_nat_target::resume, wait_lwp, stop_callback)
12308 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12309 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12310 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12311 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12312 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12313 type.
12314 (inf_ptrace_target::attach): Update.
12315 (inf_ptrace_target::files_info): Update.
12316 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12317 type.
12318 (go32_nat_target::pid_to_str): Change return type.
12319 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12320 (gnu_nat_target::wait): Update.
12321 (gnu_nat_target::wait): Update.
12322 (gnu_nat_target::resume): Update.
12323 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12324 (fbsd_nat_target::wait): Update.
12325 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12326 type.
12327 (darwin_nat_target::attach): Update.
12328 * corelow.c (class core_target) <pid_to_str>: Change return type.
12329 (core_target::pid_to_str): Change return type.
12330 * target.c (normal_pid_to_str): Change return type.
12331 (default_pid_to_str): Likewise.
12332 (target_pid_to_str): Change return type.
12333 (target_translate_tls_address): Update.
12334 (target_announce_detach): Update.
12335 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12336 return type.
12337 (bsd_uthread_target::pid_to_str): Change return type.
12338 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12339 type.
12340 (bsd_kvm_target::pid_to_str): Change return type.
12341 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12342 return type.
12343 (aix_thread_target::pid_to_str): Change return type.
12344 * target.h (struct target_ops) <pid_to_str>: Change return type.
12345 (target_pid_to_str, normal_pid_to_str): Likewise.
12346 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12347 type.
12348 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12349 type.
12350 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12351 return type.
12352 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12353 type.
12354 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12355 type.
12356 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12357 return type.
12358
b4be1b06
SM
123592019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12360
12361 * NEWS: Mention that the new default MI version is 3. Mention
12362 changes to the output of commands and events that deal with
12363 multi-location breakpoints.
12364 * breakpoint.c: Include "mi/mi-out.h".
12365 (print_one_breakpoint): Change output syntax if using MI version
12366 >= 3.
12367 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12368 New.
12369 (mi_multi_location_breakpoint_output_fixed): New.
12370 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12371 (mi_cmd_fix_multi_location_breakpoint_output): New.
12372 (mi_multi_location_breakpoint_output_fixed): New.
12373 * mi/mi-cmds.c (mi_cmds): Register command
12374 -fix-multi-location-breakpoint-output.
12375 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12376 interpreter "mi".
12377
8e5e5494
SM
123782019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12379
12380 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12381 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12382 instantiate mi_ui_out based on interpreter name.
12383 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12384 * mi/mi-main.c (mi_load_progress): Likewise.
12385
197df35e
JB
123862019-03-12 John Baldwin <jhb@FreeBSD.org>
12387
12388 * NEWS: Combine separate "New targets" sections for 8.3.
12389
8399425f
JB
123902019-03-12 John Baldwin <jhb@FreeBSD.org>
12391
12392 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12393 (ppcfbsd_init_abi): Install gdbarch
12394 "fetch_tls_load_module_address" and "get_thread_local_address"
12395 methods.
12396
b0f87ed0
JB
123972019-03-12 John Baldwin <jhb@FreeBSD.org>
12398
12399 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12400 (riscv_fbsd_init_abi): Install gdbarch
12401 "fetch_tls_load_module_address" and "get_thread_local_address"
12402 methods.
12403
ce25aa57
JB
124042019-03-12 John Baldwin <jhb@FreeBSD.org>
12405
12406 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12407 (i386fbsd_init_abi): Install gdbarch
12408 "fetch_tls_load_module_address" and "get_thread_local_address"
12409 methods.
12410
f5424cfa
JB
124112019-03-12 John Baldwin <jhb@FreeBSD.org>
12412
12413 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12414 (amd64fbsd_init_abi): Install gdbarch
12415 "fetch_tls_load_module_address" and "get_thread_local_address"
12416 methods.
12417
945f3901
JB
124182019-03-12 John Baldwin <jhb@FreeBSD.org>
12419
12420 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12421 (struct fbsd_pspace_data): New type.
12422 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12423 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12424 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12425 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12426 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12427
ef0bd204
JB
124282019-03-12 John Baldwin <jhb@FreeBSD.org>
12429
12430 * gdbtypes.c (lookup_struct_elt): New function.
12431 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12432 * gdbtypes.h (struct struct_elt): New type.
12433 (lookup_struct_elt): New prototype.
12434
36c53a02
JB
124352019-03-12 John Baldwin <jhb@FreeBSD.org>
12436
12437 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12438 remove disabled code block.
12439
6e056c81
JB
124402019-03-12 John Baldwin <jhb@FreeBSD.org>
12441
12442 * gdbarch.sh (get_thread_local_address): New method.
12443 * gdbarch.h, gdbarch.c: Regenerate.
12444 * target.c (target_translate_tls_address): Use
12445 gdbarch_get_thread_local_address if present instead of
12446 target::get_thread_local_address.
12447
cd250a18
JB
124482019-03-12 John Baldwin <jhb@FreeBSD.org>
12449
12450 * target.h (target::get_thread_local_address): Update comment.
12451
df22c1e5
JB
124522019-03-12 John Baldwin <jhb@FreeBSD.org>
12453
12454 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12455 objfile->separate_debug_objfile_backlink if not NULL.
12456
dd6876c9
JB
124572019-03-12 John Baldwin <jhb@FreeBSD.org>
12458
12459 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12460 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12461 (amd64bsd_store_inferior_registers): Likewise.
12462 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12463 Enable segment base registers.
12464 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12465 PT_GETFSBASE and PT_GETGSBASE.
12466 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12467 PT_SETGSBASE.
12468 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12469 segment base registers.
12470 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12471
1163a4b7
JB
124722019-03-12 John Baldwin <jhb@FreeBSD.org>
12473
12474 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12475 Update calls to i386_target_description to add 'segments'
12476 parameter.
12477 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12478 add segment base registers.
12479 * arch/i386.c (i386_create_target_description): Add 'segments'
12480 parameter to enable segment base registers.
12481 * arch/i386.h (i386_create_target_description): Likewise.
12482 * features/i386/32bit-segments.xml: New file.
12483 * features/i386/32bit-segments.c: Generate.
12484 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12485 call to i386_target_description to add 'segments' parameter.
12486 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12487 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12488 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12489 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12490 if feature is present.
12491 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12492 Add 'segments' parameter to call to i386_target_description.
12493 (i386_target_description): Add 'segments' parameter to enable
12494 segment base registers.
12495 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12496 to call to i386_target_description.
12497 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12498 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12499 Define I386_NUM_REGS.
12500 (i386_target_description): Add 'segments' parameter to enable
12501 segment base registers.
12502
3a350822
EZ
125032019-03-12 Eli Zaretskii <eliz@gnu.org>
12504
12505 PR/24325
12506 * source-cache.c: #undef open and close, to avoid unresolved
12507 externals during linking.
12508
ffdd69cf
TT
125092019-03-12 Tom Tromey <tromey@adacore.com>
12510
12511 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12512 const. Add initializers.
12513 (_initialize_remote): Don't initialize ptid globals.
12514
ec148c57
PA
125152019-03-12 Pedro Alves <palves@redhat.com>
12516
12517 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12518
32764270
PA
125192019-03-12 Pedro Alves <palves@redhat.com>
12520
12521 * cp-name-parser.y (main): Remove unused 'len' variable.
12522
17547186
TT
125232019-03-12 Tom Tromey <tromey@adacore.com>
12524
12525 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12526 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12527
d3a70e03
TT
125282019-03-12 Tom Tromey <tromey@adacore.com>
12529
12530 * linux-nat.c (iterate_over_lwps): Update.
12531 (stop_callback): Remove parameter.
12532 (stop_wait_callback, detach_callback, resume_set_callback)
12533 (select_singlestep_lwp_callback, set_ignore_sigint)
12534 (status_callback, resumed_callback, resume_clear_callback)
12535 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12536 data parameter.
12537 (linux_nat_target::detach, linux_nat_target::resume)
12538 (linux_stop_and_wait_all_lwps, select_event_lwp)
12539 (linux_nat_filter_event, linux_nat_wait_1)
12540 (linux_nat_target::kill, linux_nat_target::stop)
12541 (linux_nat_target::stop): Update.
12542 (linux_nat_resume_callback): Change type.
12543 (resume_stopped_resumed_lwps, count_events_callback)
12544 (select_event_lwp_callback): Likewise.
12545 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12546 * arm-linux-nat.c (struct update_registers_data): Remove.
12547 (update_registers_callback): Change type.
12548 (arm_linux_insert_hw_breakpoint1): Update.
12549 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12550 parameter.
12551 (x86_linux_dr_set_addr): Update.
12552 (x86_linux_dr_set_control): Update.
12553 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12554 (iterate_over_lwps): Use gdb::function_view.
12555 * nat/aarch64-linux-hw-point.c (struct
12556 aarch64_dr_update_callback_param): Remove.
12557 (debug_reg_change_callback): Change type.
12558 (aarch64_notify_debug_reg_change): Update.
12559 * s390-linux-nat.c (s390_refresh_per_info): Update.
12560
82cb27ff
TT
125612019-03-11 Tom Tromey <tromey@adacore.com>
12562
12563 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12564 redundant assignment to "this_cu".
12565
568c0683
SM
125662019-03-08 Simon Marchi <simon.marchi@efficios.com>
12567
12568 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12569
f09ce22d
SM
125702019-03-08 Simon Marchi <simon.marchi@efficios.com>
12571
12572 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12573 from...
12574 (rank_one_type): ... this.
12575
595f96a9
SM
125762019-03-08 Simon Marchi <simon.marchi@efficios.com>
12577
12578 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12579 from...
12580 (rank_one_type): ... this.
12581
2598a94b
SM
125822019-03-08 Simon Marchi <simon.marchi@efficios.com>
12583
12584 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12585 from...
12586 (rank_one_type): ... this.
12587
7f17b20d
SM
125882019-03-08 Simon Marchi <simon.marchi@efficios.com>
12589
12590 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12591 from...
12592 (rank_one_type): ... this.
12593
2c509035
SM
125942019-03-08 Simon Marchi <simon.marchi@efficios.com>
12595
12596 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12597 from...
12598 (rank_one_type): ... this.
12599
0dd322dc
SM
126002019-03-08 Simon Marchi <simon.marchi@efficios.com>
12601
12602 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12603 from...
12604 (rank_one_type): ... this.
12605
41ea4728
SM
126062019-03-08 Simon Marchi <simon.marchi@efficios.com>
12607
12608 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12609 from...
12610 (rank_one_type): ... this.
12611
793cd1d2
SM
126122019-03-08 Simon Marchi <simon.marchi@efficios.com>
12613
12614 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12615 from...
12616 (rank_one_type): ... this.
12617
34910087
SM
126182019-03-08 Simon Marchi <simon.marchi@efficios.com>
12619
12620 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12621 from...
12622 (rank_one_type): ... this.
12623
f1f832d6
SM
126242019-03-08 Simon Marchi <simon.marchi@efficios.com>
12625
12626 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12627 from...
12628 (rank_one_type): ... this.
12629
b9f4512f
SM
126302019-03-08 Simon Marchi <simon.marchi@efficios.com>
12631
12632 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12633 from...
12634 (rank_one_type): ... this.
12635
9293fc63
SM
126362019-03-08 Simon Marchi <simon.marchi@efficios.com>
12637
12638 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12639 from...
12640 (rank_one_type): ... this.
12641
e3abbe7e
PW
126422019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12643
12644 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12645 inferior-events' shows the example events.
12646
e4adb939
EZ
126472019-03-08 Eli Zaretskii <eliz@gnu.org>
12648
12649 Support styling on native MS-Windows console
12650
12651 PR/24315
12652 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12653 on MS-Windows if $TERM is not defined.
12654
12655 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12656
12657 * posix-hdep.c (gdb_console_fputs):
12658 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12659 functions.
12660 * ui-file.h (gdb_console_fputs): Add prototype.
12661
12662 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12663 back to fputs only if the former returns zero.
12664
25629dfd
TT
126652019-03-07 Tom Tromey <tom@tromey.com>
12666
12667 * symmisc.c (print_symbol_bcache_statistics): Update.
12668 (print_objfile_statistics): Update.
12669 * symfile.c (allocate_symtab): Update.
12670 * stabsread.c: Don't include bcache.h.
12671 * psymtab.h (struct psymbol_bcache): Don't declare.
12672 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12673 (psymbol_bcache_init, psymbol_bcache_free)
12674 (psymbol_bcache_get_bcache): Don't declare.
12675 * psymtab.c (struct psymbol_bcache): Remove.
12676 (psymtab_storage::psymtab_storage): Update.
12677 (psymtab_storage::~psymtab_storage): Update.
12678 (psymbol_bcache_init, psymbol_bcache_free)
12679 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12680 (add_psymbol_to_bcache): Update.
12681 (allocate_psymtab): Update.
12682 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12683 macro_cache>: No longer pointers.
12684 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12685 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12686 * macrotab.c (macro_bcache): Update.
12687 * macroexp.c: Don't include bcache.h.
12688 * gdbtypes.c (check_types_worklist): Update.
12689 (types_deeply_equal): Remove TRY/CATCH. Update.
12690 * elfread.c (elf_symtab_read): Update.
12691 * dwarf2read.c: Don't include bcache.h.
12692 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12693 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12694 (print_bcache_statistics, bcache_memory_used): Don't declare.
12695 (struct bcache): Move from bcache.c. Add constructor, destructor,
12696 methods. Rename all data members.
12697 * bcache.c (struct bcache): Move to bcache.h.
12698 (bcache::expand_hash_table): Rename from expand_hash_table.
12699 (bcache): Remove.
12700 (bcache::insert): Rename from bcache_full.
12701 (bcache::compare): Rename from bcache_compare.
12702 (bcache_xmalloc): Remove.
12703 (bcache::~bcache): Rename from bcache_xfree.
12704 (bcache::print_statistics): Rename from print_bcache_statistics.
12705 (bcache::memory_used): Rename from bcache_memory_used.
12706
fe726667
PA
127072019-03-07 Pedro Alves <palves@redhat.com>
12708
12709 * infrun.c (normal_stop): Also check for
12710 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12711
7584bb30
AB
127122019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12713
12714 * f-lang.c (value_from_host_double): Moved to...
12715 * value.c (value_from_host_double): ...here.
12716 * value.h (value_from_host_double): Declare.
12717 * guile/scm-math.c (vlscm_convert_typed_number): Use
12718 value_from_host_double.
12719 (vlscm_convert_number): Likewise.
12720 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12721 * python/py-value.c (convert_value_from_python): Likewise.
12722
a7b1986e
TT
127232019-03-06 Tom Tromey <tom@tromey.com>
12724
12725 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12726
0ccf4211
TT
127272019-03-06 Tom Tromey <tom@tromey.com>
12728
12729 * utils.h (free_current_contents): Don't declare.
12730 * utils.c (free_current_contents): Remove.
12731
fe7b42e5
TT
127322019-03-06 Tom Tromey <tom@tromey.com>
12733
12734 * top.c (quit_force): Update.
12735 * main.c (captured_command_loop): Update.
12736 * common/new-op.c (operator new): Update.
12737 * common/common-exceptions.c (struct catcher)
12738 <save_cleanup_chain>: Remove member.
12739 (exceptions_state_mc_init): Update.
12740 (exception_try_scope_entry): Return nullptr.
12741 (exception_try_scope_exit, exception_rethrow)
12742 (throw_exception_sjlj, throw_exception_cxx): Update.
12743 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12744 (all_cleanups, do_cleanups, discard_cleanups)
12745 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12746 (restore_cleanups, restore_final_cleanups): Don't declare.
12747 (do_final_cleanups): Remove parameter.
12748 * common/cleanups.c (cleanup_chain, make_cleanup)
12749 (make_cleanup_dtor, all_cleanups, do_cleanups)
12750 (discard_my_cleanups, discard_cleanups)
12751 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12752 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12753 (null_cleanup): Remove.
12754 (do_final_cleanups): Remove parameter.
12755
c6321f19
TT
127562019-03-06 Tom Tromey <tom@tromey.com>
12757
12758 * remote.c (remote_target::remote_parse_stop_reply): Use
12759 unique_xmalloc_ptr.
12760
61b30099
TT
127612019-03-06 Tom Tromey <tom@tromey.com>
12762
12763 * stabsread.c (struct stabs_field_info): Rename from field_info.
12764 <list, fnlist>: Add initializers.
12765 <obstack>: New member.
12766 (read_member_functions, read_struct_fields, read_baseclasses):
12767 Allocate on obstack. Don't use cleanups.
12768 (read_one_struct_field, read_member_functions, read_struct_fields)
12769 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12770 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12771 (read_struct_type): Update.
12772
6cceac94
TT
127732019-03-06 Tom Tromey <tom@tromey.com>
12774
12775 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12776 * common/filestuff.h (make_cleanup_close): Don't declare.
12777 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12778 Remove.
12779
72412762
TT
127802019-03-06 Tom Tromey <tom@tromey.com>
12781
12782 * solib-aix.c: Use make_scope_exit.
12783
2b6ff1c0
TT
127842019-03-06 Tom Tromey <tom@tromey.com>
12785
12786 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12787 Use make_scope_exit.
12788
d01c5877
TT
127892019-03-06 Tom Tromey <tom@tromey.com>
12790
12791 * solib-svr4.c (disable_probes_interface): Remove parameter.
12792 (svr4_handle_solib_event): Use make_scope_exit.
12793
32603266
TT
127942019-03-06 Tom Tromey <tom@tromey.com>
12795
12796 * remote.c (struct stop_reply_deleter): Remove.
12797 (stop_reply_up): Update.
12798 (struct stop_reply): Derive from notif_event. Don't typedef.
12799 <regcache>: Now a std::vector.
12800 (stop_reply_xfree): Remove.
12801 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12802 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12803 (remote_target::discard_pending_stop_replies): Use delete.
12804 (remote_target::remote_parse_stop_reply): Update.
12805 (remote_target::process_stop_reply): Update.
12806 * remote-notif.h (struct notif_event): Add virtual destructor.
12807 Remove "dtr" member.
12808 (struct notif_client) <alloc_event>: Return a unique_ptr.
12809 (notif_event_xfree): Don't declare.
12810 (notif_event_up): New typedef.
12811 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12812 (notif_event_xfree, do_notif_event_xfree): Remove.
12813 (remote_notif_state_xfree): Update.
12814
9799571e
TT
128152019-03-06 Tom Tromey <tom@tromey.com>
12816
12817 * infrun.c (displaced_step_clear_cleanup): Now a
12818 forward_scope_exit type.
12819 (displaced_step_prepare_throw): Update.
12820 (displaced_step_fixup): Update.
12821
09e3c4ca
TT
128222019-03-06 Tom Tromey <tom@tromey.com>
12823
12824 * inferior.h (class inferior): Update comment.
12825 * gdbthread.h (class thread_info): Update comment.
12826
e2a03548
TT
128272019-03-06 Joel Brobecker <brobecker@adacore.com>
12828 Tom Tromey <tom@tromey.com>
12829
12830 * stabsread.h (struct stab_section_list): Remove.
12831 (coffstab_build_psymtabs): Update.
12832 * dbxread.c (symbuf_sections): Now a std::vector.
12833 (sect_idx): New global.
12834 (fill_symbuf): Update.
12835 (coffstab_build_psymtabs): Change type of stabsects parameter.
12836 Update.
12837 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12838 std::vector.
12839 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12840 (coff_locate_sections): Update.
12841 (coff_symfile_read): Remove cleanups. Update.
12842 (init_stringtab): Add storage parameter.
12843 (free_stringtab, free_stringtab_cleanup): Remove.
12844 (init_lineno): Add storage parameter.
12845 (free_linetab, free_linetab_cleanup): Remove.
12846
b7e60d85
PA
128472019-03-06 Pedro Alves <palves@redhat.com>
12848
12849 * linux-fork.c (fork_info::clobber_regs): Delete.
12850 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12851 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12852 comment. Adjust.
12853 (scoped_switch_fork_info::scoped_switch_fork_info)
12854 (checkpoint_command, linux_fork_context): Adjust
12855 fork_save_infrun_state calls.
12856
e52c971f
PA
128572019-03-06 Pedro Alves <palves@redhat.com>
12858
12859 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12860 (inf_has_multiple_threads): Return 'bool' and rewrite using
12861 inferior_info::threads().
12862
06974e6c
PA
128632019-03-06 Pedro Alves <palves@redhat.com>
12864
12865 * linux-fork.c: Include <list>.
12866 (fork_list): Now a std::list instance.
12867 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12868 (forks_exist_p, find_last_fork): Adjust.
12869 (new_fork): Delete.
12870 (one_fork_p): New.
12871 (add_fork): Adjust.
12872 (free_fork): Delete, folded into fork_info::~fork_info().
12873 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12874 Adjust.
12875 (init_fork_list): Delete.
12876 (linux_fork_killall, linux_fork_mourn_inferior)
12877 (linux_fork_detach, info_checkpoints_command): Adjust.
12878 (_initialize_linux_fork): No longer call init_fork_list.
12879
72f31aea
PA
128802019-03-06 Pedro Alves <palves@redhat.com>
12881
12882 * linux-fork.c (new_fork): New, split out of ...
12883 (add_fork): ... this. Return void. Move "first fork" special
12884 case from here, to ...
12885 (checkpoint_command): ... here.
12886 * linux-linux.h (add_fork): Return void.
12887
efbecbc1
AB
128882019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12889
12890 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12891
0841c79a
AB
128922019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12893 Chris January <chris.january@arm.com>
12894 David Lecomber <david.lecomber@arm.com>
12895
12896 * f-exp.y: New token, UNOP_INTRINSIC.
12897 (exp): New pattern using UNOP_INTRINSIC token.
12898 (f77_keywords): Add 'abs' keyword.
12899 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12900 (value_from_host_double): New function.
12901 (evaluate_subexp_f): Support UNOP_ABS.
12902
4a270568
AB
129032019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12904
12905 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12906 types.
12907
067630bd
AB
129082019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12909
12910 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12911 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12912 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12913
3be47f7a
AB
129142019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12915
12916 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12917
4d00f5d8
AB
129182019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12919 Chris January <chris.january@arm.com>
12920
12921 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12922 * f-exp.y: Define 'KIND' token.
12923 (exp): New pattern for KIND expressions.
12924 (ptype): Handle types with a kind extension.
12925 (direct_abs_decl): Extend to spot kind extensions.
12926 (f77_keywords): Add 'kind' to the list.
12927 (push_kind_type): New function.
12928 (convert_to_kind_type): New function.
12929 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12930 * parse.c (operator_length_standard): Likewise.
12931 * parser-defs.h (enum type_pieces): Add tp_kind.
12932 * std-operator.def: Add UNOP_KIND.
12933
e454224f
AB
129342019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12935
12936 * f-exp.y (f_parse): Set yydebug.
12937
9dad4a58
AB
129382019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12939
12940 * f-lang.c (evaluate_subexp_f): New function.
12941 (exp_descriptor_f): New global.
12942 (f_language_defn): Use exp_descriptor_f instead of
12943 exp_descriptor_standard.
12944
c8f91604
AB
129452019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12946
12947 * f-exp.y (struct token): Add comments.
12948 (dot_ops): Remove uppercase versions and the end marker.
12949 (f77_keywords): Likewise.
12950 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12951 entries in the dot_ops array are case insensitive, and use
12952 strncasecmp to compare strings. Also some whitespace cleanup in
12953 this area. Similar for the f77_keywords array, except entries in
12954 this list might be case sensitive.
12955
dd9f2c76
AB
129562019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12957
12958 * f-exp.y (struct f77_boolean_val): Add comments.
12959 (boolean_values): Remove uppercase versions, and end marker.
12960 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12961 and use strncasecmp to achieve case insensitivity. Additionally,
12962 perform whitespace cleanup around this code.
12963
67a3048c
TT
129642019-03-06 Tom Tromey <tromey@adacore.com>
12965
12966 * remote-sim.c (gdbsim_target_open): Use result of
12967 gdb_argv::release.
12968
aa3cfbda
RB
129692019-03-06 Richard Bunt <richard.bunt@arm.com>
12970 Dirk Schubert <dirk.schubert@arm.com>
12971 Chris January <chris.january@arm.com>
12972
12973 * eval.c (evaluate_subexp_standard): Call Fortran argument
12974 wrapping logic.
12975 * f-lang.c (struct value): A value which can be passed into a
12976 Fortran function call.
12977 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12978 where appropriate.
12979 (struct type): Value ready for a Fortran function call.
12980 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12981 is needed.
12982 * f-lang.h (fortran_argument_convert): Declaration.
12983 (fortran_preserve_arg_pointer): Declaration.
12984 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12985
ea38e5df
TT
129862019-03-05 Tom Tromey <tromey@adacore.com>
12987
12988 * python/py-prettyprint.c (print_string_repr): Remove #if.
12989 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
12990
06b5b831
TT
129912019-03-05 Tom Tromey <tromey@adacore.com>
12992
12993 * target.c (the_dummy_target): Move later. Change type to
12994 "dummy_target".
12995 (initialize_targets): Don't initialize the_dummy_target.
12996
edbd9e45
TT
129972019-03-05 Tom Tromey <tromey@adacore.com>
12998
12999 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13000 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13001
c119e040
TT
130022019-03-05 Tom Tromey <tromey@adacore.com>
13003
13004 * windows-nat.c (windows_nat_target::attach)
13005 (windows_nat_target::detach): Don't call gdb_flush.
13006 * valprint.c (generic_val_print, val_print, val_print_string):
13007 Don't call gdb_flush.
13008 * utils.c (defaulted_query): Don't call gdb_flush.
13009 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13010 * target.c (target_announce_detach): Don't call gdb_flush.
13011 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13012 * remote.c (extended_remote_target::attach): Don't call
13013 gdb_flush.
13014 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13015 * printcmd.c (do_examine): Don't call gdb_flush.
13016 (info_display_command): Don't call gdb_flush.
13017 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13018 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13019 * memattr.c (info_mem_command): Don't call gdb_flush.
13020 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13021 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13022 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13023 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13024 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13025 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13026 (gnu_nat_target::detach): Don't call gdb_flush.
13027 * f-valprint.c (f_val_print): Don't call gdb_flush.
13028 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13029 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13030 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13031 gdb_flush.
13032 * c-valprint.c (c_val_print): Don't call gdb_flush.
13033 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13034
895dafa6
TT
130352019-03-05 Tom Tromey <tromey@adacore.com>
13036
13037 * varobj.c (update_dynamic_varobj_children): Update.
13038 (install_default_visualizer): Use reset, not release.
13039 * value.c (set_internalvar): Update.
13040 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13041 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13042 ATTRIBUTE_UNUSED_RESULT.
13043
88a774b9
TT
130442019-03-05 Tom Tromey <tromey@adacore.com>
13045
13046 * remote.c (class scoped_remote_fd) <release>: Add
13047 ATTRIBUTE_UNUSED_RESULT.
13048
4e4a8b93
TT
130492019-03-05 Tom Tromey <tromey@adacore.com>
13050
13051 * macroexp.c (struct macro_buffer) <release>: Add
13052 ATTRIBUTE_UNUSED_RESULT.
13053
083eef1f
TT
130542019-03-05 Tom Tromey <tromey@adacore.com>
13055
13056 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13057 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13058 ATTRIBUTE_UNUSED_RESULT.
13059
3cabd438
TT
130602019-03-05 Tom Tromey <tromey@adacore.com>
13061
13062 * common/scoped_fd.h (class scoped_fd) <release>: Add
13063 ATTRIBUTE_UNUSED_RESULT.
13064
41e3300a
TT
130652019-03-05 Tom Tromey <tromey@adacore.com>
13066
13067 * parser-defs.h (struct parser_state) <release>: Add
13068 ATTRIBUTE_UNUSED_RESULT.
13069
18cb7c9f
TT
130702019-03-05 Tom Tromey <tromey@adacore.com>
13071
13072 * utils.h (class gdb_argv) <release>: Add
13073 ATTRIBUTE_UNUSED_RESULT.
13074 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13075
41fa577f
EZ
130762019-03-02 Eli Zaretskii <eliz@gnu.org>
13077
a6a4b2c6
EZ
13078 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13079 for-loop range, to avoid compiler warnings.
13080
13081 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13082 avoid compiler warnings about unused variables.
13083
742a7df5
EZ
13084 * NEWS: Mention end of support for native debugging on MS-Windows
13085 before XP.
13086
41fa577f
EZ
13087 PR gdb/24292
13088 * common/netstuff.c:
13089 * gdbserver/gdbreplay.c
13090 * gdbserver/remote-utils.c:
13091 * ser-tcp.c:
13092 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13093 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13094 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13095 'getaddrinfo' and 'freeaddrinfo' were not available before
13096 Windows XP, and mingw.org's MinGW headers by default define
13097 _WIN32_WINNT to 0x500.
13098
827f438f
GB
130992019-03-01 Gary Benson <gbenson@redhat.com>
13100
13101 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13102
92137da0
RO
131032019-02-28 Brian Vandenberg <phantall@gmail.com>
13104 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13105
13106 PR gdb/8527
13107 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13108 set_sigint_trap, clear_sigint_trap.
13109
799efbe8
PW
131102019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13111
13112 * target.c (target_detach): Clear the regcache and the
13113 frame cache.
13114
8ed25214
PA
131152019-02-27 Pedro Alves <palves@redhat.com>
13116
13117 * utils.c (set_screen_size): When we cap the height/width sizes,
13118 tweak the corresponding command variable to show "unlimited":
13119
23031e31
SJ
131202019-02-27 Saagar Jha <saagar@saagarjha.com>
13121 Pedro Alves <palves@redhat.com>
13122
13123 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13124 before calling rl_set_screen_size.
13125
6c28e44a
TT
131262019-02-27 Tom Tromey <tromey@adacore.com>
13127
13128 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13129 define.
13130 * python/py-value.c: Remove Python 2.4 workaround.
13131 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13132 workaround.
13133 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13134 Python 2.4 workaround.
13135 * python/python-internal.h: Remove Python 2.4 comment.
13136 (Py_ssize_t): Don't define.
13137 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13138 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13139 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13140 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13141 * python/python.c (do_start_initialization): Remove Python 2.4
13142 workaround.
13143 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13144 (print_children): Remove Python 2.4 workaround.
13145 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13146 workaround.
13147 (CHARBUFFERPROC_NAME): Remove.
13148 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13149 Python 2.4 workaround.
13150
2c3fc25d 131512019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 13152
2c3fc25d
KB
13153 * NEWS: Note minimum Python version.
13154
6ca62222
KB
131552019-02-27 Kevin Buettner <kevinb@redhat.com>
13156
13157 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13158 code from these functions. Remove corresponding ifdefs. Use
13159 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13160 Remove gotos and target of gotos.
13161 (infpy_search_memory): Likewise.
13162
f4bc7d2c
AB
131632019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13164
13165 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13166 (hppa_gdbarch_init): Don't register deleted functions with
13167 gdbarch.
13168
9734a586
AB
131692019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13170
13171 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13172 (h8300_unwind_sp): Delete.
13173 (h8300_dummy_id): Delete.
13174 (h8300_gdbarch_init): Don't register deleted functions with
13175 gdbarch.
13176
68b867f3
AB
131772019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13178
13179 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13180 (ft32_unwind_pc): Delete.
13181 (ft32_unwind_sp): Delete.
13182 (ft32_gdbarch_init): Don't register deleted functions with
13183 gdbarch.
13184
2fbe7ad0
AB
131852019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13186
13187 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13188 (frv_unwind_pc): Delete.
13189 (frv_unwind_sp): Delete.
13190 (frv_gdbarch_init): Don't register deleted functions with
13191 gdbarch.
13192
76055cbe
AB
131932019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13194
13195 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13196 (riscv_unwind_pc): Delete.
13197 (riscv_unwind_sp): Delete.
13198 (riscv_gdbarch_init): Don't register deleted functions with
13199 gdbarch.
13200
4133e5a1
AB
132012019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13202
13203 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13204 (csky_unwind_pc): Delete.
13205 (csky_unwind_sp): Delete.
13206 (csky_gdbarch_init): Don't register deleted functions with
13207 gdbarch.
13208
8010f576
AB
132092019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13210
13211 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13212 (cris_unwind_pc): Delete.
13213 (cris_unwind_sp): Delete.
13214 (cris_gdbarch_init): Don't register deleted functions with
13215 gdbarch.
13216
b56bf084
AB
132172019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13218
13219 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13220 (bfin_unwind_pc): Delete.
13221 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13222
a19a650f
AB
132232019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13224
13225 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13226 (arm_unwind_pc): Delete.
13227 (arm_unwind_sp): Delete.
13228 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13229
f8278c3c
AB
132302019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13231
13232 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13233 (arc_unwind_pc): Delete.
13234 (arc_unwind_sp): Delete.
13235 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13236
480e46cf
AB
132372019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13238
13239 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13240 (alpha_unwind_pc): Delete.
13241 (alpha_gdbarch_init): Don't register deleted functions with
13242 gdbarch.
13243
7a995095
AB
132442019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13245
13246 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13247 (aarch64_unwind_pc): Delete.
13248 (aarch64_unwind_sp): Delete.
13249 (aarch64_gdbarch_init): Don't register deleted functions with
13250 gdbarch.
13251
bf9a735e
AB
132522019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13253
13254 * gdbtypes.c (type_align): Don't consider static members when
13255 computing structure alignment.
13256
5561fc30
AB
132572019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13258
13259 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13260 return 0 for other types.
13261 * arch-utils.c (default_type_align): Always return 0.
13262 * gdbarch.h: Regenerate.
13263 * gdbarch.sh (type_align): Extend comment.
13264 * gdbtypes.c (type_align): Add additional comments, always call
13265 gdbarch_type_align before applying the default rules.
13266 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13267 generic code will then apply a suitable default.
13268 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13269 types, return 0 for other types.
13270
9335e75a
JB
132712019-02-27 Joel Brobecker <brobecker@adacore.com>
13272
13273 * NEWS: Create a new section for the next release branch.
13274 Rename the section of the current branch, now that it has
13275 been cut.
13276
3d34d8de
JB
132772019-02-27 Joel Brobecker <brobecker@adacore.com>
13278
13279 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13280 * version.in: Bump version to 8.3.50.DATE-git.
13281
143420fb
SM
132822019-02-26 Simon Marchi <simon.marchi@efficios.com>
13283
13284 * aix-thread.c (ptid_cmp): Remove unused variable.
13285 (get_signaled_thread): Likewise.
13286 (store_regs_user_thread): Likewise.
13287 (store_regs_kernel_thread): Likewise.
13288 (fetch_regs_kernel_thread): Remove shadowed variable.
13289
172fb711
AB
132902019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13291
13292 * features/riscv/32bit-cpu.xml: Add register numbers.
13293 * features/riscv/32bit-fpu.c: Regenerate.
13294 * features/riscv/32bit-fpu.xml: Add register numbers.
13295 * features/riscv/64bit-cpu.xml: Add register numbers.
13296 * features/riscv/64bit-fpu.c: Regenerate.
13297 * features/riscv/64bit-fpu.xml: Add register numbers.
13298
26c89782
KB
132992019-02-26 Kevin Buettner <kevinb@redhat.com>
13300
af54ade9 13301 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
13302 * python/py-value.c (convert_buffer_and_type_to_value): New
13303 function.
13304 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13305 Add support for handling an optional second argument. Call
13306 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
13307 * python/python-internal.h (Py_buffer_deleter): New struct.
13308 (Py_buffer_up): New typedef.
13309
0f58c9e8
JB
133102019-02-25 John Baldwin <jhb@FreeBSD.org>
13311
13312 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13313 instead of releasing ownership.
13314
0a0f4c01
JR
133152019-02-25 Jordan Rupprecht <rupprecht@google.com>
13316
13317 * dwarf2read.c (open_and_init_dwp_file): Call
13318 elf_numsections instead of bfd_count_sections to initialize
13319 dwp_file->num_sections.
13320
cd5a152c
TT
133212019-02-25 Tom Tromey <tromey@adacore.com>
13322
13323 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13324
8a6a8513
SDJ
133252019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13326
13327 * gcore.in: Add '--readnever' option when invoking GDB.
13328
04dcda9c
SM
133292019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13330
13331 * MAINTAINERS: Update my email address.
13332
07bc701d
SM
133332019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13334
13335 * build-id.c (build_id_to_debug_bfd_1): New function.
13336 (build_id_to_debug_bfd): Look for separate debug file in
13337 sysroot.
13338
c6f4a5d0
AB
133392019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13340
13341 * gdbarch.sh: Update the copyright year range that is placed into
13342 generated files.
13343
9600246d
KS
133442019-02-22 Keith Seitz <keiths@redhat.com>
13345
13346 PR symtab/23853
13347 * linespec.c (create_sals_line_offset): Search for the default
13348 symtab's filename instead of its fullname.
13349
7557a514
AH
133502019-02-21 Alan Hayward <alan.hayward@arm.com>
13351
13352 * NEWS: Update style defaults.
13353
ee2bcb0c
AH
133542019-02-21 Alan Hayward <alan.hayward@arm.com>
13355
13356 * main.c (captured_main_1): Disable styling in batch mode.
13357
0c95f9ed
TT
133582019-02-20 Tom Tromey <tom@tromey.com>
13359
13360 * symtab.c (symtab_symbol_info): Fix typos.
13361
c763b894
TT
133622019-02-20 Tom Tromey <tromey@adacore.com>
13363
13364 * findcmd.c (_initialize_mem_search): Use upper case for
13365 metasyntactic variables.
13366
0ef8a082
AH
133672019-02-20 Alan Hayward <alan.hayward@arm.com>
13368
13369 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13370 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13371
6caa91b6
SM
133722019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13373
13374 * top.h (source_file_name): Change to std::string.
13375 * top.c (source_file_name): Likewise.
13376 (command_line_input): Adjust.
13377 * cli/cli-script.c (script_from_file): Adjust.
13378
98814c6c
TT
133792019-02-19 Tom Tromey <tromey@adacore.com>
13380
13381 * ravenscar-thread.c
13382 (ravenscar_thread_target::update_thread_list): Don't call
13383 ada_build_task_list.
13384 * ada-lang.h (ada_build_task_list): Don't declare.
13385 * ada-tasks.c (struct ada_tasks_inferior_data)
13386 <task_list_valid_p>: Now bool.
13387 (read_known_tasks, ada_task_list_changed)
13388 (ada_tasks_invalidate_inferior_data): Update.
13389 (read_known_tasks_array): Return bool.
13390 (read_known_tasks_list): Likewise.
13391 (read_known_tasks): Return void.
13392 (ada_build_task_list): Now static.
13393
70cd633e
AB
133942019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13395
13396 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13397 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13398
040b3e95
PW
133992019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13400
13401 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13402 variant for ada_tasks_pspace_data_handle and
13403 ada_tasks_inferior_data_handle.
13404 (ada_tasks_pspace_data_cleanup): New function.
13405 (ada_tasks_inferior_data_cleanup): New function.
13406
9409233b
TT
134072019-02-17 Tom Tromey <tom@tromey.com>
13408
13409 * macrotab.h (macro_source_fullname): Return a std::string.
13410 * macrotab.c (macro_include, check_for_redefinition)
13411 (macro_undef, macro_lookup_definition, foreach_macro)
13412 (foreach_macro_in_scope): Update.
13413 (macro_source_fullname): Return a std::string.
13414 * macrocmd.c (show_pp_source_pos): Update.
13415
6506371f
TT
134162019-02-17 Tom Tromey <tom@tromey.com>
13417
13418 * macrocmd.c (show_pp_source_pos): Style the file names.
13419
0c820d67
TT
134202019-02-17 Tom Tromey <tom@tromey.com>
13421
13422 PR tui/24197:
13423 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13424
a0087920
TT
134252019-02-17 Tom Tromey <tom@tromey.com>
13426
13427 * ada-lang.c (user_select_syms): Use filtered printing.
13428 * utils.c (wrap_style): New global.
13429 (desired_style): Remove.
13430 (emit_style_escape): Add stream parameter.
13431 (set_output_style, reset_terminal_style, prompt_for_continue):
13432 Update.
13433 (flush_wrap_buffer): Only flush gdb_stdout.
13434 (wrap_here): Set wrap_style.
13435 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13436 treat escape sequences as a character. Change when wrap buffer is
13437 flushed.
13438 (fputs_styled): Do not set the output style when the default is
13439 requested.
13440 * ui-style.h (struct ui_file_style) <is_default>: New method.
13441 * source.c (print_source_lines_base): Emit escape sequences in one
13442 piece.
13443
75ba10dc
JB
134442019-02-17 Joel Brobecker <brobecker@adacore.com>
13445
13446 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13447 integers and enumeration types.
13448
a2cd4f14
JB
134492019-02-17 Joel Brobecker <brobecker@adacore.com>
13450
13451 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13452 instead of lookup_symbol_in_language
13453 (do_exact_match): New function.
13454 (ada_get_symbol_name_matcher): Return do_exact_match when
13455 doing a verbatim match.
13456
485b851b
TT
134572019-02-15 Tom Tromey <tromey@adacore.com>
13458
13459 * ravenscar-thread.c (ravenscar_thread_target::resume)
13460 (ravenscar_thread_target::wait): Special case wildcard requests.
13461
0b790b1e
TT
134622019-02-15 Tom Tromey <tromey@adacore.com>
13463
13464 * ravenscar-thread.c (base_ptid): Remove.
13465 (struct ravenscar_thread_target) <close>: New method.
13466 <m_base_ptid>: New member.
13467 <update_inferior_ptid, active_task, task_is_currently_active,
13468 runtime_initialized>: Declare methods.
13469 <ravenscar_thread_target>: Add constructor.
13470 (ravenscar_thread_target::task_is_currently_active)
13471 (ravenscar_thread_target::update_inferior_ptid)
13472 (ravenscar_runtime_initialized): Rename. Now methods.
13473 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13474 (ravenscar_thread_target::update_thread_list): Update.
13475 (ravenscar_thread_target::active_task): Now method.
13476 (ravenscar_thread_target::store_registers)
13477 (ravenscar_thread_target::prepare_to_store)
13478 (ravenscar_thread_target::prepare_to_store)
13479 (ravenscar_thread_target::mourn_inferior): Update.
13480 (ravenscar_inferior_created): Use "new" to create target.
13481 (ravenscar_thread_target::get_ada_task_ptid): Update.
13482 (_initialize_ravenscar): Don't initialize base_ptid.
13483 (ravenscar_ops): Remove global.
13484
dea57a62
TT
134852019-02-15 Tom Tromey <tromey@adacore.com>
13486
13487 * target.h (push_target): Declare new overload.
13488 * target.c (push_target): New overload, taking an rvalue reference.
13489 * remote.c (remote_target::open_1): Use push_target overload.
13490 * corelow.c (core_target_open): Use push_target overload.
13491
989f3c58
TT
134922019-02-15 Tom Tromey <tromey@adacore.com>
13493
13494 * ravenscar-thread.c (is_ravenscar_task)
13495 (ravenscar_task_is_currently_active): Return bool.
13496 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13497 (_initialize_ravenscar): Remove "(void)".
13498 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13499 Return bool.
13500
6cbcc006
TT
135012019-02-15 Tom Tromey <tromey@adacore.com>
13502
13503 * ravenscar-thread.c (ravenscar_runtime_initializer)
13504 (has_ravenscar_runtime, get_running_thread_id)
13505 (ravenscar_thread_target::resume): Fix indentation.
13506
7657f14d
TT
135072019-02-15 Tom Tromey <tromey@adacore.com>
13508
13509 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13510 from ravenscar_arch_ops.
13511 (sparc_ravenscar_ops::fetch_registers)
13512 (sparc_ravenscar_ops::store_registers): Now methods.
13513 (sparc_ravenscar_prepare_to_store): Remove.
13514 (sparc_ravenscar_ops): Redefine.
13515 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13516 methods and destructor. Remove members.
13517 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13518 (ravenscar_thread_target::store_registers)
13519 (ravenscar_thread_target::prepare_to_store): Update.
13520 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13521 Remove.
13522 (struct ppc_ravenscar_powerpc_ops): Derive from
13523 ravenscar_arch_ops.
13524 (ppc_ravenscar_powerpc_ops::fetch_registers)
13525 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13526 (ppc_ravenscar_powerpc_ops): Redefine.
13527 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13528 (ppc_ravenscar_e500_ops::fetch_registers)
13529 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13530 (ppc_ravenscar_e500_ops): Redefine.
13531 * aarch64-ravenscar-thread.c
13532 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13533 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13534 (aarch64_ravenscar_fetch_registers)
13535 (aarch64_ravenscar_store_registers): Now methods.
13536 (aarch64_ravenscar_ops): Redefine.
13537
5b6ea500
TT
135382019-02-15 Tom Tromey <tromey@adacore.com>
13539
13540 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13541 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13542 (ravenscar_thread_target::stopped_by_watchpoint)
13543 (ravenscar_thread_target::stopped_data_address)
13544 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13545
e397fd39
TT
135462019-02-15 Tom Tromey <tromey@adacore.com>
13547
13548 * ravenscar-thread.c: Fix some typos.
13549
cc12f4a8
TT
135502019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13551 Tom Tromey <tromey@adacore.com>
13552
13553 * ada-lang.c (ada_exception_sal): Change addr_string to a
13554 std::string.
13555 (create_ada_exception_catchpoint): Update.
13556
5f486660
TT
135572019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13558 Tom Tromey <tromey@adacore.com>
13559
13560 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13561 (bp_location_ops): Remove.
13562 (base_breakpoint_allocate_location): Update.
13563 (free_bp_location): Update.
13564 * ada-lang.c (class ada_catchpoint_location)
13565 <ada_catchpoint_location>: Remove ops parameter.
13566 (ada_catchpoint_location_dtor): Remove.
13567 (ada_catchpoint_location_ops): Remove.
13568 (allocate_location_exception): Update.
13569 * breakpoint.h (struct bp_location_ops): Remove.
13570 (class bp_location) <bp_location>: Remove bp_location_ops
13571 parameter.
13572 <~bp_location>: Add destructor.
13573 <ops>: Remove.
13574
b671c7fb
TS
135752019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13576 Pedro Alves <palves@redhat.com>
13577
13578 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13579 'PATH_MAX'.
13580
8071c5ce
DM
135812019-02-14 David Michael <fedora.dm0@gmail.com>
13582 Samuel Thibault <samuel.thibault@gnu.org>
13583 Thomas Schwinge <thomas@codesourcery.com>
13584
13585 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13586 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13587
b1041ae0
TS
135882019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13589
924514e1
TS
13590 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13591 (check_empty): Use "const char *".
13592
c29ee8d4
TS
13593 * gnu-nat.c (gnu_nat_target::detach): Instead of
13594 'detach_inferior (pid)' call
13595 'detach_inferior (find_inferior_pid (pid))'.
13596
6c6ef69f
TS
13597 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13598 'nat/fork-inferior.o'.
13599 * gnu-nat.c: #include "nat/fork-inferior.h".
13600
2d0a338c
TS
13601 * gnu-nat.c (gnu_nat_target::detach): Instead of
13602 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13603 * gnu-nat.h: #include "inf-child.h".
13604 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13605 'i386_gnu_nat_target::fetch_registers'.
13606 (gnu_store_registers): Rename/move to
13607 'i386_gnu_nat_target::store_registers'.
13608
cabb5f06
TS
13609 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13610 * gnu-nat.h (mach_thread_info): New function.
13611 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13612
b1041ae0
TS
13613 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13614
2988d01e
KF
136152019-02-14 Frederic Konrad <konrad@adacore.com>
13616
13617 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13618
c559d709
JB
136192019-02-14 Joel Brobecker <brobecker@adacore.com>
13620
13621 * windows-nat.c (windows_add_thread): Add new parameter
13622 "main_thread_p" with default value set to false. Update
13623 function documentation as well as all callers.
13624 (windows_delete_thread): Likewise.
13625 (fake_create_process): Update call to windows_add_thread.
13626 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13627 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13628 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13629 call to windows_delete_thread.
13630
007024cc
SM
136312019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13632
13633 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13634
f62318e9
JB
136352019-02-12 John Baldwin <jhb@FreeBSD.org>
13636
13637 * symfile.c (find_separate_debug_file): Use canonical path of
13638 sysroot with child_path instead of gdb_sysroot if it is valid.
13639
cd4b7848
JB
136402019-02-12 John Baldwin <jhb@FreeBSD.org>
13641
13642 * symfile.c (find_separate_debug_file): Use child_path to
13643 determine if an object file is under a sysroot.
13644
efac4bfe
JB
136452019-02-12 John Baldwin <jhb@FreeBSD.org>
13646
13647 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13648 unittests/child-path-selftests.c.
13649 * common/pathstuff.c (child_path): New function.
13650 * common/pathstuff.h (child_path): New prototype.
13651 * unittests/child-path-selftests.c: New file.
13652
402d2bfe
JB
136532019-02-12 John Baldwin <jhb@FreeBSD.org>
13654
13655 * symfile.c (find_separate_debug_file): Look for separate debug
13656 files in debug directories under the sysroot.
13657
1ed9f74e
PW
136582019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13659
13660 * symtab.h (struct minimal_symbol data_p): New const method.
13661 (struct minimal_symbol text_p): Likewise.
13662 * symtab.c (output_source_filename): Use file name style
13663 to print file name.
13664 (print_symbol_info): Likewise.
13665 (print_msymbol_info): Use address style to print addresses.
13666 Use function name style to print executable text symbols.
13667 (expand_symtab_containing_pc): Use data_p.
13668 (find_pc_sect_compunit_symtab): Likewise.
13669
2636d81d
PW
136702019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13671
13672 * breakpoint.c (describe_other_breakpoints): Use address style
13673 to print addresses.
13674 (say_where): Likewise.
13675
ac8c53cc
PW
136762019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13677
13678 * ada-typeprint.c (print_func_type): Print function name
13679 style to print function name.
13680 * c-typeprint.c (c_print_type_1): Likewise.
13681
ea638c43
AH
136822019-02-11 Alan Hayward <alan.hayward@arm.com>
13683
13684 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13685 for execve.
13686
ab759ca8
PW
136872019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13688
13689 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13690 type_stack.
13691
aff29d1c
JB
136922019-02-10 Joel Brobecker <brobecker@adacore.com>
13693
13694 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13695 TYPE_CODE_REF types.
13696
617126bc
JW
136972019-02-08 Jim Wilson <jimw@sifive.com>
13698
13699 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13700 (riscv_linux_fregset): New.
13701 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13702
46e3ed7f
TT
137032019-02-07 Tom Tromey <tom@tromey.com>
13704
13705 * thread.c (thread_cancel_execution_command): Update.
13706 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13707 methods.
13708 (struct thread_fsm_ops): Remove.
13709 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13710 (thread_fsm_should_stop, thread_fsm_return_value)
13711 (thread_fsm_set_finished, thread_fsm_finished_p)
13712 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13713 Don't declare.
13714 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13715 * infrun.c (clear_proceed_status_thread)
13716 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13717 (print_stop_event): Update.
13718 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13719 Add constructor.
13720 (step_command_fsm_ops): Remove.
13721 (new_step_command_fsm): Remove.
13722 (step_1): Update.
13723 (step_command_fsm::should_stop): Rename from
13724 step_command_fsm_should_stop.
13725 (step_command_fsm::clean_up): Rename from
13726 step_command_fsm_clean_up.
13727 (step_command_fsm::do_async_reply_reason): Rename from
13728 step_command_fsm_async_reply_reason.
13729 (struct until_next_fsm): Inherit from thread_fsm. Add
13730 constructor.
13731 (until_next_fsm_ops): Remove.
13732 (new_until_next_fsm): Remove.
13733 (until_next_fsm::should_stop): Rename from
13734 until_next_fsm_should_stop.
13735 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13736 (until_next_fsm::do_async_reply_reason): Rename from
13737 until_next_fsm_async_reply_reason.
13738 (struct finish_command_fsm): Inherit from thread_fsm. Add
13739 constructor. Change type of breakpoint.
13740 (finish_command_fsm_ops): Remove.
13741 (new_finish_command_fsm): Remove.
13742 (finish_command_fsm::should_stop): Rename from
13743 finish_command_fsm_should_stop.
13744 (finish_command_fsm::clean_up): Rename from
13745 finish_command_fsm_clean_up.
13746 (finish_command_fsm::return_value): Rename from
13747 finish_command_fsm_return_value.
13748 (finish_command_fsm::do_async_reply_reason): Rename from
13749 finish_command_fsm_async_reply_reason.
13750 (finish_command): Update.
13751 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13752 Add constructor.
13753 (call_thread_fsm_ops): Remove.
13754 (call_thread_fsm::call_thread_fsm): Rename from
13755 new_call_thread_fsm.
13756 (call_thread_fsm::should_stop): Rename from
13757 call_thread_fsm_should_stop.
13758 (call_thread_fsm::should_notify_stop): Rename from
13759 call_thread_fsm_should_notify_stop.
13760 (run_inferior_call, call_function_by_hand_dummy): Update.
13761 * cli/cli-interp.c (should_print_stop_to_console): Update.
13762 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13763 Add constructor. Change type of location_breakpoint,
13764 caller_breakpoint.
13765 (until_break_fsm_ops): Remove.
13766 (new_until_break_fsm): Remove.
13767 (until_break_fsm::should_stop): Rename from
13768 until_break_fsm_should_stop.
13769 (until_break_fsm::clean_up): Rename from
13770 until_break_fsm_clean_up.
13771 (until_break_fsm::do_async_reply_reason): Rename from
13772 until_break_fsm_async_reply_reason.
13773 (until_break_command): Update.
13774 * thread-fsm.c: Remove.
13775 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13776
1a5c2598
TT
137772019-02-07 Tom Tromey <tom@tromey.com>
13778
13779 * yy-remap.h: Add include guard.
13780 * xtensa-tdep.h: Add include guard.
13781 * xcoffread.h: Rename include guard.
13782 * varobj-iter.h: Add include guard.
13783 * tui/tui.h: Rename include guard.
13784 * tui/tui-winsource.h: Rename include guard.
13785 * tui/tui-wingeneral.h: Rename include guard.
13786 * tui/tui-windata.h: Rename include guard.
13787 * tui/tui-win.h: Rename include guard.
13788 * tui/tui-stack.h: Rename include guard.
13789 * tui/tui-source.h: Rename include guard.
13790 * tui/tui-regs.h: Rename include guard.
13791 * tui/tui-out.h: Rename include guard.
13792 * tui/tui-layout.h: Rename include guard.
13793 * tui/tui-io.h: Rename include guard.
13794 * tui/tui-hooks.h: Rename include guard.
13795 * tui/tui-file.h: Rename include guard.
13796 * tui/tui-disasm.h: Rename include guard.
13797 * tui/tui-data.h: Rename include guard.
13798 * tui/tui-command.h: Rename include guard.
13799 * tic6x-tdep.h: Add include guard.
13800 * target/waitstatus.h: Rename include guard.
13801 * target/wait.h: Rename include guard.
13802 * target/target.h: Rename include guard.
13803 * target/resume.h: Rename include guard.
13804 * target-float.h: Rename include guard.
13805 * stabsread.h: Add include guard.
13806 * rs6000-tdep.h: Add include guard.
13807 * riscv-fbsd-tdep.h: Add include guard.
13808 * regformats/regdef.h: Rename include guard.
13809 * record.h: Rename include guard.
13810 * python/python.h: Rename include guard.
13811 * python/python-internal.h: Rename include guard.
13812 * python/py-stopevent.h: Rename include guard.
13813 * python/py-ref.h: Rename include guard.
13814 * python/py-record.h: Rename include guard.
13815 * python/py-record-full.h: Rename include guard.
13816 * python/py-record-btrace.h: Rename include guard.
13817 * python/py-instruction.h: Rename include guard.
13818 * python/py-events.h: Rename include guard.
13819 * python/py-event.h: Rename include guard.
13820 * procfs.h: Add include guard.
13821 * proc-utils.h: Add include guard.
13822 * p-lang.h: Add include guard.
13823 * or1k-tdep.h: Rename include guard.
13824 * observable.h: Rename include guard.
13825 * nto-tdep.h: Rename include guard.
13826 * nat/x86-linux.h: Rename include guard.
13827 * nat/x86-linux-dregs.h: Rename include guard.
13828 * nat/x86-gcc-cpuid.h: Add include guard.
13829 * nat/x86-dregs.h: Rename include guard.
13830 * nat/x86-cpuid.h: Rename include guard.
13831 * nat/ppc-linux.h: Rename include guard.
13832 * nat/mips-linux-watch.h: Rename include guard.
13833 * nat/linux-waitpid.h: Rename include guard.
13834 * nat/linux-ptrace.h: Rename include guard.
13835 * nat/linux-procfs.h: Rename include guard.
13836 * nat/linux-osdata.h: Rename include guard.
13837 * nat/linux-nat.h: Rename include guard.
13838 * nat/linux-namespaces.h: Rename include guard.
13839 * nat/linux-btrace.h: Rename include guard.
13840 * nat/glibc_thread_db.h: Rename include guard.
13841 * nat/gdb_thread_db.h: Rename include guard.
13842 * nat/gdb_ptrace.h: Rename include guard.
13843 * nat/fork-inferior.h: Rename include guard.
13844 * nat/amd64-linux-siginfo.h: Rename include guard.
13845 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13846 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13847 * nat/aarch64-linux.h: Rename include guard.
13848 * nat/aarch64-linux-hw-point.h: Rename include guard.
13849 * mn10300-tdep.h: Add include guard.
13850 * mips-linux-tdep.h: Add include guard.
13851 * mi/mi-parse.h: Rename include guard.
13852 * mi/mi-out.h: Rename include guard.
13853 * mi/mi-main.h: Rename include guard.
13854 * mi/mi-interp.h: Rename include guard.
13855 * mi/mi-getopt.h: Rename include guard.
13856 * mi/mi-console.h: Rename include guard.
13857 * mi/mi-common.h: Rename include guard.
13858 * mi/mi-cmds.h: Rename include guard.
13859 * mi/mi-cmd-break.h: Rename include guard.
13860 * m2-lang.h: Add include guard.
13861 * location.h: Rename include guard.
13862 * linux-record.h: Rename include guard.
13863 * linux-nat.h: Add include guard.
13864 * linux-fork.h: Add include guard.
13865 * i386-darwin-tdep.h: Rename include guard.
13866 * hppa-linux-offsets.h: Add include guard.
13867 * guile/guile.h: Rename include guard.
13868 * guile/guile-internal.h: Rename include guard.
13869 * gnu-nat.h: Rename include guard.
13870 * gdb-stabs.h: Rename include guard.
13871 * frv-tdep.h: Add include guard.
13872 * f-lang.h: Add include guard.
13873 * event-loop.h: Add include guard.
13874 * darwin-nat.h: Rename include guard.
13875 * cp-abi.h: Rename include guard.
13876 * config/sparc/nm-sol2.h: Rename include guard.
13877 * config/nm-nto.h: Rename include guard.
13878 * config/nm-linux.h: Add include guard.
13879 * config/i386/nm-i386gnu.h: Rename include guard.
13880 * config/djgpp/nl_types.h: Rename include guard.
13881 * config/djgpp/langinfo.h: Rename include guard.
13882 * compile/gcc-cp-plugin.h: Add include guard.
13883 * compile/gcc-c-plugin.h: Add include guard.
13884 * compile/compile.h: Rename include guard.
13885 * compile/compile-object-run.h: Rename include guard.
13886 * compile/compile-object-load.h: Rename include guard.
13887 * compile/compile-internal.h: Rename include guard.
13888 * compile/compile-cplus.h: Rename include guard.
13889 * compile/compile-c.h: Rename include guard.
13890 * common/xml-utils.h: Rename include guard.
13891 * common/x86-xstate.h: Rename include guard.
13892 * common/version.h: Rename include guard.
13893 * common/vec.h: Rename include guard.
13894 * common/tdesc.h: Rename include guard.
13895 * common/selftest.h: Rename include guard.
13896 * common/scoped_restore.h: Rename include guard.
13897 * common/scoped_mmap.h: Rename include guard.
13898 * common/scoped_fd.h: Rename include guard.
13899 * common/safe-iterator.h: Rename include guard.
13900 * common/run-time-clock.h: Rename include guard.
13901 * common/refcounted-object.h: Rename include guard.
13902 * common/queue.h: Rename include guard.
13903 * common/ptid.h: Rename include guard.
13904 * common/print-utils.h: Rename include guard.
13905 * common/preprocessor.h: Rename include guard.
13906 * common/pathstuff.h: Rename include guard.
13907 * common/observable.h: Rename include guard.
13908 * common/netstuff.h: Rename include guard.
13909 * common/job-control.h: Rename include guard.
13910 * common/host-defs.h: Rename include guard.
13911 * common/gdb_wait.h: Rename include guard.
13912 * common/gdb_vecs.h: Rename include guard.
13913 * common/gdb_unlinker.h: Rename include guard.
13914 * common/gdb_unique_ptr.h: Rename include guard.
13915 * common/gdb_tilde_expand.h: Rename include guard.
13916 * common/gdb_sys_time.h: Rename include guard.
13917 * common/gdb_string_view.h: Rename include guard.
13918 * common/gdb_splay_tree.h: Rename include guard.
13919 * common/gdb_setjmp.h: Rename include guard.
13920 * common/gdb_ref_ptr.h: Rename include guard.
13921 * common/gdb_optional.h: Rename include guard.
13922 * common/gdb_locale.h: Rename include guard.
13923 * common/gdb_assert.h: Rename include guard.
13924 * common/filtered-iterator.h: Rename include guard.
13925 * common/filestuff.h: Rename include guard.
13926 * common/fileio.h: Rename include guard.
13927 * common/environ.h: Rename include guard.
13928 * common/common-utils.h: Rename include guard.
13929 * common/common-types.h: Rename include guard.
13930 * common/common-regcache.h: Rename include guard.
13931 * common/common-inferior.h: Rename include guard.
13932 * common/common-gdbthread.h: Rename include guard.
13933 * common/common-exceptions.h: Rename include guard.
13934 * common/common-defs.h: Rename include guard.
13935 * common/common-debug.h: Rename include guard.
13936 * common/cleanups.h: Rename include guard.
13937 * common/buffer.h: Rename include guard.
13938 * common/btrace-common.h: Rename include guard.
13939 * common/break-common.h: Rename include guard.
13940 * cli/cli-utils.h: Rename include guard.
13941 * cli/cli-style.h: Rename include guard.
13942 * cli/cli-setshow.h: Rename include guard.
13943 * cli/cli-script.h: Rename include guard.
13944 * cli/cli-interp.h: Rename include guard.
13945 * cli/cli-decode.h: Rename include guard.
13946 * cli/cli-cmds.h: Rename include guard.
13947 * charset-list.h: Add include guard.
13948 * buildsym-legacy.h: Rename include guard.
13949 * bfin-tdep.h: Add include guard.
13950 * ax.h: Rename include guard.
13951 * arm-linux-tdep.h: Add include guard.
13952 * arm-fbsd-tdep.h: Add include guard.
13953 * arch/xtensa.h: Rename include guard.
13954 * arch/tic6x.h: Add include guard.
13955 * arch/i386.h: Add include guard.
13956 * arch/arm.h: Rename include guard.
13957 * arch/arm-linux.h: Rename include guard.
13958 * arch/arm-get-next-pcs.h: Rename include guard.
13959 * arch/amd64.h: Add include guard.
13960 * arch/aarch64-insn.h: Rename include guard.
13961 * arch-utils.h: Rename include guard.
13962 * annotate.h: Add include guard.
13963 * amd64-darwin-tdep.h: Rename include guard.
13964 * aarch64-linux-tdep.h: Add include guard.
13965 * aarch64-fbsd-tdep.h: Add include guard.
13966 * aarch32-linux-nat.h: Add include guard.
13967
ab9268d2
PW
139682019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13969
13970 * macrotab.c (macro_define_internal): New function that
13971 factorizes macro_define_object_internal and macro_define_function
13972 code.
13973 (macro_define_object_internal): Use macro_define_internal.
13974 (macro_define_function): Likewise.
13975
bb0da2b4
PW
139762019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13977
13978 * macrocmd.c (extract_identifier): Return
13979 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13980 callers.
13981
424eb552
JB
139822019-02-06 John Baldwin <jhb@FreeBSD.org>
13983
13984 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13985
1688cb29
TT
139862019-02-05 Tom Tromey <tom@tromey.com>
13987
13988 * target.c (target_stack::unpush): Move assertion earlier.
13989
b5eba2d8
TT
139902019-01-30 Tom Tromey <tom@tromey.com>
13991
13992 PR python/23615:
13993 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
13994 (gdbpy_parse_and_eval): Likewise.
13995 * python/python-internal.h (gdbpy_allow_threads): New class.
13996
7054e2ff
JB
139972019-01-28 John Baldwin <jhb@FreeBSD.org>
13998
13999 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14000 (aarch64_fbsd_fpregmap): Move earlier.
14001 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14002 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14003 instead of individual calls to trad_frame_set_reg_addr.
14004 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14005 earlier.
14006 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14007 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14008 instead of individual calls to trad_frame_set_reg_addr.
14009
36c25ffa
AH
140102019-01-28 Alan Hayward <alan.hayward@arm.com>
14011
14012 * CONTRIBUTE: Replace contribution list with wiki link.
14013
a0707f3c
TT
140142019-01-25 Tom Tromey <tom@tromey.com>
14015
14016 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14017
0747795c
TT
140182019-01-25 Tom Tromey <tom@tromey.com>
14019
14020 * xtensa-linux-nat.c: Fix common/ includes.
14021 * xml-support.h: Fix common/ includes.
14022 * xml-support.c: Fix common/ includes.
14023 * x86-linux-nat.c: Fix common/ includes.
14024 * windows-nat.c: Fix common/ includes.
14025 * varobj.h: Fix common/ includes.
14026 * varobj.c: Fix common/ includes.
14027 * value.c: Fix common/ includes.
14028 * valops.c: Fix common/ includes.
14029 * utils.c: Fix common/ includes.
14030 * unittests/xml-utils-selftests.c: Fix common/ includes.
14031 * unittests/utils-selftests.c: Fix common/ includes.
14032 * unittests/unpack-selftests.c: Fix common/ includes.
14033 * unittests/tracepoint-selftests.c: Fix common/ includes.
14034 * unittests/style-selftests.c: Fix common/ includes.
14035 * unittests/string_view-selftests.c: Fix common/ includes.
14036 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14037 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14038 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14039 * unittests/rsp-low-selftests.c: Fix common/ includes.
14040 * unittests/parse-connection-spec-selftests.c: Fix common/
14041 includes.
14042 * unittests/optional-selftests.c: Fix common/ includes.
14043 * unittests/offset-type-selftests.c: Fix common/ includes.
14044 * unittests/observable-selftests.c: Fix common/ includes.
14045 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14046 * unittests/memrange-selftests.c: Fix common/ includes.
14047 * unittests/memory-map-selftests.c: Fix common/ includes.
14048 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14049 * unittests/function-view-selftests.c: Fix common/ includes.
14050 * unittests/environ-selftests.c: Fix common/ includes.
14051 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14052 * unittests/common-utils-selftests.c: Fix common/ includes.
14053 * unittests/cli-utils-selftests.c: Fix common/ includes.
14054 * unittests/array-view-selftests.c: Fix common/ includes.
14055 * ui-file.c: Fix common/ includes.
14056 * tui/tui-io.c: Fix common/ includes.
14057 * tracepoint.h: Fix common/ includes.
14058 * tracepoint.c: Fix common/ includes.
14059 * tracefile-tfile.c: Fix common/ includes.
14060 * top.h: Fix common/ includes.
14061 * top.c: Fix common/ includes.
14062 * thread.c: Fix common/ includes.
14063 * target/waitstatus.h: Fix common/ includes.
14064 * target/waitstatus.c: Fix common/ includes.
14065 * target.h: Fix common/ includes.
14066 * target.c: Fix common/ includes.
14067 * target-memory.c: Fix common/ includes.
14068 * target-descriptions.c: Fix common/ includes.
14069 * symtab.h: Fix common/ includes.
14070 * symfile.c: Fix common/ includes.
14071 * stap-probe.c: Fix common/ includes.
14072 * spu-linux-nat.c: Fix common/ includes.
14073 * sparc-nat.c: Fix common/ includes.
14074 * source.c: Fix common/ includes.
14075 * solib.c: Fix common/ includes.
14076 * solib-target.c: Fix common/ includes.
14077 * ser-unix.c: Fix common/ includes.
14078 * ser-tcp.c: Fix common/ includes.
14079 * ser-pipe.c: Fix common/ includes.
14080 * ser-base.c: Fix common/ includes.
14081 * selftest-arch.c: Fix common/ includes.
14082 * s12z-tdep.c: Fix common/ includes.
14083 * rust-exp.y: Fix common/ includes.
14084 * rs6000-aix-tdep.c: Fix common/ includes.
14085 * riscv-tdep.c: Fix common/ includes.
14086 * remote.c: Fix common/ includes.
14087 * remote-notif.h: Fix common/ includes.
14088 * remote-fileio.h: Fix common/ includes.
14089 * remote-fileio.c: Fix common/ includes.
14090 * regcache.h: Fix common/ includes.
14091 * regcache.c: Fix common/ includes.
14092 * record-btrace.c: Fix common/ includes.
14093 * python/python.c: Fix common/ includes.
14094 * python/py-type.c: Fix common/ includes.
14095 * python/py-inferior.c: Fix common/ includes.
14096 * progspace.h: Fix common/ includes.
14097 * producer.c: Fix common/ includes.
14098 * procfs.c: Fix common/ includes.
14099 * proc-api.c: Fix common/ includes.
14100 * printcmd.c: Fix common/ includes.
14101 * ppc-linux-nat.c: Fix common/ includes.
14102 * parser-defs.h: Fix common/ includes.
14103 * osdata.c: Fix common/ includes.
14104 * obsd-nat.c: Fix common/ includes.
14105 * nat/x86-linux.c: Fix common/ includes.
14106 * nat/x86-linux-dregs.c: Fix common/ includes.
14107 * nat/x86-dregs.h: Fix common/ includes.
14108 * nat/x86-dregs.c: Fix common/ includes.
14109 * nat/ppc-linux.c: Fix common/ includes.
14110 * nat/mips-linux-watch.h: Fix common/ includes.
14111 * nat/mips-linux-watch.c: Fix common/ includes.
14112 * nat/linux-waitpid.c: Fix common/ includes.
14113 * nat/linux-ptrace.h: Fix common/ includes.
14114 * nat/linux-ptrace.c: Fix common/ includes.
14115 * nat/linux-procfs.c: Fix common/ includes.
14116 * nat/linux-personality.c: Fix common/ includes.
14117 * nat/linux-osdata.c: Fix common/ includes.
14118 * nat/linux-namespaces.c: Fix common/ includes.
14119 * nat/linux-btrace.h: Fix common/ includes.
14120 * nat/linux-btrace.c: Fix common/ includes.
14121 * nat/fork-inferior.c: Fix common/ includes.
14122 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14123 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14124 * nat/aarch64-linux.c: Fix common/ includes.
14125 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14126 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14127 * namespace.h: Fix common/ includes.
14128 * mips-linux-tdep.c: Fix common/ includes.
14129 * minsyms.c: Fix common/ includes.
14130 * mi/mi-parse.h: Fix common/ includes.
14131 * mi/mi-main.c: Fix common/ includes.
14132 * mi/mi-cmd-env.c: Fix common/ includes.
14133 * memrange.h: Fix common/ includes.
14134 * memattr.c: Fix common/ includes.
14135 * maint.h: Fix common/ includes.
14136 * maint.c: Fix common/ includes.
14137 * main.c: Fix common/ includes.
14138 * machoread.c: Fix common/ includes.
14139 * location.c: Fix common/ includes.
14140 * linux-thread-db.c: Fix common/ includes.
14141 * linux-nat.c: Fix common/ includes.
14142 * linux-fork.c: Fix common/ includes.
14143 * inline-frame.c: Fix common/ includes.
14144 * infrun.c: Fix common/ includes.
14145 * inflow.c: Fix common/ includes.
14146 * inferior.h: Fix common/ includes.
14147 * inferior.c: Fix common/ includes.
14148 * infcmd.c: Fix common/ includes.
14149 * inf-ptrace.c: Fix common/ includes.
14150 * inf-child.c: Fix common/ includes.
14151 * ia64-linux-nat.c: Fix common/ includes.
14152 * i387-tdep.c: Fix common/ includes.
14153 * i386-tdep.c: Fix common/ includes.
14154 * i386-linux-tdep.c: Fix common/ includes.
14155 * i386-linux-nat.c: Fix common/ includes.
14156 * i386-go32-tdep.c: Fix common/ includes.
14157 * i386-fbsd-tdep.c: Fix common/ includes.
14158 * i386-fbsd-nat.c: Fix common/ includes.
14159 * guile/scm-type.c: Fix common/ includes.
14160 * guile/guile.c: Fix common/ includes.
14161 * go32-nat.c: Fix common/ includes.
14162 * gnu-nat.c: Fix common/ includes.
14163 * gdbthread.h: Fix common/ includes.
14164 * gdbarch-selftests.c: Fix common/ includes.
14165 * gdb_usleep.c: Fix common/ includes.
14166 * gdb_select.h: Fix common/ includes.
14167 * gdb_bfd.c: Fix common/ includes.
14168 * gcore.c: Fix common/ includes.
14169 * fork-child.c: Fix common/ includes.
14170 * findvar.c: Fix common/ includes.
14171 * fbsd-nat.c: Fix common/ includes.
14172 * event-top.c: Fix common/ includes.
14173 * event-loop.c: Fix common/ includes.
14174 * dwarf2read.c: Fix common/ includes.
14175 * dwarf2loc.c: Fix common/ includes.
14176 * dwarf2-frame.c: Fix common/ includes.
14177 * dwarf-index-cache.c: Fix common/ includes.
14178 * dtrace-probe.c: Fix common/ includes.
14179 * disasm-selftests.c: Fix common/ includes.
14180 * defs.h: Fix common/ includes.
14181 * csky-tdep.c: Fix common/ includes.
14182 * cp-valprint.c: Fix common/ includes.
14183 * cp-support.h: Fix common/ includes.
14184 * cp-support.c: Fix common/ includes.
14185 * corelow.c: Fix common/ includes.
14186 * completer.h: Fix common/ includes.
14187 * completer.c: Fix common/ includes.
14188 * compile/compile.c: Fix common/ includes.
14189 * compile/compile-loc2c.c: Fix common/ includes.
14190 * compile/compile-cplus-types.c: Fix common/ includes.
14191 * compile/compile-cplus-symbols.c: Fix common/ includes.
14192 * command.h: Fix common/ includes.
14193 * cli/cli-dump.c: Fix common/ includes.
14194 * cli/cli-cmds.c: Fix common/ includes.
14195 * charset.c: Fix common/ includes.
14196 * build-id.c: Fix common/ includes.
14197 * btrace.h: Fix common/ includes.
14198 * btrace.c: Fix common/ includes.
14199 * breakpoint.h: Fix common/ includes.
14200 * breakpoint.c: Fix common/ includes.
14201 * ax.h:
14202 (enum agent_op): Fix common/ includes.
14203 * ax-general.c (struct aop_map): Fix common/ includes.
14204 * ax-gdb.c: Fix common/ includes.
14205 * auxv.c: Fix common/ includes.
14206 * auto-load.c: Fix common/ includes.
14207 * arm-tdep.c: Fix common/ includes.
14208 * arch/riscv.c: Fix common/ includes.
14209 * arch/ppc-linux-common.c: Fix common/ includes.
14210 * arch/i386.c: Fix common/ includes.
14211 * arch/arm.c: Fix common/ includes.
14212 * arch/arm-linux.c: Fix common/ includes.
14213 * arch/arm-get-next-pcs.c: Fix common/ includes.
14214 * arch/amd64.c: Fix common/ includes.
14215 * arch/aarch64.c: Fix common/ includes.
14216 * arch/aarch64-insn.c: Fix common/ includes.
14217 * arch-utils.c: Fix common/ includes.
14218 * amd64-windows-tdep.c: Fix common/ includes.
14219 * amd64-tdep.c: Fix common/ includes.
14220 * amd64-sol2-tdep.c: Fix common/ includes.
14221 * amd64-obsd-tdep.c: Fix common/ includes.
14222 * amd64-nbsd-tdep.c: Fix common/ includes.
14223 * amd64-linux-tdep.c: Fix common/ includes.
14224 * amd64-linux-nat.c: Fix common/ includes.
14225 * amd64-fbsd-tdep.c: Fix common/ includes.
14226 * amd64-fbsd-nat.c: Fix common/ includes.
14227 * amd64-dicos-tdep.c: Fix common/ includes.
14228 * amd64-darwin-tdep.c: Fix common/ includes.
14229 * agent.c: Fix common/ includes.
14230 * ada-lang.h: Fix common/ includes.
14231 * ada-lang.c: Fix common/ includes.
14232 * aarch64-tdep.c: Fix common/ includes.
14233
2f5c153e
TT
142342019-01-25 Tom Tromey <tom@tromey.com>
14235
14236 * common/create-version.sh: Use common/version.h.
14237
adc6a863
PA
142382019-01-24 Pedro Alves <palves@redhat.com>
14239
14240 * infrun.c (signal_stop, signal_print, signal_program)
14241 (signal_catch, signal_pass): Now arrays instead of pointers.
14242 (update_signals_program_target, do_target_resume)
14243 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14244 * linux-nat.c (linux_nat_target::pass_signals)
14245 (linux_nat_target::create_inferior, linux_nat_target::attach):
14246 Adjust.
14247 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14248 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14249 * procfs.c (procfs_target::pass_signals): Adjust.
14250 * record-full.c (record_full_target::resume): Adjust.
14251 * remote.c (remote_target::pass_signals)
14252 (remote_target::program_signals): Adjust.
14253 * target-debug.h (target_debug_print_signals): Now takes a
14254 gdb::array_view as parameter. Adjust.
14255 * target.h (target_ops) <pass_signals, program_signals>: Replace
14256 pointer and length parameters with gdb::array_view.
14257 (target_pass_signals, target_program_signals): Likewise.
14258 * target-delegates.c: Regenerate.
14259
3046d67a
PA
142602019-01-24 Pedro Alves <palves@redhat.com>
14261
14262 * common/forward-scope-exit.h
14263 (forward_scope_exit::forward_scope_exit): Pass arguments to
14264 m_bind_function directly, instead of creating a std::bind and
14265 copying that.
14266
353229bf
AH
142672019-01-24 Alan Hayward <alan.hayward@arm.com>
14268
14269 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14270 for static members.
14271 (pass_in_v_vfp_candidate): Likewise.
14272
311dc83a
TT
142732019-01-23 Tom Tromey <tom@tromey.com>
14274 Pedro Alves <palves@redhat.com>
14275
14276 * regcache.c (class regcache_invalidator): Remove.
14277 (regcache::raw_write): Use make_scope_exit.
14278
296bd123
TT
142792019-01-23 Tom Tromey <tom@tromey.com>
14280
14281 * ui-out.h (class ui_out_emit_type): Update comment.
14282
979a0d13
TT
142832019-01-23 Tom Tromey <tom@tromey.com>
14284
14285 * infrun.c (fetch_inferior_event): Update comment.
14286
d238133d
TT
142872019-01-23 Tom Tromey <tom@tromey.com>
14288 Pedro Alves <palves@redhat.com>
14289
14290 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14291 parameter.
14292 (fetch_inferior_event): Use SCOPE_EXIT.
14293
14294
9885e6bb
TT
142952019-01-23 Tom Tromey <tom@tromey.com>
14296 Pedro Alves <palves@redhat.com>
14297
14298 * infrun.c (disable_thread_events): Delete.
14299 (stop_all_threads): Use SCOPE_EXIT.
14300
286526c1
TT
143012019-01-23 Tom Tromey <tom@tromey.com>
14302 Pedro Alves <palves@redhat.com>
14303
14304 * symfile.c: Include forward-scope-exit.h.
14305 (clear_symtab_users_cleanup): Replace forward declaration with
14306 a FORWARD_SCOPE_EXIT.
14307 (syms_from_objfile_1): Use the forward_scope_exit and
14308 gdb::optional instead of cleanup_function.
14309 (reread_symbols): Use the forward_scope_exit instead of
14310 cleanup_function.
14311 (clear_symtab_users_cleanup): Remove function.
14312
1db93f14
TT
143132019-01-23 Tom Tromey <tom@tromey.com>
14314 Pedro Alves <palves@redhat.com>
14315
14316 * linux-nat.c: Include scope-exit.h.
14317 (cleanup_target_stop): Remove.
14318 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14319 SCOPE_EXIT.
14320
2cc83d1e
TT
143212019-01-23 Tom Tromey <tom@tromey.com>
14322 Pedro Alves <palves@redhat.com>
14323
14324 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14325 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14326
694c6bf5
TT
143272019-01-23 Tom Tromey <tom@tromey.com>
14328 Andrew Burgess <andrew.burgess@embecosm.com>
14329 Pedro Alves <palves@redhat.com>
14330
14331 * infrun.c (fetch_inferior_event): Use scope_exit.
14332 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14333 * top.c (execute_command): Use scope_exit.
14334 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14335 * utils.c (do_bpstat_clear_actions_cleanup)
14336 (make_bpstat_clear_actions_cleanup): Remove.
14337
4c41382a
TT
143382019-01-23 Tom Tromey <tom@tromey.com>
14339 Pedro Alves <palves@redhat.com>
14340
14341 * infrun.c: Include "common/scope-exit.h"
14342 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14343 (wait_for_inferior): Use SCOPE_EXIT.
14344 (fetch_inferior_event): Use scope_exit.
14345
89f8fb50
TT
143462019-01-23 Tom Tromey <tom@tromey.com>
14347 Pedro Alves <palves@redhat.com>
14348
14349 * breakpoint.c (create_breakpoint): Remove cleanup.
14350
5419bdae
TT
143512019-01-23 Tom Tromey <tom@tromey.com>
14352 Andrew Burgess <andrew.burgess@embecosm.com>
14353 Pedro Alves <palves@redhat.com>
14354
e587ef42
PA
143552019-01-23 Pedro Alves <palves@redhat.com>
14356
14357 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14358
77f0e74c
PA
143592019-01-23 Pedro Alves <palves@redhat.com>
14360 Andrew Burgess <andrew.burgess@embecosm.com>
14361
14362 * gdbthread.h: Include "common/forward-scope-exit.h".
14363 (scoped_finish_thread_state): Redefine custom class in terms of
14364 forward_scope_exit.
14365
5b9b3e53
PA
143662019-01-23 Pedro Alves <palves@redhat.com>
14367 Andrew Burgess <andrew.burgess@embecosm.com>
14368
14369 * common/forward-scope-exit.h: New file.
14370
54b65c9b
PA
143712019-01-23 Pedro Alves <palves@redhat.com>
14372 Andrew Burgess <andrew.burgess@embecosm.com>
14373 Tom Tromey <tom@tromey.com>
14374
14375 * common/scope-exit.h: New file.
14376
cf08fb29
PA
143772019-01-23 Pedro Alves <palves@redhat.com>
14378
14379 * common/preprocessor.h (ESC): Rename to ...
14380 (ESC_PARENS): ... this.
14381 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14382 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14383
ae73e2e2
TT
143842019-01-23 Tom Tromey <tom@tromey.com>
14385
14386 * language.h (class scoped_switch_to_sym_language_if_auto):
14387 Initialize m_lang in both cases.
14388
6594e122
AH
143892019-01-23 Alan Hayward <alan.hayward@arm.com>
14390
14391 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14392 with XCNEW.
14393
a7c9855d
TT
143942019-01-22 Tom Tromey <tom@tromey.com>
14395
14396 * corelow.c: Do not include sys/file.h.
14397
93cc1d53
TT
143982019-01-22 Tom Tromey <tom@tromey.com>
14399
14400 * tui/tui-wingeneral.h: Include gdb_curses.h.
14401
38561778
TT
144022019-01-22 Tom Tromey <tom@tromey.com>
14403
14404 * source-cache.h (class source_cache) <get_source_lines,
14405 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14406
37b3ab5b
TT
144072019-01-22 Tom Tromey <tom@tromey.com>
14408
14409 * remote-fileio.h (struct remote_target): Declare.
14410
3fabc016
TT
144112019-01-22 Tom Tromey <tom@tromey.com>
14412
14413 * python/py-arch.c: Do not include py-ref.h.
14414 * python/py-bpevent.c: Do not include py-ref.h.
14415 * python/py-cmd.c: Do not include py-ref.h.
14416 * python/py-continueevent.c: Do not include py-ref.h.
14417 * python/py-event.h: Do not include py-ref.h.
14418 * python/py-evtregistry.c: Do not include py-ref.h.
14419 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14420 * python/py-frame.c: Do not include py-ref.h.
14421 * python/py-framefilter.c: Do not include py-ref.h.
14422 * python/py-function.c: Do not include py-ref.h.
14423 * python/py-infevents.c: Do not include py-ref.h.
14424 * python/py-linetable.c: Do not include py-ref.h.
14425 * python/py-objfile.c: Do not include py-ref.h.
14426 * python/py-param.c: Do not include py-ref.h.
14427 * python/py-prettyprint.c: Do not include py-ref.h.
14428 * python/py-progspace.c: Do not include py-ref.h.
14429 * python/py-symbol.c: Do not include py-ref.h.
14430 * python/py-symtab.c: Do not include py-ref.h.
14431 * python/py-type.c: Do not include py-ref.h.
14432 * python/py-unwind.c: Do not include py-ref.h.
14433 * python/py-utils.c: Do not include py-ref.h.
14434 * python/py-value.c: Do not include py-ref.h.
14435 * python/py-varobj.c: Do not include py-ref.h.
14436 * python/py-xmethods.c: Do not include py-ref.h.
14437 * python/python.c: Do not include py-ref.h.
14438 * varobj.c: Do not include py-ref.h.
14439
6b4d7774
TT
144402019-01-22 Tom Tromey <tom@tromey.com>
14441
14442 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14443 keyword for bcache.
14444
7af7e9b5
TT
144452019-01-22 Tom Tromey <tom@tromey.com>
14446
14447 * compile/compile-cplus-types.c: Remove a comment by #include.
14448
951d1049
TT
144492019-01-22 Tom Tromey <tom@tromey.com>
14450
14451 * compile/gcc-c-plugin.h: Include compile-internal.h.
14452
d65d5705
TT
144532019-01-22 Tom Tromey <tom@tromey.com>
14454
14455 * stabsread.c (EXTERN): Do not define.
14456 (symnum, next_symbol_text_func, processing_gcc_compilation)
14457 (within_function, global_sym_chain, global_stabs)
14458 (previous_stab_code, this_object_header_files)
14459 (n_this_object_header_files)
14460 (n_allocated_this_object_header_files): Define.
14461 * stabsread.h (EXTERN): Never define. Use "extern".
14462
b6fb1ee5
PW
144632019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14464
14465 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14466 history_value.
14467
be6d4f74
TT
144682019-01-21 Tom Tromey <tom@tromey.com>
14469
14470 * ui-out.c: Fix includes.
14471 * tui/tui-source.c: Fix includes.
14472 * target.c: Fix includes.
14473 * remote.c: Fix includes.
14474 * regcache.c: Fix includes.
14475 * python/py-block.c: Fix includes.
14476 * printcmd.c: Fix includes.
14477 * or1k-tdep.c: Fix includes.
14478 * mi/mi-main.c: Fix includes.
14479 * m32r-tdep.c: Fix includes.
14480 * csky-tdep.c: Fix includes.
14481 * compile/compile-cplus-types.c: Fix includes.
14482 * cli/cli-interp.c: Fix includes.
14483
73021deb
AH
144842019-01-21 Alan Hayward <alan.hayward@arm.com>
14485
14486 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14487 for padding.
14488
7932255d
TT
144892019-01-16 Tom Tromey <tom@tromey.com>
14490
14491 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14492 earlier.
14493 (struct objfile) <msymbols_range>: Move from top level.
14494 <msymbols>: New method.
14495 (class objfile_msymbols): Remove.
14496 * symtab.c (default_collect_symbol_completion_matches_break_on):
14497 Update.
14498 * symmisc.c (dump_msymbols): Update.
14499 * stabsread.c (scan_file_globals): Update.
14500 * objc-lang.c (info_selectors_command, info_classes_command)
14501 (find_methods): Update.
14502 * minsyms.c (find_solib_trampoline_target): Update.
14503 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14504 * coffread.c (coff_symfile_read): Update.
14505 * ada-lang.c (ada_lookup_simple_minsym)
14506 (ada_collect_symbol_completion_matches): Update.
14507
604b1bfb
TT
145082019-01-16 Tom Tromey <tom@tromey.com>
14509
14510 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14511 type. Remove no-argument constructor.
14512 <iterator::operator++>: Simplify.
14513 <begin>: Update.
14514 <end>: Use minimal_symbol_count.
14515
f252c6d5
TT
145162019-01-16 Tom Tromey <tom@tromey.com>
14517
14518 * objfiles.h (struct objfile) <psymtabs>: New method.
14519 (class objfile_psymtabs): Remove.
14520 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14521 typedef.
14522 <range>: New method.
14523 (require_partial_symbols): Change return type.
14524 * psymtab.c (require_partial_symbols)
14525 (psym_expand_symtabs_matching): Update.
14526 * mdebugread.c (parse_partial_symbols): Update.
14527 * dbxread.c (dbx_end_psymtab): Update.
14528
b669c953
TT
145292019-01-15 Tom Tromey <tom@tromey.com>
14530
14531 * symtab.c (lookup_objfile_from_block)
14532 (lookup_symbol_in_objfile_symtabs)
14533 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14534 (find_line_symtab, info_sources_command)
14535 (default_collect_symbol_completion_matches_break_on)
14536 (make_source_files_completion_list): Update.
14537 * symmisc.c (print_objfile_statistics, dump_objfile)
14538 (maintenance_print_symbols, maintenance_info_symtabs)
14539 (maintenance_check_symtabs, maintenance_info_line_tables):
14540 Update.
14541 * source.c (select_source_symtab)
14542 (forget_cached_source_info_for_objfile): Update.
14543 * objfiles.h (class objfile_compunits): Remove.
14544 (struct objfile) <compunits_range>: New typedef.
14545 (compunits): New method.
14546 * objfiles.c (objfile_relocate1): Update.
14547 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14548 * maint.c (count_symtabs_and_blocks): Update.
14549 * linespec.c (iterate_over_all_matching_symtabs): Update.
14550 * cp-support.c (add_symbol_overload_list_qualified): Update.
14551 * coffread.c (coff_symtab_read): Update.
14552 * ada-lang.c (add_nonlocal_symbols)
14553 (ada_collect_symbol_completion_matches)
14554 (ada_add_global_exceptions): Update.
14555
7e955d83
TT
145562019-01-15 Tom Tromey <tom@tromey.com>
14557
14558 * progspace.h (program_space) <objfiles_safe_range>: New
14559 typedef.
14560 <objfiles_safe>: New method.
14561 * objfiles.h (class all_objfiles_safe): Remove.
14562 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14563 * jit.c (jit_inferior_exit_hook): Update.
14564
2030c079
TT
145652019-01-17 Tom Tromey <tom@tromey.com>
14566
14567 * progspace.h (program_space) <objfiles_range>: New typedef.
14568 <objfiles>: New method.
14569 <objfiles_head>: Rename from objfiles.
14570 (object_files): Update.
14571 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14572 * guile/scm-pretty-print.c
14573 (ppscm_find_pretty_printer_from_objfiles): Update.
14574 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14575 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14576 Update.
14577 * python/py-progspace.c (pspy_get_objfiles): Update.
14578 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14579 Update.
14580 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14581 (objfpy_lookup_objfile_by_build_id): Update.
14582 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14583 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14584 Update.
14585 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14586 (expand_symtab_containing_pc, lookup_objfile_from_block)
14587 (lookup_static_symbol, basic_lookup_transparent_type)
14588 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14589 (find_line_symtab, info_sources_command)
14590 (default_collect_symbol_completion_matches_break_on)
14591 (make_source_files_completion_list, find_main_name): Update.
14592 * symmisc.c (print_symbol_bcache_statistics)
14593 (print_objfile_statistics, maintenance_print_symbols)
14594 (maintenance_print_msymbols, maintenance_print_objfiles)
14595 (maintenance_info_symtabs, maintenance_check_symtabs)
14596 (maintenance_expand_symtabs, maintenance_info_line_tables):
14597 Update.
14598 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14599 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14600 (map_overlay_command, unmap_overlay_command)
14601 (simple_overlay_update, expand_symtabs_matching)
14602 (map_symbol_filenames): Update.
14603 * symfile-debug.c (set_debug_symfile): Update.
14604 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14605 Update.
14606 * source.c (select_source_symtab, forget_cached_source_info):
14607 Update.
14608 * solib.c (solib_read_symbols): Update.
14609 * solib-spu.c (append_ocl_sos): Update.
14610 * psymtab.c (maintenance_print_psymbols)
14611 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14612 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14613 * printcmd.c (info_symbol_command): Update.
14614 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14615 Update.
14616 * objfiles.h (class all_objfiles): Remove.
14617 * objfiles.c (have_partial_symbols, have_full_symbols)
14618 (have_minimal_symbols, qsort_cmp, update_section_map)
14619 (shared_objfile_contains_address_p)
14620 (default_iterate_over_objfiles_in_search_order): Update.
14621 * objc-lang.c (info_selectors_command, info_classes_command)
14622 (find_methods): Update.
14623 * minsyms.c (find_solib_trampoline_target): Update.
14624 * maint.c (maintenance_info_sections)
14625 (maintenance_translate_address, count_symtabs_and_blocks):
14626 Update.
14627 * main.c (captured_main_1): Update.
14628 * linux-thread-db.c (try_thread_db_load_from_pdir)
14629 (has_libpthread): Update.
14630 * linespec.c (iterate_over_all_matching_symtabs)
14631 (search_minsyms_for_name): Update.
14632 * jit.c (jit_find_objf_with_entry_addr): Update.
14633 * hppa-tdep.c (find_unwind_entry)
14634 (hppa_lookup_stub_minimal_symbol): Update.
14635 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14636 Update.
14637 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14638 (elf_gnu_ifunc_resolve_by_got): Update.
14639 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14640 * dwarf-index-write.c (save_gdb_index_command): Update.
14641 * cp-support.c (add_symbol_overload_list_qualified): Update.
14642 * breakpoint.c (create_overlay_event_breakpoint)
14643 (create_longjmp_master_breakpoint)
14644 (create_std_terminate_master_breakpoint)
14645 (create_exception_master_breakpoint): Update.
14646 * blockframe.c (find_pc_partial_function): Update.
14647 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14648 (ada_collect_symbol_completion_matches)
14649 (ada_add_global_exceptions): Update.
14650
776489e0
TT
146512019-01-17 Tom Tromey <tom@tromey.com>
14652
14653 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14654 declare VEC.
14655 (solib_target_parse_libraries): Change return type.
14656 (library_list_start_segment, library_list_start_section)
14657 (library_list_end_library, library_list_start_library); Update.
14658 (solib_target_free_library_list): Remove.
14659 (solib_target_parse_libraries): Remove cleanup. Change return
14660 type.
14661 (solib_target_current_sos): Update.
14662
6471e7d2
TT
146632019-01-17 Tom Tromey <tromey@bapiya>
14664
14665 * valprint.c: Replace "the the" with "the".
14666 * symtab.c: Replace "the the" with "the".
14667 * solib.c: Replace "the the" with "the".
14668 * solib-dsbt.c: Replace "the the" with "the".
14669 * linespec.c: Replace "the the" with "the".
14670 * dwarf2loc.h: Replace "the the" with "the".
14671 * amd64-windows-tdep.c: Replace "the the" with "the".
14672 * aarch64-tdep.c: Replace "the the" with "the".
14673
c24bdb02
KS
146742019-01-16 Keith Seitz <keiths@redhat.com>
14675
14676 PR gdb/23773
14677 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14678 <builder>: Rename to ..
14679 <m_builder>: ... this and make private.
14680 (dwarf2_cu::get_builder): New method. Change all users of
14681 `builder' to use this method.
14682 (dwarf2_start_symtab): Move to ...
14683 (dwarf2_cu::start_symtab): ... here. Update all callers
14684 (setup_type_unit_groups): Move to ...
14685 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14686 callers.
14687 (dwarf2_cu::reset_builder): New method.
14688 (process_full_compunit, process_full_type_unit): Use
14689 dwarf2_cu::reset_builder.
14690 (follow_die_offset): Record the ancestor CU if it is different
14691 from the followed DIE's CU.
14692 (follow_die_sig_1): Likewise.
14693
8d64371b
TT
146942019-01-15 Tom Tromey <tom@tromey.com>
14695
14696 * remote.c (class remote_state) <buf>: Now a char_vector.
14697 <buf_size>: Remove.
14698 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14699 parameter.
14700 (remote_target::getpkt_or_notif_sane_1)
14701 (remote_target::getpkt_sane)
14702 (remote_target::getpkt_or_notif_sane): Likewise.
14703 (class remote_target) <putpkt>: New overload.
14704 (remote_target::read_frame): Change type of "buf_p". Remove
14705 sizeof_p parameter.
14706 (packet_ok): New overload.
14707 (packet_check_result): New overload.
14708 Update all uses.
14709
bb277751
TT
147102019-01-14 Tom Tromey <tom@tromey.com>
14711
14712 * remote-notif.c (handle_notification, remote_notif_ack)
14713 (remote_notif_parse): Make "buf" const.
14714 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14715 const.
14716 (remote_notif_parse, remote_notif_ack, handle_notification):
14717 Likewise.
14718 * remote.c (remote_notif_stop_parse): Make "buf" const.
14719 (remote_target::remote_parse_stop_reply): Make "buf" const.
14720 (remote_notif_stop_ack): Make "buf" const.
14721
05be00a8
TT
147222019-01-14 Tom Tromey <tom@tromey.com>
14723
14724 * remote.c (remote_console_output): Make parameter const.
14725
491adeca
TT
147262019-01-14 Tom Tromey <tom@tromey.com>
14727
14728 * target-debug.h (target_debug_print_signals): Constify.
14729 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14730 * procfs.c (procfs_target::pass_signals): Update.
14731 * linux-nat.c (linux_nat_target::pass_signals): Update.
14732 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14733 * target-delegates.c: Rebuild.
14734 * remote.c (remote_target::program_signals): Update.
14735 (remote_target::pass_signals): Update.
14736 * target.c (target_pass_signals): Constify argument.
14737 (target_program_signals): Likewise.
14738 * target.h (struct target_ops) <pass_signals, program_signals>:
14739 Constify argument.
14740 (target_pass_signals, target_program_signals): Constify argument.
14741
bbd94648
TT
147422019-01-14 Tom Tromey <tom@tromey.com>
14743
14744 PR tui/28819:
14745 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14746
6f072a10
PFC
147472019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14748
14749 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14750 field.
14751 * rs6000-tdep.c: Include reggroups.h.
14752 (IS_V_ALIAS_PSEUDOREG): Define.
14753 (rs6000_register_name): Return names for the "vX" aliases.
14754 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14755 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14756 aliases. Call default_register_reggroup_p for all other
14757 pseudo-registers.
14758 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14759 New functions.
14760 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14761 Handle "vX" aliases.
14762 (v_alias_pseudo_register_collect): New function.
14763 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14764 (rs6000_gdbarch_init): Initialize "vX" aliases as
14765 pseudo-registers. Restore registration of
14766 rs6000_pseudo_register_reggroup_p with
14767 set_tdesc_pseudo_register_reggroup_p.
14768
1a782351
MF
147692019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14770
14771 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14772 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14773 set_gdbarch_num_pseudo_regs.
14774
d73cff18
PW
147752019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14776
14777 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14778 Remove arg prefixname, add do_set and do_show.
14779 Add member functions set_list and show_list.
14780 * cli/cli-style.c (class cli_style_option): Update accordingly.
14781 (style_set_list): Move to file scope.
14782 (style_show_list): Likewise.
14783 (set_style): Call help_list.
14784 (show_style): Call cmd_show_list.
14785 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14786 Update to use the new macro.
14787
60a90376
JB
147882019-10-12 Joel Brobecker <brobecker@adacore.com>
14789
14790 * ada-lang.c (_initialize_ada_language): Expand the help text
14791 for the "catch exception" command.
14792
9d7c67bf
PW
147932019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14794
14795 * symtab.c (matching_obj_sections): Initialize obj,
14796 declare it closer to its usage.
14797
7cf47dc4
TT
147982019-01-10 Tom Tromey <tom@tromey.com>
14799
14800 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14801 (basic_inf_threads_range): Remove.
14802 (inf_threads_range, inf_non_exited_threads_range)
14803 (safe_inf_threads_range): Use next_adapter.
14804
d3cb6808
KS
148052019-01-10 Keith Seitz <keiths@redhat.com>
14806
14807 PR gdb/23712
14808 PR symtab/23010
14809 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14810 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14811
63a20375
KS
148122019-01-10 Keith Seitz <keiths@redhat.com>
14813
14814 PR gdb/23712
14815 PR symtab/23010
14816 * dictionary.c (pending_to_vector): Remove.
14817 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14818 Remove _1 suffix, replacing functions of the same name. Update
14819 all callers.
14820 (dict_create_hashed, dict_create_hashed_expandable)
14821 (dict_create_linear, dict_create_linear_expandable, dict_free)
14822 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14823 Make functions static.
14824
b026f593
KS
148252019-01-10 Keith Seitz <keiths@redhat.com>
14826
14827 PR gdb/23712
14828 PR symtab/23010
14829 * dictionary.h (struct dictionary): Replace declaration with
14830 multidictionary.
14831 (dict_create_hashed, dict_create_hashed_expandable)
14832 (dict_create_linear, dict_create_linear_expandable)
14833 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14834 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14835 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14836 taking multidictionary argument.
14837 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14838 * block.h (struct block) <dict>: Change to multidictionary
14839 and rename `multidict'.
14840 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14841 symmisc.c: Update all dictionary references to multidictionary.
14842
c7748ee9
KS
148432019-01-10 Keith Seitz <keiths@redhat.com>
14844
14845 PR gdb/23712
14846 PR symtab/23010
14847 * dictionary.c: Include unordered_map.
14848 (pending_to_vector): New function.
14849 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14850 Rewrite the non-"_1" functions to take vector instead
14851 of linked list.
14852 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14853 "new" _1 versions of the same name.
14854 (multidictionary): Define.
14855 (std::hash<enum language): New definition.
14856 (collate_pending_symbols_by_language, mdict_create_hashed)
14857 (mdict_create_hashed_expandable, mdict_create_linear)
14858 (mdict_create_linear_expandable, mdict_free)
14859 (find_language_dictionary, create_new_language_dictionary)
14860 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14861 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14862 (mdict_size, mdict_empty): New functions.
14863 * dictionary.h (mdict_iterator): Define.
14864
67aa1f3c
PA
148652019-01-10 Pedro Alves <palves@redhat.com>
14866
14867 * breakpoint.c (read_uploaded_action)
14868 (create_tracepoint_from_upload): Adjust to use
14869 gdb::unique_xmalloc_ptr.
14870 * ctf.c (ctf_write_uploaded_tp):
14871 (SET_ARRAY_FIELD): Use emplace_back.
14872 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14873 * tracefile-tfile.c (tfile_write_uploaded_tp):
14874 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14875 gdb::unique_xmalloc_ptr.
14876 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14877 at_string, cond_string, cmd_strings>: Replace char pointers
14878 with gdb::unique_xmalloc_ptr.
14879
2f667667
PA
148802019-01-10 Pedro Alves <palves@redhat.com>
14881
14882 * solib-target.c (library_list_start_library): Don't xstrdup name.
14883
36cb7237
PA
148842019-01-10 Pedro Alves <palves@redhat.com>
14885
14886 * mdebugread.c (parse_partial_symbols): Use
14887 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14888
da584958
AB
148892019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14890
14891 * linux-fork.c (scoped_switch_fork_info)
14892 <~scoped_switch_fork_info>: Fix incorrect variable name.
14893
1ef8573c
AB
148942019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14895
14896 * linux-fork.c (scoped_switch_fork_info)
14897 <scoped_switch_fork_info>: Make explicit.
14898 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14899
8d7bcccb
TT
149002019-01-10 Tom Tromey <tom@tromey.com>
14901
14902 * objfiles.h (objfile::reset_psymtabs): Update.
14903 * objfiles.c (objfile::objfile): Update.
14904 * psymtab.h (psymtab_storage::obstack): Update.
14905 (psymtab_storage::m_obstack): Use gdb::optional.
14906 (class psymtab_storage): Update comment. Remove objfile
14907 parameter.
14908 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14909
b596a3c7
TT
149102019-01-10 Tom Tromey <tom@tromey.com>
14911
14912 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14913 <free_psymtabs>: Now private.
14914 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14915 (allocate_psymtab): Use new method.
14916
a9342b62
TT
149172019-01-10 Tom Tromey <tom@tromey.com>
14918
14919 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14920 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14921 * mdebugread.c (parse_partial_symbols): Use
14922 allocate_dependencies.
14923 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14924 allocate_dependencies.
14925 (process_psymtab_comp_unit_reader)
14926 (build_type_psymtab_dependencies): Likewise.
14927 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14928
5af70966
TT
149292019-01-10 Tom Tromey <tom@tromey.com>
14930
14931 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14932 PSYMBOL_SET_LANGUAGE.
14933 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14934
5923a04c
TT
149352019-01-10 Tom Tromey <tom@tromey.com>
14936
14937 * psymtab.h (psymtab_storage::obstack): New method.
14938 <m_obstack>: Rename from obstack; now private.
14939 * psymtab.c (psymtab_storage): Update.
14940 * dwarf2read.c (create_addrmap_from_index)
14941 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14942 Update.
14943
6d6a12bf
TT
149442019-01-10 Tom Tromey <tom@tromey.com>
14945
14946 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14947 * objfiles.h (objfile::reset_psymtabs): New method.
14948
d320c2b5
TT
149492019-01-10 Tom Tromey <tom@tromey.com>
14950
14951 * symmisc.c (print_symbol_bcache_statistics): Update.
14952 (print_objfile_statistics): Update.
14953 * symfile.c (reread_symbols): Update.
14954 * psymtab.h (class psymtab_storage): New.
14955 * psymtab.c (psymtab_storage): New constructor.
14956 (~psymtab_storage): New destructor.
14957 (require_partial_symbols): Update.
14958 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14959 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14960 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14961 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14962 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14963 (start_psymtab_common, end_psymtab_common)
14964 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14965 (allocate_psymtab): Update.
14966 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14967 Update.
14968 (dump_psymtab_addrmap, maintenance_print_psymbols)
14969 (maintenance_check_psymtabs): Update.
14970 (class objfile_psymtabs): Move to objfiles.h.
14971 * psympriv.h (discard_psymtab): Now inline.
14972 (psymtab_discarder::psymtab_discarder): Update.
14973 (psymtab_discarder::~psymtab_discarder): Update.
14974 (ALL_OBJFILE_PSYMTABS): Rewrite.
14975 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14976 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14977 Remove fields.
14978 <partial_symtabs>: New field.
14979 (class objfile_psymtabs): Move from psymtab.h. Update.
14980 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14981 psymbol_cache.
14982 (objfile::~objfile): Don't destroy psymbol_cache.
14983 * mdebugread.c (parse_partial_symbols): Update.
14984 * dwarf2read.c (create_addrmap_from_index)
14985 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14986 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14987 (add_partial_subprogram, dwarf2_ranges_read): Update.
14988 * dwarf-index-write.c (write_address_map)
14989 (write_one_signatured_type, recursively_write_psymbols)
14990 (class debug_names, class debug_names, write_psymtabs_to_index):
14991 Update.
14992
1d94a5a3
TT
149932019-01-10 Tom Tromey <tom@tromey.com>
14994
14995 * symtab.h (SYMBOL_SET_NAMES): Update.
14996 (symbol_set_names): Update.
14997 (MSYMBOL_SET_NAMES): Update.
14998 * symtab.c (symbol_set_names): Change argument to be an
14999 objfile_per_bfd_storage.
15000 * psymtab.c (add_psymbol_to_bcache): Update.
15001 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15002
0f14768a
TT
150032019-01-10 Tom Tromey <tom@tromey.com>
15004
15005 * symtab.c (create_demangled_names_hash): Change argument to be an
15006 objfile_per_bfd_storage.
15007 (symbol_set_names): Update.
15008
6eee24ce
TT
150092019-01-10 Tom Tromey <tom@tromey.com>
15010
15011 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15012 init_psymbol_list.
15013 * psymtab.c (init_psymbol_list): Do nothing if already called.
15014 * psympriv.h (init_psymbol_list): Add comment.
15015 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15016 init_psymbol_list.
15017 * dbxread.c (dbx_symfile_read): Unconditionally call
15018 init_psymbol_list.
15019
75aedd27
TT
150202019-01-10 Tom Tromey <tom@tromey.com>
15021
15022 * xcoffread.c (scan_xcoff_symtab): Update.
15023 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15024 "where".
15025 * mdebugread.c (parse_partial_symbols)
15026 (handle_psymbol_enumerators): Update.
15027 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15028 * dbxread.c (read_dbx_symtab): Update.
15029 * psympriv.h (psymbol_placement): New enum.
15030 (add_psymbol_to_list): Update.
15031
939652a5
TT
150322019-01-10 Tom Tromey <tom@tromey.com>
15033
15034 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15035 static_psymbols parameters.
15036 (scan_xcoff_symtab): Update.
15037 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15038 static_psymbols parameters.
15039 * psympriv.h (start_psymtab_common): Update.
15040 * mdebugread.c (parse_partial_symbols): Update.
15041 * dwarf2read.c (create_partial_symtab): Update.
15042 * dbxread.c (read_dbx_symtab): Update.
15043 (start_psymtab): Remove global_psymbols and static_psymbols
15044 parameters.
15045
baa62830
TT
150462019-01-10 Tom Tromey <tom@tromey.com>
15047
15048 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15049 * psymtab.c (allocate_psymtab): Add comment.
15050 * psympriv.h (allocate_psymtab): Add comment.
15051 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15052 initializations.
15053 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15054
0e8f53ba
TT
150552019-01-10 Tom Tromey <tom@tromey.com>
15056
15057 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15058 Don't declare.
15059 * mipsread.c: Include mdebugread.h.
15060 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15061 Declare.
15062 * elfread.c: Include mdebugread.h.
15063
b22a7c6a
TT
150642019-01-09 Tom Tromey <tom@tromey.com>
15065
15066 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15067 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15068 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15069 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15070 (psym_lookup_symbol, psym_find_last_source_symtab)
15071 (psym_forget_cached_source_info, psym_print_stats)
15072 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15073 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15074 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15075 (psym_find_compunit_symtab_by_address)
15076 (maintenance_print_psymbols, maintenance_info_psymtabs)
15077 (maintenance_check_psymtabs): Use ranged for.
15078 * psymtab.h (class objfile_psymtabs): New.
15079 (require_partial_symbols): Return objfile_psymtabs.
15080 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15081
3b9d3ac2
TT
150822019-01-09 Tom Tromey <tom@tromey.com>
15083
15084 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15085 (find_pc_mapped_section, list_overlays_command)
15086 (map_overlay_command, unmap_overlay_command)
15087 (simple_overlay_update): Use all_objfiles.
15088 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15089 * printcmd.c (info_symbol_command): Use all_objfiles.
15090 * objfiles.h (ALL_OBJSECTIONS): Remove.
15091 * maint.c (maintenance_translate_address): Use all_objfiles.
15092 * gcore.c (gcore_create_callback): Use all_objfiles.
15093 (objfile_find_memory_regions): Likewise.
15094
8b31193a
TT
150952019-01-09 Tom Tromey <tom@tromey.com>
15096
15097 * symtab.c (find_line_symtab, info_sources_command)
15098 (make_source_files_completion_list): Use objfile_compunits.
15099 * source.c (select_source_symtab): Use objfile_compunits.
15100 * objfiles.h (struct objfile): Update comment.
15101 (ALL_OBJFILES): Remove.
15102 (ALL_FILETABS): Remove.
15103 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15104 objfile_compunits.
15105
d5da8b3c
TT
151062019-01-09 Tom Tromey <tom@tromey.com>
15107
15108 * symmisc.c (print_objfile_statistics, dump_objfile)
15109 (maintenance_print_symbols): Use compunit_filetabs.
15110 * source.c (forget_cached_source_info_for_objfile): Use
15111 compunit_filetabs.
15112 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15113 (ALL_FILETABS): Use compunit_filetabs.
15114 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15115 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15116
5accd1a0
TT
151172019-01-09 Tom Tromey <tom@tromey.com>
15118
15119 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15120 (compunit_filetabs): New.
15121 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15122 compunit_filetabs.
15123 (info_sources_command, make_source_files_completion_list): Remove
15124 declaration.
15125 * symmisc.c (print_objfile_statistics, dump_objfile)
15126 (maintenance_print_symbols): Remove declaration.
15127 (maintenance_info_symtabs): Use compunit_filetabs.
15128 (maintenance_info_line_tables): Likewise.
15129 * source.c (select_source_symtab): Change local variable name.
15130 (forget_cached_source_info_for_objfile): Remove declaration.
15131 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15132 * objfiles.c (objfile_relocate1): Remove declaration.
15133 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15134 declaration.
15135 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15136 * coffread.c (coff_symtab_read): Remove declaration.
15137 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15138 compunit_filetabs.
15139
d8aeb77f
TT
151402019-01-09 Tom Tromey <tom@tromey.com>
15141
15142 * symtab.c (lookup_objfile_from_block)
15143 (find_pc_sect_compunit_symtab, search_symbols)
15144 (default_collect_symbol_completion_matches_break_on): Use
15145 objfile_compunits.
15146 * objfiles.h (ALL_COMPUNITS): Remove.
15147 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15148 * cp-support.c (add_symbol_overload_list_qualified): Use
15149 objfile_compunits.
15150 * ada-lang.c (ada_collect_symbol_completion_matches)
15151 (ada_add_global_exceptions): Use objfile_compunits.
15152
592553c4
TT
151532019-01-09 Tom Tromey <tom@tromey.com>
15154
15155 * source.c (select_source_symtab)
15156 (forget_cached_source_info_for_objfile): Remove declaration.
15157 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15158 declaration.
15159 * maint.c (count_symtabs_and_blocks): Remove declaration.
15160 * cp-support.c (add_symbol_overload_list_qualified): Remove
15161 declaration.
15162 * coffread.c (coff_symtab_read): Remove declaration.
15163 * symtab.c (lookup_symbol_in_objfile_symtabs)
15164 (basic_lookup_transparent_type_1): Use objfile_compunits.
15165 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15166 (info_sources_command, search_symbols)
15167 (default_collect_symbol_completion_matches_break_on)
15168 (make_source_files_completion_list): Remove declaration.
15169 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15170 (ada_collect_symbol_completion_matches)
15171 (ada_add_global_exceptions): Remove declaration.
15172 * linespec.c (iterate_over_all_matching_symtabs): Use
15173 objfile_compunits.
15174 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15175 (class objfile_compunits): New.
15176 (ALL_COMPUNITS): Use objfile_compunits.
15177 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15178 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15179 objfile_compunits.
15180 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15181
5325b9bf
TT
151822019-01-09 Tom Tromey <tom@tromey.com>
15183
15184 * symtab.c (search_symbols)
15185 (default_collect_symbol_completion_matches_break_on): Use
15186 objfile_msymbols.
15187 * ada-lang.c (ada_lookup_simple_minsym)
15188 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15189 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15190 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15191 objfile_msymbols.
15192 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15193 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15194 * objc-lang.c (find_methods): Use objfile_msymbols.
15195 (info_selectors_command, info_classes_command): Likewise.
15196 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15197 * objfiles.h (class objfile_msymbols): New.
15198 (ALL_OBJFILE_MSYMBOLS): Remove.
15199 (ALL_MSYMBOLS): Remove.
15200
cac85af2
TT
152012019-01-09 Tom Tromey <tom@tromey.com>
15202
15203 * common/next-iterator.h (next_adapter): Add Iterator template
15204 parameter.
15205 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15206 (class all_objfiles_safe): New.
15207 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15208 * objfiles.c (put_objfile_before): Update comment.
15209 (add_separate_debug_objfile): Likewise.
15210 (free_all_objfiles): Use all_objfiles_safe.
15211 (objfile_purge_solibs): Likewise.
15212
aed57c53
TT
152132019-01-09 Tom Tromey <tom@tromey.com>
15214
15215 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15216 (expand_symtab_containing_pc, lookup_static_symbol)
15217 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15218 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15219 all_objfiles.
15220 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15221 * breakpoint.c (create_overlay_event_breakpoint)
15222 (create_longjmp_master_breakpoint)
15223 (create_std_terminate_master_breakpoint)
15224 (create_exception_master_breakpoint): Use all_objfiles.
15225 * linux-thread-db.c (try_thread_db_load_from_pdir)
15226 (has_libpthread): Use all_objfiles.
15227 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15228 * linespec.c (iterate_over_all_matching_symtabs)
15229 (search_minsyms_for_name): Use all_objfiles.
15230 * maint.c (maintenance_info_sections): Use all_objfiles.
15231 * main.c (captured_main_1): Use all_objfiles.
15232 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15233 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15234 * guile/scm-pretty-print.c
15235 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15236 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15237 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15238 (maintenance_print_msymbols): Use all_objfiles.
15239 * source.c (select_source_symtab): Use all_objfiles.
15240 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15241 * symfile.c (remove_symbol_file_command)
15242 (expand_symtabs_matching, map_symbol_filenames): Use
15243 all_objfiles.
15244 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15245 all_objfiles.
15246 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15247 * objc-lang.c (find_methods): Use all_objfiles.
15248 * objfiles.c (have_partial_symbols, have_full_symbols)
15249 (have_minimal_symbols, qsort_cmp)
15250 (default_iterate_over_objfiles_in_search_order): Use
15251 all_objfiles.
15252 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15253 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15254 (maintenance_check_psymtabs): Use all_objfiles.
15255 (ALL_PSYMTABS): Remove.
15256 * compile/compile-object-run.c (do_module_cleanup): Use
15257 all_objfiles.
15258 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15259 * cp-support.c (add_symbol_overload_list_qualified): Use
15260 all_objfiles.
15261 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15262 Use all_objfiles.
15263 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15264 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15265 all_objfiles.
15266 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15267 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15268 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15269 Uses all_objfiles.
15270 * solib.c (solib_read_symbols): Use all_objfiles
15271
99d89cde
TT
152722019-01-09 Tom Tromey <tom@tromey.com>
15273
15274 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15275 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15276 all_objfiles.
15277 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15278 * symmisc.c (print_symbol_bcache_statistics)
15279 (print_objfile_statistics, maintenance_print_objfiles)
15280 (maintenance_info_symtabs, maintenance_check_symtabs)
15281 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15282 all_objfiles.
15283 * source.c (forget_cached_source_info): Use all_objfiles.
15284 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15285 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15286 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15287 * objfiles.c (update_section_map): Use all_objfiles.
15288 (shared_objfile_contains_address_p): Likewise.
15289 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15290 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15291
21708325
TT
152922019-01-09 Tom Tromey <tom@tromey.com>
15293
15294 * common/next-iterator.h: New file.
15295 * objfiles.h (class all_objfiles): New.
15296 (struct objfile_iterator): New.
15297
669e09f6
PW
152982019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15299
15300 * NEWS: Move the description of the changed "frame", "select-frame",
15301 and "info frame" commands to the Changed commands section.
15302
041be526
SM
153032019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15304
15305 * gdbtypes.c (check_stub_method_group): Remove handling of old
15306 mangling schemes.
15307 * linespec.c (find_methods): Likewise.
15308 * stabsread.c (read_member_functions): Likewise.
15309 * valops.c (search_struct_method): Likewise.
15310 (value_struct_elt_for_reference): Likewise.
15311 * NEWS: Mention this change.
15312
0e2a2133
AB
153132019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15314
15315 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15316 print_source_lines.
15317 * source.c (print_source_lines_base): Update line number check.
15318 (print_source_lines): New function.
15319 (source_lines_range::source_lines_range): New function.
15320 * source.h (class source_lines_range): New class.
15321 (print_source_lines): New declaration.
15322
1055a3b4
PW
153232019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15324
15325 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15326
cfeadda5
TT
153272019-01-08 Tom Tromey <tom@tromey.com>
15328 Simon Marchi <simon.marchi@ericsson.com>
15329
15330 PR gdb/24060
15331 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15332 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15333 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15334 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15335 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15336 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15337
583068ca
AB
153382019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15339
15340 * source.c (select_source_symtab): Move header comment to
15341 declaration in source.h.
15342 (forget_cached_source_info_for_objfile): Likewise.
15343 (forget_cached_source_info): Likewise.
15344 (identify_source_line): Likewise.
15345 * source.h (identify_source_line): Move declaration from symtab.h
15346 and add comment from source.c
15347 (print_source_lines): Likewise.
15348 (forget_cached_source_info_for_objfile): Likewise.
15349 (forget_cached_source_info): Likewise.
15350 (select_source_symtab): Likewise.
15351 (enum print_source_lines_flag): Move definition from symtab.h.
15352 * symtab.h (identify_source_line): Move declaration to source.h.
15353 (print_source_lines): Likewise.
15354 (forget_cached_source_info_for_objfile): Likewise.
15355 (forget_cached_source_info): Likewise.
15356 (select_source_symtab): Likewise.
15357 (enum print_source_lines_flag): Move definition to source.h.
15358 * tui/tui-hooks.c: Add 'source.h' include.
15359
ec98a4ad
AB
153602019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15361
15362 * source.c (print_source_lines_base): Handle requests to print
15363 reverse line number sequences, and guard against empty lines
15364 string.
15365
62ea19c1
AB
153662019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15367
15368 * source.c (print_source_lines_base): Fix skip of '\r' if next
15369 character is '\n'.
15370
9d30e1fd
TT
153712019-01-06 Tom Tromey <tom@tromey.com>
15372
15373 * c-exp.y (struct c_parse_state) <macro_original_text,
15374 expansion_obstack>: New member.
15375 (macro_original_text, expansion_obstack): Remove globals.
15376 (scan_macro_expansion, scanning_macro_expansion)
15377 (finished_macro_expansion): Update.
15378 (scan_macro_cleanup): Remove.
15379 (yylex, c_parse): Update.
15380
c65bac38
TT
153812019-01-06 Tom Tromey <tom@tromey.com>
15382
15383 * c-exp.y (struct c_parse_state) <strings>: New member.
15384 (operator_stoken): Update.
15385
02e12e38
TT
153862019-01-06 Tom Tromey <tom@tromey.com>
15387
15388 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15389 (union type_stack_elt) <typelist_val>: Now a pointer to
15390 std::vector.
15391 (type_stack_cleanup): Don't declare.
15392 (push_typelist): Update.
15393 * parse.c (pop_typelist): Return a std::vector.
15394 (push_typelist): Take a std::vector.
15395 (follow_types): Update. Do not free args.
15396 (type_stack_cleanup): Remove.
15397 * c-exp.y (struct c_parse_state): New.
15398 (cpstate): New global.
15399 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15400 (nonempty_typelist): Update.
15401 (func_mod): Create a new vector.
15402 (c_parse): Create a c_parse_state.
15403 (check_parameter_typelist): Do not delete params.
15404 (function_method): Update. Do not delete type_list.
15405
f097f5ad
TT
154062019-01-06 Tom Tromey <tom@tromey.com>
15407
15408 PR gdb/28155:
15409 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15410 check_typedef.
15411 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15412 (print_return_value): Likewise.
15413
d2adf9f1
TT
154142019-01-05 Tom Tromey <tom@tromey.com>
15415
15416 * contrib/cleanup_check.py: Remove.
15417 * contrib/gcc-with-excheck: Remove.
15418 * contrib/exsummary.py: Remove.
15419 * contrib/excheck.py: Remove.
15420
2eab46b1
JB
154212019-01-05 Joel Brobecker <brobecker@adacore.com>
15422
15423 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15424 NULL. Initialize tpprev to NULL instead of assigning it
15425 to NULL on the next statement.
15426 * windows-nat.c (windows_delete_thread): Remove check for
15427 main_thread_id before printing thread exit notifications.
15428 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15429 Remove thread ID check against main_thread_id.
15430 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15431 windows_delete_thread.
15432 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15433
48c5e7e2
TT
154342019-01-04 Tom Tromey <tom@tromey.com>
15435
15436 * compile/compile.c (_initialize_compile): Use upper case for
15437 metasyntactic variables.
15438 * symmisc.c (_initialize_symmisc): Use upper case for
15439 metasyntactic variables.
15440 * psymtab.c (_initialize_psymtab): Use upper case for
15441 metasyntactic variables.
15442 * demangle.c (demangle_command): Use upper case for metasyntactic
15443 variables.
15444 (_initialize_demangler): Likewise.
15445 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15446 variables.
15447
986041cd
TT
154482019-01-03 Tom Tromey <tom@tromey.com>
15449
15450 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15451
7c711119
TT
154522019-01-03 Tom Tromey <tom@tromey.com>
15453
15454 * python/py-symtab.c (salpy_str): Update.
15455 (struct salpy_sal_object) <symtab>: Now a PyObject.
15456 (salpy_dealloc): Update.
15457 (del_objfile_sal): Use gdbpy_ref.
15458
1b20edf0
TT
154592019-01-03 Tom Tromey <tom@tromey.com>
15460
15461 * python/py-type.c (convert_field): Use new_reference. Return
15462 gdbpy_ref.
15463 (make_fielditem): Return gdbpy_ref.
15464 (typy_fields): Update.
15465 (typy_getitem): Update.
15466 (field_name): Return gdbpy_ref. Use new_reference.
15467 (typy_iterator_iternext): Update.
15468
ea41325b
TT
154692019-01-03 Tom Tromey <tom@tromey.com>
15470
15471 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15472
2a3c71d6
TT
154732019-01-03 Tom Tromey <tom@tromey.com>
15474
15475 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15476 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15477 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15478 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15479 (pspy_set_type_printers): Likewise.
15480 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15481 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15482 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15483 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15484 (objfpy_set_type_printers): Likewise.
15485
5c329e6a
TT
154862019-01-03 Tom Tromey <tom@tromey.com>
15487
15488 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15489 (gdbpy_print_stack): Use gdbpy_err_fetch.
15490 * python/python-internal.h (class gdbpy_err_fetch): New class.
15491 (class gdbpy_enter) <m_error_type, m_error_value,
15492 m_error_traceback>: Remove.
15493 <m_error>: New member.
15494 (gdbpy_exception_to_string): Don't declare.
15495 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15496 * python/py-value.c (convert_value_from_python): Use
15497 gdbpy_err_fetch.
15498 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15499 gdbpy_exception_to_string.
15500 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15501 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15502 gdbpy_err_fetch.
15503
169bb27b
AB
155042019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15505
15506 * linux-nat.c (delete_lwp_cleanup): Delete.
15507 (struct lwp_deleter): New struct.
15508 (lwp_info_up): New typedef.
15509 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15510 lwp_info_up.
15511
a07c8880
AB
155122019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15513
15514 * linux-fork.c (class scoped_switch_fork_info): New class.
15515 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15516
26089c49
AB
155172019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15518
15519 * valops.c (find_overload_match): Remove use of null_cleanup, and
15520 calls to do_cleanups.
15521
06d3e5b0
AB
155222019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15523
15524 * compile/compile-cplus-types.c
15525 (compile_cplus_instance::decl_name): Handle changes to
15526 cp_func_name.
15527 * cp-support.c (cp_func_name): Update header comment, update
15528 return type.
15529 * cp-support.h (cp_func_name): Update return type in declaration.
15530 * valops.c (find_overload_match): Move temp_func local to top
15531 level of function and change its type. Use temp_func to hold and
15532 delete temporary string obtained from cp_func_name.
15533
66644cd3
AB
155342019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15535
15536 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15537 gdb::char_vector, remove cleanup, and update uses of `msg`.
15538
592d8c0a
JW
155392019-01-03 Jim Wilson <jimw@sifive.com>
15540
15541 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15542
c55d06ec
TT
155432019-01-02 Tom Tromey <tom@tromey.com>
15544
15545 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15546 (tdesc_parse_xml): Remove cleanups.
15547 * target-descriptions.h (make_cleanup_free_target_description):
15548 Don't declare.
15549 (target_desc_deleter): New struct.
15550 (target_desc_up): New typedef.
15551 * target-descriptions.c (target_desc_deleter::operator()): Rename
15552 from free_target_description.
15553 (make_cleanup_free_target_description): Remove.
15554
3a6ae42d
TT
155552019-01-02 Tom Tromey <tom@tromey.com>
15556
15557 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15558 constructor, destructor.
15559 (linespec_parser): Remove typedef.
15560 (~linespec_parser): Rename from linespec_parser_delete.
15561 (linespec_lex_to_end, linespec_complete_label)
15562 (linespec_complete): Update.
15563 (decode_line_full): Remove cleanups.
15564 (decode_line_1): Update.
15565
61fd3e73
TT
155662019-01-02 Tom Tromey <tom@tromey.com>
15567
15568 * python/python-internal.h (inferior_to_inferior_object): Change
15569 return type.
15570 * python/py-exitedevent.c (create_exited_event_object): Update.
15571 * python/py-inferior.c (inferior_to_inferior_object): Return
15572 gdbpy_ref.
15573 (python_new_inferior, python_inferior_deleted)
15574 (thread_to_thread_object, delete_thread_object)
15575 (build_inferior_list, gdbpy_selected_inferior): Update.
15576 * python/py-infthread.c (create_thread_object): Update. Also fail
15577 if inferior_to_inferior_object fails.
15578
d20172fc
SM
155792019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15580
15581 * inferior.h (class inferior) <displaced_step_state>: New field.
15582 * infrun.h (struct displaced_step_state): Move here from
15583 infrun.c. Initialize fields, add constructor.
15584 <inf>: Remove field.
15585 <reset>: New method.
15586 * infrun.c (struct displaced_step_inferior_state): Move to
15587 infrun.h.
15588 (displaced_step_inferior_states): Remove.
15589 (get_displaced_stepping_state): Adust.
15590 (displaced_step_in_progress_any_inferior): Adjust.
15591 (displaced_step_in_progress_thread): Adjust.
15592 (displaced_step_in_progress): Adjust.
15593 (add_displaced_stepping_state): Remove.
15594 (get_displaced_step_closure_by_addr): Adjust.
15595 (remove_displaced_stepping_state): Remove.
15596 (infrun_inferior_exit): Call displaced_step_state.reset.
15597 (use_displaced_stepping): Don't check for NULL.
15598 (displaced_step_prepare_throw): Call
15599 get_displaced_stepping_state.
15600 (displaced_step_fixup): Don't check for NULL.
15601 (prepare_for_detach): Don't check for NULL.
15602
e3319240
PW
156032019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15604
15605 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15606 in case of call that did not complete.
15607
5d36dfb9
AU
156082019-01-02 Andrey Utkin <autkin@undo.io>
15609
15610 * symfile.c (find_separate_debug_file): Fix search of debug files for
15611 remote debuggee.
15612
8833fbf0
TT
156132019-01-02 Tom Tromey <tom@tromey.com>
15614
15615 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15616 indentation.
15617 * python/py-frame.c (frapy_older): Remove cast.
15618 (frapy_newer): Likewise.
15619 * python/py-breakpoint.c (local_setattro): Remove cast.
15620 * python/py-arch.c (archpy_name): Remove local variable.
15621 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15622
4ada3dfd
JB
156232019-01-02 Joel Brobecker <brobecker@adacore.com>
15624
15625 * unittests/basic_string_view/element_access/char/empty.cc:
15626 Fix year range in copyright header.
15627
113b7b81
AB
156282019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15629
15630 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15631 Delete.
15632 <operator==>: Update with for removed field.
15633 <hash>: Likewise.
15634 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15635 <isa_features>: ...this.
15636 <abi_features>: New field.
15637 (riscv_isa_flen): Update comment.
15638 (riscv_abi_xlen): New declaration.
15639 (riscv_abi_flen): New declaration.
15640 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15641 isa_features.
15642 (riscv_abi_xlen): New function.
15643 (riscv_isa_flen): Update to get answer from isa_features.
15644 (riscv_abi_flen): New function.
15645 (riscv_has_fp_abi): Update to get answer from abi_features.
15646 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15647 xlen and flen.
15648 (riscv_call_info) <xlen, flen>: Update comment.
15649 (riscv_call_arg_struct): Remove invalid assertions
15650 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15651 is removed.
15652 (riscv_gdbarch_init): Gather isa features and abi features
15653 separately, ensure both match on the gdbarch when reusing an old
15654 gdbarch. Relax an error check to allow 32-bit abi float to run on
15655 a target with 64-bit float hardware.
15656
b18ca514
PW
156572019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15658
15659 * source.c (search_command_helper): Stop reverse search
15660 when line 1 has been searched.
15661
ec70d8db
PW
156622019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15663
15664 * record-full.c (record_full_base_target::close): Rewrite
15665 record_full_core_buf_list free logic.
15666
5b38f9c1
PW
156672019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15668
15669 * break-catch-syscall.c (print_one_catch_syscall): xfree
15670 the last text.
15671
66d91b39
JB
156722019-01-01 Joel Brobecker <brobecker@adacore.com>
15673
15674 * top.c (print_gdb_version): Update Copyright year in version
15675 message.
15676
42a4f53d
JB
156772019-01-01 Joel Brobecker <brobecker@adacore.com>
15678
15679 Update copyright year range in all GDB files.
15680
7e955d83 156812019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 15682
5bbd631d 15683 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 15684
5bbd631d 15685For older changes see ChangeLog-2018.
c906108c
SS
15686\f
15687Local Variables:
15688mode: change-log
15689left-margin: 8
15690fill-column: 74
15691version-control: never
57da7796 15692coding: utf-8
c906108c 15693End:
5bbd631d 15694
This page took 2.977376 seconds and 4 git commands to generate.