Fix declaration of sparc_xfer_wcookie
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
cadc9cb8
SM
12019-11-26 Simon Marchi <simon.marchi@efficios.com>
2
3 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
4 definition.
5
d04afd58
SM
62019-11-26 Simon Marchi <simon.marchi@efficios.com>
7
8 * remote-sim.c (simulator_command): Make static, remove
9 declaration.
10
dd694d77
SM
112019-11-26 Simon Marchi <simon.marchi@efficios.com>
12
13 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
14 static.
15 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
16 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
17 (main): Likewise.
18 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
19 (main): Likewise.
20 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
21 (main): Likewise.
22 * unittests/basic_string_view/element_access/char/1.cc (test01):
23 Likewise.
24 (main): Likewise.
25 * unittests/basic_string_view/element_access/char/empty.cc (main):
26 Likewise.
27 * unittests/basic_string_view/element_access/char/front_back.cc
28 (test01): Likewise.
29 (main): Likewise.
30 * unittests/basic_string_view/inserters/char/2.cc (test05):
31 Likewise.
32 (main): Likewise.
33 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
34 (test01): Likewise.
35 (main): Likewise.
36 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
37 (test01): Likewise.
38 (main): Likewise.
39 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
40 Likewise.
41 * unittests/basic_string_view/operations/compare/char/1.cc
42 (test01): Likewise.
43 (main): Likewise.
44 * unittests/basic_string_view/operations/compare/char/13650.cc
45 (test01): Likewise.
46 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
47 Likewise.
48 (main): Likewise.
49 * unittests/basic_string_view/operations/data/char/1.cc (test01):
50 Likewise.
51 (main): Likewise.
52 * unittests/basic_string_view/operations/find/char/1.cc (test01):
53 Likewise.
54 (main): Likewise.
55 * unittests/basic_string_view/operations/find/char/2.cc (test02):
56 Likewise.
57 (main): Likewise.
58 * unittests/basic_string_view/operations/find/char/3.cc (test03):
59 Likewise.
60 (main): Likewise.
61 * unittests/basic_string_view/operations/find/char/4.cc (main):
62 Likewise.
63 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
64 Likewise.
65 (main): Likewise.
66 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
67 Likewise.
68 (main): Likewise.
69 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
70 Likewise.
71 (main): Likewise.
72 * unittests/basic_string_view/operations/substr/char/1.cc
73 (test01): Likewise.
74 (main): Likewise.
75 * unittests/basic_string_view/operators/char/2.cc (main):
76 Likewise.
77 * unittests/optional/assignment/1.cc (test): Likewise.
78 * unittests/optional/assignment/2.cc (test): Likewise.
79 * unittests/optional/assignment/3.cc (test): Likewise.
80 * unittests/optional/assignment/4.cc (test): Likewise.
81 * unittests/optional/assignment/5.cc (test): Likewise.
82 * unittests/optional/assignment/6.cc (test): Likewise.
83 * unittests/optional/assignment/7.cc (test): Likewise.
84 * unittests/optional/cons/copy.cc (test): Likewise.
85 * unittests/optional/cons/default.cc (test): Likewise.
86 * unittests/optional/cons/move.cc (test): Likewise.
87 * unittests/optional/cons/value.cc (test): Likewise.
88 * unittests/optional/in_place.cc (test): Likewise.
89 * unittests/optional/observers/1.cc (test): Likewise.
90 * unittests/optional/observers/2.cc (test): Likewise.
91
3b5c1d49
SM
922019-11-26 Simon Marchi <simon.marchi@efficios.com>
93
94 * tui-win.h (tui_set_var_cmd): Remove.
95 * tui-win.c (tui_set_var_cmd): Make static.
96
adce99fe
SM
972019-11-26 Simon Marchi <simon.marchi@efficios.com>
98
99 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
100 rbreak_command_wrapper): Remove.
101 * symtab.c (rbreak_command_wrapper): Remove.
102
fe3adccf
SM
1032019-11-26 Simon Marchi <simon.marchi@efficios.com>
104
105 * inferior.h (info_terminal_command): Remove declaration.
106 * inflow.c (info_terminal_command): Make static.
107
b926335f
SM
1082019-11-26 Simon Marchi <simon.marchi@efficios.com>
109
110 * inferior.c (exit_inferior_silent): Remove.
111
b62f6f54
SM
1122019-11-26 Simon Marchi <simon.marchi@efficios.com>
113
114 * dictionary.c (dict_empty, mdict_empty): Remove.
115 * dictionary.c (mdict_empty): Remove.
116
cb8c24b6
SM
1172019-11-26 Simon Marchi <simon.marchi@efficios.com>
118
119 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
120 (arc_insn_get_memory_offset): Likewise.
121 (arc_insn_dump): Likewise.
122 * cp-support.c (test_cp_symbol_name_matches): Likewise.
123 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
124 * dictionary.c (dict_iterator_next): Likewise.
125 (dict_iter_match_first): Likewise.
126 (dict_iter_match_next): Likewise.
127 * f-lang.c (evaluate_subexp_f): Likewise.
128 * hppa-tdep.c (hppa_read_pc): Likewise.
129 * i386-tdep.c (i386_floatformat_for_type): Likewise.
130 * parse.c (write_exp_elt_msym): Likewise.
131 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
132 * remote.c (remote_packet_size): Likewise.
133 (remote_notif_stop_parse): Likewise.
134 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
135 * s12z-tdep.c (s12z_disassemble_info): Likewise.
136 * source.c (prepare_path_for_appending): Likewise.
137 * sparc64-linux-tdep.c
138 (sparc64_linux_handle_segmentation_fault); Likewise.
139 * stack.c (frame_selection_by_function_completer): Likewise.
140
781597ff
SM
1412019-11-26 Simon Marchi <simon.marchi@efficios.com>
142
143 * completer.c (set_gdb_completion_word_break_characters):
144 Remove.
145
23baa4cc
SM
1462019-11-26 Simon Marchi <simon.marchi@efficios.com>
147
148 * dwarf-index-write.c: Include dwarf-index-write.h.
149 * mi/mi-interp.c: Include mi/mi-interp.h.
150
23767560
SM
1512019-11-26 Simon Marchi <simon.marchi@efficios.com>
152
153 * aarch32-tdep.c: Include aarch32-tdep.h.
154 * aarch32-tdep.h: Forward-declare struct target_desc.
155
6d91ce9a
CB
1562019-11-26 Christian Biesinger <cbiesinger@google.com>
157
158 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
159 strerror.
160 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
161 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
162
3cf2f237
TV
1632019-11-25 Tom de Vries <tdevries@suse.de>
164
165 * contrib/words.sh: Add -c option.
166
5b89c67a
CB
1672019-11-25 Christian Biesinger <cbiesinger@google.com>
168
169 * solib.c (solib_find_1): Change int to bool.
170 (exec_file_find): Change int to bool.
171 (solib_find): Change int to bool.
172 (solib_read_symbols): Change int to bool.
173 (solib_used): Change int to bool.
174 (solib_add): Change int to bool.
175 (info_sharedlibrary_command): Change int to bool.
176 (solib_contains_address_p): Change int to bool.
177 (solib_keep_data_in_core): Change int to bool.
178 (in_solib_dynsym_resolve_code): Change int to bool.
179 (reload_shared_libraries_1): Change int to bool.
180 (gdb_sysroot_changed): Change int to bool.
181 * solib.h (solib_read_symbols): Change int to bool.
182 (solib_contains_address_p): Change int to bool.
183 (solib_keep_data_in_core): Change int to bool.
184 (in_solib_dynsym_resolve_code): Change int to bool.
185 (libpthread_name_p): Change int to bool.
186
6cc8564b
LM
1872019-11-25 Luis Machado <luis.machado@linaro.org>
188
189 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
190 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
191 (remote_packet_max_chars): New static global.
192 (show_remote_packet_max_chars): New function.
193 (remote_target::putpkt_binary): Adjust to use new
194 remote_packet_max_chars option.
195 (remote_target::getpkt_or_notif_sane_1): Likewise.
196 (_initialize_remote): Register new remote-packet-max-chars option.
197
a7cdaa91
SM
1982019-11-24 Simon Marchi <simon.marchi@efficios.com>
199
200 * m68k-linux-nat.c: Include gdbarch.h.
201
26abc753
TT
2022019-11-24 Tom Tromey <tom@tromey.com>
203
204 * symfile.c (read_symbols): Update.
205 * psymtab.c (require_partial_symbols): Change type of "verbose" to
206 bool.
207 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
208 (psym_lookup_symbol, psym_find_last_source_symtab)
209 (psym_forget_cached_source_info, psym_print_stats)
210 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
211 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
212 (psym_map_matching_symbols, psym_expand_symtabs_matching)
213 (psym_find_compunit_symtab_by_address)
214 (maintenance_print_psymbols, maintenance_info_psymtabs)
215 (maintenance_check_psymtabs): Update.
216 * psymtab.h (require_partial_symbols): Change type of "verbose" to
217 bool.
218
012fc909
TT
2192019-11-22 Tom Tromey <tom@tromey.com>
220
221 * observable.h: Update comments.
222
c83d8d32
TT
2232019-11-22 Tom Tromey <tromey@adacore.com>
224
225 * ada-tasks.c (ada_task_is_alive): Make parameter const.
226 (print_ada_task_info): Don't try to fetch thread id if task is not
227 alive.
228
987012b8
CB
2292019-11-22 Christian Biesinger <cbiesinger@google.com>
230
231 * ada-exp.y: Update.
232 * ada-lang.c (sort_choices): Update.
233 (ada_print_symbol_signature): Update.
234 (resolve_subexp): Update.
235 (ada_parse_renaming): Update.
236 (ada_read_renaming_var_value): Update.
237 (lesseq_defined_than): Update.
238 (remove_extra_symbols): Update.
239 (remove_irrelevant_renamings): Update.
240 (ada_add_block_symbols): Update.
241 (ada_collect_symbol_completion_matches): Update.
242 (ada_is_renaming_symbol): Update.
243 (aggregate_assign_from_choices): Update.
244 (ada_evaluate_subexp): Update.
245 (ada_has_this_exception_support): Update.
246 (ada_is_non_standard_exception_sym): Update.
247 (ada_add_exceptions_from_frame): Update.
248 (ada_add_global_exceptions): Update.
249 (ada_print_subexp): Update.
250 * ax-gdb.c (gen_var_ref): Update.
251 (gen_maybe_namespace_elt): Update.
252 (gen_expr_for_cast): Update.
253 (gen_expr): Update.
254 * block.h: Update.
255 * blockframe.c (find_pc_partial_function): Update.
256 * breakpoint.c (print_breakpoint_location): Update.
257 (update_static_tracepoint): Update.
258 * btrace.c (ftrace_print_function_name): Update.
259 (ftrace_function_switched): Update.
260 * buildsym.c (find_symbol_in_list): Update.
261 * c-exp.y: Update.
262 * c-typeprint.c (c_print_typedef): Update.
263 (c_type_print_template_args): Update.
264 * cli/cli-cmds.c (edit_command): Update.
265 (list_command): Update.
266 (print_sal_location): Update.
267 * coffread.c (patch_opaque_types): Update.
268 (process_coff_symbol): Update.
269 (coff_read_enum_type): Update.
270 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
271 (convert_one_symbol): Update.
272 (hash_symname): Update.
273 (eq_symname): Update.
274 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
275 * compile/compile-cplus-types.c (debug_print_scope): Update.
276 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
277 * compile/compile-object-load.c (get_out_value_type): Update.
278 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
279 (search_symbol_list): Update.
280 (cp_lookup_symbol_imports_or_template): Update.
281 * cp-support.c (overload_list_add_symbol): Update.
282 * ctfread.c (psymtab_to_symtab): Update.
283 * dbxread.c (cp_set_block_scope): Update.
284 * dictionary.c (iter_match_first_hashed): Update.
285 (iter_match_next_hashed): Update.
286 (insert_symbol_hashed): Update.
287 (iter_match_next_linear): Update.
288 * dictionary.h: Update.
289 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
290 (locexpr_describe_location_piece): Update.
291 (locexpr_describe_location_1): Update.
292 (locexpr_generate_c_location): Update.
293 (loclist_describe_location): Update.
294 (loclist_generate_c_location): Update.
295 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
296 (read_func_scope): Update.
297 (process_enumeration_scope): Update.
298 (new_symbol): Update.
299 (dwarf2_const_value): Update.
300 (dwarf2_symbol_mark_computed): Update.
301 * eval.c (evaluate_funcall): Update.
302 (evaluate_subexp_standard): Update.
303 * expprint.c (print_subexp_standard): Update.
304 (dump_subexp_body_standard): Update.
305 * f-valprint.c (info_common_command_for_block): Update.
306 * findvar.c (get_hosting_frame): Update.
307 (default_read_var_value): Update.
308 * go-lang.c (go_symbol_package_name): Update.
309 * guile/scm-block.c (bkscm_print_block_smob): Update.
310 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
311 (gdbscm_symbol_name): Update.
312 (gdbscm_symbol_linkage_name): Update.
313 (gdbscm_symbol_print_name): Update.
314 * infcall.c (get_function_name): Update.
315 * infcmd.c (jump_command): Update.
316 (finish_command): Update.
317 * infrun.c (insert_exception_resume_breakpoint): Update.
318 * linespec.c (canonicalize_linespec): Update.
319 (create_sals_line_offset): Update.
320 (convert_linespec_to_sals): Update.
321 (complete_label): Update.
322 (find_label_symbols_in_block): Update.
323 * m2-typeprint.c (m2_print_typedef): Update.
324 * mdebugread.c (mdebug_reg_to_regnum): Update.
325 (parse_symbol): Update.
326 (mylookup_symbol): Update.
327 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
328 (list_args_or_locals): Update.
329 * objc-lang.c (compare_selectors): Update.
330 (info_selectors_command): Update.
331 (compare_classes): Update.
332 (info_classes_command): Update.
333 (find_imps): Update.
334 * p-typeprint.c (pascal_print_typedef): Update.
335 * printcmd.c (build_address_symbolic): Update.
336 (info_address_command): Update.
337 (print_variable_and_value): Update.
338 * python/py-framefilter.c (extract_sym): Update.
339 (py_print_single_arg): Update.
340 * python/py-symbol.c (sympy_str): Update.
341 (sympy_get_name): Update.
342 (sympy_get_linkage_name): Update.
343 * python/python.c (gdbpy_rbreak): Update.
344 * record-btrace.c (btrace_get_bfun_name): Update.
345 (btrace_call_history): Update.
346 * rust-lang.c (rust_print_typedef): Update.
347 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
348 * stabsread.c (stab_reg_to_regnum): Update.
349 (define_symbol): Update.
350 (read_enum_type): Update.
351 (common_block_end): Update.
352 (cleanup_undefined_types_1): Update.
353 (scan_file_globals): Update.
354 * stack.c (print_frame_arg): Update.
355 (print_frame_args): Update.
356 (find_frame_funname): Update.
357 (info_frame_command_core): Update.
358 (iterate_over_block_locals): Update.
359 (print_block_frame_labels): Update.
360 (do_print_variable_and_value): Update.
361 (iterate_over_block_arg_vars): Update.
362 (return_command): Update.
363 * symmisc.c (dump_symtab_1): Update.
364 (print_symbol): Update.
365 * symtab.c (eq_symbol_entry): Update.
366 (symbol_cache_dump): Update.
367 (lookup_language_this): Update.
368 (find_pc_sect_line): Update.
369 (skip_prologue_sal): Update.
370 (symbol_search::compare_search_syms): Update.
371 (treg_matches_sym_type_name): Update.
372 (search_symbols): Update.
373 (print_symbol_info): Update.
374 (rbreak_command): Update.
375 (completion_list_add_symbol): Update.
376 (find_gnu_ifunc): Update.
377 (get_symbol_address): Update.
378 (search_module_symbols): Update.
379 (info_module_subcommand): Update.
380 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
381 (SYMBOL_LINKAGE_NAME): Remove.
382 (SYMBOL_DEMANGLED_NAME): Remove.
383 (SYMBOL_PRINT_NAME): Remove.
384 (SYMBOL_SEARCH_NAME): Remove.
385 * tracepoint.c (set_traceframe_context): Update.
386 (validate_actionline): Update.
387 (collection_list::collect_symbol): Update.
388 (encode_actions_1): Update.
389 (info_scope_command): Update.
390 (print_one_static_tracepoint_marker): Update.
391 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
392 * valops.c (address_of_variable): Update.
393 (find_overload_match): Update.
394 (find_oload_champ): Update.
395
c9d95fa3
CB
3962019-11-22 Christian Biesinger <cbiesinger@google.com>
397
398 * ada-lang.c (ada_lookup_simple_minsym): Update.
399 (ada_collect_symbol_completion_matches): Update.
400 * ada-tasks.c (read_atcb): Update.
401 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
402 (amd64_windows_skip_trampoline_code): Update.
403 * arm-tdep.c (skip_prologue_function): Update.
404 (arm_skip_stack_protector): Update.
405 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
406 (arm_wince_skip_main_prologue): Update.
407 * ax-gdb.c (gen_expr): Update.
408 * block.c (call_site_for_pc): Update.
409 * blockframe.c (find_pc_partial_function): Update.
410 * breakpoint.c (set_breakpoint_location_function): Update.
411 * btrace.c (ftrace_print_function_name): Update.
412 (ftrace_function_switched): Update.
413 * c-valprint.c (print_unpacked_pointer): Update.
414 * coffread.c (coff_symfile_read): Update.
415 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
416 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
417 * dwarf-index-write.c (write_psymbols): Update.
418 * dwarf2loc.c (call_site_to_target_addr): Update.
419 (func_verify_no_selftailcall): Update.
420 (tailcall_dump): Update.
421 (call_site_find_chain_1): Update.
422 (dwarf_expr_reg_to_entry_parameter): Update.
423 * elfread.c (elf_gnu_ifunc_record_cache): Update.
424 * eval.c (evaluate_funcall): Update.
425 (evaluate_subexp_standard): Update.
426 (evaluate_subexp_for_sizeof): Update.
427 * expprint.c (print_subexp_standard): Update.
428 (dump_subexp_body_standard): Update.
429 * frame.c (get_prev_frame_always_1): Update.
430 * frv-tdep.c (frv_skip_main_prologue): Update.
431 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
432 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
433 (gnuv3_get_typename_from_type_info): Update.
434 (gnuv3_skip_trampoline): Update.
435 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
436 * i386-tdep.c (i386_skip_main_prologue): Update.
437 (i386_pe_skip_trampoline_code): Update.
438 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
439 * infcall.c (get_function_name): Update.
440 * linespec.c (minsym_found): Update.
441 * linux-fork.c (info_checkpoints_command): Update.
442 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
443 (m32c_m16c_pointer_to_address): Update.
444 * maint.c (maintenance_translate_address): Update.
445 * minsyms.c (add_minsym_to_hash_table): Update.
446 (add_minsym_to_demangled_hash_table): Update.
447 (lookup_minimal_symbol_mangled): Update.
448 (lookup_minimal_symbol_demangled): Update.
449 (lookup_minimal_symbol_linkage): Update.
450 (lookup_minimal_symbol_text): Update.
451 (lookup_minimal_symbol_by_pc_name): Update.
452 (minimal_symbol_is_less_than): Update.
453 (compact_minimal_symbols): Update.
454 (build_minimal_symbol_hash_tables): Update.
455 (find_solib_trampoline_target): Update.
456 * mips-tdep.c (mips_stub_frame_sniffer): Update.
457 (mips_skip_pic_trampoline_code): Update.
458 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
459 * objc-lang.c (info_selectors_command): Update.
460 (info_classes_command): Update.
461 (find_methods): Update.
462 (find_imps): Update.
463 * p-valprint.c (pascal_val_print): Update.
464 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
465 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
466 * printcmd.c (build_address_symbolic): Update.
467 (info_symbol_command): Update.
468 * psymtab.c (psymbol_name_matches): Update.
469 (match_partial_symbol): Update.
470 (lookup_partial_symbol): Update.
471 (print_partial_symbols): Update.
472 (sort_pst_symbols): Update.
473 (maintenance_check_psymtabs): Update.
474 * python/py-framefilter.c (py_print_frame): Update.
475 * python/python.c (gdbpy_rbreak): Update.
476 * record-btrace.c (btrace_get_bfun_name): Update.
477 (btrace_call_history): Update.
478 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
479 (rs6000_skip_trampoline_code): Update.
480 * sol-thread.c (info_cb): Update.
481 * stabsread.c (scan_file_globals): Update.
482 * stack.c (find_frame_funname): Update.
483 (info_frame_command_core): Update.
484 * symmisc.c (dump_msymbols): Update.
485 * symtab.c (symbol_natural_name): Rename to..,
486 (general_symbol_info::natural_name): ...this.
487 (symbol_demangled_name): Rename to...
488 (general_symbol_info::demangled_name): ...this.
489 (symbol_search_name): Rename to...
490 (general_symbol_info::search_name): ...this.
491 (symbol_matches_search_name): Update.
492 (find_pc_sect_line): Update.
493 (skip_prologue_sal): Update.
494 (search_symbols): Update.
495 (print_msymbol_info): Update.
496 (rbreak_command): Update.
497 (completion_list_add_msymbol): Update.
498 (completion_list_objc_symbol): Update.
499 (get_msymbol_address): Update.
500 * symtab.h (struct general_symbol_info): Add member functions
501 natural_name (), linkage_name (), print_name (), demangled_name (),
502 and search_name ().
503 (SYMBOL_NATURAL_NAME): Update.
504 (symbol_natural_name): Move to a member function on general_symbol_info.
505 (SYMBOL_DEMANGLED_NAME): Update.
506 (symbol_demangled_name): Move to a member function on
507 general_symbol_info.
508 (SYMBOL_SEARCH_NAME): Update.
509 (symbol_search_name): Move to a member function on general_symbol_info.
510 (MSYMBOL_NATURAL_NAME): Remove.
511 (MSYMBOL_LINKAGE_NAME): Remove.
512 (MSYMBOL_PRINT_NAME): Remove.
513 (MSYMBOL_DEMANGLED_NAME): Remove.
514 (MSYMBOL_SEARCH_NAME): Remove.
515 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
516
f8bab2d6
CB
5172019-11-22 Christian Biesinger <cbiesinger@google.com>
518
519 * symtab.c (create_demangled_names_hash): Use per_bfd->
520 minimal_symbol_count for computing the initial size, if greater
521 than our default size.
522
85e7588d
TV
5232019-11-22 Tom de Vries <tdevries@suse.de>
524
525 * contrib/words.sh: Improve words extraction.
526
f6180073
TV
5272019-11-22 Tom de Vries <tdevries@suse.de>
528
529 * contrib/words.sh: Combine sed invocations.
530
f10ffa41
CB
5312019-11-21 Christian Biesinger <cbiesinger@google.com>
532
533 * Makefile.in: Update.
534 * demangle.c: Rename to...
535 * gdb-demangle.c: ..this.
536 (is_cplus_marker): Change return type to bool.
537 (_initialize_demangler): Rename to...
538 (_initialize_gdb_demangle): ...this.
539 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
540 * symtab.h (demangle): Remove declaration; instead include
541 gdb-demangle.h.
542
6ba18521
TT
5432019-11-21 Tom Tromey <tromey@adacore.com>
544
545 * gdbsupport/format.c (format_pieces): Parse %I64d.
546 * unittests/format_pieces-selftests.c (test_windows_formats): New
547 function.
548 (run_tests): Call it.
549
34877895
PJ
5502019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
551
552 Byte reverse display of variables with DW_END_big, DW_END_little
553 (DW_AT_endianity) dwarf attributes if different than the native
554 byte order.
555 * ada-lang.c (ada_value_binop):
556 Use type_byte_order instead of gdbarch_byte_order.
557 * ada-valprint.c (printstr):
558 (ada_val_print_string):
559 * ada-lang.c (value_pointer):
560 (ada_value_binop):
561 Use type_byte_order instead of gdbarch_byte_order.
562 * c-lang.c (c_get_string):
563 Use type_byte_order instead of gdbarch_byte_order.
564 * c-valprint.c (c_val_print_array):
565 Use type_byte_order instead of gdbarch_byte_order.
566 * cp-valprint.c (cp_print_class_member):
567 Use type_byte_order instead of gdbarch_byte_order.
568 * dwarf2loc.c (rw_pieced_value):
569 Use type_byte_order instead of gdbarch_byte_order.
570 * dwarf2read.c (read_base_type): Handle DW_END_big,
571 DW_END_little
572 * f-lang.c (f_get_encoding):
573 Use type_byte_order instead of gdbarch_byte_order.
574 * findvar.c (default_read_var_value):
575 Use type_byte_order instead of gdbarch_byte_order.
576 * gdbtypes.c (check_types_equal):
577 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
578 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
579 and TYPE_ENDIANITY_LITTLE if set.
580 (type_byte_order): new function.
581 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
582 (struct main_type) <flag_endianity_not_default>:
583 New field.
584 (type_byte_order): New function.
585 * infcmd.c (default_print_one_register_info):
586 Use type_byte_order instead of gdbarch_byte_order.
587 * p-lang.c (pascal_printstr):
588 Use type_byte_order instead of gdbarch_byte_order.
589 * p-valprint.c (pascal_val_print):
590 Use type_byte_order instead of gdbarch_byte_order.
591 * printcmd.c (print_scalar_formatted):
592 Use type_byte_order instead of gdbarch_byte_order.
593 * solib-darwin.c (darwin_current_sos):
594 Use type_byte_order instead of gdbarch_byte_order.
595 * solib-svr4.c (solib_svr4_r_ldsomap):
596 Use type_byte_order instead of gdbarch_byte_order.
597 * stap-probe.c (stap_modify_semaphore):
598 Use type_byte_order instead of gdbarch_byte_order.
599 * target-float.c (target_float_same_format_p):
600 Use type_byte_order instead of gdbarch_byte_order.
601 * valarith.c (scalar_binop):
602 (value_bit_index):
603 Use type_byte_order instead of gdbarch_byte_order.
604 * valops.c (value_cast):
605 Use type_byte_order instead of gdbarch_byte_order.
606 * valprint.c (generic_emit_char):
607 (generic_printstr):
608 (val_print_string):
609 Use type_byte_order instead of gdbarch_byte_order.
610 * value.c (unpack_long):
611 (unpack_bits_as_long):
612 (unpack_value_bitfield):
613 (modify_field):
614 (pack_long):
615 (pack_unsigned_long):
616 Use type_byte_order instead of gdbarch_byte_order.
617 * findvar.c (unsigned_pointer_to_address):
618 (signed_pointer_to_address):
619 (unsigned_address_to_pointer):
620 (address_to_signed_pointer):
621 (default_read_var_value):
622 (default_value_from_register):
623 Use type_byte_order instead of gdbarch_byte_order.
624 * gnu-v3-abi.c (gnuv3_make_method_ptr):
625 Use type_byte_order instead of gdbarch_byte_order.
626 * riscv-tdep.c (riscv_print_one_register_info):
627 Use type_byte_order instead of gdbarch_byte_order.
628
87fb00ea
SM
6292019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
630
631 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
632 (current_ui_gdb_stdin_ptr): Likewise.
633 (current_ui_gdb_stderr_ptr): Likewise.
634 (current_ui_gdb_stdlog_ptr): Likewise.
635 (current_ui_current_uiout_ptr): Likewise.
636 (gen_ret_current_ui_field_ptr): Remove.
637
65d1cd5f
TV
6382019-11-21 Tom de Vries <tdevries@suse.de>
639
640 PR gdb/24956
641 * cli/cli-script.c (execute_control_command): Only switch to
642 INTERP_CONSOLE's ui_out when INTERP_MI is active.
643
9f6ad286
TT
6442019-11-19 Tom Tromey <tom@tromey.com>
645
646 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
647 Now static. Change type of "name".
648 (tui_set_win_height_command): Don't copy "arg".
649 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
650 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
651
435d3d88
AT
6522019-11-19 Ali Tamur <tamur@google.com>
653
654 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
655 "if (attr != nullptr)".
656 (dwarf2_find_base_address): Likewise.
657 (dwarf2_build_include_psymtabs): Likewise.
658 (read_cutu_die_from_dwo): Likewise.
659 (read_func_scope): Likewise.
660 (read_call_site_scope): Likewise.
661 (dwarf2_get_pc_bounds): Likewise.
662 (dwarf2_record_block_ranges): Likewise.
663 (dwarf2_add_field): Likewise.
664 (dwarf2_add_member_fn): Likewise.
665 (read_structure_type): Likewise.
666 (read_enumeration_type): Likewise.
667 (read_array_type): Likewise.
668 (read_array_order): Likewise.
669 (read_set_type): Likewise.
670 (read_common_block): Likewise.
671 (read_tag_reference_type): Likewise.
672 (read_tag_string_type): Likewise.
673 (read_subroutine_type): Likewise.
674 (read_base_type): Likewise.
675 (read_subrange_type): Likewise.
676 (new_symbol): Likewise.
677 (prepare_one_comp_unit): Likewise.
678
c9739b6a
TT
6792019-11-19 Tom Tromey <tromey@adacore.com>
680
681 * windows-nat.c (windows_nat_target::attach): Include GetLastError
682 result in error when DebugActiveProcess fails.
683
494409bb
SDJ
6842019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
685 Pedro Alves <palves@redhat.com>
686
687 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
688 * target.c (target_stack::push): Call 'unpush' if there's a
689 target on top of the stack.
690
2e953aca
PW
6912019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
692
693 * python/py-block.c (blpy_dealloc): Call tp_free.
694 (blpy_block_syms_dealloc): Likewise.
695 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
696 * python/py-inferior.c (infpy_dealloc): Likewise.
697 * python/py-lazy-string.c (stpy_dealloc): Likewise.
698 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
699 * python/py-symbol.c (sympy_dealloc): Likewise.
700 * python/py-symtab.c (stpy_dealloc): Likewise.
701 * python/py-type.c (typy_iterator_dealloc): Likewise.
702
6edc43ec
CB
7032019-11-18 Christian Biesinger <cbiesinger@google.com>
704
705 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
706 constructor instead of using a class initializer.
707
cd850b40
CB
7082019-11-15 Christian Biesinger <cbiesinger@google.com>
709
710 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
711 * configure: Regenerate.
712 * configure.ac: Don't source common.host.
713 * gdbsupport/common.host: Remove.
714 * gdbsupport/mingw-strerror.c: Remove.
715 * gdbsupport/posix-strerror.c: Rename to...
716 * gdbsupport/safe-strerror.c: ...this.
717
53fea9c7
CB
7182019-11-15 Christian Biesinger <cbiesinger@google.com>
719
720 * maint.c (scoped_command_stats::print_time): Use localtime_r
721 instead of localtime (provided through gnulib if necessary).
722 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
723 of ctime.
724
f8e27d88
CB
7252019-11-15 Christian Biesinger <cbiesinger@google.com>
726
727 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
728 avoid compile errors.
729
5abebf3c
CB
7302019-11-15 Christian Biesinger <cbiesinger@google.com>
731
732 * config.in: Regenerate.
733 * configure: Regenerate.
734 * gdbsupport/common.m4: No longer check for strerror_r.
735 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
736 POSIX version of strerror_r, now that gnulib provides it if
737 necessary.
738
9a351667
CB
7392019-11-14 Christian Biesinger <cbiesinger@google.com>
740
741 * README (`configure' options): Update.
742
55708e99
TT
7432019-11-14 Tom Tromey <tromey@adacore.com>
744
745 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
746 expected type for the RHS if the LHS is a convenience variable.
747
4b09bb2e
SM
7482019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
749
750 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
751 Provide explicit default and copy constructor.
752
bd454f8b
PW
7532019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
754
755 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
756 only call Py_INCREF (newbp) in the bppy_pending_object case.
757
d1aa3cf0
TT
7582019-11-13 Tom Tromey <tromey@adacore.com>
759
760 PR build/25182:
761 * psympriv.h (partial_symbol): Remove static assert.
762 * symtab.h (general_symbol_info, symbol): Remove static assert.
763
e06f3d6e
AB
7642019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
765
766 * gdbsupport/format.c (format_pieces::format_pieces): Support
767 printf 'z' size modifier.
768 * gdbsupport/format.h (enum argclass): Add size_t_arg.
769 * printcmd.c (ui_printf): Handle size_t_arg.
770 * ui-out.c (ui_out::vmessage): Likewise.
771 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
772 function.
773 (run_tests): Call test_format_int_sizes.
774
468c0cbb
CB
7752019-11-12 Christian Biesinger <cbiesinger@google.com>
776
777 * ada-exp.y (write_ambiguous_var): Update.
778 * buildsym.c (add_symbol_to_list): Update.
779 * dwarf2read.c (read_variable): Update.
780 (new_symbol): Update.
781 * jit.c (finalize_symtab): Update.
782 * language.c (language_alloc_type_symbol): Update.
783 * symtab.c (fixup_symbol_section): Update.
784 (initialize_objfile_symbol_1): Move code to...
785 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
786 (allocate_symbol): Update.
787 (allocate_template_symbol): Update.
788 (get_symbol_address): Update.
789 * symtab.h (struct symbol): Inherit from general_symbol_info instead
790 of having as a field, and add a constructor.
791 (SYMBOL_VALUE): Update.
792 (SYMBOL_VALUE_ADDRESS): Update.
793 (SET_SYMBOL_VALUE_ADDRESS): Update.
794 (SYMBOL_VALUE_BYTES): Update.
795 (SYMBOL_VALUE_COMMON_BLOCK): Update.
796 (SYMBOL_BLOCK_VALUE): Update.
797 (SYMBOL_VALUE_CHAIN): Update.
798 (SYMBOL_LANGUAGE): Update.
799 (SYMBOL_SECTION): Update.
800 (SYMBOL_OBJ_SECTION): Update.
801 (SYMBOL_SET_LANGUAGE): Update.
802 (SYMBOL_SET_LINKAGE_NAME): Update.
803 (SYMBOL_SET_NAMES): Update.
804 (SYMBOL_NATURAL_NAME): Update.
805 (SYMBOL_LINKAGE_NAME): Update.
806 (SYMBOL_DEMANGLED_NAME): Update.
807 (SYMBOL_SEARCH_NAME): Update.
808 (SYMBOL_MATCHES_SEARCH_NAME): Update.
809 (struct symbol): Update.
810 (struct template_symbol): Update.
811 (struct rust_vtable_symbol): Update.
812 * xcoffread.c (SYMBOL_DUP): Update.
813
ed2c82c3
TT
8142019-11-12 Tom Tromey <tom@tromey.com>
815
816 * tui/tui-layout.c (show_layout): Set current_layout.
817 (show_source_disasm_command, show_data)
818 (show_source_or_disasm_and_command): Don't set current_layout.
819
d9fcefd5
TT
8202019-11-12 Tom Tromey <tom@tromey.com>
821
822 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
823
45e42163
TT
8242019-11-12 Tom Tromey <tom@tromey.com>
825
826 * tui/tui-win.c (resize_message): New global.
827 (show_tui_resize_message): New function.
828 (tui_async_resize_screen): Print message if requested.
829 (_initialize_tui_win): Add tui-resize-message setting.
830 * NEWS: Add entry for new commands.
831
c86d74cc
TT
8322019-11-11 Tom Tromey <tom@tromey.com>
833
834 * tui/tui.c (tui_initialize_readline): Add new bindable readline
835 functions.
836
7b7b9424
CB
8372019-11-11 Christian Biesinger <cbiesinger@google.com>
838
839 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
840
086baaf1
AB
8412019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
842
843 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
844 function.
845 * python/python-internal.h (gdbpy_lookup_static_symbols):
846 Declare new function.
847 * python/python.c (python_GdbMethods): Add
848 gdb.lookup_static_symbols method.
849 * NEWS: Mention gdb.lookup_static_symbols.
850
09ff83af
AB
8512019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
852
853 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
854 static block of current object file first. Also fix typo in
855 header comment.
856
eb2dd8df
AB
8572019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
858
859 * stack.c (set_last_displayed_sal): Delete.
860 (last_displayed_sal_valid): Delete.
861 (last_displayed_pspace): Delete.
862 (last_displayed_addr): Delete.
863 (last_displayed_symtab): Delete.
864 (last_displayed_line): Delete.
865 (class last_displayed_symtab_info_type): New.
866 (last_displayed_symtab_info): New static global variable.
867 (print_frame_info): Call methods on last_displayed_symtab_info.
868 (clear_last_displayed_sal): Update header comment, and make use of
869 last_displayed_symtab_info.
870 (last_displayed_sal_is_valid): Likewise.
871 (get_last_displayed_pspace): Likewise.
872 (get_last_displayed_addr): Likewise.
873 (get_last_displayed_symtab): Likewise.
874 (get_last_displayed_line): Likewise.
875 (get_last_displayed_sal): Likewise.
876 * stack.h (clear_last_displayed_sal): Update header comment.
877 (last_displayed_sal_is_valid): Likewise.
878 (get_last_displayed_pspace): Likewise.
879 (get_last_displayed_addr): Likewise.
880 (get_last_displayed_symtab): Likewise.
881 (get_last_displayed_line): Likewise.
882 (get_last_displayed_sal): Likewise.
883
62137775
AB
8842019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
885
886 * stack.c (frame_show_address): Convert return type to bool.
887 * stack.h (frame_show_address): Likewise, and update header
888 comment.
889
cf57ad6d
AB
8902019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
891
892 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
893 * unittests/vec-utils-selftests.c: New file.
894 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
895
0b026263
TT
8962019-11-10 Tom Tromey <tom@tromey.com>
897
898 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
899 (tui_highlight_win): Likewise.
900 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
901 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
902 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
903 Don't set can_highlight.
904
b049ce2d
TT
9052019-11-10 Tom Tromey <tom@tromey.com>
906
907 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
908 Remove unused declaration.
909
992a7040
TT
9102019-11-08 Tom Tromey <tromey@adacore.com>
911
912 * top.c (read_command_file): Update.
913 (command_line_input): Make return type const.
914 * python/py-gdb-readline.c: Update.
915 * linespec.c (decode_line_2): Update.
916 * defs.h (command_line_input): Make return type const.
917 * cli/cli-script.c (read_next_line): Make return type const.
918 * ada-lang.c (get_selections): Update.
919
ca3a04f6
CB
9202019-11-06 Christian Biesinger <cbiesinger@google.com>
921
922 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
923 * mi/mi-main.c (output_cores): Likewise.
924 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
925 (linux_xfer_osdata_modules): Likewise.
926 * remote.c (register_remote_support_xml): Likewise.
927 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
928 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
929
e0eac551
TT
9302019-11-06 Tom Tromey <tom@tromey.com>
931
932 * tui/tui-interp.c: Don't include readline.h.
933 * tui/tui-hooks.c: Don't include readline.h.
934 * symmisc.c: Include tilde.h, not readline.h.
935 * symfile.c: Include tilde.h, not readline.h.
936 * source.c: Include tilde.h, not readline.h.
937 * solib.c: Include tilde.h, not readline.h.
938 * psymtab.c: Include tilde.h, not readline.h.
939 * exec.c: Include tilde.h, not readline.h.
940 * corelow.c: Include tilde.h, not readline.h.
941 * cli/cli-dump.c: Include tilde.h, not readline.h.
942 * cli/cli-cmds.c: Don't include readline.h.
943
825165c5
TT
9442019-11-05 Tom Tromey <tom@tromey.com>
945
946 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
947 (tui_disassemble): Set addr_size.
948 (tui_disasm_window::set_contents): Use addr_size.
949
91ae903f
TT
9502019-11-05 Tom Tromey <tom@tromey.com>
951
952 * rust-lang.c (rust_language_defn): Update.
953 * python/py-value.c (valpy_string): Call c_get_string.
954 * p-lang.c (pascal_language_defn): Update.
955 * opencl-lang.c (opencl_language_defn): Update.
956 * objc-lang.c (objc_language_defn): Update.
957 * m2-lang.c (m2_language_defn): Update.
958 * language.c (unknown_language_defn, auto_language_defn): Update.
959 (default_get_string): Remove.
960 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
961 * go-lang.c (go_language_defn): Update.
962 * f-lang.c (f_language_defn): Update.
963 * d-lang.c (d_language_defn): Update.
964 * c-lang.c (c_language_defn, cplus_language_defn)
965 (asm_language_defn, minimal_language_defn): Update.
966 * ada-lang.c (ada_language_defn): Update.
967 * language.h (struct language_defn) <la_get_string>: Remove.
968 (LA_GET_STRING): Remove.
969 (default_get_string): Don't declare.
970
1df2f9ef
TT
9712019-11-05 Tom Tromey <tom@tromey.com>
972
973 * tui/tui-source.h (struct tui_source_window): Inline
974 constructor. Remove destructor.
975 <style_changed, m_observable>: Move to superclass.
976 * tui/tui-winsource.h (tui_copy_source_line): Declare.
977 (struct tui_source_window_base): Move private members to end.
978 <style_changed, m_observable>: Move from tui_source_window.
979 * tui/tui-winsource.c (tui_copy_source_line): Move from
980 tui-source.c. Rename from copy_source_line. Add special handling
981 for negative line number.
982 (tui_source_window_base::style_changed): Move from
983 tui_source_window.
984 (tui_source_window_base): Register observer.
985 (~tui_source_window_base): New.
986 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
987 rename.
988 (tui_source_window::set_contents): Use tui_copy_source_line.
989 (tui_source_window::tui_source_window): Move to tui-source.h.
990 (tui_source_window::~tui_source_window): Remove.
991 (tui_source_window::style_changed): Move to superclass.
992 * tui/tui-disasm.c (tui_disassemble): Create string file with
993 styling, when possible. Add "addr_size" parameter.
994 (tui_disasm_window::set_contents): Use tui_copy_source_line.
995 Don't compute maximum size.
996 (len_without_escapes): New function
997
5d051055
TT
9982019-11-05 Tom Tromey <tom@tromey.com>
999
1000 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1001 std::string.
1002 * tui/tui-winsource.c (tui_show_source_line): Update.
1003 * tui/tui-source.c (tui_source_window::set_contents): Update.
1004 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1005
ade7beea
CB
10062019-11-05 Christian Biesinger <cbiesinger@google.com>
1007
1008 * symtab.h (gdb_static_assert): Put && operator at the beginning
1009 of the line instead of the end.
1010
3573abe1
CB
10112019-11-04 Christian Biesinger <cbiesinger@google.com>
1012
1013 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1014 and sizeof (symbol).
1015 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1016
dae8b3eb
RO
10172019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1018
1019 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1020 * configure.host: Mark *-*-solaris2.10* obsolete.
1021 * configure.tgt: Mark Solaris < 11 obsolete.
1022 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1023 Update target triplet.
1024
5df96a4e
TT
10252019-11-01 Tom Tromey <tromey@adacore.com>
1026
1027 * utils.c (print_sys_errmsg): Simplify.
1028
b7481649
TT
10292019-11-01 Tom Tromey <tromey@adacore.com>
1030
1031 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1032
e48f6033
CB
10332019-11-01 Christian Biesinger <cbiesinger@google.com>
1034
1035 * configure: Regenerate.
1036 * configure.ac: Remove check for strerror_r.
1037 * gdbsupport/common.m4: Check for strerror_r.
1038
bd5766ec
LM
10392019-11-01 Luis Machado <luis.machado@linaro.org>
1040
1041 PR gdb/25124
1042
1043 * arm-tdep.c (arm_per_objfile): Rename to ...
1044 (arm_per_bfd): ... this.
1045 (arm_objfile_data_key): Rename to ...
1046 (arm_bfd_data_key): ... this.
1047 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1048 data.
1049 (arm_record_special_symbol): Likewise.
1050
e1709896
AB
10512019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1052
1053 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1054 end.
1055 * c-typeprint.c (c_print_typedef): Likewise.
1056 * f-typeprint.c (f_print_typedef): Likewise.
1057 * m2-typeprint.c (m2_print_typedef): Likewise.
1058 * p-typeprint.c (pascal_print_typedef): Likewise.
1059 * rust-lang.c (rust_print_typedef): Likewise.
1060 * symtab.c (print_symbol_info): Print a newline after calling
1061 typedef_print.
1062
165f8965
AB
10632019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1064
1065 * symtab.c (info_module_cmdlist): New variable.
1066 (info_module_command): New function.
1067 (search_module_symbols): New function.
1068 (info_module_subcommand): New function.
1069 (struct info_modules_var_func_options): New struct.
1070 (info_modules_var_func_options_defs): New variable.
1071 (make_info_modules_var_func_options_def_group): New function.
1072 (info_module_functions_command): New function.
1073 (info_module_variables_command): New function.
1074 (info_module_var_func_command_completer): New function.
1075 (_initialize_symtab): Register new 'info module functions' and
1076 'info module variables' commands.
1077 * symtab.h (typedef symbol_search_in_module): New typedef.
1078 (search_module_symbols): Declare new function.
1079 * NEWS: Mention new commands.
1080
59c35742
AB
10812019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1082
1083 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1084 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1085 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1086 MODULES_DOMAIN.
1087 (scan_partial_symbols): Only create partial module symbols for non
1088 declarations.
1089 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1090 and MODULES_DOMAIN.
1091 * symtab.c (search_domain_name): Likewise.
1092 (search_symbols): Likewise.
1093 (print_symbol_info): Likewise.
1094 (symtab_symbol_info): Likewise.
1095 (info_modules_command): New function.
1096 (_initialize_symtab): Register 'info modules' command.
1097 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1098 * NEWS: Mention new 'info modules' command.
1099
aed61d02
PW
11002019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1101
1102 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1103 and $_gdb_maint_setting_str.
1104
9ad9b77d
PW
11052019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1106
1107 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1108 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1109 (str_value_from_setting, gdb_setting_str_internal_fn)
1110 (gdb_maint_setting_str_internal_fn): New functions.
1111 (_initialize_cli_cmds): Define the new convenience functions.
1112 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1113 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1114
8d6efaa2
CB
11152019-10-31 Christian Biesinger <cbiesinger@google.com>
1116
1117 * agent.c (set_can_use_agent): When the setting is turned on,
1118 look up agent symbols if we don't have them yet.
1119 (agent_new_objfile): Don't look up agent symbols when the agent
1120 setting is off.
1121
33cb1647
CB
11222019-10-31 Christian Biesinger <cbiesinger@google.com>
1123
1124 * config.in: Regenerate.
1125
b231e86a
CB
11262019-10-31 Christian Biesinger <cbiesinger@google.com>
1127
1128 * configure: Regenerate.
1129 * configure.ac: Check for strerror_r.
1130 * gdbsupport/common-utils.h (safe_strerror): Change return value
1131 to const char * and document that this function is now threadsafe.
1132 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1133 thread_local and call strerror_r, if available.
1134 * utils.c (perror_string): Update.
1135 (print_sys_errmsg): Update.
1136
a2726d4f
LM
11372019-10-31 Luis Machado <luis.machado@linaro.org>
1138
1139 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1140 objfile_key.
1141 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1142 objfile to fetch per-bfd data.
1143 (arm_find_exidx_entry): Likewise.
1144
75cafaa6
CB
11452019-10-31 Christian Biesinger <cbiesinger@google.com>
1146
1147 * gdbsupport/agent.c (debug_agent): Change type to bool.
1148 (use_agent): Likewise.
1149 (all_agent_symbols_look_up): Likewise.
1150 (agent_loaded_p): Change return value to bool.
1151 (agent_look_up_symbols): Update.
1152 (agent_capability_check): Change return value to bool.
1153 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1154 (debug_agent): Change type to bool.
1155 (use_agent): Likewise.
1156 (agent_capability_check): Change return value to bool.
1157
808590ec
CB
11582019-10-30 Christian Biesinger <cbiesinger@google.com>
1159
1160 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1161 (build_minimal_symbol_hash_tables): Code to clear the table moved
1162 to clear_minimal_symbol_hash_tables.
1163 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1164 when needed.
1165
f18ad8a1
SM
11662019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1167
1168 * infcmd.c: Remove includes.
1169 * infrun.c: Remove includes.
1170
de93309a
SM
11712019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1172
1173 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1174 (grow_vect): Remove declaration.
1175 (ada_type_of_array): Remove declaration.
1176 (ada_update_initial_language): Remove declaration.
1177 (ada_fold_name): Remove declaration.
1178 (ada_fill_in_ada_prototype): Remove declaration.
1179 (user_select_syms): Remove declaration.
1180 (get_selections): Remove declaration.
1181 (ada_tag_type): Remove declaration.
1182 (ada_value_tag): Remove declaration.
1183 (ada_is_others_clause): Remove declaration.
1184 (ada_in_variant): Remove declaration.
1185 (ada_value_struct_elt): Remove declaration.
1186 (ada_attribute_name): Remove declaration.
1187 (ada_system_address_type): Remove declaration.
1188 * ada-lang.c (ada_watch_location_expression): Make static.
1189 (GROW_VECT): Move here from ada-lang.h.
1190 (grow_vect): Make static.
1191 (ada_update_initial_language): Make static.
1192 (ada_fold_name): Make static.
1193 (ada_type_of_array): Make static.
1194 (encoded_ordered_before): Move up.
1195 (sort_choices): Move up.
1196 (print_signatures): Move up.
1197 (ada_print_symbol_signature): Move up.
1198 (get_selections): Move up and make static.
1199 (user_select_syms): Move up and make static.
1200 (ada_value_struct_elt): Move up and make static.
1201 (ada_tag_type): Make static.
1202 (ada_value_tag): Make static.
1203 (ada_is_others_clause): Make static.
1204 (ada_in_variant): Make static.
1205 (ada_attribute_name): Make static.
1206
cdc46a9f
SM
12072019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1208
1209 * ada-lang.c: Remove includes.
1210 * ada-typeprint.c: Remove includes.
1211 * ada-valprint.c: Remove includes.
1212
90421c56
SM
12132019-10-29 Simon Marchi <simon.marchi@efficios.com>
1214
1215 * addrmap.c: Add static assertions of type size, moved from
1216 _initialize_addrmap.
1217 (_initialize_addrmap): Remove.
1218
31edb802
CB
12192019-10-29 Christian Biesinger <cbiesinger@google.com>
1220
1221 * coffread.c (record_minimal_symbol): Update.
1222 (process_coff_symbol): Update.
1223 * dbxread.c (read_dbx_symtab): Update.
1224 * dwarf2read.c (add_partial_symbol): Update.
1225 (fixup_go_packaging): Update.
1226 (load_partial_dies): Update.
1227 (new_symbol): Update.
1228 * elfread.c (record_minimal_symbol): Change signature to use
1229 gdb::string_view instead of name+len.
1230 (elf_symtab_read): Update.
1231 (elf_rel_plt_read): Update.
1232 * mdebugread.c (parse_partial_symbols): Update.
1233 (handle_psymbol_enumerators): Update.
1234 (new_symbol): Update.
1235 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1236 to use gdb::string_view instead of name+len.
1237 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1238 * psympriv.h (add_psymbol_to_list): Likewise.
1239 * psymtab.c (add_psymbol_to_bcache): Likewise.
1240 (add_psymbol_to_list): Likewise.
1241 * stabsread.c (define_symbol): Update.
1242 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1243 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1244 (symbol_set_names): Likewise.
1245 * xcoffread.c (scan_xcoff_symtab): Update.
1246
0c921b21
CB
12472019-10-29 Christian Biesinger <cbiesinger@google.com>
1248
1249 * symtab.h (symbol_set_names): Document that copy_name must be
1250 set to true for non-nullterminated strings.
1251 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1252 linkage_name if the entry was not found and we need to demangle.
1253
35e65c49
CB
12542019-10-29 Christian Biesinger <cbiesinger@google.com>
1255
1256 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1257 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1258 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1259 * gdbsupport/gdb_binary_search.h: New file.
1260
ed2a2229
CB
12612019-10-29 Christian Biesinger <cbiesinger@google.com>
1262
1263 * NEWS: Mention new --with-system-gdbinit-dir option.
1264 * config.in: Regenerate.
1265 * configure: Regenerate.
1266 * configure.ac: Add new option --with-system-gdbinit-dir.
1267 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1268 for a ".gdb" suffix.
1269 * main.c (get_init_files): Change system_gdbinit argument to
1270 a vector and return the files in SYSTEM_GDBINIT_DIR in
1271 addition to SYSTEM_GDBINIT.
1272 (captured_main_1): Update.
1273 (print_gdb_help): Update.
1274 * top.c (print_gdb_configuration): Also print the value of
1275 SYSTEM_GDBINIT_DIR.
1276
87f34879
CB
12772019-10-28 Christian Biesinger <cbiesinger@google.com>
1278
1279 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1280 that takes gdb::string_view arguments.
1281
30baf67b
TV
12822019-10-26 Tom de Vries <tdevries@suse.de>
1283
1284 * aarch64-linux-tdep.c: Fix typos in comments.
1285 * aarch64-tdep.c: Same.
1286 * ada-lang.c: Same.
1287 * amd64-nat.c: Same.
1288 * arc-tdep.c: Same.
1289 * arch/aarch64-insn.c: Same.
1290 * block.c: Same.
1291 * breakpoint.h: Same.
1292 * btrace.h: Same.
1293 * c-varobj.c: Same.
1294 * cli/cli-decode.c: Same.
1295 * cli/cli-script.c: Same.
1296 * cli/cli-utils.h: Same.
1297 * coff-pe-read.c: Same.
1298 * coffread.c: Same.
1299 * compile/compile-cplus-symbols.c: Same.
1300 * compile/compile-object-run.c: Same.
1301 * completer.c: Same.
1302 * corelow.c: Same.
1303 * cp-support.c: Same.
1304 * demangle.c: Same.
1305 * dwarf-index-write.c: Same.
1306 * dwarf2-frame.c: Same.
1307 * dwarf2-frame.h: Same.
1308 * eval.c: Same.
1309 * frame-base.h: Same.
1310 * frame.h: Same.
1311 * gdbcmd.h: Same.
1312 * gdbtypes.h: Same.
1313 * gnu-nat.c: Same.
1314 * guile/scm-objfile.c: Same.
1315 * i386-tdep.c: Same.
1316 * i386-tdep.h: Same.
1317 * infcall.c: Same.
1318 * infcall.h: Same.
1319 * linux-nat.c: Same.
1320 * m68k-tdep.c: Same.
1321 * macroexp.c: Same.
1322 * memattr.c: Same.
1323 * mi/mi-cmd-disas.c: Same.
1324 * mi/mi-getopt.h: Same.
1325 * mi/mi-main.c: Same.
1326 * minsyms.c: Same.
1327 * nat/aarch64-sve-linux-sigcontext.h: Same.
1328 * objfiles.h: Same.
1329 * ppc-linux-nat.c: Same.
1330 * ppc-linux-tdep.c: Same.
1331 * ppc-tdep.h: Same.
1332 * progspace.h: Same.
1333 * prologue-value.h: Same.
1334 * python/py-evtregistry.c: Same.
1335 * python/py-instruction.h: Same.
1336 * record-btrace.c: Same.
1337 * record-full.c: Same.
1338 * remote.c: Same.
1339 * rs6000-tdep.c: Same.
1340 * ser-tcp.c: Same.
1341 * sol-thread.c: Same.
1342 * sparc-sol2-tdep.c: Same.
1343 * sparc64-tdep.c: Same.
1344 * stabsread.c: Same.
1345 * symfile.c: Same.
1346 * symtab.h: Same.
1347 * target.c: Same.
1348 * tracepoint.c: Same.
1349 * tui/tui-data.h: Same.
1350 * tui/tui-io.c: Same.
1351 * tui/tui-win.c: Same.
1352 * tui/tui.c: Same.
1353 * unittests/rsp-low-selftests.c: Same.
1354 * user-regs.h: Same.
1355 * utils.c: Same.
1356 * utils.h: Same.
1357 * valarith.c: Same.
1358 * valops.c: Same.
1359 * valprint.c: Same.
1360 * valprint.h: Same.
1361 * value.c: Same.
1362 * value.h: Same.
1363 * varobj.c: Same.
1364 * x86-nat.h: Same.
1365 * xtensa-tdep.c: Same.
1366
1834d45f
AT
13672019-10-25 Ali Tamur <tamur@google.com>
1368
1369 * charset.c (find_charset_names): Reflect API change.
1370
5396ae17
CB
13712019-10-25 Christian Biesinger <cbiesinger@google.com>
1372
1373 * symtab.c (struct demangled_name_entry): Change demangled name
1374 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1375 part of the struct anymore.
1376 (symbol_set_names): No longer obstack allocate + copy the demangled
1377 name, just store the allocated name from bfd.
1378
93878f47
TT
13792019-10-25 Tom Tromey <tromey@adacore.com>
1380
1381 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1382 (bsearch_cie_cmp, add_cie): Remove.
1383 (find_cie): Reimplement.
1384 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1385 (dwarf2_build_frame_info): Update.
1386
7b71fc97
L
13872019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1388
1389 PR gdb/25126
1390 * symfile.c (reread_symbols): Call forget_cached_source_info to
1391 clear the stale source cache.
1392
cbb5a2ea
CB
13932019-10-24 Christian Biesinger <cbiesinger@google.com>
1394
1395 * configure: Regenerate.
1396 * configure.ac: Remove code that sets python_has_threads.
1397
71737c43
CB
13982019-10-24 Christian Biesinger <cbiesinger@google.com>
1399
1400 * config.in: Regenerate.
1401 * configure: Regenerate.
1402 * configure.ac: Remove the code that uses sed to get the python
1403 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1404
33d569b7
AB
14052019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1406
1407 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1408 error paths.
1409
f16f7b7c
TT
14102019-10-23 Tom Tromey <tom@tromey.com>
1411
1412 * arc-tdep.c: Remove ".." from include.
1413 * frv-tdep.c: Remove ".." from include.
1414 * lm32-tdep.c: Remove ".." from include.
1415 * microblaze-tdep.c: Remove ".." from include.
1416 * or1k-tdep.h: Remove ".." from include.
1417 * s12z-tdep.c: Remove ".." from include.
1418 * Makefile.in (OPCODES_CFLAGS): Add comment.
1419 (TOP_CFLAGS): New variable.
1420 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1421
6999161a
TT
14222019-10-23 Tom Tromey <tom@tromey.com>
1423
1424 * Makefile.in (READLINE_DIR): Update.
1425
12e7c35e
TBA
14262019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1427
1428 * infcall.c (call_function_by_hand_dummy): Fix the function
1429 comment. And extract out a code section into...
1430 (reserve_stack_space): ...this new function.
1431
37055cad
TBA
14322019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1433
1434 * infcall.c (value_arg_coerce): Remove an unused parameter.
1435 (call_function_by_hand_dummy): Update the call to
1436 'value_arg_coerce'.
1437
39bcc47c
TBA
14382019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1439
1440 * infcall.c (call_function_by_hand_dummy): Refactor.
1441
bd888c0f
TBA
14422019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1443
1444 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1445
c12d372d
TT
14462019-10-23 Tom Tromey <tom@tromey.com>
1447
1448 * configure: Rebuild.
1449 * configure.ac: Don't check for sigprocmask.
1450 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1451
4d0b984b
TT
14522019-10-23 Tom Tromey <tom@tromey.com>
1453
1454 * configure: Rebuild.
1455 * acinclude.m4: Use m4_include, not sinclude.
1456
7e785608
TV
14572019-10-23 Tom de Vries <tdevries@suse.de>
1458
1459 PR breakpoints/24687
1460 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1461
403772ef
CB
14622019-10-22 Christian Biesinger <cbiesinger@google.com>
1463
1464 * symtab.c (struct demangled_name_entry) <language>: Change from
1465 bitfield to regular variable.
1466
3a494279
CB
14672019-10-22 Christian Biesinger <cbiesinger@google.com>
1468
1469 * symtab.c (struct demangled_name_entry): Add a constructor.
1470 (free_demangled_name_entry): New function to call the destructor
1471 for demangled_name_entry.
1472 (create_demangled_names_hash): Pass free_demangled_name_entry to
1473 htab_create_alloc.
1474 (symbol_set_names): Call placement new for demangled_name_entry.
1475 * utils.c: No longer include xxhash.h here, now that fast_hash
1476 is inlined in the header.
1477 * utils.h: Instead, include it here.
1478
ccb1ba62
CB
14792019-10-22 Christian Biesinger <cbiesinger@google.com>
1480
1481 * Makefile.in: Link with libxxhash.
1482 * config.in: Regenerate.
1483 * configure: Regenerate.
1484 * configure.ac: Search for libxxhash.
1485 * utils.c (fast_hash): Use xxhash if present.
1486
1a6ff1a9
CB
14872019-10-22 Christian Biesinger <cbiesinger@google.com>
1488
1489 * utils.h (fast_hash): New function.
1490 * symtab.c (hash_demangled_name_entry): Call new function
1491 fast_hash.
1492
7bb43059
CB
14932019-10-22 Christian Biesinger <cbiesinger@google.com>
1494
1495 * symtab.c (struct demangled_name_entry): Change type of mangled
1496 to gdb::string_view. Also adds a constructor that takes the
1497 mangled name.
1498 (hash_demangled_name_entry): Update.
1499 (eq_demangled_name_entry): Update.
1500 (free_demangled_name_entry): New function to call the destructor
1501 now that this is not a POD anymore.
1502 (create_demangled_names_hash): Pass free_demangled_name_entry to
1503 htab_create_alloc.
1504 (symbol_set_names): Update.
1505
7ba99d21
AT
15062019-10-21 Ali Tamur <tamu@google.com>
1507
1508 * dwarf2read.c (dir_index): Change type.
1509 (file_name_index): Likewise.
1510 (line_header::include_dir_at): Change comment and implementation on
1511 whether it is DWARF 5.
1512 (line_header::is_valid_file_index): New function.
1513 (line_header::file_name_at): Change comment and implementation on
1514 whether it is DWARF 5.
1515 (line_header::file_names): Change to private field renamed as
1516 m_file_names and introduce a new accessor method.
1517 (line_header::file_names_size): New method.
1518 (line_header::include_dirs): Change to private field and rename as
1519 m_include_dirs.
1520 (dw2_get_file_names_reader): Define local var at a smaller scope and
1521 reflect API change.
1522 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1523 (process_structure_scope): Likewise.
1524 (line_header::add_include_dir): Change message and reflect renaming.
1525 (line_header::add_file_name): Likewise.
1526 (read_formatted_entries): Handle DW_FORM_data16.
1527 (dwarf_decode_line_header): Fix line header length calculation.
1528 (psymtab_include_file_name): Change comment and API.
1529 (lnp_state_machine::m_file): Update comment and reflect type change.
1530 (lnp_state_machine::record_line): Reflect type change.
1531 (dwarf_decode_lines): Reflect API change.
1532 (file_file_name): Likewise.
1533 (file_full_name): Likewise.
1534
45f47c3a
AB
15352019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1536
1537 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1538
e5f3c0e3
TT
15392019-10-21 Tom Tromey <tom@tromey.com>
1540
1541 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1542
a0a461e5
TT
15432019-10-21 Tom Tromey <tom@tromey.com>
1544
1545 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1546 NM_H. Use AC_CONFIG_LINKS.
1547 * configure: Rebuild.
1548 * Makefile.in (NM_H): New variable.
1549 (generated_files): Add NM_H. Remove gcore.
1550 (nm.h, stamp-nmh): New targets.
1551
54d83b8d
TT
15522019-10-20 Tom Tromey <tom@tromey.com>
1553
1554 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1555 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1556 obsolete comment.
1557 (put_objfile_before): Now static.
1558
23771117
SM
15592019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1560
1561 * gdbsupport/common-utils.h (startswith): Change return type to
1562 bool.
1563
39ef2f62
CB
15642019-10-19 Christian Biesinger <cbiesinger@google.com>
1565
1566 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1567 * breakpoint.c (bp_locations_compare): Rename to...
1568 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1569 (update_global_location_list): Use std::sort instead of qsort.
1570 * buildsym.c (compare_line_numbers): Rename to...
1571 (lte_is_less_than): ...this, and change to std::sort semantics.
1572 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1573 instead of qsort.
1574 * disasm.c (compare_lines): Rename to...
1575 (line_is_less_than): ...this, and change to std::sort semantics.
1576 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1577 of qsort.
1578 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1579 (fde_is_less_than): ...this, and change to std::sort semantics.
1580 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1581 * mdebugread.c (compare_blocks):
1582 (block_is_less_than): ...this, and change to std::sort semantics.
1583 (sort_blocks): Call std::sort instead of qsort.
1584 * objfiles.c (qsort_cmp): Rename to...
1585 (sort_cmp): ...this, and change to std::sort semantics.
1586 (update_section_map): Call std::sort instead of qsort.
1587 * remote.c (compare_pnums): Remove.
1588 (map_regcache_remote_table): Call std::sort instead of qsort.
1589 * utils.c (compare_positive_ints): Remove.
1590 * utils.h (compare_positive_ints): Remove.
1591 * xcoffread.c (compare_lte): Remove.
1592 (arrange_linetable): Call std::sort instead of qsort.
1593
f71433ee
SDJ
15942019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1595
1596 * symfile.c (init_entry_point_info): Fix typo.
1597 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1598
85102364
TV
15992019-10-18 Tom de Vries <tdevries@suse.de>
1600
1601 * aarch64-tdep.c: Fix typos in comments.
1602 * ada-lang.c: Same.
1603 * ada-tasks.c: Same.
1604 * alpha-tdep.c: Same.
1605 * alpha-tdep.h: Same.
1606 * amd64-nat.c: Same.
1607 * amd64-windows-tdep.c: Same.
1608 * arc-tdep.c: Same.
1609 * arc-tdep.h: Same.
1610 * arch-utils.c: Same.
1611 * arm-nbsd-tdep.c: Same.
1612 * arm-tdep.c: Same.
1613 * ax-gdb.c: Same.
1614 * blockframe.c: Same.
1615 * btrace.c: Same.
1616 * c-varobj.c: Same.
1617 * coff-pe-read.c: Same.
1618 * coffread.c: Same.
1619 * cris-tdep.c: Same.
1620 * darwin-nat.c: Same.
1621 * dbxread.c: Same.
1622 * dcache.c: Same.
1623 * disasm.c: Same.
1624 * dtrace-probe.c: Same.
1625 * dwarf-index-write.c: Same.
1626 * dwarf2-frame-tailcall.c: Same.
1627 * dwarf2-frame.c: Same.
1628 * dwarf2read.c: Same.
1629 * eval.c: Same.
1630 * exceptions.c: Same.
1631 * fbsd-tdep.c: Same.
1632 * findvar.c: Same.
1633 * frame.c: Same.
1634 * frv-tdep.c: Same.
1635 * gnu-v3-abi.c: Same.
1636 * go32-nat.c: Same.
1637 * h8300-tdep.c: Same.
1638 * hppa-tdep.c: Same.
1639 * i386-linux-tdep.c: Same.
1640 * i386-tdep.c: Same.
1641 * ia64-libunwind-tdep.c: Same.
1642 * ia64-tdep.c: Same.
1643 * infcmd.c: Same.
1644 * infrun.c: Same.
1645 * linespec.c: Same.
1646 * linux-nat.c: Same.
1647 * linux-thread-db.c: Same.
1648 * machoread.c: Same.
1649 * mdebugread.c: Same.
1650 * mep-tdep.c: Same.
1651 * mn10300-tdep.c: Same.
1652 * namespace.c: Same.
1653 * objfiles.c: Same.
1654 * opencl-lang.c: Same.
1655 * or1k-tdep.c: Same.
1656 * osabi.c: Same.
1657 * ppc-linux-nat.c: Same.
1658 * ppc-linux-tdep.c: Same.
1659 * ppc-sysv-tdep.c: Same.
1660 * printcmd.c: Same.
1661 * procfs.c: Same.
1662 * record-btrace.c: Same.
1663 * record-full.c: Same.
1664 * remote-fileio.c: Same.
1665 * remote.c: Same.
1666 * rs6000-tdep.c: Same.
1667 * s12z-tdep.c: Same.
1668 * score-tdep.c: Same.
1669 * ser-base.c: Same.
1670 * ser-go32.c: Same.
1671 * skip.c: Same.
1672 * sol-thread.c: Same.
1673 * solib-svr4.c: Same.
1674 * solib.c: Same.
1675 * source.c: Same.
1676 * sparc-nat.c: Same.
1677 * sparc-sol2-tdep.c: Same.
1678 * sparc-tdep.c: Same.
1679 * sparc64-tdep.c: Same.
1680 * stabsread.c: Same.
1681 * stack.c: Same.
1682 * symfile.c: Same.
1683 * symtab.c: Same.
1684 * target-descriptions.c: Same.
1685 * target-float.c: Same.
1686 * thread.c: Same.
1687 * utils.c: Same.
1688 * valops.c: Same.
1689 * valprint.c: Same.
1690 * value.c: Same.
1691 * varobj.c: Same.
1692 * windows-nat.c: Same.
1693 * xcoffread.c: Same.
1694 * xstormy16-tdep.c: Same.
1695 * xtensa-tdep.c: Same.
1696
c5adaa19
TT
16972019-10-17 Tom Tromey <tromey@adacore.com>
1698
1699 * configure: Rebuild.
1700 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1701 in AC_CONFIG_FILES invocation.
1702 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1703 new-style config.status invocation.
1704
405feb71
TV
17052019-10-17 Tom de Vries <tdevries@suse.de>
1706
1707 * arm-nbsd-nat.c: Fix typos in comments.
1708 * arm-tdep.c: Same.
1709 * darwin-nat-info.c: Same.
1710 * dwarf2read.c: Same.
1711 * elfread.c: Same.
1712 * event-top.c: Same.
1713 * findvar.c: Same.
1714 * gdbtypes.c: Same.
1715 * hppa-tdep.c: Same.
1716 * i386-tdep.c: Same.
1717 * jit.c: Same.
1718 * main.c: Same.
1719 * mdebugread.c: Same.
1720 * moxie-tdep.c: Same.
1721 * nto-procfs.c: Same.
1722 * osabi.c: Same.
1723 * ppc-linux-tdep.c: Same.
1724 * remote.c: Same.
1725 * riscv-tdep.c: Same.
1726 * s390-tdep.c: Same.
1727 * sh-tdep.c: Same.
1728 * sparc-linux-tdep.c: Same.
1729 * sparc-nat.c: Same.
1730 * stack.c: Same.
1731 * target-descriptions.c: Same.
1732 * top.c: Same.
1733 * varobj.c: Same.
1734
befcd486
TT
17352019-10-16 Tom Tromey <tom@tromey.com>
1736
1737 * objfiles.h (struct objfile) <original_name>: Now const.
1738
17bfe554
CB
17392019-10-16 Christian Biesinger <cbiesinger@google.com>
1740
1741 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1742 pass on to sigsetjmp's second argument.
1743 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1744
950b7495
KS
17452019-10-16 Keith Seitz <keiths@redhat.com>
1746
1747 PR gdb/23567
1748 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1749 sections whose size is greater than the file size.
1750
ff371ec9
JW
17512019-10-16 Jim Wilson <jimw@sifive.com>
1752
1753 * riscv-tdep.c (riscv_gcc_target_options): New.
1754 (riscv_gnu_triplet_regexp): New.
1755 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1756 set_gdbarch_gnu_triplet_regexp.
1757
fec4e896
CB
17582019-10-16 Christian Biesinger <cbiesinger@google.com>
1759
1760 * Makefile.in: Add xml-builtin.h.
1761 * features/feature_to_c.sh: Add an include for xml-builtin.h
1762 to ensure that the compiler checks that the types match.
1763 * xml-builtin.h: New file.
1764 * xml-support.c (fetch_xml_builtin): Add missing const.
1765 * xml-support.h: Remove declaration of xml_builtins.
1766
d10eccaa
TV
17672019-10-16 Tom de Vries <tdevries@suse.de>
1768
1769 PR tdep/25096
1770 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1771 (amd64_classify_aggregate): ... here.
1772 (amd64_classify_aggregate_field): Handled fiels of nested structs
1773 recursively.
1774
745ff14e
TV
17752019-10-16 Tom de Vries <tdevries@suse.de>
1776
1777 PR tdep/24104
1778 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1779 that handles 'theclass'.
1780
791b7405
AB
17812019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1782
1783 * linespec.c (decode_digits_ordinary): Update comment.
1784 * make-target-delegates: No longer need to handle VEC case.
1785 * memrange.c (normalize_mem_ranges): Update comment.
1786 * namespace.c (add_using_directive): Update comment.
1787 * objc-lang.c (uniquify_strings): Update comment.
1788 * ppc-linux-nat.c (struct thread_points): Update comment.
1789 * probe.h (find_probes_in_objfile): Update comment.
1790 * target.h (enum flash_preserve_mode): Update comment.
1791 * varobj.c (varobj_restrict_range): Update comment.
1792 * varobj.h (varobj_list_children): Update comment.
1793
0dc32745
AB
17942019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1795
1796 * Makefile.in: Remove references to vec.h and vec.c.
1797 * aarch64-tdep.c: No longer include vec.h.
1798 * ada-lang.c: Likewise.
1799 * ada-lang.h: Likewise.
1800 * arm-tdep.c: Likewise.
1801 * ax.h: Likewise.
1802 * breakpoint.h: Likewise.
1803 * charset.c: Likewise.
1804 * cp-support.h: Likewise.
1805 * dtrace-probe.c: Likewise.
1806 * dwarf2read.c: Likewise.
1807 * extension.h: Likewise.
1808 * gdb_bfd.c: Likewise.
1809 * gdbsupport/gdb_vecs.h: Likewise.
1810 * gdbsupport/vec.c: Remove.
1811 * gdbsupport/vec.h: Remove.
1812 * gdbthread.h: Likewise.
1813 * guile/scm-type.c: Likewise.
1814 * inline-frame.c: Likewise.
1815 * machoread.c: Likewise.
1816 * memattr.c: Likewise.
1817 * memrange.h: Likewise.
1818 * namespace.h: Likewise.
1819 * nat/linux-btrace.h: Likewise.
1820 * osdata.c: Likewise.
1821 * parser-defs.h: Likewise.
1822 * progspace.h: Likewise.
1823 * python/py-type.c: Likewise.
1824 * record-btrace.c: Likewise.
1825 * rust-exp.y: Likewise.
1826 * solib-target.c: Likewise.
1827 * stap-probe.c: Likewise.
1828 * target-descriptions.c: Likewise.
1829 * target-memory.c: Likewise.
1830 * target.h: Likewise.
1831 * varobj.c: Likewise.
1832 * varobj.h: Likewise.
1833 * xml-support.h: Likewise.
1834
ae640021
AB
18352019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1836
1837 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1838 Update for new std::vector based implementation.
1839 (process_psymtab_comp_unit_reader): Likewise.
1840 (scan_partial_symbols): Likewise.
1841 (recursively_compute_inclusions): Likewise.
1842 (compute_compunit_symtab_includes): Likewise.
1843 (process_imported_unit_die): Likewise.
1844 (queue_and_load_dwo_tu): Likewise.
1845 (follow_die_sig_1): Likewise.
1846 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1847 (typedef dwarf2_per_cu_ptr): Remove.
1848 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1849 function.
1850 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1851 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1852 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1853 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1854 std::vector.
1855
55dfc88f
TT
18562019-10-15 Tom Tromey <tromey@adacore.com>
1857
1858 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1859 TID.
1860
96b49c5e
TT
18612019-10-15 Tom Tromey <tromey@adacore.com>
1862
1863 * windows-nat.c (windows_nat_target::fetch_registers)
1864 (windows_nat_target::store_registers): Rename "pid" to "tid".
1865
953cff56
TT
18662019-10-15 Tom Tromey <tromey@adacore.com>
1867
1868 * gdbarch.h, gdbarch.c: Rebuild.
1869 * gdbarch.sh (gcc_target_options): Change return type to
1870 std::string.
1871 * compile/compile.c (get_args): Update.
1872 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1873 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1874 std::string.
1875 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1876 std::string.
1877 * arch-utils.c (default_gcc_target_options): Return std::string.
1878 * arch-utils.h (default_gcc_target_options): Return std::string.
1879 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1880
81e6b8eb
CB
18812019-10-15 Christian Biesinger <cbiesinger@google.com>
1882
1883 * breakpoint.c (breakpoint_chain): Make static.
1884 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1885 of accessing breakpoint_chain.
1886
95da600f
CB
18872019-10-15 Christian Biesinger <cbiesinger@google.com>
1888
1889 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1890 to a gdb::function_view and return value to bool.
1891 * breakpoint.h (iterate_over_breakpoints): Likewise.
1892 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1893 (pop_dummy_frame): Update.
1894 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1895 (gdbscm_breakpoints): Update.
1896 * python/py-breakpoint.c (build_bp_list): Update.
1897 (gdbpy_breakpoints): Update.
1898 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1899 Update.
1900 (bpfinishpy_handle_stop): Update.
1901 (bpfinishpy_handle_exit): Update.
1902 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1903 (svr4_update_solib_event_breakpoints): Update.
1904
ba18312d
AA
19052019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1906
1907 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1908 when unwrapping single-field structs.
1909
6acc1a0b
SM
19102019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1911
1912 * dwarf2read.c: Remove includes.
1913
284782de
SM
19142019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1915
1916 * ui-out.c (ui_out::call_do_message): Silence
1917 -Wformat-nonliteral warning.
1918
073bbbb0
SM
19192019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1920
1921 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1922 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1923 include: readline/tilde.h.
1924
7b9a15e1
CB
19252019-10-12 Christian Biesinger <cbiesinger@google.com>
1926
1927 * remote.c (remote_target::get_trace_status): Remove declaration of
1928 trace_regblock_size.
1929
cc8dee1f
CB
19302019-10-12 Christian Biesinger <cbiesinger@google.com>
1931
1932 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1933 (show_user): Remove declaration of cmdlist.
1934 * cli/cli-cmds.h (max_user_call_depth): Declare.
1935 * cli/cli-script.c (execute_user_command): Remove declaration
1936 of max_user_call_depth.
1937
a83d4ef6
JW
19382019-10-11 Jim Wilson <jimw@sifive.com>
1939
5f93c5a6
JW
1940 * gdbsupport/print-utils.h (pulongest): Fix comment.
1941 (plongest): Likewise.
1942 (phex): Add missing comment, mention leading zeros.
1943 (phex_nz): Add mention of no leading zeros to comment.
1944
a83d4ef6
JW
1945 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1946 plongest instead of unsigned long long cast.
1947
26344e0c
CB
19482019-10-10 Christian Biesinger <cbiesinger@google.com>
1949
1950 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1951 for external_editor_command and gdbtk_test.
1952
c2c440a9
CB
19532019-10-10 Christian Biesinger <cbiesinger@google.com>
1954
1955 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1956 * varobj.c (varobjdebug): Move comment to...
1957 * varobj.h (varobjdebug): ...here, and declare.
1958
a31bff9d
TT
19592019-10-09 Tom Tromey <tom@tromey.com>
1960
1961 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1962 erase_data_content.
1963
7523da63
TT
19642019-10-09 Tom Tromey <tom@tromey.com>
1965
1966 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1967 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1968 * tui/tui-command.c (tui_cmd_window::resize)
1969 (tui_refresh_cmd_win): Update.
1970 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1971 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1972 * tui/tui-data.c (~tui_gen_win_info): Remove.
1973 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1974 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1975 (tui_redisplay_readline, tui_mld_flush)
1976 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1977 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1978 (tui_data_window::erase_data_content)
1979 (tui_data_item_window::rerender)
1980 (tui_data_item_window::refresh_window): Update.
1981 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1982 (box_win, tui_gen_win_info::make_window)
1983 (tui_gen_win_info::make_visible): Update.
1984 (tui_delete_win): Remove.
1985 * tui/tui-winsource.c
1986 (tui_source_window_base::do_erase_source_content): Update.
1987 (tui_show_source_line, tui_source_window_base::update_tab_width)
1988 (tui_source_window_base::update_exec_info): Update.
1989 * tui/tui-data.h (struct curses_deleter): New.
1990 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1991 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1992
a7798e7f
TT
19932019-10-09 Tom Tromey <tom@tromey.com>
1994
1995 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1996
5c45899e
TT
19972019-10-09 Tom Tromey <tom@tromey.com>
1998
1999 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2000 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2001
6d7fd9aa
TT
20022019-10-09 Tom Tromey <tom@tromey.com>
2003
2004 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2005 window height directly.
2006 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2007 declare.
2008 * tui/tui-layout.c (tui_default_win_height): Remove.
2009 (tui_default_win_viewport_height): Remove.
2010
d2dd1084
TT
20112019-10-09 Tom Tromey <tom@tromey.com>
2012
2013 * tui/tui.h: Remove comments.
2014
cff32449
TV
20152019-10-09 Tom de Vries <tdevries@suse.de>
2016
2017 * python/lib/gdb/printer/bound_registers.py: Use
2018 '^builtin_type_bound128' as regexp argument for
2019 add_builtin_pretty_printer.
2020
6a25e8a2
CB
20212019-10-09 Christian Biesinger <cbiesinger@google.com>
2022
2023 * guile/guile.c (guile_extension_script_ops): Remove forward
2024 declaration and mark as static.
2025 (guile_script_ops): Likewise.
2026 (extension_language_guile): Move further down in the file so
2027 it can reference the definitions for guile_{extension_,}script_ops.
2028
6d9d6da4
AA
20292019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2030
2031 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2032 except SORTL, DFLTCC, and KDSA.
2033
3abea05d
TT
20342019-10-08 Tom Tromey <tromey@adacore.com>
2035
2036 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2037 (struct safe_symbol_file_add_args): Remove.
2038
dde996e2
TT
20392019-10-08 Tom Tromey <tromey@adacore.com>
2040
2041 * windows-nat.c: Don't include buildsym-legacy.h.
2042
cd6fdaa1
TT
20432019-10-08 Tom Tromey <tromey@adacore.com>
2044
2045 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2046
79bb1944
CB
20472019-10-08 Christian Biesinger <cbiesinger@google.com>
2048
2049 * gdbtypes.c (overload_debug): Move comment to header.
2050 * gdbtypes.h (overload_debug): Declare.
2051 * valops.c: Remove declaration of overload_debug, instead
2052 include gdbtypes.h.
2053
34916edc
CB
20542019-10-08 Christian Biesinger <cbiesinger@google.com>
2055
2056 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2057 through _().
2058 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2059 move comment...
2060 * language.h (lang_frame_mismatch_warn): ... here. Also add
2061 declaration.
2062 * top.c (lang_frame_mismatch_warn): Remove declaration.
2063 (check_frame_language_change): Pass lang_frame_mismatch_warn
2064 through _().
2065
bad5c026
CB
20662019-10-07 Christian Biesinger <cbiesinger@google.com>
2067
2068 * c-lang.h (vtbl_ptr_name): Declare.
2069 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2070 it from the header.
2071 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2072
51f1fdc3
CB
20732019-10-07 Christian Biesinger <cbiesinger@google.com>
2074
2075 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2076 gdb_static_assert.
2077
30d1f018
WP
20782019-10-07 Weimin Pan <weimin.pan@oracle.com>
2079
606813d5
WP
2080 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2081 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
2082 * ctfread.c: New file.
2083 * ctfread.h: New file.
2084 * elfread.c: Include ctfread.h.
2085 (struct elfinfo text_p): New member ctfsect.
2086 (elf_locate_sections): Mark CTF section.
2087 (elf_symfile_read): Call elfctf_build_psymtabs.
2088 * Makefile.in (LIBCTF): Add.
2089 (CLIBS): Use it.
2090 (CDEPS): Likewise.
2091 (DIST): Add ctfread.c.
606813d5
WP
2092
20932019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2094
2095 * ctfread.c (struct nextfield): Renamed to ...
2096 (struct ctf_nextfield): ... this.
2097 (struct field_info): Renamed to ...
2098 (strut ctf_field_info): ... this.
2099 (attach_fields_to_type): Update for renamed structures.
2100 (ctf_add_member_cb): Likewise.
2101 (ctf_add_enum_member_cb): Likewise.
2102 (process_struct_members): Likewise.
2103 (process_enum_type): Likewise.
30d1f018 2104
518fe38c
WP
21052019-10-07 Weimin Pan <weimin.pan@oracle.com>
2106
2107 * tracectf.h: Rename, was ctf.h.
2108 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2109 * tracefile.c: Likewise.
2110 * tracepoint.c: Remove unused include ctf.h.
2111 * mi/mi-main.c: Likewise.
2112 * Makefile.in Replace ctf.c with tracectf.c.
2113
225f296a
JB
21142019-10-06 Joel Brobecker <brobecker@adacore.com>
2115
2116 * version.in: Change version number to "9.0.50.DATE-git".
2117
77c2dba3
TT
21182019-10-03 Tom Tromey <tom@tromey.com>
2119
2120 PR rust/24976:
2121 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2122
179aed7f
AB
21232019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2124
2125 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2126 cp_search_name_hash.
2127 * NEWS: Add entry about nested function support.
2128
0a4b0913
AB
21292019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2130 Andrew Burgess <andrew.burgess@embecosm.com>
2131
2132 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2133 for nested static variables when searchin VAR_DOMAIN.
2134 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2135 global scope, update comment.
2136 (add_partial_subprogram): Call add_partial_subprogram recursively
2137 for nested subroutines when processinng Fortran.
2138 (load_partial_dies): Process the child entities of a subprogram
2139 when processing Fortran.
2140 (partial_die_parent_scope): Handle building scope
2141 for Fortran nested functions.
2142 (process_die): Record that nested functions have a scope.
2143 (new_symbol): Always record Fortran subprograms on the global
2144 symbol list.
2145 (determine_prefix): How to build the prefix for Fortran
2146 subprograms.
2147
d8c06f22
AB
21482019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2149
2150 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2151 have just sent the thread a SIGSTOP and are waiting for it to
2152 arrive.
2153
a8b3b8e9
AB
21542019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2155
2156 * btrace.c (btrace_add_pc): Remove whitespace before the template
2157 parameter in 'std::vector <...>'.
2158 (parse_xml_btrace_block): Likewise.
2159 (btrace_maint_decode_pt): Likewise.
2160 (btrace_maint_update_packets): Likewise.
2161 (btrace_maint_print_packets): Likewise.
2162 * btrace.h (struct btrace_maint_info): Likewise.
2163 * dwarf2read.c (struct type_unit_group): Likewise.
2164 (build_type_psymtabs_reader): Likewise.
2165 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2166 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2167 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2168
4d825eab
TV
21692019-10-03 Tom de Vries <tdevries@suse.de>
2170
2171 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2172 the first line of the help text for set/show style metadata.
2173
80fd2826
TT
21742019-10-02 Tom Tromey <tromey@adacore.com>
2175
2176 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2177 * gdbsupport/common-inferior.c: New file.
2178 * infcmd.c (startup_with_shell): Don't define.
2179 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2180 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2181 * inferior.h (startup_with_shell): Don't declare.
2182
70054538
CB
21832019-10-02 Christian Biesinger <cbiesinger@google.com>
2184
2185 * gdbsupport/gdb_assert.h: Include errors.h.
2186 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2187
37f6a7f4
TT
21882019-10-02 Tom Tromey <tromey@adacore.com>
2189
2190 * NEWS: Add $_ada_exception entry.
2191 * ada-lang.c (struct ada_catchpoint): Add constructor.
2192 <m_kind>: New member.
2193 (allocate_location_exception, re_set_exception): Remove
2194 "ex" parameter.
2195 (should_stop_exception): Compute $_ada_exception.
2196 (check_status_exception, print_it_exception)
2197 (print_one_exception, print_mention_exception): Remove
2198 "ex" parameter.
2199 (allocate_location_catch_exception, re_set_catch_exception)
2200 (check_status_exception, print_it_catch_exception)
2201 (print_one_catch_exception, print_mention_catch_exception)
2202 (print_recreate_catch_exception)
2203 (allocate_location_catch_exception_unhandled)
2204 (re_set_catch_exception_unhandled)
2205 (check_status_exception, print_it_catch_exception_unhandled)
2206 (print_one_catch_exception_unhandled)
2207 (print_mention_catch_exception_unhandled)
2208 (print_recreate_catch_exception_unhandled)
2209 (allocate_location_catch_assert, re_set_catch_assert)
2210 (check_status_assert, print_it_catch_assert)
2211 (print_one_catch_assert, print_mention_catch_assert)
2212 (print_recreate_catch_assert)
2213 (allocate_location_catch_handlers, re_set_catch_handlers)
2214 (check_status_handlers, print_it_catch_handlers)
2215 (print_one_catch_handlers, print_mention_catch_handlers)
2216 (print_recreate_catch_handlers): Remove.
2217 (create_ada_exception_catchpoint): Update.
2218 (initialize_ada_catchpoint_ops): Update.
2219
fccf9de1
TT
22202019-10-02 Tom Tromey <tromey@adacore.com>
2221
2222 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2223 (create_excep_cond_exprs): Simplify exception string computation.
2224 (ada_exception_catchpoint_cond_string): Likewise.
2225
4b610737
TT
22262019-10-02 Tom Tromey <tromey@adacore.com>
2227
2228 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2229 * ada-lang.c (lesseq_defined_than): Handle
2230 LOC_STATIC.
2231 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2232 parameter.
2233 (dwarf2_has_info): Likewise.
2234 (new_symbol): Set maybe_copied on symbol when
2235 appropriate.
2236 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2237 parameter.
2238 <can_copy>: New member.
2239 * elfread.c (record_minimal_symbol): Set maybe_copied
2240 on symbol when appropriate.
2241 (elf_symfile_read): Update call to dwarf2_has_info.
2242 * minsyms.c (lookup_minimal_symbol_linkage): New
2243 function.
2244 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2245 * symtab.c (get_symbol_address, get_msymbol_address):
2246 New functions.
2247 * symtab.h (get_symbol_address, get_msymbol_address):
2248 Declare.
2249 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2250 maybe_copied.
2251 (struct symbol, struct minimal_symbol) <maybe_copied>:
2252 New member.
2253
1dd58850
TT
22542019-10-02 Tom Tromey <tromey@adacore.com>
2255
2256 * source.c (struct current_source_location): New.
2257 (current_source_key): New global.
2258 (current_source_symtab, current_source_line)
2259 (current_source_pspace): Remove.
2260 (get_source_location): New function.
2261 (get_current_source_symtab_and_line)
2262 (set_default_source_symtab_and_line)
2263 (set_current_source_symtab_and_line)
2264 (clear_current_source_symtab_and_line, select_source_symtab)
2265 (info_source_command, print_source_lines_base)
2266 (info_line_command, search_command_helper, _initialize_source):
2267 Update.
2268
5c281dbb
TT
22692019-10-02 Tom Tromey <tromey@adacore.com>
2270
2271 * source.c (select_source_symtab): Don't call
2272 decode_line_with_current_source.
2273
d3d32391
AB
22742019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2275
2276 * symtab.c (lookup_global_symbol): Search global block.
2277
38583298
TT
22782019-10-02 Tom Tromey <tromey@adacore.com>
2279
2280 * coffread.c (process_coff_symbol): Update.
2281 * dwarf2read.c (var_decode_location, new_symbol): Update.
2282 * mdebugread.c (parse_symbol): Update.
2283 * objfiles.c (relocate_one_symbol): Update.
2284 * stabsread.c (define_symbol, fix_common_block)
2285 (scan_file_globals): Update.
2286 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2287 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2288 * xcoffread.c (process_xcoff_symbol): Update.
2289
9344c18f
AA
22902019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2291
2292 * MAINTAINERS: Update my email address.
2293
df07e2c7
AB
22942019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2295
2296 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2297 std::vector.
2298 (build_type_psymtabs_reader): Update for std::vector.
2299 (build_type_psymtab_dependencies): Likewise.
2300 * dwarf2read.h: Remove use of DEF_VEC_P.
2301 (typedef sig_type_ptr): Delete.
2302
554ac434
AB
23032019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2304
2305 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2306 to std::vector.
2307 (btrace_maint_decode_pt): Likewise, and move allocation of the
2308 vector outside of the loop.
2309 (btrace_maint_update_packets): Update to handle change from VEC to
2310 std::vector.
2311 (btrace_maint_print_packets): Likewise.
2312 (maint_info_btrace_cmd): Likewise.
2313 * btrace.h: Remove use of DEF_VEC_O.
2314 (typedef btrace_pt_packet_s): Delete.
2315 (struct btrace_maint_info) <packets>: Change fromm VEC to
2316 std::vector.
2317 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2318
46f29a9a
AB
23192019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2320
2321 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2322 make accesses into the vector constant references.
2323 (btrace_add_pc): Update for std::vector.
2324 (btrace_stitch_bts): Likewise.
2325 (parse_xml_btrace_block): Likewise.
2326 (btrace_maint_update_packets): Likewise.
2327 (btrace_maint_print_packets): Likewise.
2328 (maint_info_btrace_cmd): Likewise.
2329 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2330 std::vector.
2331 (btrace_data::empty): Likewise.
2332 (btrace_data_append): Likewise.
2333 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2334 (typedef btrace_block_s): Delete.
2335 (struct btrace_block): Add constructor.
2336 (struct btrace_data_bts) <blocks>: Change to std::vector.
2337 * nat/linux-btrace.c (perf_event_read_bts): Update for
2338 std::vector.
2339 (linux_read_bts): Likewise.
2340
d770d56f
TT
23412019-10-01 Tom Tromey <tom@tromey.com>
2342
2343 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2344
9d636d67
TT
23452019-10-01 Tom Tromey <tom@tromey.com>
2346
2347 * stack.c (print_frame, info_frame_command_core): Use
2348 styled_string.
2349 * linux-thread-db.c (try_thread_db_load_1)
2350 (try_thread_db_load_from_pdir_1): Use styled_string.
2351 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2352 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2353 (maybe_print_unsupported_script_warning)
2354 (maybe_print_script_not_found_warning): Use styled_string.
2355 * ada-lang.c (user_select_syms): Use styled_string.
2356
7f6aba03
TT
23572019-10-01 Tom Tromey <tom@tromey.com>
2358
2359 * p-lang.c (pascal_printstr): Use metadata style.
2360 * value.c (show_convenience): Use metadata style.
2361 * valprint.c (valprint_check_validity, val_print_optimized_out)
2362 (val_print_not_saved, val_print_unavailable)
2363 (val_print_invalid_address, generic_val_print, val_print)
2364 (value_check_printable, val_print_array_elements): Use metadata
2365 style.
2366 * ui-out.h (class ui_out) <field_fmt>: New overload.
2367 <do_field_fmt>: Add style parameter.
2368 * ui-out.c (ui_out::field_fmt): New overload.
2369 * typeprint.c (type_print_unknown_return_type)
2370 (val_print_not_allocated, val_print_not_associated): Use metadata
2371 style.
2372 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2373 parameter.
2374 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2375 * tracepoint.c (tvariables_info_1): Use metadata style.
2376 * stack.c (print_frame_arg, print_frame_info, print_frame)
2377 (info_frame_command_core): Use metadata style.
2378 * skip.c (info_skip_command): Use metadata style.
2379 * rust-lang.c (rust_print_enum): Use metadata style.
2380 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2381 metadata style.
2382 * python/py-framefilter.c (py_print_single_arg): Use metadata
2383 style.
2384 * printcmd.c (do_one_display, print_variable_and_value): Use
2385 metadata style.
2386 * p-valprint.c (pascal_val_print)
2387 (pascal_object_print_value_fields): Use metadata style.
2388 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2389 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2390 parameter.
2391 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2392 * m2-valprint.c (m2_print_long_set): Use metadata style.
2393 * m2-typeprint.c (m2_print_type): Use metadata style.
2394 * infcmd.c (print_return_value_1): Use metadata style.
2395 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2396 * f-valprint.c (info_common_command_for_block): Use metadata
2397 style.
2398 * f-typeprint.c (f_type_print_base): Use metadata style.
2399 * expprint.c (print_subexp_standard): Use metadata style.
2400 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2401 * cli/cli-style.h (class cli_style_option): Add constructor.
2402 (metadata_style): Declare.
2403 * cli/cli-style.c (metadata_style): New global.
2404 (_initialize_cli_style): Register metadata style.
2405 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2406 parameter.
2407 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2408 * c-typeprint.c (c_type_print_base_struct_union)
2409 (c_type_print_base_1): Use metadata style.
2410 * breakpoint.c (watchpoint_value_print)
2411 (print_one_breakpoint_location): Use metadata style.
2412 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2413 style.
2414 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2415 style.
2416 * ada-valprint.c (val_print_packed_array_elements, printstr)
2417 (print_field_values, ada_val_print_ref, ada_val_print): Use
2418 metadata style.
2419 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2420 style.
2421 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2422 style.
2423 * ada-lang.c (user_select_syms): Use metadata style.
2424
14309bb6
TT
24252019-10-01 Tom Tromey <tom@tromey.com>
2426
2427 * cli/cli-cmds.c (pwd_command): Style output.
2428
6a831f06
PA
24292019-10-01 Pedro Alves <palves@redhat.com>
2430 Tom Tromey <tom@tromey.com>
2431
2432 * symtab.c (print_symbol_info): Use %ps.
2433 (print_msymbol_info): Use %ps.
2434 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2435 * printcmd.c (print_variable_and_value): Use %ps.
2436 * macrocmd.c (show_pp_source_pos): Use %ps.
2437 * infrun.c (print_exited_reason): Use ui_out::message.
2438 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2439 (describe_other_breakpoints): Use ui_out::message and new
2440 formats.
2441 (say_where): Use new formats.
2442 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2443 and new formats.
2444
2a3c1174
PA
24452019-10-01 Pedro Alves <palves@redhat.com>
2446 Tom Tromey <tom@tromey.com>
2447
2448 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2449 (test_gdb_formats): New function.
2450 (run_tests): Call it.
2451 (test_format_specifier): Update.
2452 * utils.h (fputs_filtered): Update comment.
2453 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2454 (fputs_styled_unfiltered): Declare.
2455 * utils.c (fputs_styled_unfiltered): New function.
2456 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2457 (vfprintf_filtered): Update.
2458 (vfprintf_unfiltered, vprintf_filtered): Update.
2459 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2460 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2461 disallow_ui_out_field>: New constants.
2462 (enum class field_kind): New.
2463 (struct base_field_s, struct signed_field_s): New.
2464 (signed_field): New function.
2465 (struct string_field_s): New.
2466 (string_field): New function.
2467 (struct styled_string_s): New.
2468 (styled_string): New function.
2469 (class ui_out) <message>: Add comment.
2470 <vmessage, call_do_message>: New methods.
2471 <do_message>: Add style parameter.
2472 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2473 methods.
2474 (ui_out::message): Rewrite.
2475 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2476 parameter.
2477 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2478 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2479 gdb_extensions parameter.
2480 (class format_piece): Add parameter to constructor.
2481 (n_int_args): New field.
2482 * gdbsupport/format.c (format_pieces::format_pieces): Add
2483 gdb_extensions parameter. Handle '*'.
2484 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2485 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2486 vfprintf_styled_no_gdbfmt.
2487 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2488 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2489 unfiltered output.
2490 * ui-style.h (struct ui_file_style) <ptr>: New method.
2491
0dfe5bfb
TT
24922019-10-01 Tom Tromey <tom@tromey.com>
2493
2494 * unittests/format_pieces-selftests.c: Update. Add final format.
2495 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2496 empty literal pieces.
2497
e43b10e1
TT
24982019-10-01 Tom Tromey <tom@tromey.com>
2499
2500 * ui-out.h (enum class ui_out_style_kind): Remove.
2501 (class ui_out) <field_string, field_stsream, do_field_string>:
2502 Change type of "style".
2503 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2504 (ui_out::field_string): Update.
2505 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2506 of "style".
2507 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2508 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2509 * stack.c (print_frame_arg, print_frame_info, print_frame):
2510 Update.
2511 * source.c (print_source_lines_base): Update.
2512 * solib.c (info_sharedlibrary_command): Update.
2513 * skip.c (info_skip_command): Update.
2514 * record-btrace.c (btrace_call_history_src_line)
2515 (btrace_call_history): Update.
2516 * python/py-framefilter.c (py_print_frame): Update.
2517 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2518 "style".
2519 * mi/mi-out.c (mi_ui_out::do_table_header)
2520 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2521 (mi_ui_out::do_field_string): Update.
2522 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2523 Update.
2524 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2525 "style".
2526 * cli-out.c (cli_ui_out::do_table_header)
2527 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2528 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2529 (cli_ui_out::do_field_fmt): Update.
2530 * breakpoint.c (print_breakpoint_location): Update.
2531 (update_static_tracepoint): Update.
2532
cd7c32c3
PW
25332019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2534
2535 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2536 conversion of gdb_datadir.
2537 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2538 remove not needed c_str ().
2539
8fe0f950
AT
25402019-09-30 Ali Tamur <tamur@google.com>
2541
2542 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2543 (dwarf2_string_attr): Likewise.
2544
5f48f8f3
AT
25452019-09-30 Ali Tamur <tamur@google.com>
2546
2547 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2548 (process_full_type_unit): Likewise.
2549 (dump_die_shallow): Likewise.
2550 (cu_debug_loc_section): Likewise.
2551
6fb08628
CB
25522019-09-28 Christian Biesinger <cbiesinger@google.com>
2553
2554 * minsyms.c (compare_minimal_symbols): Rename to...
2555 (minimal_symbol_is_less_than): ...this, and adjust to STL
2556 conventions (return bool, take arguments as references)
2557 (minimal_symbol_reader::install): Call std::sort instead
2558 of qsort.
2559
c7ee338a
CB
25602019-09-29 Christian Biesinger <cbiesinger@google.com>
2561
2562 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2563 hash and why.
2564 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2565 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2566
703a86c2
SM
25672019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2568
2569 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2570 * psympriv.h (add_psymbol_to_list): Move comment here and update
2571 it.
2572
0df0352a
TV
25732019-09-29 Tom de Vries <tdevries@suse.de>
2574
2575 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2576 Use $tmpdir/$(basename "$output_file").dwz instead of
2577 "${output_file}.dwz".
2578
ad75efa6
SM
25792019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2580
2581 PR gdb/25045
2582 * hppa-linux-nat.c: Include gdbarch.h.
2583
ececd218
CB
25842019-09-26 Christian Biesinger <cbiesinger@google.com>
2585
2586 * blockframe.c (find_pc_partial_function): Change return type to bool.
2587 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2588 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2589 (stub_gnu_ifunc_resolve_name): Likewise.
2590 * symtab.c (compare_filenames_for_search): Likewise.
2591 (compare_glob_filenames_for_search): Likewise.
2592 (matching_obj_sections): Likewise.
2593 (symbol_matches_domain): Likewise.
2594 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2595 (find_line_pc): Change return type to bool.
2596 (find_line_pc_range): Likewise.
2597 (producer_is_realview): Likewise.
2598 * symtab.h (symbol_matches_domain): Likewise.
2599 (find_pc_partial_function): Likewise.
2600 (find_pc_line_pc_range): Likewise.
2601 (in_gnu_ifunc_stub): Likewise.
2602 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2603 (find_line_pc): Likewise.
2604 (find_line_pc_range): Likewise.
2605 (matching_obj_sections): Likewise.
2606 (find_line_symtab): Change out parameter to bool.
2607 (producer_is_realview): Change return type to bool.
2608 (compare_filenames_for_search): Likewise.
2609 (compare_glob_filenames_for_search): Likewise.
2610
27a900b8
TT
26112019-09-26 Tom Tromey <tom@tromey.com>
2612
2613 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2614 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2615 * gdb_usleep.h: Remove.
2616 * gdb_usleep.c: Remove.
2617 * utils.c: Don't include gdb_usleep.h.
2618
5d63b30a
TT
26192019-09-26 Tom Tromey <tromey@adacore.com>
2620
2621 * python/py-type.c (type_to_type_object): Call check_typedef
2622 for stub types.
2623
12904d37
TT
26242019-09-26 Tom Tromey <tom@tromey.com>
2625
2626 * utils.h (initialize_utils): Don't declare.
2627 * top.c (gdb_init): Don't call initialize_utils.
2628 * utils.c (initialize_utils): Remove. Move contents...
2629 (_initialize_utils): ... here.
2630
858f25f0
TT
26312019-09-25 Tom Tromey <tom@tromey.com>
2632
2633 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2634 * utils.h (make_hex_string): Don't declare.
2635 * utils.c (make_hex_string): Remove.
2636
3d435220
TV
26372019-09-24 Tom de Vries <tdevries@suse.de>
2638
2639 PR gdb/23815
2640 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2641 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2642
ddd44b70
DD
26432019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2644
2645 * NEWS: Mention new simulator port for PRU.
2646
f945dedf
CB
26472019-09-23 Christian Biesinger <cbiesinger@google.com>
2648
2649 * ada-exp.y (write_object_remaining): Update.
2650 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2651 and eliminate the static buffer.
2652 (ada_decode_symbol): Update.
2653 (ada_la_decode): Update.
2654 (ada_sniff_from_mangled_name): Update.
2655 (is_valid_name_for_wild_match): Update.
2656 (ada_lookup_name_info::matches): Update and simplify.
2657 (name_matches_regex): Update.
2658 (ada_add_global_exceptions): Update.
2659 * ada-lang.h (ada_decode): Update signature.
2660 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2661 * dwarf-index-write.c (debug_names::insert): Update.
2662
7ab78ccb
SM
26632019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2664
2665 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2666 formatting.
2667
9252448b
SM
26682019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2669
2670 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2671 Change "nonzero" to "true" in documentation.
2672
626ca2c0
CB
26732019-09-20 Christian Biesinger <cbiesinger@google.com>
2674
2675 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2676 (_initialize_darwin_solib): Don't set
2677 darwin_so_ops.lookup_lib_global_symbol.
2678 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2679 set_gdbarch_iterate_over_objfiles_in_search_order.
2680 (elf_lookup_lib_symbol): Rename to...
2681 (svr4_iterate_over_objfiles_in_search_order): this, and update
2682 to iterate semantics.
2683 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2684 * solib.c (solib_global_lookup): Remove.
2685 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2686 (solib_global_lookup): Remove.
2687 * symtab.c (lookup_global_or_static_symbol): Remove call to
2688 solib_global_lookup.
2689
5a3a0d63
JB
26902019-09-20 Joel Brobecker <brobecker@adacore.com>
2691
2692 * NEWS: Move entries about default MI version now being
2693 version 3, and about the GDB/MI fix for multi-location
2694 breakpoints to the "since GDB 8.3" section.
2695
ffea1427
JB
26962019-09-20 Joel Brobecker <brobecker@adacore.com>
2697
2698 GDB 8.3.1 released.
2699
abf516c6
UW
27002019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2701
2702 * NEWS: Mention that Cell/B.E. debugging support was removed.
2703 * MAINTAINERS: Remove spu target.
2704
2705 * config/djgpp/fnchange.lst: Remove entries for removed files.
2706
2707 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2708 spu-multiarch.o, and spu-tdep.o.
2709 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2710 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2711 spu-multiarch.c, and spu-tdep.c.
2712 * spu-linux-nat.c: Remove file.
2713 * spu-multiarch.c: Remove file.
2714 * spu-tdep.c: Remove file.
2715 * spu-tdep.h: Remove file.
2716 * solib-spu.c: Remove file.
2717 * solib-spu.h: Remove file.
2718
2719 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2720 * configure.nat (spu-linux): Remove.
2721 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2722 solib-multiarch.o from gdb_target_obs.
2723 (spu*-*-*): Remove.
2724
2725 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2726 feature flag.
2727 (ppc_linux_no_features): Update.
2728 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2729 Cell/B.E. support.
2730 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2731 (tdesc_powerpc_cell64l): Likewise.
2732 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2733 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2734 Cell/B.E. support.
2735 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2736 Do not include "features/rs6000/powerpc-cell32l.c" or
2737 "features/rs6000/powerpc-cell64l.c".
2738 (ppc_linux_spu_section): Remove.
2739 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2740 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2741 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2742 (ppc_linux_spe_context_lookup): Remove.
2743 (ppc_linux_spe_context_inferior_created): Remove.
2744 (ppc_linux_spe_context_solib_loaded): Remove.
2745 (ppc_linux_spe_context_solib_unloaded): Remove.
2746 (ppc_linux_spe_context): Remove.
2747 (struct ppu2spu_cache): Remove.
2748 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2749 (struct ppu2spu_data): Remove.
2750 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2751 ppu2spu_unwind): Remove.
2752 (ppc_linux_init_abi): Remove Cell/B.E. support.
2753 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2754
2755 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2756 (rs6000/powerpc-cell64l-expedite): Likewise
2757 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2758 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2759 rs6000/powerpc-cell64l.xml.
2760 * features/rs6000/powerpc-cell32l.xml: Remove.
2761 * features/rs6000/powerpc-cell64l.xml: Likewise.
2762 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2763 * features/rs6000/powerpc-cell64l.c: Likewise.
2764 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2765 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2766 * regformats/reg-spu.dat: Remove.
2767
2768 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2769 * corelow.c (struct spuid_list): Remove.
2770 (add_to_spuid_list): Remove.
2771 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2772 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2773 (remote_protocol_features): Remove associated entries.
2774 (_initialize_remote): No longer initialize them.
2775 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2776 * linux-nat.c (SPUFS_MAGIC): Remove.
2777 (linux_proc_xfer_spu): Remove.
2778 (spu_enumerate_spu_ids): Remove.
2779 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2780 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2781 (linux_make_corefile_notes): No longer call it.
2782
2783 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2784 (cooked_write_test): Likewise.
2785
78e8cb91
TT
27862019-09-20 Tom Tromey <tom@tromey.com>
2787
2788 * NEWS: Mention case-sensitivity of TUI commands.
2789 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2790 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2791 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2792
f074b67e
TT
27932019-09-20 Tom Tromey <tom@tromey.com>
2794
2795 * tui/tui-source.c (tui_source_window::set_contents): Use
2796 make_unique_xstrdup.
2797 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2798 make_unique_xstrdup.
2799
63c4bf19
TT
28002019-09-20 Tom Tromey <tom@tromey.com>
2801
2802 * tui/tui-data.c: Remove separator comments.
2803 * tui/tui-layout.c: Remove separator comments.
2804 * tui/tui-win.c: Remove separator comments.
2805 * tui/tui-wingeneral.c: Remove separator comments.
2806
43df9b2f
TT
28072019-09-20 Tom Tromey <tom@tromey.com>
2808
2809 * tui/tui.h (strcat_to_buf): Don't declare.
2810 * tui/tui.c (strcat_to_buf): Remove.
2811
7226433c
TT
28122019-09-20 Tom Tromey <tom@tromey.com>
2813
2814 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2815 from "fullname".
2816 * tui/tui-source.c (tui_source_window::set_contents)
2817 (tui_source_window::location_matches_p)
2818 (tui_source_window::maybe_update): Update.
2819
80df3337
TT
28202019-09-20 Tom Tromey <tom@tromey.com>
2821
2822 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2823 Update.
2824 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2825 prefix.
2826 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2827 (tui_data_window::line_from_reg_element_no)
2828 (tui_data_window::first_reg_element_no_inline)
2829 (tui_data_window::show_registers)
2830 (tui_data_window::show_register_group)
2831 (tui_data_window::display_registers_from)
2832 (tui_data_window::display_registers_from_line)
2833 (tui_data_window::first_data_item_displayed)
2834 (tui_data_window::delete_data_content_windows)
2835 (tui_data_window::erase_data_content)
2836 (tui_data_window::do_scroll_vertical)
2837 (tui_data_window::refresh_window)
2838 (tui_data_window::check_register_values): Update.
2839
9923f347
TT
28402019-09-20 Tom Tromey <tom@tromey.com>
2841
2842 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2843 (struct tui_locator_window) <full_name, proc_name>: Now
2844 std::string.
2845 * tui/tui-stack.c (tui_locator_window::make_status_line)
2846 (tui_locator_window::set_locator_fullname)
2847 (tui_locator_window::set_locator_info): Update.
2848 * tui/tui-source.c (tui_source_window::set_contents)
2849 (tui_source_window::showing_source_p): Update.
2850
b76251ab
TT
28512019-09-20 Tom Tromey <tom@tromey.com>
2852
2853 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2854 Don't call tui_locator_win_info_ptr.
2855
0891be08
TT
28562019-09-20 Tom Tromey <tom@tromey.com>
2857
2858 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2859
1b935acf
TT
28602019-09-20 Tom Tromey <tom@tromey.com>
2861
2862 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2863 height for locator.
2864 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2865 * tui/tui-layout.c (show_source_disasm_command, show_data)
2866 (show_source_or_disasm_and_command): Use 1 as height for locator.
2867
9abd8a65
TT
28682019-09-20 Tom Tromey <tom@tromey.com>
2869
2870 * tui/tui.c (tui_enable): Update.
2871 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2872 Update.
2873 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2874 Update.
2875 * tui/tui-data.c (win_resized): Now bool.
2876 (tui_win_resized): Return bool.
2877 (tui_set_win_resized_to): Accept a bool.
2878
b5457826
TT
28792019-09-20 Tom Tromey <tom@tromey.com>
2880
2881 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2882 Change type of "refresh_values_only".
2883 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2884 type of "refresh_values_only".
2885
6b915f7d
TT
28862019-09-20 Tom Tromey <tom@tromey.com>
2887
2888 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2889 std::string.
2890 (tui_disassemble): Add "pos" parameter.
2891 (tui_disasm_window::set_contents): Simplify.
2892
2ad52f6f
TT
28932019-09-20 Tom Tromey <tom@tromey.com>
2894
2895 * tui/tui-winsource.h (struct tui_source_window_base)
2896 <show_source_content>: Now private.
2897 * tui/tui-winsource.c
2898 (tui_source_window_base::show_source_content): Don't handle empty
2899 content case.
2900
b3b1bde6
TT
29012019-09-20 Tom Tromey <tom@tromey.com>
2902
2903 * tui/tui-layout.c (show_source_disasm_command)
2904 (show_source_or_disasm_and_command): Don't call
2905 show_source_content.
2906
71a25ed2
TT
29072019-09-20 Tom Tromey <tom@tromey.com>
2908
2909 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2910 Declare.
2911 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2912 from tui_make_status_line.
2913 (tui_locator_window::rerender): Update.
2914
f8532154
TT
29152019-09-20 Tom Tromey <tom@tromey.com>
2916
2917 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2918 (tui_locator_window::rerender): Update.
2919
2d81b349
TT
29202019-09-20 Tom Tromey <tom@tromey.com>
2921
2922 * tui/tui-winsource.h (struct tui_source_window_base)
2923 <~tui_source_window_base>: Don't declare.
2924 <fullname>: Remove.
2925 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2926 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2927 member.
2928 * tui/tui-source.c (tui_source_window::set_contents): Update.
2929 (tui_source_window::location_matches_p)
2930 (tui_source_window::maybe_update): Update.
2931
f14bec58
TT
29322019-09-20 Tom Tromey <tom@tromey.com>
2933
2934 * tui/tui-winsource.h (~tui_source_element): Remove.
2935 (tui_source_element): Update.
2936 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2937 * tui/tui-winsource.c (tui_show_source_line): Update.
2938 * tui/tui-source.c (tui_source_window::set_contents): Update.
2939 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2940
78d5933a
TT
29412019-09-20 Tom Tromey <tom@tromey.com>
2942
2943 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2944 declare.
2945 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2946 tui_clear_source_windows_detail.
2947 * tui/tui-winsource.h (struct tui_source_window_base)
2948 <clear_detail>: Don't declare.
2949 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2950 Remove.
2951 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2952
d4207696
TT
29532019-09-20 Tom Tromey <tromey@adacore.com>
2954
2955 PR ada/24919:
2956 * block.c (contained_in): Fix final return value.
2957
00f93c44
AM
29582019-09-20 Alan Modra <amodra@gmail.com>
2959
2960 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2961 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2962 (read_indirect_string_from_dwz): Use bfd accessor.
2963 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2964 * machoread.c (macho_symfile_read_all_oso): Likewise.
2965 * solib.c (solib_bfd_open): Likewise.
2966
e4153ae6
CB
29672019-09-19 Christian Biesinger <cbiesinger@google.com>
2968
2969 * eval.c: Move declaration of overload_resolution to...
2970 * value.h: ...here.
2971
c7ae7675
CB
29722019-09-19 Christian Biesinger <cbiesinger@google.com>
2973
2974 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2975 * arm-linux-tdep.c: Likewise.
2976 * arm-nbsd-nat.c: Likewise.
2977 * arm-tdep.h: Declare arm_apcs_32.
2978 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2979
e86f08d2
CB
29802019-09-19 Christian Biesinger <cbiesinger@google.com>
2981
2982 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2983 * dwarf2read.h: Declare dwarf_always_disassemble.
2984
f64e2f40
TV
29852019-09-19 Tom de Vries <tdevries@suse.de>
2986
2987 PR gdb/25009
2988 * source-cache.c (source_cache::ensure): Catch exception thrown during
2989 construction of the highlighter.
2990
fd361982
AM
29912019-09-18 Alan Modra <amodra@gmail.com>
2992
2993 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2994 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2995 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2996 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2997 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2998 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2999 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3000 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3001 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3002 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3003 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3004 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3005 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3006 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3007 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3008 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3009 * mi/mi-interp.c: Update throughout for bfd section macro and
3010 function changes.
3011 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3012 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3013
11061048
TT
30142019-09-18 Tom Tromey <tom@tromey.com>
3015
3016 * NEWS: Add entry.
3017 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3018 call rl_initialize.
3019 (tui_enable): Do not call rl_initialize.
3020
7a27b85f
CG
30212019-09-18 Christian Groessler <chris@groessler.org>
3022
3023 * alpha-linux-nat.c: Include gdbarch.h.
3024
f64eea3a
SM
30252019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3026
3027 * ui-file.c: Include cli/cli-style.h.
3028 (term_cli_styling): Remove cli_styling declaration.
3029
e6f7f6d1
AM
30302019-09-18 Alan Modra <amodra@gmail.com>
3031
3032 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3033 to bfd_asymbol_section.
3034
1d38e9d1
AM
30352019-09-18 Alan Modra <amodra@gmail.com>
3036
3037 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3038 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3039 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3040
90d92a63
AM
30412019-09-18 Alan Modra <amodra@gmail.com>
3042
3043 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3044 * spu-linux-nat.c (spu_bfd_open): Likewise.
3045
a3d181d2
CB
30462019-09-18 Christian Biesinger <cbiesinger@google.com>
3047
3048 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3049 to bool to match definition in dwarf2read.c.
3050
491144b5
CB
30512019-09-17 Christian Biesinger <cbiesinger@google.com>
3052
3053 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3054 (print_signatures): Likewise.
3055 (trust_pad_over_xvs): Likewise.
3056 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3057 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3058 * arm-linux-nat.c (arm_apcs_32): Likewise.
3059 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3060 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3061 * arm-tdep.c (arm_debug): Likewise.
3062 (arm_apcs_32): Likewise.
3063 * auto-load.c (debug_auto_load): Likewise.
3064 (auto_load_gdb_scripts): Likewise.
3065 (global_auto_load): Likewise.
3066 (auto_load_local_gdbinit): Likewise.
3067 (auto_load_local_gdbinit_loaded): Likewise.
3068 * auto-load.h (global_auto_load): Likewise.
3069 (auto_load_local_gdbinit): Likewise.
3070 (auto_load_local_gdbinit_loaded): Likewise.
3071 * breakpoint.c (disconnected_dprintf): Likewise.
3072 (breakpoint_proceeded): Likewise.
3073 (automatic_hardware_breakpoints): Likewise.
3074 (always_inserted_mode): Likewise.
3075 (target_exact_watchpoints): Likewise.
3076 (_initialize_breakpoint): Update.
3077 * breakpoint.h (target_exact_watchpoints): Change to bool.
3078 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3079 * cli/cli-cmds.c (trace_commands): Likewise.
3080 * cli/cli-cmds.h (trace_commands): Likewise.
3081 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3082 to bool*.
3083 * cli/cli-logging.c (logging_overwrite): Change to bool.
3084 (logging_redirect): Likewise.
3085 (debug_redirect): Likewise.
3086 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3087 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3088 to bool.
3089 <boolean_option_def>: Update.
3090 (struct flag_option_def): Change default type of Context to bool
3091 from int.
3092 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3093 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3094 (get_setshow_command_value_string): Likewise.
3095 * cli/cli-style.c (cli_styling): Change to bool.
3096 (source_styling): Likewise.
3097 * cli/cli-style.h (source_styling): Likewise.
3098 (cli_styling): Likewise.
3099 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3100 to bool.
3101 * command.h (var_types): Update comment.
3102 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3103 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3104 bool.
3105 (debug_compile_cplus_scopes): Likewise.
3106 * compile/compile-internal.h (compile_debug): Likewise.
3107 * compile/compile.c (compile_debug): Likewise.
3108 (struct compile_options) <raw>: Likewise.
3109 * cp-support.c (catch_demangler_crashes): Likewise.
3110 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3111 (usr_cmd_cris_dwarf2_cfi): Likewise.
3112 * csky-tdep.c (csky_debug): Likewise.
3113 * darwin-nat.c (enable_mach_exceptions): Likewise.
3114 * dcache.c (dcache_enabled_p): Likewise.
3115 * defs.h (info_verbose): Likewise.
3116 * demangle.c (demangle): Likewise.
3117 (asm_demangle): Likewise.
3118 * dwarf-index-cache.c (debug_index_cache): Likewise.
3119 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3120 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3121 * dwarf2read.c (check_physname): Likewise.
3122 (use_deprecated_index_sections): Likewise.
3123 (dwarf_always_disassemble): Likewise.
3124 * eval.c (overload_resolution): Likewise.
3125 * event-top.c (set_editing_cmd_var): Likewise.
3126 (exec_done_display_p): Likewise.
3127 * event-top.h (set_editing_cmd_var): Likewise.
3128 (exec_done_display_p): Likewise.
3129 * exec.c (write_files): Likewise.
3130 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3131 (debug_fbsd_nat): Likewise.
3132 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3133 Likewise.
3134 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3135 <backtrace_past_entry> Likewise.
3136 * gdb-demangle.h (demangle): Likewise.
3137 (asm_demangle): Likewise.
3138 * gdb_bfd.c (bfd_sharing): Likewise.
3139 * gdbcore.h (write_files): Likewise.
3140 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3141 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3142 * gdbthread.h (print_thread_events): Likewise.
3143 * gdbtypes.c (opaque_type_resolution): Likewise.
3144 (strict_type_checking): Likewise.
3145 * gnu-nat.c (gnu_debug_flag): Likewise.
3146 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3147 * guile/scm-param.c (pascm_variable): Add boolval.
3148 (add_setshow_generic): Update.
3149 (pascm_param_value): Update.
3150 (pascm_set_param_value_x): Update.
3151 * hppa-tdep.c (hppa_debug): Change to bool..
3152 * infcall.c (may_call_functions_p): Likewise.
3153 (coerce_float_to_double_p): Likewise.
3154 (unwind_on_signal_p): Likewise.
3155 (unwind_on_terminating_exception_p): Likewise.
3156 * infcmd.c (startup_with_shell): Likewise.
3157 * inferior.c (print_inferior_events): Likewise.
3158 * inferior.h (startup_with_shell): Likewise.
3159 (print_inferior_events): Likewise.
3160 * infrun.c (step_stop_if_no_debug): Likewise.
3161 (detach_fork): Likewise.
3162 (debug_displaced): Likewise.
3163 (disable_randomization): Likewise.
3164 (non_stop): Likewise.
3165 (non_stop_1): Likewise.
3166 (observer_mode): Likewise.
3167 (observer_mode_1): Likewise.
3168 (set_observer_mode): Update.
3169 (sched_multi): Change to bool.
3170 * infrun.h (debug_displaced): Likewise.
3171 (sched_multi): Likewise.
3172 (step_stop_if_no_debug): Likewise.
3173 (non_stop): Likewise.
3174 (disable_randomization): Likewise.
3175 * linux-tdep.c (use_coredump_filter): Likewise.
3176 (dump_excluded_mappings): Likewise.
3177 * linux-thread-db.c (auto_load_thread_db): Likewise.
3178 (check_thread_db_on_load): Likewise.
3179 * main.c (captured_main_1): Update.
3180 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3181 xx2_opt, boolean_opt>: Change to bool.
3182 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3183 * maint.c (maintenance_profile_p): Likewise.
3184 (per_command_time): Likewise.
3185 (per_command_space): Likewise.
3186 (per_command_symtab): Likewise.
3187 * memattr.c (inaccessible_by_default): Likewise.
3188 * mi/mi-main.c (mi_async): Likewise.
3189 (mi_async_1): Likewise.
3190 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3191 * nat/fork-inferior.h (startup_with_shell): Likewise.
3192 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3193 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3194 * nios2-tdep.c (nios2_debug): Likewise.
3195 * or1k-tdep.c (or1k_debug): Likewise.
3196 * parse.c (parser_debug): Likewise.
3197 * parser-defs.h (parser_debug): Likewise.
3198 * printcmd.c (print_symbol_filename): Likewise.
3199 * proc-api.c (procfs_trace): Likewise.
3200 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3201 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3202 (set_parameter_value): Update.
3203 (add_setshow_generic): Update.
3204 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3205 to bool*.
3206 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3207 int*.
3208 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3209 * record-btrace.c (record_btrace_target::store_registers): Update.
3210 * record-full.c (record_full_memory_query): Change to bool.
3211 (record_full_stop_at_limit): Likewise.
3212 * record-full.h (record_full_memory_query): Likewise.
3213 * remote-notif.c (notif_debug): Likewise.
3214 * remote-notif.h (notif_debug): Likewise.
3215 * remote.c (use_range_stepping): Likewise.
3216 (interrupt_on_connect): Likewise.
3217 (remote_break): Likewise.
3218 * ser-tcp.c (tcp_auto_retry): Likewise.
3219 * ser-unix.c (serial_hwflow): Likewise.
3220 * skip.c (debug_skip): Likewise.
3221 * solib-aix.c (solib_aix_debug): Likewise.
3222 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3223 (spu_auto_flush_cache_p): Likewise.
3224 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3225 Likewise.
3226 (struct info_print_options) <quiet>: Likewise.
3227 * symfile-debug.c (debug_symfile): Likewise.
3228 * symfile.c (auto_solib_add): Likewise.
3229 (separate_debug_file_debug): Likewise.
3230 * symfile.h (auto_solib_add): Likewise.
3231 (separate_debug_file_debug): Likewise.
3232 * symtab.c (basenames_may_differ): Likewise.
3233 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3234 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3235 (struct info_types_options) <quiet>: Likewise.
3236 * symtab.h (demangle): Likewise.
3237 (basenames_may_differ): Likewise.
3238 * target-dcache.c (stack_cache_enabled_1): Likewise.
3239 (code_cache_enabled_1): Likewise.
3240 * target.c (trust_readonly): Likewise.
3241 (may_write_registers): Likewise.
3242 (may_write_memory): Likewise.
3243 (may_insert_breakpoints): Likewise.
3244 (may_insert_tracepoints): Likewise.
3245 (may_insert_fast_tracepoints): Likewise.
3246 (may_stop): Likewise.
3247 (auto_connect_native_target): Likewise.
3248 (target_stop_and_wait): Update.
3249 (target_async_permitted): Change to bool.
3250 (target_async_permitted_1): Likewise.
3251 (may_write_registers_1): Likewise.
3252 (may_write_memory_1): Likewise.
3253 (may_insert_breakpoints_1): Likewise.
3254 (may_insert_tracepoints_1): Likewise.
3255 (may_insert_fast_tracepoints_1): Likewise.
3256 (may_stop_1): Likewise.
3257 * target.h (target_async_permitted): Likewise.
3258 (may_write_registers): Likewise.
3259 (may_write_memory): Likewise.
3260 (may_insert_breakpoints): Likewise.
3261 (may_insert_tracepoints): Likewise.
3262 (may_insert_fast_tracepoints): Likewise.
3263 (may_stop): Likewise.
3264 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3265 (make_thread_apply_all_options_def_group): Change argument from int*
3266 to bool*.
3267 (thread_apply_all_command): Update.
3268 (print_thread_events): Change to bool.
3269 * top.c (confirm): Likewise.
3270 (command_editing_p): Likewise.
3271 (history_expansion_p): Likewise.
3272 (write_history_p): Likewise.
3273 (info_verbose): Likewise.
3274 * top.h (confirm): Likewise.
3275 (history_expansion_p): Likewise.
3276 * tracepoint.c (disconnected_tracing): Likewise.
3277 (circular_trace_buffer): Likewise.
3278 * typeprint.c (print_methods): Likewise.
3279 (print_typedefs): Likewise.
3280 * utils.c (debug_timestamp): Likewise.
3281 (sevenbit_strings): Likewise.
3282 (pagination_enabled): Likewise.
3283 * utils.h (sevenbit_strings): Likewise.
3284 (pagination_enabled): Likewise.
3285 * valops.c (overload_resolution): Likewise.
3286 * valprint.h (struct value_print_options) <prettyformat_arrays,
3287 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3288 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3289 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3290 Likewise.
3291 * windows-nat.c (new_console): Likewise.
3292 (cygwin_exceptions): Likewise.
3293 (new_group): Likewise.
3294 (debug_exec): Likewise.
3295 (debug_events): Likewise.
3296 (debug_memory): Likewise.
3297 (debug_exceptions): Likewise.
3298 (useshell): Likewise.
3299 * windows-tdep.c (maint_display_all_tib): Likewise.
3300 * xml-support.c (debug_xml): Likewise.
3301
f1b620e9
MG
33022019-09-17 Mike Gulick <mgulick@mathworks.com>
3303
3304 * source.c (prepare_path_for_appending): New function.
3305 (openp): Make use of new function.
3306 (find_and_open_source): Search for the compilation directory and
3307 source file as a relative path beneath the directory search path.
3308
67f3ed6a
AB
33092019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3310
3311 * source-cache.c (source_cache::get_line_charpos): Catch
3312 exceptions and return false, this matches the behaviour documented
3313 in the header file.
3314
74332189
JB
33152019-09-17 Joel Brobecker <brobecker@adacore.com>
3316
3317 * ada-tasks.c (info_task): Remove quoting of the task's name.
3318
f2f24aa9
CB
33192019-09-16 Christian Biesinger <cbiesinger@google.com>
3320
3321 * symfile.c (auto_solib_add): Replace comment with a reference
3322 to the header file.
3323
6a062a93
CB
33242019-09-14 Christian Biesinger <cbiesinger@google.com>
3325
3326 * NEWS: Mention that gdb can now be compiled with Python 3
3327 on Windows.
3328
ec6c8338
AB
33292019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3330
3331 * maint.c (maint_print_section_data::maint_print_section_data):
3332 Force use of 'float log10 (float)' by casting the argument to
3333 float.
3334
aa17805f
AB
33352019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3336
3337 * maint.c: Add 'cmath' include.
3338 (struct maint_print_section_data): New structure.
3339 (print_section_index): New function.
3340 (print_bfd_section_info): Add header comment, small whitespace
3341 cleanup, and update to call new print_section_index function.
3342 (print_objfile_section_info): Likewise.
3343 (maint_obj_section_from_bfd_section): New function.
3344 (print_bfd_section_info_maybe_relocated): New function.
3345 (maintenance_info_sections): Add header comment, always use
3346 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3347
3dd9bb46
AB
33482019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3349
3350 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3351 inner scope, add check that the objfile has psymtabs before
3352 checking psymtabs_addrmap.
3353 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3354
4993045d
PW
33552019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3356
3357 * NEWS: Announce that Ada task names are now shown at more places,
3358 and between quotes (except in info task output).
3359 * gdb/ada-tasks.c (task_to_str): New function.
3360 (display_current_task_id): Call task_to_str.
3361 (task_command_1): Likewise.
3362 (print_ada_task_info): In non-mi mode, Properly align headers and data
3363 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3364
7a289707
RO
33652019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3366
3367 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3368 prstatus.pr_lwp.pr_info instead of making it up.
3369
f2aec7f6
CB
33702019-09-11 Christian Biesinger <cbiesinger@google.com>
3371
3372 * auto-load.c (auto_load_expand_dir_vars): Update.
3373 * defs.h (gdb_datadir): Change to std::string.
3374 (python_libdir): Likewise.
3375 (relocate_gdb_directory): Change return type to std::string.
3376 * guile/guile.c (gdbscm_data_directory): Update.
3377 (initialize_scheme_side): Update.
3378 * jit.c (jit_reader_dir): Change to std::string.
3379 (jit_reader_load_command): Update.
3380 * main.c (gdb_datadir): Change to std::string.
3381 (python_libdir): Likewise.
3382 (set_gdb_data_directory): Update.
3383 (relocate_path): Change to return std::string.
3384 (relocate_gdb_directory): Change to return std::string.
3385 (relocate_gdbinit_path_maybe_in_datadir): Update.
3386 (captured_main_1): Update.
3387 * python/python.c (do_start_initialization): Update.
3388 * top.c (show_gdb_datadir): Update.
3389 * xml-syscall.c (xml_init_syscalls_info): Update.
3390 (init_syscalls_info): Update.
3391
9224a013
CB
33922019-09-11 Christian Biesinger <cbiesinger@google.com>
3393
3394 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3395 out of get_init_files.
3396 (get_init_files): Update.
3397
f48cd836
CB
33982019-09-11 Christian Biesinger <cbiesinger@google.com>
3399
3400 * main.c (get_init_files): Change to use std::string.
3401 (captured_main_1): Update.
3402 (print_gdb_help): Update.
3403
9cab7ecd
AT
34042019-09-11 Ali Tamur <tamur@google.com>
3405
3406 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3407 implementation.
3408
67547d89
CB
34092019-09-11 Christian Biesinger <cbiesinger@google.com>
3410
3411 * dbxread.c (read_dbx_symtab): Update.
3412 * dwarf2read.c (load_partial_dies): Update.
3413 * mdebugread.c (parse_partial_symbols): Update.
3414 (handle_psymbol_enumerators): Update.
3415 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3416 * psymtab.c (add_psymbol_to_bcache): Likewise.
3417 (add_psymbol_to_list): Likewise.
3418 * symtab.c (symbol_set_names): Likewise.
3419 * symtab.h (symbol_set_names): Likewise.
3420 * xcoffread.c (scan_xcoff_symtab): Update.
3421
64b2d4a0
TT
34222019-09-11 Tom Tromey <tom@tromey.com>
3423
3424 * symfile-mem.c (symbol_file_add_from_memory): Use
3425 bfd_set_filename.
3426 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3427 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3428
3b00ef10
TT
34292019-09-10 Tom Tromey <tromey@adacore.com>
3430
3431 * dwarf-index-write.c (write_psymbols): Extend error message.
3432 (debug_names::insert): Add Ada code.
3433 (debug_names::write_psymbols): Remove Ada check.
3434 (debug_names) <m_string_obstack>: New member.
3435 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3436 (gdb_index_symbol_name_matcher::matches): Remove.
3437 (mapped_index_base::find_name_components_bounds): Add "lang"
3438 parameter.
3439 (mapped_index_base::build_name_components): Also split names
3440 according to Ada syntax.
3441 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3442 type of "match_callback".
3443 (check_match, check_find_bounds_finds)
3444 (dw2_expand_symtabs_matching): Update.
3445 (dw2_debug_names_iterator): Add new constructor.
3446 (dw2_debug_names_map_matching_symbols): New function.
3447 (dw2_debug_names_expand_symtabs_matching): Update.
3448 (dwarf2_debug_names_functions): Use
3449 dw2_debug_names_map_matching_symbols.
3450
aa391654
TT
34512019-09-10 Tom Tromey <tromey@adacore.com>
3452
3453 * dwarf2read.c (dw2_get_file_names_reader): Add the
3454 CU's file name to the results.
3455
b054970d
TT
34562019-09-10 Tom Tromey <tromey@adacore.com>
3457
3458 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3459 map_matching_symbols. Update.
3460 * dwarf2read.c (dw2_map_matching_symbols): Update.
3461 * psymtab.c (match_partial_symbol): Change type; update.
3462 (psym_map_matching_symbols): Likewise.
3463 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3464 type; update.
3465 * symfile.h (struct quick_symbol_functions)
3466 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3467 Remove "match".
3468
6a3dbf1b
TT
34692019-09-10 Tom Tromey <tromey@adacore.com>
3470
3471 * psymtab.c (map_block): Remove.
3472 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3473 * symtab.c (iterate_over_symbols_terminated): New function.
3474 * symtab.c (iterate_over_symbols_terminated): Declare.
3475
6969f124
TT
34762019-09-10 Tom Tromey <tromey@adacore.com>
3477
3478 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3479 * language.h (struct language_defn) <la_iterate_over_symbols>:
3480 Return bool.
3481 * symtab.c (iterate_over_symbols): Return bool.
3482 * symtab.h (iterate_over_symbols): Return bool.
3483
199b4314
TT
34842019-09-10 Tom Tromey <tromey@adacore.com>
3485
3486 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3487 (add_nonlocal_symbols): Update.
3488 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3489 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3490 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3491 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3492 Change type of "callback". Remove "data".
3493
a084a2a6
AT
3494
34952019-09-09 Ali Tamur <tamur@google.com>
3496
3497 * dwarf2read.c (comp_unit_head): Update comment.
3498 (dwarf2_dwo_name): New function declaration.
3499 (dwarf_unit_type_name): New function declaration.
3500 (read_comp_unit_head): Add support for new compilation units,
3501 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3502 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3503 (currently named as "signature") in their header. Also clarify error
3504 messages.
3505 (lookup_dwo_id): New function. Returns the dwo id of the given
3506 compile unit.
3507 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3508 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3509 functions.
3510 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3511 (dwarf2_dwo_name): Get the dwo name if present.
3512 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3513 purposes.
3514
25a2915e
TT
35152019-09-09 Tom Tromey <tom@tromey.com>
3516
3517 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3518
e4df0874
PW
35192019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3520
3521 * python/python.c (do_start_initialization): Make progname_copy static,
3522 to avoid a leak report.
3523
8634b462
TT
35242019-09-08 Tom Tromey <tom@tromey.com>
3525
3526 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3527
c7f839cb
SM
35282019-09-07 Simon Marchi <simon.marchi@efficios.com>
3529
3530 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3531 Change type to gdb::optional<block_enum>.
3532 (dw2_symtab_iter_init): Change block_index parameter type
3533 to gdb::optional<block_enum>.
3534 (dw2_lookup_symbol): Change block_index parameter
3535 type to block_enum.c
3536 (dw2_debug_names_lookup_symbol): Likewise.
3537 * psymtab.c (psym_lookup_symbol): Likewise.
3538 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3539 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3540 Likewise.
3541
ead0e69a
CB
35422019-09-06 Christian Biesinger <cbiesinger@google.com>
3543
3544 * defs.h (relocate_gdb_directory): Change int to bool in
3545 signature and rename flag to relocatable.
3546 * main.c (relocate_path): Likewise.
3547 (relocate_gdb_directory): Likewise.
3548
b16c44de
AM
35492019-09-06 Alan Modra <amodra@gmail.com>
3550
3551 * coffread.c (coff_symfile_read): Constify filename variable.
3552 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3553 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3554 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3555 * solib.c (reload_shared_libraries_1): Likewise.
3556 * symfile.c (reread_symbols): Likewise.
3557 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3558 * solib-darwin.c (darwin_bfd_open): Likewise.
3559 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3560
06ff036e
AB
35612019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3562
3563 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3564 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3565
4e962e74
TT
35662019-09-03 Tom Tromey <tromey@adacore.com>
3567
3568 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3569 types.
3570 (has_negatives): Unbias a range type bound.
3571 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3572 * gdbtypes.c (operator==): Handle new field.
3573 (create_range_type): Add "bias" parameter.
3574 (create_static_range_type, resolve_dynamic_range): Update.
3575 * gdbtypes.h (struct range_bounds) <bias>: New member.
3576 (create_range_type): Add bias parameter.
3577 * printcmd.c (print_scalar_formatted): Unbias range types.
3578 * value.c (unpack_long): Unbias range types.
3579 (pack_long): Bias range types.
3580
d90b8f26
AH
35812019-09-02 Alan Hayward <alan.hayward@arm.com>
3582
3583 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3584 probe arguments.
3585
fe01123e
AH
35862019-09-02 Alan Hayward <alan.hayward@arm.com>
3587
3588 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3589 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3590 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3591 (compile_probe_arg): Likewise.
3592 * probe.h (get_argument_count): Likewise.
3593 * solib-svr4.c (solib_event_probe_action): Likewise.
3594 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3595
e661ef01
AH
35962019-09-02 Alan Hayward <alan.hayward@arm.com>
3597
3598 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3599 code to here...
3600 (svr4_create_solib_event_breakpoints): ...from here.
3601
47a536d9
SDJ
36022019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3603
3604 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3605 suffix from warning message.
3606
d6a00eba
TT
36072019-08-30 Tom Tromey <tom@tromey.com>
3608
3609 * tui/tui-winsource.h (struct tui_source_window_base)
3610 <refresh_all>: Don't declare.
3611 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3612 Remove.
3613 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3614 tui_show_locator_content.
3615 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3616 declare.
3617 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3618 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3619 declare.
3620
55b2657b
TT
36212019-08-30 Tom Tromey <tom@tromey.com>
3622
3623 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3624
12a8555a
TT
36252019-08-30 Tom Tromey <tom@tromey.com>
3626
3627 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3628 Remove unnecessary forward declarations.
3629
900ac242
TT
36302019-08-30 Tom Tromey <tom@tromey.com>
3631
3632 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3633 rerender.
3634 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3635 tui_show_locator_content.
3636
99ab33fb
TT
36372019-08-30 Tom Tromey <tom@tromey.com>
3638
3639 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3640 (tui_locator_window::rerender): Rewrite using body of previous
3641 tui_show_locator_content.
3642
e594a5d1
TT
36432019-08-30 Tom Tromey <tom@tromey.com>
3644
3645 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3646 set_locator_fullname>: New methods.
3647 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3648 Rename from tui_set_locator_fullname.
3649 (tui_locator_window::set_locator_info): Rename from
3650 tui_set_locator_info. Return bool.
3651 (tui_update_locator_fullname, tui_show_frame_info): Update.
3652
715bb467
TT
36532019-08-30 Tom Tromey <tom@tromey.com>
3654
3655 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3656
772f3f03
TT
36572019-08-30 Tom Tromey <tom@tromey.com>
3658
3659 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3660 call touchwin.
3661
108e13ab
TT
36622019-08-30 Tom Tromey <tom@tromey.com>
3663
3664 * tui/tui-wingeneral.c (box_win): Assume win_info and
3665 win_info->handle cannot be NULL.
3666
cdaa6eb4
TT
36672019-08-30 Tom Tromey <tom@tromey.com>
3668
3669 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3670 refresh_window>: Declare.
3671 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3672 resize.
3673 (tui_data_item_window::rerender): Rename from
3674 tui_display_register.
3675 (tui_data_item_window::refresh_window): New method.
3676 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3677 no-op.
3678
89df7f90
TT
36792019-08-30 Tom Tromey <tom@tromey.com>
3680
3681 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3682 regs_column_count, current_group>: Move later. Now private.
3683 <get_current_group>: New method.
3684 * tui/tui-regs.c (tui_reg_command): Update.
3685 * tui/tui-layout.c (tui_set_layout): Update.
3686
1bf2866a
TT
36872019-08-30 Tom Tromey <tom@tromey.com>
3688
3689 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3690 (tui_data_window::rerender): Don't call
3691 check_and_display_highlight_if_needed.
3692 (tui_data_window::refresh_all): Remove call to
3693 erase_data_content.
3694
0670413d
TT
36952019-08-30 Tom Tromey <tom@tromey.com>
3696
3697 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3698 (tui_data_window::display_registers_from)
3699 (tui_data_window::display_reg_element_at_line)
3700 (tui_data_window::display_registers_from_line): Remove checks of
3701 "empty".
3702
18bb55c7
TT
37032019-08-30 Tom Tromey <tom@tromey.com>
3704
3705 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3706 Don't declare.
3707 * tui/tui-regs.c (tui_data_window::show_registers): Call
3708 rerender.
3709 (tui_data_window::rerender): Rename from display_all_data.
3710 (tui_data_window::rerender): Remove old implementation.
3711
1f6d2f10
TT
37122019-08-30 Tom Tromey <tom@tromey.com>
3713
3714 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3715 text.
3716 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3717
16d01f9c
BW
37182019-08-29 Bernhard Wodok <barto@gmx.net>
3719 Sergio Durigan Junior <sergiodj@redhat.com>
3720
3721 PR win32/24284
3722 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3723
d8f27c60
AB
37242019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3725
3726 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3727 when searching for types.
3728
1f20c35e
AB
37292019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3730
3731 * f-lang.c (f_language_defn): Use f_print_typedef.
3732 * f-lang.h (f_print_typedef): Declare.
3733 * f-typeprint.c (f_print_typedef): Define.
3734
550105b7
CB
37352019-08-27 Christian Biesinger <cbiesinger@google.com>
3736
3737 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3738
4acfdd20
AB
37392019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3740
3741 * cli/cli-utils.c (info_print_options_defs): Delete.
3742 (make_info_print_options_def_group): Delete.
3743 (extract_info_print_options): Delete.
3744 (info_print_command_completer): Delete.
3745 (info_print_args_help): Add extra parameter, and optionally
3746 include text about -n flag.
3747 * cli/cli-utils.h (struct info_print_options): Delete.
3748 (extract_info_print_options): Delete declaration.
3749 (info_print_command_completer): Delete declaration.
3750 (info_print_args_help): Add extra parameter, extend header
3751 comment.
3752 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3753 search_symbols.
3754 * stack.c (struct info_print_options): New type.
3755 (info_print_options_defs): New file scoped variable.
3756 (make_info_print_options_def_group): New static function.
3757 (info_print_command_completer): New static function.
3758 (info_locals_command): Update to use new local functions.
3759 (info_args_command): Likewise.
3760 (_initialize_stack): Add extra parameter to calls to
3761 info_print_args_help.
3762 * symtab.c (search_symbols): Add extra parameter, use this to
3763 possibly excluse non-debug symbols.
3764 (symtab_symbol_info): Add extra parameter, which is passed on to
3765 search_symbols.
3766 (struct info_print_options): New type.
3767 (info_print_options_defs): New file scoped variable.
3768 (make_info_print_options_def_group): New static function.
3769 (info_print_command_completer): New static function.
3770 (info_variables_command): Update to use local functions, and pass
3771 extra parameter through to symtab_symbol_info.
3772 (info_functions_command): Likewise.
3773 (info_types_command): Pass additional argument through to
3774 symtab_symbol_info.
3775 (rbreak_command): Pass extra argument to search_symbols.
3776 (_initialize_symtab): Add extra arguments for calls to
3777 info_print_args_help, and update help text for 'info variables',
3778 'whereis', and 'info functions' commands.
3779 * symtab.h (search_symbols): Add extra argument to declaration.
3780 * NEWS: Mention new flags.
3781
9aa55206
CB
37822019-08-26 Christian Biesinger <cbiesinger@google.com>
3783
3784 * symtab.c (lookup_static_symbol): Call the new function (and move
3785 it down to be next to lookup_global_symbol).
3786 (struct global_sym_lookup_data): Add block_enum member and rename to...
3787 (struct global_or_static_sym_lookup_data): ...this.
3788 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3789 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3790 (lookup_symbol_global_or_static_iterator_cb): ...this.
3791 (lookup_global_or_static_symbol): New function.
3792 (lookup_global_symbol): Call new function.
3793
5c31b358
TV
37942019-08-26 Tom de Vries <tdevries@suse.de>
3795
3796 PR c++/24852
3797 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3798 when pc_probe.prob == NULL.
3799
23c13d42
SM
38002019-08-25 Simon Marchi <simon.marchi@efficios.com>
3801
3802 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3803 variable symbol_linkage to symbol_linkage_.
3804
beadd3e8
SM
38052019-08-25 Simon Marchi <simon.marchi@efficios.com>
3806
3807 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3808 represent whether the symbol is static, dynamic, or we don't
3809 know.
3810
e3ec872f
YS
38112019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3812
3813 * gdb/rx-tdep.c (rx_register_names): New.
3814 (rx_register_name): Delete.
3815 (rx_psw_type): Delete.
3816 (rx_fpsw_type): Delete.
3817 (rx_register_type): Delete.
3818 (rx_gdbarch_init): Convert target-descriptions.
3819 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3820 * gdb/features/Makefile: Add rx.xml.
3821 * gdb/features/rx.xml: New.
3822 * gdb/features/rx.c: Generated.
3823 * gdb/NEWS: Mention target description support.
3824
d0509ba4
CB
38252019-08-22 Christian Biesinger <cbiesinger@google.com>
3826
3827 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3828 *slot_ptr.
3829
2d41fa11
SDJ
38302019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3831
3832 * configure.ac: Don't check for 'dlfcn.h' (moved to
3833 gdbsupport/common.m4).
3834 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3835 'gdbsupport/'.
3836 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3837 * compile/compile-c-support.c: Include
3838 'gdbsupport/gdb-dlfcn.h'.
3839 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3840 * gdb-dlfcn.c: Move to...
3841 * gdbsupport/gdb-dlfcn.c: ... here.
3842 * gdb-dlfcn.h: Move to...
3843 * gdbsupport/gdb-dlfcn.h: ... here.
3844
de8af808
SL
38452019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3846
3847 * nios2-tdep.c (struct reg_value): Improve comments. Make
3848 the offset field signed.
3849
27204489
CB
38502019-08-22 Christian Biesinger <cbiesinger@google.com>
3851
3852 * python/lib/gdb/__init__.py (_execute_file): New function.
3853 * python/python.c (python_run_simple_file): Call gdb._execute_file
3854 on Windows.
3855
43771869
AB
38562019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3857
3858 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3859 all uses as this was never set to anything but a zero value.
3860
26c957f1
PA
38612019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3862
3863 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3864
c07aae6e
CB
38652019-08-21 Christian Biesinger <cbiesinger@google.com>
3866
3867 * tui/tui-data.h (tui_gen_win_info): Add an =default
3868 move constructor, required by some GCC versions.
3869
3960cb7a
JF
38702019-08-21 Jinke Fan <fanjinke51@yeah.net>
3871
3872 * go32-nat.c (go32_sysinfo): Add hygon_p.
3873
04c72a68
TT
38742019-08-20 Tom Tromey <tom@tromey.com>
3875
3876 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3877 line_from_reg_element_no, first_reg_element_no_inline,
3878 display_all_data, delete_data_content_windows,
3879 erase_data_content>: Now private.
3880
072272ce
TT
38812019-08-20 Tom Tromey <tom@tromey.com>
3882
3883 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3884 (tui_unhighlight_win, tui_highlight_win)
3885 (tui_win_info::make_window): Update.
3886 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3887
973961bd
TT
38882019-08-20 Tom Tromey <tom@tromey.com>
3889
3890 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3891 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3892 (MAX_PID_WIDTH): Move to tui-stack.c.
3893 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3894 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3895 (MAX_PID_WIDTH): Move from tui-data.h.
3896
ab0e1f1a
TT
38972019-08-20 Tom Tromey <tom@tromey.com>
3898
3899 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3900 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3901 (box_win): Update.
3902 (tui_gen_win_info::make_window): Rename from tui_make_window.
3903 (tui_win_info::make_window): New method.
3904 (tui_gen_win_info::make_visible): Update.
3905 * tui/tui-source.c (tui_source_window::set_contents): Update.
3906 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3907 (tui_data_window::display_registers_from): Update.
3908 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3909 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3910 Declare.
3911 <can_box>: Remove.
3912 <title>: Remove.
3913 (struct tui_win_info) <make_window>: Declare.
3914 <can_box>: Now virtual.
3915 <title>: New member.
3916 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3917 * tui/tui-command.c (tui_cmd_window::resize): Update.
3918
100c2bf3
TT
39192019-08-20 Tom Tromey <tom@tromey.com>
3920
3921 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3922 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3923 (tui_data_window::check_register_values): Update.
3924
fa4dc567
TT
39252019-08-20 Tom Tromey <tom@tromey.com>
3926
3927 * tui/tui-regs.h (struct tui_data_window): Use
3928 DISABLE_COPY_AND_ASSIGN.
3929 <regs_content>: Change type, removing unique_ptr.
3930 <tui_data_window>: Add move constructor.
3931 * tui/tui-regs.c (tui_data_window::show_registers)
3932 (tui_data_window::show_register_group)
3933 (tui_data_window::display_registers_from)
3934 (tui_data_window::display_registers_from)
3935 (tui_data_window::first_data_item_displayed)
3936 (tui_data_window::delete_data_content_windows)
3937 (tui_data_window::rerender, tui_data_window::refresh_window)
3938 (tui_data_window::check_register_values): Update.
3939
ca02d7c8
TT
39402019-08-20 Tom Tromey <tom@tromey.com>
3941
3942 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3943 show_register_group>: Declare.
3944 (tui_show_register_group): Don't declare.
3945 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3946 tui_show_registers.
3947 (tui_data_window::show_register_group): Rename from
3948 tui_show_register_group.
3949 (tui_data_window::check_register_values, tui_reg_command):
3950 Update.
3951 * tui/tui-layout.c (tui_set_layout): Update.
3952
63356bfd
TT
39532019-08-20 Tom Tromey <tom@tromey.com>
3954
3955 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3956 Declare.
3957 (tui_check_register_values): Don't declare.
3958 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3959 from tui_check_register_values.
3960 * tui/tui-hooks.c (tui_register_changed): Update.
3961
42cc14a7
TT
39622019-08-20 Tom Tromey <tom@tromey.com>
3963
3964 * tui/tui-regs.c (tui_reg_layout): Move later.
3965 (tui_show_registers): Don't enable TUI mode or change layout.
3966
b9ad3686
TT
39672019-08-20 Tom Tromey <tom@tromey.com>
3968
3969 * tui/tui-regs.h (struct tui_data_item_window)
3970 <~tui_data_item_window>: Remove.
3971 <content>: Now a unique_xmalloc_ptr.
3972 * tui/tui-regs.c (tui_register_format): Return a
3973 unique_xmalloc_ptr.
3974 (tui_get_register): Update.
3975 (~tui_data_item_window): Remove.
3976 (tui_data_window::display_registers_from, tui_display_register):
3977 Update.
3978 * tui/tui-io.h (tui_expand_tabs): Update.
3979 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3980 Remove "col" parameter.
3981
8e114aab
TT
39822019-08-20 Tom Tromey <tom@tromey.com>
3983
3984 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3985 field.
3986 * tui/tui-regs.c (~tui_data_item_window): Update.
3987
1a4f81dd
TT
39882019-08-20 Tom Tromey <tom@tromey.com>
3989
3990 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3991 earlier.
3992
0f8d8876
TT
39932019-08-20 Tom Tromey <tom@tromey.com>
3994
3995 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3996
605dc2c2
TT
39972019-08-20 Tom Tromey <tom@tromey.com>
3998
3999 * tui/tui-source.h (struct tui_source_window): Update.
4000 * tui/tui-regs.c (tui_show_registers): Update.
4001 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4002 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4003 (NO_REGS_STRING): Remove defines.
4004
aedbe3bb
CM
40052019-08-20 Conrad Meyer <cem@FreeBSD.org>
4006
4007 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4008 unnecessary thread walk if remote doesn't support the packet.
4009
7ce8f214
TT
40102019-08-19 Tom Tromey <tromey@adacore.com>
4011
4012 * python/py-value.c (value_has_field): Fix indentation.
4013
f21c2bd7
TT
40142019-08-19 Tom Tromey <tromey@adacore.com>
4015
4016 * printcmd.c (do_one_display, info_display_command): Update.
4017 * block.h (contained_in): Return bool. Add allow_nested
4018 parameter.
4019 * block.c (contained_in): Return bool. Add allow_nested
4020 parameter.
4021
d806ea2d
TT
40222019-08-19 Tom Tromey <tom@tromey.com>
4023
4024 * configure: Rebuild.
4025 * configure.ac: Disallow the combination of -static-libstdc++ and
4026 source highlight.
4027 * source-cache.c (get_language_name): Handle rust.
4028 (source_cache::get_source_lines): Ignore highlighting exceptions.
4029
398fdd60
TT
40302019-08-16 Tom Tromey <tom@tromey.com>
4031
4032 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4033 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4034 (struct tui_source_window_base) <make_visible, refresh_window,
4035 resize>: Remove methods.
4036 <execution_info>: Remove field.
4037 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4038 (tui_show_source_line, tui_source_window_base)
4039 (~tui_source_window_base): Update.
4040 (tui_source_window_base::resize)
4041 (tui_source_window_base::make_visible)
4042 (tui_source_window_base::refresh_window): Remove.
4043 (tui_source_window_base::update_exec_info): Update.
4044 * tui/tui-source.c (tui_source_window::set_contents): Update.
4045 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4046
e699d331
TT
40472019-08-16 Tom Tromey <tom@tromey.com>
4048
4049 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4050 deprecated_query_hook.
4051
bb01dbfc
TT
40522019-08-16 Tom Tromey <tom@tromey.com>
4053
4054 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4055 (tui_update_source_windows_with_line): Update.
4056 * tui/tui-source.h (struct tui_source_window)
4057 <show_symtab_source>: Declare.
4058 (tui_show_symtab_source): Don't declare.
4059 * tui/tui-source.c (tui_show_symtab_source): Rename from
4060 tui_show_symtab_source.
4061
81c82c4b
TT
40622019-08-16 Tom Tromey <tom@tromey.com>
4063
4064 * tui/tui-winsource.h (struct tui_source_window_base)
4065 <set_contents>: Declare.
4066 * tui/tui-winsource.c
4067 (tui_source_window_base::update_source_window_as_is): Update.
4068 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4069 Declare.
4070 (tui_set_source_content): Don't declare.
4071 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4072 tui_set_source_content.
4073 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4074 Declare.
4075 (tui_set_disassem_content): Don't declare.
4076 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4077 tui_set_disassem_content.
4078
2ddaf614
TT
40792019-08-16 Tom Tromey <tom@tromey.com>
4080
4081 * tui/tui-winsource.h (struct tui_source_window_base)
4082 <update_breakpoint_info>: Declare.
4083 (tui_update_breakpoint_info): Don't declare.
4084 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4085 (tui_update_all_breakpoint_info): Update.
4086 (tui_source_window_base::update_breakpoint_info): Rename from
4087 tui_update_breakpoint_info.
4088 (tui_source_window_base::update_exec_info): Update.
4089
017f9828
TT
40902019-08-16 Tom Tromey <tom@tromey.com>
4091
4092 * tui/tui-winsource.h (struct tui_source_window_base)
4093 <update_source_window>: Declare.
4094 (tui_update_source_window): Don't declare.
4095 * tui/tui-winsource.c
4096 (tui_source_window_base::update_source_window): Rename from
4097 tui_update_source_window.
4098 (tui_source_window_base::rerender): Update.
4099 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4100 * tui/tui-disasm.c (tui_show_disassem)
4101 (tui_show_disassem_and_update_source)
4102 (tui_disasm_window::maybe_update): Update.
4103
ed8358e9
TT
41042019-08-16 Tom Tromey <tom@tromey.com>
4105
4106 * tui/tui-winsource.h (struct tui_source_window_base)
4107 <update_source_window_as_is>: Declare.
4108 (tui_update_source_window_as_is): Don't declare.
4109 * tui/tui-winsource.c (tui_update_source_window): Update
4110 (tui_source_window_base::update_source_window_as_is): Rename from
4111 tui_update_source_window_as_is.
4112 (tui_source_window_base::refill): Update.
4113 * tui/tui-source.c (tui_show_symtab_source): Update.
4114 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4115 Update.
4116
20149b6b
TT
41172019-08-16 Tom Tromey <tom@tromey.com>
4118
4119 * tui/tui-winsource.h (tui_update_source_window)
4120 (tui_update_source_window_as_is): Remove "noerror" parameter.
4121 * tui/tui-winsource.c (tui_update_source_window)
4122 (tui_update_source_window_as_is): Remove "noerror" parameter.
4123 (tui_update_source_windows_with_addr)
4124 (tui_update_source_windows_with_line)
4125 (tui_source_window_base::rerender)
4126 (tui_source_window_base::refill): Update.
4127 * tui/tui-source.h (tui_set_source_content)
4128 (tui_show_symtab_source): Remove "noerror" parameter.
4129 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4130 parameter.
4131 (tui_show_symtab_source): Likewise.
4132 (tui_source_window::maybe_update): Update.
4133 * tui/tui-disasm.c (tui_show_disassem)
4134 (tui_show_disassem_and_update_source)
4135 (tui_disasm_window::do_scroll_vertical)
4136 (tui_disasm_window::maybe_update): Update.
4137
2d83e710
TT
41382019-08-16 Tom Tromey <tom@tromey.com>
4139
4140 * tui/tui.c (tui_is_window_visible): Update.
4141 * tui/tui-wingeneral.c (tui_make_window)
4142 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4143 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4144 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4145 (tui_set_win_height_command, parse_scrolling_args): Update.
4146 * tui/tui-source.c (tui_source_window::style_changed): Update.
4147 * tui/tui-regs.c (tui_show_registers)
4148 (tui_data_window::first_data_item_displayed)
4149 (tui_data_window::delete_data_content_windows)
4150 (tui_check_register_values, tui_reg_command): Update.
4151 * tui/tui-disasm.c (tui_show_disassem): Update.
4152 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4153 method.
4154 <is_visible>: Remove field.
4155 * tui/tui-data.c (tui_next_win, tui_prev_win)
4156 (tui_delete_invisible_windows): Update.
4157
d4ab829a
TT
41582019-08-16 Tom Tromey <tom@tromey.com>
4159
4160 * tui/tui-winsource.h (struct tui_source_window_base)
4161 <m_has_locator>: Remove.
4162 * tui/tui-layout.c (show_source_disasm_command, show_data)
4163 (show_source_or_disasm_and_command): Update.
4164
aa7ca1bb
AH
41652019-08-16 Alan Hayward <alan.hayward@arm.com>
4166
4167 * NEWS (Other MI changes): New subsection.
4168 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4169 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4170 * arch-utils.c (default_get_pc_address_flags): New function.
4171 * arch-utils.h (default_get_pc_address_flags): New declaration.
4172 * gdbarch.sh: Add get_pc_address_flags.
4173 * gdbarch.c: Regenerate.
4174 * gdbarch.h: Likewise.
4175 * stack.c (print_pc): New function.
4176 (print_frame_info) (print_frame): Call print_pc.
4177
6eac171f
TV
41782019-08-16 Tom de Vries <tdevries@suse.de>
4179
4180 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4181 print_objfile_section_info.
4182
3df505f6
TT
41832019-08-15 Tom Tromey <tom@tromey.com>
4184
4185 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4186 calling update_cmdwin_start_line.
4187 * tui/tui-winsource.h (struct tui_source_window_base)
4188 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4189 <rerender>: Declare.
4190 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4191 Call rerender.
4192 (tui_source_window_base::set_new_height): Remove.
4193 (tui_source_window_base::rerender): Rename from
4194 do_make_visible_with_new_height.
4195 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4196 resize method.
4197 (tui_win_info::make_invisible_and_set_new_height)
4198 (tui_win_info::make_visible_with_new_height): Remove.
4199 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4200 Declare.
4201 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4202 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4203 do_make_visible_with_new_height>: Don't declare.
4204 <rerender>: Declare.
4205 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4206 set_new_height.
4207 (tui_data_window::do_make_visible_with_new_height): Remove.
4208 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4209 call tui_show_locator_content.
4210 (tui_gen_win_info::resize): Call rerender.
4211 (show_source_or_disasm_and_command): Don't call
4212 tui_show_locator_content.
4213 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4214 method.
4215 (struct tui_win_info) <rerender>: Declare.
4216 <set_new_height, make_invisible_and_set_new_height,
4217 make_visible_with_new_height>: Don't declare.
4218 * tui/tui-data.c (tui_win_list::rerender): New method.
4219 * tui/tui-command.h (struct tui_cmd_window)
4220 <do_make_visible_with_new_height>: Don't declare.
4221 * tui/tui-command.c
4222 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4223
272560b5
TT
42242019-08-15 Tom Tromey <tromey@adacore.com>
4225
4226 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4227 * ada-lang.c (ada_enum_name): Likewise.
4228
08235187
CB
42292019-08-15 Christian Biesinger <cbiesinger@google.com>
4230
4231 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4232 leading underscore.
4233 (GdbOutputErrorFile): Likewise.
4234 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4235 accordingly.
4236 (execute_unwinders): Rename to have a leading underscore.
4237 (auto_load_packages): Likewise.
4238 (global scope): Adjust call to auto_load_packages accordingly.
4239 (GdbSetPythonDirectory): Likewise.
4240 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4241 instead of execute_unwinders.
4242
db502012
TT
42432019-08-15 Tom Tromey <tom@tromey.com>
4244
4245 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4246 (show_data): Don't change window visibility.
4247 (tui_gen_win_info::resize): Remove special case for command
4248 window. Use wresize, when available.
4249 (show_source_or_disasm_and_command): Don't change window
4250 visibility.
4251 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4252 <make_visible>: New method.
4253 * tui/tui-command.c (tui_cmd_window::resize): New method.
4254
3891b65e
TT
42552019-08-15 Tom Tromey <tom@tromey.com>
4256
4257 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4258 (struct tui_source_windows): New.
4259 * tui/tui-winsource.c (tui_display_main): Update.
4260 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4261 (new_height_ok, parse_scrolling_args): Update.
4262 * tui/tui-layout.c (show_layout, show_data): Update.
4263 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4264 (tui_add_to_source_windows): Don't declare.
4265 * tui/tui-data.c (source_windows, tui_source_windows)
4266 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4267
ee556432
TT
42682019-08-15 Tom Tromey <tom@tromey.com>
4269
4270 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4271 Rename from reset.
4272 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4273 * tui/tui-layout.c (show_source_disasm_command, show_data):
4274 Update.
4275 (tui_gen_win_info::resize): Rename.
4276 (show_source_or_disasm_and_command): Update.
4277 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4278 reset.
4279
46f438e3
TT
42802019-08-15 Tom Tromey <tom@tromey.com>
4281
4282 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4283 * tui/tui-interp.c (tui_interp::init): Don't call
4284 tui_initialize_static_data.
4285 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4286
f4ce562c
TT
42872019-08-15 Tom Tromey <tom@tromey.com>
4288
4289 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4290 examine tui_win_list.
4291
c398c3d0
TT
42922019-08-15 Tom Tromey <tom@tromey.com>
4293
4294 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4295 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4296 tui_clear_source_content.
4297 (tui_clear_source_content): Remove.
4298 (tui_source_window_base::do_erase_source_content): Hoist call to
4299 content.clear().
4300 * tui/tui-stack.c (tui_show_frame_info): Don't call
4301 tui_clear_source_content.
4302
e25d2004
TT
43032019-08-15 Tom Tromey <tom@tromey.com>
4304
4305 * tui/tui-winsource.h (struct tui_source_window_base)
4306 <do_erase_source_content>: New method.
4307 <erase_source_content>: New method.
4308 (tui_erase_source_content): Don't declare.
4309 * tui/tui-winsource.c (tui_clear_source_content): Update.
4310 (tui_source_window_base::do_erase_source_content): Rename from
4311 tui_erase_source_content.
4312 (tui_source_window_base::show_source_content): Update.
4313 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4314 * tui/tui-source.h (struct tui_source_window)
4315 <erase_source_content>: New method.
4316 * tui/tui-disasm.h (struct tui_disasm_window)
4317 <erase_source_content>: New method.
4318
002f15c2
TT
43192019-08-15 Tom Tromey <tom@tromey.com>
4320
4321 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4322 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4323 constructor.
4324 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4325 * tui/tui-source.c (tui_set_source_content): Update.
4326 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4327
c9033fe8
TT
43282019-08-15 Tom Tromey <tom@tromey.com>
4329
4330 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4331 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4332 tui-source.c.
4333 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4334 Declare.
4335 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4336 method.
4337 (tui_source_window::maybe_update): Update.
4338
088f37dd
TT
43392019-08-15 Tom Tromey <tom@tromey.com>
4340
4341 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4342 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4343 tui-disasm.c.
4344 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4345 Declare.
4346 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4347 method.
4348 (tui_disasm_window::maybe_update): Update.
4349
a54700c6
TT
43502019-08-15 Tom Tromey <tom@tromey.com>
4351
4352 * tui/tui-winsource.h (struct tui_source_window_base)
4353 <maybe_update>: Declare.
4354 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4355 method.
4356 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4357 Declare.
4358 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4359 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4360 Declare.
4361 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4362
e2a678a5
TT
43632019-08-15 Tom Tromey <tom@tromey.com>
4364
4365 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4366
f2dda477
TT
43672019-08-15 Tom Tromey <tom@tromey.com>
4368
4369 * tui/tui-wingeneral.c: Include tui-stack.h.
4370 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4371 (struct tui_locator_window): Move from tui-data.h.
4372 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4373 (tui_initialize_static_data): Move from tui-data.c.
4374 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4375 (struct tui_locator_window): Move to tui-stack.c.
4376 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4377 (tui_initialize_static_data): Move to tui-stack.c.
4378
ed4a1084
TT
43792019-08-15 Tom Tromey <tom@tromey.com>
4380
4381 * tui/tui-layout.c (show_source_disasm_command)
4382 (show_source_or_disasm_and_command): Use make_visible method, not
4383 tui_make_window.
4384 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4385 Remove.
4386
65962b20
TT
43872019-08-15 Tom Tromey <tom@tromey.com>
4388
4389 * tui/tui-wingeneral.h (tui_make_window): Update.
4390 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4391 parameter.
4392 (tui_gen_win_info::make_visible): Update.
4393 * tui/tui-regs.c (tui_data_window::display_registers_from):
4394 Update.
4395 * tui/tui-layout.c (show_source_disasm_command)
4396 (show_source_or_disasm_and_command): Update.
4397 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4398 (enum tui_box): Remove.
4399 (struct tui_win_info) <can_box>: New method.
4400 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4401 method.
4402
2208ee91
TV
44032019-08-15 Tom de Vries <tdevries@suse.de>
4404
4405 * linux-nat-trad.c: Include gdbarch.h.
4406
75faf5c4
AH
44072019-08-14 Alan Hayward <alan.hayward@arm.com>
4408
4409 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4410 register sizes.
4411
b1c896b3
TT
44122019-08-14 Tom Tromey <tromey@adacore.com>
4413
4414 * darwin-nat.c: Include gdbarch.h.
4415 * darwin-nat-info.c: Include gdbarch.h.
4416
6405cd73
TT
44172019-08-13 Tom Tromey <tom@tromey.com>
4418
4419 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4420 Remove.
4421 * tui/tui-data.c (tui_initialize_static_data): Update.
4422
5216580d
TT
44232019-08-13 Tom Tromey <tom@tromey.com>
4424
4425 * tui/tui-winsource.h (struct tui_exec_info_window)
4426 <~tui_exec_info_window, maybe_allocate_content, get_content,
4427 m_content>: Remove.
4428 (struct tui_source_window_base) <set_exec_info_content,
4429 show_exec_info_content>: Don't declare.
4430 * tui/tui-winsource.c
4431 (tui_exec_info_window::maybe_allocate_content): Remove.
4432 (tui_source_window_base::update_exec_info): Rename from
4433 set_exec_info_content.
4434 (tui_source_window_base::show_exec_info_content)
4435 (tui_source_window_base::update_exec_info): Remove.
4436
93858ad3
TT
44372019-08-13 Tom Tromey <tom@tromey.com>
4438
4439 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4440 declare.
4441 * tui/tui-winsource.c (tui_update_source_window_as_is)
4442 (tui_update_source_windows_with_addr, tui_erase_source_content):
4443 Update.
4444 (tui_clear_exec_info_content): Remove.
4445
e321e7ce
TT
44462019-08-13 Tom Tromey <tom@tromey.com>
4447
4448 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4449 declare.
4450 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4451 call tui_erase_exec_info_content.
4452 (tui_clear_exec_info_content): Rename from
4453 tui_erase_exec_info_content.
4454 (tui_clear_exec_info_content): Delete.
4455
8270ac62
TT
44562019-08-13 Tom Tromey <tom@tromey.com>
4457
4458 * tui/tui-winsource.h (struct tui_source_window_base)
4459 <show_exec_info_content>: Declare.
4460 (tui_show_exec_info_content): Don't declare.
4461 * tui/tui-winsource.c
4462 (tui_source_window_base::show_exec_info_content): Rename from
4463 tui_show_exec_info_content.
4464 (tui_source_window_base::update_exec_info): Update.
4465
7b56485d
TT
44662019-08-13 Tom Tromey <tom@tromey.com>
4467
4468 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4469 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4470 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4471 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4472 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4473 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4474 ... here.
4475
7ba913dc
TT
44762019-08-13 Tom Tromey <tom@tromey.com>
4477
4478 * tui/tui-winsource.h (struct tui_source_window_base)
4479 <update_exec_info>: Declare.
4480 (tui_update_exec_info): Don't declare.
4481 * tui/tui-winsource.c (tui_update_source_window_as_is)
4482 (tui_source_window_base::refresh_all)
4483 (tui_update_all_breakpoint_info): Update.
4484 (tui_source_window_base::update_exec_info): Rename from
4485 tui_update_exec_info.
4486 * tui/tui-stack.c (tui_show_frame_info): Update.
4487
37a4a131
TT
44882019-08-13 Tom Tromey <tom@tromey.com>
4489
4490 * tui/tui-winsource.h (struct tui_source_window_base)
4491 <set_exec_info_content>: Declare.
4492 (tui_set_exec_info_content): Don't declare.
4493 * tui/tui-winsource.c
4494 (tui_source_window_base::set_exec_info_content): Rename from
4495 tui_set_exec_info_content.
4496 (tui_update_exec_info): Update.
4497
0bd27e07
TT
44982019-08-13 Tom Tromey <tom@tromey.com>
4499
4500 * tui/tui-winsource.h (struct tui_source_window_base)
4501 <show_source_content>: Declare.
4502 (tui_show_source_content): Don't declare.
4503 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4504 (tui_source_window_base::show_source_content): Rename from
4505 tui_show_source_content.
4506 (tui_source_window_base::refresh_all): Update.
4507 * tui/tui-layout.c (show_source_disasm_command)
4508 (show_source_or_disasm_and_command): Update.
4509
b4ef5aeb
TT
45102019-08-13 Tom Tromey <tom@tromey.com>
4511
4512 * tui/tui-winsource.c (tui_erase_source_content)
4513 (tui_show_source_content, tui_source_window_base::refresh_all):
4514 Update.
4515 * tui/tui-wingeneral.h
4516 (tui_check_and_display_highlight_if_needed): Don't declare.
4517 * tui/tui-wingeneral.c
4518 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4519 check_and_display_highlight_if_needed.
4520 * tui/tui-win.c (tui_rehighlight_all)
4521 (tui_win_info::make_visible_with_new_height): Update.
4522 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4523 (tui_data_window::erase_data_content)
4524 (tui_data_window::display_all_data): Update.
4525 * tui/tui-data.h (struct tui_win_info)
4526 <check_and_display_highlight_if_needed>: Declare.
4527
fede5273
TT
45282019-08-13 Tom Tromey <tom@tromey.com>
4529
4530 * tui/tui-win.c (tui_resize_all): Call
4531 tui_delete_invisible_windows.
4532 * tui/tui-layout.c (show_layout): Call
4533 tui_delete_invisible_windows.
4534 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4535 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4536
22c3f490
TT
45372019-08-13 Tom Tromey <tom@tromey.com>
4538
4539 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4540 tui_add_win_to_layout.
4541
16cb7910
TT
45422019-08-13 Tom Tromey <tom@tromey.com>
4543
4544 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4545 * tui/tui-layout.c (tui_default_win_height): Now static.
4546
cc0c3ffb
TT
45472019-08-13 Tom Tromey <tom@tromey.com>
4548
4549 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4550 single switch.
4551 (show_source_disasm_command, show_source_or_disasm_and_command):
4552 Don't check current layout.
4553
3f3ffe54
TT
45542019-08-13 Tom Tromey <tom@tromey.com>
4555
4556 * tui/tui-wingeneral.c (make_all_visible): Remove.
4557 (tui_make_all_invisible): Simplify.
4558 * tui/tui-layout.c (tui_make_all_invisible): Move from
4559 tui-wingeneral.c; simplify.
4560 (show_layout): Hoist call to tui_make_all_invisible.
4561 (show_data): Don't call tui_make_all_invisible.
4562
69258091
TT
45632019-08-13 Tom Tromey <tom@tromey.com>
4564
4565 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4566 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4567
62cf57fe
TT
45682019-08-13 Tom Tromey <tom@tromey.com>
4569
4570 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4571 tui-data.c.
4572 (show_source_disasm_command, show_data)
4573 (show_source_or_disasm_and_command): Don't use
4574 tui_set_current_layout_to.
4575 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4576 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4577 tui-layout.c.
4578 (tui_set_current_layout_to): Remove.
4579
2afade5d
TT
45802019-08-13 Tom Tromey <tom@tromey.com>
4581
4582 * tui/tui-layout.c (tui_set_layout): Update.
4583 * tui/tui-data.h (struct tui_layout_def): Remove.
4584 (tui_layout_def): Don't declare.
4585 * tui/tui-data.c (layout_def): Remove.
4586 (tui_layout_def): Remove.
4587
a3504e96
TT
45882019-08-13 Tom Tromey <tom@tromey.com>
4589
4590 * tui/tui-winsource.h (struct tui_source_window_base)
4591 <clear_detail>: No longer "override".
4592 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4593 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4594 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4595 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4596 Remove.
4597 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4598
29c92911
TT
45992019-08-13 Tom Tromey <tromey@adacore.com>
4600
4601 * tracepoint.c: Don't include readline.h or history.h.
4602
86c6b807
TT
46032019-08-12 Tom Tromey <tom@tromey.com>
4604
4605 * configure: Rebuild.
4606 * configure.ac: Check for readline 7.
4607 * NEWS: Mention readline 7 requirement.
4608 * README: Update.
4609
5db2718c
TT
46102019-08-12 Tom Tromey <tom@tromey.com>
4611
4612 * mingw-hdep.c (gdb_select): Remove readline hack.
4613
dac36daf
PFC
46142019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4615
4616 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4617 when the function fails.
4618
1022c627
AA
46192019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4620
4621 * s390-tdep.c (s390_type_align): New function.
4622 (s390_gdbarch_init): Set it as type_align gdbarch method.
4623
eba4caf2
TV
46242019-08-09 Tom de Vries <tdevries@suse.de>
4625
4626 PR gdb/24591
4627 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4628 pc_low with relocation offset.
4629
123cd851
TT
46302019-08-07 Tom Tromey <tromey@adacore.com>
4631
4632 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4633 (print_frame_args): Update.
4634 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4635 Update.
4636 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4637 * frame.h (struct frame_arg): Add initializers.
4638 <error>: Now a unique_xmalloc_ptr.
4639
3d31bc39
AH
46402019-08-07 Alan Hayward <alan.hayward@arm.com>
4641
4642 * NEWS: Expand the Pointer Authentication entry.
4643 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4644 (aarch64_frame_unmask_lr): ... to this.
4645 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4646 Call aarch64_frame_unmask_lr.
4647 * frame.c (struct frame_info): Add "masked" variable.
4648 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4649 (fprint_frame): Check for masked pc.
4650 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4651 declarations.
4652 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4653 * stack.c (print_frame): Check for masked pc.
4654
0cf9feb9
TT
46552019-08-06 Tom Tromey <tom@tromey.com>
4656
4657 * stabsread.c (patch_block_stabs, read_one_struct_field)
4658 (read_enum_type): Use obstack_strndup.
4659 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4660 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4661 * dwarf2read.c (guess_full_die_structure_name)
4662 (anonymous_struct_prefix): Use obstack_strndup.
4663 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4664 * c-exp.y (yylex): Use obstack_strndup.
4665 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4666 (write_var_or_type): Use obstack_strndup.
4667
efba19b0
TT
46682019-08-06 Tom Tromey <tom@tromey.com>
4669
4670 * symfile.c (reread_symbols): Use obstack_strdup.
4671 * stabsread.c (read_type): Use obstack_strdup.
4672 * gdb_obstack.h (obstack_strdup): New overload.
4673 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4674 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4675 (dwarf2_canonicalize_name): Use obstack_strdup.
4676 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4677 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4678 Use obstack_strdup.
4679
f25102f7
TT
46802019-08-06 Tom Tromey <tom@tromey.com>
4681
4682 * gdb_obstack.h (obstack_strdup): Define.
4683 * gdb_obstack.c (obstack_strdup): Don't define.
4684
021887d8
TT
46852019-08-06 Tom Tromey <tom@tromey.com>
4686
4687 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4688 obstack_strdup.
4689 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4690 obstack_strdup.
4691 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4692 * stabsread.c (common_block_start): Use obstack_strdup.
4693 * objfiles.c (set_objfile_main_name, objfile): Use
4694 obstack_strdup.
4695 * namespace.c (add_using_directive): Use obstack_strdup.
4696 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4697 * jit.c (finalize_symtab): Use obstack_strdup.
4698 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4699 (guess_partial_die_structure_name, partial_die_info::fixup)
4700 (dwarf2_name): Use obstack_strdup.
4701 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4702 obstack_strdup.
4703 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4704 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4705 obstack_strdup.
4706 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4707
d2834edc
PW
47082019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4709
4710 * unittests/help-doc-selftests.c: New file.
4711 * Makefile.in: Add the new file.
4712
590042fc
PW
47132019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4714
4715 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4716 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4717 the full first line, except when FOR_VALUE_PREFIX. In this case,
4718 the trailing '.' is not output, and the first character is uppercased.
4719 (print_help_for_command): Update call to print_doc_line.
4720 (print_doc_of_command): Likewise.
4721 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4722 * cli/cli-option.c (append_indented_doc): Do not append newline.
4723 (build_help_option): Append newline after first appended_indented_doc
4724 only if a second call is done.
4725 (build_help): Append 2 new lines before each option, except the first
4726 one.
4727 * compile/compile.c (_initialize_compile): Add new lines after
4728 %OPTIONS%, when not at the end of the help.
4729 Change help doc or code
4730 producing the help doc to respect the invariants.
4731 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4732 Also removed the new line after 'Options:', as all other commands
4733 do not put an empty line between 'Options:' and the first option.
4734 * printcmd.c (_initialize_printcmd): Likewise.
4735 * stack.c (_initialize_stack): Likewise.
4736 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4737 incorrectly telling COMMAND is optional.
4738 * ada-lang.c (_initialize_ada_language): Change help doc or code
4739 producing the help doc to respect the invariants.
4740 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4741 * breakpoint.c (_initialize_breakpoint): Likewise.
4742 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4743 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4744 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4745 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4746 _initialize_cli_style): Likewise.
4747 * corelow.c (core_target_info): Likewise.
4748 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4749 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4750 * filesystem.c (_initialize_filesystem): Likewise.
4751 * frame.c (_initialize_frame): Likewise.
4752 * gnu-nat.c (add_task_commands): Likewise.
4753 * infcall.c (_initialize_infcall): Likewise.
4754 * infcmd.c (_initialize_infcmd): Likewise.
4755 * interps.c (_initialize_interpreter): Likewise.
4756 * language.c (_initialize_language): Likewise.
4757 * linux-fork.c (_initialize_linux_fork): Likewise.
4758 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4759 * maint.c (_initialize_maint_cmds): Likewise.
4760 * memattr.c (_initialize_mem): Likewise.
4761 * printcmd.c (_initialize_printcmd): Likewise.
4762 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4763 _RegEx): Likewise.
4764 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4765 * record-btrace.c (_initialize_record_btrace): Likewise.
4766 * record-full.c (_initialize_record_full): Likewise.
4767 * record.c (_initialize_record): Likewise.
4768 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4769 * regcache.c (_initialize_regcache): Likewise.
4770 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4771 _initialize_remote): Likewise.
4772 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4773 * serial.c (_initialize_serial): Likewise.
4774 * skip.c (_initialize_step_skip): Likewise.
4775 * source.c (_initialize_source): Likewise.
4776 * stack.c (_initialize_stack): Likewise.
4777 * symfile.c (_initialize_symfile): Likewise.
4778 * symtab.c (_initialize_symtab): Likewise.
4779 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4780 * top.c (init_main): Likewise.
4781 * tracefile-tfile.c (tfile_target_info): Likewise.
4782 * tracepoint.c (_initialize_tracepoint): Likewise.
4783 * tui/tui-win.c (_initialize_tui_win): Likewise.
4784 * utils.c (add_internal_problem_command): Likewise.
4785 * valprint.c (value_print_option_defs): Likewise.
4786
404f2902
FCE
47872019-08-06 Frank Ch. Eigler <fche@redhat.com>
4788
4789 PR build/24886
4790 * configure.ac: Drop enable-libmcheck support.
4791 * configure, config.in: Rebuild.
4792 * libmcheck.m4: Remove.
4793 * acinclude.m4: Don't include it.
4794 * Makefile.in: Don't distribute it.
4795 * top.c (print_gdb_configuration): Don't mention it.
4796
046bebe1
TT
47972019-08-06 Tom Tromey <tom@tromey.com>
4798
4799 * utils.c (set_output_style): Sometimes pass stream to
4800 emit_style_escape.
4801 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4802 * record-btrace.c (btrace_insn_history): Update.
4803 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4804 method.
4805 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4806 Update initializers.
4807 <m_uiout>: New field.
4808 <m_di>: Move lower.
4809 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4810 Remove "uiout" parameter.
4811 (dump_insns): Update.
4812 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4813 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4814
ddbcedf5
CB
48152019-08-06 Christian Biesinger <cbiesinger@google.com>
4816
4817 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4818 (error_in_psymtab_expansion): Likewise.
4819 (lookup_symbol_via_quick_fns): Likewise.
4820 (basic_lookup_transparent_type_quick): Likewise.
4821 (basic_lookup_transparent_type_1): Likewise.
4822
b08b16c8
TT
48232019-08-06 Tom Tromey <tromey@adacore.com>
4824
4825 * source.c (last_source_error): Now bool.
4826 (print_source_lines_base): Make "noprint" bool. Only open
4827 source file when last_source_visited changes.
4828
cb44333d
TT
48292019-08-06 Tom Tromey <tromey@adacore.com>
4830
4831 * annotate.c (annotate_source_line): Use g_source_cache.
4832 * source-cache.c (source_cache::get_plain_source_lines): Change
4833 parameters. Populate m_offset_cache.
4834 (source_cache::ensure): New method.
4835 (source_cache::get_line_charpos): New method.
4836 (extract_lines): Move lower. Change parameters.
4837 (source_cache::get_source_lines): Move lower.
4838 * source-cache.h (class source_cache): Update comment.
4839 <get_line_charpos>: New method.
4840 <get_source_lines>: Update comment.
4841 <clear>: Clear m_offset_cache.
4842 <get_plain_source_lines>: Change parameters.
4843 <ensure>: New method
4844 <m_offset_cache>: New member.
4845 * source.c (forget_cached_source_info_for_objfile): Update.
4846 (info_source_command): Use g_source_cache.
4847 (find_source_lines, open_source_file_with_line_charpos): Remove.
4848 (print_source_lines_base, search_command_helper): Use g_source_cache.
4849 * source.h (open_source_file_with_line_charpos): Don't declare.
4850 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4851 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4852 Use g_source_cache.
4853
872dceaa
TT
48542019-08-06 Tom Tromey <tromey@adacore.com>
4855
4856 * source-cache.c (source_cache::get_plain_source_lines):
4857 Remove "first_line" and "last_line" parameters.
4858 (source_cache::get_source_lines): Cache plain text.
4859 * source-cache.h (class source_cache)
4860 <get_plain_source_lines>: Update.
4861
269249d9
TT
48622019-08-06 Tom Tromey <tromey@adacore.com>
4863
4864 * source-cache.c (extract_lines): No longer a method.
4865 Changed type of parameter. Include final newline.
4866 (selftests::extract_lines_test): New function.
4867 (_initialize_source_cache): Likewise.
4868 * source-cache.h (class source_cache)
4869 <extract_lines>: Don't declare.
4870
c0e8dcd8
TT
48712019-08-06 Tom Tromey <tromey@adacore.com>
4872
4873 * breakpoint.c (init_breakpoint_sal): Update.
4874 (breakpoint): Update.
4875 * breakpoint.h (struct breakpoint) <filter>: Now a
4876 unique_xmalloc_ptr.
4877
0b27c27d
CB
48782019-08-05 Christian Biesinger <cbiesinger@google.com>
4879
4880 * NEWS: Mention dictionary access on blocks.
4881 * python/py-block.c (blpy_getitem): New function.
4882 (block_object_as_mapping): New struct.
4883 (block_object_type): Use new struct for tp_as_mapping field.
4884
4ee94178
CB
48852019-08-05 Christian Biesinger <cbiesinger@google.com>
4886
4887 * objfiles.h (objfile): Add a comment describing partial symbols.
4888
8abfcabc
TT
48892019-08-05 Tom Tromey <tromey@adacore.com>
4890
4891 * compile/compile.c (_initialize_compile): Use _(), not N_().
4892 * thread.c (_initialize_thread): Use _(), not N_().
4893 * stack.c (_initialize_stack): Use _(), not N_().
4894 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4895
2b79f376
SM
48962019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4897
4898 * dwarf2read.c (struct dw2_symtab_iterator):
4899 <want_specific_block>: Remove.
4900 <block_index>: Change type to gdb::optional.
4901 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4902 change type of BLOCK_INDEX parameter to gdb::optional.
4903 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4904 (dw2_lookup_symbol): Don't pass argument for
4905 WANT_SPECIFIC_BLOCK.
4906 (dw2_expand_symtabs_for_function): Don't pass argument for
4907 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4908 (class dw2_debug_names_iterator)
4909 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4910 parameter, change BLOCK_INDEX type to gdb::optional.
4911 <m_want_specific_block>: Remove.
4912 <m_block_index>: Change type to gdb::optional.
4913 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4914 gdb::optional. Re-write in function of gdb::optional.
4915 (dw2_debug_names_lookup_symbol): Don't pass argument for
4916 WANT_SPECIFIC_BLOCK.
4917 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4918 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4919 BLOCK_INDEX.
4920
ae60f04e
PW
49212019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4922
4923 * NEWS: Mention changes to "info sources" command.
4924
28cd9371
PW
49252019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4926
4927 * symtab.c (filename_partial_match_opts): New struct type.
4928 (struct output_source_filename_data): New members
4929 regexp, c_regexp, partial_match.
4930 (output_source_filename): Use new members to decide to print file.
4931 (info_sources_option_defs): New variable.
4932 (make_info_sources_options_def_group, print_info_sources_header,
4933 info_sources_command_completer):
4934 New functions.
4935 (info_sources_command): Read new optional arguments.
4936 (_initialize_symtab): Update info sources help.
4937
ca683e3a
AO
49382019-08-02 Alexandre Oliva <oliva@adacore.com>
4939
4940 * ada-lang.c (exception_support_info_v0): Renamed from...
4941 (default_exception_support_info): ... this. Create new
4942 definition for v1.
4943 (ada_has_this_exception_support): Look up catch_handlers_sym.
4944 (ada_exception_support_info_sniffer): Try v0 after default.
4945
f1264162
TT
49462019-08-01 Tom Tromey <tromey@adacore.com>
4947
4948 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4949 gdbarch.h.
4950
0a7b2485
CB
49512019-08-01 Christian Biesinger <cbiesinger@google.com>
4952
4953 * s12z-tdep.c: Fix include path for s12z-opc.h.
4954
c6bdbeb7
AH
49552019-08-01 Alan Hayward <alan.hayward@arm.com>
4956
4957 * NEWS: Require GNU make 3.82.
4958
a2bd7b82
TT
49592019-07-16 Tom Tromey <tom@tromey.com>
4960
4961 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4962 declare.
4963
aa3b6533
TT
49642019-07-30 Tom Tromey <tromey@adacore.com>
4965
4966 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4967
a1530dc7
KB
49682019-07-30 Kevin Buettner <kevinb@redhat.com>
4969
4970 * printcmd.c (print_address_symbolic): Print negative offsets.
4971 (build_address_symbolic): Force signed arithmetic when computing
4972 offset.
4973
2906593f
CB
49742019-07-30 Christian Biesinger <cbiesinger@google.com>
4975
4976 PR/24474: Add a function to lookup static variables.
4977 * NEWS: Mention this new function.
4978 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4979 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4980 * python/python.c (python_GdbMethods): Add new function.
4981
c620ed88
CB
49822019-07-29 Christian Biesinger <cbiesinger@google.com>
4983
4984 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4985 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4986 (objfpy_lookup_static_symbol): New function.
4987 (objfile_object_methods): Add new functions.
4988
bc4268a5
PW
49892019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4990
4991 * NEWS: Mention 'set|show print frame-info'. Mention new
4992 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4993 backtrace argument. Mention that python frame filtering code
4994 is now consistent with what 'backtrace' command prints.
4995
4b5e8d19
PW
49962019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4997
4998 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4999 comments.
5000 (print_frame_info_auto, print_frame_info_source_line,
5001 print_frame_info_location, print_frame_info_source_and_location,
5002 print_frame_info_location_and_address, print_frame_info_short_location):
5003 New declarations.
5004 (struct frame_print_options): New member print_frame_info.
5005 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5006 * stack.h (get_user_print_what_frame_info): New declaration.
5007 (frame_show_address): New declaration.
5008 * stack.c (print_frame_arguments_choices): New value 'presence'.
5009 (print_frame_info_auto, print_frame_info_source_line,
5010 print_frame_info_location, print_frame_info_source_and_location,
5011 print_frame_info_location_and_address, print_frame_info_short_location,
5012 print_frame_info_choices, print_frame_info_print_what): New definitions.
5013 (print_frame_args): Only print dots for args if print frame-arguments
5014 is 'presence'.
5015 (frame_print_option_defs): New element for "frame-info".
5016 (get_user_print_what_frame_info): New function.
5017 (frame_show_address): Make non static. Move comment to stack.h.
5018 (print_frame_info_to_print_what): New function.
5019 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5020 to decide what to print.
5021 (backtrace_command_1): Handle the new print_frame_arguments_presence
5022 value.
5023 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5024 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5025 (py_print_frame): In non-mi mode, use LOCATION as default for
5026 print_what, similarly to frame information printed directly by
5027 backtrace command. Handle frame-info user option in non MI mode.
5028
6bdfee81
KB
50292019-07-27 Kevin Buettner <kevinb@redhat.com>
5030
5031 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5032 Add case for debugging 32-bit target on 64-bit host. Revise
5033 comment.
5034
98a617f8
KB
50352019-07-27 Kevin Buettner <kevinb@redhat.com>
5036
5037 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5038 instead of find_function_entry_range_from_pc.
5039
567238c9
KB
50402019-07-27 Kevin Buettner <kevinb@redhat.com>
5041
5042 * stack.c (find_frame_funname): Remove code which preferred
5043 minsym over symtab sym in "certain pathological cases".
5044
2dc80cf8
KB
5045 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5046 parameter. Change type of "do_demangle" to bool.
5047 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5048 Pass suitable "prefer_sym_over_minsym" flag to
5049 build_address_symbolic(). Don't output "+" for negative offsets.
5050 * printcmd.c (print_address_symbolic): Update invocation of
5051 build_address_symbolic to include a "prefer_sym_over_minsym"
5052 flag.
5053 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5054 Restrict cases in which use of minimal symbol is preferred to that
5055 of a found symbol. Update comments.
5056
1aff7173
KB
5057 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5058 for entry pc when entry pc is out of range for that FDE.
5059
89b085ac
BC
50602019-07-26 Brian Callahan <bcallah@openbsd.org>
5061
5062 PR gdb/24839:
5063 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5064 type.
5065
f32feb4a
CB
50662019-07-25 Christian Biesinger <cbiesinger@google.com>
5067
5068 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5069 this function's Python signature.
5070
5071
50722019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
5073
5074 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5075 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5076 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5077 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5078 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5079
5080
c54e4253
YS
50812019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5082
5083 * h8300-tdep.c (h8300_register_name_common): New.
5084 h8300_register_name): Use h8300_register_name_common.
5085 (h8300s_register_name): Likewise.
5086 (h8300sx_register_name): Likewise.
5087 (h8300h_register_nam): New.
5088 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5089
5090
40eadf04
SP
50912019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5092
5093 * arm-tdep.c (arm_skip_cmse_entry): New function.
5094 (arm_is_sgstubs_section): New function.
5095 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5096
bfa2a36d
TT
50972019-07-22 Tom Tromey <tom@tromey.com>
5098
5099 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5100 Don't self-assign.
5101
a8e9d247
AB
51022019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5103
5104 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5105 type_print.
5106
eb86c5e2
AB
51072019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5108
5109 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5110 so that GDB doesn't match any msymbols when searching in the
5111 TYPES_DOMAIN.
5112 (print_symbol_info): Print using typedef_print or type_print based
5113 on the type of the symbol. Add updated FIXME comment moved from...
5114 (_initialize_symtab): ... move and update FIXME comment to above.
5115
a8eab7c6
AB
51162019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5117
5118 * NEWS: Mention adding -q option to "info types".
5119 * symtab.c (struct info_types_options): New struct.
5120 (info_types_options_defs): New variable.
5121 (make_info_types_options_def_group): New function.
5122 (info_types_command): Use gdb::option framework to parse options.
5123 (info_types_command_completer): New function.
5124 (_initialize_symtab): Extend the help text on "info types" and
5125 register command completer.
5126
b4603c34
CB
51272019-07-21 Christian Biesinger <cbiesinger@google.com>
5128
5129 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5130 (lookup_symbol_in_objfile): Change int to block_enum and add a
5131 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5132
c8cdc1e0
CB
51332019-07-20 Christian Biesinger <cbiesinger@google.com>
5134
5135 * MAINTAINERS (Write After Approval): Add self.
5136
01e175fe
AB
51372019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5138
5139 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5140 instruction to the dummy code region.
5141
56f79b63
TT
51422019-07-19 Tom Tromey <tromey@adacore.com>
5143
5144 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5145 (ARGSUSED, PARAMS, __func__): Remove rules.
5146
4c5aa8e0
AH
51472019-07-19 Alan Hayward <alan.hayward@arm.com>
5148
5149 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5150 * features/arm/arm-with-iwmmxt.c: Remove.
5151 * features/arm/arm-with-iwmmxt.xml: Remove.
5152 * features/arm/arm-with-m-fpa-layout.c: Remove.
5153 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5154 * features/arm/arm-with-m-vfp-d16.c: Remove.
5155 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5156 * features/arm/arm-with-m.c: Remove.
5157 * features/arm/arm-with-m.xml: Remove.
5158 * features/arm/arm-with-neon.c: Remove.
5159 * features/arm/arm-with-neon.xml: Remove.
5160 * features/arm/arm-with-vfpv2.c: Remove.
5161 * features/arm/arm-with-vfpv2.xml: Remove.
5162 * features/arm/arm-with-vfpv3.c: Remove.
5163 * features/arm/arm-with-vfpv3.xml: Remove.
5164
f42b2617
AH
51652019-07-19 Alan Hayward <alan.hayward@arm.com>
5166
5167 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5168
f29ec966
AH
51692019-07-19 Alan Hayward <alan.hayward@arm.com>
5170
5171 * arch/aarch32.c (aarch32_create_target_description): Create
5172 target descriptions using features.
5173 * arch/arm.c (arm_create_target_description)
5174 (arm_create_mprofile_target_description): Likewise.
5175 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5176
d105cce5
AH
51772019-07-19 Alan Hayward <alan.hayward@arm.com>
5178
5179 * Makefile.in: Add new files.
5180 * aarch32-tdep.c: New file.
5181 * aarch32-tdep.h: New file.
5182 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5183 Call aarch32_read_description.
5184 * arch/aarch32.c: New file.
5185 * arch/aarch32.h: New file.
5186 * arch/arm.c (arm_create_target_description)
5187 (arm_create_mprofile_target_description): New function.
5188 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5189 (arm_create_target_description)
5190 (arm_create_mprofile_target_description): New declaration.
5191 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5192 read_description functions.
5193 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5194 Likewise.
5195 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5196 * arm-tdep.c (tdesc_arm_list): New variable.
5197 (arm_register_g_packet_guesses): Call create description functions.
5198 (arm_read_description) (arm_read_mprofile_description): New
5199 function.
5200 * arm-tdep.h (arm_read_description)
5201 (arm_read_mprofile_description): Add declaration.
5202 * configure.tgt: Add new files.
5203
afe09f0b
GL
52042019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5205
5206 * top.c (new_ui_command): Open specified terminal just once.
5207
cd215b2e
TT
52082019-07-18 Tom Tromey <tromey@adacore.com>
5209
5210 * symtab.c (main_name): Constify return type.
5211 * symfile.c (set_initial_language): Update.
5212 * symtab.h (main_name): Constify return type.
5213
d8f68fcb
TT
52142019-07-17 Tom Tromey <tom@tromey.com>
5215
5216 * tui/tui-winsource.c (tui_update_source_window)
5217 (tui_update_source_window_as_is)
5218 (tui_update_source_windows_with_line): Remove return.
5219 * tui/tui-disasm.c (tui_show_disassem)
5220 (tui_show_disassem_and_update_source): Remove return.
5221 * tui/tui.c (tui_reset): Remove return.
5222 * tui/tui-wingeneral.c
5223 (tui_check_and_display_highlight_if_needed): Remove return.
5224
ca5af91e
TT
52252019-07-17 Tom Tromey <tom@tromey.com>
5226
5227 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5228
5104fe36
TT
52292019-07-17 Tom Tromey <tom@tromey.com>
5230
5231 * tui/tui-winsource.h (struct tui_exec_info_window)
5232 (struct tui_source_window_base): Move from tui-data.h.
5233 * tui/tui-winsource.c: Move many method definitions from
5234 elsewhere. Remove "structuring" comments.
5235 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5236 (tui_source_window_base::refresh_window): Move to
5237 tui-winsource.c.
5238 * tui/tui-win.c (tui_source_window_base::refresh_all)
5239 (tui_source_window_base::update_tab_width)
5240 (tui_source_window_base::set_new_height)
5241 (tui_source_window_base::do_make_visible_with_new_height): Move to
5242 tui-winsource.c.
5243 * tui/tui-source.h: Update.
5244 * tui/tui-source.c (tui_source_window_base::reset): Move to
5245 tui-winsource.c.
5246 * tui/tui-disasm.h: Update.
5247 * tui/tui-data.h (struct tui_exec_info_window): Move to
5248 tui-winsource.h.
5249 (struct tui_source_window_base): Likewise.
5250 * tui/tui-data.c (tui_source_window_base::clear_detail)
5251 (tui_source_window_base, ~tui_source_window_base): Move to
5252 tui-winsource.c.
5253
daa15dde
TT
52542019-07-17 Tom Tromey <tom@tromey.com>
5255
5256 * tui/tui-win.c (tui_resize_all)
5257 (tui_source_window_base::update_tab_width)
5258 (tui_adjust_win_heights): Update.
5259 (tui_win_info::make_invisible_and_set_new_height): Rename from
5260 make_invisible_and_set_new_height.
5261 * tui/tui-data.h (struct tui_win_info)
5262 <make_invisible_and_set_new_height>: New method.
5263
bfad4537
TT
52642019-07-17 Tom Tromey <tom@tromey.com>
5265
5266 * tui/tui.c: Update.
5267 * tui/tui-source.h (struct tui_source_window): Move from
5268 tui-data.h.
5269 * tui/tui-layout.c: Update.
5270 * tui/tui-disasm.c: Update.
5271 * tui/tui-data.h (struct tui_source_window): Move to
5272 tui-source.h.
5273
88f7e873
TT
52742019-07-17 Tom Tromey <tom@tromey.com>
5275
5276 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5277 tui-data.h.
5278 * tui/tui-data.h (struct tui_disasm_window): Move to
5279 tui-disasm.h.
5280
96bd6233
TT
52812019-07-17 Tom Tromey <tom@tromey.com>
5282
5283 * tui/tui-regs.h (struct tui_data_item_window): Move from
5284 tui-data.h.
5285 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5286 * tui/tui-data.h (struct tui_data_item_window): Move to
5287 tui-regs.h.
5288 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5289
ce38393b
TT
52902019-07-17 Tom Tromey <tom@tromey.com>
5291
5292 * tui/tui.c: Update.
5293 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5294 (tui_cmd_window::max_height): Move to tui-command.c.
5295 * tui/tui-layout.c: Update.
5296 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5297 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5298 tui-command.c.
5299 * tui/tui-command.h (struct tui_cmd_window): Move from
5300 tui-data.h.
5301 * tui/tui-command.c: Remove "structuring" comments.
5302 (tui_cmd_window::clear_detail)
5303 (tui_cmd_window::do_make_visible_with_new_height)
5304 (tui_cmd_window::max_height): Move from elsewhere.
5305
2d8b51cb
TT
53062019-07-17 Tom Tromey <tom@tromey.com>
5307
5308 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5309 Now static.
5310 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5311 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5312
18ab23af
TT
53132019-07-17 Tom Tromey <tom@tromey.com>
5314
5315 * tui/tui.c: Update.
5316 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5317 tui-regs.c.
5318 * tui/tui-windata.h: Remove file.
5319 * tui/tui-windata.c: Remove file.
5320 * tui/tui-win.c (tui_data_window::set_new_height)
5321 (tui_data_window::do_make_visible_with_new_height): Move to
5322 tui-regs.c.
5323 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5324 * tui/tui-regs.c: Remove "structuring" comments.
5325 (tui_data_window::first_data_item_displayed)
5326 (tui_data_window::delete_data_content_windows)
5327 (tui_data_window::erase_data_content)
5328 (tui_data_window::display_all_data)
5329 (tui_data_window::refresh_all)
5330 (tui_data_window::do_scroll_vertical)
5331 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5332 (tui_data_window::do_make_visible_with_new_height)
5333 (tui_data_window::refresh_window): Move from elsewhere.
5334 (_initialize_tui_regs): Move to end of file.
5335 * tui/tui-layout.c: Update.
5336 * tui/tui-hooks.c: Update.
5337 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5338 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5339 tui-regs.c.
5340 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5341
88b7e7cc
TT
53422019-07-17 Tom Tromey <tom@tromey.com>
5343
5344 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5345 seen.
5346
0fcd3711
TT
53472019-07-17 Tom Tromey <tom@tromey.com>
5348
5349 * tui/tui-win.c (tui_source_window_base::set_new_height)
5350 (tui_source_window_base::do_make_visible_with_new_height): Use
5351 m_has_locator field directly.
5352 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5353 method.
5354 (struct tui_source_window_base) <has_locator>: Likewise.
5355
4a38112d
TT
53562019-07-17 Tom Tromey <tom@tromey.com>
5357
5358 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5359 Don't declare.
5360 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5361 Remove.
5362 * tui/tui-win.c (tui_source_window_base::set_new_height)
5363 (tui_source_window_base::set_new_height)
5364 (make_invisible_and_set_new_height)
5365 (tui_source_window_base::do_make_visible_with_new_height)
5366 (tui_source_window_base::do_make_visible_with_new_height):
5367 Update.
5368 * tui/tui-layout.c (show_source_disasm_command, show_data)
5369 (show_source_or_disasm_and_command): Update.
5370 * tui/tui-layout.c (show_layout): Update.
5371
09129226
TT
53722019-07-17 Tom Tromey <tom@tromey.com>
5373
5374 * tui/tui-layout.c (make_data_window): Remove.
5375 (show_data): Unify creation and re-initialization cases.
5376
4a8a5e84
TT
53772019-07-17 Tom Tromey <tom@tromey.com>
5378
5379 * tui/tui-layout.c (make_source_window, make_disasm_window):
5380 Remove.
5381 (show_data): Unify creation and re-initialization cases.
5382
76d2be8e
TT
53832019-07-17 Tom Tromey <tom@tromey.com>
5384
5385 * tui/tui-layout.c (make_command_window): Remove.
5386 (show_source_disasm_command, show_source_or_disasm_and_command):
5387 Unify creation and re-initialization cases.
5388
890b8bde
TT
53892019-07-17 Tom Tromey <tom@tromey.com>
5390
5391 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5392 creation and re-initialization cases.
5393
2cdfa113
TT
53942019-07-17 Tom Tromey <tom@tromey.com>
5395
5396 * tui/tui-regs.c (tui_get_register): Return void.
5397
8e3cfd09
TT
53982019-07-17 Tom Tromey <tom@tromey.com>
5399
5400 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5401 Simplify.
5402
f4e04977
TT
54032019-07-17 Tom Tromey <tom@tromey.com>
5404
5405 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5406 resetting.
5407
0379b883
TT
54082019-07-17 Tom Tromey <tom@tromey.com>
5409
5410 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5411 * tui/tui-regs.c (tui_reg_layout): New function.
5412 (tui_show_registers, tui_reg_command): Use it.
5413 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5414 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5415 parameters.
5416 (tui_layout_command): Remove.
5417
b7fbad91
TT
54182019-07-17 Tom Tromey <tom@tromey.com>
5419
5420 * tui/tui-layout.h (tui/tui-layout): Return void.
5421 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5422
4e1e56b9
TT
54232019-07-17 Tom Tromey <tom@tromey.com>
5424
5425 * tui/tui-layout.c (show_source_disasm_command, show_data):
5426 Update.
5427 (reset_locator): Remove.
5428 (show_source_or_disasm_and_command): Update.
5429
1e0c09ba
TT
54302019-07-17 Tom Tromey <tom@tromey.com>
5431
5432 * tui/tui-source.c (tui_source_window_base::reset): Remove
5433 win_type parameter.
5434 * tui/tui-layout.c (make_command_window, make_source_window)
5435 (make_disasm_window, make_data_window)
5436 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5437 (reset_locator, show_source_or_disasm_and_command): Update.
5438 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5439 win_type parameter.
5440 (struct tui_source_window_base) <reset>: Likewise.
5441
1bf605de
TT
54422019-07-17 Tom Tromey <tom@tromey.com>
5443
5444 * tui/tui-layout.c (show_source_disasm_command): Use
5445 reset_locator.
5446 (reset_locator): New function.
5447 (init_and_make_win): Remove.
5448 (show_source_or_disasm_and_command): Use reset_locator.
5449
098f9ed4
TT
54502019-07-17 Tom Tromey <tom@tromey.com>
5451
5452 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5453 condition.
5454 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5455 Remove condition.
5456 * tui/tui-source.c (tui_source_window_base::reset): New method.
5457 * tui/tui-layout.c (make_command_window): Don't call
5458 init_and_make_win.
5459 (make_source_window, make_disasm_window): Don't call
5460 make_source_or_disasm_window.
5461 (make_data_window): Don't call init_and_make_win. Change calling
5462 convention.
5463 (show_source_disasm_command, show_data): Simplify.
5464 (make_source_or_disasm_window): Remove.
5465 (show_source_or_disasm_and_command): Simplify.
5466 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5467 (struct tui_source_window_base) <reset>: Likewise.
5468 <execution_info>: Remove initializer.
5469 * tui/tui-data.c (tui_source_window_base): Initialize
5470 execution_info.
5471
80110957
TT
54722019-07-17 Tom Tromey <tom@tromey.com>
5473
5474 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5475 variable.
5476
cf82af05
TT
54772019-07-17 Tom Tromey <tom@tromey.com>
5478
5479 * tui/tui.c (tui_rl_other_window): Update.
5480 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5481 superclass method first. Always iterate over regs_content.
5482 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5483 method.
5484 * tui/tui-win.c (tui_set_focus_command): Update.
5485
01aeb396
TT
54862019-07-17 Tom Tromey <tom@tromey.com>
5487
5488 * tui/tui-win.c (tui_set_focus_command): Rename from
5489 tui_set_focus. Call tui_enable.
5490 (tui_set_focus_command): Remove.
5491
fd6c75ee
TT
54922019-07-17 Tom Tromey <tom@tromey.com>
5493
5494 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5495 refresh_window.
5496 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5497 touchwin.
5498 (tui_data_window::refresh_window): Call refresh_window on data
5499 items. Always call superclass refresh_window.
5500 (tui_win_info::refresh): Remove.
5501 (tui_source_window_base::refresh_window): Update.
5502 (tui_refresh_all): Update.
5503 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5504 refresh_window.
5505 (show_source_or_disasm_and_command): Likewise.
5506 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5507 (struct tui_source_window_base) <refresh>: Likewise.
5508
f6cc34a9
TT
55092019-07-17 Tom Tromey <tom@tromey.com>
5510
5511 * tui/tui-winsource.c (tui_clear_source_content)
5512 (tui_show_source_content): Update.
5513 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5514 whether content is empty.
5515 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5516 Remove.
5517
f31ec9af
TT
55182019-07-17 Tom Tromey <tom@tromey.com>
5519
5520 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5521 window's contents.
5522 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5523 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5524
d1b6f1e5
TT
55252019-07-17 Tom Tromey <tom@tromey.com>
5526
5527 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5528 (struct tui_data_item_window): Update.
5529
d9743a13
TT
55302019-07-17 Tom Tromey <tom@tromey.com>
5531
5532 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5533 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5534 defines.
5535
caf0bc4e
TT
55362019-07-17 Tom Tromey <tom@tromey.com>
5537
5538 * tui/tui-winsource.h (tui_erase_source_content)
5539 (tui_clear_source_content): Remove "display_prompt" parameter.
5540 * tui/tui-winsource.c (tui_update_source_window_as_is)
5541 (tui_update_source_windows_with_addr): Update.
5542 (tui_clear_source_content): Remove "display_prompt" parameter.
5543 (tui_erase_source_content): Likewise. Simplify.
5544 (tui_show_source_content): Update.
5545 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5546 * tui/tui-stack.c (tui_show_frame_info): Update.
5547 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5548 Remove defines.
5549
9d391078
TT
55502019-07-17 Tom Tromey <tom@tromey.com>
5551
5552 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5553 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5554 parameter.
5555 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5556 parameter.
5557
a38da35d
TT
55582019-07-17 Tom Tromey <tom@tromey.com>
5559
5560 * tui/tui-winsource.c (tui_clear_source_content)
5561 (tui_show_source_content, tui_show_exec_info_content)
5562 (tui_clear_exec_info_content): Update.
5563 * tui/tui-stack.c (tui_show_locator_content): Update.
5564 (tui_show_frame_info): Update.
5565 * tui/tui-source.h (tui_source_window): Don't declare.
5566 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5567 from tui_source_is_displayed.
5568 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5569 Remove field.
5570 (struct tui_source_window_base) <content_in_use>: New field. Now
5571 bool.
5572 (struct tui_source_window) <showing_source_p>: New method.
5573 (TUI_SRC_WIN): Change cast.
5574 * tui/tui-data.c (tui_initialize_static_data): Update.
5575
c2cd8994
TT
55762019-07-17 Tom Tromey <tom@tromey.com>
5577
5578 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5579 location_matches_p.
5580 * tui/tui-source.c (tui_source_window::location_matches_p): New
5581 method.
5582 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5583 method.
5584 * tui/tui-data.h (struct tui_source_window_base)
5585 <location_matches_p>: New method.
5586 (struct tui_source_window, struct tui_disasm_window)
5587 <location_matches_p>: Likewise.
5588
4dde7b34
TT
55892019-07-17 Tom Tromey <tom@tromey.com>
5590
5591 * tui/tui-win.c (tui_set_win_height_command): Rename from
5592 tui_set_win_height.
5593 (tui_set_win_height_command): Remove.
5594
b73dd877
TT
55952019-07-17 Tom Tromey <tom@tromey.com>
5596
5597 * tui/tui-source.c (tui_source_window): New constructor. Add
5598 observer.
5599 (~tui_source_window): New destructor.
5600 (tui_source_window::style_changed): New method.
5601 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5602 (tui_attach_detach_observers): Update.
5603 * tui/tui-data.h (struct tui_source_window): Make constructor not
5604 inline. Add destructor.
5605 (struct tui_source_window) <style_changed>: New method.
5606 <m_observable>: New member.
5607
ae2b5380
TT
56082019-07-17 Tom Tromey <tom@tromey.com>
5609
5610 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5611 * tui/tui-win.c (tui_resize_all): Fix typo.
5612
1ce3e844
TT
56132019-07-17 Tom Tromey <tom@tromey.com>
5614
5615 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5616 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5617 (tui_refresh_all): Remove "list" parameter. Use foreach.
5618 * tui/tui-win.c (window_name_completer): Use foreach.
5619 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5620 (update_tab_width): Likewise.
5621 * tui/tui-layout.c (show_layout): Update.
5622 * tui/tui-data.h (class tui_window_iterator): New.
5623 (struct all_tui_windows): New.
5624 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5625
fe3eaf1c
TT
56262019-07-17 Tom Tromey <tom@tromey.com>
5627
5628 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5629 parameter. Don't reference globals.
5630 (tui_reg_command): Update.
5631
368c1354
TT
56322019-07-17 Tom Tromey <tom@tromey.com>
5633
5634 * tui/tui-regs.c (tui_show_registers): Simplify.
5635
e80cd204
TT
56362019-07-17 Tom Tromey <tom@tromey.com>
5637
5638 * tui/tui-regs.c (tui_show_registers): Update.
5639 (tui_show_register_group): Add win_info parameter.
5640
aca2dd16
TT
56412019-07-17 Tom Tromey <tom@tromey.com>
5642
5643 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5644 Rename from tui_display_reg_element_at_line.
5645 (tui_data_window::display_registers_from_line): Update.
5646 * tui/tui-data.h (struct tui_data_window)
5647 <display_reg_element_at_line>: New method.
5648
517e9505
TT
56492019-07-17 Tom Tromey <tom@tromey.com>
5650
5651 * tui/tui-regs.h (tui_display_registers_from)
5652 (tui_display_registers_from_line): Don't declare.
5653 * tui/tui-windata.c (tui_data_window::display_all_data)
5654 (tui_data_window::refresh_all)
5655 (tui_data_window::do_scroll_vertical): Update.
5656 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5657 from tui_display_registers_from.
5658 (tui_display_reg_element_at_line): Update.
5659 (tui_data_window::display_registers_from_line): Rename from
5660 tui_display_registers_from_line.
5661 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5662 display_registers_from_line>: New methods.
5663
f76d8b19
TT
56642019-07-17 Tom Tromey <tom@tromey.com>
5665
5666 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5667 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5668 from tui_erase_data_content.
5669 (tui_data_window::display_all_data)
5670 (tui_data_window::refresh_all)
5671 (tui_data_window::do_scroll_vertical): Update.
5672 * tui/tui-regs.c (tui_show_registers): Update.
5673 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5674 New method.
5675
b4094625
TT
56762019-07-17 Tom Tromey <tom@tromey.com>
5677
5678 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5679 declare.
5680 * tui/tui-windata.c
5681 (tui_data_window::delete_data_content_windows): Rename from
5682 tui_delete_data_content_windows.
5683 (tui_data_window::display_all_data)
5684 (tui_data_window::do_scroll_vertical): Update.
5685 * tui/tui-data.h (struct tui_data_window)
5686 <delete_data_content_windows>: New method.
5687
c223a729
TT
56882019-07-17 Tom Tromey <tom@tromey.com>
5689
5690 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5691 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5692
50daf268
TT
56932019-07-17 Tom Tromey <tom@tromey.com>
5694
5695 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5696 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5697 from tui_display_all_data.
5698 * tui/tui-win.c
5699 (tui_data_window::do_make_visible_with_new_height): Update.
5700 * tui/tui-regs.c (tui_show_registers): Update.
5701 * tui/tui-layout.c (tui_set_layout): Update.
5702 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5703 method.
5704
df5f8cab
TT
57052019-07-17 Tom Tromey <tom@tromey.com>
5706
5707 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5708 * tui/tui-windata.c (tui_display_data_from): Remove.
5709 (tui_data_window::refresh_all): Update.
5710
80cb6c27
TT
57112019-07-17 Tom Tromey <tom@tromey.com>
5712
5713 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5714 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5715 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5716 tui_display_registers_from_line.
5717 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5718 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5719 "force_display" parameter.
5720
baff0c28
TT
57212019-07-17 Tom Tromey <tom@tromey.com>
5722
5723 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5724 declare.
5725 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5726 Rename from tui_first_reg_element_no_inline.
5727 (tui_display_reg_element_at_line)
5728 (tui_display_registers_from_line): Update.
5729 * tui/tui-data.h (struct tui_data_window)
5730 <first_reg_element_no_inline>: New method.
5731
3b23c5f2
TT
57322019-07-17 Tom Tromey <tom@tromey.com>
5733
5734 * tui/tui-windata.c (tui_display_data_from)
5735 (tui_data_window::do_scroll_vertical): Update.
5736 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5737 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5738 Rename from tui_line_from_reg_element_no.
5739 (tui_display_registers_from_line): Update.
5740 * tui/tui-data.h (struct tui_data_window)
5741 <line_from_reg_element_no>: New method.
5742
0b5ec218
TT
57432019-07-17 Tom Tromey <tom@tromey.com>
5744
5745 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5746 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5747 tui_last_regs_line_no.
5748 (tui_display_reg_element_at_line)
5749 (tui_display_registers_from_line): Update.
5750 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5751 method.
5752
0807ab7b
TT
57532019-07-17 Tom Tromey <tom@tromey.com>
5754
5755 PR tui/24722:
5756 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5757 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5758 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5759 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5760 (tui_update_breakpoint_info): Likewise.
5761 * tui/tui-hooks.c (tui_event_create_breakpoint)
5762 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5763 Update.
5764
9ad7fdef
TT
57652019-07-17 Tom Tromey <tom@tromey.com>
5766
5767 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5768
5813316f
TT
57692019-07-17 Tom Tromey <tom@tromey.com>
5770
5771 * tui/tui-winsource.c (tui_update_source_window_as_is)
5772 (tui_update_source_windows_with_addr): Update.
5773 * tui/tui-source.h (tui_set_source_content)
5774 (tui_show_symtab_source): Add "win_info" parameter.
5775 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5776 parameter.
5777 (tui_show_symtab_source): Likewise.
5778
00e264e7
TT
57792019-07-17 Tom Tromey <tom@tromey.com>
5780
5781 * tui/tui-wingeneral.c
5782 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5783
06210ce4
TT
57842019-07-17 Tom Tromey <tom@tromey.com>
5785
5786 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5787 (struct tui_cmd_window) <can_scroll>: New method.
5788 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5789 method.
5790
381befee
TT
57912019-07-17 Tom Tromey <tromey@adacore.com>
5792
5793 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5794 do_field_signed>: Rename. Change type of "value".
5795 * ui-out.c (ui_out::field_signed): Rename from field_int.
5796 Change type of "value".
5797 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5798 type of "value".
5799 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5800 do_field_int. Change type of "value".
5801 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5802 do_field_int. Change type of "value".
5803 * tracepoint.c (trace_status_mi, tfind_1)
5804 (print_one_static_tracepoint_marker): Update.
5805 * thread.c (print_thread_info_1, print_selected_thread_frame):
5806 Update.
5807 * stack.c (print_frame, print_frame_info): Update.
5808 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5809 Update.
5810 * source.c (print_source_lines_base): Update.
5811 * skip.c (info_skip_command): Update.
5812 * record-btrace.c (btrace_ui_out_decode_error)
5813 (btrace_call_history_src_line): Update.
5814 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5815 Update.
5816 * progspace.c (print_program_space): Update.
5817 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5818 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5819 do_field_int. Change type of "value".
5820 * mi/mi-out.c (mi_ui_out::do_table_begin)
5821 (mi_ui_out::do_table_header): Update.
5822 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5823 type of "value".
5824 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5825 (mi_cmd_data_list_changed_registers, output_register)
5826 (mi_cmd_data_read_memory, mi_load_progress)
5827 (mi_cmd_trace_frame_collected): Update.
5828 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5829 Update.
5830 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5831 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5832 (mi_cmd_var_list_children, varobj_update_one): Update.
5833 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5834 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5835 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5836 * inferior.c (print_inferior): Update.
5837 * gdb_bfd.c (print_one_bfd): Update.
5838 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5839 Update.
5840 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5841 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5842 do_field_int. Change type of "value".
5843 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5844 do_field_int. Change type of "value".
5845 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5846 (print_one_breakpoint_location, print_it_catch_fork)
5847 (print_one_catch_fork, print_it_catch_vfork)
5848 (print_one_catch_vfork, print_it_catch_solib)
5849 (print_it_catch_exec, print_it_ranged_breakpoint)
5850 (print_mention_watchpoint, print_mention_masked_watchpoint)
5851 (bkpt_print_it, update_static_tracepoint): Update.
5852 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5853 * break-catch-syscall.c (print_it_catch_syscall): Update.
5854 * ada-tasks.c (print_ada_task_info): Update.
5855 * ada-lang.c (print_it_exception, print_mention_exception):
5856 Update.
5857
6b78c3f8
AB
58582019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5859
5860 PR breakpoints/24541
5861 * gdbarch.c: Regenerate.
5862 * gdbarch.h: Regenerate.
5863 * gdbarch.sh: Adjust return type and parameter types for
5864 'stap_adjust_register'.
5865 (i386_stap_adjust_register): Adjust signature and return new
5866 register name.
5867 * stap-probe.c (stap_parse_register_operand): Adjust use of
5868 'gdbarch_stap_adjust_register'.
5869
d72a9b85
TT
58702019-07-17 Tom Tromey <tromey@adacore.com>
5871
5872 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5873 declare VEC.
5874 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5875 std::vector.
5876 (struct s390_process_info): Add initializers.
5877 (s390_add_process): Use new.
5878 (s390_linux_nat_target::low_forget_process): Use delete.
5879 (s390_linux_nat_target::low_new_fork)
5880 (s390_linux_nat_target::stopped_by_watchpoint)
5881 (s390_linux_nat_target::low_prepare_to_resume)
5882 (s390_linux_nat_target::insert_watchpoint)
5883 (s390_linux_nat_target::insert_hw_breakpoint)
5884 (s390_linux_nat_target::remove_watchpoint)
5885 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5886
206e6c58
JB
58872019-07-16 John Baldwin <jhb@FreeBSD.org>
5888
5889 * aarch64-fbsd-nat.c: Include regcache.h.
5890 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5891 argument.
5892 (aarch64_fbsd_nat_target::fetch_registers)
5893 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5894 variable.
5895 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5896
cbde90f2
JB
58972019-07-16 John Baldwin <jhb@FreeBSD.org>
5898
5899 * fbsd-nat.c: Include gdbarch.h.
5900
07128006
TT
59012019-07-15 Tom Tromey <tromey@adacore.com>
5902
5903 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5904
1f77b012
TT
59052019-07-15 Tom Tromey <tromey@adacore.com>
5906
5907 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5908 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5909 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5910 * cli-out.c (cli_ui_out::do_field_int): New method.
5911 * ui-out.c (ui_out::field_unsigned): New method.
5912 * symfile.c (generic_load): Use field_unsigned.
5913 (print_transfer_performance): Likewise.
5914 * record-btrace.c (ui_out_field_uint): Remove.
5915 (btrace_call_history_insn_range, btrace_call_history): Use
5916 field_unsigned.
5917 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5918 field_unsigned.
5919 * ui-out.h (class ui_out) <field_unsigned>: New method.
5920 <do_field_unsigned>: Likewise.
5921
33eca680
TT
59222019-07-15 Tom Tromey <tromey@adacore.com>
5923
5924 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5925 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5926 * target.c (flash_erase_command): Use field_string.
5927 * infrun.c (print_signal_received_reason): Use field_string.
5928 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5929 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5930 field_string.
5931 * ada-tasks.c (print_ada_task_info): Use field_string.
5932
ca8d69be
TT
59332019-07-15 Tom Tromey <tromey@adacore.com>
5934
5935 * target.c (flash_erase_command): Use field_core_addr.
5936 * symfile.c (generic_load): Use field_core_addr.
5937 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5938 Use field_core_addr.
5939 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5940 field_core_addr.
5941
0d4e84ed
AB
59422019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5943
5944 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5945 value if its desired type is smaller than a CORE_ADDR and signed.
5946
9a49df9d
AB
59472019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5948
5949 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5950 of changes to field names, and use new is_reference field to
5951 decide if a property is a reference or not.
5952 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5953 field.
5954 (struct dwarf2_property_baton): Update header comment, rename
5955 'referenced_type' to 'property_type' and update comments.
5956 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5957 default property type, store in property baton, update to take
5958 accound of renamed field.
5959 (read_func_scope): Update call to attr_to_dynamic_prop.
5960 (read_array_type): Likewise.
5961 (dwarf2_per_cu_addr_sized_int_type): New function.
5962 (read_subrange_index_type): Move type finding code to
5963 dwarf2_per_cu_addr_sized_int_type.
5964 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5965 (dwarf2_per_cu_addr_type): New function.
5966 (set_die_type): Update calls to attr_to_dynamic_prop.
5967
b86352cf
AB
59682019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5969
5970 * dwarf2read.c (read_subrange_index_type): New function.
5971 (read_subrange_type): Move code into new function and call it.
5972 * gdbtypes.c (create_range_type): Add some asserts.
5973
603490bf
AB
59742019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5975
5976 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5977 update return statements.
5978 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5979 declaration, and update comment to match.
5980 * gdbtypes.c (resolve_dynamic_array): Update call to
5981 dwarf2_evaluate_property to match new return type.
5982
592f9d27
AB
59832019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5984
5985 * valarith.c (value_subscripted_rvalue): Change lowerbound
5986 parameter type from int to LONGEST.
5987 * value.h (value_subscripted_rvalue): Likewise in declaration.
5988
60cfcb20
AB
59892019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5990
5991 * cli/cli-utils.c (info_print_command_completer): New function.
5992 * cli/cli-utils.h: Add 'completer.h' include, and forward
5993 declaration for 'struct cmd_list_element'.
5994 (info_print_command_completer): Declare.
5995 * stack.c (_initialize_stack): Add completer for 'info locals' and
5996 'info args'.
5997 * symtab.c (_initialize_symtab): Add completer for 'info
5998 variables' and 'info functions'.
5999 * NEWS: Mention completion for additional info commands.
6000
b16507e0
AB
60012019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6002
6003 * cli/cli-utils.c (extract_info_print_args): Delete.
6004 (extract_arg_maybe_quoted): Delete.
6005 (info_print_options_defs): New variable.
6006 (make_info_print_options_def_group): New function.
6007 (extract_info_print_options): Define new function.
6008 * cli/cli-utils.h (extract_info_print_args): Delete.
6009 (struct info_print_options): New structure.
6010 (extract_info_print_options): Declare new function.
6011 * stack.c (info_locals_command): Update to use new
6012 extract_info_print_options, also add a header comment.
6013 (info_args_command): Likewise.
6014 * symtab.c (info_variables_command): Likewise.
6015 (info_functions_command): Likewise.
6016
021d8588
AB
60172019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6018
6019 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6020 to extract string arguments.
6021 * common/common-utils.c (extract_string_maybe_quoted): New function.
6022 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6023
b777eb6d
TT
60242019-07-11 Tom Tromey <tromey@adacore.com>
6025
6026 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6027 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6028 * top.h (gdbinit): Don't declare.
6029 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6030 into...
6031 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6032 * top.c (gdb_init): Don't call init_cli_cmds.
6033 (gdbinit): Remove.
6034 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6035
72ee03ff
TT
60362019-07-11 Tom Tromey <tromey@adacore.com>
6037
6038 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6039 after it has been moved.
6040
00db9531
SM
60412019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6042
6043 * valops.c (value_must_coerce_to_target): Change return type to
6044 bool.
6045 * value.h (value_must_coerce_to_target): Likewise.
6046
f2478a7e
SM
60472019-07-10 Simon Marchi <simon.marchi@efficios.com>
6048
6049 * breakpoint.c (is_hardware_watchpoint): Remove
6050 forward-declaration.
6051 (is_masked_watchpoint): Change return type to bool.
6052 (is_tracepoint): Likewise.
6053 (is_breakpoint): Likewise.
6054 (is_hardware_watchpoint): Likewise.
6055 (is_watchpoint): Likewise.
6056 (is_no_memory_software_watchpoint): Likewise.
6057 (is_catchpoint): Likewise.
6058 (breakpoint_1): Make FILTER parameter's return type bool.
6059 is_masked_watchpoint): Change return type to bool.
6060 (save_breakpoints): Make FILTER parameter's return type bool.
6061 * breakpoint.h (is_breakpoint): Change return type to bool.
6062 (is_watchpoint): Likewise.
6063 (is_catchpoint): Likewise.
6064 (is_tracepoint): Likewise.
6065
0d12e84c
TT
60662019-07-10 Tom Tromey <tom@tromey.com>
6067
6068 * defs.h: Don't include gdbarch.h.
6069 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6070 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6071 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6072 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6073 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6074 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6075 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6076 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6077 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6078 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6079 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6080 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6081 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6082 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6083 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6084 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6085 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6086 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6087 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6088 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6089 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6090 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6091 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6092 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6093 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6094 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6095 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6096
f06f1252
TT
60972019-07-10 Tom Tromey <tromey@adacore.com>
6098
6099 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6100 * breakpoint.c (init_ada_exception_breakpoint): Register as
6101 bp_catchpoint.
6102 (print_one_breakpoint_location, print_one_breakpoint): Use
6103 is_ada_exception_catchpoint.
6104 * ada-lang.c (class ada_catchpoint_location): Pass
6105 bp_loc_software_breakpoint to bp_location constructor.
6106 (is_ada_exception_catchpoint): New function.
6107
7a5d944b
TT
61082019-07-10 Tom Tromey <tromey@adacore.com>
6109
6110 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6111 VEC.
6112 (struct arm_exidx_entry): New method operator<.
6113 (struct arm_exidx_data) <section_maps>: Change type.
6114 (arm_exidx_data_free): Remove.
6115 (arm_exidx_data_key): Change type. Move lower.
6116 (arm_exidx_new_objfile): Update.
6117 (arm_compare_exidx_entries): Remove.
6118 (arm_find_exidx_entry, _initialize_arm_tdep)
6119
48c66e1d
TT
61202019-07-10 Tom Tromey <tromey@adacore.com>
6121
6122 * solib-spu.c (ocl_program_data_key): Change type.
6123 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6124 Update.
6125
a269fbf1
TT
61262019-07-10 Tom Tromey <tromey@adacore.com>
6127
6128 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6129 (struct solib_aix_inferior_data) <library_list>: Change type.
6130 (solib_aix_inferior_data_handle): Change type.
6131 (get_solib_aix_inferior_data): Update.
6132 (solib_aix_free_library_list): Remove.
6133 (library_list_start_library): Update.
6134 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6135 return type.
6136 (solib_aix_get_library_list)
6137 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6138 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6139
c294730c
TT
61402019-07-10 Tom Tromey <tromey@adacore.com>
6141
6142 * solib-dsbt.c (struct dsbt_info): Add initializers.
6143 (solib_dsbt_pspace_data): Change type.
6144 (dsbt_pspace_data_cleanup): Remove.
6145 (get_dsbt_info, _initialize_dsbt_solib): Update.
6146
9d52077d
TT
61472019-07-10 Tom Tromey <tromey@adacore.com>
6148
6149 * spu-tdep.c (spu_overlay_data): Change type.
6150 (spu_get_overlay_table, spu_overlay_new_objfile)
6151 (_initialize_spu_tdep): Update.
6152
22a20dca
TT
61532019-07-10 Tom Tromey <tromey@adacore.com>
6154
6155 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6156 destructor.
6157 (dbx_objfile_data_key): Change type and declare later.
6158 (DBX_SYMFILE_INFO): Rewrite.
6159 * dbxread.c (dbx_objfile_data_key): Change type.
6160 (dbx_symfile_init): Update.
6161 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6162 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6163 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6164
cb60f420
TT
61652019-07-10 Tom Tromey <tromey@adacore.com>
6166
6167 * jit.c (jit_program_space_key): Change type. Move lower.
6168 (get_jit_program_space_data): Update.
6169 (jit_program_space_data_cleanup): Remove.
6170 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6171 Update.
6172 (struct jit_program_space_data): Add initializers.
6173
51df2ae3
TT
61742019-07-10 Tom Tromey <tromey@adacore.com>
6175
6176 * solib-darwin.c (struct darwin_info): Add initializers.
6177 (solib_darwin_pspace_data): Change type.
6178 (darwin_pspace_data_cleanup): Remove.
6179 (get_darwin_info, _initialize_darwin_solib): Update.
6180
18101a35
TT
61812019-07-10 Tom Tromey <tromey@adacore.com>
6182
6183 * remote-sim.c (struct sim_inferior_data): Add initializers,
6184 constructor, and destructor.
6185 (sim_inferior_data_key): Change type. Move lower.
6186 (check_for_duplicate_sim_descriptor): Update.
6187 (get_sim_inferior_data): Use new. Update.
6188 (~sim_inferior_data_cleanup): Rename from
6189 sim_inferior_data_cleanup. Simplify.
6190 (gdbsim_close_inferior, simulator_command)
6191 (sim_command_completer, _initialize_remote_sim): Update.
6192 (next_pid, INITIAL_PID): Move earlier.
6193
05b08ac1
TT
61942019-07-10 Tom Tromey <tromey@adacore.com>
6195
6196 * python/python-internal.h (create_thread_object): Return
6197 gdbpy_ref.
6198 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6199 * python/py-inferior.c (struct threadlist_entry): Add
6200 constructor.
6201 <thread_obj>: Now a gdbpy_ref.
6202 (thread_to_thread_object): Update.
6203 (add_thread_object): Use new.
6204 (delete_thread_object): Use delete.
6205 (infpy_threads): Update.
6206 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6207 GIL.
6208
32372d80
TT
62092019-07-10 Tom Tromey <tromey@adacore.com>
6210
6211 * valops.c (value_cast): Specialize error message for Ada.
6212
5c458ae8
SM
62132019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6214
6215 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6216
4c462cb0
SM
62172019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6218
6219 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6220 bpstat_should_step): Return bool, adjust comments.
6221 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6222 bpstat_should_step): Likewise.
6223
89abbcc2
AH
62242019-07-10 Alan Hayward <alan.hayward@arm.com>
6225
6226 * features/Makefile: Use feature target descriptions for Arm.
6227 * features/arm/arm-core.c: Generate new file.
6228 * features/arm/arm-fpa.c: Likewise.
6229 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6230 * features/arm/arm-m-profile.c: Likewise.
6231 * features/arm/arm-vfpv2.c: Likewise.
6232 * features/arm/arm-vfpv3.c: Likewise.
6233 * features/arm/xscale-iwmmxt.c: Likewise.
6234 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6235
166a82be
AH
62362019-07-10 Alan Hayward <alan.hayward@arm.com>
6237
6238 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6239 ptrace earlier.
6240
9fb4c7e9
AH
62412019-07-10 Alan Hayward <alan.hayward@arm.com>
6242
6243 * features/aarch64-pauth.c: Regenerate.
6244
e2d0f980
SM
62452019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6246
6247 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6248 bool.
6249 (bpstat_what): Use false instead of 0.
6250
a38118e5
PA
62512019-07-09 Pedro Alves <palves@redhat.com>
6252
6253 * break-catch-throw.c (is_exception_catchpoint): New.
6254 * breakpoint.c (print_one_breakpoint_location): New parameter
6255 'raw_loc'. Handle it. Use
6256 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6257 looking at the breakpoint's type.
6258 (print_one_breakpoint): If handling "maint info breakpoints", also
6259 print locations of exception catchpoints.
6260 * breakpoint.h (is_exception_catchpoint): Declare.
6261
cb1e4e32
PA
62622019-07-09 Pedro Alves <palves@redhat.com>
6263
6264 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6265 "addr" field.
6266 (allocate_location_exception_catchpoint): New.
6267 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6268 (initialize_throw_catchpoint_ops): Install
6269 allocate_location_exception_catchpoint as allocate_location
6270 method.
6271 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6272 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6273 bp_loc_other.
6274 (breakpoint_address_is_meaningful): Delete.
6275 (bl_address_is_meaningful): New.
6276 (breakpoint_locations_match): Adjust comment.
6277 (bp_location_from_bp_type): New, factored out of...
6278 (bp_location::bp_location(breakpoint *)): ... this.
6279 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6280 factored out of...
6281 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6282 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6283 breakpoint_address_is_meaningful.
6284 (bp_locations_compare): Adjust comment.
6285 (update_global_location_list): Use bl_address_is_meaningful
6286 instead of breakpoint_address_is_meaningful.
6287 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6288 explicit.
6289 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6290 * python/py-breakpoint.c (bppy_get_location): No longer check
6291 whether location is null.
6292
b58a68fe
PA
62932019-07-09 Pedro Alves <palves@redhat.com>
6294
6295 PR c++/15468
6296 * breakpoint.c (print_one_breakpoint_location): Remove
6297 single-location assert.
6298
268a13a5
TT
62992019-07-09 Tom Tromey <tom@tromey.com>
6300
6301 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6302 * configure: Rebuild.
6303 * configure.ac: Change common to gdbsupport.
6304 * gdbsupport: Rename from common.
6305 * acinclude.m4: Change common to gdbsupport.
6306 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6307 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6308 gdbsupport.
6309 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6310 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6311 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6312 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6313 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6314 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6315 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6316 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6317 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6318 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6319 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6320 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6321 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6322 coff-pe-read.c, command.h, compile/compile-c-support.c,
6323 compile/compile-c.h, compile/compile-cplus-symbols.c,
6324 compile/compile-cplus-types.c, compile/compile-cplus.h,
6325 compile/compile-loc2c.c, compile/compile.c, completer.c,
6326 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6327 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6328 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6329 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6330 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6331 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6332 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6333 features/aarch64-core.c, features/aarch64-fpu.c,
6334 features/aarch64-pauth.c, features/aarch64-sve.c,
6335 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6336 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6337 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6338 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6339 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6340 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6341 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6342 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6343 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6344 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6345 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6346 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6347 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6348 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6349 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6350 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6351 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6352 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6353 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6354 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6355 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6356 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6357 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6358 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6359 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6360 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6361 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6362 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6363 minsyms.c, mips-linux-tdep.c, namespace.h,
6364 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6365 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6366 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6367 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6368 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6369 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6370 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6371 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6372 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6373 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6374 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6375 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6376 procfs.c, producer.c, progspace.h, psymtab.h,
6377 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6378 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6379 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6380 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6381 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6382 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6383 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6384 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6385 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6386 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6387 target-memory.c, target.c, target.h, target/waitstatus.c,
6388 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6389 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6390 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6391 unittests/array-view-selftests.c,
6392 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6393 unittests/common-utils-selftests.c,
6394 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6395 unittests/format_pieces-selftests.c,
6396 unittests/function-view-selftests.c,
6397 unittests/lookup_name_info-selftests.c,
6398 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6399 unittests/mkdir-recursive-selftests.c,
6400 unittests/observable-selftests.c,
6401 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6402 unittests/parse-connection-spec-selftests.c,
6403 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6404 unittests/scoped_fd-selftests.c,
6405 unittests/scoped_mmap-selftests.c,
6406 unittests/scoped_restore-selftests.c,
6407 unittests/string_view-selftests.c, unittests/style-selftests.c,
6408 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6409 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6410 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6411 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6412 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6413 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6414
5b0e2db4
AB
64152019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6416
6417 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6418 bool value.
6419 (decode_digits_ordinary): Set explicit_line field in sal.
6420 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6421 symtab_and_line that was set on an explicit line number in
6422 assembler code. Do always update the recorded symtab and line if
6423 we do skip the prologue.
6424
0ba852ab
AB
64252019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6426
6427 * breakpoint.c (set_breakpoint_location_function): Remove
6428 explicit_loc parameter.
6429 (momentary_breakpoint_from_master): Update call to
6430 set_breakpoint_location_function.
6431 (add_location_to_breakpoint): Likewise.
6432
b3a7d171
AB
64332019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6434
6435 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6436 required features based on default bfd type when no specific bfd
6437 is present.
6438
1f6f6e21
PW
64392019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6440
6441 * NEWS: Mention that GDB printf and eval commands can now print
6442 C-style and Ada-style convenience var strings without
6443 calling the inferior.
6444 * printcmd.c (printf_c_string): Locally print GDB internal var
6445 instead of transiting via the inferior.
6446 (printf_wide_c_string): Likewise.
6447
64482019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 6449
5862c886 6450 PR breakpoints/25011
ea142fbf
AH
6451 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6452
0598af48
TT
64532019-07-04 Tom Tromey <tom@tromey.com>
6454
6455 PR tui/24724:
6456 * tui/tui-winsource.c (tui_clear_source_content): Update.
6457 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6458 (tui_update_breakpoint_info): Update.
6459 (tui_set_exec_info_content): Update.
6460 * tui/tui-source.c (tui_set_source_content_nil): Update.
6461 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6462 has_break.
6463 * tui/tui-data.h (enum tui_bp_flag): New.
6464 (tui_bp_flags): New enum flags type.
6465 (struct tui_source_element) <break_mode>: Change type. Rename
6466 from has_break.
6467 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6468 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6469 constants.
6470 * tui/tui-winsource.h: Fix comment.
6471
350fab54
AH
64722019-07-04 Alan Hayward <alan.hayward@arm.com>
6473
6474 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6475 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6476 (store_fpregs_to_thread)
6477 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6478 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6479 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6480 (IWMMXT_REGS_SIZE): Add define.
6481 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6482 (fetch_vfp_regs, store_vfp_regs)
6483 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6484 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6485
f0452268
AH
64862019-07-04 Alan Hayward <alan.hayward@arm.com>
6487
6488 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6489 defines.
6490 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6491 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6492 (ARM_INT_REGISTER_SIZE): ...to this.
6493 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6494 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6495 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6496 (arm_linux_collect_gregset, supply_nwfpe_register)
6497 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6498 defines.
6499 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6500 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6501 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6502 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6503 (arm_return_in_memory, arm_store_return_value)
6504 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6505 (arm_record_ld_st_multiple): Likewise.
6506 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6507 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6508
e935475c
AH
65092019-07-04 Alan Hayward <alan.hayward@arm.com>
6510
6511 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6512 AARCH64_DISPLACED_MODIFIED_INSNS.
6513 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6514 (aarch64_displaced_step_copy_insn): Likewise.
6515 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6516 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6517 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6518 ARM_DISPLACED_MODIFIED_INSNS.
6519 * arm-tdep.c (arm_gdbarch_init): Likewise.
6520 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6521 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6522 (struct arm_displaced_step_closure): Use
6523 ARM_DISPLACED_MODIFIED_INSNS.
6524
df0bb381
AH
65252019-07-04 Alan Hayward <alan.hayward@arm.com>
6526
6527 * features/Makefile: Remove unused xml files.
6528 * features/aarch64.xml: Remove.
6529 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6530 * features/i386/amd64-avx-avx512.xml: Remove.
6531 * features/i386/amd64-avx-linux.xml: Remove.
6532 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6533 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6534 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6535 * features/i386/amd64-avx-mpx.xml: Remove.
6536 * features/i386/amd64-avx.xml: Remove.
6537 * features/i386/amd64-linux.xml: Remove.
6538 * features/i386/amd64-mpx-linux.xml: Remove.
6539 * features/i386/amd64-mpx.xml: Remove.
6540 * features/i386/amd64.xml: Remove.
6541 * features/i386/i386-avx-avx512-linux.xml: Remove.
6542 * features/i386/i386-avx-avx512.xml: Remove.
6543 * features/i386/i386-avx-linux.xml: Remove.
6544 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6545 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6546 * features/i386/i386-avx-mpx-linux.xml: Remove.
6547 * features/i386/i386-avx-mpx.xml: Remove.
6548 * features/i386/i386-avx.xml: Remove.
6549 * features/i386/i386-linux.xml: Remove.
6550 * features/i386/i386-mmx-linux.xml: Remove.
6551 * features/i386/i386-mmx.xml: Remove.
6552 * features/i386/i386-mpx-linux.xml: Remove.
6553 * features/i386/i386-mpx.xml: Remove.
6554 * features/i386/i386.xml: Remove.
6555 * features/i386/x32-avx-avx512-linux.xml: Remove.
6556 * features/i386/x32-avx-linux.xml: Remove.
6557 * features/i386/x32-linux.xml: Remove.
6558
edd6266a
AH
65592019-07-04 Alan Hayward <alan.hayward@arm.com>
6560
6561 * regformats/aarch64.dat: Remove.
6562 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6563 * regformats/i386/amd64-avx-linux.dat: Remove.
6564 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6565 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6566 * regformats/i386/amd64-linux.dat: Remove.
6567 * regformats/i386/amd64-mpx-linux.dat: Remove.
6568 * regformats/i386/amd64.dat: Remove.
6569 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6570 * regformats/i386/i386-avx-linux.dat: Remove.
6571 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6572 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6573 * regformats/i386/i386-linux.dat: Remove.
6574 * regformats/i386/i386-mmx-linux.dat: Remove.
6575 * regformats/i386/i386-mpx-linux.dat: Remove.
6576 * regformats/i386/i386.dat: Remove.
6577 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6578 * regformats/i386/x32-avx-linux.dat: Remove.
6579 * regformats/i386/x32-linux.dat: Remove.
6580
2b40fda7
AH
65812019-07-04 Alan Hayward <alan.hayward@arm.com>
6582
6583 * aarch64-tdep.c: Remove xml self tests.
6584 * amd64-linux-tdep.c: Likewise.
6585 * amd64-tdep.c: Likewise.
6586 * i386-linux-tdep.c: Likewise.
6587 * i386-tdep.c: Likewise.
6588
5f4ba3e7
PA
65892019-07-03 Pedro Alves <palves@redhat.com>
6590
6591 PR cli/24732
6592 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6593 (pipe_cmd_option_defs): New.
6594 (make_pipe_cmd_options_def_group): New.
6595 (pipe_command): Use gdb::option::process_options.
6596 (pipe_command_completer): New function.
6597 (_initialize_cli_cmds): Install completer for "pipe" command.
6598
3d9be6f5
PA
65992019-07-03 Pedro Alves <palves@redhat.com>
6600
6601 * cli/cli-option.c (union option_value) <string>: New field.
6602 (struct option_def_and_value): Add ctor, move ctor, dtor and
6603 use DISABLE_COPY_AND_ASSIGN.
6604 (option_def_and_value::clear_value): New.
6605 (parse_option, save_option_value_in_ctx, get_val_type_str)
6606 (add_setshow_cmds_for_options): Handle var_string.
6607 * cli-option.h (union option_def::var_address) <string>: New
6608 field.
6609 (struct string_option_def): New.
6610 * maint-test-options.c (struct test_options_opts): Add default
6611 ctor and use DISABLE_COPY_AND_ASSIGN.
6612 <string_opt>: New field.
6613 (test_options_opts::~test_options_opts): New.
6614 (test_options_opts::dump): Also dump "-string".
6615 (test_options_option_defs): Install "string.
6616
41fc454c
PA
66172019-07-03 Pedro Alves <palves@redhat.com>
6618
6619 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6620 option_value with a null enumeration.
6621 (complete_options): Save the option values in the context.
6622 (save_option_value_in_ctx): New, factored out from ...
6623 (process_options): ... here.
6624 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6625 of the function.
6626 * maint-test-options.c (test_options_opts::dump): New, factored
6627 out from ...
6628 (maintenance_test_options_command_mode): ... here.
6629 (maintenance_test_options_command_completion_result): Delete.
6630 (maintenance_test_options_command_completion_text): Update
6631 comment.
6632 (maintenance_show_test_options_completion_result): Change
6633 prototype. Just print
6634 maintenance_test_options_command_completion_text.
6635 (save_completion_result): New.
6636 (maintenance_test_options_completer_mode): Pass options context to
6637 complete_options, and then save a dump.
6638 (_initialize_maint_test_options): Use add_cmd to install "maint
6639 show test-options-completion-result".
6640
fdbc9870
PA
66412019-07-03 Pedro Alves <palves@redhat.com>
6642
6643 * NEWS (New commands): Mention "with" and "maint with".
6644 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6645 (with_command, with_command_completer): New.
6646 (pipe_command): Adjust to new repeat_previous
6647 interface.
6648 (_initialize_cli_cmds): Install the "with" command and its "w"
6649 alias.
6650 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6651 declarations.
6652 * cli/cli-setshow.c (parse_cli_var_uinteger)
6653 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6654 argument strings for all var_types.
6655 (get_setshow_command_value_string): New, factored out from ...
6656 (do_show_command): ... this.
6657 * cli/cli-setshow.h: Include <string>.
6658 (get_setshow_command_value_string): Declare.
6659 * command.h (repeat_previous): Now returns const char *. Adjust
6660 comment.
6661 * maint.c: Include "cli/cli-cmds.h".
6662 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6663 (_initialize_maint_cmds): Register the "maintenance with" command.
6664 * top.c (repeat_previous): Move bits from pipe_command here:
6665 Return the saved command line, if any; error out if there's no
6666 command to relaunch.
6667
c6ac8931
PA
66682019-07-03 Pedro Alves <palves@redhat.com>
6669
6670 * NEWS (New commands): Mention "maint set/show test-settings"
6671 instead of "maint test-settings".
6672 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6673 (maintenance_test_settings_set_list): Rename to ...
6674 (maintenance_set_test_settings_list): ... this.
6675 (maintenance_test_settings_show_list): Rename to ...
6676 (maintenance_show_test_settings_list): ... this.
6677 (maintenance_test_settings_cmd): Delete.
6678 (maintenance_test_settings_set_cmd): ...
6679 (maintenance_set_test_settings_cmd): ... this.
6680 (maintenance_test_settings_show_cmd): ...
6681 (maintenance_show_test_settings_cmd): ... this.
6682 (maintenance_test_settings_show_value_cmd):
6683 (maintenance_show_test_settings_value_cmd): ... this.
6684 (_initialize_maint_test_settings): No longer install the "maint
6685 test-settings" prefix command. Rename "maint test-settings set"
6686 to "maint set test-settings", and "maint test-settings show" to
6687 "maint show test-settings". Adjust all subcommands.
6688
d1fcf2fd
PA
66892019-07-03 Pedro Alves <palves@redhat.com>
6690
6691 * maint-test-settings.c: Fix file's intro comment. Replace all
6692 references to "test-options" with references to "test-settings",
6693 in comments.
6694
970f9d09
PA
66952019-07-03 Pedro Alves <palves@redhat.com>
6696
6697 * maint-test-settings.c (maintenance_test_settings_xxx)
6698 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6699 New.
6700 (maintenance_test_settings_enums): Use them.
6701 (maintenance_test_settings_enum): Default to
6702 maintenance_test_settings_xxx.
6703 (_initialize_maint_test_settings): Initialize
6704 MAINTENANCE_TEST_SETTINGS_FILENAME.
6705
f3869b1a
SM
67062019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6707
6708 * breakpoint.h (remove_breakpoints_inf): Change return type to
6709 void, move function documentation here.
6710 * breakpoint.c (remove_breakpoints_inf): Change return type to
6711 void, move function documentation to header.
6712
54d66006
PA
67132019-07-02 Pedro Alves <palves@redhat.com>
6714
6715 * NEWS (Completion improvements): Mention "info threads".
6716 * thread.c (struct info_threads_opts, info_threads_option_defs)
6717 (make_info_threads_options_def_group): New.
6718 (info_threads_command): Use gdb::option::process_options.
6719 (info_threads_command_completer): New.
6720 (_initialize_thread): Use gdb::option::build_help to build the
6721 help text for "info threads".
6722
854f6088
SM
67232019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6724
6725 * defs.h (generic_load): Move from here...
6726 * symfile.h (generic_load): ... to here. Rename name parameter
6727 to args.
6728 * symfile.c (generic_load): Add comment.
6729
54ee4252
TT
67302019-07-01 Tom Tromey <tromey@adacore.com>
6731
6732 * dwarf2read.c
6733 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6734 declaration of without_params. Fix formatting.
6735
65392b3e
TT
67362019-07-01 Tom Tromey <tromey@adacore.com>
6737
6738 * ada-exp.y (find_primitive_type): Update.
6739 * ada-lang.h (ada_lookup_symbol): Update.
6740 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6741 parameter.
6742 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6743
7d7571f0
SDJ
67442019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6745
6746 PR breakpoints/24541
6747 * gdbarch.c: Regenerate.
6748 * gdbarch.h: Regenerate.
6749 * gdbarch.sh: Add 'stap_adjust_register'.
6750 * i386-tdep.c: Include '<unordered_set>'.
6751 (i386_stap_adjust_register): New function.
6752 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6753 * stap-probe.c (stap_parse_register_operand): Call
6754 'gdbarch_stap_adjust_register'.
6755
5af5392a
SDJ
67562019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6757
6758 PR python/24742
6759 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6760 * python/python.c (do_start_initialization): Use 'xmalloc'
6761 instead of 'PyMem_Malloc'.
6762
10d06d82
TT
67632019-06-28 Tom Tromey <tromey@adacore.com>
6764
6765 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6766 for Ada.
6767
1b7f24cd
TT
67682019-06-27 Tom Tromey <tromey@adacore.com>
6769
6770 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6771 objfile_key.
6772 (arm_find_mapping_symbol, arm_record_special_symbol)
6773 (_initialize_arm_tdep): Update.
6774 (arm_objfile_data_free): Remove.
6775
3d507ff2
TT
67762019-06-27 Tom Tromey <tromey@adacore.com>
6777
6778 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6779 to cp_print_static_field.
6780
762c164d
TT
67812019-06-26 Tom Tromey <tromey@adacore.com>
6782
6783 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6784 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6785 declare.
6786
aa2f9bcf
AH
67872019-06-26 Alan Hayward <alan.hayward@arm.com>
6788
6789 * features/aarch64-core.c (create_feature_aarch64_core):
6790 Regenerate.
6791 * features/aarch64-core.xml: Add cpsr flags.
6792
3426ae57
AH
67932019-06-26 Alan Hayward <alan.hayward@arm.com>
6794
6795 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6796 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6797
4838e44c
SM
67982019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6799
6800 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6801 field.
6802 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6803 use.
6804 (arm_record_special_symbol): Don't insert new symbol in sorted
6805 position, push it at the end.
6806
54cc7474
SM
68072019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6808
6809 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6810 (arm_mapping_symbol_s): Remove.
6811 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6812 (arm_mapping_symbol_vec): New typedef.
6813 (struct arm_per_objfile): Add constructor.
6814 <section_maps>: Change type to
6815 std::unique_ptr<arm_mapping_symbol_vec[]>.
6816 (arm_compare_mapping_symbols): Remove.
6817 (arm_find_mapping_symbol): Adjust to section_maps type change.
6818 (arm_objfile_data_free): Call delete on arm_per_objfile.
6819 (arm_record_special_symbol): Adjust to section_maps type change.
6820 Allocate arm_per_objfile with new.
6821
b65b566c
PW
68222019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6823
6824 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6825 with the command prefix.
6826
c2fc64f5
TT
68272019-06-25 Tom Tromey <tom@tromey.com>
6828
6829 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6830 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6831
fb54fa76
TT
68322019-06-25 Tom Tromey <tom@tromey.com>
6833
6834 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6835 type.
6836 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6837 protected.
6838
f7952c57
TT
68392019-06-25 Tom Tromey <tom@tromey.com>
6840
6841 * tui/tui-winsource.c
6842 (tui_source_window_base::set_is_exec_point_at): Add check against
6843 LOA_ADDRESS.
6844
17568d78
TT
68452019-06-25 Tom Tromey <tom@tromey.com>
6846
6847 * tui/tui-source.c (tui_set_source_content): Don't check before
6848 xfree.
6849 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6850
53e7cdba
TT
68512019-06-25 Tom Tromey <tom@tromey.com>
6852
6853 * tui/tui-winsource.h (tui_update_source_window_as_is)
6854 (tui_alloc_source_buffer, tui_line_is_displayed)
6855 (tui_addr_is_displayed): Change type of win_info.
6856 * tui/tui-winsource.c (tui_update_source_window_as_is)
6857 (tui_clear_source_content, tui_show_source_line)
6858 (tui_show_source_content, tui_source_window_base::refill)
6859 (tui_source_window_base::set_is_exec_point_at)
6860 (tui_source_window_base::set_is_exec_point_at)
6861 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6862 (tui_alloc_source_buffer, tui_line_is_displayed)
6863 (tui_addr_is_displayed): Change type of win_info. Update.
6864 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6865 (tui_source_window_base::do_make_visible_with_new_height):
6866 Update.
6867 * tui/tui-source.c (tui_set_source_content)
6868 (tui_set_source_content_nil)
6869 (tui_source_window::do_scroll_vertical): Update.
6870 * tui/tui-layout.c (show_layout): Update.
6871 * tui/tui-disasm.c (tui_set_disassem_content)
6872 (tui_disasm_window::do_scroll_vertical): Update.
6873 * tui/tui-data.h (tui_win_content): Remove.
6874 (struct tui_gen_win_info) <content, content_size>: Remove.
6875 (struct tui_source_element): Add initializers and destructor.
6876 (union tui_which_element, struct tui_win_element): Remove.
6877 (struct tui_source_window_base) <content>: New field.
6878 (struct tui_data_window): Remove destructor.
6879 (tui_alloc_content, tui_free_win_content)
6880 (tui_free_all_source_wins_content): Don't declare.
6881 * tui/tui-data.c (tui_initialize_static_data): Update.
6882 (init_content_element, tui_alloc_content): Remove.
6883 (~tui_gen_win_info): Update.
6884 (~tui_data_window, tui_free_all_source_wins_content)
6885 (tui_free_win_content, free_content, free_content_elements):
6886 Remove.
6887
7908abbf
TT
68882019-06-25 Tom Tromey <tom@tromey.com>
6889
6890 * tui/tui-winsource.h (tui_clear_source_content)
6891 (tui_erase_source_content, tui_show_source_content): Change type
6892 of win_info.
6893 * tui/tui-winsource.c (tui_clear_source_content)
6894 (tui_erase_source_content, tui_show_source_content): Change type
6895 of win_info.
6896 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6897 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6898 win_info.
6899 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6900 win_info.
6901 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6902
02c28df0
TT
69032019-06-25 Tom Tromey <tom@tromey.com>
6904
6905 * tui/tui-winsource.c (tui_clear_source_content)
6906 (tui_source_window_base::set_is_exec_point_at): Update.
6907 * tui/tui-source.c (tui_set_source_content_nil): Update.
6908 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6909 a bool.
6910 * tui/tui-data.c (init_content_element): Update.
6911
6658b1bf
TT
69122019-06-25 Tom Tromey <tom@tromey.com>
6913
6914 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6915 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6916 * tui/tui-layout.c (init_and_make_win): Update.
6917 * tui/tui.h (enum tui_win_type): Update.
6918 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6919 tui_win_is_auxillary.
6920 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6921 tui_win_is_auxillary.
6922
21e1c91e
TT
69232019-06-25 Tom Tromey <tom@tromey.com>
6924
6925 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6926 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6927 (tui_delete_data_content_windows, tui_display_all_data)
6928 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6929 Update.
6930 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6931 * tui/tui-regs.c (tui_last_regs_line_no)
6932 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6933 (tui_show_registers): Update.
6934 (tui_show_register_group): Return void. Update.
6935 (tui_display_registers_from, tui_display_reg_element_at_line)
6936 (tui_display_registers_from_line, tui_check_register_values):
6937 Update.
6938 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6939 member.
6940 (struct tui_data_window) <regs_content>: Now a std::vector.
6941 <regs_content_count>: Remove.
6942 (tui_add_content_elements, tui_free_data_content): Don't declare.
6943 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6944 (init_content_element): Remove DATA_WIN case. Add assert.
6945 (tui_add_content_elements): Remove.
6946 (tui_data_window): Update.
6947 (tui_free_data_content): Remove.
6948 (free_content_elements): Remove DATA_WIN case.
6949
115ac53b
TT
69502019-06-25 Tom Tromey <tom@tromey.com>
6951
6952 * tui/tui-data.c (tui_data_item_window): Update.
6953 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6954 * tui/tui-windata.c (tui_display_all_data)
6955 (tui_display_data_from_line): Update.
6956 (tui_check_data_values): Remove.
6957 * tui/tui-regs.c (tui_show_register_group)
6958 (tui_display_reg_element_at_line): Update.
6959 * tui/tui-hooks.c (tui_register_changed)
6960 (tui_refresh_frame_and_register_information): Call
6961 tui_check_register_values.
6962 * tui/tui-data.h (struct tui_data_window) <data_content,
6963 data_content_count, data_type>: Remove.
6964 (enum tui_data_type): Remove.
6965
6966 * tui/tui-data.c (tui_data_window::clear_detail)
6967 (~tui_data_window): Update.
6968
eaf9738b
TT
69692019-06-25 Tom Tromey <tom@tromey.com>
6970
6971 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6972 declare.
6973 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6974 Rename from tui_first_data_item_displayed. Update.
6975 (tui_data_window::refresh_all)
6976 (tui_data_window::do_scroll_vertical): Update.
6977 * tui/tui-data.h (struct tui_data_window)
6978 <first_data_item_displayed>: Declare new method.
6979
31ca4723
TT
69802019-06-25 Tom Tromey <tom@tromey.com>
6981
6982 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6983 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6984 contents...
6985 (tui_initialize_static_data): ...here.
6986
41bcff7f
TT
69872019-06-25 Tom Tromey <tom@tromey.com>
6988
6989 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6990 (tui_display_registers_from, tui_check_register_values): Update.
6991 (tui_display_register): Remove win_info parameter; update.
6992 (tui_get_register): Change type of parameters.
6993 * tui/tui-data.h (struct tui_data_element): Remove.
6994 (union tui_which_element) <data>: Remove.
6995 <data_window>: Change type.
6996 (struct tui_data_item_window): New.
6997 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6998 case. Add assert.
6999 (~tui_data_item_window): New destructor.
7000 (free_content_elements): Remove DATA_ITEM_WIN case.
7001
d2802c33
TT
70022019-06-25 Tom Tromey <tom@tromey.com>
7003
7004 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7005 Remove.
7006
dd835f8b
TT
70072019-06-25 Tom Tromey <tom@tromey.com>
7008
7009 * tui/tui-data.h (struct tui_command_element): Remove.
7010 (union tui_which_element) <command>: Remove.
7011 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7012 assert.
7013 (free_content_elements): Remove CMD_WIN case.
7014
bd7db367
TT
70152019-06-25 Tom Tromey <tom@tromey.com>
7016
7017 * tui/tui-layout.c (tui_set_layout): Update.
7018 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7019 * tui/tui-data.c (layout_def): Update.
7020
3add462f
TT
70212019-06-25 Tom Tromey <tom@tromey.com>
7022
7023 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7024 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7025 (tui_source_window_base::set_new_height): Update.
7026 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7027 Update.
7028 (tui_set_locator_fullname, tui_set_locator_info)
7029 (tui_show_frame_info): Update.
7030 * tui/tui-source.c (tui_set_source_content)
7031 (tui_source_is_displayed): Update.
7032 * tui/tui-layout.c (show_source_disasm_command, show_data)
7033 (show_source_or_disasm_and_command): Update.
7034 * tui/tui-disasm.c (tui_set_disassem_content)
7035 (tui_get_begin_asm_address): Update.
7036 * tui/tui-data.h (struct tui_locator_element): Remove.
7037 (union tui_which_element) <locator>: Remove.
7038 (struct tui_locator_window): New.
7039 (tui_locator_win_info_ptr): Change return type.
7040 * tui/tui-data.c (_locator): Change type.
7041 (tui_locator_win_info_ptr): Change return type.
7042 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7043 (tui_alloc_content): Add assert.
7044
489e9d8b
TT
70452019-06-25 Tom Tromey <tom@tromey.com>
7046
7047 * tui/tui-winsource.c
7048 (tui_exec_info_window::maybe_allocate_content): New method.
7049 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7050 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7051 (make_source_or_disasm_window): Add cast.
7052 * tui/tui-data.h (union tui_which_element) <simple_string>:
7053 Remove.
7054 (struct tui_source_info): New.
7055 (struct tui_source_window_base) <execution_info>: Change type.
7056 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7057 case, and add assert.
7058 (tui_alloc_content): Add assert.
7059
c3fabb7d
TT
70602019-06-25 Tom Tromey <tom@tromey.com>
7061
7062 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7063 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7064 * tui/tui-data.c (tui_alloc_win_info): Remove.
7065
bbc228ee
TT
70662019-06-25 Tom Tromey <tom@tromey.com>
7067
7068 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7069 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7070 can_highlight.
7071
5fcee43a
TT
70722019-06-25 Tom Tromey <tom@tromey.com>
7073
7074 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7075 make_visible_with_new_height method.
7076 (tui_win_info::make_visible_with_new_height): New method.
7077 (tui_source_window_base::do_make_visible_with_new_height)
7078 (tui_data_window::do_make_visible_with_new_height)
7079 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7080 (make_visible_with_new_height): Remove.
7081 (tui_resize_all, tui_adjust_win_heights): Use
7082 make_visible_with_new_height method.
7083 * tui/tui-data.h (struct tui_win_info)
7084 <do_make_visible_with_new_height, make_visible_with_new_height>:
7085 New methods.
7086 (struct tui_source_window_base, struct tui_data_window)
7087 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7088 methods.
7089
d83f1fe6
TT
70902019-06-25 Tom Tromey <tom@tromey.com>
7091
7092 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7093 method.
7094 (update_tab_width): Call update_tab_width method.
7095 * tui/tui-data.h (struct tui_win_info)
7096 (struct tui_source_window_base) <update_tab_width>: New methods.
7097
17374de4
TT
70982019-06-25 Tom Tromey <tom@tromey.com>
7099
7100 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7101 parameter.
7102 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7103 parameter.
7104 (tui_gen_win_info::make_visible): Update.
7105 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7106 parameter.
7107 * tui/tui-data.h (enum tui_box): New enum.
7108 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7109
f936bca2
TT
71102019-06-25 Tom Tromey <tom@tromey.com>
7111
7112 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7113 init_and_make_win for EXEC_INFO_WIN.
7114 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7115 longer inline.
7116 (struct tui_win_info) <~tui_win_info>: Inline.
7117 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7118 Don't declare.
7119 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7120 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7121 Remove.
7122 (tui_initialize_static_data): Update.
7123 (~tui_gen_win_info): Handle more cleanup here.
7124 (~tui_source_window_base): Delete "execution_info".
7125 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7126
d6ba6a11
TT
71272019-06-25 Tom Tromey <tom@tromey.com>
7128
7129 * tui/tui-layout.c (make_command_window): Don't set
7130 can_highlight.
7131 (show_source_disasm_command): Call the reset method.
7132 (show_data): Don't set can_highlight. Call the reset method.
7133 (tui_gen_win_info::reset): Rename from init_gen_win_info
7134 (init_and_make_win): Simplify. Return tui_gen_win_info.
7135 (show_source_or_disasm_and_command): Call the reset method.
7136 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7137 (struct tui_cmd_window): Set can_highlight.
7138
48a3bd16
TT
71392019-06-25 Tom Tromey <tom@tromey.com>
7140
7141 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7142 from make_visible.
7143 (tui_make_visible, tui_make_invisible): Rewrite.
7144 (tui_win_info::make_visible): Remove.
7145 (tui_source_window_base::make_visible): Update.
7146 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7147 method. Moved from...
7148 (struct tui_win_info) <make_visible>: ...here.
7149
c3bd716f
TT
71502019-06-25 Tom Tromey <tom@tromey.com>
7151
7152 * tui/tui-winsource.c
7153 (tui_source_window_base::do_scroll_horizontal): Remove direction
7154 parameter.
7155 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7156 direction parameter.
7157 * tui/tui-win.c (tui_win_info::forward_scroll)
7158 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7159 (tui_win_info::right_scroll): Update.
7160 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7161 direction parameter.
7162 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7163 direction parameter.
7164 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7165 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7166 Remove direction parameter.
7167 (struct tui_source_window_base, struct tui_source_window)
7168 (struct tui_disasm_window, struct tui_data_window)
7169 (struct tui_cmd_window): Update.
7170
21c32dca
TT
71712019-06-25 Tom Tromey <tom@tromey.com>
7172
7173 * tui/tui-winsource.h (tui_set_exec_info_content)
7174 (tui_show_exec_info_content, tui_erase_exec_info_content)
7175 (tui_clear_exec_info_content, tui_update_exec_info): Change
7176 argument to tui_source_window_base.
7177 * tui/tui-winsource.c (tui_set_exec_info_content)
7178 (tui_show_exec_info_content, tui_erase_exec_info_content)
7179 (tui_clear_exec_info_content, tui_update_exec_info): Change
7180 argument to tui_source_window_base.
7181
73fbdc65
TT
71822019-06-25 Tom Tromey <tom@tromey.com>
7183
7184 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7185 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7186
33325343
TT
71872019-06-25 Tom Tromey <tom@tromey.com>
7188
7189 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7190 check.
7191
29d2c474
TT
71922019-06-25 Tom Tromey <tom@tromey.com>
7193
7194 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7195 type to void.
7196 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7197 type to void.
7198 * tui/tui-source.c (tui_set_source_content): Update.
7199 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7200
152f3f4b
TT
72012019-06-25 Tom Tromey <tom@tromey.com>
7202
7203 * tui/tui-win.c (window_name_completer, tui_set_focus)
7204 (tui_all_windows_info): Use name method.
7205 * tui/tui-data.h (struct tui_gen_win_info)
7206 (struct tui_source_window, struct tui_disasm_window)
7207 (struct tui_data_window, struct tui_cmd_window) <name>: New
7208 method.
7209 (tui_win_name): Don't declare.
7210 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7211 (tui_win_name): Remove.
7212
be4da588
TT
72132019-06-25 Tom Tromey <tom@tromey.com>
7214
7215 * tui/tui-winsource.h (tui_update_source_window)
7216 (tui_update_source_window_as_is): Change parameter type.
7217 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7218 to be a tui_source_window_base.
7219 (tui_update_source_window_as_is): Likewise.
7220 * tui/tui-win.c (make_visible_with_new_height): Update.
7221
5b81daba
TT
72222019-06-25 Tom Tromey <tom@tromey.com>
7223
7224 * tui/tui-winsource.c (tui_erase_source_content)
7225 (tui_show_source_content, tui_show_exec_info_content)
7226 (tui_erase_exec_info_content): Use refresh_window method.
7227 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7228 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7229 from tui_refresh_win.
7230 (tui_data_window::refresh_window): New method.
7231 (tui_win_info::refresh, tui_source_window_base::refresh)
7232 (tui_refresh_all): Use refresh_window method.
7233 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7234 method.
7235 * tui/tui-regs.c (tui_display_register): Call refresh_window
7236 method.
7237 * tui/tui-layout.c (show_source_disasm_command)
7238 (show_source_or_disasm_and_command): Call refresh_window method.
7239 * tui/tui-data.h (struct tui_gen_win_info)
7240 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7241 New method.
7242
cb2ce893
TT
72432019-06-25 Tom Tromey <tom@tromey.com>
7244
7245 * tui/tui.c (tui_rl_other_window, tui_enable)
7246 (tui_is_window_visible, tui_get_command_dimension): Update.
7247 * tui/tui-winsource.c (tui_update_source_window_as_is)
7248 (tui_clear_source_content, tui_erase_source_content)
7249 (tui_show_source_line, tui_source_window_base::refill)
7250 (tui_source_window_base::do_scroll_horizontal)
7251 (tui_source_window_base::set_is_exec_point_at)
7252 (tui_update_breakpoint_info, tui_set_exec_info_content)
7253 (tui_alloc_source_buffer, tui_line_is_displayed)
7254 (tui_addr_is_displayed): Update.
7255 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7256 (tui_check_and_display_highlight_if_needed)
7257 (tui_win_info::make_visible, tui_win_info::refresh)
7258 (tui_refresh_all): Update.
7259 * tui/tui-windata.c (tui_first_data_item_displayed)
7260 (tui_delete_data_content_windows, tui_erase_data_content)
7261 (tui_display_all_data, tui_data_window::refresh_all)
7262 (tui_check_data_values): Update.
7263 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7264 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7265 (tui_win_info::backward_scroll, tui_refresh_all_win)
7266 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7267 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7268 (tui_source_window_base::set_new_height)
7269 (tui_data_window::set_new_height)
7270 (make_invisible_and_set_new_height)
7271 (make_visible_with_new_height, new_height_ok)
7272 (parse_scrolling_args): Update.
7273 * tui/tui-stack.c (tui_show_frame_info): Update.
7274 * tui/tui-source.c (tui_set_source_content)
7275 (tui_set_source_content_nil, tui_source_is_displayed)
7276 (tui_source_window::do_scroll_vertical): Update.
7277 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7278 (tui_display_registers_from, tui_display_reg_element_at_line)
7279 (tui_check_register_values, tui_reg_command): Update.
7280 * tui/tui-layout.c (tui_default_win_height)
7281 (show_source_disasm_command, show_data, init_and_make_win)
7282 (show_source_or_disasm_and_command): Update.
7283 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7284 (tui_redisplay_readline, tui_mld_flush)
7285 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7286 (tui_getc): Update.
7287 * tui/tui-disasm.c (tui_set_disassem_content)
7288 (tui_disasm_window::do_scroll_vertical): Update.
7289 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7290 Now virtual.
7291 (struct tui_win_info): Derive from tui_gen_win_info.
7292 <~tui_win_info>: Mark as override.
7293 <generic>: Remove member.
7294 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7295 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7296 (~tui_data_window, ~tui_win_info)
7297 (tui_free_all_source_wins_content): Update.
7298 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7299
ab313b35
TT
73002019-06-25 Tom Tromey <tom@tromey.com>
7301
7302 * tui/tui-layout.c (init_and_make_win): Use new.
7303 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7304 destructor, initializers.
7305 (tui_alloc_generic_win_info): Don't declare.
7306 * tui/tui-data.c (_locator): Add argument to constructor.
7307 (source_win, disasm_win): New globals.
7308 (exec_info): Remove.
7309 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7310 Update.
7311 (tui_alloc_generic_win_info): Remove.
7312 (init_content_element): Use new.
7313 (tui_win_info::tui_win_info): Update.
7314 (free_content_elements) <case DATA_WIN>: Use delete.
7315
dc2c33e4
TT
73162019-06-25 Tom Tromey <tom@tromey.com>
7317
7318 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7319 * tui/tui-windata.c (tui_first_data_item_displayed)
7320 (tui_delete_data_content_windows): Update.
7321 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7322 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7323 (tui_display_registers_from, tui_check_register_values): Update.
7324 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7325 pointer.
7326 * tui/tui-data.c (init_content_element): Update. Allocate the new
7327 window.
7328 (tui_free_data_content): Update.
7329 (free_content_elements) <case DATA_WIN>: Free the window.
7330
214a5cbe
TT
73312019-06-25 Tom Tromey <tom@tromey.com>
7332
7333 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7334 Update.
7335 * tui/tui-layout.c (make_command_window)
7336 (show_source_disasm_command, show_data, init_and_make_win)
7337 (show_source_or_disasm_and_command): Update.
7338 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7339 method.
7340 <can_highight, is_highlighted>: Now bool.
7341 (tui_set_win_highlight): Don't declare.
7342 * tui/tui-data.c (tui_set_win_highlight): Remove.
7343
8e2daf15
TT
73442019-06-25 Tom Tromey <tom@tromey.com>
7345
7346 * tui/tui-wingeneral.c (make_visible): Remove check of window
7347 type.
7348
8903bd8a
TT
73492019-06-25 Tom Tromey <tom@tromey.com>
7350
7351 * tui/tui-win.c (tui_win_info::max_height)
7352 (tui_cmd_window::max_height): New methods.
7353 (new_height_ok): Call max_height.
7354 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7355 <max_height>: New method.
7356
3f02ce1e
TT
73572019-06-25 Tom Tromey <tom@tromey.com>
7358
7359 * tui/tui-win.c (tui_source_window_base::set_new_height)
7360 (tui_data_window::set_new_height): New methods.
7361 (make_invisible_and_set_new_height): Call set_new_height method.
7362 * tui/tui-data.h (struct tui_win_info)
7363 (struct tui_source_window_base, struct tui_data_window)
7364 <set_new_height>: New method.
7365
1825f487
TT
73662019-06-25 Tom Tromey <tom@tromey.com>
7367
7368 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7369 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7370 tui_refresh_data_win.
7371 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7372 method.
7373 (tui_refresh_all_win): Call the refresh_all method.
7374 (tui_set_focus): Likewise.
7375 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7376 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7377 Likewise.
7378
ad54d15b
TT
73792019-06-25 Tom Tromey <tom@tromey.com>
7380
7381 * tui/tui-winsource.h (tui_refill_source_window)
7382 (tui_set_is_exec_point_at): Don't declare.
7383 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7384 (tui_source_window_base::refill): Rename from
7385 tui_refill_source_window.
7386 (tui_source_window_base::do_scroll_horizontal): Update.
7387 (tui_source_window_base::set_is_exec_point_at): Rename from
7388 tui_set_is_exec_point_at.
7389 (tui_update_all_breakpoint_info): Update.
7390 * tui/tui-stack.c (tui_show_frame_info): Update.
7391 * tui/tui-layout.c (show_data): Add cast.
7392 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7393 * tui/tui-data.h (struct tui_source_window_base) <refill,
7394 set_is_exec_point_at>: New methods.
7395 (tui_source_windows, tui_add_to_source_windows): Update types.
7396 (tui_add_to_source_windows): Remove redundant declaration.
7397 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7398 (tui_source_windows): Change return type.
7399 (tui_clear_source_windows_detail): Update.
7400 (tui_add_to_source_windows): Change type of parameter.
7401 (tui_free_all_source_wins_content): Update.
7402
2042b506
TT
74032019-06-25 Tom Tromey <tom@tromey.com>
7404
7405 * tui/tui-wingeneral.c (tui_win_info::refresh)
7406 (tui_source_window_base::refresh): New methods.
7407 (tui_refresh_all): Call the refresh method.
7408 * tui/tui-data.h (struct tui_win_info)
7409 (struct tui_source_window_base) <refresh>: New method.
7410
56122977
TT
74112019-06-25 Tom Tromey <tom@tromey.com>
7412
7413 * tui/tui.h (tui_is_window_visible): Return bool.
7414 * tui/tui.c (tui_is_window_visible): Return bool.
7415 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7416 (tui_make_visible, tui_make_invisible)
7417 (tui_win_info::make_visible)
7418 (tui_source_window_base::make_visible, make_all_visible)
7419 (tui_make_all_visible, tui_make_all_invisible): Update.
7420 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7421 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7422 bool.
7423 (struct tui_win_info, struct tui_source_window_base)
7424 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7425 * tui/tui-data.c (tui_init_generic_part): Update.
7426
cda37efb
TT
74272019-06-25 Tom Tromey <tom@tromey.com>
7428
7429 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7430 (tui_source_window_base::make_visible): New methods.
7431 (make_all_visible): Make method call.
7432 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7433 (struct tui_source_window_base, struct tui_cmd_window): Override
7434 make_visible.
7435 (tui_win_is_source_type): Don't declare.
7436 * tui/tui-data.c (tui_win_is_source_type): Remove.
7437
6a0ee02c
TT
74382019-06-25 Tom Tromey <tom@tromey.com>
7439
7440 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7441 NULL check.
7442
63901aec
TT
74432019-06-25 Tom Tromey <tom@tromey.com>
7444
7445 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7446 Inline constructor. Add initializers for members.
7447 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7448 constructors; now inline in class.
7449
ceb13a13
TT
74502019-06-25 Tom Tromey <tom@tromey.com>
7451
7452 * tui/tui-regs.c (tui_show_registers): Update.
7453 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7454 bool.
7455 * tui/tui-data.c (tui_data_window::clear_detail)
7456 (tui_data_window): Update.
7457
238eb706
TT
74582019-06-25 Tom Tromey <tom@tromey.com>
7459
7460 * tui/tui-windata.c (tui_display_all_data)
7461 (tui_display_data_from_line, tui_display_data_from)
7462 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7463 Update.
7464 * tui/tui-regs.c (tui_last_regs_line_no)
7465 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7466 (tui_show_registers, tui_show_register_group)
7467 (tui_display_registers_from, tui_display_reg_element_at_line)
7468 (tui_display_registers_from_line, tui_check_register_values)
7469 (tui_reg_next, tui_reg_prev): Update.
7470 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7471 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7472 tui_data_window.
7473 (struct tui_win_info) <detail>: Remove. Add new fields from
7474 tui_data_info.
7475 (TUI_DATA_WIN): Add cast.
7476 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7477 (~tui_data_window): Simplify.
7478
81491aa0
TT
74792019-06-25 Tom Tromey <tom@tromey.com>
7480
7481 * tui/tui-layout.c (show_source_disasm_command)
7482 (show_source_or_disasm_and_command): Update.
7483 * tui/tui-io.c (update_cmdwin_start_line)
7484 (tui_redisplay_readline): Update.
7485 * tui/tui-data.h (struct tui_command_info): Remove.
7486 (struct tui_win_info) <detail>: Remove command_info member.
7487 (struct tui_data_window) <start_line>: New member, from
7488 tui_command_info.
7489 (TUI_CMD_WIN): Add casts.
7490
e6e41501
TT
74912019-06-25 Tom Tromey <tom@tromey.com>
7492
7493 * tui/tui-winsource.c (tui_update_source_window)
7494 (tui_refill_source_window)
7495 (tui_source_window_base::do_scroll_horizontal)
7496 (tui_update_breakpoint_info, tui_set_exec_info_content)
7497 (tui_show_exec_info_content, tui_erase_exec_info_content)
7498 (tui_clear_exec_info_content): Update.
7499 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7500 Update.
7501 * tui/tui-win.c (make_invisible_and_set_new_height)
7502 (make_visible_with_new_height): Update.
7503 * tui/tui-source.c (tui_set_source_content)
7504 (tui_show_symtab_source): Update.
7505 * tui/tui-layout.c (extract_display_start_addr)
7506 (show_source_disasm_command, show_data)
7507 (make_source_or_disasm_window)
7508 (show_source_or_disasm_and_command): Update.
7509 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7510 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7511 "gdbarch".
7512 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7513 to tui_source_window_base.
7514 (struct tui_win_info) <detail>: Remove source_info member.
7515 (struct tui_source_window_base) <has_locator>: Inline.
7516 Move contents from tui_source_info; rename has_locator member to
7517 m_has_locator.
7518 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7519 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7520 header file.
7521 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7522 Simplify.
7523 (tui_free_all_source_wins_content): Cast to
7524 tui_source_window_base.
7525
44f0e208
TT
75262019-06-25 Tom Tromey <tom@tromey.com>
7527
7528 * tui/tui-win.c (make_invisible_and_set_new_height)
7529 (make_visible_with_new_height): Call has_locator method.
7530 * tui/tui-layout.c (show_source_disasm_command, show_data)
7531 (show_source_or_disasm_and_command): Update for bool change.
7532 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7533 (tui_win_info) <has_locator>: New method.
7534 (struct tui_source_window_base) <has_locator>: New method.
7535 (tui_win_has_locator): Don't declare.
7536 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7537 from tui_win_has_locator.
7538 (tui_source_window_base): Use false, not FALSE.
7539
7778b912
TT
75402019-06-25 Tom Tromey <tom@tromey.com>
7541
7542 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7543 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7544 clear_detail method directly.
7545 (tui_clear_win_detail): Remove.
7546
f83d391c
TT
75472019-06-25 Tom Tromey <tom@tromey.com>
7548
7549 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7550 "this", not TUI_DISASM_WIN.
7551
13446e05
TT
75522019-06-25 Tom Tromey <tom@tromey.com>
7553
7554 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7555 declare.
7556 * tui/tui-winsource.c
7557 (tui_source_window_base::do_scroll_horizontal): Rename from
7558 tui_horizontal_source_scroll.
7559 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7560 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7561 from tui_vertical_data_scroll.
7562 * tui/tui-win.h (tui_scroll): Don't declare.
7563 * tui/tui-win.c (tui_win_info::forward_scroll)
7564 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7565 (tui_win_info::right_scroll): Rename and update.
7566 (tui_scroll_forward_command, tui_scroll_backward_command)
7567 (tui_scroll_left_command, tui_scroll_right_command): Update.
7568 (tui_scroll): Remove.
7569 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7570 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7571 from tui_vertical_source_scroll.
7572 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7573 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7574 from tui_vertical_disassem_scroll.
7575 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7576 do_scroll_horizontal>: New methods.
7577 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7578 Likewise.
7579 (struct tui_source_window_base): Add do_scroll_horizontal.
7580 (struct tui_source_window, struct tui_disasm_window): Add
7581 do_scroll_vertical.
7582 (struct tui_data_window, struct tui_cmd_window): Add
7583 do_scroll_horizontal and do_scroll_vertical.
7584 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7585
5cf82909
TT
75862019-06-25 Tom Tromey <tom@tromey.com>
7587
7588 * tui/tui-data.h (struct tui_source_window_base): New struct.
7589 (struct tui_source_window): Derive from tui_source_window_base.
7590 (struct tui_disasm_window): New struct.
7591 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7592 from tui_source_window::clear_detail.
7593 (tui_source_window_base): Rename from tui_source_window.
7594 (~tui_source_window_base): Rename from ~tui_source_window.
7595 (tui_alloc_win_info): Create a tui_disasm_window.
7596
ee1d42d6
TT
75972019-06-25 Tom Tromey <tom@tromey.com>
7598
7599 * tui/tui-data.h (struct tui_source_window)
7600 (struct tui_data_window): Declare destructors.
7601 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7602 destructors.
7603 (tui_win_info): Simplify.
7604
b4eb2452
TT
76052019-06-25 Tom Tromey <tom@tromey.com>
7606
7607 * tui/tui-winsource.c (tui_display_main)
7608 (tui_update_source_windows_with_addr)
7609 (tui_update_all_breakpoint_info): Update.
7610 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7611 (new_height_ok, parse_scrolling_args): Update.
7612 * tui/tui-stack.c (tui_show_frame_info): Update.
7613 * tui/tui-data.h (struct tui_list): Remove.
7614 (tui_source_windows): Return a reference to a std::vector.
7615 * tui/tui-data.c (source_windows): Now a std::vector.
7616 (tui_source_windows): Change return type.
7617 (tui_clear_source_windows): Rewrite.
7618 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7619 (tui_free_all_source_wins_content): Rewrite.
7620
8761a91b
TT
76212019-06-25 Tom Tromey <tom@tromey.com>
7622
7623 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7624 (struct tui_data_window, struct tui_cmd_window): Declare
7625 clear_detail method.
7626 * tui/tui-data.c (tui_source_window::clear_detail)
7627 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7628 methods.
7629 (tui_clear_win_detail): Simplify.
7630
0ed69eda
TT
76312019-06-25 Tom Tromey <tom@tromey.com>
7632
7633 * tui/tui-layout.c (make_source_window, make_disasm_window)
7634 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7635 Return the new window.
7636 (show_source_disasm_command, show_data)
7637 (show_source_or_disasm_and_command): Update.
7638
82432e10
TT
76392019-06-25 Tom Tromey <tom@tromey.com>
7640
7641 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7642 parameter. Return the new window.
7643 (show_source_disasm_command): Update and remove NULL check.
7644 (show_source_or_disasm_and_command): Update.
7645
ec328aa5
TT
76462019-06-25 Tom Tromey <tom@tromey.com>
7647
7648 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7649
33b906ab
TT
76502019-06-25 Tom Tromey <tom@tromey.com>
7651
7652 * tui/tui-data.h (struct tui_win_info): Make constructor
7653 protected. Make destructor virtual. Add initializers.
7654 (tui_source_window, tui_data_window, tui_cmd_window): New
7655 classes.
7656 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7657 constructor. Add "type" parameter.
7658 (tui_source_window, tui_data_window, tui_cmd_window): New
7659 constructors.
7660 (tui_alloc_win_info): Instantiate the appropriate subclass.
7661
e7e11af4
TT
76622019-06-25 Tom Tromey <tom@tromey.com>
7663
7664 * tui/tui-win.c (tui_resize_all): Use delete.
7665 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7666 destructor.
7667 (tui_free_window): Don't declare.
7668 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7669 Update.
7670
6792b55e
TT
76712019-06-25 Tom Tromey <tom@tromey.com>
7672
7673 * tui/tui-data.h (struct tui_win_info): Add constructor.
7674 * tui/tui-data.c (tui_alloc_win_info): Use new.
7675 (tui_free_window): Use delete.
7676
f95675e1
TT
76772019-06-22 Tom Tromey <tom@tromey.com>
7678
7679 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7680 declare.
7681 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7682
5bff081c
TT
76832019-06-22 Tom Tromey <tom@tromey.com>
7684
7685 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7686 declare.
7687 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7688
47e3f474
TV
76892019-06-22 Tom de Vries <tdevries@suse.de>
7690
7691 * dwarf2read.c (create_addrmap_from_aranges)
7692 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7693 instead of '%zu'.
7694
fd5866f6
SM
76952019-06-21 Simon Marchi <simon.marchi@efficios.com>
7696
7697 * dwarf2read.h (dwarf2_section_info_def): Remove.
7698 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7699 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7700 std::vector<dwarf2_section_info>.
7701 (struct dwo_file) <~dwo_file>: Remove.
7702 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7703 types field.
7704 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7705 (dwarf2_read_debug_names): Likewise.
7706 (create_debug_types_hash_table): Change parameter type to
7707 array_view, adjust code accordingly.
7708 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7709 (partial_die_info::fixup): Likewise.
7710 (determine_prefix): Likewise.
7711 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7712
fb1eb2f9
SM
77132019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7714
7715 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7716 gdb_bfd_ref_ptr.
7717 <~dwo_file>: Remove call to gdb_bfd_unref.
7718 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7719 gdb_bfd_ref_ptr::get.
7720
51ac9db5
SM
77212019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7722
7723 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7724 type to htab_up.
7725 * dwarf2read.c (struct dwo_file): Initialize fields.
7726 <~dwo_file>: New.
7727 (free_dwo_file): Remove, move content to ~dwo_file.
7728 (struct dwo_file_deleter): Remove.
7729 (dwo_file_up>: Remove custom deleter.
7730 (free_dwo_files): Remove.
7731 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7732 dwo_files.
7733 (process_skeletonless_type_units): Call unique_ptr::get.
7734 (allocate_dwo_file_hash_table): Add deleter to created hash
7735 table. Change return type to htab_up.
7736 (lookup_dwo_file_slot): Don't memset dwo_file, call
7737 unique_ptr::get.
7738 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7739 (create_dwo_unit_in_dwp_v2): Likewise.
7740 (open_and_init_dwo_file): Likewise.
7741 (free_dwo_file_from_slot): Remove.
7742
dc4ccb6f
SM
77432019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7744
7745 * dwarf2read.h (struct dwarf2_section_info) <readin,
7746 is_virtual>: Change type to bool.
7747 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7748 true instead of 1.
7749
e6a1c5cb
TT
77502019-06-19 Tom Tromey <tom@tromey.com>
7751
7752 * tui/tui-data.h (tui_init_content_element): Don't declare.
7753
6f6ffbeb
TT
77542019-06-19 Tom Tromey <tom@tromey.com>
7755
7756 * tui/tui-data.h (tui_init_win_info): Don't declare.
7757
f23f598e
TV
77582019-06-19 Tom de Vries <tdevries@suse.de>
7759
7760 * dwarf2read.h (abstract_to_concrete): Change type to
7761 std::unordered_map<sect_offset, std::vector<sect_offset>,
7762 gdb::hash_enum<sect_offset>>.
7763
680e1bee
TT
77642019-06-19 Tom Tromey <tromey@adacore.com>
7765
7766 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7767 EVAL_AVOID_SIDE_EFFECTS specially.
7768
dcf37923
TT
77692019-06-19 Tom Tromey <tromey@adacore.com>
7770
7771 * source-cache.c (highlighter): New global.
7772 (source_cache::get_source_lines): Create a highlighter on demand.
7773
494986d5
AB
77742019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7775
7776 * defs.h (deprecated_interactive_hook): Delete declaration.
7777 * interps.c (clear_interpreter_hooks): Remove use of
7778 deprecated_interactive_hook.
7779 * top.c (deprecated_interactive_hook): Delete definition.
7780 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7781
3360b6e7
TV
77822019-06-18 Tom de Vries <tdevries@suse.de>
7783
7784 PR gdb/24515
7785 * dwarf2read.h (abstract_to_concrete): Change type from
7786 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7787 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7788 * dwarf2read.c (read_variable): Update.
7789 (dwarf2_fetch_die_loc_sect_off): Update.
7790
310b3441
TV
77912019-06-17 Tom de Vries <tdevries@suse.de>
7792
7793 PR gdb/24617
7794 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7795 accessing parent[parent_len - 1].
7796
ba9777be
PP
77972019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7798
7799 PR gdb/24364
7800 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7801 call dtrace_process_dof with NULL dof.
7802
2b9f6e89
TV
78032019-06-16 Tom de Vries <tdevries@suse.de>
7804
7805 PR gdb/24445
7806 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7807
431b3ead
TT
78082019-06-16 Tom Tromey <tom@tromey.com>
7809
7810 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7811 (make_all_visible): Use address of member.
7812
d04b44a1
TT
78132019-06-16 Tom Tromey <tom@tromey.com>
7814
7815 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7816 (tui_free_window, free_content, free_content_elements): Remove
7817 unnecessary cast.
7818 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7819 cast.
7820 * tui/tui-regs.c (tui_show_register_group)
7821 (tui_display_registers_from, tui_display_reg_element_at_line):
7822 Remove unnecessary cast.
7823
bf5142e7
AB
78242019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7825
7826 * linux-nat.c (normal_mask): Delete.
7827 (_initialize_linux_nat): Don't initialise normal_mask.
7828
c4973306
SM
78292019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7830
7831 PR gdb/24445
7832 * dwarf-index-write.h (write_psymtabs_to_index): Add
7833 dwz_basename parameter.
7834 * dwarf-index-write.c (write_gdbindex): Move file writing to
7835 write_gdbindex_1. Change return type void.
7836 (assert_file_size): Move up, remove filename parameter.
7837 (write_gdbindex_1): New function.
7838 (write_debug_names): Change return type to void, call
7839 assert_file_size.
7840 (struct index_wip_file): New struct.
7841 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7842 file logic to index_wip_file. Write index for dwz file if
7843 needed.
7844 (save_gdb_index_command): Pass basename of dwz file, if present.
7845 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7846 build-id of dwz file, if present.
7847 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7848 (dwarf2_get_dwz_file): Likewise.
7849 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7850 (dwarf2_get_dwz_file): Likewise.
7851
395f9c91
TT
78522019-06-16 Tom Tromey <tom@tromey.com>
7853
7854 * coffread.c (process_coff_symbol): Use xstrdup.
7855 * value.c (create_internalvar): Use xstrdup.
7856
cafb3438
TT
78572019-06-16 Tom Tromey <tom@tromey.com>
7858
7859 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7860 * breakpoint.c (stopin_command, stopat_command)
7861 (until_break_command, decode_location_default): Remove unnecessary
7862 cast.
7863 * utils.c (subset_compare): Remove unnecessary cast.
7864 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7865 cast.
7866 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7867 cast.
7868 * infcmd.c (path_command): Remove unnecessary cast.
7869 * coffread.c (decode_type): Remove unnecessary cast.
7870 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7871 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7872 * tui/tui-stack.c (tui_show_locator_content)
7873 (tui_show_frame_info): Remove unnecessary cast.
7874 * tui/tui-win.c (tui_scroll_forward_command)
7875 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7876 (parse_scrolling_args): Remove unnecessary cast.
7877 * tui/tui-data.c (init_win_info, tui_del_window)
7878 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7879 (free_content_elements): Remove unnecessary cast.
7880 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7881 unnecessary cast.
7882 * tui/tui-source.c (tui_set_source_content)
7883 (tui_vertical_source_scroll): Remove unnecessary cast.
7884 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7885 cast.
7886 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7887 * tui/tui-regs.c (tui_display_registers_from)
7888 (tui_display_register): Remove unnecessary cast.
7889 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7890 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7891 (make_visible): Remove unnecessary cast.
7892 * tui/tui-winsource.c (tui_erase_source_content)
7893 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7894 unnecessary cast.
7895 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7896 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7897 * stabsread.c (read_type, read_array_type, read_range_type):
7898 Remove unnecessary cast.
7899 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7900 (parse_symbol, parse_type, upgrade_type, parse_external)
7901 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7902 unnecessary cast.
7903 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7904
730ead81
TT
79052019-06-16 Tom Tromey <tom@tromey.com>
7906
7907 * tui/tui-data.c (tui_alloc_generic_win_info)
7908 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7909 checks.
7910
584a927c
AB
79112019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7912 Andrew Burgess <andrew.burgess@embecosm.com>
7913
7914 * f-typeprint.c (f_print_type): Don't return early for not
7915 associated or not allocated types.
7916 (f_type_print_varspec_suffix): Add print_rank parameter and print
7917 ranks of array types in case they dangling.
7918 (f_type_print_base): Add print_rank parameter.
7919
30056ea0
AB
79202019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7921
7922 * NEWS: Mention new MI commands.
7923 * break-catch-throw.c (enum exception_event_kind): Move to
7924 breakpoint.h.
7925 (print_mention_exception_catchpoint): Output text as a single
7926 message.
7927 (catch_exception_command_1): Rename to...
7928 (catch_exception_event): ...this, make non-static, update header
7929 command, and change some parameter types.
7930 (catch_catch_command): Update for changes to
7931 catch_exception_command_1.
7932 (catch_throw_command): Likewise.
7933 (catch_rethrow_command): Likewise.
7934 * breakpoint.c (enum exception_event_kind): Delete.
7935 * breakpoint.h (enum exception_event_kind): Moved here from
7936 break-catch-throw.c.
7937 (catch_exception_event): Declare.
7938 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7939 (mi_cmd_catch_throw): New function.
7940 (mi_cmd_catch_rethrow): New function.
7941 (mi_cmd_catch_catch): New function.
7942 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7943 'catch-catch' entries.
7944 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7945 (mi_cmd_catch_rethrow): Declare.
7946 (mi_cmd_catch_catch): Declare.
7947
ec8e2b6d
AB
79482019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7949
7950 * annotate.c (annotate_source_line): Change return type to void,
7951 update implementation to match.
7952 * annotate.h (annotate_source_line): Change return type to void,
7953 update header comment.
7954 * stack.c (print_frame_info): Don't change what frame information
7955 is printed based on whether annotations are on or not.
7956
0d3abd8c
AB
79572019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7958
7959 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7960 (annotate_source): Make static.
7961 (annotate_source_line): Moved from source.c and renamed from
7962 identify_source_line. Update the return type.
7963 * annotate.h (annotate_source): Delete declaration.
7964 (annotate_source_line): Declaration moved from source.h, and
7965 renamed from identify_source_line. Return type updated.
7966 * source.c (identify_source_line): Moved to annotate.c and renamed
7967 to annotate_source_line.
7968 (info_line_command): Remove check of annotation_level.
7969 * source.h (identify_source_line): Move declaration to annotate.h
7970 and rename to annotate_source_line.
7971 * stack.c: Add 'annotate.h' include.
7972 (print_frame_info): Remove check of annotation_level before
7973 calling annotate_source_line.
7974
00df30ae
AB
79752019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7976
7977 * source-cache.c (source_cache::get_plain_source_lines): Use
7978 open_source_file_with_line_charpos instead of just
7979 open_source_file, remove call to find_source_lines.
7980 (source_cache::get_source_lines): Likewise.
7981 * source.c (find_source_lines): Make static.
7982 (get_filename_and_charpos): Renamed into...
7983 (open_source_file_with_line_charpos): ..this along with changes to
7984 return a scoped_fd, and some other minor clean ups.
7985 (identify_source_line): Use open_source_file_with_line_charpos.
7986 (search_command_helper): Use open_source_file_with_line_charpos
7987 instead of just open_source_file, remove call to
7988 find_source_lines.
7989 * source.h (open_source_file_with_line_charpos): Declare new
7990 function.
7991 (find_source_lines): Delete declaration.
7992
afda45a2
AB
79932019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7994
7995 * source.c (get_filename_and_charpos): Remove fullname
7996 parameter.
7997 (identify_source_line): Update call to get_filename_and_charpos.
7998
0735b091
TT
79992019-06-14 Tom Tromey <tromey@adacore.com>
8000
8001 PR gdb/24502:
8002 * ui-style.h (skip_ansi_escape): Update comment.
8003 * ui-file.h (class no_terminal_escape_file): New class.
8004 * ui-file.c (no_terminal_escape_file::write)
8005 (no_terminal_escape_file::puts): New methods.
8006 * cli/cli-logging.c (handle_redirections): Use
8007 no_terminal_escape_file.
8008
52ce35e2
TT
80092019-06-14 Tom Tromey <tromey@adacore.com>
8010
8011 * NEWS: Move convenience variable news above Python news.
8012
73cc7272
TT
80132019-06-14 Tom Tromey <tom@tromey.com>
8014
8015 * gnulib: Move directory to top-level.
8016 * configure.ac: Don't configure gnulib.
8017 * configure: Rebuild.
8018 * common/common-defs.h: Use new path to gnulib.
8019 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8020 (GNULIB_H): Remove.
8021 (INCGNU): Look in new gnulib location.
8022 (HFILES_NO_SRCDIR): Remove gnulib files.
8023 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8024 (generated_files): Remove GNULIB_H.
8025 ($(LIBGNU), all-lib): Remove targets.
8026 (distclean): Don't mention GNULIB_BUILDDIR.
8027 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8028
f5686554
TT
80292019-06-14 Tom Tromey <tromey@adacore.com>
8030
8031 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8032 Warn if symbol file does not provide any symbols.
8033
a0c1ffed
TT
80342019-06-14 Tom Tromey <tromey@adacore.com>
8035
8036 * source.c (find_and_open_source): Respect basenames_may_differ.
8037
7c39e397
AB
80382019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8039
8040 * annotate.c (annotate_breakpoints_invalid): Make use of
8041 scoped_restore_terminal_state.
8042 (annotate_frames_invalid): Likewise.
8043
f411722c
TT
80442019-06-14 Tom Tromey <tromey@adacore.com>
8045
8046 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8047 allow assignment to an internalvar.
8048
4268ec18
TT
80492019-06-14 Tom Tromey <tromey@adacore.com>
8050
8051 * ada-lex.l: Allow "_" in attribute names.
8052
abdb711e
TT
80532019-06-14 Tom Tromey <tromey@adacore.com>
8054
8055 PR gdb/24653:
8056 * regcache.c (registers_changed): Don't call alloca.
8057 * top.c (execute_command): Don't call alloca.
8058
4c048731
PA
80592019-06-13 Pedro Alves <palves@redhat.com>
8060
8061 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8062 'expression'. When parsing an expression, error out if there's
8063 junk after "unlimited".
8064 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8065 (do_set_command): Adjust calls to is_unlimited_literal.
8066
66eb1ed3
PA
80672019-06-13 Pedro Alves <palves@redhat.com>
8068
8069 * compile/compile.c (make_compile_options_def_group): Add braces
8070 around array_view initializer.
8071 * thread.c (make_thread_apply_all_options_def_group)
8072 (make_thread_apply_all_options_def_group): Likewise.
8073
3345721a
PA
80742019-06-13 Pedro Alves <palves@redhat.com>
8075
8076 * NEWS (New commands): Mention "maint test-options
8077 require-delimiter", "maint test-options unknown-is-error", "maint
8078 test-options unknown-is-operand" and "maint show
8079 test-options-completion-result".
8080 (New command options, command completion): New section.
8081 (Completion improvements): New section.
8082 Mention that you can abbreviate "unlimited".
8083
6206060d
PA
80842019-06-13 Pedro Alves <palves@redhat.com>
8085
8086 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8087 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8088 * unittests/cli-utils-selftests.c (test_parse_flags)
8089 (test_parse_flags_qcs): Delete.
8090 (test_cli_utils): Don't call deleted functions.
8091
6665660a
PA
80922019-06-13 Pedro Alves <palves@redhat.com>
8093
8094 * thread.c: Include "cli/cli-option.h".
8095 (tp_array_compar_ascending): Global.
8096 (tp_array_compar): Delete function.
8097 (tp_array_compar_ascending, tp_array_compar_descending): New
8098 functions.
8099 (ascending_option_def, qcs_flag_option_def)
8100 (thr_qcs_flags_option_defs)
8101 (make_thread_apply_all_options_def_group)
8102 (make_thread_apply_options_def_group): New.
8103 (thread_apply_all_command): Use gdb::option::process_options.
8104 (thread_apply_command_completer)
8105 (thread_apply_all_command_completer): New.
8106 (thread_apply_command): Use gdb::option::process_options.
8107 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8108 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8109 to generate help text of "thread apply". Adjust "taas"'s help.
8110 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8111 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8112
f7e13587
PA
81132019-06-13 Pedro Alves <palves@redhat.com>
8114
8115 * thread.c (thread_apply_command): Check for invalid TID with
8116 isdigit instead of !isalpha.
8117
5d707134
PA
81182019-06-13 Pedro Alves <palves@redhat.com>
8119
8120 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8121 (validate_flags_qcs): New.
8122 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8123 (validate_flags_qcs): Declare.
8124 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8125 (make_frame_apply_options_def_group): New.
8126 (frame_apply_command_count): Process options with
8127 gdb::option::process_options.
8128 (frame_apply_completer): New.
8129 (frame_apply_level_completer, frame_apply_all_completer)
8130 (frame_apply_completer): New.
8131 (_initialize_stack): Update help of "frame apply", "frame apply
8132 level", "frame apply all" and "faas" to mention supported options
8133 and install command completers.
8134 * stack.h (frame_apply_all_completer): Declare.
8135 * thread.c: Include "stack.h".
8136 (tfaas_command): Add "--".
8137 (_initialize_thread): Update help "tfaas" to mention supported
8138 options and install command completer.
8139
272d4594
PA
81402019-06-13 Pedro Alves <palves@redhat.com>
8141
8142 * completer.c (complete_nested_command_line): New.
8143 (gdb_completion_word_break_characters_throw): Add assertion.
8144 * completer.h (complete_nested_command_line): Declare.
8145
90a1ef87
PA
81462019-06-13 Pedro Alves <palves@redhat.com>
8147
8148 * stack.c (parse_backtrace_qualifiers): New.
8149 (backtrace_command): Use it.
8150 (backtrace_command_completer): Complete on qualifiers.
8151
d4c16835
PA
81522019-06-13 Pedro Alves <palves@redhat.com>
8153
8154 * frame.c: Include "cli/cli-option.h.
8155 (user_set_backtrace_options): New.
8156 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8157 Delete.
8158 (get_prev_frame): Adjust.
8159 (boolean_option_def, uinteger_option_def)
8160 (set_backtrace_option_defs): New.
8161 (_initialize_frame): Adjust and use
8162 gdb::option::add_setshow_cmds_for_options to install "set
8163 backtrace past-main" and "set backtrace past-entry".
8164 * frame.h: Include "cli/cli-option.h".
8165 (struct frame_print_options): Forward declare.
8166 (print_frame_arguments_all, print_frame_arguments_scalars)
8167 (print_frame_arguments_none): Declare.
8168 (print_entry_values): Delete declaration.
8169 (struct frame_print_options, user_frame_print_options): New.
8170 (struct set_backtrace_options): New.
8171 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8172 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8173 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8174 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8175 (list_args_or_locals): Add frame_print_options parameter.
8176 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8177 * python/py-framefilter.c (enumerate_args): Pass down
8178 USER_FRAME_PRINT_OPTIONS.
8179 * stack.c: Include "cli/cli-option.h".
8180 (print_frame_arguments_all, print_frame_arguments_scalars)
8181 (print_frame_arguments_none): Declare.
8182 (print_raw_frame_arguments, print_entry_values): Delete.
8183 (user_frame_print_options): New.
8184 (boolean_option_def, enum_option_def, frame_print_option_defs):
8185 New.
8186 (struct backtrace_cmd_options): New.
8187 (bt_flag_option_def): New.
8188 (backtrace_command_option_defs): New.
8189 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8190 (print_frame_arg, read_frame_arg, print_frame_args)
8191 (print_frame_info, print_frame): Add frame_print_options parameter
8192 and use it.
8193 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8194 (backtrace_command_1): Add frame_print_options and
8195 backtrace_cmd_options parameters and use them.
8196 (make_backtrace_options_def_group): New.
8197 (backtrace_command): Process command options with
8198 gdb::option::process_options.
8199 (backtrace_command_completer): New.
8200 (_initialize_stack): Extend "backtrace"'s help to mention
8201 supported options. Install completer for "backtrace".
8202 Install some settings commands with add_setshow_cmds_for_options.
8203
2daf894e
PA
82042019-06-13 Pedro Alves <palves@redhat.com>
8205
8206 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8207 and that "set/show print raw frame-arguments" are now deprecated.
8208
8209 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8210 command.
8211 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8212 * stack.c (_initialize_stack): Install "set/show print
8213 raw-frame-arguments", and deprecate "set/show print raw
8214 frame-arguments".
8215 * valprint.c (_initialize_valprint): Deprecate "set/show print
8216 raw".
8217
e6ed716c
PA
82182019-06-13 Pedro Alves <palves@redhat.com>
8219
8220 * compile/compile.c (struct compile_options): New.
8221 (compile_flag_option_def, compile_command_option_defs)
8222 (make_compile_options_def_group): New.
8223 (compile_file_command): Handle options with
8224 gdb::option::process_options.
8225 (compile_file_command_completer): New function.
8226 (compile_code_command): Handle options with
8227 gdb::option::process_options.
8228 (compile_code_command_completer): New function.
8229 (_initialize_compiler): Install completers for "compile code" and
8230 "compile file". Mention available options in "compile code" and
8231 "compile code"'s help.
8232 * completer.c (advance_to_completion_word): New, factored out from
8233 ...
8234 (advance_to_expression_complete_word_point): ... this.
8235 (advance_to_filename_complete_word_point): New.
8236 * completer.h (advance_to_filename_complete_word_point): New
8237 declaration.
8238
7d8062de
PA
82392019-06-13 Pedro Alves <palves@redhat.com>
8240
8241 * compile/compile.c: Include "cli/cli-option.h".
8242 (compile_print_value): Scope data pointer is now a
8243 value_print_options pointer; adjust.
8244 (compile_print_command): Process options. Scope data pointer is
8245 now a value_print_options pointer; adjust.
8246 (_initialize_compile): Update "compile print"'s help to include
8247 supported options. Install a completer for "compile print".
8248 * cp-valprint.c (show_vtblprint, show_objectprint)
8249 (show_static_field_print): Delete.
8250 (_initialize_cp_valprint): Don't install "set print
8251 static-members", "set print vtbl", "set print object" here.
8252 * printcmd.c: Include "cli/cli-option.h" and
8253 "common/gdb_optional.h".
8254 (print_command_parse_format): Rework to fill in a
8255 value_print_options instead of a format_data.
8256 (print_value): Change parameter type from format_data pointer to
8257 value_print_options reference. Adjust.
8258 (print_command_1): Process options. Adjust to pass down a
8259 value_print_options.
8260 (print_command_completer): New.
8261 (_initialize_printcmd): Install print_command_completer as
8262 handle_brkchars completer for the "print" command. Update
8263 "print"'s help to include supported options.
8264 * valprint.c: Include "cli/cli-option.h".
8265 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8266 here from cp-valprint.c.
8267 (boolean_option_def, uinteger_option_def)
8268 (value_print_option_defs, make_value_print_options_def_group):
8269 New. Use gdb::option::add_setshow_cmds_for_options to install
8270 "set print elements", "set print null-stop", "set print repeats",
8271 "set print pretty", "set print union", "set print array", "set
8272 print address", "set print symbol", "set print array-indexes".
8273 * valprint.h: Include <string> and "cli/cli-option.h".
8274 (make_value_print_options_def_group): Declare.
8275 (print_value): Change parameter type from format_data pointer to
8276 value_print_options reference.
8277 (print_command_completer): Declare.
8278
9d0faba9
PA
82792019-06-13 Pedro Alves <palves@redhat.com>
8280
8281 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8282 (COMMON_SFILES): Add maint-test-settings.c.
8283 * cli/cli-decode.c (boolean_enums): New global, factored out from
8284 ...
8285 (add_setshow_boolean_cmd): ... here.
8286 * cli/cli-decode.h (boolean_enums): Declare.
8287 * cli/cli-option.c: New file.
8288 * cli/cli-option.h: New file.
8289 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8290 factored out from ...
8291 (parse_cli_boolean_value(const char *)): ... this.
8292 (is_unlimited_literal): Change parameter type to pointer to
8293 pointer. Adjust and advance ARG pointer.
8294 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8295 (parse_cli_var_enum): New, factored out from ...
8296 (do_set_command): ... this. Adjust.
8297 * cli/cli-setshow.h (parse_cli_boolean_value)
8298 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8299 (parse_cli_var_enum): Declare.
8300 * cli/cli-utils.c: Include "cli/cli-option.h".
8301 (get_ulongest): New.
8302 * cli/cli-utils.h (get_ulongest): Declare.
8303 (check_for_argument): New overloads.
8304 * maint-test-options.c: New file.
8305
2c722807
PA
83062019-06-13 Pedro Alves <palves@redhat.com>
8307
8308 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8309 parse a range if "-" is at the end of the string.
8310
dee7b4c8
PA
83112019-06-13 Pedro Alves <palves@redhat.com>
8312
8313 * cli/cli-setshow.c (parse_auto_binary_operation)
8314 (parse_cli_boolean_value): Don't allow "o".
8315
dca0f6c0
PA
83162019-06-13 Pedro Alves <palves@redhat.com>
8317
8318 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8319 * NEWS: Mention maint test-settings KIND.
8320 * maint-test-settings.c: New file.
8321
597bf39d
PA
83222019-06-13 Pedro Alves <palves@redhat.com>
8323
8324 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8325 completer.
8326 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8327 "set" completers.
8328
48c410fb
PA
83292019-06-13 Pedro Alves <palves@redhat.com>
8330
8331 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8332 after item.
8333
93bcb043
PA
83342019-06-13 Pedro Alves <palves@redhat.com>
8335
8336 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8337
cbba3ecd
PA
83382019-06-13 Pedro Alves <palves@redhat.com>
8339
8340 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8341 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8342 call.
8343 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8344 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8345 calls.
8346 (check_for_argument): Skip spaces after argument.
8347
b9a3f842
PA
83482019-06-13 Pedro Alves <palves@redhat.com>
8349
8350 * thread.c (thread_apply_command): Adjust TID parsing.
8351 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8352 detected before end of string.
8353 (tid_is_in_list): Error out if LIST is invalid.
8354
3844e605
PA
83552019-06-13 Pedro Alves <palves@redhat.com>
8356
8357 * completer.c (complete_line_internal_1): Rewind completion word
8358 point.
8359 (completion_tracker::advance_custom_word_point_by): Change
8360 parameter type to int.
8361 * completer.h (completion_tracker::advance_custom_word_point_by):
8362 Likewise.
8363
00b56dbe
PA
83642019-06-13 Pedro Alves <palves@redhat.com>
8365
8366 * completer.c (advance_to_completion_word): Handle delimiters.
8367
d106773e
PA
83682019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8369
8370 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8371
08f10e02
TT
83722019-06-11 Tom Tromey <tom@tromey.com>
8373
8374 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8375 (xmalloc_failed): Move to alloc.c.
8376 * alloc.c: New file.
8377 * Makefile.in (COMMON_SFILES): Add alloc.c.
8378
1c7fe951
TT
83792019-06-11 Tom Tromey <tom@tromey.com>
8380
8381 * nat/linux-waitpid.c: Don't include server.h.
8382 (linux_debug): Remove.
8383 (my_waitpid): Update.
8384
89549d7f
TT
83852019-06-11 Tom Tromey <tromey@adacore.com>
8386
8387 * infcall.c (_initialize_infcall): Remove trailing newline from
8388 help.
8389 * user-regs.c (_initialize_user_regs): Remove trailing newline
8390 from help.
8391 * typeprint.c (_initialize_typeprint): Remove trailing newline
8392 from help.
8393 * reverse.c (_initialize_reverse): Remove trailing newlines from
8394 help.
8395 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8396 from help.
8397 * language.c (add_set_language_command): Remove trailing newline
8398 from help.
8399 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8400 help.
8401 * disasm.c (_initialize_disasm): Remove trailing newline from
8402 help.
8403 * top.c (init_main): Remove trailing newline from help.
8404 * interps.c (_initialize_interpreter): Remove trailing newline
8405 from help.
8406 * btrace.c (_initialize_btrace): Remove trailing newlines from
8407 help.
8408 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8409 from help.
8410 * python/python.c (_initialize_python): Remove trailing newline
8411 from help.
8412 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8413 help.
8414 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8415 from help. Reformat some text.
8416 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8417 from help.
8418 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8419 newline from help.
8420
86108c13
TT
84212019-06-11 Tom Tromey <tromey@adacore.com>
8422
8423 * darwin-nat.c (darwin_decode_exception_message)
8424 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8425
a7067863
AB
84262019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8427
8428 * valops.c (value_slice): Check for not allocated or not
8429 associated values.
8430
9ab08412
TV
84312019-06-10 Tom de Vries <tdevries@suse.de>
8432
8433 PR gdb/24618
8434 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8435 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8436 invalid.
8437
f19e22e9
TV
84382019-06-10 Tom de Vries <tdevries@suse.de>
8439
8440 PR gdb/24611
8441 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8442 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8443
e99f9db0
TV
84442019-06-10 Tom de Vries <tdevries@suse.de>
8445
8446 PR symtab/24545
8447 * symtab.c (struct demangled_name_entry): Add language field.
8448 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8449 static minimal symbol". Set and use language field.
8450
9bf7038b
TT
84512019-06-10 Tom Tromey <tromey@adacore.com>
8452
8453 * ada-lang.c (_initialize_ada_language): Update help text.
8454
422186a9
TT
84552019-06-10 Tom Tromey <tromey@adacore.com>
8456
8457 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8458 with a newline.
8459 * guile/guile.c (handle_boot_error): Don't end warning with a
8460 newline.
8461 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8462 warning with a newline.
8463 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8464 newline.
8465 (s12z_frame_cache): Likewise.
8466 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8467 a newline.
8468 * solib-svr4.c (disable_probes_interface): Don't end warning with
8469 a newline.
8470 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8471 newline.
8472 * python/python.c (do_finish_initialization): Don't end warning
8473 with a newline.
8474
25ce02ee
TT
84752019-06-10 Tom Tromey <tom@tromey.com>
8476
8477 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8478 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8479 gdbpy_enter.
8480
caa429d8
TT
84812019-06-10 Tom Tromey <tromey@adacore.com>
8482
8483 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8484 data.
8485 (elf_new_init): Don't call stabsread_new_init.
8486 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8487 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8488 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8489
81873cc8
TV
84902019-06-10 Tom de Vries <tdevries@suse.de>
8491
8492 PR symtab/16264
8493 PR symtab/24517
8494 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8495
4fa0265e
РИ
84962019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8497
8498 * source.c (find_and_open_source): Also rewrite relative file
8499 names.
8500
1a3da2cd
AB
85012019-04-26 Amos Bird <amosbird@gmail.com>
8502
8503 * annotate.c (annotate_thread_exited): Add "thread-exited"
8504 annotation.
8505
3847a7bf
TT
85062019-06-06 Tom Tromey <tromey@adacore.com>
8507
8508 * maint.h (class scoped_command_stats): Use
8509 DISABLE_COPY_AND_ASSIGN.
8510 <print_time>: New method.
8511 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8512 print_time.
8513 (scoped_command_stats::print_time): New method.
8514
312617a3
AB
85152019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8516
8517 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8518 instructions of lengths 6 or 8 bytes.
8519
b02f78f9
PA
85202019-06-04 Pedro Alves <palves@redhat.com>
8521
8522 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8523
8524 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8525 * breakpoint.c (condition_completer): Likewise.
8526 * cli/cli-dump.c (scan_expression): Likewise.
8527 * common/filestuff.c (mkdir_recursive): Likewise.
8528 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8529 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8530 (gdb_abspath): Likewise.
8531 * compile/compile-cplus-types.c
8532 (compile_cplus_instance::decl_name): Likewise.
8533 * completer.c (complete_explicit_location):
8534 (signal_completer, reg_or_group_completer_1): Likewise.
8535 * cp-support.c (cp_remove_params_if_any): Likewise.
8536 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8537 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8538 * infcmd.c (strip_bg_char): Likewise.
8539 * linespec.c (copy_token_string): Likewise.
8540 * mi/mi-main.c (output_cores): Likewise.
8541 * psymtab.c (psymtab_search_name):
8542 * symfile.c (test_set_ext_lang_command): Likewise.
8543 * target.c (target_fileio_read_stralloc): Likewise.
8544 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8545 * value.c (complete_internalvar): Likewise.
8546
e1f2e1a2
CB
85472019-06-04 Christian Biesinger <cbiesinger@google.com>
8548
8549 Add objfile property to gdb.Type.
d3238f7d
PA
8550 * NEWS: Mention Python API addition.
8551 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 8552
e664d728
PW
85532019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8554
8555 * NEWS: Mention the new set|show style [title|highlight].
8556 Mention changes to "show style", "help" and "apropos".
8557
66d8c862
PW
85582019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8559
8560 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8561 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8562 instead of print_help_for_command.
8563 (print_doc_of_command): New function.
8564 (help_list): Add 'apropos -v word' suggestion.
8565 (print_help_for_command): Style the command name using title style.
8566 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8567 (_initialize_cli_cmds): Describe -v in apropos_command help.
8568
9303eb2f
PW
85692019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8570
8571 * cli/cli-style.h (cli_style_option): Add name in constructor,
8572 add m_name class member, add constructor with intensity,
8573 add name class function.
8574 (cli_style_option::add_setshow_commands): Remove name argument.
8575 (highlight_style, title_style): New styles.
8576 * cli/cli-style.c (do_show): New function that shows a style
8577 characteristic styling the style name with itself.
8578 (set_style_name): New function.
8579 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8580 Update all callers according to the changes in cli/cli-style.h.
8581 * utils.h (fputs_highlighted): New function.
8582 * utils.c (fputs_highlighted): Likewise.
8583
e2c52041
PW
85842019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8585
8586 * NEWS: Mention new pipe command and new convenience variables.
8587
947d3946
PW
85882019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8589
8590 * cli/cli-cmds.c (pipe_command): New function.
8591 (_initialize_cli_cmds): Call add_com for pipe_command.
8592 Define | as an alias for pipe.
8593 (exit_status_set_internal_vars): New function.
8594 (shell_escape): Call exit_status_set_internal_vars.
8595 cli/cli-decode.c (find_command_name_length): Recognize | as
8596 a single character command.
8597
b8fd0918
PW
85982019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8599
8600 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8601 top.c (execute_command_to_ui_file): New function, mostly a copy
8602 of execute_command_to_string.
8603 (execute_command_to_string): Implement by calling
8604 execute_command_to_ui_file.
8605
68bb5386
PW
86062019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8607
8608 * top.h (saved_command_line): Remove declaration.
8609 * top.c (previous_saved_command_line, previous_repeat_arguments):
8610 New variables.
8611 (saved_command_line): Make static, define together with other
8612 'repeat variables'.
8613 (dont_repeat): Clear repeat_arguments.
8614 (repeat_previous, get_saved_command_line, save_command_line):
8615 New functions.
8616 (gdb_init): Initialize saved_command_line
8617 and previous_saved_command_line.
8618 * main.c (captured_main_1): Remove saved_command_line initialization.
8619 * event-top.c (handle_line_of_input): Update to use
8620 the new 'repeat' related functions instead of direct access to
8621 saved_command_line.
8622 * command.h (repeat_previous, get_saved_command_line,
8623 save_command_line): New declarations.
8624 (dont_repeat): Add comment.
8625
bfcdb852
TT
86262019-05-30 Tom Tromey <tromey@adacore.com>
8627
8628 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8629 Fix comment.
8630 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8631
0ef209f2
JV
86322019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8633
8634 PR cli/24587
8635 * completer.c (complete): Initialize variable word.
8636
955b06fa
SDJ
86372019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8638
8639 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8640 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8641 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8642 'body' is NULL to the outter 'if', protecting the '!is_define'
8643 situation as well.
8644
fa9c3fa0
TT
86452019-05-29 Tom Tromey <tromey@adacore.com>
8646
8647 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8648 (dwarf_unknown): New function.
8649 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8650 (dwarf_type_encoding_name): Use dwarf_unknown.
8651
4330d61d
TT
86522019-05-29 Tom Tromey <tromey@adacore.com>
8653
8654 PR c++/20020:
8655 * cp-valprint.c (cp_print_value_fields): Call
8656 cp_print_static_field inside "try".
8657
33a6bc35
TT
86582019-05-29 Tom Tromey <tromey@adacore.com>
8659
8660 * inflow.c (struct terminal_info): Add default operator=.
8661 * configure: Rebuild.
8662 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8663 -Wdeprecated-copy-dtor, -Wredundant-move.
8664
000439d5
TT
86652019-05-29 Tom Tromey <tromey@adacore.com>
8666
8667 * NEWS: Add entry.
8668 * infcmd.c (print_return_value_1): Handle finish_print
8669 option.
8670 (show_print_finish): New function.
8671 (_initialize_infcmd): Add "set/show print finish" commands.
8672 * valprint.c (user_print_options): Initialize new member.
8673 * valprint.h (struct value_print_options) <finish_print>: New
8674 member.
8675
c0e70c62
TT
86762019-05-28 Tom Tromey <tromey@adacore.com>
8677
8678 * ada-lang.c (ada_remove_Xbn_suffix)
8679 (find_old_style_renaming_symbol)
8680 (parse_old_style_renaming): Remove.
8681 (ada_find_renaming_symbol): Don't call
8682 find_old_style_renaming_symbol.
8683 (ada_is_renaming_symbol): Rename from
8684 ada_find_renaming_symbol. Remove "block" parameter. Return
8685 bool. Now static.
8686 (ada_read_var_value): Update and simplify.
8687 * ada-exp.y (write_var_or_type): Remove old code.
8688
766f8836
AH
86892019-05-28 Alan Hayward <alan.hayward@arm.com>
8690
68255adc 8691 PR gdb/25010
766f8836
AH
8692 * event-top.c: Remove include comment.
8693 * inflow.c (class scoped_ignore_sigttou): Move from here...
8694 * inflow.h (class scoped_ignore_sigttou): ...to here.
8695 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8696 * top.c: Remove include comment.
8697
eb41253a
TT
86982019-05-27 Tom Tromey <tom@tromey.com>
8699
8700 * NEWS: Fix typo.
8701
4ca51187
TT
87022019-05-22 Tom Tromey <tromey@adacore.com>
8703
8704 * target.c (target_follow_exec): Constify parameter.
8705 * target-delegates.c: Rebuild.
8706 * remote.c (remote_target::follow_exec): Constify parameter.
8707 * infrun.c (follow_exec): Constify parameter.
8708 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8709 (target_follow_exec): Likewise.
8710
8fca4da0
AH
87112019-05-22 Alan Hayward <alan.hayward@arm.com>
8712
8713 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8714 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8715
b7060614
AH
87162019-05-22 Alan Hayward <alan.hayward@arm.com>
8717
8718 * NEWS: Add debugredirect and testsuite sections.
8719
0a5954bd
SC
87202019-05-22 Simon Cook <simon.cook@embecosm.com>
8721
8722 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8723 target descriptions using exclusively floating point register name
8724 aliases.
8725
dc42e902
AB
87262019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8727
8728 PR gdb/18644:
8729 * f-lang.c (build_fortran_types): Handle the case where
8730 gdbarch_floatformat_for_type returns a nullptr.
8731
fb7806c7
TV
87322019-05-21 Tom de Vries <tdevries@suse.de>
8733
8734 PR cli/24587
8735 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8736
34d11c68
AB
87372019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8738
8739 PR gdb/18644:
8740 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8741 16-byte floats.
8742 * i386-tdep.c (i386_floatformat_for_type): Use
8743 floatformats_ia64_quad for the 16-byte floating point component
8744 within a fortran 32-byte complex number.
8745
122cf0f2
AB
87462019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8747
8748 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8749 delete default constructor.
8750 (find_partial_die): Update to return const struct.
8751 (partial_die_parent_scope): Move variable declaration into scope
8752 of its use and change its type to auto.
8753 (guess_partial_die_structure_name): Likewise.
8754 (partial_die_info::fixup): Likewise.
8755
33d0e35a
TT
87562019-05-17 Tom Tromey <tromey@adacore.com>
8757
8758 * source.c (find_and_open_source): Remove cast.
8759
a45575b0
TT
87602019-05-17 Tom Tromey <tromey@adacore.com>
8761
8762 * annotate.c (annotate_source): Make "filename" const.
8763 * annotate.h (annotate_source): Use const.
8764
81f47ac2
AH
87652019-05-17 Alan Hayward <alan.hayward@arm.com>
8766
8767 * disasm.c (set_disassembler_options): Send errors to stderr.
8768
ca1285d1
AH
87692019-05-17 Alan Hayward <alan.hayward@arm.com>
8770
8771 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8772 (cli_interp_base::set_logging): Check debug_redirect.
8773 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8774 * cli/cli-logging.c (debug_redirect): Add static variable.
8775 (pop_output_files): Add default param.
8776 (handle_redirections): Print debug setting.
8777 (show_logging_command): Likewise.
8778 (_initialize_cli_logging): Add debugredirect command.
8779 * interps.c (current_interp_set_logging): Add debug_redirect
8780 parameter.
8781 * interps.h (set_logging): Add debug_redirect parameter.
8782 (current_interp_set_logging): Likewise.
8783 * mi/mi-common.h: Likewise.
8784 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8785
87862019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
8787 Tom Tromey <tromey@adacore.com>
8788
8789 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8790 directly.
8791 * cli/cli-interp.h (make_logging_output): Remove declaration.
8792 * cli/cli-logging.c (make_logging_output): Remove function.
8793 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8794 directly.
8795 * ui-file.c (tee_file::tee_file): Remove bools.
8796 (tee_file::~tee_file): Remove deletes.
8797 * ui-file.h (tee_file): Remove bools.
8798
26648588
JV
87992019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8800
8801 * mi/mi-cmds.h (mi_cmd_complete): New function.
8802 * mi/mi-main.c (mi_cmd_complete): Likewise.
8803 * mi/mi-cmds.c: Define new MI command -complete.
8804 * NEWS: Mention new -complete command.
8805
6e035501
JV
88062019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8807
8808 * completer.h (complete): New function.
8809 * completer.c (complete): Likewise.
8810 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8811 function defined in completer.h.
8812
7d0e2ece
JV
88132019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8814
e79be6e5 8815 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 8816
fb816e8b
TV
88172019-05-17 Tom de Vries <tdevries@suse.de>
8818
8819 PR gdb/24094
8820 * dwarf2read.c (struct cu_partial_die_info): New struct.
8821 (find_partial_die): Return cu_partial_die_info.
8822 (partial_die_parent_scope, guess_partial_die_structure_name)
8823 (partial_die_info::fixup): Handle new return type of find_partial_die.
8824
677052f2
SDJ
88252019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8826
a1726c38 8827 PR breakpoints/24541
677052f2
SDJ
8828 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8829 "std::string", simplifying the algorithm.
8830
f3da9116
SDJ
88312019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8832
8833 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8834 (stap_static_probe_ops::get_probes): Likewise.
8835
f1bb75ab
SDJ
88362019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8837
8838 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8839 '-')" and "else if".
8840 (stap_parse_single_operand): Join checks for
8841 "gdbarch_stap_parse_special_token_p" and
8842 "gdbarch_stap_parse_special_token" in the same "if" statement.
8843 Invert check when verifying for operation on register
8844 displacement.
8845
3ca58cde
SDJ
88462019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8847
8848 * stap-probe.c (stap_get_opcode): Update comment.
8849 (stap_get_expected_argument_type): Likewise.
8850 (handle_stap_probe): Likewise.
8851
af2d9bee
SDJ
88522019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8853
8854 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8855 return type to 'bool'. Adjust comment. Use 'bool' when
8856 appropriate.
8857 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8858 * stap-probe.c (stap_parse_argument_1): Likewise.
8859 (stap_is_operator): Likewise.
8860 (stap_is_generic_prefix): Likewise.
8861 (stap_is_register_prefix): Likewise.
8862 (stap_is_register_indirection_prefix): Likewise.
8863 (stap_is_integer_prefix): Likewise.
8864 (stap_generic_check_suffix): Likewise.
8865 (stap_check_integer_suffix): Likewise.
8866 (stap_check_register_suffix): Likewise.
8867 (stap_check_register_indirection_suffix): Likewise.
8868 (stap_parse_register_operand): Likewise.
8869 (stap_parse_single_operand): Likewise.
8870 (stap_parse_argument_1): Likewise.
8871 (stap_probe::get_argument_count): Likewise.
8872 (stap_is_operator): Likewise.
8873
61c9c421
TT
88742019-05-16 Tom Tromey <tromey@adacore.com>
8875
8876 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8877 keyword to foreach.
8878
9ddc1af1
SM
88792019-05-15 Simon Marchi <simon.marchi@efficios.com>
8880
8881 * linux-thread-db.c (try_thread_db_load_1): Change return type
8882 to bool.
8883 (try_thread_db_load): Likewise.
8884 (try_thread_db_load_from_pdir_1): Likewise.
8885 (try_thread_db_load_from_pdir): Likewise.
8886 (try_thread_db_load_from_sdir): Likewise.
8887 (try_thread_db_load_from_dir): Likewise.
8888 (thread_db_load_search): Likewise.
8889 (has_libpthread): Likewise.
8890 (thread_db_load): Likewise.
8891
7bede828
SDJ
88922019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8893
8894 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8895 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8896 NULL, and complain/return if that's the case.
8897
c5358db4
JD
88982019-05-15 John Darrington <john@darrington.wattle.id.au>
8899
8900 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8901 (advance, posn, abstract_read_memory): New functions.
8902 [struct mem_read_abstraction]: New struct.
8903 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8904
c408a94f
TT
89052019-05-14 Tom Tromey <tromey@adacore.com>
8906
8907 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8908 value is not lval_memory.
8909
e7bd7fba
TT
89102019-05-14 Tom Tromey <tromey@adacore.com>
8911
8912 * solib.c (info_sharedlibrary_command): Style the file name.
8913
a6d0f249
AH
89142019-05-14 Alan Hayward <alan.hayward@arm.com>
8915
8916 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8917 (aarch64_vnv_type): Likewise.
8918 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8919 * common/tdesc.c: Likewise.
8920 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8921 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8922 * features/aarch64-fpu.xml: Add ieee half view.
8923 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8924 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8925 * gdbtypes.h (struct builtin_type): Likewise.
8926 (struct objfile_type): Likewise.
8927
66b8bb74
SM
89282019-05-12 Paul Naert <paul.naert@polymtl.ca>
8929
8930 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8931 typo.
8932 * location.h (string_to_event_location): Likewise.
8933
21c219fd
JB
89342019-05-11 Joel Brobecker <brobecker@adacore.com>
8935
8936 GDB 8.3 released.
8937
13674803
SM
89382019-05-10 Simon Marchi <simon.marchi@efficios.com>
8939
8940 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8941 New variable declaration.
8942 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8943 New variable.
8944 (print_one_breakpoint): Use ui_out::test_flags and new global
8945 variable to compute use_fixed_output.
8946 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8947 Remove.
8948 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8949 (mi_multi_location_breakpoint_output_fixed): Remove.
8950 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8951 new variable.
8952 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8953 fix_multi_location_breakpoint_output flag if version >= 3.
8954 * ui-out.h (enum ui_out_flag)
8955 <fix_multi_location_breakpoint_output>: New enumerator.
8956
a9eac7f9
SM
89572019-05-10 Simon Marchi <simon.marchi@efficios.com>
8958
8959 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8960
71bed2db
TT
89612019-05-10 Tom Tromey <tromey@adacore.com>
8962
8963 * ada-lang.c (catch_ada_completer): New function.
8964 (_initialize_ada_language): Use it.
8965
24c54127
TT
89662019-05-10 Tom Tromey <tromey@adacore.com>
8967
8968 * thread.c (print_thread_info): Make "requested_threads" const.
8969 * gdbthread.h (print_thread_info): Make "requested_threads"
8970 const.
8971 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8972 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8973
7a102139
TT
89742019-05-08 Tom Tromey <tom@tromey.com>
8975
8976 * gdbtypes.c (objfile_type_data): Change type.
8977 (objfile_type, _initialize_gdbtypes): Update.
8978
924d79e2
TT
89792019-05-08 Tom Tromey <tom@tromey.com>
8980
8981 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8982 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8983 (_initialize_dwarf2_frame): Update.
8984
4c58e337
TT
89852019-05-08 Tom Tromey <tom@tromey.com>
8986
8987 * objc-lang.c (objc_objfile_data): Change type.
8988 (find_methods): Update.
8989 (_initialize_objc_lang): Remove.
8990
d772d2ab
TT
89912019-05-08 Tom Tromey <tom@tromey.com>
8992
8993 * stabsread.c (rs6000_builtin_type_data): Change type.
8994 (rs6000_builtin_type, _initialize_stabsread): Update.
8995
d11d83f4
TT
89962019-05-08 Tom Tromey <tom@tromey.com>
8997
8998 * mips-tdep.c (mips_pdr_data): Remove.
8999 (_initialize_mips_tdep): Update.
9000
9a73f0ad
TT
90012019-05-08 Tom Tromey <tom@tromey.com>
9002
9003 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9004 (hppa_init_objfile_priv_data, read_unwind_info)
9005 (find_unwind_entry, _initialize_hppa_tdep): Update.
9006
8127a2fa
TT
90072019-05-08 Tom Tromey <tom@tromey.com>
9008
9009 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9010 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9011 on obstack.
9012 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9013
91d3055d
TT
90142019-05-08 Tom Tromey <tom@tromey.com>
9015
9016 * mdebugread.c (basic_type_data): Change type.
9017 (basic_type, _initialize_mdebugread): Update.
9018
31930bd3
TT
90192019-05-08 Tom Tromey <tom@tromey.com>
9020
9021 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9022
bdb3ed9e
TT
90232019-05-08 Tom Tromey <tom@tromey.com>
9024
9025 * nto-tdep.c (nto_inferior_data_reg): Change type.
9026 (nto_inferior_data): Update.
9027 (nto_inferior_data_cleanup, nto_new_inferior_data)
9028 (_initialize_nto_tdep): Remove.
9029 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9030
f37b313d
TT
90312019-05-08 Tom Tromey <tom@tromey.com>
9032
9033 * ada-lang.c (struct ada_inferior_data): Add initializers.
9034 (ada_inferior_data): Change type.
9035 (ada_inferior_data_cleanup): Remove.
9036 (get_ada_inferior_data, ada_inferior_exit)
9037 (struct ada_pspace_data): Add initializers, destructor.
9038 (ada_pspace_data_handle): Change type.
9039 (get_ada_pspace_data): Update.
9040 (ada_pspace_data_cleanup): Remove.
9041
24699405
TT
90422019-05-08 Tom Tromey <tom@tromey.com>
9043
9044 * coffread.c (struct coff_symfile_info): Add initializers.
9045 (coff_objfile_data_key): Move lower. Change type.
9046 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9047 Update.
9048 (coff_free_info): Remove.
9049
d4e05d2f
TT
90502019-05-08 Tom Tromey <tom@tromey.com>
9051
9052 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9053 (fbsd_pspace_data_handle): Move lower. Change type.
9054 (get_fbsd_pspace_data): Update.
9055 (fbsd_pspace_data_cleanup): Remove.
9056 (_initialize_fbsd_tdep): Update.
9057
14ef6690
TT
90582019-05-08 Tom Tromey <tom@tromey.com>
9059
9060 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9061 (get_ada_tasks_pspace_data): Update.
9062 (ada_tasks_pspace_data_cleanup): Remove.
9063 (_initialize_tasks): Update.
9064 (ada_tasks_inferior_data_handle): Change type.
9065 (get_ada_tasks_inferior_data): Update.
9066 (ada_tasks_inferior_data_cleanup): Remove.
9067 (struct ada_tasks_pspace_data): Add initializers.
9068
814cf43a
TT
90692019-05-08 Tom Tromey <tom@tromey.com>
9070
9071 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9072 * symfile-debug.c (debug_sym_get_probes): Change type.
9073 * stap-probe.c (handle_stap_probe):
9074 (stap_static_probe_ops::get_probes): Change type.
9075 * probe.h (class static_probe_ops) <get_probes>: Change type.
9076 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9077 (parse_probes_in_pspace): Update.
9078 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9079 Update.
9080 (any_static_probe_ops::get_probes): Change type.
9081 * elfread.c (elfread_data): New typedef.
9082 (probe_key): Change type.
9083 (elf_get_probes): Likewise. Update.
9084 (probe_key_free): Remove.
9085 (_initialize_elfread): Update.
9086 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9087 Change type.
9088 (dtrace_process_dof_probe, dtrace_process_dof)
9089 (dtrace_static_probe_ops::get_probe): Change type.
9090
02dc647e
TT
90912019-05-08 Tom Tromey <tom@tromey.com>
9092
9093 * xcoffread.c (struct xcoff_symfile_info): Rename from
9094 coff_symfile_info. Add initializers.
9095 (xcoff_objfile_data_key): Move lower. Change type.
9096 (XCOFF_DATA): Rewrite.
9097 (xcoff_free_info): Remove.
9098 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9099 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9100 (xcoff_initial_scan): Update.
9101
09232438
TT
91022019-05-08 Tom Tromey <tom@tromey.com>
9103
9104 * solib-svr4.c (struct svr4_info): Add initializers and
9105 destructor.
9106 <probes_table>: Now an htab_up.
9107 (solib_svr4_pspace_data): Change type.
9108 (free_probes_table): Simplify.
9109 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9110 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9111 (probes_table_remove_objfile_probes, register_solib_event_probe)
9112 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9113 (_initialize_svr4_solib): Update.
9114
7b4a314f
TT
91152019-05-08 Tom Tromey <tom@tromey.com>
9116
9117 * remote.c (remote_pspace_data): Change type.
9118 (remote_pspace_data_cleanup): Remove.
9119 (get_remote_exec_file, set_pspace_remote_exec_file)
9120 (_initialize_remote): Update.
9121
51d3063a
TT
91222019-05-08 Tom Tromey <tom@tromey.com>
9123
9124 * breakpoint.c (breakpoint_objfile_key): Change type.
9125 (get_breakpoint_objfile_data): Update.
9126 (free_breakpoint_objfile_data): Remove.
9127 (_initialize_breakpoint): Update.
9128
89fb8848
TT
91292019-05-08 Tom Tromey <tom@tromey.com>
9130
9131 * linux-tdep.c (struct linux_info): Add initializers.
9132 (linux_inferior_data): Move. Change type.
9133 (invalidate_linux_cache_inf): Update.
9134 (linux_inferior_data_cleanup): Remove.
9135 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9136
e9b89e2d
TT
91372019-05-08 Tom Tromey <tom@tromey.com>
9138
9139 * auxv.c (auxv_inferior_data): Move. Change type.
9140 (auxv_inferior_data_cleanup): Remove.
9141 (invalidate_auxv_cache_inf): Rewrite.
9142 (get_auxv_inferior_data, _initialize_auxv): Update.
9143
8c42777c
TT
91442019-05-08 Tom Tromey <tom@tromey.com>
9145
9146 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9147 (symfile_debug_objfile_data_key): Change type.
9148 (symfile_debug_installed, debug_qf_has_symbols)
9149 (debug_qf_find_last_source_symtab)
9150 (debug_qf_forget_cached_source_info)
9151 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9152 (debug_qf_print_stats, debug_qf_dump)
9153 (debug_qf_expand_symtabs_for_function)
9154 (debug_qf_expand_all_symtabs)
9155 (debug_qf_expand_symtabs_with_fullname)
9156 (debug_qf_map_matching_symbols)
9157 (debug_qf_expand_symtabs_matching)
9158 (debug_qf_find_pc_sect_compunit_symtab)
9159 (debug_qf_map_symbol_filenames)
9160 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9161 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9162 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9163 (debug_sym_read_linetable, debug_sym_relocate): Update.
9164 (symfile_debug_free_objfile): Remove.
9165 (install_symfile_debug_logging, _initialize_symfile_debug):
9166 Update.
9167
5bfd760d
TT
91682019-05-08 Tom Tromey <tom@tromey.com>
9169
9170 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9171 allocate_on_obstack.
9172 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9173 (get_dwarf2_per_objfile): Update.
9174 (set_dwarf2_per_objfile): Remove.
9175 (dwarf2_has_info, dwarf2_get_section_info): Update.
9176 (dwarf2_free_objfile): Remove.
9177 (_initialize_dwarf2_read): Update.
9178
e85e19b4
TT
91792019-05-08 Tom Tromey <tom@tromey.com>
9180
9181 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9182 initializers.
9183 <unsupported_script_warning_printed,
9184 script_not_found_warning_printed>: Now bool.
9185 (auto_load_pspace_data): Change type.
9186 (~auto_load_pspace_info): Rename from
9187 auto_load_pspace_data_cleanup.
9188 (get_auto_load_pspace_data, init_loaded_scripts_info)
9189 (clear_section_scripts, maybe_print_unsupported_script_warning)
9190 (maybe_print_script_not_found_warning, _initialize_auto_load):
9191 Update.
9192
f6aa7436
TT
91932019-05-08 Tom Tromey <tom@tromey.com>
9194
9195 * objfiles.c (objfile_pspace_info): Add destructor and
9196 initializers.
9197 (objfiles_pspace_data): Change type.
9198 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9199 (get_objfile_pspace_data): Update.
9200 (objfiles_bfd_data): Change type.
9201 (get_objfile_bfd_data): Update.
9202 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9203
6ae614f6
TT
92042019-05-08 Tom Tromey <tom@tromey.com>
9205
9206 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9207 Change type.
9208 (get_catch_syscall_inferior_data): Update.
9209 (catch_syscall_inferior_data_cleanup): Remove.
9210 (_initialize_break_catch_syscall): Update.
9211
6509b8eb
TT
92122019-05-08 Tom Tromey <tom@tromey.com>
9213
9214 * inflow.c (struct terminal_info): Add destructor and
9215 initializers.
9216 (inflow_inferior_data): Change type.
9217 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9218 (get_inflow_inferior_data, inflow_inferior_exit)
9219 (swap_terminal_info, _initialize_inflow): Update.
9220
35632941
TT
92212019-05-08 Tom Tromey <tom@tromey.com>
9222
9223 * target-dcache.c (target_dcache_cleanup): Remove.
9224 (target_dcache_aspace_key): Change type.
9225 (target_dcache_init_p, target_dcache_invalidate)
9226 (target_dcache_get, target_dcache_get_or_init)
9227 (_initialize_target_dcache): Update.
9228 * dcache.h (struct dcache_deleter): New.
9229
3017b94d
TT
92302019-05-08 Tom Tromey <tom@tromey.com>
9231
9232 * symtab.c (struct symbol_cache): Add destructor and
9233 initializers.
9234 (symbol_cache_key): Move. Change type.
9235 (make_symbol_cache, free_symbol_cache): Remove.
9236 (get_symbol_cache): Update.
9237 (symbol_cache_cleanup): Remove.
9238 (ALL_PSPACES, symbol_cache_flush)
9239 (maintenance_print_symbol_cache)
9240 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9241 Update.
9242
a32ad8c5
TT
92432019-05-08 Tom Tromey <tom@tromey.com>
9244
9245 * symtab.c (struct main_info): Add destructor and initializers.
9246 (main_progspace_key): Move. Change type.
9247 (get_main_info): Update.
9248 (main_info_cleanup): Remove.
9249 (_initialize_symtab): Update.
9250
5f6e90a0
TT
92512019-05-08 Tom Tromey <tom@tromey.com>
9252
9253 * registry.h (DECLARE_REGISTRY): Define the _key class.
9254
1bd0c6e4
AB
92552019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9256
9257 * NEWS: Merge two 'New commands' sections.
9258
2228ef77
XR
92592019-05-08 Joel Brobecker <brobecker@adacore.com>
9260
9261 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9262 parameter and use Ada language definition instead.
9263 (ada_val_print_ptr): Remove unused language parameter.
9264 (ada_val_print_num): Remove language parameter and use Ada language
9265 definition instead.
9266 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9267 parameter.
9268 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9269 parameter and use Ada language definition instead.
9270 (ada_val_print_1): Update all ada_val_print_xxx calls.
9271 Remove language parameter.
9272 (ada_val_print): Update ada_val_print_1 call.
9273
60fcc1c3
TT
92742019-05-08 Tom Tromey <tromey@adacore.com>
9275
9276 * remote.c (remote_hw_watchpoint_limit)
9277 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9278 Now static.
9279
ed2b7c17
TT
92802019-05-08 Tom Tromey <tromey@adacore.com>
9281
9282 * maint.c (_initialize_maint_cmds): Move initialization code to
9283 remote.c.
9284 (watchdog, show_watchdog): Move to remote.c.
9285 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9286 "watchdog" static.
9287 (_initialize_remote): Move initialization code from maint.c.
9288 * defs.h (watchdog): Don't declare.
9289
b0be6c91
TT
92902019-05-08 Tom Tromey <tromey@adacore.com>
9291
9292 * tui/tui-interp.c: Include main.h.
9293 * interps.c: Include main.h.
9294 * main.h (interpreter_p): Declare.
9295 * defs.h (interpreter_p): Don't declare.
9296
587ee17b
TT
92972019-05-08 Tom Tromey <tromey@adacore.com>
9298
9299 * dwarf2loc.c: Include dwarf2read.h.
9300 * defs.h (read_unsigned_leb128): Don't declare.
9301 * dwarf2read.h (read_unsigned_leb128): Declare.
9302
ca1df239
TT
93032019-05-08 Tom Tromey <tromey@adacore.com>
9304
9305 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9306 method.
9307
99f20f08
TT
93082019-05-08 Tom Tromey <tromey@adacore.com>
9309
9310 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9311 when no wrap column is set.
9312
80e55b13
TT
93132019-05-08 Tom Tromey <tromey@adacore.com>
9314
9315 * c-lang.c (c_get_string): Handle non-C-style arrays.
9316
9d3421af
TT
93172019-05-08 Tom Tromey <tromey@adacore.com>
9318
9319 * typeprint.c (print_offset_data::update): Print the bit offset,
9320 not the number of bits remaining.
9321
844333e2
TT
93222019-05-08 Tom Tromey <tromey@adacore.com>
9323
9324 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9325 padding at end of comment.
9326
988915ee
TT
93272019-05-08 Tom Tromey <tromey@adacore.com>
9328
9329 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9330 Compare main types.
9331
26bfd823
TT
93322019-05-06 Tom Tromey <tom@tromey.com>
9333
9334 * common/scoped_mmap.c: Include common-defs.h.
9335 * common/scoped_mmap.h: Don't include config.h.
9336
89055eaa
TT
93372019-05-04 Tom Tromey <tom@tromey.com>
9338
9339 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9340 (struct aarch64_call_info): Add initializers.
9341 <si>: Now a std::vector.
9342 (pass_on_stack, aarch64_push_dummy_call): Update.
9343
5da01df5
TT
93442019-05-04 Simon Marchi <simon.marchi@efficios.com>
9345 Tom Tromey <tom@tromey.com>
9346
9347 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9348 (ppc_threads): Now a std::vector. Now static.
9349 (hwdebug_find_thread_points_by_tid)
9350 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9351 Update.
9352
fbdf05a1
TT
93532019-05-04 Tom Tromey <tom@tromey.com>
9354
9355 * arc-tdep.c (arc_tdesc_init): Return bool.
9356
06d16ec9
TT
93572019-05-04 Tom Tromey <tom@tromey.com>
9358
9359 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9360 Use gdb_assert_not_reached.
9361
9c056022
TT
93622019-05-04 Tom Tromey <tom@tromey.com>
9363
9364 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9365 "false".
9366
fa9c2a59
TT
93672019-05-04 Tom Tromey <tom@tromey.com>
9368
9369 * arc-tdep.c (arc_tdesc_init): Use bool.
9370
e2eb806a
TT
93712019-05-04 Tom Tromey <tom@tromey.com>
9372
9373 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9374
6fe87677
TT
93752019-05-04 Tom Tromey <tom@tromey.com>
9376
9377 * cli/cli-cmds.c (valid_command_p): Return bool.
9378
7f008c9e
TT
93792019-05-04 Tom Tromey <tom@tromey.com>
9380
9381 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9382 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9383
b6484282
RT
93842019-05-04 Raul Tambre <raul@tambre.ee>
9385
9386 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9387 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9388 operator for comparison.
9389
af97b416
TT
93902019-05-04 Tom Tromey <tom@tromey.com>
9391
9392 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9393 (lookup_partial_symbol, print_partial_symbols)
9394 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9395 (psymbol_compare): Update.
9396 (add_psymbol_to_bcache): Clear the entire psymbol.
9397 (maintenance_check_psymtabs): Update.
9398 * psympriv.h (struct partial_symbol): Don't derive from
9399 general_symbol_info.
9400 <obj_section, unrelocated_address, address,
9401 set_unrelocated_address>: Update.
9402 <ginfo>: New member.
9403 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9404 (debug_names::write_psymbols): Update.
9405
9d6d4be8
TV
94062019-05-04 Tom de Vries <tdevries@suse.de>
9407
9408 * contrib/cc-with-tweaks.sh: Support -n arg.
9409
66452beb
PW
94102019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9411
9412 * corelow.c (core_target::detach): Ensure frame cache and
9413 register caches are cleared.
9414 inferior.c (exit_inferior_1): Likewise.
9415
bde09ab7
TT
94162019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9417 Tom Tromey <tom@tromey.com>
9418
9419 * dictionary.c (collate_pending_symbols_by_language): Remove
9420 "struct" from foreach.
9421 * symtab.c (lookup_global_symbol_from_objfile)
9422 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9423 foreach.
9424 * ser-tcp.c (net_open): Remove "struct" from foreach.
9425 * objfiles.c (objfile_relocate, objfile_rebase)
9426 (objfile_has_symbols): Remove "struct" from foreach.
9427 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9428 from foreach.
9429 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9430 foreach.
9431 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9432 "struct" from foreach.
9433 * ada-lang.c (create_excep_cond_exprs)
9434 (ada_exception_catchpoint_cond_string): Remove "struct" from
9435 foreach.
9436
222a8d25
TT
94372019-05-03 Tom Tromey <tromey@adacore.com>
9438
9439 * ada-exp.y (convert_char_literal): Check suffix of each
9440 enumerator.
9441
fcd60b84
DP
94422019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9443
9444 PR ada/21406:
9445 * ada-exp.y (yywrap): Don't define.
9446 * ada-lex.l (%option): Add noyywrap
9447 (yywrap): Remove.
9448
5f2459c2
EZ
94492019-05-03 Eli Zaretskii <eliz@gnu.org>
9450
353ea2d1
EZ
9451 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9452 _WIN32_WINNT to the XP level, unless already defined to a higher
9453 level.
9454
9455 * unittests/parse-connection-spec-selftests.c:
9456 * ser-tcp.c:
9457 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9458 override.
9459
5f2459c2
EZ
9460 * symfile.c (find_separate_debug_file): Remove colon from the
9461 drive spec of DOS/Windows file names of the target, so that the
9462 file name produced from DEBUGDIR and the target's directory will
9463 be valid on DOS/Windows systems.
9464
80062eb9
AB
94652019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9466
9467 * rust-lang.c (val_print_struct): Handle printing structures
9468 containing strings.
9469
b8c05e85
TT
94702019-05-02 Tom Tromey <tromey@adacore.com>
9471
9472 * valarith.c (_initialize_valarith): Remove.
9473
4504bbde
TT
94742019-05-01 Tom Tromey <tromey@adacore.com>
9475
9476 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9477 bitfields.
9478
d48e62f4
TT
94792019-05-01 Tom Tromey <tromey@adacore.com>
9480
9481 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9482 for big-endian copies.
9483
15f18d14
AT
94842019-04-30 Ali Tamur <tamur@google.com>
9485 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9486 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9487 (read_3_bytes): New function.
9488
ab4ee614
JB
94892019-04-30 Joel Brobecker <brobecker@adacore.com>
9490
9491 * windows-nat.c (main_thread_id): Delete.
9492 (handle_output_debug_string): Replace main_thread_id by
9493 current_event.dwThreadId.
9494 (fake_create_process): Likewise.
9495 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9496 Do not set main_thread_id.
9497 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9498 current_event.dwThreadId.
9499 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9500
8ed5b76e
JB
95012019-04-30 Joel Brobecker <brobecker@adacore.com>
9502
9503 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9504 Use current_event.dwThreadId instead of main_thread_id.
9505
2ff0a947
TT
95062019-04-30 Tom Tromey <tromey@adacore.com>
9507
9508 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9509 (create_excep_cond_exprs): Iterate over program spaces.
9510 (ada_exception_catchpoint_cond_string): Examine all minimal
9511 symbols for exception types.
9512
a776957c
TT
95132019-04-30 Tom Tromey <tromey@adacore.com>
9514
9515 PR c++/24470:
9516 * dwarf2read.c (process_structure_scope): Handle case where type
9517 has template parameters but no symbol was created.
9518
bc68014d
AB
95192019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9520 Chris January <chris.january@arm.com>
9521
9522 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9523 qualifier.
9524 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9525
f1fdc960
AB
95262019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9527
9528 * f-typeprint.c (f_print_type): Update rules for printing
9529 whitespace.
9530 (f_type_print_varspec_suffix): Likewise.
9531
bf7a4de1
AB
95322019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9533 Chris January <chris.january@arm.com>
9534
9535 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9536 function arguments.
9537
bbe75b9d
AB
95382019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9539
9540 * f-lang.c (build_fortran_types): Change name of void type to
9541 lower case.
9542 * f-typeprint.c (f_type_print_base): Print the name of the void
9543 type, rather than a fixed string.
9544 * f-valprint.c (f_decorations): Use lower case void string.
9545
1db455a7
AB
95462019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9547 Chris January <chris.january@arm.com>
9548
9549 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9550 types for Fortran.
9551
b6d03bb2
AB
95522019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9553 Chris January <chris.january@arm.com>
9554 David Lecomber <david.lecomber@arm.com>
9555
9556 * f-exp.y (BINOP_INTRINSIC): New token.
9557 (exp): New parser rule handling BINOP_INTRINSIC.
9558 (f77_keywords): Add new builtin procedures.
9559 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9560 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9561 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9562 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9563 (print_unop_subexp_f): New function.
9564 (print_binop_subexp_f): New function.
9565 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9566 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9567 (dump_subexp_body_f): Likewise.
9568 (operator_check_f): Likewise.
9569 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9570 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9571
83228e93
AB
95722019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9573
9574 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9575 UNOP_KIND.
9576 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9577 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9578 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9579 (operator_length_f): New fuction.
9580 (print_subexp_f): New function.
9581 (op_name_f): New function.
9582 (dump_subexp_body_f): New function.
9583 (operator_check_f): New function.
9584 (exp_descriptor_f): Replace standard expression handling functions
9585 with new functions.
9586 * gdb/fortran-operator.def: New file.
9587 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9588 * gdb/std-operator.def: Remove UNOP_KIND.
9589
6fdcd7cc
AB
95902019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9591
9592 * std-operator.def: Remove unbalanced, stray double quote
9593 character.
9594
2e62ab40
AB
95952019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9596 Chris January <chris.january@arm.com>
9597 Daniel Everett <daniel.everett@arm.com>
9598 Nick Forrington <nick.forrington@arm.com>
9599 Richard Bunt <richard.bunt@arm.com>
9600
9601 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9602 of depth when printing anonymous structs or unions.
9603 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9604 Don't print either the top-level value, or the children if the
9605 max-depth is exceeded.
9606 (ppscm_print_children): When printing the key of a map, allow one
9607 extra level of depth.
9608 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9609 print either the top-level value, or the children if the max-depth
9610 is exceeded.
9611 (print_children): When printing the key of a map, allow one extra
9612 level of depth.
9613 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9614 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9615 (user_print_options): Initialise max_depth field.
9616 (val_print_scalar_or_string_type_p): New function.
9617 (val_print): Check to see if the max depth has been reached.
9618 (val_print_check_max_depth): Define new function.
9619 (show_print_max_depth): New function.
9620 (_initialize_valprint): Add 'print max-depth' option.
9621 * valprint.h (struct value_print_options) <max_depth>: New field.
9622 (val_print_check_max_depth): Declare new function.
9623 * NEWS: Document new feature.
9624
4be290b2
AB
96252019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9626
9627 * ada-lang.c (ada_language_defn): Initialise new field.
9628 * c-lang.c (c_is_string_type_p): New function.
9629 (c_language_defn): Initialise new field.
9630 (cplus_language_defn): Initialise new field.
9631 (asm_language_defn): Initialise new field.
9632 (minimal_language_defn): Initialise new field.
9633 * c-lang.h (c_is_string_type_p): Declare new function.
9634 * d-lang.c (d_language_defn): Initialise new field.
9635 * f-lang.c (f_is_string_type_p): New function.
9636 (f_language_defn): Initialise new field.
9637 * go-lang.c (go_is_string_type_p): New function.
9638 (go_language_defn): Initialise new field.
9639 * language.c (default_is_string_type_p): New function.
9640 (unknown_language_defn): Initialise new field.
9641 (auto_language_defn): Initialise new field.
9642 * language.h (struct language_defn) <la_is_string_type_p>: New
9643 member variable.
9644 (default_is_string_type_p): Declare new function.
9645 * m2-lang.c (m2_language_defn): Initialise new field.
9646 * objc-lang.c (objc_language_defn): Initialise new field.
9647 * opencl-lang.c (opencl_language_defn): Initialise new field.
9648 * p-lang.c (pascal_is_string_type_p): New function.
9649 (pascal_language_defn): Initialise new field.
9650 * rust-lang.c (rust_is_string_type_p): New function.
9651 (rust_language_defn): Initialise new field.
9652
721b08c6
AB
96532019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9654
9655 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9656 New field.
9657 * ada-lang.c (ada_language_defn): Initialise new field.
9658 * c-lang.c (c_language_defn): Likewise.
9659 (cplus_language_defn): Likewise.
9660 (asm_language_defn): Likewise.
9661 (minimal_language_defn): Likewise.
9662 * d-lang.c (d_language_defn): Likewise.
9663 * f-lang.c (f_language_defn): Likewise.
9664 * go-lang.c (go_language_defn): Likewise.
9665 * language.c (unknown_language_defn): Likewise.
9666 (auto_language_defn): Likewise.
9667 * m2-lang.c (m2_language_defn): Likewise.
9668 * objc-lang.c (objc_language_defn): Likewise.
9669 * opencl-lang.c (opencl_language_defn): Likewise.
9670 * p-lang.c (pascal_language_defn): Likewise.
9671 * rust-lang.c (rust_language_defn): Likewise.
9672
fc913e53
AB
96732019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9674
9675 * ada-lang.c (ada_is_character_type): Change return type to bool.
9676 (ada_is_string_type): Likewise.
9677 * ada-lang.h (ada_is_character_type): Update declaration
9678 (ada_is_string_type): Likewise.
9679
fa731fa0
PW
96802019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9681
9682 Support style in 'frame|thread apply'
9683
9684 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9685 * record.c (record_start, record_stop): Update callers of
9686 execute_command_to_string with false.
9687 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9688 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9689 methods.
9690 (class string_file): New constructor with term_out parameter.
9691 Override methods term_out and can_emit_style_escape. New member
9692 term_out.
9693 (class stdio_file): Override can_emit_style_escape.
9694 (class tee_file): Override term_out and can_emit_style_escape.
9695 * utils.h (can_emit_style_escape): Remove.
9696 * utils.c (can_emit_style_escape): Likewise.
9697 Update all callers of can_emit_style_escape (SOMESTREAM) to
9698 SOMESTREAM->can_emit_style_escape.
9699 * source-cache.c (source_cache::get_source_lines): Likewise.
9700 * stack.c (frame_apply_command_count): Call execute_command_to_string
9701 passing the term_out characteristic of the current gdb_stdout.
9702 * thread.c (thr_try_catch_cmd): Likewise.
9703 * top.c (execute_command_to_string): pass term_out parameter
9704 to construct the string_file for the command output.
9705 * ui-file.c (term_cli_styling): New function (most code moved
9706 from utils.c can_emit_style_escape).
9707 (string_file::string_file, string_file::can_emit_style_escape,
9708 stdio_file::can_emit_style_escape, tee_file::term_out,
9709 tee_file::can_emit_style_escape): New functions.
9710
136afab8
PW
97112019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9712
9713 * NEWS: Mention the new set|show may-call-functions.
9714 * infcall.c (may_call_functions_p): New variable.
9715 (show_may_call_functions_p): New function.
9716 (call_function_by_hand_dummy): Throws an error if not
9717 may-call-functions.
9718 (_initialize_infcall): Call add_setshow_boolean_cmd for
9719 may-call-functions.
9720
725cbb63
KS
97212019-04-25 Keith Seitz <keiths@redhat.com>
9722
9723 PR c++/24367
9724 * cp-support.c (inspect_type): Don't attempt substitutions
9725 of symbol with the same name.
9726
3d1cbb78
TT
97272019-04-25 Tom Tromey <tromey@adacore.com>
9728
9729 PR gdb/24475:
9730 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9731 static.
9732
94aeb44b
TT
97332019-04-25 Tom Tromey <tromey@adacore.com>
9734
9735 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9736 rvalue reference.
9737 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9738 (gdb_xml_parser::parse): Use std::move.
9739 * python/python-internal.h (gdbpy_convert_exception): Take a const
9740 reference.
9741 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9742 std::move.
9743 * python/py-utils.c (gdbpy_convert_exception): Take a const
9744 reference.
9745 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9746 Use std::move.
9747 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9748 Use std::move.
9749 * mi/mi-main.c (mi_print_exception): Take a const reference.
9750 * main.c (handle_command_errors): Take a const reference.
9751 * linespec.c (parse_linespec): Use std::move.
9752 * infcall.c (run_inferior_call): Use std::move.
9753 (call_function_by_hand_dummy): Use std::move.
9754 * exec.c (try_open_exec_file): Use std::move.
9755 * exceptions.h (exception_print, exception_fprintf)
9756 (exception_print_same): Update.
9757 * exceptions.c (print_exception, exception_print)
9758 (exception_fprintf, exception_print_same): Change parameters to
9759 const reference.
9760 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9761 * common/new-op.c: Use std::move.
9762 * common/common-exceptions.h (struct gdb_exception): Add move
9763 constructor.
9764 (struct gdb_exception_error, struct gdb_exception_quit, struct
9765 gdb_quit_bad_alloc): Change constructor to move constructor.
9766 (throw_exception): Change parameter to rvalue reference.
9767 * common/common-exceptions.c (throw_exception): Take rvalue
9768 reference.
9769 * cli/cli-interp.c (safe_execute_command): Use std::move.
9770 * breakpoint.c (insert_bp_location, location_to_sals): Use
9771 std::move.
9772
680d7fd5
TT
97732019-04-25 Tom Tromey <tromey@adacore.com>
9774
9775 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9776 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9777 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9778 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9779 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9780 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9781 guile/scm-value.c: Use unpack.
9782 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9783 gdbscm_gdb_exception.
9784 (gdbscm_throw_gdb_exception): Likewise.
9785 (struct gdbscm_gdb_exception): New.
9786 (unpack): New function.
9787 (gdbscm_wrap): Use unpack.
9788
c6fdd8b2
TT
97892019-04-25 Tom Tromey <tromey@adacore.com>
9790
9791 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9792 (gdb_rl_callback_handler): Use std::move.
9793 * common/common-exceptions.h (struct gdb_exception): Add move
9794 assignment operator.
9795 (throw_exception_sjlj): Change "exception" to const reference.
9796 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9797 (throw_exception_sjlj): Change "exception" to const reference.
9798
cc06b668
TT
97992019-04-25 Tom Tromey <tromey@adacore.com>
9800
9801 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9802 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9803 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9804 Update.
9805 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9806 Update.
9807 * mi/mi-interp.c (mi_interp::exec): Update.
9808 * linespec.c (parse_linespec): Update.
9809 * infcall.c (run_inferior_call): Update.
9810 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9811 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9812 (gdbscm_lookup_global_symbol): Update.
9813 * guile/scm-param.c (gdbscm_parameter_value): Update.
9814 * guile/scm-frame.c (gdbscm_frame_read_register)
9815 (gdbscm_frame_read_var): Update.
9816 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9817 * exec.c (try_open_exec_file): Update.
9818 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9819 (gdb_rl_callback_handler): Update.
9820 * common/common-exceptions.h (exception_none): Don't declare.
9821 * common/common-exceptions.c (exception_none): Don't define.
9822 (struct catcher) <exception>: Update.
9823 * cli/cli-interp.c (safe_execute_command): Update.
9824 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9825
cf532bd1
AT
98262019-04-25 Ali Tamur <tamur@google.com>
9827
9828 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9829 (read_attribute_value): Likewise.
9830 (dwarf2_read_addr_index): Update comment.
9831 (read_str_index): Add DW_FORM_strx.
9832 (dwarf2_string_attr): Likewise.
9833 (dwarf2_const_value_attr): Likewise.
9834 (dump_die_shallow): Likewise.
9835 (dwarf2_fetch_constant_bytes): Likewise.
9836 (skip_form_bytes): Likewise.
9837 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9838
82433e3e
SDJ
98392019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9840
9841 PR corefiles/11608
9842 PR corefiles/18187
9843 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9844 OFFSET. Verify if current mapping contains an ELF header.
9845 (linux_find_memory_regions_full): Adjust call to
9846 dump_mapping_p.
9847
723adb65
SL
98482019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9849 Kang Li <kanglictf@gmail.com>
9850
9851 PR gdb/21600
9852
9853 * dwarf2-frame.c (read_initial_length): Be consistent about using
9854 unsigned representation of length.
9855 (decode_frame_entry_1): Likewise. Check for wraparound of
9856 end pointer as well as buffer overflow.
9857
596179f7
SDJ
98582019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9859
9860 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9861 "vq".
9862
a59240a4
TT
98632019-04-24 Tom Tromey <tromey@adacore.com>
9864
9865 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9866
f872fdbb
AB
98672019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9868
9869 * s12z-tdep.c (s12z_unwind_pc): Delete.
9870 (s12z_unwind_sp): Delete.
9871 (s12z_gdbarch_init): Don't register deleted functions with
9872 gdbarch.
9873
b614e6f3
AB
98742019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9875
9876 * rl78-tdep.c (rl78_unwind_sp): Delete.
9877 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9878
14faed38
AB
98792019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9880
9881 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9882 (xstormy16_unwind_pc): Delete.
9883 (xstormy16_dummy_id): Delete.
9884 (xstormy16_gdbarch_init): Don't register deleted functions with
9885 gdbarch.
9886
541aad8a
AB
98872019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9888
9889 * vax-tdep.c (vax_unwind_pc): Delete.
9890 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9891
29222070
AB
98922019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9893
9894 * v850-tdep.c (v850_unwind_sp): Delete.
9895 (v850_unwind_pc): Delete.
9896 (v850_dummy_id): Delete.
9897 (v850_gdbarch_init): Don't register deleted functions with
9898 gdbarch.
9899
0f534d76
AB
99002019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9901
9902 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9903 (tilegx_unwind_pc): Delete.
9904 (tilegx_unwind_dummy_id): Delete.
9905 (tilegx_gdbarch_init): Don't register deleted functions with
9906 gdbarch.
9907
1ba7b7f9
AB
99082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9909
9910 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9911 (tic6x_dummy_id): Delete.
9912 (tic6x_gdbarch_init): Don't register deleted functions with
9913 gdbarch.
9914
d31f262c
AB
99152019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9916
9917 * sparc-tdep.c (sparc_unwind_pc): Delete.
9918 (sparc32_gdbarch_init): Don't register deleted function with
9919 gdbarch.
9920
6d14d64d
AB
99212019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9922
9923 * sh-tdep.c (sh_unwind_sp): Delete.
9924 (sh_unwind_pc): Delete.
9925 (sh_dummy_id): Delete.
9926 (sh_gdbarch_init): Don't register deleted functions with
9927 gdbarch.
9928
a40dde9d
AB
99292019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9930
9931 * score-tdep.c (score_unwind_sp): Delete.
9932 (score_unwind_pc): Delete.
9933 (score_dummy_id): Delete.
9934 (score_gdbarch_init): Don't register deleted functions with
9935 gdbarch.
9936
47c47d69
AB
99372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9938
9939 * rx-tdep.c (rx_unwind_pc): Delete.
9940 (rx_unwind_sp): Delete.
9941 (rx_dummy_id): Delete.
9942 (rx_gdbarch_init): Don't register deleted functions with
9943 gdbarch. Update comment.
9944
833a4480
AB
99452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9946
9947 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9948 (rs6000_dummy_id): Delete.
9949 (rs6000_gdbarch_init): Don't register deleted functions with
9950 gdbarch.
9951
3f2cef49
AB
99522019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9953
9954 * or1k-tdep.c (or1k_dummy_id): Delete.
9955 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9956
96acf884
AB
99572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9958
9959 * nios2-tdep.c (nios2_dummy_id): Delete.
9960 (nios2_unwind_sp): Delete.
9961 (nios2_gdbarch_init): Don't register deleted functions with
9962 gdbarch.
9963
ca0ab0aa
AB
99642019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9965
9966 * nds32-tdep.c (nds32_dummy_id): Delete.
9967 (nds32_unwind_pc): Delete.
9968 (nds32_unwind_sp): Delete.
9969 (nds32_gdbarch_init): Don't register deleted functions with
9970 gdbarch.
9971
c8259044
AB
99722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9973
9974 * msp430-tdep.c (msp430_unwind_pc): Delete.
9975 (msp430_unwind_sp): Delete.
9976 (msp430_dummy_id): Delete.
9977 (msp430_gdbarch_init): Don't register deleted functions with
9978 gdbarch.
9979
27f113c8
AB
99802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9981
9982 * moxie-tdep.c (moxie_unwind_sp): Delete.
9983 (moxie_unwind_pc): Delete.
9984 (moxie_dummy_id): Delete.
9985 (moxie_gdbarch_init): Don't register deleted functions with
9986 gdbarch.
9987
aee6c3cd
AB
99882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9989
9990 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9991 (mn10300_unwind_pc): Delete.
9992 (mn10300_unwind_sp): Delete.
9993 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9994 mn10300_unwind_sp.
9995 (mn10300_frame_unwind_init): Don't register deleted functions with
9996 gdbarch.
9997
8e2b5aea
AB
99982019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9999
10000 * mep-tdep.c (mep_unwind_pc): Delete.
10001 (mep_unwind_sp): Delete.
10002 (mep_dummy_id): Delete.
10003 (mep_gdbarch_init): Don't register deleted functions with
10004 gdbarch.
10005
43cf3ede
AB
100062019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10007
10008 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10009 (m68hc11_unwind_sp): Delete.
10010 (m68hc11_gdbarch_init): Don't register deleted functions with
10011 gdbarch.
10012
5e79b7bb
AB
100132019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10014
10015 * m32r-tdep.c (m32r_unwind_sp): Delete.
10016 (m32r_unwind_pc): Delete.
10017 (m32r_dummy_id): Delete.
10018 (m32r_gdbarch_init): Don't register deleted functions with
10019 gdbarch.
10020
89b268d8
AB
100212019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10022
10023 * m32c-tdep.c (m32c_unwind_pc): Delete.
10024 (m32c_unwind_sp): Delete.
10025 (m32c_dummy_id): Delete.
10026 (m32c_gdbarch_init): Don't register deleted functions with
10027 gdbarch.
10028
946c28d2
AB
100292019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10030
10031 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10032 (lm32_unwind_pc): Delete.
10033 (lm32_dummy_id): Delete.
10034 (lm32_gdbarch_init): Don't register deleted functions with
10035 gdbarch.
10036
bf12844a
AB
100372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10038
10039 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10040 (iq2000_unwind_pc): Delete.
10041 (iq2000_dummy_id): Delete.
10042 (iq2000_gdbarch_init): Don't register deleted functions with
10043 gdbarch.
10044
ecbc06d2
AB
100452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10046
10047 * nds32-tdep.c (nds32_type_align): Delete.
10048 (nds32_push_dummy_call): Use type_align instead.
10049
030197b4
AB
100502019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10051
10052 * arm-tdep.c (arm_type_align): Only handle vector override case.
10053 (arm_push_dummy_call): Use type_align.
10054 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10055
b907456c
AB
100562019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10057
10058 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10059 case.
10060 (pass_on_stack): Use type_align.
10061 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10062 function.
10063
9e97ba43
TT
100642019-04-23 Tom Tromey <tromey@adacore.com>
10065
10066 * dwarf2read.c (line_header::file_name_at): Remove unused
10067 overload.
10068
6892f601
TV
100692019-04-23 Tom de Vries <tdevries@suse.de>
10070
10071 PR gdb/24438
10072 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10073 invocation.
10074
336d760d
AT
10075
100762019-03-27 Ali Tamur <tamur@google.com>
10077
10078 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10079 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10080 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10081 (dwarf_expr_context::get_addr_index): Likewise
10082 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10083 (symbol_needs_eval_context::get_addr_index): Likewise
10084 (disassemble_dwarf_expression): Add DW_OP_addrx
10085 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10086 (read_cutu_die_from_dwo): Update comment
10087 (skip_one_die): Add DW_FORM_addrx
10088 (read_attribute_value): Likewise
10089 (var_decode_location): Add DW_OP_addrx
10090 (dwarf2_const_value_attr): Add DW_FORM_addrx
10091 (dump_die_shallow): Likewise
10092 (dwarf2_fetch_constant_bytes): Likewise
10093 (decode_locdesc): Add DW_OP_addrx
10094 (skip_form_bytes): Add DW_FORM_addrx
10095
ad9d13f8
AT
100962019-04-22 Ali Tamur <tamur@google.com>
10097
10098 * MAINTAINERS (Write After Approval): Add self.
10099
d70cc3ba
SM
101002019-04-22 Simon Marchi <simon.marchi@efficios.com>
10101
10102 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10103 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10104 (open_symbol_file_object): Likewise.
10105 (svr4_default_sos): Add info parameter.
10106 (svr4_read_so_list): Likewise.
10107 (svr4_current_sos_direct): Adjust functions calls to pass down
10108 info.
10109 (svr4_current_sos_1): Add info parameter.
10110 (svr4_current_sos): Call get_svr4_info, pass info down to
10111 svr4_current_sos_1.
10112 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10113 get_svr4_info.
10114 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10115 get_svr4_info.
10116 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10117 to get_svr4_info.
10118 (probes_table_remove_objfile_probes): Likewise.
10119 (register_solib_event_probe): Add info parameter.
10120 (solist_update_incremental): Pass info parameter down to
10121 svr4_read_so_list.
10122 (disable_probes_interface): Add info parameter.
10123 (svr4_handle_solib_event): Pass current_program_space to
10124 get_svr4_info. Adjust disable_probes_interface cleanup.
10125 (svr4_create_probe_breakpoints): Add info parameter, pass it
10126 down to register_solib_event_probe.
10127 (svr4_create_solib_event_breakpoints): Add info parameter,
10128 pass it down to svr4_create_probe_breakpoints.
10129 (enable_break): Pass info down to
10130 svr4_create_solib_event_breakpoints.
10131 (svr4_solib_create_inferior_hook): Pass current_program_space to
10132 get_svr4_info.
10133 (svr4_clear_solib): Likewise.
10134
7905fc35
PA
101352019-04-22 Pedro Alves <palves@redhat.com>
10136
10137 * solib-svr4.c (svr4_free_objfile_observer): New.
10138 (probe_and_action::objfile): New field.
10139 (probes_table_htab_remove_objfile_probes)
10140 (probes_table_remove_objfile_probes): New functions.
10141 (register_solib_event_probe): Add 'objfile' parameter. Store it
10142 in the new probe_and_action. Don't store the probe in 'lookup'.
10143 (svr4_create_probe_breakpoints): Pass objfile to
10144 register_solib_event_probe.
10145 (_initialize_svr4_solib): Register a free_objfile observer.
10146
fb881986
TT
101472019-04-19 Tom Tromey <tom@tromey.com>
10148
10149 * common/queue.h: Remove.
10150
8732db6c
TT
101512019-04-19 Tom Tromey <tom@tromey.com>
10152
10153 * event-loop.c: Don't include "common/queue.h".
10154
97dfbadd
TT
101552019-04-19 Tom Tromey <tom@tromey.com>
10156
10157 * remote.c (remote_target): Use delete.
10158 * remote-notif.h: Include <list>, not "common/queue.h".
10159 (notif_client_p): Remove typedef.
10160 (remote_notif_state): Add constructor, destructor, initializer.
10161 <notif_queue>: Now a std::list.
10162 (remote_notif_state_xfree): Don't declare.
10163 * remote-notif.c (remote_notif_process, handle_notification)
10164 (remote_notif_state_allocate): Update.
10165 (~remote_notif_state): Rename from remote_notif_state_xfree.
10166
cf250e36
TT
101672019-04-19 Tom Tromey <tom@tromey.com>
10168
10169 * symfile.c (reread_symbols): Update.
10170 * objfiles.c (objfile_register_static_link)
10171 (objfile_lookup_static_link): Update
10172 (~objfile) Don't delete static_links.
10173 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10174
61f4b350
TT
101752019-04-19 Tom Tromey <tom@tromey.com>
10176
10177 * type-stack.h (struct type_stack) <insert>: Constify string.
10178 * type-stack.c (type_stack::insert): Constify string.
10179 * gdbtypes.h (lookup_template_type): Update.
10180 (address_space_name_to_int): Update.
10181 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10182 const.
10183 (lookup_template_type): Make name const.
10184 * c-exp.y: Update rules.
10185 (lex_one_token, classify_name, classify_inner_name)
10186 (c_print_token): Update.
10187 * p-exp.y: Update rules.
10188 (yylex): Update.
10189 * f-exp.y: Update rules.
10190 (yylex): Update.
10191 * d-exp.y: Update rules.
10192 (lex_one_token, classify_name, classify_inner_name): Update.
10193 * parse.c (write_dollar_variable, copy_name): Return std::string.
10194 * parser-defs.h (copy_name): Change return type.
10195 * m2-exp.y: Update rules.
10196 (yylex): Update.
10197 * go-exp.y (lex_one_token): Update.
10198 Update rules.
10199 (classify_unsafe_function, classify_packaged_name)
10200 (classify_name, yylex): Update.
10201
189b8c2e
ST
102022019-04-19 Sergei Trofimovich <siarheit@google.com>
10203
10204 * configure.ac: add --enable-source-highlight switch.
10205 * configure: Regenerate.
10206 * top.c (print_gdb_version): plumb --enable-source-highlight
10207 status to "show configuration".
10208
8ecb59f8
TT
102092019-04-19 Tom Tromey <tromey@adacore.com>
10210
10211 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10212 Check ADA_TYPE_P.
10213 (empty_record, ada_template_to_fixed_record_type_1)
10214 (template_to_static_fixed_type)
10215 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10216 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10217 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10218 macros.
10219
62160ec9
TT
102202019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10221
10222 PR symtab/24423:
10223 * source.c (print_source_lines_base): Advance "iter" when a
10224 control character is seen.
10225
f2ae8bc8
PW
102262019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10227
10228 * inferior.h (struct infcall_suspend_state_deleter):
10229 Catch exception in destructor to avoid crash.
10230
d563b953
PW
102312019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10232
10233 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10234 close to the add_com "shell".
10235
dc34c897
TT
102362019-04-18 Tom Tromey <tromey@adacore.com>
10237
10238 * process-stratum-target.h (class process_stratum_target)
10239 <stratum>: Add "final".
10240
a12e5744
TT
102412019-04-17 Tom Tromey <tromey@adacore.com>
10242
10243 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10244 against nullptr before use.
10245
a7e559cc
AH
102462019-04-17 Alan Hayward <alan.hayward@arm.com>
10247
10248 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10249
c01660c6
AB
102502019-04-17 Jim Wilson <jimw@sifive.com>
10251 Andrew Burgess <andrew.burgess@embecosm.com>
10252
10253 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10254 code read might fail, assume 4-byte breakpoint in that case.
10255
4aa866af
LS
102562019-04-15 Leszek Swirski <leszeks@google.com>
10257
10258 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10259 rather than a hand-rolled POD check when checking for forced MEMORY
10260 classification.
10261
48574d91
AH
102622019-04-15 Alan Hayward <alan.hayward@arm.com>
10263
10264 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10265 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10266 function.
10267 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10268 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10269 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10270 declaration.
10271
4da037ef
AH
102722019-04-15 Alan Hayward <alan.hayward@arm.com>
10273
10274 * aarch64-linux-nat.c
10275 (aarch64_linux_nat_target::thread_architecture): Add override.
10276 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10277 each VQ.
10278
ccb8d7e8
AH
102792019-04-15 Alan Hayward <alan.hayward@arm.com>
10280
10281 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10282
35add35e
AB
102832019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10284
10285 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10286 target types of size 96-bits, add some additional comments, and
10287 check that the builtin type we found was the correct size.
10288
51196bbc
EZ
102892019-04-12 Eli Zaretskii <eliz@gnu.org>
10290
10291 * utils.c (prompt_for_continue): Don't restore the styling at the
10292 end, as applied_style has the wrong value. This fixes styling in
10293 long lists of file names that are interrupted by the "Continue?"
10294 prompt.
10295
62253a61
AB
102962019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10297
10298 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10299 * c-lang.c (c_language_defn): Likewise.
10300 (cplus_language_defn): Likewise.
10301 (asm_language_defn): Likewise.
10302 (minimal_language_defn): Likewise.
10303 * d-lang.c (d_language_defn): Likewise.
10304 * f-lang.c (f_language_defn): Likewise.
10305 * go-lang.c (go_language_defn): Likewise.
10306 * language.c (unknown_language_defn): Likewise.
10307 (auto_language_defn): Likewise.
10308 * language.h (struct language_defn): Remove la_magic field.
10309 (LANG_MAGIC): Delete.
10310 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10311 * objc-lang.c (objc_language_defn): Likewise.
10312 * opencl-lang.c (opencl_language_defn): Likewise.
10313 * p-lang.c (pascal_language_defn): Likewise.
10314 * rust-lang.c (rust_language_defn): Likewise.
10315
a9158a86
AB
103162019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10317
10318 * riscv-tdep.c (riscv_type_align): New function.
10319 (riscv_type_alignment): Delete.
10320 (riscv_arg_location): Use 'type_align'.
10321 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10322
41077b66
AB
103232019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10324
10325 * gdbtypes.c (type_align): A struct with no non-static fields also
10326 has alignment of 1.
10327
9f0272f8
AB
103282019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10329
10330 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10331 component to 0.
10332 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10333 member.
10334 (riscv_struct_info::analyse): New implementation using new
10335 analyse_inner member function.
10336 (riscv_struct_info::field_offset): New member function.
10337 (riscv_struct_info::m_offsets): New member variable.
10338 (riscv_struct_info::analyse_inner): New private member function,
10339 takes the old implementation of riscv_struct_info::analyse but
10340 extended to track field offsets.
10341 (riscv_call_arg_struct): Update the struct folding special cases
10342 to handle cases where empty C++ structs, which are non-zero
10343 length, are found.
10344 (riscv_arg_location): Initialise the length of each location, a
10345 non-zero length now indicates the location is in use.
10346 (riscv_push_dummy_call): Allow for the first location having a
10347 non-zero offset when setting up arguments.
10348 (riscv_return_value): Likewise, but for return values.
10349
02cf60c7
TT
103502019-04-11 Tom Tromey <tromey@adacore.com>
10351
10352 * utils.c (internal_vproblem): Make "msg" const.
10353
68811f8f
AH
103542019-04-11 Alan Hayward <alan.hayward@arm.com>
10355
10356 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10357 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10358 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10359 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10360
3f52fdbc
KB
103612019-04-10 Kevin Buettner <kevinb@redhat.com>
10362
10363 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10364 function.
10365 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10366 of amd64_collect_native_gregset.
10367 (amd64_linux_nat_target::store_registers): Likewise.
10368
e9ad22ee
TT
103692019-04-10 Tom Tromey <tom@tromey.com>
10370
10371 * symtab.c (lookup_global_symbol_from_objfile)
10372 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10373 * objfiles.h (class separate_debug_iterator): New.
10374 (class separate_debug_range): New.
10375 (struct objfile) <separate_debug_objfiles>: New method.
10376 (objfile_separate_debug_iterate): Don't declare.
10377 * objfiles.c (separate_debug_iterator::operator++): Rename from
10378 objfile_separate_debug_iterate.
10379 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10380 iterator.
10381 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10382 iterator.
10383
ee371134
TT
103842019-04-10 Tom Tromey <tom@tromey.com>
10385
10386 * symfile.c (reread_symbols): Remove old comment.
10387 * objfiles.c (free_all_objfiles): Fix a typo.
10388
bf227d61
TT
103892019-04-10 Tom Tromey <tom@tromey.com>
10390
10391 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10392 * minsyms.c (lookup_minimal_symbol): Use foreach.
10393 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10394 (lookup_minimal_symbol_solib_trampoline): Likewise.
10395 * symfile.c (reread_symbols): Use foreach.
10396
8dc433a0
TT
103972019-04-09 Ivan Begert <ivanbegert@gmail.com>
10398 Tom Tromey <tromey@adacore.com>
10399
10400 PR rust/24414:
10401 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10402 (rust_lex_int_test): Change "value" to be LONGEST.
10403 (rust_lex_tests): Add test for long integer literal.
10404
9ab8741a
TT
104052019-04-09 Tom Tromey <tromey@adacore.com>
10406
10407 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10408 to bool.
10409 (extended_remote_target::attach): Update.
10410 (remote_target::remote_notice_new_inferior): Update.
10411 (remote_target::add_current_inferior_and_thread): Update.
10412 * inferior.c (exit_inferior_1): Use "false".
10413 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10414
e242fd12
SM
104152019-04-09 Simon Marchi <simon.marchi@efficios.com>
10416
9ca1957f 10417 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
10418 the "start" command.
10419
2b0c8b01
KB
104202019-04-08 Kevin Buettner <kevinb@redhat.com>
10421
10422 * python/py-inferior.c (infpy_thread_from_thread_handle):
10423 Adjust comments to reflect renaming of thread_from_thread_handle
10424 to thread_from_handle. Adjust keywords. Fix type error message.
10425 (inferior_object_methods): Add thread_from_handle. Retain
10426 thread_from_thread_handle, but mark it as deprecated.
10427
50a82723
KB
104282019-04-08 Kevin Buettner <kevinb@redhat.com>
10429
10430 * gdbthread.h (find_thread_by_handle): Revise declaration.
10431 * thread.c (find_thread_by_handle): Likewise. Adjust
10432 implementation too.
10433 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10434 support for buffer objects as handles.
10435
cf63b016
KB
104362019-04-08 Kevin Buettner <kevinb@redhat.com>
10437
10438 * python/py-infthread.c (thpy_thread_handle): New function.
10439 (thread_object_methods): Register thpy_thread_handle.
10440
3d6c6204
KB
104412019-04-08 Kevin Buettner <kevinb@redhat.com>
10442
10443 * gdbthread.h (thread_to_thread_handle): Declare.
10444 * thread.c (gdbtypes.h): Include.
10445 (thread_to_thread_handle): New function.
10446
10447 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10448 (target_thread_info_to_thread_handle): Declare.
10449 * target.c (target_thread_info_to_thread_handle): New function.
10450 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10451 * target-delegates.c: Regenerate.
10452
10453 * linux-thread-db.c (class thread_db_target): Add method
10454 thread_info_to_thread_handle.
10455 (thread_db_target::thread_info_to_thread_handle): Define.
10456 * remote.c (class remote_target): Add new method
10457 thread_info_to_thread_handle.
10458 (remote_target::thread_info_to_thread_handle): Define.
10459
56be6ea8
PA
104602019-04-08 Pedro Alves <palves@redhat.com>
10461
10462 * common/common-exceptions.c (throw_exception): Don't create
10463 named object to throw; throw directly.
10464 (throw_it): Likewise. Don't initialize gdb_exception::message
10465 here, with new; pass FMT and AP to the ctor instead.
10466 * common/common-exceptions.h: Include <string>.
10467 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10468 const char *, va_list)): New ctor. Use std::make_shared.
10469 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10470 errors)): Delete.
10471 (gdb_exception_error::gdb_exception_error(enum errors, const char
10472 *, va_list)): New.
10473 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10474 Add assertion.
10475 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10476 errors)): Delete.
10477 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10478 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10479 Add assertion.
10480
eedc3f4f
TT
104812019-04-08 Tom Tromey <tom@tromey.com>
10482
10483 * valops.c (value_rtti_indirect_type): Replace throw_exception
10484 with throw.
10485 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10486 with throw.
10487 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10488 throw.
10489 * target.c (target_translate_tls_address): Replace throw_exception
10490 with throw.
10491 * stack.c (frame_apply_command_count): Replace throw_exception
10492 with throw.
10493 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10494 throw.
10495 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10496 with throw.
10497 * rs6000-tdep.c (rs6000_frame_cache)
10498 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10499 * remote.c: Replace throw_exception with throw.
10500 * record-full.c (record_full_message, record_full_wait_1)
10501 (record_full_restore): Replace throw_exception with throw.
10502 * record-btrace.c:
10503 (get_thread_current_frame_id, record_btrace_start_replaying)
10504 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10505 (cmd_record_btrace_start): Replace throw_exception with throw.
10506 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10507 throw.
10508 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10509 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10510 * linespec.c:
10511 (find_linespec_symbols): Replace throw_exception with throw.
10512 * infrun.c (displaced_step_prepare, resume): Replace
10513 throw_exception with throw.
10514 * infcmd.c (post_create_inferior): Replace throw_exception with
10515 throw.
10516 * inf-loop.c (inferior_event_handler): Replace throw_exception
10517 with throw.
10518 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10519 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10520 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10521 (get_prev_frame_always, get_frame_pc_if_available)
10522 (get_frame_address_in_block_if_available, get_frame_language):
10523 Replace throw_exception with throw.
10524 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10525 throw_exception with throw.
10526 * eval.c (fetch_subexp_value, evaluate_var_value)
10527 (evaluate_funcall, evaluate_subexp_standard): Replace
10528 throw_exception with throw.
10529 * dwarf2loc.c (call_site_find_chain)
10530 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10531 Replace throw_exception with throw.
10532 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10533 with throw.
10534 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10535 throw.
10536 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10537 * completer.c (complete_line_internal): Replace throw_exception
10538 with throw.
10539 * compile/compile-object-run.c (compile_object_run): Replace
10540 throw_exception with throw.
10541 * cli/cli-script.c (process_next_line): Replace throw_exception
10542 with throw.
10543 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10544 (btrace_enable, btrace_maint_update_pt_packets): Replace
10545 throw_exception with throw.
10546 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10547 throw_exception with throw.
10548 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10549 throw_exception with throw.
10550 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10551 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10552 * aarch64-tdep.c (aarch64_make_prologue_cache)
10553 (aarch64_make_stub_cache): Replace throw_exception with throw.
10554
26003a20
TT
105552019-04-08 Tom Tromey <tom@tromey.com>
10556
10557 * common/common-exceptions.c (throw_exception): Rename from
10558 throw_exception_cxx. Remove old copy. Make argument const.
10559 (throw_it): Create and throw exception objects directly.
10560 * common/common-exceptions.h (throw_exception): Make argument
10561 const.
10562 (struct gdb_exception_error): Add constructor.
10563 (struct gdb_exception_quit): Add constructor.
10564
d272eb37
TT
105652019-04-08 Tom Tromey <tom@tromey.com>
10566
10567 * common/common-exceptions.h (exception_rethrow): Don't declare.
10568 (TRY_SJLJ): Update comment.
10569 (TRY, CATCH, END_CATCH): Remove.
10570 * common/common-exceptions.c (exception_rethrow): Remove.
10571
230d2906
TT
105722019-04-08 Tom Tromey <tom@tromey.com>
10573
10574 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10575 Remove.
10576 (gdb_exception_error): Rename from
10577 gdb_exception_RETURN_MASK_ERROR.
10578 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10579 (gdb_quit_bad_alloc): Update.
10580 * aarch64-tdep.c: Update.
10581 * ada-lang.c: Update.
10582 * ada-typeprint.c: Update.
10583 * ada-valprint.c: Update.
10584 * amd64-tdep.c: Update.
10585 * arch-utils.c: Update.
10586 * break-catch-throw.c: Update.
10587 * breakpoint.c: Update.
10588 * btrace.c: Update.
10589 * c-varobj.c: Update.
10590 * cli/cli-cmds.c: Update.
10591 * cli/cli-interp.c: Update.
10592 * cli/cli-script.c: Update.
10593 * common/common-exceptions.c: Update.
10594 * common/new-op.c: Update.
10595 * common/selftest.c: Update.
10596 * compile/compile-c-symbols.c: Update.
10597 * compile/compile-cplus-symbols.c: Update.
10598 * compile/compile-object-load.c: Update.
10599 * compile/compile-object-run.c: Update.
10600 * completer.c: Update.
10601 * corelow.c: Update.
10602 * cp-abi.c: Update.
10603 * cp-support.c: Update.
10604 * cp-valprint.c: Update.
10605 * darwin-nat.c: Update.
10606 * disasm-selftests.c: Update.
10607 * dtrace-probe.c: Update.
10608 * dwarf-index-cache.c: Update.
10609 * dwarf-index-write.c: Update.
10610 * dwarf2-frame-tailcall.c: Update.
10611 * dwarf2-frame.c: Update.
10612 * dwarf2loc.c: Update.
10613 * dwarf2read.c: Update.
10614 * eval.c: Update.
10615 * event-loop.c: Update.
10616 * event-top.c: Update.
10617 * exec.c: Update.
10618 * f-valprint.c: Update.
10619 * fbsd-tdep.c: Update.
10620 * frame-unwind.c: Update.
10621 * frame.c: Update.
10622 * gdbtypes.c: Update.
10623 * gnu-v3-abi.c: Update.
10624 * guile/guile-internal.h: Update.
10625 * guile/scm-block.c: Update.
10626 * guile/scm-breakpoint.c: Update.
10627 * guile/scm-cmd.c: Update.
10628 * guile/scm-disasm.c: Update.
10629 * guile/scm-frame.c: Update.
10630 * guile/scm-lazy-string.c: Update.
10631 * guile/scm-math.c: Update.
10632 * guile/scm-param.c: Update.
10633 * guile/scm-ports.c: Update.
10634 * guile/scm-pretty-print.c: Update.
10635 * guile/scm-symbol.c: Update.
10636 * guile/scm-symtab.c: Update.
10637 * guile/scm-type.c: Update.
10638 * guile/scm-value.c: Update.
10639 * i386-linux-tdep.c: Update.
10640 * i386-tdep.c: Update.
10641 * inf-loop.c: Update.
10642 * infcall.c: Update.
10643 * infcmd.c: Update.
10644 * infrun.c: Update.
10645 * jit.c: Update.
10646 * language.c: Update.
10647 * linespec.c: Update.
10648 * linux-fork.c: Update.
10649 * linux-nat.c: Update.
10650 * linux-tdep.c: Update.
10651 * linux-thread-db.c: Update.
10652 * main.c: Update.
10653 * mi/mi-cmd-break.c: Update.
10654 * mi/mi-cmd-stack.c: Update.
10655 * mi/mi-interp.c: Update.
10656 * mi/mi-main.c: Update.
10657 * objc-lang.c: Update.
10658 * p-valprint.c: Update.
10659 * parse.c: Update.
10660 * ppc-linux-tdep.c: Update.
10661 * printcmd.c: Update.
10662 * python/py-arch.c: Update.
10663 * python/py-breakpoint.c: Update.
10664 * python/py-cmd.c: Update.
10665 * python/py-finishbreakpoint.c: Update.
10666 * python/py-frame.c: Update.
10667 * python/py-framefilter.c: Update.
10668 * python/py-gdb-readline.c: Update.
10669 * python/py-inferior.c: Update.
10670 * python/py-infthread.c: Update.
10671 * python/py-lazy-string.c: Update.
10672 * python/py-linetable.c: Update.
10673 * python/py-objfile.c: Update.
10674 * python/py-param.c: Update.
10675 * python/py-prettyprint.c: Update.
10676 * python/py-progspace.c: Update.
10677 * python/py-record-btrace.c: Update.
10678 * python/py-record.c: Update.
10679 * python/py-symbol.c: Update.
10680 * python/py-type.c: Update.
10681 * python/py-unwind.c: Update.
10682 * python/py-utils.c: Update.
10683 * python/py-value.c: Update.
10684 * python/python.c: Update.
10685 * record-btrace.c: Update.
10686 * record-full.c: Update.
10687 * remote-fileio.c: Update.
10688 * remote.c: Update.
10689 * riscv-tdep.c: Update.
10690 * rs6000-aix-tdep.c: Update.
10691 * rs6000-tdep.c: Update.
10692 * rust-exp.y: Update.
10693 * rust-lang.c: Update.
10694 * s390-tdep.c: Update.
10695 * selftest-arch.c: Update.
10696 * solib-dsbt.c: Update.
10697 * solib-frv.c: Update.
10698 * solib-spu.c: Update.
10699 * solib-svr4.c: Update.
10700 * solib.c: Update.
10701 * sparc64-linux-tdep.c: Update.
10702 * stack.c: Update.
10703 * symfile-mem.c: Update.
10704 * symmisc.c: Update.
10705 * target.c: Update.
10706 * thread.c: Update.
10707 * top.c: Update.
10708 * tracefile-tfile.c: Update.
10709 * tui/tui.c: Update.
10710 * typeprint.c: Update.
10711 * unittests/cli-utils-selftests.c: Update.
10712 * unittests/parse-connection-spec-selftests.c: Update.
10713 * valops.c: Update.
10714 * valprint.c: Update.
10715 * value.c: Update.
10716 * varobj.c: Update.
10717 * windows-nat.c: Update.
10718 * x86-linux-nat.c: Update.
10719 * xml-support.c: Update.
10720
a70b8144
TT
107212019-04-08 Tom Tromey <tom@tromey.com>
10722
10723 * xml-support.c: Use C++ exception handling.
10724 * x86-linux-nat.c: Use C++ exception handling.
10725 * windows-nat.c: Use C++ exception handling.
10726 * varobj.c: Use C++ exception handling.
10727 * value.c: Use C++ exception handling.
10728 * valprint.c: Use C++ exception handling.
10729 * valops.c: Use C++ exception handling.
10730 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10731 handling.
10732 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10733 * typeprint.c: Use C++ exception handling.
10734 * tui/tui.c: Use C++ exception handling.
10735 * tracefile-tfile.c: Use C++ exception handling.
10736 * top.c: Use C++ exception handling.
10737 * thread.c: Use C++ exception handling.
10738 * target.c: Use C++ exception handling.
10739 * symmisc.c: Use C++ exception handling.
10740 * symfile-mem.c: Use C++ exception handling.
10741 * stack.c: Use C++ exception handling.
10742 * sparc64-linux-tdep.c: Use C++ exception handling.
10743 * solib.c: Use C++ exception handling.
10744 * solib-svr4.c: Use C++ exception handling.
10745 * solib-spu.c: Use C++ exception handling.
10746 * solib-frv.c: Use C++ exception handling.
10747 * solib-dsbt.c: Use C++ exception handling.
10748 * selftest-arch.c: Use C++ exception handling.
10749 * s390-tdep.c: Use C++ exception handling.
10750 * rust-lang.c: Use C++ exception handling.
10751 * rust-exp.y: Use C++ exception handling.
10752 * rs6000-tdep.c: Use C++ exception handling.
10753 * rs6000-aix-tdep.c: Use C++ exception handling.
10754 * riscv-tdep.c: Use C++ exception handling.
10755 * remote.c: Use C++ exception handling.
10756 * remote-fileio.c: Use C++ exception handling.
10757 * record-full.c: Use C++ exception handling.
10758 * record-btrace.c: Use C++ exception handling.
10759 * python/python.c: Use C++ exception handling.
10760 * python/py-value.c: Use C++ exception handling.
10761 * python/py-utils.c: Use C++ exception handling.
10762 * python/py-unwind.c: Use C++ exception handling.
10763 * python/py-type.c: Use C++ exception handling.
10764 * python/py-symbol.c: Use C++ exception handling.
10765 * python/py-record.c: Use C++ exception handling.
10766 * python/py-record-btrace.c: Use C++ exception handling.
10767 * python/py-progspace.c: Use C++ exception handling.
10768 * python/py-prettyprint.c: Use C++ exception handling.
10769 * python/py-param.c: Use C++ exception handling.
10770 * python/py-objfile.c: Use C++ exception handling.
10771 * python/py-linetable.c: Use C++ exception handling.
10772 * python/py-lazy-string.c: Use C++ exception handling.
10773 * python/py-infthread.c: Use C++ exception handling.
10774 * python/py-inferior.c: Use C++ exception handling.
10775 * python/py-gdb-readline.c: Use C++ exception handling.
10776 * python/py-framefilter.c: Use C++ exception handling.
10777 * python/py-frame.c: Use C++ exception handling.
10778 * python/py-finishbreakpoint.c: Use C++ exception handling.
10779 * python/py-cmd.c: Use C++ exception handling.
10780 * python/py-breakpoint.c: Use C++ exception handling.
10781 * python/py-arch.c: Use C++ exception handling.
10782 * printcmd.c: Use C++ exception handling.
10783 * ppc-linux-tdep.c: Use C++ exception handling.
10784 * parse.c: Use C++ exception handling.
10785 * p-valprint.c: Use C++ exception handling.
10786 * objc-lang.c: Use C++ exception handling.
10787 * mi/mi-main.c: Use C++ exception handling.
10788 * mi/mi-interp.c: Use C++ exception handling.
10789 * mi/mi-cmd-stack.c: Use C++ exception handling.
10790 * mi/mi-cmd-break.c: Use C++ exception handling.
10791 * main.c: Use C++ exception handling.
10792 * linux-thread-db.c: Use C++ exception handling.
10793 * linux-tdep.c: Use C++ exception handling.
10794 * linux-nat.c: Use C++ exception handling.
10795 * linux-fork.c: Use C++ exception handling.
10796 * linespec.c: Use C++ exception handling.
10797 * language.c: Use C++ exception handling.
10798 * jit.c: Use C++ exception handling.
10799 * infrun.c: Use C++ exception handling.
10800 * infcmd.c: Use C++ exception handling.
10801 * infcall.c: Use C++ exception handling.
10802 * inf-loop.c: Use C++ exception handling.
10803 * i386-tdep.c: Use C++ exception handling.
10804 * i386-linux-tdep.c: Use C++ exception handling.
10805 * guile/scm-value.c: Use C++ exception handling.
10806 * guile/scm-type.c: Use C++ exception handling.
10807 * guile/scm-symtab.c: Use C++ exception handling.
10808 * guile/scm-symbol.c: Use C++ exception handling.
10809 * guile/scm-pretty-print.c: Use C++ exception handling.
10810 * guile/scm-ports.c: Use C++ exception handling.
10811 * guile/scm-param.c: Use C++ exception handling.
10812 * guile/scm-math.c: Use C++ exception handling.
10813 * guile/scm-lazy-string.c: Use C++ exception handling.
10814 * guile/scm-frame.c: Use C++ exception handling.
10815 * guile/scm-disasm.c: Use C++ exception handling.
10816 * guile/scm-cmd.c: Use C++ exception handling.
10817 * guile/scm-breakpoint.c: Use C++ exception handling.
10818 * guile/scm-block.c: Use C++ exception handling.
10819 * guile/guile-internal.h: Use C++ exception handling.
10820 * gnu-v3-abi.c: Use C++ exception handling.
10821 * gdbtypes.c: Use C++ exception handling.
10822 * frame.c: Use C++ exception handling.
10823 * frame-unwind.c: Use C++ exception handling.
10824 * fbsd-tdep.c: Use C++ exception handling.
10825 * f-valprint.c: Use C++ exception handling.
10826 * exec.c: Use C++ exception handling.
10827 * event-top.c: Use C++ exception handling.
10828 * event-loop.c: Use C++ exception handling.
10829 * eval.c: Use C++ exception handling.
10830 * dwarf2read.c: Use C++ exception handling.
10831 * dwarf2loc.c: Use C++ exception handling.
10832 * dwarf2-frame.c: Use C++ exception handling.
10833 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10834 * dwarf-index-write.c: Use C++ exception handling.
10835 * dwarf-index-cache.c: Use C++ exception handling.
10836 * dtrace-probe.c: Use C++ exception handling.
10837 * disasm-selftests.c: Use C++ exception handling.
10838 * darwin-nat.c: Use C++ exception handling.
10839 * cp-valprint.c: Use C++ exception handling.
10840 * cp-support.c: Use C++ exception handling.
10841 * cp-abi.c: Use C++ exception handling.
10842 * corelow.c: Use C++ exception handling.
10843 * completer.c: Use C++ exception handling.
10844 * compile/compile-object-run.c: Use C++ exception handling.
10845 * compile/compile-object-load.c: Use C++ exception handling.
10846 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10847 * compile/compile-c-symbols.c: Use C++ exception handling.
10848 * common/selftest.c: Use C++ exception handling.
10849 * common/new-op.c: Use C++ exception handling.
10850 * cli/cli-script.c: Use C++ exception handling.
10851 * cli/cli-interp.c: Use C++ exception handling.
10852 * cli/cli-cmds.c: Use C++ exception handling.
10853 * c-varobj.c: Use C++ exception handling.
10854 * btrace.c: Use C++ exception handling.
10855 * breakpoint.c: Use C++ exception handling.
10856 * break-catch-throw.c: Use C++ exception handling.
10857 * arch-utils.c: Use C++ exception handling.
10858 * amd64-tdep.c: Use C++ exception handling.
10859 * ada-valprint.c: Use C++ exception handling.
10860 * ada-typeprint.c: Use C++ exception handling.
10861 * ada-lang.c: Use C++ exception handling.
10862 * aarch64-tdep.c: Use C++ exception handling.
10863
3d6e9d23
TT
108642019-04-08 Tom Tromey <tom@tromey.com>
10865
10866 * xml-support.c (gdb_xml_parser::parse): Update.
10867 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10868 * value.c (show_convenience): Update.
10869 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10870 (test_parse_flags_qcs): Update.
10871 * thread.c (thr_try_catch_cmd): Update.
10872 * target.c (target_translate_tls_address): Update.
10873 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10874 (info_frame_command_core, frame_apply_command_count): Update.
10875 * rust-exp.y (rust_lex_exception_test): Update.
10876 * riscv-tdep.c (riscv_print_one_register_info): Update.
10877 * remote.c (remote_target::enable_btrace): Update.
10878 * record-btrace.c (record_btrace_enable_warn): Update.
10879 * python/py-utils.c (gdbpy_convert_exception): Update.
10880 * printcmd.c (do_one_display, print_variable_and_value): Update.
10881 * mi/mi-main.c (mi_print_exception): Update.
10882 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10883 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10884 * linux-nat.c (linux_nat_target::attach): Update.
10885 * linux-fork.c (class scoped_switch_fork_info): Update.
10886 * infrun.c (displaced_step_prepare): Update.
10887 * infcall.c (call_function_by_hand_dummy): Update.
10888 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10889 * gnu-v3-abi.c (print_one_vtable): Update.
10890 * frame.c (get_prev_frame_always): Update.
10891 * f-valprint.c (info_common_command_for_block): Update.
10892 * exec.c (try_open_exec_file): Update.
10893 * exceptions.c (print_exception, exception_print)
10894 (exception_fprintf, exception_print_same): Update.
10895 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10896 * dwarf-index-cache.c (index_cache::store)
10897 (index_cache::lookup_gdb_index): Update.
10898 * darwin-nat.c (maybe_cache_shell): Update.
10899 * cp-valprint.c (cp_print_value_fields): Update.
10900 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10901 (gcc_cplus_symbol_address): Update.
10902 * compile/compile-c-symbols.c (gcc_convert_symbol)
10903 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10904 * common/selftest.c: Update.
10905 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10906 a std::string.
10907 (exception_try_scope_entry, exception_try_scope_exit): Don't
10908 declare.
10909 (struct exception_try_scope): Remove.
10910 (TRY): Don't use exception_try_scope.
10911 (struct gdb_exception): Add constructor, operator=.
10912 <what>: New method.
10913 (struct gdb_exception_RETURN_MASK_ALL)
10914 (struct gdb_exception_RETURN_MASK_ERROR)
10915 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10916 (struct gdb_quit_bad_alloc): Update.
10917 * common/common-exceptions.c (exception_none): Change
10918 initializer.
10919 (struct catcher) <state, exception>: Initialize inline.
10920 <prev>: Remove member.
10921 (current_catcher): Remove.
10922 (catchers): New global.
10923 (exceptions_state_mc_init): Simplify.
10924 (catcher_pop): Remove.
10925 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10926 (try_scope_depth, exception_try_scope_entry)
10927 (exception_try_scope_exit): Remove.
10928 (throw_exception_sjlj): Update.
10929 (exception_messages, exception_messages_size): Remove.
10930 (throw_it): Simplify.
10931 (gdb_exception_sliced_copy): Remove.
10932 (throw_exception_cxx): Update.
10933 * cli/cli-script.c (script_from_file): Update.
10934 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10935 Update.
10936 * ada-valprint.c (ada_val_print): Update.
10937 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10938 (create_excep_cond_exprs): Update.
10939
c5c10118
TT
109402019-04-08 Tom Tromey <tom@tromey.com>
10941
10942 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10943 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10944 (TRY, CATCH, END_CATCH): Remove some definitions.
10945 * common/common-exceptions.c: Don't use GDB_XCPT.
10946 (catcher_list_size): Remove.
10947 (throw_exception, throw_it): Simplify.
10948
4de283e4
TT
109492019-04-05 Tom Tromey <tom@tromey.com>
10950
10951 Revert the header-sorting patch.
10952 * ft32-tdep.c: Revert.
10953 * frv-tdep.c: Revert.
10954 * frv-linux-tdep.c: Revert.
10955 * frame.c: Revert.
10956 * frame-unwind.c: Revert.
10957 * frame-base.c: Revert.
10958 * fork-child.c: Revert.
10959 * findvar.c: Revert.
10960 * findcmd.c: Revert.
10961 * filesystem.c: Revert.
10962 * filename-seen-cache.h: Revert.
10963 * filename-seen-cache.c: Revert.
10964 * fbsd-tdep.c: Revert.
10965 * fbsd-nat.h: Revert.
10966 * fbsd-nat.c: Revert.
10967 * f-valprint.c: Revert.
10968 * f-typeprint.c: Revert.
10969 * f-lang.c: Revert.
10970 * extension.h: Revert.
10971 * extension.c: Revert.
10972 * extension-priv.h: Revert.
10973 * expprint.c: Revert.
10974 * exec.h: Revert.
10975 * exec.c: Revert.
10976 * exceptions.c: Revert.
10977 * event-top.c: Revert.
10978 * event-loop.c: Revert.
10979 * eval.c: Revert.
10980 * elfread.c: Revert.
10981 * dwarf2read.h: Revert.
10982 * dwarf2read.c: Revert.
10983 * dwarf2loc.c: Revert.
10984 * dwarf2expr.h: Revert.
10985 * dwarf2expr.c: Revert.
10986 * dwarf2-frame.c: Revert.
10987 * dwarf2-frame-tailcall.c: Revert.
10988 * dwarf-index-write.h: Revert.
10989 * dwarf-index-write.c: Revert.
10990 * dwarf-index-common.c: Revert.
10991 * dwarf-index-cache.h: Revert.
10992 * dwarf-index-cache.c: Revert.
10993 * dummy-frame.c: Revert.
10994 * dtrace-probe.c: Revert.
10995 * disasm.h: Revert.
10996 * disasm.c: Revert.
10997 * disasm-selftests.c: Revert.
10998 * dictionary.c: Revert.
10999 * dicos-tdep.c: Revert.
11000 * demangle.c: Revert.
11001 * dcache.h: Revert.
11002 * dcache.c: Revert.
11003 * darwin-nat.h: Revert.
11004 * darwin-nat.c: Revert.
11005 * darwin-nat-info.c: Revert.
11006 * d-valprint.c: Revert.
11007 * d-namespace.c: Revert.
11008 * d-lang.c: Revert.
11009 * ctf.c: Revert.
11010 * csky-tdep.c: Revert.
11011 * csky-linux-tdep.c: Revert.
11012 * cris-tdep.c: Revert.
11013 * cris-linux-tdep.c: Revert.
11014 * cp-valprint.c: Revert.
11015 * cp-support.c: Revert.
11016 * cp-namespace.c: Revert.
11017 * cp-abi.c: Revert.
11018 * corelow.c: Revert.
11019 * corefile.c: Revert.
11020 * continuations.c: Revert.
11021 * completer.h: Revert.
11022 * completer.c: Revert.
11023 * complaints.c: Revert.
11024 * coffread.c: Revert.
11025 * coff-pe-read.c: Revert.
11026 * cli-out.h: Revert.
11027 * cli-out.c: Revert.
11028 * charset.c: Revert.
11029 * c-varobj.c: Revert.
11030 * c-valprint.c: Revert.
11031 * c-typeprint.c: Revert.
11032 * c-lang.c: Revert.
11033 * buildsym.c: Revert.
11034 * buildsym-legacy.c: Revert.
11035 * build-id.h: Revert.
11036 * build-id.c: Revert.
11037 * btrace.c: Revert.
11038 * bsd-uthread.c: Revert.
11039 * breakpoint.h: Revert.
11040 * breakpoint.c: Revert.
11041 * break-catch-throw.c: Revert.
11042 * break-catch-syscall.c: Revert.
11043 * break-catch-sig.c: Revert.
11044 * blockframe.c: Revert.
11045 * block.c: Revert.
11046 * bfin-tdep.c: Revert.
11047 * bfin-linux-tdep.c: Revert.
11048 * bfd-target.c: Revert.
11049 * bcache.c: Revert.
11050 * ax-general.c: Revert.
11051 * ax-gdb.h: Revert.
11052 * ax-gdb.c: Revert.
11053 * avr-tdep.c: Revert.
11054 * auxv.c: Revert.
11055 * auto-load.c: Revert.
11056 * arm-wince-tdep.c: Revert.
11057 * arm-tdep.c: Revert.
11058 * arm-symbian-tdep.c: Revert.
11059 * arm-pikeos-tdep.c: Revert.
11060 * arm-obsd-tdep.c: Revert.
11061 * arm-nbsd-tdep.c: Revert.
11062 * arm-nbsd-nat.c: Revert.
11063 * arm-linux-tdep.c: Revert.
11064 * arm-linux-nat.c: Revert.
11065 * arm-fbsd-tdep.c: Revert.
11066 * arm-fbsd-nat.c: Revert.
11067 * arm-bsd-tdep.c: Revert.
11068 * arch-utils.c: Revert.
11069 * arc-tdep.c: Revert.
11070 * arc-newlib-tdep.c: Revert.
11071 * annotate.h: Revert.
11072 * annotate.c: Revert.
11073 * amd64-windows-tdep.c: Revert.
11074 * amd64-windows-nat.c: Revert.
11075 * amd64-tdep.c: Revert.
11076 * amd64-sol2-tdep.c: Revert.
11077 * amd64-obsd-tdep.c: Revert.
11078 * amd64-obsd-nat.c: Revert.
11079 * amd64-nbsd-tdep.c: Revert.
11080 * amd64-nbsd-nat.c: Revert.
11081 * amd64-nat.c: Revert.
11082 * amd64-linux-tdep.c: Revert.
11083 * amd64-linux-nat.c: Revert.
11084 * amd64-fbsd-tdep.c: Revert.
11085 * amd64-fbsd-nat.c: Revert.
11086 * amd64-dicos-tdep.c: Revert.
11087 * amd64-darwin-tdep.c: Revert.
11088 * amd64-bsd-nat.c: Revert.
11089 * alpha-tdep.c: Revert.
11090 * alpha-obsd-tdep.c: Revert.
11091 * alpha-nbsd-tdep.c: Revert.
11092 * alpha-mdebug-tdep.c: Revert.
11093 * alpha-linux-tdep.c: Revert.
11094 * alpha-linux-nat.c: Revert.
11095 * alpha-bsd-tdep.c: Revert.
11096 * alpha-bsd-nat.c: Revert.
11097 * aix-thread.c: Revert.
11098 * agent.c: Revert.
11099 * addrmap.c: Revert.
11100 * ada-varobj.c: Revert.
11101 * ada-valprint.c: Revert.
11102 * ada-typeprint.c: Revert.
11103 * ada-tasks.c: Revert.
11104 * ada-lang.c: Revert.
11105 * aarch64-tdep.c: Revert.
11106 * aarch64-ravenscar-thread.c: Revert.
11107 * aarch64-newlib-tdep.c: Revert.
11108 * aarch64-linux-tdep.c: Revert.
11109 * aarch64-linux-nat.c: Revert.
11110 * aarch64-fbsd-tdep.c: Revert.
11111 * aarch64-fbsd-nat.c: Revert.
11112 * aarch32-linux-nat.c: Revert.
11113
d55e5aa6
TT
111142019-04-05 Tom Tromey <tom@tromey.com>
11115
11116 * ft32-tdep.c: Sort headers.
11117 * frv-tdep.c: Sort headers.
11118 * frv-linux-tdep.c: Sort headers.
11119 * frame.c: Sort headers.
11120 * frame-unwind.c: Sort headers.
11121 * frame-base.c: Sort headers.
11122 * fork-child.c: Sort headers.
11123 * findvar.c: Sort headers.
11124 * findcmd.c: Sort headers.
11125 * filesystem.c: Sort headers.
11126 * filename-seen-cache.h: Sort headers.
11127 * filename-seen-cache.c: Sort headers.
11128 * fbsd-tdep.c: Sort headers.
11129 * fbsd-nat.h: Sort headers.
11130 * fbsd-nat.c: Sort headers.
11131 * f-valprint.c: Sort headers.
11132 * f-typeprint.c: Sort headers.
11133 * f-lang.c: Sort headers.
11134 * extension.h: Sort headers.
11135 * extension.c: Sort headers.
11136 * extension-priv.h: Sort headers.
11137 * expprint.c: Sort headers.
11138 * exec.h: Sort headers.
11139 * exec.c: Sort headers.
11140 * exceptions.c: Sort headers.
11141 * event-top.c: Sort headers.
11142 * event-loop.c: Sort headers.
11143 * eval.c: Sort headers.
11144 * elfread.c: Sort headers.
11145 * dwarf2read.h: Sort headers.
11146 * dwarf2read.c: Sort headers.
11147 * dwarf2loc.c: Sort headers.
11148 * dwarf2expr.h: Sort headers.
11149 * dwarf2expr.c: Sort headers.
11150 * dwarf2-frame.c: Sort headers.
11151 * dwarf2-frame-tailcall.c: Sort headers.
11152 * dwarf-index-write.h: Sort headers.
11153 * dwarf-index-write.c: Sort headers.
11154 * dwarf-index-common.c: Sort headers.
11155 * dwarf-index-cache.h: Sort headers.
11156 * dwarf-index-cache.c: Sort headers.
11157 * dummy-frame.c: Sort headers.
11158 * dtrace-probe.c: Sort headers.
11159 * disasm.h: Sort headers.
11160 * disasm.c: Sort headers.
11161 * disasm-selftests.c: Sort headers.
11162 * dictionary.c: Sort headers.
11163 * dicos-tdep.c: Sort headers.
11164 * demangle.c: Sort headers.
11165 * dcache.h: Sort headers.
11166 * dcache.c: Sort headers.
11167 * darwin-nat.h: Sort headers.
11168 * darwin-nat.c: Sort headers.
11169 * darwin-nat-info.c: Sort headers.
11170 * d-valprint.c: Sort headers.
11171 * d-namespace.c: Sort headers.
11172 * d-lang.c: Sort headers.
11173 * ctf.c: Sort headers.
11174 * csky-tdep.c: Sort headers.
11175 * csky-linux-tdep.c: Sort headers.
11176 * cris-tdep.c: Sort headers.
11177 * cris-linux-tdep.c: Sort headers.
11178 * cp-valprint.c: Sort headers.
11179 * cp-support.c: Sort headers.
11180 * cp-namespace.c: Sort headers.
11181 * cp-abi.c: Sort headers.
11182 * corelow.c: Sort headers.
11183 * corefile.c: Sort headers.
11184 * continuations.c: Sort headers.
11185 * completer.h: Sort headers.
11186 * completer.c: Sort headers.
11187 * complaints.c: Sort headers.
11188 * coffread.c: Sort headers.
11189 * coff-pe-read.c: Sort headers.
11190 * cli-out.h: Sort headers.
11191 * cli-out.c: Sort headers.
11192 * charset.c: Sort headers.
11193 * c-varobj.c: Sort headers.
11194 * c-valprint.c: Sort headers.
11195 * c-typeprint.c: Sort headers.
11196 * c-lang.c: Sort headers.
11197 * buildsym.c: Sort headers.
11198 * buildsym-legacy.c: Sort headers.
11199 * build-id.h: Sort headers.
11200 * build-id.c: Sort headers.
11201 * btrace.c: Sort headers.
11202 * bsd-uthread.c: Sort headers.
11203 * breakpoint.h: Sort headers.
11204 * breakpoint.c: Sort headers.
11205 * break-catch-throw.c: Sort headers.
11206 * break-catch-syscall.c: Sort headers.
11207 * break-catch-sig.c: Sort headers.
11208 * blockframe.c: Sort headers.
11209 * block.c: Sort headers.
11210 * bfin-tdep.c: Sort headers.
11211 * bfin-linux-tdep.c: Sort headers.
11212 * bfd-target.c: Sort headers.
11213 * bcache.c: Sort headers.
11214 * ax-general.c: Sort headers.
11215 * ax-gdb.h: Sort headers.
11216 * ax-gdb.c: Sort headers.
11217 * avr-tdep.c: Sort headers.
11218 * auxv.c: Sort headers.
11219 * auto-load.c: Sort headers.
11220 * arm-wince-tdep.c: Sort headers.
11221 * arm-tdep.c: Sort headers.
11222 * arm-symbian-tdep.c: Sort headers.
11223 * arm-pikeos-tdep.c: Sort headers.
11224 * arm-obsd-tdep.c: Sort headers.
11225 * arm-nbsd-tdep.c: Sort headers.
11226 * arm-nbsd-nat.c: Sort headers.
11227 * arm-linux-tdep.c: Sort headers.
11228 * arm-linux-nat.c: Sort headers.
11229 * arm-fbsd-tdep.c: Sort headers.
11230 * arm-fbsd-nat.c: Sort headers.
11231 * arm-bsd-tdep.c: Sort headers.
11232 * arch-utils.c: Sort headers.
11233 * arc-tdep.c: Sort headers.
11234 * arc-newlib-tdep.c: Sort headers.
11235 * annotate.h: Sort headers.
11236 * annotate.c: Sort headers.
11237 * amd64-windows-tdep.c: Sort headers.
11238 * amd64-windows-nat.c: Sort headers.
11239 * amd64-tdep.c: Sort headers.
11240 * amd64-sol2-tdep.c: Sort headers.
11241 * amd64-obsd-tdep.c: Sort headers.
11242 * amd64-obsd-nat.c: Sort headers.
11243 * amd64-nbsd-tdep.c: Sort headers.
11244 * amd64-nbsd-nat.c: Sort headers.
11245 * amd64-nat.c: Sort headers.
11246 * amd64-linux-tdep.c: Sort headers.
11247 * amd64-linux-nat.c: Sort headers.
11248 * amd64-fbsd-tdep.c: Sort headers.
11249 * amd64-fbsd-nat.c: Sort headers.
11250 * amd64-dicos-tdep.c: Sort headers.
11251 * amd64-darwin-tdep.c: Sort headers.
11252 * amd64-bsd-nat.c: Sort headers.
11253 * alpha-tdep.c: Sort headers.
11254 * alpha-obsd-tdep.c: Sort headers.
11255 * alpha-nbsd-tdep.c: Sort headers.
11256 * alpha-mdebug-tdep.c: Sort headers.
11257 * alpha-linux-tdep.c: Sort headers.
11258 * alpha-linux-nat.c: Sort headers.
11259 * alpha-bsd-tdep.c: Sort headers.
11260 * alpha-bsd-nat.c: Sort headers.
11261 * aix-thread.c: Sort headers.
11262 * agent.c: Sort headers.
11263 * addrmap.c: Sort headers.
11264 * ada-varobj.c: Sort headers.
11265 * ada-valprint.c: Sort headers.
11266 * ada-typeprint.c: Sort headers.
11267 * ada-tasks.c: Sort headers.
11268 * ada-lang.c: Sort headers.
11269 * aarch64-tdep.c: Sort headers.
11270 * aarch64-ravenscar-thread.c: Sort headers.
11271 * aarch64-newlib-tdep.c: Sort headers.
11272 * aarch64-linux-tdep.c: Sort headers.
11273 * aarch64-linux-nat.c: Sort headers.
11274 * aarch64-fbsd-tdep.c: Sort headers.
11275 * aarch64-fbsd-nat.c: Sort headers.
11276 * aarch32-linux-nat.c: Sort headers.
11277
699bd4cf
TT
112782019-04-04 Tom Tromey <tom@tromey.com>
11279
11280 * varobj.c (varobj_create): Update.
11281 * rust-exp.y (struct rust_parser) <update_innermost_block,
11282 lookup_symbol>: New methods.
11283 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11284 Rename.
11285 (rust_parser::rust_lookup_type)
11286 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11287 * printcmd.c (display_command, do_one_display): Update.
11288 * parser-defs.h (struct parser_state) <parser_state>: Add
11289 "tracker" parameter.
11290 (block_tracker): New member.
11291 (class innermost_block_tracker) <innermost_block_tracker>: Add
11292 "types" parameter.
11293 <reset>: Remove method.
11294 (innermost_block): Don't declare.
11295 (null_post_parser): Update.
11296 * parse.c (innermost_block): Remove global.
11297 (write_dollar_variable): Update.
11298 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11299 Remove "tracker_types" parameter.
11300 (parse_expression): Add "tracker" parameter.
11301 (parse_expression_for_completion): Update.
11302 (null_post_parser): Add "tracker" parameter.
11303 * p-exp.y: Update rules.
11304 * m2-exp.y: Update rules.
11305 * language.h (struct language_defn) <la_post_parser>: Add
11306 "tracker" parameter.
11307 * go-exp.y: Update rules.
11308 * f-exp.y: Update rules.
11309 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11310 parameter.
11311 * d-exp.y: Update rules.
11312 * c-exp.y: Update rules.
11313 * breakpoint.c (set_breakpoint_condition): Create an
11314 innermost_block_tracker.
11315 (watch_command_1): Likewise.
11316 * ada-lang.c (resolve): Add "tracker" parameter.
11317 (resolve_subexp): Likewise.
11318 * ada-exp.y (write_var_from_sym): Update.
11319
dac43e32
TT
113202019-04-04 Tom Tromey <tom@tromey.com>
11321
11322 * type-stack.h: New file.
11323 * type-stack.c: New file.
11324 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11325 type-stack.h.
11326 (insert_into_type_stack, insert_type, push_type, push_type_int)
11327 (insert_type_address_space, pop_type, pop_type_int)
11328 (pop_typelist, pop_type_stack, append_type_stack)
11329 (push_type_stack, get_type_stack, push_typelist)
11330 (follow_type_instance_flags, follow_types): Don't declare.
11331 * parse.c (type_stack): Remove global.
11332 (parse_exp_in_context): Update.
11333 (insert_into_type_stack, insert_type, push_type, push_type_int)
11334 (insert_type_address_space, pop_type, pop_type_int)
11335 (pop_typelist, pop_type_stack, append_type_stack)
11336 (push_type_stack, get_type_stack, push_typelist)
11337 (follow_type_instance_flags, follow_types): Remove (moved to
11338 type-stack.c).
11339 * f-exp.y (type_stack): New global.
11340 Update rules.
11341 (push_kind_type, f_parse): Update.
11342 * d-exp.y (type_stack): New global.
11343 Update rules.
11344 (d_parse): Update.
11345 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11346 Update rules.
11347 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11348 (HFILES_NO_SRCDIR): Add type-stack.h.
11349
2a612529
TT
113502019-04-04 Tom Tromey <tom@tromey.com>
11351
11352 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11353 (rust_parser::convert_ast_to_expression, rust_parse)
11354 (rust_lex_test_completion, rust_lex_tests): Update.
11355 * parser-defs.h (struct expr_completion_state): New.
11356 (struct parser_state) <parser_state>: Add completion parameter.
11357 <mark_struct_expression, mark_completion_tag>: New methods.
11358 <parse_completion, m_completion_state>: New members.
11359 (prefixify_expression, null_post_parser): Update.
11360 (mark_struct_expression, mark_completion_tag): Don't declare.
11361 * parse.c (parse_completion, expout_last_struct)
11362 (expout_tag_completion_type, expout_completion_name): Remove
11363 globals.
11364 (parser_state::mark_struct_expression)
11365 (parser_state::mark_completion_tag): Now methods.
11366 (prefixify_expression): Add last_struct parameter.
11367 (prefixify_subexp): Likewise.
11368 (parse_exp_1): Update.
11369 (parse_exp_in_context): Add cstate parameter. Update.
11370 (parse_expression_for_completion): Create an
11371 expr_completion_state.
11372 (null_post_parser): Add "completion" parameter.
11373 * p-exp.y: Update rules.
11374 (yylex): Update.
11375 * language.h (struct language_defn) <la_post_parser>: Add
11376 "completing" parameter.
11377 * go-exp.y: Update rules.
11378 (lex_one_token): Update.
11379 * expression.h (parse_completion): Don't declare.
11380 * d-exp.y: Update rules.
11381 (lex_one_token): Update rules.
11382 * c-exp.y: Update rules.
11383 (lex_one_token): Update.
11384 * ada-lang.c (resolve): Add "parse_completion" parameter.
11385 (resolve_subexp): Likewise.
11386 (ada_resolve_function): Likewise.
11387
43476f0b
TT
113882019-04-04 Tom Tromey <tom@tromey.com>
11389
11390 * parser-defs.h (struct parser_state) <start_arglist,
11391 end_arglist>: New methods.
11392 <arglist_len, m_funcall_chain>: New members.
11393 (arglist_len, start_arglist, end_arglist): Don't declare.
11394 * parse.c (arglist_len, funcall_chain): Remove global.
11395 (start_arglist, end_arglist): Remove functions.
11396 (parse_exp_in_context): Update.
11397 * p-exp.y: Update rules.
11398 * m2-exp.y: Update rules.
11399 * go-exp.y: Update rules.
11400 * f-exp.y: Update rules.
11401 * d-exp.y: Update rules.
11402 * c-exp.y: Update rules.
11403
5776fca3
TT
114042019-04-04 Tom Tromey <tom@tromey.com>
11405
11406 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11407 lex_operator, push_back>: New methods.
11408 Update all rules.
11409 (rust_parser::lex_hex, lex_escape): Rename and update.
11410 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11411 (rust_parser::lex_operator): Rename and update.
11412 (rust_parser::lex_number, rustyylex, rustyyerror)
11413 (rust_lex_test_init, rust_lex_test_sequence)
11414 (rust_lex_test_push_back, rust_lex_tests): Update.
11415 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11416 parameter.
11417 <lexptr, prev_lexptr>: New members.
11418 (lexptr, prev_lexptr): Don't declare.
11419 * parse.c (lexptr, prev_lexptr): Remove globals.
11420 (parse_exp_in_context): Update.
11421 * p-exp.y (yylex, yyerror): Update.
11422 * m2-exp.y (parse_number, yylex, yyerror): Update.
11423 * go-exp.y (lex_one_token, yyerror): Update.
11424 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11425 * d-exp.y (lex_one_token, yyerror): Update.
11426 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11427 (lex_one_token, yyerror): Update.
11428 * ada-lex.l (YY_INPUT): Update.
11429 (rewind_to_char): Update.
11430 * ada-exp.y (yyerror): Update.
11431
8621b685
TT
114322019-04-04 Tom Tromey <tom@tromey.com>
11433
11434 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11435 * parser-defs.h (struct parser_state) <parser_state>: Add new
11436 parameter.
11437 <comma_terminates>: New member.
11438 (comma_terminates): Don't declare global.
11439 * parse.c (comma_terminates): Remove global.
11440 (parse_exp_in_context): Update.
11441 * p-exp.y (yylex): Update.
11442 * m2-exp.y (yylex): Update.
11443 * go-exp.y (lex_one_token): Update.
11444 * f-exp.y (yylex): Update.
11445 * d-exp.y (lex_one_token): Update.
11446 * c-exp.y (lex_one_token): Update.
11447 * ada-lex.l: Update.
11448
28aaf3fd
TT
114492019-04-04 Tom Tromey <tom@tromey.com>
11450
11451 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11452 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11453 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11454 * parser-defs.h (paren_depth): Don't declare.
11455 * parse.c (paren_depth): Remove global.
11456 (parse_exp_in_context): Update.
11457 * p-exp.y (paren_depth): New global.
11458 (pascal_parse): Initialize it.
11459 * m2-exp.y (paren_depth): New global.
11460 (m2_parse): Initialize it.
11461 * go-exp.y (paren_depth): New global.
11462 (go_parse): Initialize it.
11463 * f-exp.y (paren_depth): New global.
11464 (f_parse): Initialize it.
11465 * d-exp.y (paren_depth): New global.
11466 (d_parse): Initialize it.
11467 * c-exp.y (paren_depth): New global.
11468 (c_parse): Initialize it.
11469 * ada-lex.l (paren_depth): New global.
11470 (lexer_init): Initialize it.
11471
1e58a4a4
TT
114722019-04-04 Tom Tromey <tom@tromey.com>
11473
11474 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11475 (rust_parser::convert_ast_to_type)
11476 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11477 * parser-defs.h (struct parser_state) <parser_state>: Add
11478 parameters. Initialize new members.
11479 <expression_context_block, expression_context_pc>: New members.
11480 * parse.c (expression_context_block, expression_context_pc):
11481 Remove globals.
11482 (parse_exp_in_context): Update.
11483 * p-exp.y: Update all rules.
11484 (yylex): Update.
11485 * m2-exp.y: Update all rules.
11486 (yylex): Update.
11487 * go-exp.y (yylex): Update.
11488 * f-exp.y (yylex): Update.
11489 * d-exp.y: Update all rules.
11490 (yylex): Update.
11491 * c-exp.y: Update all rules.
11492 (lex_one_token, classify_name, yylex, c_parse): Update.
11493 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11494
37eedb39
TT
114952019-04-04 Tom Tromey <tom@tromey.com>
11496
11497 * gdbarch.h, gdbarch.c: Rebuild.
11498 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11499 * stap-probe.h:
11500 (struct stap_parse_info): Replace "parser_state" with
11501 "expr_builder".
11502 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11503 (parser_state): New class.
11504 * parse.c (expr_builder): Rename.
11505 (expr_builder::release): Rename.
11506 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11507 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11508 (write_exp_elt_longcst, write_exp_elt_floatcst)
11509 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11510 (write_exp_string_vector, write_exp_bitstring)
11511 (write_exp_msymbol, mark_struct_expression)
11512 (write_dollar_variable)
11513 (insert_type_address_space, increase_expout_size): Replace
11514 "parser_state" with "expr_builder".
11515 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11516 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11517 "parser_state" with "expr_builder".
11518
73923d7e
TT
115192019-04-04 Tom Tromey <tom@tromey.com>
11520
11521 * rust-exp.y: Replace "parse_language" with method call.
11522 * p-exp.y:
11523 (yylex): Replace "parse_language" with method call.
11524 * m2-exp.y:
11525 (yylex): Replace "parse_language" with method call.
11526 * go-exp.y (classify_name): Replace "parse_language" with method
11527 call.
11528 * f-exp.y (yylex): Replace "parse_language" with method call.
11529 * d-exp.y (lex_one_token): Replace "parse_language" with method
11530 call.
11531 * c-exp.y:
11532 (lex_one_token, classify_name, yylex): Replace "parse_language"
11533 with method call.
11534 * ada-exp.y (find_primitive_type, type_char)
11535 (type_system_address): Replace "parse_language" with method call.
11536
fa9f5be6
TT
115372019-04-04 Tom Tromey <tom@tromey.com>
11538
11539 * rust-exp.y: Replace "parse_gdbarch" with method call.
11540 * parse.c (write_dollar_variable, insert_type_address_space):
11541 Replace "parse_gdbarch" with method call.
11542 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11543 call.
11544 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11545 call.
11546 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11547 "parse_gdbarch" with method call.
11548 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11549 with method call.
11550 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11551 "parse_gdbarch" with method call.
11552 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11553 "parse_gdbarch" with method call.
11554 * c-exp.y (parse_type, parse_number, classify_name): Replace
11555 "parse_gdbarch" with method call.
11556 * ada-lex.l: Replace "parse_gdbarch" with method call.
11557 * ada-exp.y (parse_type, find_primitive_type, type_char)
11558 (type_system_address): Replace "parse_gdbarch" with method call.
11559
1201a264
TT
115602019-04-04 Tom Tromey <tom@tromey.com>
11561
11562 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11563 * stap-probe.c (stap_parse_argument): Update.
11564 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11565 initial_size parameter.
11566 * rust-exp.y (rust_lex_tests): Update.
11567 * parse.c (parser_state): Update.
11568 (parse_exp_in_context): Update.
11569 * parser-defs.h (struct parser_state) <parser_state>: Remove
11570 "initial_size" parameter.
11571
e3980ce2
TT
115722019-04-04 Tom Tromey <tom@tromey.com>
11573
11574 * parser-defs.h (increase_expout_size): Don't declare.
11575 * parse.c (increase_expout_size): Now static.
11576
e9f8e3f1
TS
115772019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11578
11579 * gnu-nat.c (gnu_nat_target::wait): Fix
11580 target_waitstatus_to_string call.
11581
d7df6549
AB
115822019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11583
11584 * eval.c (evaluate_subexp_standard): Handle internal functions
11585 during Fortran function call handling.
11586
8bdc1658
AB
115872019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11588
11589 * NEWS: Mention new internal functions.
11590 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11591 (read_base_type): Use dwarf2_init_complex_target_type.
11592 * value.c (creal_internal_fn): New function.
11593 (cimag_internal_fn): New function.
11594 (_initialize_values): Register new internal functions.
11595
c29705b7
PW
115962019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11597
11598 * infrun.c (stop_all_threads): If debug_infrun, always
11599 trace the wait status after wait_one, using
11600 target_waitstatus_to_string and target_pid_to_str.
11601 (handle_inferior_event): Replace various trace of
11602 wait status kind by a single trace.
11603 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11604 wait status kind image by target_waitstatus_to_string.
11605 * target/waitstatus.c (target_waitstatus_to_string): Fix
11606 obsolete comment.
11607
05caa1d2
TT
116082019-04-01 Tom Tromey <tromey@adacore.com>
11609
11610 PR symtab/23331:
11611 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11612
9d1447e0
SDJ
116132019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11614 Pedro Alves <palves@redhat.com>
11615
11616 * top.c (quit_force): Call 'finalize_values'.
11617 * value.c (finalize_values): New function.
11618 * value.h (finalize_values): Declare.
11619
7734102d
EZ
116202019-03-30 Eli Zaretskii <eliz@gnu.org>
11621
11622 * NEWS: Announce $_gdb_major and $_gdb_minor.
11623
11624 * top.c (init_gdb_version_vars): New function.
11625 (gdb_init): Call init_gdb_version_vars.
11626
188e1fa9
TT
116272019-03-29 Tom Tromey <tromey@adacore.com>
11628
11629 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11630 help text. Remove dead code.
11631
2880242d
KS
116322019-03-29 Keith Seitz <keiths@redhat.com>
11633
11634 From Siddhesh Poyarekar:
11635 * f-lang.h (f77_get_upperbound): Return LONGEST.
11636 (f77_get_lowerbound): Likewise.
11637 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11638 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11639 print them.
11640 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11641 plongest to format print it.
11642 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11643 (f77_get_upperbound): Likewise.
11644 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11645 LOWER_BOUND to LONGEST.
11646 (f77_create_arrayprint_offset_tbl): Likewise.
11647
cc1defb1
KS
116482019-03-29 Keith Seitz <keiths@redhat.com>
11649
11650 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11651 %s/pulongest for TYPE_LENGTH instead of %d in format
11652 strings.
11653 * ada-typerint.c (ada_print_type): Likewise.
11654 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11655 * compile/compile-c-support.c (generate_register_struct): Likewise.
11656 * gdbtypes.c (recursive_dump_type): Likewise.
11657 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11658 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11659 instead of %d in format strings.
11660 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11661 to std::min to ULONGEST.
11662 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11663 instead of %d in format strings.
11664 * tracepoint.c (info_scope_command): Likewise.
11665 * typeprint.c (print_offset_data::update)
11666 (print_offset_data::finish): Likewise.
11667 * xtensa-tdep.c (xtensa_store_return_value)
11668 (xtensa_push_dummy_call): Likewise.
11669
e432ccf1
JT
116702019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11671
11672 * windows-nat.c (display_selector): Fixed format specifications
11673 for 64-bit Cygwin.
11674
65d2b333
PW
116752019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11676
11677 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11678
f489207e
SL
116792019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11680
11681 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11682 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11683 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11684 (nios2_linux_init_abi): Install it.
11685
bffa1015
AH
116862019-03-28 Alan Hayward <alan.hayward@arm.com>
11687
11688 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11689
fc96163a
AH
116902019-03-28 Alan Hayward <alan.hayward@arm.com>
11691
11692 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11693
20dc7e9b
PW
116942019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11695 Tom Tromey <tromey@adacore.com>
11696
11697 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11698
7f5331a8
JB
116992019-03-26 Joel Brobecker <brobecker@adacore.com>
11700
11701 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11702 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11703 method to compute the bounds of range types. Also print "[evaluated]"
11704 if the bounds' values come from a dynamic evaluation.
11705
18c77628
AB
117062019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11707
11708 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11709 whitespace when pretty printing is on.
11710
53c973f2
AH
117112019-03-26 Alan Hayward <alan.hayward@arm.com>
11712
e79be6e5 11713 * ppc-linux-nat.c: Add include.
53c973f2 11714
d851aa71
AH
117152019-03-26 Alan Hayward <alan.hayward@arm.com>
11716
e79be6e5 11717 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 11718
2fe7bab7
AH
117192019-03-26 Alan Hayward <alan.hayward@arm.com>
11720
e79be6e5 11721 * arm-linux-nat.c: Add include.
2fe7bab7 11722
068ef30e
SM
117232019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11724
11725 * source-cache.c (source_cache::get_source_lines): Re-read
11726 fullname after calling open_source_file.
11727
81a24d04
JB
117282019-03-25 John Baldwin <jhb@FreeBSD.org>
11729
11730 * NEWS: Mention TLS support for FreeBSD.
11731
79e7ae11
TT
117322019-03-25 Tom Tromey <tromey@adacore.com>
11733
11734 * minsyms.c (BUNCH_SIZE): Update comment.
11735 (~minimal_symbol_reader): Remove old comment.
11736 (compact_minimal_symbols): Update comment.
11737 (minimal_symbol_reader::install): Remove old comment. Update
11738 other comments.
11739
d45963c2
AH
117402019-03-25 Alan Hayward <alan.hayward@arm.com>
11741
11742 * s390-linux-nat.c: Add include.
11743
0f83012e
AH
117442019-03-25 Alan Hayward <alan.hayward@arm.com>
11745
11746 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11747 Call linux_get_hwcap.
11748 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11749 Likewise.
11750 (aarch64_linux_get_hwcap): Remove function.
11751 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11752 declaration.
11753 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11754 linux_get_hwcap.
11755 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11756 * linux-tdep.c (linux_get_hwcap): Add function.
11757 (linux_get_hwcap2): Likewise.
11758 * linux-tdep.h (linux_get_hwcap): Add declaration.
11759 (linux_get_hwcap2): Likewise.
11760 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11761 (ppc_linux_get_hwcap2): Likewise.
11762 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11763 linux_get_hwcap.
11764 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11765 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11766 (ppc_linux_nat_target::read_description): Likewise.
11767 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11768 * s390-linux-nat.c: Likewise.
11769 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11770
6640a367
TT
117712019-03-24 Tom Tromey <tom@tromey.com>
11772
11773 * ada-lang.c (standard_lookup): Simplify initialization.
11774 (ada_lookup_symbol_nonlocal): Simplify return.
11775 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11776 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11777 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11778 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11779 initialization.
11780 * solib.c (solib_global_lookup): Simplify.
11781 * symtab.c (null_block_symbol): Remove.
11782 (symbol_cache_lookup): Simplify returns.
11783 (lookup_language_this): Simplify returns.
11784 (lookup_symbol_aux): Simplify return.
11785 (lookup_local_symbol): Simplify returns.
11786 (lookup_global_symbol_from_objfile): Simplify return.
11787 (lookup_symbol_in_objfile_symtabs)
11788 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11789 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11790 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11791 * cp-namespace.c (cp_lookup_bare_symbol)
11792 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11793 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11794 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11795 (cp_lookup_symbol_via_imports): Simplify initialization.
11796 (find_symbol_in_baseclass): Likewise.
11797 * symtab.h (null_block_symbol): Remove.
11798 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11799 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11800 (d_lookup_symbol_module): Likewise.
11801 (find_symbol_in_baseclass): Simplify initialization.
11802
a930ebcd
TT
118032019-03-24 Tom Tromey <tom@tromey.com>
11804
11805 * expression.h: Don't include symtab.h.
11806 (struct block): Forward declare.
11807
582942f4
TT
118082019-03-24 Tom Tromey <tom@tromey.com>
11809
11810 * c-exp.y (typebase): Remove casts.
11811 * gdbtypes.c (lookup_unsigned_typename, )
11812 (lookup_signed_typename): Remove cast.
11813 * eval.c (parse_to_comma_and_eval): Remove cast.
11814 * parse.c (write_dollar_variable): Remove cast.
11815 * block.h (struct block) <superblock>: Now const.
11816 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11817 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11818 (map_block): Make "block" const.
11819 * symfile.h (struct quick_symbol_functions)
11820 <map_matching_symbols>: Constify block argument to "callback".
11821 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11822 const.
11823 (find_pc_sect_compunit_symtab): Make "b" const.
11824 (find_symbol_at_address): Likewise.
11825 (search_symbols): Likewise.
11826 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11827 (dw2_debug_names_lookup_symbol): Likewise.
11828 (dw2_map_matching_symbols): Update.
11829 * p-valprint.c (pascal_val_print): Remove "block".
11830 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11831 (aux_add_nonlocal_symbols): Make "block" const.
11832 (resolve_subexp): Remove cast.
11833 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11834 const.
11835 (iterate_over_file_blocks): Likewise.
11836 * f-exp.y (%union) <bval>: Remove.
11837 * coffread.c (patch_opaque_types): Make "b" const.
11838 * spu-tdep.c (spu_catch_start): Make "block" const.
11839 * c-valprint.c (print_unpacked_pointer): Remove "block".
11840 * symmisc.c (dump_symtab_1): Make "b" const.
11841 (block_depth): Make "block" const.
11842 * d-exp.y (%union) <bval>: Remove.
11843 * cp-support.h (cp_lookup_rtti_type): Update.
11844 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11845 * psymtab.c (psym_lookup_symbol): Make "block" const.
11846 (maintenance_check_psymtabs): Make "b" const.
11847 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11848 (enumerate_locals, enumerate_args): Update.
11849 * python/py-symtab.c (stpy_global_block): Make "block" const.
11850 (stpy_static_block): Likewise.
11851 * inline-frame.c (block_starting_point_at): Make "new_block"
11852 const.
11853 * block.c (find_block_in_blockvector): Make return type const.
11854 (blockvector_for_pc_sect): Make "b" const.
11855 (find_block_in_blockvector): Make "b" const.
11856
7ad417dd
TT
118572019-03-23 Tom Tromey <tom@tromey.com>
11858
11859 * varobj.c (varobj_create): Update.
11860 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11861 * printcmd.c (display_command, do_one_display): Don't reset
11862 innermost_block.
11863 * parser-defs.h (enum innermost_block_tracker_type): Move to
11864 expression.h.
11865 (innermost_block): Update comment.
11866 * parse.c (parse_exp_1): Add tracker_types parameter.
11867 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11868 tracker_types parameter. Reset innermost_block.
11869 (parse_exp_in_context): Remove.
11870 (parse_expression_for_completion): Update.
11871 * objfiles.c (~objfile): Don't reset expression_context_block or
11872 innermost_block.
11873 * expression.h (enum innermost_block_tracker_type): Move from
11874 parser-defs.h.
11875 (parse_exp_1): Add tracker_types parameter.
11876 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11877 reset innermost_block.
11878
b366c208
TT
118792019-03-23 Tom Tromey <tom@tromey.com>
11880
11881 * objfiles.h: Include bcache.h.
11882
9bb9b2f9
TT
118832019-03-23 Tom Tromey <tom@tromey.com>
11884
11885 * linespec.c (get_current_search_block): Use
11886 scoped_restore_current_language.
11887 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11888
59c28372
AH
118892019-03-22 Alan Hayward <alan.hayward@arm.com>
11890 Jiong Wang <jiong.wang@arm.com>
11891
11892 * aarch64-linux-tdep.c
11893 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11894 section.
11895 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11896
17e116a7
AH
118972019-03-22 Alan Hayward <alan.hayward@arm.com>
11898 Jiong Wang <jiong.wang@arm.com>
11899
11900 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11901 instructions.
11902 (aarch64_analyze_prologue_test): Add PACIASP test.
11903 (aarch64_prologue_prev_register): Unmask PC value.
11904
11e1b75f
AH
119052019-03-22 Alan Hayward <alan.hayward@arm.com>
11906 Jiong Wang <jiong.wang@arm.com>
11907
11908 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11909 (aarch64_dwarf2_prev_register): Unmask PC value.
11910 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11911 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11912 DW_CFA_AARCH64_negate_ra_state.
11913 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11914
34dcc7cf
AH
119152019-03-22 Alan Hayward <alan.hayward@arm.com>
11916 Jiong Wang <jiong.wang@arm.com>
11917
11918 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11919 registers.
11920 (aarch64_pseudo_register_name): Likewise.
11921 (aarch64_pseudo_register_type): Likewise.
11922 (aarch64_pseudo_register_reggroup_p): Likewise.
11923 (aarch64_gdbarch_init): Add pauth registers.
11924 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11925 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11926 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11927 (struct gdbarch_tdep): Add regnum for ra_state.
11928
1ef53e6b
AH
119292019-03-22 Alan Hayward <alan.hayward@arm.com>
11930 Jiong Wang <jiong.wang@arm.com>
11931
11932 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11933
76bed0fd
AH
119342019-03-22 Alan Hayward <alan.hayward@arm.com>
11935 Jiong Wang <jiong.wang@arm.com>
11936
11937 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11938 function.
11939 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11940 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11941 (aarch64_gdbarch_init): Add puth registers.
11942 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11943 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11944 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11945
ee4fbcfa
AH
119462019-03-22 Alan Hayward <alan.hayward@arm.com>
11947 Jiong Wang <jiong.wang@arm.com>
11948
11949 * aarch64-linux-nat.c
11950 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11951 * aarch64-linux-tdep.c
11952 (aarch64_linux_core_read_description): Likewise.
11953 (aarch64_linux_get_hwcap): New function.
11954 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11955 (aarch64_linux_get_hwcap): New declaration.
11956
6dc0ebde
AH
119572019-03-22 Alan Hayward <alan.hayward@arm.com>
11958 Jiong Wang <jiong.wang@arm.com>
11959
11960 * aarch64-linux-nat.c
11961 (aarch64_linux_nat_target::read_description): Add pauth param.
11962 * aarch64-linux-tdep.c
11963 (aarch64_linux_core_read_description): Likewise.
11964 * aarch64-tdep.c (struct target_desc): Add in pauth.
11965 (aarch64_read_description): Add pauth param.
11966 (aarch64_gdbarch_init): Likewise.
11967 * aarch64-tdep.h (aarch64_read_description): Likewise.
11968 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11969 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11970 * features/Makefile: Add new files.
11971 * features/aarch64-pauth.c: New file.
11972 * features/aarch64-pauth.xml: New file.
11973
595915c1
TT
119742019-03-20 Tom Tromey <tromey@adacore.com>
11975
11976 * infrun.c (handle_inferior_event): Rename from
11977 handle_inferior_event_1. Create a scoped_value_mark.
11978 (handle_inferior_event): Remove.
11979
4c7d57e7
TT
119802019-03-19 Tom Tromey <tromey@adacore.com>
11981
11982 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11983 * infrun.h (print_stop_event): Add "displays" parameter.
11984 * infrun.c (print_stop_event): Add "displays" parameter.
11985
cb246234
PA
119862019-03-19 Pedro Alves <palves@redhat.com>
11987
11988 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11989 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11990 to -1. Fix TABs vs spaces.
11991 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11992 * tui/tui-out.h (tui_ui_out) Add intro comments.
11993 <m_line, m_start_of_line>: In-class initialize, and add describing
11994 comment.
11995
3a0e45b2
AH
119962019-03-18 Alan Hayward <alan.hayward@arm.com>
11997
11998 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11999 variable names.
12000 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12001
5371b850
PA
120022019-03-18 Pedro Alves <palves@redhat.com>
12003 Eli Zaretskii <eliz@gnu.org>
12004
12005 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12006 m_line and m_start_of_line.
12007
b17c4cd0
EZ
120082019-03-18 Eli Zaretskii <eliz@gnu.org>
12009
12010 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12011 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12012 it returns a newline. This fixes a regression in TU mode, whereby
12013 the next line is output on the same screen line as the user input.
12014
4bd56d18
TT
120152019-03-18 Tom Tromey <tromey@adacore.com>
12016
12017 * minsyms.c (minimal_symbol_reader::install): Remove call to
12018 obstack_blank.
12019
55c10aca
PA
120202019-03-18 Pedro Alves <palves@redhat.com>
12021
12022 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12023 New globals.
12024 (apply_style): New, factored out from ...
12025 (apply_ansi_escape): ... this. Handle reverse video mode.
12026 (tui_set_reverse_mode): New function.
12027 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12028 * tui/tui-winsource.c (tui_show_source_line): Use
12029 tui_set_reverse_mode instead of setting A_STANDOUT.
12030 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12031 New setter methods.
12032
647bb750
HD
120332019-03-18 Hannes Domani <ssbssa@yahoo.de>
12034
12035 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12036 Handle tabs.
12037
bff8c71f
TT
120382019-03-18 Tom Tromey <tromey@adacore.com>
12039
12040 * ada-lang.c (empty_array): Add "high" parameter.
12041 (ada_evaluate_subexp): Update.
12042
58785d98
ST
120432019-03-17 Sergei Trofimovich <siarheit@google.com>
12044
12045 * unittests/string_view-selftests.c: Define
12046 _initialize_string_view_selftests unconditionally.
12047
d4cbef22
ВМ
120482019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12049
12050 PR gdb/24350
12051 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12052
fce4c071
ВМ
120532019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12054
12055 PR gdb/24351
12056 * windows-nat.c (display_selector): Fix format specifiers.
12057
f7f0a123
EZ
120582019-03-17 Eli Zaretskii <eliz@gnu.org>
12059
12060 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12061 tui_refill_source_window instead of tui_refresh_win, to update the
12062 current execution line. This fixes redisplay of the current line
12063 when stepping through the code with "next" or "step".
12064
ab42892f
EZ
120652019-03-16 Eli Zaretskii <eliz@gnu.org>
12066
12067 * source-cache.c (source_cache::get_source_lines): Call
12068 find_source_lines to initialize s->nlines. This fixes vertical
12069 scrolling of TUI source window when the DOWN arrow is pressed.
12070
8d8c087f
PW
120712019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12072
12073 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12074 linux-thread-db.c (_initialize_thread_db): Likewise.
12075
798e1c30
EZ
120762019-03-16 Eli Zaretskii <eliz@gnu.org>
12077
12078 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12079 wclrtoeol in tui_show_source_line". This reverts changes made in
12080 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12081
eefba3da
TT
120822019-03-15 Tom Tromey <tom@tromey.com>
12083
12084 * symtab.h (struct minimal_symbol): Derive from
12085 general_symbol_info.
12086 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12087 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12088 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12089 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12090 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12091 (MSYMBOL_SEARCH_NAME): Update.
12092 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12093 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12094 * minsyms.c (minimal_symbol_reader::record_full): Update.
12095
0de2420c
TT
120962019-03-15 Tom Tromey <tom@tromey.com>
12097
12098 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12099
042d75e4
TT
121002019-03-15 Tom Tromey <tom@tromey.com>
12101
12102 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12103 unique_xmalloc_ptr.
12104 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12105 Update.
12106 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12107 (build_minimal_symbol_hash_tables)
12108 (minimal_symbol_reader::install): Update.
12109
db92718b
TT
121102019-03-15 Tom Tromey <tom@tromey.com>
12111
12112 * symtab.c (create_demangled_names_hash): Update.
12113 (symbol_set_names): Update.
12114 * objfiles.h (struct objfile_per_bfd_storage)
12115 <demangled_names_hash>: Now an htab_up.
12116 * objfiles.c (objfile_per_bfd_storage): Simplify.
12117
d6797f46
TT
121182019-03-15 Tom Tromey <tom@tromey.com>
12119
12120 * objfiles.h (struct objfile_per_bfd_storage): Declare
12121 destructor.
12122 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12123 New.
12124 (get_objfile_bfd_data): Use new. Don't initialize
12125 language_of_main.
12126 (free_objfile_per_bfd_storage): Remove.
12127 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12128
741d7538
TT
121292019-03-15 Tom Tromey <tom@tromey.com>
12130
12131 * symfile.c (reread_symbols): Update.
12132 * objfiles.c (objfile::objfile): Update.
12133 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12134 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12135 comment.
12136 (minimal_symbol_reader::install): Update.
12137 (terminate_minimal_symbol_table): Remove.
12138 * jit.c (jit_object_close_impl): Update.
12139
788c80d1
TT
121402019-03-15 Tom Tromey <tom@tromey.com>
12141
12142 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12143 initializations.
12144
1b7a07cb
TT
121452019-03-15 Tom Tromey <tom@tromey.com>
12146
12147 * objfiles.h (struct objfile_per_bfd_storage)
12148 <demangled_hash_languages>: Now a bitset.
12149 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12150 (lookup_minimal_symbol): Update.
12151
3db066bc
TT
121522019-03-15 Tom Tromey <tom@tromey.com>
12153
12154 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12155 Don't return the symbol.
12156 * coffread.c (record_minimal_symbol): Use record_full.
12157
3fff2c37
EZ
121582019-03-14 Eli Zaretskii <eliz@gnu.org>
12159
12160 The MS-Windows port of ncurses fails to switch to a color pair if
12161 one or both of the colors are the implicit default colors. This
12162 change records the default colors when TUI is initialized, and
12163 then specifies them explicitly when a color pair uses the default
12164 colors. This allows color styling in TUI mode on MS-Windows.
12165
12166 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12167 ncurses_norm_attr.
12168 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12169 colors in ncurses_norm_attr.
12170 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12171 "none", replace it with the default color recorded in
12172 ncurses_norm_attr.
12173
3b336828
TT
121742019-03-14 Tom Tromey <tromey@adacore.com>
12175
12176 * source-cache.h (class source_cache) <get_source_lines>: Return
12177 std::string.
12178 * source-cache.c (source_cache::extract_lines): Handle case where
12179 first_pos==npos. Return std::string.
12180 (source_cache::get_source_lines): Update.
12181
d085f989
TT
121822019-03-14 Tom Tromey <tromey@adacore.com>
12183
12184 * NEWS: Add item for "style sources" commands.
12185 * source-cache.c (source_cache::get_source_lines): Check
12186 source_styling.
12187 * cli/cli-style.c (source_styling): New global.
12188 (_initialize_cli_style): Add "style sources" commands.
12189 (show_style_sources): New function.
12190 * cli/cli-style.h (source_styling): Declare.
12191
6f11e682
TT
121922019-03-14 Pedro Alves <palves@redhat.com>
12193 Tom Tromey <tromey@adacore.com>
12194
12195 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12196 * tui/tui-winsource.c (tui_refill_source_window): New function,
12197 from...
12198 (tui_horizontal_source_scroll): ... here. Move some logic.
12199 * cli/cli-style.c (set_style_enabled): Notify new observable.
12200 * tui/tui-hooks.c (tui_redisplay_source): New function.
12201 (tui_attach_detach_observers): Attach or detach
12202 tui_redisplay_source.
12203 * observable.h (source_styling_changed): New observable.
12204 * observable.c: Define source_styling_changed observable.
12205
a068643d
TT
122062019-03-13 Tom Tromey <tromey@adacore.com>
12207
12208 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12209 (i386_gnu_nat_target::store_registers): Update.
12210 * target-debug.h (target_debug_print_std_string): New macro.
12211 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12212 * windows-tdep.c (display_one_tib): Update.
12213 * tui/tui-stack.c (tui_make_status_line): Update.
12214 * top.c (print_inferior_quit_action): Update.
12215 * thread.c (thr_try_catch_cmd): Update.
12216 (add_thread_with_info): Update.
12217 (thread_target_id_str): Update.
12218 (thr_try_catch_cmd): Update.
12219 (thread_command): Update.
12220 (thread_find_command): Update.
12221 * record-btrace.c (record_btrace_target::info_record)
12222 (record_btrace_resume_thread, record_btrace_target::resume)
12223 (record_btrace_cancel_resume, record_btrace_step_thread)
12224 (record_btrace_target::wait, record_btrace_target::wait)
12225 (record_btrace_target::wait, record_btrace_target::stop): Update.
12226 * progspace.c (print_program_space): Update.
12227 * process-stratum-target.c
12228 (process_stratum_target::thread_address_space): Update.
12229 * linux-fork.c (linux_fork_mourn_inferior)
12230 (detach_checkpoint_command, info_checkpoints_command)
12231 (linux_fork_context): Update.
12232 (linux_fork_detach): Update.
12233 (class scoped_switch_fork_info): Update.
12234 (delete_checkpoint_command): Update.
12235 * infrun.c (follow_fork_inferior): Update.
12236 (follow_fork_inferior): Update.
12237 (proceed_after_vfork_done): Update.
12238 (handle_vfork_child_exec_or_exit): Update.
12239 (follow_exec): Update.
12240 (displaced_step_prepare_throw): Update.
12241 (displaced_step_restore): Update.
12242 (start_step_over): Update.
12243 (resume_1): Update.
12244 (clear_proceed_status_thread): Update.
12245 (proceed): Update.
12246 (print_target_wait_results): Update.
12247 (do_target_wait): Update.
12248 (context_switch): Update.
12249 (stop_all_threads): Update.
12250 (restart_threads): Update.
12251 (finish_step_over): Update.
12252 (handle_signal_stop): Update.
12253 (switch_back_to_stepped_thread): Update.
12254 (keep_going_pass_signal): Update.
12255 (print_exited_reason): Update.
12256 (normal_stop): Update.
12257 * inferior.c (inferior_pid_to_str): Change return type.
12258 (print_selected_inferior): Update.
12259 (add_inferior): Update.
12260 (detach_inferior): Update.
12261 * dummy-frame.c (fprint_dummy_frames): Update.
12262 * dcache.c (dcache_info_1): Update.
12263 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12264 (btrace_fetch, btrace_clear): Update.
12265 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12266 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12267 type.
12268 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12269 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12270 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12271 * gdbarch.c, gdbarch.h: Rebuild.
12272 * gdbarch.sh (core_pid_to_str): Change return type.
12273 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12274 return type.
12275 (windows_nat_target::pid_to_str): Change return type.
12276 (windows_delete_thread): Update.
12277 (windows_nat_target::attach): Update.
12278 (windows_nat_target::files_info): Update.
12279 * target-delegates.c: Rebuild.
12280 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12281 return type.
12282 (sol_thread_target::pid_to_str): Change return type.
12283 * remote.c (class remote_target) <pid_to_str>: Change return
12284 type.
12285 (remote_target::pid_to_str): Change return type.
12286 (extended_remote_target::attach, remote_target::remote_stop_ns)
12287 (remote_target::remote_notif_remove_queued_reply)
12288 (remote_target::push_stop_reply, remote_target::disable_btrace):
12289 Update.
12290 (extended_remote_target::attach): Update.
12291 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12292 type.
12293 (gdbsim_target::pid_to_str): Change return type.
12294 * ravenscar-thread.c (struct ravenscar_thread_target)
12295 <pid_to_str>: Change return type.
12296 (ravenscar_thread_target::pid_to_str): Change return type.
12297 * procfs.c (class procfs_target) <pid_to_str>: Change return
12298 type.
12299 (procfs_target::pid_to_str): Change return type.
12300 (procfs_target::attach): Update.
12301 (procfs_target::detach): Update.
12302 (procfs_target::fetch_registers): Update.
12303 (procfs_target::store_registers): Update.
12304 (procfs_target::wait): Update.
12305 (procfs_target::files_info): Update.
12306 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12307 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12308 return type.
12309 (nto_procfs_target::pid_to_str): Change return type.
12310 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12311 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12312 return type.
12313 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12314 (exit_lwp): Update.
12315 (attach_proc_task_lwp_callback, get_detach_signal)
12316 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12317 (linux_nat_target::resume, wait_lwp, stop_callback)
12318 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12319 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12320 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12321 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12322 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12323 type.
12324 (inf_ptrace_target::attach): Update.
12325 (inf_ptrace_target::files_info): Update.
12326 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12327 type.
12328 (go32_nat_target::pid_to_str): Change return type.
12329 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12330 (gnu_nat_target::wait): Update.
12331 (gnu_nat_target::wait): Update.
12332 (gnu_nat_target::resume): Update.
12333 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12334 (fbsd_nat_target::wait): Update.
12335 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12336 type.
12337 (darwin_nat_target::attach): Update.
12338 * corelow.c (class core_target) <pid_to_str>: Change return type.
12339 (core_target::pid_to_str): Change return type.
12340 * target.c (normal_pid_to_str): Change return type.
12341 (default_pid_to_str): Likewise.
12342 (target_pid_to_str): Change return type.
12343 (target_translate_tls_address): Update.
12344 (target_announce_detach): Update.
12345 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12346 return type.
12347 (bsd_uthread_target::pid_to_str): Change return type.
12348 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12349 type.
12350 (bsd_kvm_target::pid_to_str): Change return type.
12351 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12352 return type.
12353 (aix_thread_target::pid_to_str): Change return type.
12354 * target.h (struct target_ops) <pid_to_str>: Change return type.
12355 (target_pid_to_str, normal_pid_to_str): Likewise.
12356 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12357 type.
12358 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12359 type.
12360 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12361 return type.
12362 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12363 type.
12364 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12365 type.
12366 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12367 return type.
12368
b4be1b06
SM
123692019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12370
12371 * NEWS: Mention that the new default MI version is 3. Mention
12372 changes to the output of commands and events that deal with
12373 multi-location breakpoints.
12374 * breakpoint.c: Include "mi/mi-out.h".
12375 (print_one_breakpoint): Change output syntax if using MI version
12376 >= 3.
12377 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12378 New.
12379 (mi_multi_location_breakpoint_output_fixed): New.
12380 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12381 (mi_cmd_fix_multi_location_breakpoint_output): New.
12382 (mi_multi_location_breakpoint_output_fixed): New.
12383 * mi/mi-cmds.c (mi_cmds): Register command
12384 -fix-multi-location-breakpoint-output.
12385 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12386 interpreter "mi".
12387
8e5e5494
SM
123882019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12389
12390 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12391 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12392 instantiate mi_ui_out based on interpreter name.
12393 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12394 * mi/mi-main.c (mi_load_progress): Likewise.
12395
197df35e
JB
123962019-03-12 John Baldwin <jhb@FreeBSD.org>
12397
12398 * NEWS: Combine separate "New targets" sections for 8.3.
12399
8399425f
JB
124002019-03-12 John Baldwin <jhb@FreeBSD.org>
12401
12402 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12403 (ppcfbsd_init_abi): Install gdbarch
12404 "fetch_tls_load_module_address" and "get_thread_local_address"
12405 methods.
12406
b0f87ed0
JB
124072019-03-12 John Baldwin <jhb@FreeBSD.org>
12408
12409 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12410 (riscv_fbsd_init_abi): Install gdbarch
12411 "fetch_tls_load_module_address" and "get_thread_local_address"
12412 methods.
12413
ce25aa57
JB
124142019-03-12 John Baldwin <jhb@FreeBSD.org>
12415
12416 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12417 (i386fbsd_init_abi): Install gdbarch
12418 "fetch_tls_load_module_address" and "get_thread_local_address"
12419 methods.
12420
f5424cfa
JB
124212019-03-12 John Baldwin <jhb@FreeBSD.org>
12422
12423 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12424 (amd64fbsd_init_abi): Install gdbarch
12425 "fetch_tls_load_module_address" and "get_thread_local_address"
12426 methods.
12427
945f3901
JB
124282019-03-12 John Baldwin <jhb@FreeBSD.org>
12429
12430 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12431 (struct fbsd_pspace_data): New type.
12432 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12433 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12434 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12435 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12436 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12437
ef0bd204
JB
124382019-03-12 John Baldwin <jhb@FreeBSD.org>
12439
12440 * gdbtypes.c (lookup_struct_elt): New function.
12441 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12442 * gdbtypes.h (struct struct_elt): New type.
12443 (lookup_struct_elt): New prototype.
12444
36c53a02
JB
124452019-03-12 John Baldwin <jhb@FreeBSD.org>
12446
12447 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12448 remove disabled code block.
12449
6e056c81
JB
124502019-03-12 John Baldwin <jhb@FreeBSD.org>
12451
12452 * gdbarch.sh (get_thread_local_address): New method.
12453 * gdbarch.h, gdbarch.c: Regenerate.
12454 * target.c (target_translate_tls_address): Use
12455 gdbarch_get_thread_local_address if present instead of
12456 target::get_thread_local_address.
12457
cd250a18
JB
124582019-03-12 John Baldwin <jhb@FreeBSD.org>
12459
12460 * target.h (target::get_thread_local_address): Update comment.
12461
df22c1e5
JB
124622019-03-12 John Baldwin <jhb@FreeBSD.org>
12463
12464 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12465 objfile->separate_debug_objfile_backlink if not NULL.
12466
dd6876c9
JB
124672019-03-12 John Baldwin <jhb@FreeBSD.org>
12468
12469 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12470 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12471 (amd64bsd_store_inferior_registers): Likewise.
12472 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12473 Enable segment base registers.
12474 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12475 PT_GETFSBASE and PT_GETGSBASE.
12476 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12477 PT_SETGSBASE.
12478 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12479 segment base registers.
12480 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12481
1163a4b7
JB
124822019-03-12 John Baldwin <jhb@FreeBSD.org>
12483
12484 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12485 Update calls to i386_target_description to add 'segments'
12486 parameter.
12487 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12488 add segment base registers.
12489 * arch/i386.c (i386_create_target_description): Add 'segments'
12490 parameter to enable segment base registers.
12491 * arch/i386.h (i386_create_target_description): Likewise.
12492 * features/i386/32bit-segments.xml: New file.
12493 * features/i386/32bit-segments.c: Generate.
12494 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12495 call to i386_target_description to add 'segments' parameter.
12496 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12497 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12498 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12499 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12500 if feature is present.
12501 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12502 Add 'segments' parameter to call to i386_target_description.
12503 (i386_target_description): Add 'segments' parameter to enable
12504 segment base registers.
12505 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12506 to call to i386_target_description.
12507 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12508 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12509 Define I386_NUM_REGS.
12510 (i386_target_description): Add 'segments' parameter to enable
12511 segment base registers.
12512
3a350822
EZ
125132019-03-12 Eli Zaretskii <eliz@gnu.org>
12514
12515 PR/24325
12516 * source-cache.c: #undef open and close, to avoid unresolved
12517 externals during linking.
12518
ffdd69cf
TT
125192019-03-12 Tom Tromey <tromey@adacore.com>
12520
12521 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12522 const. Add initializers.
12523 (_initialize_remote): Don't initialize ptid globals.
12524
ec148c57
PA
125252019-03-12 Pedro Alves <palves@redhat.com>
12526
12527 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12528
32764270
PA
125292019-03-12 Pedro Alves <palves@redhat.com>
12530
12531 * cp-name-parser.y (main): Remove unused 'len' variable.
12532
17547186
TT
125332019-03-12 Tom Tromey <tromey@adacore.com>
12534
12535 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12536 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12537
d3a70e03
TT
125382019-03-12 Tom Tromey <tromey@adacore.com>
12539
12540 * linux-nat.c (iterate_over_lwps): Update.
12541 (stop_callback): Remove parameter.
12542 (stop_wait_callback, detach_callback, resume_set_callback)
12543 (select_singlestep_lwp_callback, set_ignore_sigint)
12544 (status_callback, resumed_callback, resume_clear_callback)
12545 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12546 data parameter.
12547 (linux_nat_target::detach, linux_nat_target::resume)
12548 (linux_stop_and_wait_all_lwps, select_event_lwp)
12549 (linux_nat_filter_event, linux_nat_wait_1)
12550 (linux_nat_target::kill, linux_nat_target::stop)
12551 (linux_nat_target::stop): Update.
12552 (linux_nat_resume_callback): Change type.
12553 (resume_stopped_resumed_lwps, count_events_callback)
12554 (select_event_lwp_callback): Likewise.
12555 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12556 * arm-linux-nat.c (struct update_registers_data): Remove.
12557 (update_registers_callback): Change type.
12558 (arm_linux_insert_hw_breakpoint1): Update.
12559 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12560 parameter.
12561 (x86_linux_dr_set_addr): Update.
12562 (x86_linux_dr_set_control): Update.
12563 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12564 (iterate_over_lwps): Use gdb::function_view.
12565 * nat/aarch64-linux-hw-point.c (struct
12566 aarch64_dr_update_callback_param): Remove.
12567 (debug_reg_change_callback): Change type.
12568 (aarch64_notify_debug_reg_change): Update.
12569 * s390-linux-nat.c (s390_refresh_per_info): Update.
12570
82cb27ff
TT
125712019-03-11 Tom Tromey <tromey@adacore.com>
12572
12573 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12574 redundant assignment to "this_cu".
12575
568c0683
SM
125762019-03-08 Simon Marchi <simon.marchi@efficios.com>
12577
12578 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12579
f09ce22d
SM
125802019-03-08 Simon Marchi <simon.marchi@efficios.com>
12581
12582 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12583 from...
12584 (rank_one_type): ... this.
12585
595f96a9
SM
125862019-03-08 Simon Marchi <simon.marchi@efficios.com>
12587
12588 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12589 from...
12590 (rank_one_type): ... this.
12591
2598a94b
SM
125922019-03-08 Simon Marchi <simon.marchi@efficios.com>
12593
12594 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12595 from...
12596 (rank_one_type): ... this.
12597
7f17b20d
SM
125982019-03-08 Simon Marchi <simon.marchi@efficios.com>
12599
12600 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12601 from...
12602 (rank_one_type): ... this.
12603
2c509035
SM
126042019-03-08 Simon Marchi <simon.marchi@efficios.com>
12605
12606 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12607 from...
12608 (rank_one_type): ... this.
12609
0dd322dc
SM
126102019-03-08 Simon Marchi <simon.marchi@efficios.com>
12611
12612 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12613 from...
12614 (rank_one_type): ... this.
12615
41ea4728
SM
126162019-03-08 Simon Marchi <simon.marchi@efficios.com>
12617
12618 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12619 from...
12620 (rank_one_type): ... this.
12621
793cd1d2
SM
126222019-03-08 Simon Marchi <simon.marchi@efficios.com>
12623
12624 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12625 from...
12626 (rank_one_type): ... this.
12627
34910087
SM
126282019-03-08 Simon Marchi <simon.marchi@efficios.com>
12629
12630 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12631 from...
12632 (rank_one_type): ... this.
12633
f1f832d6
SM
126342019-03-08 Simon Marchi <simon.marchi@efficios.com>
12635
12636 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12637 from...
12638 (rank_one_type): ... this.
12639
b9f4512f
SM
126402019-03-08 Simon Marchi <simon.marchi@efficios.com>
12641
12642 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12643 from...
12644 (rank_one_type): ... this.
12645
9293fc63
SM
126462019-03-08 Simon Marchi <simon.marchi@efficios.com>
12647
12648 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12649 from...
12650 (rank_one_type): ... this.
12651
e3abbe7e
PW
126522019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12653
12654 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12655 inferior-events' shows the example events.
12656
e4adb939
EZ
126572019-03-08 Eli Zaretskii <eliz@gnu.org>
12658
12659 Support styling on native MS-Windows console
12660
12661 PR/24315
12662 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12663 on MS-Windows if $TERM is not defined.
12664
12665 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12666
12667 * posix-hdep.c (gdb_console_fputs):
12668 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12669 functions.
12670 * ui-file.h (gdb_console_fputs): Add prototype.
12671
12672 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12673 back to fputs only if the former returns zero.
12674
25629dfd
TT
126752019-03-07 Tom Tromey <tom@tromey.com>
12676
12677 * symmisc.c (print_symbol_bcache_statistics): Update.
12678 (print_objfile_statistics): Update.
12679 * symfile.c (allocate_symtab): Update.
12680 * stabsread.c: Don't include bcache.h.
12681 * psymtab.h (struct psymbol_bcache): Don't declare.
12682 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12683 (psymbol_bcache_init, psymbol_bcache_free)
12684 (psymbol_bcache_get_bcache): Don't declare.
12685 * psymtab.c (struct psymbol_bcache): Remove.
12686 (psymtab_storage::psymtab_storage): Update.
12687 (psymtab_storage::~psymtab_storage): Update.
12688 (psymbol_bcache_init, psymbol_bcache_free)
12689 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12690 (add_psymbol_to_bcache): Update.
12691 (allocate_psymtab): Update.
12692 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12693 macro_cache>: No longer pointers.
12694 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12695 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12696 * macrotab.c (macro_bcache): Update.
12697 * macroexp.c: Don't include bcache.h.
12698 * gdbtypes.c (check_types_worklist): Update.
12699 (types_deeply_equal): Remove TRY/CATCH. Update.
12700 * elfread.c (elf_symtab_read): Update.
12701 * dwarf2read.c: Don't include bcache.h.
12702 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12703 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12704 (print_bcache_statistics, bcache_memory_used): Don't declare.
12705 (struct bcache): Move from bcache.c. Add constructor, destructor,
12706 methods. Rename all data members.
12707 * bcache.c (struct bcache): Move to bcache.h.
12708 (bcache::expand_hash_table): Rename from expand_hash_table.
12709 (bcache): Remove.
12710 (bcache::insert): Rename from bcache_full.
12711 (bcache::compare): Rename from bcache_compare.
12712 (bcache_xmalloc): Remove.
12713 (bcache::~bcache): Rename from bcache_xfree.
12714 (bcache::print_statistics): Rename from print_bcache_statistics.
12715 (bcache::memory_used): Rename from bcache_memory_used.
12716
fe726667
PA
127172019-03-07 Pedro Alves <palves@redhat.com>
12718
12719 * infrun.c (normal_stop): Also check for
12720 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12721
7584bb30
AB
127222019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12723
12724 * f-lang.c (value_from_host_double): Moved to...
12725 * value.c (value_from_host_double): ...here.
12726 * value.h (value_from_host_double): Declare.
12727 * guile/scm-math.c (vlscm_convert_typed_number): Use
12728 value_from_host_double.
12729 (vlscm_convert_number): Likewise.
12730 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12731 * python/py-value.c (convert_value_from_python): Likewise.
12732
a7b1986e
TT
127332019-03-06 Tom Tromey <tom@tromey.com>
12734
12735 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12736
0ccf4211
TT
127372019-03-06 Tom Tromey <tom@tromey.com>
12738
12739 * utils.h (free_current_contents): Don't declare.
12740 * utils.c (free_current_contents): Remove.
12741
fe7b42e5
TT
127422019-03-06 Tom Tromey <tom@tromey.com>
12743
12744 * top.c (quit_force): Update.
12745 * main.c (captured_command_loop): Update.
12746 * common/new-op.c (operator new): Update.
12747 * common/common-exceptions.c (struct catcher)
12748 <save_cleanup_chain>: Remove member.
12749 (exceptions_state_mc_init): Update.
12750 (exception_try_scope_entry): Return nullptr.
12751 (exception_try_scope_exit, exception_rethrow)
12752 (throw_exception_sjlj, throw_exception_cxx): Update.
12753 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12754 (all_cleanups, do_cleanups, discard_cleanups)
12755 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12756 (restore_cleanups, restore_final_cleanups): Don't declare.
12757 (do_final_cleanups): Remove parameter.
12758 * common/cleanups.c (cleanup_chain, make_cleanup)
12759 (make_cleanup_dtor, all_cleanups, do_cleanups)
12760 (discard_my_cleanups, discard_cleanups)
12761 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12762 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12763 (null_cleanup): Remove.
12764 (do_final_cleanups): Remove parameter.
12765
c6321f19
TT
127662019-03-06 Tom Tromey <tom@tromey.com>
12767
12768 * remote.c (remote_target::remote_parse_stop_reply): Use
12769 unique_xmalloc_ptr.
12770
61b30099
TT
127712019-03-06 Tom Tromey <tom@tromey.com>
12772
12773 * stabsread.c (struct stabs_field_info): Rename from field_info.
12774 <list, fnlist>: Add initializers.
12775 <obstack>: New member.
12776 (read_member_functions, read_struct_fields, read_baseclasses):
12777 Allocate on obstack. Don't use cleanups.
12778 (read_one_struct_field, read_member_functions, read_struct_fields)
12779 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12780 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12781 (read_struct_type): Update.
12782
6cceac94
TT
127832019-03-06 Tom Tromey <tom@tromey.com>
12784
12785 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12786 * common/filestuff.h (make_cleanup_close): Don't declare.
12787 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12788 Remove.
12789
72412762
TT
127902019-03-06 Tom Tromey <tom@tromey.com>
12791
12792 * solib-aix.c: Use make_scope_exit.
12793
2b6ff1c0
TT
127942019-03-06 Tom Tromey <tom@tromey.com>
12795
12796 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12797 Use make_scope_exit.
12798
d01c5877
TT
127992019-03-06 Tom Tromey <tom@tromey.com>
12800
12801 * solib-svr4.c (disable_probes_interface): Remove parameter.
12802 (svr4_handle_solib_event): Use make_scope_exit.
12803
32603266
TT
128042019-03-06 Tom Tromey <tom@tromey.com>
12805
12806 * remote.c (struct stop_reply_deleter): Remove.
12807 (stop_reply_up): Update.
12808 (struct stop_reply): Derive from notif_event. Don't typedef.
12809 <regcache>: Now a std::vector.
12810 (stop_reply_xfree): Remove.
12811 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12812 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12813 (remote_target::discard_pending_stop_replies): Use delete.
12814 (remote_target::remote_parse_stop_reply): Update.
12815 (remote_target::process_stop_reply): Update.
12816 * remote-notif.h (struct notif_event): Add virtual destructor.
12817 Remove "dtr" member.
12818 (struct notif_client) <alloc_event>: Return a unique_ptr.
12819 (notif_event_xfree): Don't declare.
12820 (notif_event_up): New typedef.
12821 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12822 (notif_event_xfree, do_notif_event_xfree): Remove.
12823 (remote_notif_state_xfree): Update.
12824
9799571e
TT
128252019-03-06 Tom Tromey <tom@tromey.com>
12826
12827 * infrun.c (displaced_step_clear_cleanup): Now a
12828 forward_scope_exit type.
12829 (displaced_step_prepare_throw): Update.
12830 (displaced_step_fixup): Update.
12831
09e3c4ca
TT
128322019-03-06 Tom Tromey <tom@tromey.com>
12833
12834 * inferior.h (class inferior): Update comment.
12835 * gdbthread.h (class thread_info): Update comment.
12836
e2a03548
TT
128372019-03-06 Joel Brobecker <brobecker@adacore.com>
12838 Tom Tromey <tom@tromey.com>
12839
12840 * stabsread.h (struct stab_section_list): Remove.
12841 (coffstab_build_psymtabs): Update.
12842 * dbxread.c (symbuf_sections): Now a std::vector.
12843 (sect_idx): New global.
12844 (fill_symbuf): Update.
12845 (coffstab_build_psymtabs): Change type of stabsects parameter.
12846 Update.
12847 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12848 std::vector.
12849 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12850 (coff_locate_sections): Update.
12851 (coff_symfile_read): Remove cleanups. Update.
12852 (init_stringtab): Add storage parameter.
12853 (free_stringtab, free_stringtab_cleanup): Remove.
12854 (init_lineno): Add storage parameter.
12855 (free_linetab, free_linetab_cleanup): Remove.
12856
b7e60d85
PA
128572019-03-06 Pedro Alves <palves@redhat.com>
12858
12859 * linux-fork.c (fork_info::clobber_regs): Delete.
12860 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12861 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12862 comment. Adjust.
12863 (scoped_switch_fork_info::scoped_switch_fork_info)
12864 (checkpoint_command, linux_fork_context): Adjust
12865 fork_save_infrun_state calls.
12866
e52c971f
PA
128672019-03-06 Pedro Alves <palves@redhat.com>
12868
12869 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12870 (inf_has_multiple_threads): Return 'bool' and rewrite using
12871 inferior_info::threads().
12872
06974e6c
PA
128732019-03-06 Pedro Alves <palves@redhat.com>
12874
12875 * linux-fork.c: Include <list>.
12876 (fork_list): Now a std::list instance.
12877 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12878 (forks_exist_p, find_last_fork): Adjust.
12879 (new_fork): Delete.
12880 (one_fork_p): New.
12881 (add_fork): Adjust.
12882 (free_fork): Delete, folded into fork_info::~fork_info().
12883 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12884 Adjust.
12885 (init_fork_list): Delete.
12886 (linux_fork_killall, linux_fork_mourn_inferior)
12887 (linux_fork_detach, info_checkpoints_command): Adjust.
12888 (_initialize_linux_fork): No longer call init_fork_list.
12889
72f31aea
PA
128902019-03-06 Pedro Alves <palves@redhat.com>
12891
12892 * linux-fork.c (new_fork): New, split out of ...
12893 (add_fork): ... this. Return void. Move "first fork" special
12894 case from here, to ...
12895 (checkpoint_command): ... here.
12896 * linux-linux.h (add_fork): Return void.
12897
efbecbc1
AB
128982019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12899
12900 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12901
0841c79a
AB
129022019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12903 Chris January <chris.january@arm.com>
12904 David Lecomber <david.lecomber@arm.com>
12905
12906 * f-exp.y: New token, UNOP_INTRINSIC.
12907 (exp): New pattern using UNOP_INTRINSIC token.
12908 (f77_keywords): Add 'abs' keyword.
12909 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12910 (value_from_host_double): New function.
12911 (evaluate_subexp_f): Support UNOP_ABS.
12912
4a270568
AB
129132019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12914
12915 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12916 types.
12917
067630bd
AB
129182019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12919
12920 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12921 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12922 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12923
3be47f7a
AB
129242019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12925
12926 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12927
4d00f5d8
AB
129282019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12929 Chris January <chris.january@arm.com>
12930
12931 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12932 * f-exp.y: Define 'KIND' token.
12933 (exp): New pattern for KIND expressions.
12934 (ptype): Handle types with a kind extension.
12935 (direct_abs_decl): Extend to spot kind extensions.
12936 (f77_keywords): Add 'kind' to the list.
12937 (push_kind_type): New function.
12938 (convert_to_kind_type): New function.
12939 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12940 * parse.c (operator_length_standard): Likewise.
12941 * parser-defs.h (enum type_pieces): Add tp_kind.
12942 * std-operator.def: Add UNOP_KIND.
12943
e454224f
AB
129442019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12945
12946 * f-exp.y (f_parse): Set yydebug.
12947
9dad4a58
AB
129482019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12949
12950 * f-lang.c (evaluate_subexp_f): New function.
12951 (exp_descriptor_f): New global.
12952 (f_language_defn): Use exp_descriptor_f instead of
12953 exp_descriptor_standard.
12954
c8f91604
AB
129552019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12956
12957 * f-exp.y (struct token): Add comments.
12958 (dot_ops): Remove uppercase versions and the end marker.
12959 (f77_keywords): Likewise.
12960 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12961 entries in the dot_ops array are case insensitive, and use
12962 strncasecmp to compare strings. Also some whitespace cleanup in
12963 this area. Similar for the f77_keywords array, except entries in
12964 this list might be case sensitive.
12965
dd9f2c76
AB
129662019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12967
12968 * f-exp.y (struct f77_boolean_val): Add comments.
12969 (boolean_values): Remove uppercase versions, and end marker.
12970 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12971 and use strncasecmp to achieve case insensitivity. Additionally,
12972 perform whitespace cleanup around this code.
12973
67a3048c
TT
129742019-03-06 Tom Tromey <tromey@adacore.com>
12975
12976 * remote-sim.c (gdbsim_target_open): Use result of
12977 gdb_argv::release.
12978
aa3cfbda
RB
129792019-03-06 Richard Bunt <richard.bunt@arm.com>
12980 Dirk Schubert <dirk.schubert@arm.com>
12981 Chris January <chris.january@arm.com>
12982
12983 * eval.c (evaluate_subexp_standard): Call Fortran argument
12984 wrapping logic.
12985 * f-lang.c (struct value): A value which can be passed into a
12986 Fortran function call.
12987 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12988 where appropriate.
12989 (struct type): Value ready for a Fortran function call.
12990 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12991 is needed.
12992 * f-lang.h (fortran_argument_convert): Declaration.
12993 (fortran_preserve_arg_pointer): Declaration.
12994 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12995
ea38e5df
TT
129962019-03-05 Tom Tromey <tromey@adacore.com>
12997
12998 * python/py-prettyprint.c (print_string_repr): Remove #if.
12999 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13000
06b5b831
TT
130012019-03-05 Tom Tromey <tromey@adacore.com>
13002
13003 * target.c (the_dummy_target): Move later. Change type to
13004 "dummy_target".
13005 (initialize_targets): Don't initialize the_dummy_target.
13006
edbd9e45
TT
130072019-03-05 Tom Tromey <tromey@adacore.com>
13008
13009 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13010 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13011
c119e040
TT
130122019-03-05 Tom Tromey <tromey@adacore.com>
13013
13014 * windows-nat.c (windows_nat_target::attach)
13015 (windows_nat_target::detach): Don't call gdb_flush.
13016 * valprint.c (generic_val_print, val_print, val_print_string):
13017 Don't call gdb_flush.
13018 * utils.c (defaulted_query): Don't call gdb_flush.
13019 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13020 * target.c (target_announce_detach): Don't call gdb_flush.
13021 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13022 * remote.c (extended_remote_target::attach): Don't call
13023 gdb_flush.
13024 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13025 * printcmd.c (do_examine): Don't call gdb_flush.
13026 (info_display_command): Don't call gdb_flush.
13027 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13028 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13029 * memattr.c (info_mem_command): Don't call gdb_flush.
13030 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13031 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13032 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13033 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13034 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13035 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13036 (gnu_nat_target::detach): Don't call gdb_flush.
13037 * f-valprint.c (f_val_print): Don't call gdb_flush.
13038 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13039 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13040 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13041 gdb_flush.
13042 * c-valprint.c (c_val_print): Don't call gdb_flush.
13043 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13044
895dafa6
TT
130452019-03-05 Tom Tromey <tromey@adacore.com>
13046
13047 * varobj.c (update_dynamic_varobj_children): Update.
13048 (install_default_visualizer): Use reset, not release.
13049 * value.c (set_internalvar): Update.
13050 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13051 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13052 ATTRIBUTE_UNUSED_RESULT.
13053
88a774b9
TT
130542019-03-05 Tom Tromey <tromey@adacore.com>
13055
13056 * remote.c (class scoped_remote_fd) <release>: Add
13057 ATTRIBUTE_UNUSED_RESULT.
13058
4e4a8b93
TT
130592019-03-05 Tom Tromey <tromey@adacore.com>
13060
13061 * macroexp.c (struct macro_buffer) <release>: Add
13062 ATTRIBUTE_UNUSED_RESULT.
13063
083eef1f
TT
130642019-03-05 Tom Tromey <tromey@adacore.com>
13065
13066 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13067 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13068 ATTRIBUTE_UNUSED_RESULT.
13069
3cabd438
TT
130702019-03-05 Tom Tromey <tromey@adacore.com>
13071
13072 * common/scoped_fd.h (class scoped_fd) <release>: Add
13073 ATTRIBUTE_UNUSED_RESULT.
13074
41e3300a
TT
130752019-03-05 Tom Tromey <tromey@adacore.com>
13076
13077 * parser-defs.h (struct parser_state) <release>: Add
13078 ATTRIBUTE_UNUSED_RESULT.
13079
18cb7c9f
TT
130802019-03-05 Tom Tromey <tromey@adacore.com>
13081
13082 * utils.h (class gdb_argv) <release>: Add
13083 ATTRIBUTE_UNUSED_RESULT.
13084 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13085
41fa577f
EZ
130862019-03-02 Eli Zaretskii <eliz@gnu.org>
13087
a6a4b2c6
EZ
13088 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13089 for-loop range, to avoid compiler warnings.
13090
13091 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13092 avoid compiler warnings about unused variables.
13093
742a7df5
EZ
13094 * NEWS: Mention end of support for native debugging on MS-Windows
13095 before XP.
13096
41fa577f
EZ
13097 PR gdb/24292
13098 * common/netstuff.c:
13099 * gdbserver/gdbreplay.c
13100 * gdbserver/remote-utils.c:
13101 * ser-tcp.c:
13102 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13103 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13104 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13105 'getaddrinfo' and 'freeaddrinfo' were not available before
13106 Windows XP, and mingw.org's MinGW headers by default define
13107 _WIN32_WINNT to 0x500.
13108
827f438f
GB
131092019-03-01 Gary Benson <gbenson@redhat.com>
13110
13111 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13112
92137da0
RO
131132019-02-28 Brian Vandenberg <phantall@gmail.com>
13114 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13115
13116 PR gdb/8527
13117 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13118 set_sigint_trap, clear_sigint_trap.
13119
799efbe8
PW
131202019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13121
13122 * target.c (target_detach): Clear the regcache and the
13123 frame cache.
13124
8ed25214
PA
131252019-02-27 Pedro Alves <palves@redhat.com>
13126
13127 * utils.c (set_screen_size): When we cap the height/width sizes,
13128 tweak the corresponding command variable to show "unlimited":
13129
23031e31
SJ
131302019-02-27 Saagar Jha <saagar@saagarjha.com>
13131 Pedro Alves <palves@redhat.com>
13132
13133 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13134 before calling rl_set_screen_size.
13135
6c28e44a
TT
131362019-02-27 Tom Tromey <tromey@adacore.com>
13137
13138 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13139 define.
13140 * python/py-value.c: Remove Python 2.4 workaround.
13141 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13142 workaround.
13143 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13144 Python 2.4 workaround.
13145 * python/python-internal.h: Remove Python 2.4 comment.
13146 (Py_ssize_t): Don't define.
13147 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13148 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13149 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13150 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13151 * python/python.c (do_start_initialization): Remove Python 2.4
13152 workaround.
13153 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13154 (print_children): Remove Python 2.4 workaround.
13155 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13156 workaround.
13157 (CHARBUFFERPROC_NAME): Remove.
13158 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13159 Python 2.4 workaround.
13160
2c3fc25d 131612019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 13162
2c3fc25d
KB
13163 * NEWS: Note minimum Python version.
13164
6ca62222
KB
131652019-02-27 Kevin Buettner <kevinb@redhat.com>
13166
13167 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13168 code from these functions. Remove corresponding ifdefs. Use
13169 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13170 Remove gotos and target of gotos.
13171 (infpy_search_memory): Likewise.
13172
f4bc7d2c
AB
131732019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13174
13175 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13176 (hppa_gdbarch_init): Don't register deleted functions with
13177 gdbarch.
13178
9734a586
AB
131792019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13180
13181 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13182 (h8300_unwind_sp): Delete.
13183 (h8300_dummy_id): Delete.
13184 (h8300_gdbarch_init): Don't register deleted functions with
13185 gdbarch.
13186
68b867f3
AB
131872019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13188
13189 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13190 (ft32_unwind_pc): Delete.
13191 (ft32_unwind_sp): Delete.
13192 (ft32_gdbarch_init): Don't register deleted functions with
13193 gdbarch.
13194
2fbe7ad0
AB
131952019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13196
13197 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13198 (frv_unwind_pc): Delete.
13199 (frv_unwind_sp): Delete.
13200 (frv_gdbarch_init): Don't register deleted functions with
13201 gdbarch.
13202
76055cbe
AB
132032019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13204
13205 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13206 (riscv_unwind_pc): Delete.
13207 (riscv_unwind_sp): Delete.
13208 (riscv_gdbarch_init): Don't register deleted functions with
13209 gdbarch.
13210
4133e5a1
AB
132112019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13212
13213 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13214 (csky_unwind_pc): Delete.
13215 (csky_unwind_sp): Delete.
13216 (csky_gdbarch_init): Don't register deleted functions with
13217 gdbarch.
13218
8010f576
AB
132192019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13220
13221 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13222 (cris_unwind_pc): Delete.
13223 (cris_unwind_sp): Delete.
13224 (cris_gdbarch_init): Don't register deleted functions with
13225 gdbarch.
13226
b56bf084
AB
132272019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13228
13229 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13230 (bfin_unwind_pc): Delete.
13231 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13232
a19a650f
AB
132332019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13234
13235 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13236 (arm_unwind_pc): Delete.
13237 (arm_unwind_sp): Delete.
13238 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13239
f8278c3c
AB
132402019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13241
13242 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13243 (arc_unwind_pc): Delete.
13244 (arc_unwind_sp): Delete.
13245 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13246
480e46cf
AB
132472019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13248
13249 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13250 (alpha_unwind_pc): Delete.
13251 (alpha_gdbarch_init): Don't register deleted functions with
13252 gdbarch.
13253
7a995095
AB
132542019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13255
13256 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13257 (aarch64_unwind_pc): Delete.
13258 (aarch64_unwind_sp): Delete.
13259 (aarch64_gdbarch_init): Don't register deleted functions with
13260 gdbarch.
13261
bf9a735e
AB
132622019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13263
13264 * gdbtypes.c (type_align): Don't consider static members when
13265 computing structure alignment.
13266
5561fc30
AB
132672019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13268
13269 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13270 return 0 for other types.
13271 * arch-utils.c (default_type_align): Always return 0.
13272 * gdbarch.h: Regenerate.
13273 * gdbarch.sh (type_align): Extend comment.
13274 * gdbtypes.c (type_align): Add additional comments, always call
13275 gdbarch_type_align before applying the default rules.
13276 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13277 generic code will then apply a suitable default.
13278 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13279 types, return 0 for other types.
13280
9335e75a
JB
132812019-02-27 Joel Brobecker <brobecker@adacore.com>
13282
13283 * NEWS: Create a new section for the next release branch.
13284 Rename the section of the current branch, now that it has
13285 been cut.
13286
3d34d8de
JB
132872019-02-27 Joel Brobecker <brobecker@adacore.com>
13288
13289 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13290 * version.in: Bump version to 8.3.50.DATE-git.
13291
143420fb
SM
132922019-02-26 Simon Marchi <simon.marchi@efficios.com>
13293
13294 * aix-thread.c (ptid_cmp): Remove unused variable.
13295 (get_signaled_thread): Likewise.
13296 (store_regs_user_thread): Likewise.
13297 (store_regs_kernel_thread): Likewise.
13298 (fetch_regs_kernel_thread): Remove shadowed variable.
13299
172fb711
AB
133002019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13301
13302 * features/riscv/32bit-cpu.xml: Add register numbers.
13303 * features/riscv/32bit-fpu.c: Regenerate.
13304 * features/riscv/32bit-fpu.xml: Add register numbers.
13305 * features/riscv/64bit-cpu.xml: Add register numbers.
13306 * features/riscv/64bit-fpu.c: Regenerate.
13307 * features/riscv/64bit-fpu.xml: Add register numbers.
13308
26c89782
KB
133092019-02-26 Kevin Buettner <kevinb@redhat.com>
13310
af54ade9 13311 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
13312 * python/py-value.c (convert_buffer_and_type_to_value): New
13313 function.
13314 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13315 Add support for handling an optional second argument. Call
13316 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
13317 * python/python-internal.h (Py_buffer_deleter): New struct.
13318 (Py_buffer_up): New typedef.
13319
0f58c9e8
JB
133202019-02-25 John Baldwin <jhb@FreeBSD.org>
13321
13322 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13323 instead of releasing ownership.
13324
0a0f4c01
JR
133252019-02-25 Jordan Rupprecht <rupprecht@google.com>
13326
13327 * dwarf2read.c (open_and_init_dwp_file): Call
13328 elf_numsections instead of bfd_count_sections to initialize
13329 dwp_file->num_sections.
13330
cd5a152c
TT
133312019-02-25 Tom Tromey <tromey@adacore.com>
13332
13333 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13334
8a6a8513
SDJ
133352019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13336
13337 * gcore.in: Add '--readnever' option when invoking GDB.
13338
04dcda9c
SM
133392019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13340
13341 * MAINTAINERS: Update my email address.
13342
07bc701d
SM
133432019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13344
13345 * build-id.c (build_id_to_debug_bfd_1): New function.
13346 (build_id_to_debug_bfd): Look for separate debug file in
13347 sysroot.
13348
c6f4a5d0
AB
133492019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13350
13351 * gdbarch.sh: Update the copyright year range that is placed into
13352 generated files.
13353
9600246d
KS
133542019-02-22 Keith Seitz <keiths@redhat.com>
13355
13356 PR symtab/23853
13357 * linespec.c (create_sals_line_offset): Search for the default
13358 symtab's filename instead of its fullname.
13359
7557a514
AH
133602019-02-21 Alan Hayward <alan.hayward@arm.com>
13361
13362 * NEWS: Update style defaults.
13363
ee2bcb0c
AH
133642019-02-21 Alan Hayward <alan.hayward@arm.com>
13365
13366 * main.c (captured_main_1): Disable styling in batch mode.
13367
0c95f9ed
TT
133682019-02-20 Tom Tromey <tom@tromey.com>
13369
13370 * symtab.c (symtab_symbol_info): Fix typos.
13371
c763b894
TT
133722019-02-20 Tom Tromey <tromey@adacore.com>
13373
13374 * findcmd.c (_initialize_mem_search): Use upper case for
13375 metasyntactic variables.
13376
0ef8a082
AH
133772019-02-20 Alan Hayward <alan.hayward@arm.com>
13378
13379 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13380 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13381
6caa91b6
SM
133822019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13383
13384 * top.h (source_file_name): Change to std::string.
13385 * top.c (source_file_name): Likewise.
13386 (command_line_input): Adjust.
13387 * cli/cli-script.c (script_from_file): Adjust.
13388
98814c6c
TT
133892019-02-19 Tom Tromey <tromey@adacore.com>
13390
13391 * ravenscar-thread.c
13392 (ravenscar_thread_target::update_thread_list): Don't call
13393 ada_build_task_list.
13394 * ada-lang.h (ada_build_task_list): Don't declare.
13395 * ada-tasks.c (struct ada_tasks_inferior_data)
13396 <task_list_valid_p>: Now bool.
13397 (read_known_tasks, ada_task_list_changed)
13398 (ada_tasks_invalidate_inferior_data): Update.
13399 (read_known_tasks_array): Return bool.
13400 (read_known_tasks_list): Likewise.
13401 (read_known_tasks): Return void.
13402 (ada_build_task_list): Now static.
13403
70cd633e
AB
134042019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13405
13406 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13407 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13408
040b3e95
PW
134092019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13410
13411 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13412 variant for ada_tasks_pspace_data_handle and
13413 ada_tasks_inferior_data_handle.
13414 (ada_tasks_pspace_data_cleanup): New function.
13415 (ada_tasks_inferior_data_cleanup): New function.
13416
9409233b
TT
134172019-02-17 Tom Tromey <tom@tromey.com>
13418
13419 * macrotab.h (macro_source_fullname): Return a std::string.
13420 * macrotab.c (macro_include, check_for_redefinition)
13421 (macro_undef, macro_lookup_definition, foreach_macro)
13422 (foreach_macro_in_scope): Update.
13423 (macro_source_fullname): Return a std::string.
13424 * macrocmd.c (show_pp_source_pos): Update.
13425
6506371f
TT
134262019-02-17 Tom Tromey <tom@tromey.com>
13427
13428 * macrocmd.c (show_pp_source_pos): Style the file names.
13429
0c820d67
TT
134302019-02-17 Tom Tromey <tom@tromey.com>
13431
13432 PR tui/24197:
13433 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13434
a0087920
TT
134352019-02-17 Tom Tromey <tom@tromey.com>
13436
13437 * ada-lang.c (user_select_syms): Use filtered printing.
13438 * utils.c (wrap_style): New global.
13439 (desired_style): Remove.
13440 (emit_style_escape): Add stream parameter.
13441 (set_output_style, reset_terminal_style, prompt_for_continue):
13442 Update.
13443 (flush_wrap_buffer): Only flush gdb_stdout.
13444 (wrap_here): Set wrap_style.
13445 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13446 treat escape sequences as a character. Change when wrap buffer is
13447 flushed.
13448 (fputs_styled): Do not set the output style when the default is
13449 requested.
13450 * ui-style.h (struct ui_file_style) <is_default>: New method.
13451 * source.c (print_source_lines_base): Emit escape sequences in one
13452 piece.
13453
75ba10dc
JB
134542019-02-17 Joel Brobecker <brobecker@adacore.com>
13455
13456 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13457 integers and enumeration types.
13458
a2cd4f14
JB
134592019-02-17 Joel Brobecker <brobecker@adacore.com>
13460
13461 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13462 instead of lookup_symbol_in_language
13463 (do_exact_match): New function.
13464 (ada_get_symbol_name_matcher): Return do_exact_match when
13465 doing a verbatim match.
13466
485b851b
TT
134672019-02-15 Tom Tromey <tromey@adacore.com>
13468
13469 * ravenscar-thread.c (ravenscar_thread_target::resume)
13470 (ravenscar_thread_target::wait): Special case wildcard requests.
13471
0b790b1e
TT
134722019-02-15 Tom Tromey <tromey@adacore.com>
13473
13474 * ravenscar-thread.c (base_ptid): Remove.
13475 (struct ravenscar_thread_target) <close>: New method.
13476 <m_base_ptid>: New member.
13477 <update_inferior_ptid, active_task, task_is_currently_active,
13478 runtime_initialized>: Declare methods.
13479 <ravenscar_thread_target>: Add constructor.
13480 (ravenscar_thread_target::task_is_currently_active)
13481 (ravenscar_thread_target::update_inferior_ptid)
13482 (ravenscar_runtime_initialized): Rename. Now methods.
13483 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13484 (ravenscar_thread_target::update_thread_list): Update.
13485 (ravenscar_thread_target::active_task): Now method.
13486 (ravenscar_thread_target::store_registers)
13487 (ravenscar_thread_target::prepare_to_store)
13488 (ravenscar_thread_target::prepare_to_store)
13489 (ravenscar_thread_target::mourn_inferior): Update.
13490 (ravenscar_inferior_created): Use "new" to create target.
13491 (ravenscar_thread_target::get_ada_task_ptid): Update.
13492 (_initialize_ravenscar): Don't initialize base_ptid.
13493 (ravenscar_ops): Remove global.
13494
dea57a62
TT
134952019-02-15 Tom Tromey <tromey@adacore.com>
13496
13497 * target.h (push_target): Declare new overload.
13498 * target.c (push_target): New overload, taking an rvalue reference.
13499 * remote.c (remote_target::open_1): Use push_target overload.
13500 * corelow.c (core_target_open): Use push_target overload.
13501
989f3c58
TT
135022019-02-15 Tom Tromey <tromey@adacore.com>
13503
13504 * ravenscar-thread.c (is_ravenscar_task)
13505 (ravenscar_task_is_currently_active): Return bool.
13506 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13507 (_initialize_ravenscar): Remove "(void)".
13508 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13509 Return bool.
13510
6cbcc006
TT
135112019-02-15 Tom Tromey <tromey@adacore.com>
13512
13513 * ravenscar-thread.c (ravenscar_runtime_initializer)
13514 (has_ravenscar_runtime, get_running_thread_id)
13515 (ravenscar_thread_target::resume): Fix indentation.
13516
7657f14d
TT
135172019-02-15 Tom Tromey <tromey@adacore.com>
13518
13519 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13520 from ravenscar_arch_ops.
13521 (sparc_ravenscar_ops::fetch_registers)
13522 (sparc_ravenscar_ops::store_registers): Now methods.
13523 (sparc_ravenscar_prepare_to_store): Remove.
13524 (sparc_ravenscar_ops): Redefine.
13525 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13526 methods and destructor. Remove members.
13527 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13528 (ravenscar_thread_target::store_registers)
13529 (ravenscar_thread_target::prepare_to_store): Update.
13530 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13531 Remove.
13532 (struct ppc_ravenscar_powerpc_ops): Derive from
13533 ravenscar_arch_ops.
13534 (ppc_ravenscar_powerpc_ops::fetch_registers)
13535 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13536 (ppc_ravenscar_powerpc_ops): Redefine.
13537 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13538 (ppc_ravenscar_e500_ops::fetch_registers)
13539 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13540 (ppc_ravenscar_e500_ops): Redefine.
13541 * aarch64-ravenscar-thread.c
13542 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13543 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13544 (aarch64_ravenscar_fetch_registers)
13545 (aarch64_ravenscar_store_registers): Now methods.
13546 (aarch64_ravenscar_ops): Redefine.
13547
5b6ea500
TT
135482019-02-15 Tom Tromey <tromey@adacore.com>
13549
13550 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13551 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13552 (ravenscar_thread_target::stopped_by_watchpoint)
13553 (ravenscar_thread_target::stopped_data_address)
13554 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13555
e397fd39
TT
135562019-02-15 Tom Tromey <tromey@adacore.com>
13557
13558 * ravenscar-thread.c: Fix some typos.
13559
cc12f4a8
TT
135602019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13561 Tom Tromey <tromey@adacore.com>
13562
13563 * ada-lang.c (ada_exception_sal): Change addr_string to a
13564 std::string.
13565 (create_ada_exception_catchpoint): Update.
13566
5f486660
TT
135672019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13568 Tom Tromey <tromey@adacore.com>
13569
13570 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13571 (bp_location_ops): Remove.
13572 (base_breakpoint_allocate_location): Update.
13573 (free_bp_location): Update.
13574 * ada-lang.c (class ada_catchpoint_location)
13575 <ada_catchpoint_location>: Remove ops parameter.
13576 (ada_catchpoint_location_dtor): Remove.
13577 (ada_catchpoint_location_ops): Remove.
13578 (allocate_location_exception): Update.
13579 * breakpoint.h (struct bp_location_ops): Remove.
13580 (class bp_location) <bp_location>: Remove bp_location_ops
13581 parameter.
13582 <~bp_location>: Add destructor.
13583 <ops>: Remove.
13584
b671c7fb
TS
135852019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13586 Pedro Alves <palves@redhat.com>
13587
13588 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13589 'PATH_MAX'.
13590
8071c5ce
DM
135912019-02-14 David Michael <fedora.dm0@gmail.com>
13592 Samuel Thibault <samuel.thibault@gnu.org>
13593 Thomas Schwinge <thomas@codesourcery.com>
13594
13595 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13596 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13597
b1041ae0
TS
135982019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13599
924514e1
TS
13600 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13601 (check_empty): Use "const char *".
13602
c29ee8d4
TS
13603 * gnu-nat.c (gnu_nat_target::detach): Instead of
13604 'detach_inferior (pid)' call
13605 'detach_inferior (find_inferior_pid (pid))'.
13606
6c6ef69f
TS
13607 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13608 'nat/fork-inferior.o'.
13609 * gnu-nat.c: #include "nat/fork-inferior.h".
13610
2d0a338c
TS
13611 * gnu-nat.c (gnu_nat_target::detach): Instead of
13612 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13613 * gnu-nat.h: #include "inf-child.h".
13614 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13615 'i386_gnu_nat_target::fetch_registers'.
13616 (gnu_store_registers): Rename/move to
13617 'i386_gnu_nat_target::store_registers'.
13618
cabb5f06
TS
13619 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13620 * gnu-nat.h (mach_thread_info): New function.
13621 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13622
b1041ae0
TS
13623 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13624
2988d01e
KF
136252019-02-14 Frederic Konrad <konrad@adacore.com>
13626
13627 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13628
c559d709
JB
136292019-02-14 Joel Brobecker <brobecker@adacore.com>
13630
13631 * windows-nat.c (windows_add_thread): Add new parameter
13632 "main_thread_p" with default value set to false. Update
13633 function documentation as well as all callers.
13634 (windows_delete_thread): Likewise.
13635 (fake_create_process): Update call to windows_add_thread.
13636 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13637 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13638 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13639 call to windows_delete_thread.
13640
007024cc
SM
136412019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13642
13643 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13644
f62318e9
JB
136452019-02-12 John Baldwin <jhb@FreeBSD.org>
13646
13647 * symfile.c (find_separate_debug_file): Use canonical path of
13648 sysroot with child_path instead of gdb_sysroot if it is valid.
13649
cd4b7848
JB
136502019-02-12 John Baldwin <jhb@FreeBSD.org>
13651
13652 * symfile.c (find_separate_debug_file): Use child_path to
13653 determine if an object file is under a sysroot.
13654
efac4bfe
JB
136552019-02-12 John Baldwin <jhb@FreeBSD.org>
13656
13657 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13658 unittests/child-path-selftests.c.
13659 * common/pathstuff.c (child_path): New function.
13660 * common/pathstuff.h (child_path): New prototype.
13661 * unittests/child-path-selftests.c: New file.
13662
402d2bfe
JB
136632019-02-12 John Baldwin <jhb@FreeBSD.org>
13664
13665 * symfile.c (find_separate_debug_file): Look for separate debug
13666 files in debug directories under the sysroot.
13667
1ed9f74e
PW
136682019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13669
13670 * symtab.h (struct minimal_symbol data_p): New const method.
13671 (struct minimal_symbol text_p): Likewise.
13672 * symtab.c (output_source_filename): Use file name style
13673 to print file name.
13674 (print_symbol_info): Likewise.
13675 (print_msymbol_info): Use address style to print addresses.
13676 Use function name style to print executable text symbols.
13677 (expand_symtab_containing_pc): Use data_p.
13678 (find_pc_sect_compunit_symtab): Likewise.
13679
2636d81d
PW
136802019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13681
13682 * breakpoint.c (describe_other_breakpoints): Use address style
13683 to print addresses.
13684 (say_where): Likewise.
13685
ac8c53cc
PW
136862019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13687
13688 * ada-typeprint.c (print_func_type): Print function name
13689 style to print function name.
13690 * c-typeprint.c (c_print_type_1): Likewise.
13691
ea638c43
AH
136922019-02-11 Alan Hayward <alan.hayward@arm.com>
13693
13694 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13695 for execve.
13696
ab759ca8
PW
136972019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13698
13699 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13700 type_stack.
13701
aff29d1c
JB
137022019-02-10 Joel Brobecker <brobecker@adacore.com>
13703
13704 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13705 TYPE_CODE_REF types.
13706
617126bc
JW
137072019-02-08 Jim Wilson <jimw@sifive.com>
13708
13709 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13710 (riscv_linux_fregset): New.
13711 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13712
46e3ed7f
TT
137132019-02-07 Tom Tromey <tom@tromey.com>
13714
13715 * thread.c (thread_cancel_execution_command): Update.
13716 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13717 methods.
13718 (struct thread_fsm_ops): Remove.
13719 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13720 (thread_fsm_should_stop, thread_fsm_return_value)
13721 (thread_fsm_set_finished, thread_fsm_finished_p)
13722 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13723 Don't declare.
13724 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13725 * infrun.c (clear_proceed_status_thread)
13726 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13727 (print_stop_event): Update.
13728 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13729 Add constructor.
13730 (step_command_fsm_ops): Remove.
13731 (new_step_command_fsm): Remove.
13732 (step_1): Update.
13733 (step_command_fsm::should_stop): Rename from
13734 step_command_fsm_should_stop.
13735 (step_command_fsm::clean_up): Rename from
13736 step_command_fsm_clean_up.
13737 (step_command_fsm::do_async_reply_reason): Rename from
13738 step_command_fsm_async_reply_reason.
13739 (struct until_next_fsm): Inherit from thread_fsm. Add
13740 constructor.
13741 (until_next_fsm_ops): Remove.
13742 (new_until_next_fsm): Remove.
13743 (until_next_fsm::should_stop): Rename from
13744 until_next_fsm_should_stop.
13745 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13746 (until_next_fsm::do_async_reply_reason): Rename from
13747 until_next_fsm_async_reply_reason.
13748 (struct finish_command_fsm): Inherit from thread_fsm. Add
13749 constructor. Change type of breakpoint.
13750 (finish_command_fsm_ops): Remove.
13751 (new_finish_command_fsm): Remove.
13752 (finish_command_fsm::should_stop): Rename from
13753 finish_command_fsm_should_stop.
13754 (finish_command_fsm::clean_up): Rename from
13755 finish_command_fsm_clean_up.
13756 (finish_command_fsm::return_value): Rename from
13757 finish_command_fsm_return_value.
13758 (finish_command_fsm::do_async_reply_reason): Rename from
13759 finish_command_fsm_async_reply_reason.
13760 (finish_command): Update.
13761 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13762 Add constructor.
13763 (call_thread_fsm_ops): Remove.
13764 (call_thread_fsm::call_thread_fsm): Rename from
13765 new_call_thread_fsm.
13766 (call_thread_fsm::should_stop): Rename from
13767 call_thread_fsm_should_stop.
13768 (call_thread_fsm::should_notify_stop): Rename from
13769 call_thread_fsm_should_notify_stop.
13770 (run_inferior_call, call_function_by_hand_dummy): Update.
13771 * cli/cli-interp.c (should_print_stop_to_console): Update.
13772 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13773 Add constructor. Change type of location_breakpoint,
13774 caller_breakpoint.
13775 (until_break_fsm_ops): Remove.
13776 (new_until_break_fsm): Remove.
13777 (until_break_fsm::should_stop): Rename from
13778 until_break_fsm_should_stop.
13779 (until_break_fsm::clean_up): Rename from
13780 until_break_fsm_clean_up.
13781 (until_break_fsm::do_async_reply_reason): Rename from
13782 until_break_fsm_async_reply_reason.
13783 (until_break_command): Update.
13784 * thread-fsm.c: Remove.
13785 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13786
1a5c2598
TT
137872019-02-07 Tom Tromey <tom@tromey.com>
13788
13789 * yy-remap.h: Add include guard.
13790 * xtensa-tdep.h: Add include guard.
13791 * xcoffread.h: Rename include guard.
13792 * varobj-iter.h: Add include guard.
13793 * tui/tui.h: Rename include guard.
13794 * tui/tui-winsource.h: Rename include guard.
13795 * tui/tui-wingeneral.h: Rename include guard.
13796 * tui/tui-windata.h: Rename include guard.
13797 * tui/tui-win.h: Rename include guard.
13798 * tui/tui-stack.h: Rename include guard.
13799 * tui/tui-source.h: Rename include guard.
13800 * tui/tui-regs.h: Rename include guard.
13801 * tui/tui-out.h: Rename include guard.
13802 * tui/tui-layout.h: Rename include guard.
13803 * tui/tui-io.h: Rename include guard.
13804 * tui/tui-hooks.h: Rename include guard.
13805 * tui/tui-file.h: Rename include guard.
13806 * tui/tui-disasm.h: Rename include guard.
13807 * tui/tui-data.h: Rename include guard.
13808 * tui/tui-command.h: Rename include guard.
13809 * tic6x-tdep.h: Add include guard.
13810 * target/waitstatus.h: Rename include guard.
13811 * target/wait.h: Rename include guard.
13812 * target/target.h: Rename include guard.
13813 * target/resume.h: Rename include guard.
13814 * target-float.h: Rename include guard.
13815 * stabsread.h: Add include guard.
13816 * rs6000-tdep.h: Add include guard.
13817 * riscv-fbsd-tdep.h: Add include guard.
13818 * regformats/regdef.h: Rename include guard.
13819 * record.h: Rename include guard.
13820 * python/python.h: Rename include guard.
13821 * python/python-internal.h: Rename include guard.
13822 * python/py-stopevent.h: Rename include guard.
13823 * python/py-ref.h: Rename include guard.
13824 * python/py-record.h: Rename include guard.
13825 * python/py-record-full.h: Rename include guard.
13826 * python/py-record-btrace.h: Rename include guard.
13827 * python/py-instruction.h: Rename include guard.
13828 * python/py-events.h: Rename include guard.
13829 * python/py-event.h: Rename include guard.
13830 * procfs.h: Add include guard.
13831 * proc-utils.h: Add include guard.
13832 * p-lang.h: Add include guard.
13833 * or1k-tdep.h: Rename include guard.
13834 * observable.h: Rename include guard.
13835 * nto-tdep.h: Rename include guard.
13836 * nat/x86-linux.h: Rename include guard.
13837 * nat/x86-linux-dregs.h: Rename include guard.
13838 * nat/x86-gcc-cpuid.h: Add include guard.
13839 * nat/x86-dregs.h: Rename include guard.
13840 * nat/x86-cpuid.h: Rename include guard.
13841 * nat/ppc-linux.h: Rename include guard.
13842 * nat/mips-linux-watch.h: Rename include guard.
13843 * nat/linux-waitpid.h: Rename include guard.
13844 * nat/linux-ptrace.h: Rename include guard.
13845 * nat/linux-procfs.h: Rename include guard.
13846 * nat/linux-osdata.h: Rename include guard.
13847 * nat/linux-nat.h: Rename include guard.
13848 * nat/linux-namespaces.h: Rename include guard.
13849 * nat/linux-btrace.h: Rename include guard.
13850 * nat/glibc_thread_db.h: Rename include guard.
13851 * nat/gdb_thread_db.h: Rename include guard.
13852 * nat/gdb_ptrace.h: Rename include guard.
13853 * nat/fork-inferior.h: Rename include guard.
13854 * nat/amd64-linux-siginfo.h: Rename include guard.
13855 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13856 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13857 * nat/aarch64-linux.h: Rename include guard.
13858 * nat/aarch64-linux-hw-point.h: Rename include guard.
13859 * mn10300-tdep.h: Add include guard.
13860 * mips-linux-tdep.h: Add include guard.
13861 * mi/mi-parse.h: Rename include guard.
13862 * mi/mi-out.h: Rename include guard.
13863 * mi/mi-main.h: Rename include guard.
13864 * mi/mi-interp.h: Rename include guard.
13865 * mi/mi-getopt.h: Rename include guard.
13866 * mi/mi-console.h: Rename include guard.
13867 * mi/mi-common.h: Rename include guard.
13868 * mi/mi-cmds.h: Rename include guard.
13869 * mi/mi-cmd-break.h: Rename include guard.
13870 * m2-lang.h: Add include guard.
13871 * location.h: Rename include guard.
13872 * linux-record.h: Rename include guard.
13873 * linux-nat.h: Add include guard.
13874 * linux-fork.h: Add include guard.
13875 * i386-darwin-tdep.h: Rename include guard.
13876 * hppa-linux-offsets.h: Add include guard.
13877 * guile/guile.h: Rename include guard.
13878 * guile/guile-internal.h: Rename include guard.
13879 * gnu-nat.h: Rename include guard.
13880 * gdb-stabs.h: Rename include guard.
13881 * frv-tdep.h: Add include guard.
13882 * f-lang.h: Add include guard.
13883 * event-loop.h: Add include guard.
13884 * darwin-nat.h: Rename include guard.
13885 * cp-abi.h: Rename include guard.
13886 * config/sparc/nm-sol2.h: Rename include guard.
13887 * config/nm-nto.h: Rename include guard.
13888 * config/nm-linux.h: Add include guard.
13889 * config/i386/nm-i386gnu.h: Rename include guard.
13890 * config/djgpp/nl_types.h: Rename include guard.
13891 * config/djgpp/langinfo.h: Rename include guard.
13892 * compile/gcc-cp-plugin.h: Add include guard.
13893 * compile/gcc-c-plugin.h: Add include guard.
13894 * compile/compile.h: Rename include guard.
13895 * compile/compile-object-run.h: Rename include guard.
13896 * compile/compile-object-load.h: Rename include guard.
13897 * compile/compile-internal.h: Rename include guard.
13898 * compile/compile-cplus.h: Rename include guard.
13899 * compile/compile-c.h: Rename include guard.
13900 * common/xml-utils.h: Rename include guard.
13901 * common/x86-xstate.h: Rename include guard.
13902 * common/version.h: Rename include guard.
13903 * common/vec.h: Rename include guard.
13904 * common/tdesc.h: Rename include guard.
13905 * common/selftest.h: Rename include guard.
13906 * common/scoped_restore.h: Rename include guard.
13907 * common/scoped_mmap.h: Rename include guard.
13908 * common/scoped_fd.h: Rename include guard.
13909 * common/safe-iterator.h: Rename include guard.
13910 * common/run-time-clock.h: Rename include guard.
13911 * common/refcounted-object.h: Rename include guard.
13912 * common/queue.h: Rename include guard.
13913 * common/ptid.h: Rename include guard.
13914 * common/print-utils.h: Rename include guard.
13915 * common/preprocessor.h: Rename include guard.
13916 * common/pathstuff.h: Rename include guard.
13917 * common/observable.h: Rename include guard.
13918 * common/netstuff.h: Rename include guard.
13919 * common/job-control.h: Rename include guard.
13920 * common/host-defs.h: Rename include guard.
13921 * common/gdb_wait.h: Rename include guard.
13922 * common/gdb_vecs.h: Rename include guard.
13923 * common/gdb_unlinker.h: Rename include guard.
13924 * common/gdb_unique_ptr.h: Rename include guard.
13925 * common/gdb_tilde_expand.h: Rename include guard.
13926 * common/gdb_sys_time.h: Rename include guard.
13927 * common/gdb_string_view.h: Rename include guard.
13928 * common/gdb_splay_tree.h: Rename include guard.
13929 * common/gdb_setjmp.h: Rename include guard.
13930 * common/gdb_ref_ptr.h: Rename include guard.
13931 * common/gdb_optional.h: Rename include guard.
13932 * common/gdb_locale.h: Rename include guard.
13933 * common/gdb_assert.h: Rename include guard.
13934 * common/filtered-iterator.h: Rename include guard.
13935 * common/filestuff.h: Rename include guard.
13936 * common/fileio.h: Rename include guard.
13937 * common/environ.h: Rename include guard.
13938 * common/common-utils.h: Rename include guard.
13939 * common/common-types.h: Rename include guard.
13940 * common/common-regcache.h: Rename include guard.
13941 * common/common-inferior.h: Rename include guard.
13942 * common/common-gdbthread.h: Rename include guard.
13943 * common/common-exceptions.h: Rename include guard.
13944 * common/common-defs.h: Rename include guard.
13945 * common/common-debug.h: Rename include guard.
13946 * common/cleanups.h: Rename include guard.
13947 * common/buffer.h: Rename include guard.
13948 * common/btrace-common.h: Rename include guard.
13949 * common/break-common.h: Rename include guard.
13950 * cli/cli-utils.h: Rename include guard.
13951 * cli/cli-style.h: Rename include guard.
13952 * cli/cli-setshow.h: Rename include guard.
13953 * cli/cli-script.h: Rename include guard.
13954 * cli/cli-interp.h: Rename include guard.
13955 * cli/cli-decode.h: Rename include guard.
13956 * cli/cli-cmds.h: Rename include guard.
13957 * charset-list.h: Add include guard.
13958 * buildsym-legacy.h: Rename include guard.
13959 * bfin-tdep.h: Add include guard.
13960 * ax.h: Rename include guard.
13961 * arm-linux-tdep.h: Add include guard.
13962 * arm-fbsd-tdep.h: Add include guard.
13963 * arch/xtensa.h: Rename include guard.
13964 * arch/tic6x.h: Add include guard.
13965 * arch/i386.h: Add include guard.
13966 * arch/arm.h: Rename include guard.
13967 * arch/arm-linux.h: Rename include guard.
13968 * arch/arm-get-next-pcs.h: Rename include guard.
13969 * arch/amd64.h: Add include guard.
13970 * arch/aarch64-insn.h: Rename include guard.
13971 * arch-utils.h: Rename include guard.
13972 * annotate.h: Add include guard.
13973 * amd64-darwin-tdep.h: Rename include guard.
13974 * aarch64-linux-tdep.h: Add include guard.
13975 * aarch64-fbsd-tdep.h: Add include guard.
13976 * aarch32-linux-nat.h: Add include guard.
13977
ab9268d2
PW
139782019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13979
13980 * macrotab.c (macro_define_internal): New function that
13981 factorizes macro_define_object_internal and macro_define_function
13982 code.
13983 (macro_define_object_internal): Use macro_define_internal.
13984 (macro_define_function): Likewise.
13985
bb0da2b4
PW
139862019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13987
13988 * macrocmd.c (extract_identifier): Return
13989 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13990 callers.
13991
424eb552
JB
139922019-02-06 John Baldwin <jhb@FreeBSD.org>
13993
13994 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13995
1688cb29
TT
139962019-02-05 Tom Tromey <tom@tromey.com>
13997
13998 * target.c (target_stack::unpush): Move assertion earlier.
13999
b5eba2d8
TT
140002019-01-30 Tom Tromey <tom@tromey.com>
14001
14002 PR python/23615:
14003 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14004 (gdbpy_parse_and_eval): Likewise.
14005 * python/python-internal.h (gdbpy_allow_threads): New class.
14006
7054e2ff
JB
140072019-01-28 John Baldwin <jhb@FreeBSD.org>
14008
14009 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14010 (aarch64_fbsd_fpregmap): Move earlier.
14011 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14012 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14013 instead of individual calls to trad_frame_set_reg_addr.
14014 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14015 earlier.
14016 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14017 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14018 instead of individual calls to trad_frame_set_reg_addr.
14019
36c25ffa
AH
140202019-01-28 Alan Hayward <alan.hayward@arm.com>
14021
14022 * CONTRIBUTE: Replace contribution list with wiki link.
14023
a0707f3c
TT
140242019-01-25 Tom Tromey <tom@tromey.com>
14025
14026 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14027
0747795c
TT
140282019-01-25 Tom Tromey <tom@tromey.com>
14029
14030 * xtensa-linux-nat.c: Fix common/ includes.
14031 * xml-support.h: Fix common/ includes.
14032 * xml-support.c: Fix common/ includes.
14033 * x86-linux-nat.c: Fix common/ includes.
14034 * windows-nat.c: Fix common/ includes.
14035 * varobj.h: Fix common/ includes.
14036 * varobj.c: Fix common/ includes.
14037 * value.c: Fix common/ includes.
14038 * valops.c: Fix common/ includes.
14039 * utils.c: Fix common/ includes.
14040 * unittests/xml-utils-selftests.c: Fix common/ includes.
14041 * unittests/utils-selftests.c: Fix common/ includes.
14042 * unittests/unpack-selftests.c: Fix common/ includes.
14043 * unittests/tracepoint-selftests.c: Fix common/ includes.
14044 * unittests/style-selftests.c: Fix common/ includes.
14045 * unittests/string_view-selftests.c: Fix common/ includes.
14046 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14047 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14048 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14049 * unittests/rsp-low-selftests.c: Fix common/ includes.
14050 * unittests/parse-connection-spec-selftests.c: Fix common/
14051 includes.
14052 * unittests/optional-selftests.c: Fix common/ includes.
14053 * unittests/offset-type-selftests.c: Fix common/ includes.
14054 * unittests/observable-selftests.c: Fix common/ includes.
14055 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14056 * unittests/memrange-selftests.c: Fix common/ includes.
14057 * unittests/memory-map-selftests.c: Fix common/ includes.
14058 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14059 * unittests/function-view-selftests.c: Fix common/ includes.
14060 * unittests/environ-selftests.c: Fix common/ includes.
14061 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14062 * unittests/common-utils-selftests.c: Fix common/ includes.
14063 * unittests/cli-utils-selftests.c: Fix common/ includes.
14064 * unittests/array-view-selftests.c: Fix common/ includes.
14065 * ui-file.c: Fix common/ includes.
14066 * tui/tui-io.c: Fix common/ includes.
14067 * tracepoint.h: Fix common/ includes.
14068 * tracepoint.c: Fix common/ includes.
14069 * tracefile-tfile.c: Fix common/ includes.
14070 * top.h: Fix common/ includes.
14071 * top.c: Fix common/ includes.
14072 * thread.c: Fix common/ includes.
14073 * target/waitstatus.h: Fix common/ includes.
14074 * target/waitstatus.c: Fix common/ includes.
14075 * target.h: Fix common/ includes.
14076 * target.c: Fix common/ includes.
14077 * target-memory.c: Fix common/ includes.
14078 * target-descriptions.c: Fix common/ includes.
14079 * symtab.h: Fix common/ includes.
14080 * symfile.c: Fix common/ includes.
14081 * stap-probe.c: Fix common/ includes.
14082 * spu-linux-nat.c: Fix common/ includes.
14083 * sparc-nat.c: Fix common/ includes.
14084 * source.c: Fix common/ includes.
14085 * solib.c: Fix common/ includes.
14086 * solib-target.c: Fix common/ includes.
14087 * ser-unix.c: Fix common/ includes.
14088 * ser-tcp.c: Fix common/ includes.
14089 * ser-pipe.c: Fix common/ includes.
14090 * ser-base.c: Fix common/ includes.
14091 * selftest-arch.c: Fix common/ includes.
14092 * s12z-tdep.c: Fix common/ includes.
14093 * rust-exp.y: Fix common/ includes.
14094 * rs6000-aix-tdep.c: Fix common/ includes.
14095 * riscv-tdep.c: Fix common/ includes.
14096 * remote.c: Fix common/ includes.
14097 * remote-notif.h: Fix common/ includes.
14098 * remote-fileio.h: Fix common/ includes.
14099 * remote-fileio.c: Fix common/ includes.
14100 * regcache.h: Fix common/ includes.
14101 * regcache.c: Fix common/ includes.
14102 * record-btrace.c: Fix common/ includes.
14103 * python/python.c: Fix common/ includes.
14104 * python/py-type.c: Fix common/ includes.
14105 * python/py-inferior.c: Fix common/ includes.
14106 * progspace.h: Fix common/ includes.
14107 * producer.c: Fix common/ includes.
14108 * procfs.c: Fix common/ includes.
14109 * proc-api.c: Fix common/ includes.
14110 * printcmd.c: Fix common/ includes.
14111 * ppc-linux-nat.c: Fix common/ includes.
14112 * parser-defs.h: Fix common/ includes.
14113 * osdata.c: Fix common/ includes.
14114 * obsd-nat.c: Fix common/ includes.
14115 * nat/x86-linux.c: Fix common/ includes.
14116 * nat/x86-linux-dregs.c: Fix common/ includes.
14117 * nat/x86-dregs.h: Fix common/ includes.
14118 * nat/x86-dregs.c: Fix common/ includes.
14119 * nat/ppc-linux.c: Fix common/ includes.
14120 * nat/mips-linux-watch.h: Fix common/ includes.
14121 * nat/mips-linux-watch.c: Fix common/ includes.
14122 * nat/linux-waitpid.c: Fix common/ includes.
14123 * nat/linux-ptrace.h: Fix common/ includes.
14124 * nat/linux-ptrace.c: Fix common/ includes.
14125 * nat/linux-procfs.c: Fix common/ includes.
14126 * nat/linux-personality.c: Fix common/ includes.
14127 * nat/linux-osdata.c: Fix common/ includes.
14128 * nat/linux-namespaces.c: Fix common/ includes.
14129 * nat/linux-btrace.h: Fix common/ includes.
14130 * nat/linux-btrace.c: Fix common/ includes.
14131 * nat/fork-inferior.c: Fix common/ includes.
14132 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14133 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14134 * nat/aarch64-linux.c: Fix common/ includes.
14135 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14136 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14137 * namespace.h: Fix common/ includes.
14138 * mips-linux-tdep.c: Fix common/ includes.
14139 * minsyms.c: Fix common/ includes.
14140 * mi/mi-parse.h: Fix common/ includes.
14141 * mi/mi-main.c: Fix common/ includes.
14142 * mi/mi-cmd-env.c: Fix common/ includes.
14143 * memrange.h: Fix common/ includes.
14144 * memattr.c: Fix common/ includes.
14145 * maint.h: Fix common/ includes.
14146 * maint.c: Fix common/ includes.
14147 * main.c: Fix common/ includes.
14148 * machoread.c: Fix common/ includes.
14149 * location.c: Fix common/ includes.
14150 * linux-thread-db.c: Fix common/ includes.
14151 * linux-nat.c: Fix common/ includes.
14152 * linux-fork.c: Fix common/ includes.
14153 * inline-frame.c: Fix common/ includes.
14154 * infrun.c: Fix common/ includes.
14155 * inflow.c: Fix common/ includes.
14156 * inferior.h: Fix common/ includes.
14157 * inferior.c: Fix common/ includes.
14158 * infcmd.c: Fix common/ includes.
14159 * inf-ptrace.c: Fix common/ includes.
14160 * inf-child.c: Fix common/ includes.
14161 * ia64-linux-nat.c: Fix common/ includes.
14162 * i387-tdep.c: Fix common/ includes.
14163 * i386-tdep.c: Fix common/ includes.
14164 * i386-linux-tdep.c: Fix common/ includes.
14165 * i386-linux-nat.c: Fix common/ includes.
14166 * i386-go32-tdep.c: Fix common/ includes.
14167 * i386-fbsd-tdep.c: Fix common/ includes.
14168 * i386-fbsd-nat.c: Fix common/ includes.
14169 * guile/scm-type.c: Fix common/ includes.
14170 * guile/guile.c: Fix common/ includes.
14171 * go32-nat.c: Fix common/ includes.
14172 * gnu-nat.c: Fix common/ includes.
14173 * gdbthread.h: Fix common/ includes.
14174 * gdbarch-selftests.c: Fix common/ includes.
14175 * gdb_usleep.c: Fix common/ includes.
14176 * gdb_select.h: Fix common/ includes.
14177 * gdb_bfd.c: Fix common/ includes.
14178 * gcore.c: Fix common/ includes.
14179 * fork-child.c: Fix common/ includes.
14180 * findvar.c: Fix common/ includes.
14181 * fbsd-nat.c: Fix common/ includes.
14182 * event-top.c: Fix common/ includes.
14183 * event-loop.c: Fix common/ includes.
14184 * dwarf2read.c: Fix common/ includes.
14185 * dwarf2loc.c: Fix common/ includes.
14186 * dwarf2-frame.c: Fix common/ includes.
14187 * dwarf-index-cache.c: Fix common/ includes.
14188 * dtrace-probe.c: Fix common/ includes.
14189 * disasm-selftests.c: Fix common/ includes.
14190 * defs.h: Fix common/ includes.
14191 * csky-tdep.c: Fix common/ includes.
14192 * cp-valprint.c: Fix common/ includes.
14193 * cp-support.h: Fix common/ includes.
14194 * cp-support.c: Fix common/ includes.
14195 * corelow.c: Fix common/ includes.
14196 * completer.h: Fix common/ includes.
14197 * completer.c: Fix common/ includes.
14198 * compile/compile.c: Fix common/ includes.
14199 * compile/compile-loc2c.c: Fix common/ includes.
14200 * compile/compile-cplus-types.c: Fix common/ includes.
14201 * compile/compile-cplus-symbols.c: Fix common/ includes.
14202 * command.h: Fix common/ includes.
14203 * cli/cli-dump.c: Fix common/ includes.
14204 * cli/cli-cmds.c: Fix common/ includes.
14205 * charset.c: Fix common/ includes.
14206 * build-id.c: Fix common/ includes.
14207 * btrace.h: Fix common/ includes.
14208 * btrace.c: Fix common/ includes.
14209 * breakpoint.h: Fix common/ includes.
14210 * breakpoint.c: Fix common/ includes.
14211 * ax.h:
14212 (enum agent_op): Fix common/ includes.
14213 * ax-general.c (struct aop_map): Fix common/ includes.
14214 * ax-gdb.c: Fix common/ includes.
14215 * auxv.c: Fix common/ includes.
14216 * auto-load.c: Fix common/ includes.
14217 * arm-tdep.c: Fix common/ includes.
14218 * arch/riscv.c: Fix common/ includes.
14219 * arch/ppc-linux-common.c: Fix common/ includes.
14220 * arch/i386.c: Fix common/ includes.
14221 * arch/arm.c: Fix common/ includes.
14222 * arch/arm-linux.c: Fix common/ includes.
14223 * arch/arm-get-next-pcs.c: Fix common/ includes.
14224 * arch/amd64.c: Fix common/ includes.
14225 * arch/aarch64.c: Fix common/ includes.
14226 * arch/aarch64-insn.c: Fix common/ includes.
14227 * arch-utils.c: Fix common/ includes.
14228 * amd64-windows-tdep.c: Fix common/ includes.
14229 * amd64-tdep.c: Fix common/ includes.
14230 * amd64-sol2-tdep.c: Fix common/ includes.
14231 * amd64-obsd-tdep.c: Fix common/ includes.
14232 * amd64-nbsd-tdep.c: Fix common/ includes.
14233 * amd64-linux-tdep.c: Fix common/ includes.
14234 * amd64-linux-nat.c: Fix common/ includes.
14235 * amd64-fbsd-tdep.c: Fix common/ includes.
14236 * amd64-fbsd-nat.c: Fix common/ includes.
14237 * amd64-dicos-tdep.c: Fix common/ includes.
14238 * amd64-darwin-tdep.c: Fix common/ includes.
14239 * agent.c: Fix common/ includes.
14240 * ada-lang.h: Fix common/ includes.
14241 * ada-lang.c: Fix common/ includes.
14242 * aarch64-tdep.c: Fix common/ includes.
14243
2f5c153e
TT
142442019-01-25 Tom Tromey <tom@tromey.com>
14245
14246 * common/create-version.sh: Use common/version.h.
14247
adc6a863
PA
142482019-01-24 Pedro Alves <palves@redhat.com>
14249
14250 * infrun.c (signal_stop, signal_print, signal_program)
14251 (signal_catch, signal_pass): Now arrays instead of pointers.
14252 (update_signals_program_target, do_target_resume)
14253 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14254 * linux-nat.c (linux_nat_target::pass_signals)
14255 (linux_nat_target::create_inferior, linux_nat_target::attach):
14256 Adjust.
14257 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14258 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14259 * procfs.c (procfs_target::pass_signals): Adjust.
14260 * record-full.c (record_full_target::resume): Adjust.
14261 * remote.c (remote_target::pass_signals)
14262 (remote_target::program_signals): Adjust.
14263 * target-debug.h (target_debug_print_signals): Now takes a
14264 gdb::array_view as parameter. Adjust.
14265 * target.h (target_ops) <pass_signals, program_signals>: Replace
14266 pointer and length parameters with gdb::array_view.
14267 (target_pass_signals, target_program_signals): Likewise.
14268 * target-delegates.c: Regenerate.
14269
3046d67a
PA
142702019-01-24 Pedro Alves <palves@redhat.com>
14271
14272 * common/forward-scope-exit.h
14273 (forward_scope_exit::forward_scope_exit): Pass arguments to
14274 m_bind_function directly, instead of creating a std::bind and
14275 copying that.
14276
353229bf
AH
142772019-01-24 Alan Hayward <alan.hayward@arm.com>
14278
14279 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14280 for static members.
14281 (pass_in_v_vfp_candidate): Likewise.
14282
311dc83a
TT
142832019-01-23 Tom Tromey <tom@tromey.com>
14284 Pedro Alves <palves@redhat.com>
14285
14286 * regcache.c (class regcache_invalidator): Remove.
14287 (regcache::raw_write): Use make_scope_exit.
14288
296bd123
TT
142892019-01-23 Tom Tromey <tom@tromey.com>
14290
14291 * ui-out.h (class ui_out_emit_type): Update comment.
14292
979a0d13
TT
142932019-01-23 Tom Tromey <tom@tromey.com>
14294
14295 * infrun.c (fetch_inferior_event): Update comment.
14296
d238133d
TT
142972019-01-23 Tom Tromey <tom@tromey.com>
14298 Pedro Alves <palves@redhat.com>
14299
14300 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14301 parameter.
14302 (fetch_inferior_event): Use SCOPE_EXIT.
14303
14304
9885e6bb
TT
143052019-01-23 Tom Tromey <tom@tromey.com>
14306 Pedro Alves <palves@redhat.com>
14307
14308 * infrun.c (disable_thread_events): Delete.
14309 (stop_all_threads): Use SCOPE_EXIT.
14310
286526c1
TT
143112019-01-23 Tom Tromey <tom@tromey.com>
14312 Pedro Alves <palves@redhat.com>
14313
14314 * symfile.c: Include forward-scope-exit.h.
14315 (clear_symtab_users_cleanup): Replace forward declaration with
14316 a FORWARD_SCOPE_EXIT.
14317 (syms_from_objfile_1): Use the forward_scope_exit and
14318 gdb::optional instead of cleanup_function.
14319 (reread_symbols): Use the forward_scope_exit instead of
14320 cleanup_function.
14321 (clear_symtab_users_cleanup): Remove function.
14322
1db93f14
TT
143232019-01-23 Tom Tromey <tom@tromey.com>
14324 Pedro Alves <palves@redhat.com>
14325
14326 * linux-nat.c: Include scope-exit.h.
14327 (cleanup_target_stop): Remove.
14328 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14329 SCOPE_EXIT.
14330
2cc83d1e
TT
143312019-01-23 Tom Tromey <tom@tromey.com>
14332 Pedro Alves <palves@redhat.com>
14333
14334 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14335 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14336
694c6bf5
TT
143372019-01-23 Tom Tromey <tom@tromey.com>
14338 Andrew Burgess <andrew.burgess@embecosm.com>
14339 Pedro Alves <palves@redhat.com>
14340
14341 * infrun.c (fetch_inferior_event): Use scope_exit.
14342 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14343 * top.c (execute_command): Use scope_exit.
14344 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14345 * utils.c (do_bpstat_clear_actions_cleanup)
14346 (make_bpstat_clear_actions_cleanup): Remove.
14347
4c41382a
TT
143482019-01-23 Tom Tromey <tom@tromey.com>
14349 Pedro Alves <palves@redhat.com>
14350
14351 * infrun.c: Include "common/scope-exit.h"
14352 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14353 (wait_for_inferior): Use SCOPE_EXIT.
14354 (fetch_inferior_event): Use scope_exit.
14355
89f8fb50
TT
143562019-01-23 Tom Tromey <tom@tromey.com>
14357 Pedro Alves <palves@redhat.com>
14358
14359 * breakpoint.c (create_breakpoint): Remove cleanup.
14360
5419bdae
TT
143612019-01-23 Tom Tromey <tom@tromey.com>
14362 Andrew Burgess <andrew.burgess@embecosm.com>
14363 Pedro Alves <palves@redhat.com>
14364
e587ef42
PA
143652019-01-23 Pedro Alves <palves@redhat.com>
14366
14367 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14368
77f0e74c
PA
143692019-01-23 Pedro Alves <palves@redhat.com>
14370 Andrew Burgess <andrew.burgess@embecosm.com>
14371
14372 * gdbthread.h: Include "common/forward-scope-exit.h".
14373 (scoped_finish_thread_state): Redefine custom class in terms of
14374 forward_scope_exit.
14375
5b9b3e53
PA
143762019-01-23 Pedro Alves <palves@redhat.com>
14377 Andrew Burgess <andrew.burgess@embecosm.com>
14378
14379 * common/forward-scope-exit.h: New file.
14380
54b65c9b
PA
143812019-01-23 Pedro Alves <palves@redhat.com>
14382 Andrew Burgess <andrew.burgess@embecosm.com>
14383 Tom Tromey <tom@tromey.com>
14384
14385 * common/scope-exit.h: New file.
14386
cf08fb29
PA
143872019-01-23 Pedro Alves <palves@redhat.com>
14388
14389 * common/preprocessor.h (ESC): Rename to ...
14390 (ESC_PARENS): ... this.
14391 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14392 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14393
ae73e2e2
TT
143942019-01-23 Tom Tromey <tom@tromey.com>
14395
14396 * language.h (class scoped_switch_to_sym_language_if_auto):
14397 Initialize m_lang in both cases.
14398
6594e122
AH
143992019-01-23 Alan Hayward <alan.hayward@arm.com>
14400
14401 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14402 with XCNEW.
14403
a7c9855d
TT
144042019-01-22 Tom Tromey <tom@tromey.com>
14405
14406 * corelow.c: Do not include sys/file.h.
14407
93cc1d53
TT
144082019-01-22 Tom Tromey <tom@tromey.com>
14409
14410 * tui/tui-wingeneral.h: Include gdb_curses.h.
14411
38561778
TT
144122019-01-22 Tom Tromey <tom@tromey.com>
14413
14414 * source-cache.h (class source_cache) <get_source_lines,
14415 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14416
37b3ab5b
TT
144172019-01-22 Tom Tromey <tom@tromey.com>
14418
14419 * remote-fileio.h (struct remote_target): Declare.
14420
3fabc016
TT
144212019-01-22 Tom Tromey <tom@tromey.com>
14422
14423 * python/py-arch.c: Do not include py-ref.h.
14424 * python/py-bpevent.c: Do not include py-ref.h.
14425 * python/py-cmd.c: Do not include py-ref.h.
14426 * python/py-continueevent.c: Do not include py-ref.h.
14427 * python/py-event.h: Do not include py-ref.h.
14428 * python/py-evtregistry.c: Do not include py-ref.h.
14429 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14430 * python/py-frame.c: Do not include py-ref.h.
14431 * python/py-framefilter.c: Do not include py-ref.h.
14432 * python/py-function.c: Do not include py-ref.h.
14433 * python/py-infevents.c: Do not include py-ref.h.
14434 * python/py-linetable.c: Do not include py-ref.h.
14435 * python/py-objfile.c: Do not include py-ref.h.
14436 * python/py-param.c: Do not include py-ref.h.
14437 * python/py-prettyprint.c: Do not include py-ref.h.
14438 * python/py-progspace.c: Do not include py-ref.h.
14439 * python/py-symbol.c: Do not include py-ref.h.
14440 * python/py-symtab.c: Do not include py-ref.h.
14441 * python/py-type.c: Do not include py-ref.h.
14442 * python/py-unwind.c: Do not include py-ref.h.
14443 * python/py-utils.c: Do not include py-ref.h.
14444 * python/py-value.c: Do not include py-ref.h.
14445 * python/py-varobj.c: Do not include py-ref.h.
14446 * python/py-xmethods.c: Do not include py-ref.h.
14447 * python/python.c: Do not include py-ref.h.
14448 * varobj.c: Do not include py-ref.h.
14449
6b4d7774
TT
144502019-01-22 Tom Tromey <tom@tromey.com>
14451
14452 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14453 keyword for bcache.
14454
7af7e9b5
TT
144552019-01-22 Tom Tromey <tom@tromey.com>
14456
14457 * compile/compile-cplus-types.c: Remove a comment by #include.
14458
951d1049
TT
144592019-01-22 Tom Tromey <tom@tromey.com>
14460
14461 * compile/gcc-c-plugin.h: Include compile-internal.h.
14462
d65d5705
TT
144632019-01-22 Tom Tromey <tom@tromey.com>
14464
14465 * stabsread.c (EXTERN): Do not define.
14466 (symnum, next_symbol_text_func, processing_gcc_compilation)
14467 (within_function, global_sym_chain, global_stabs)
14468 (previous_stab_code, this_object_header_files)
14469 (n_this_object_header_files)
14470 (n_allocated_this_object_header_files): Define.
14471 * stabsread.h (EXTERN): Never define. Use "extern".
14472
b6fb1ee5
PW
144732019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14474
14475 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14476 history_value.
14477
be6d4f74
TT
144782019-01-21 Tom Tromey <tom@tromey.com>
14479
14480 * ui-out.c: Fix includes.
14481 * tui/tui-source.c: Fix includes.
14482 * target.c: Fix includes.
14483 * remote.c: Fix includes.
14484 * regcache.c: Fix includes.
14485 * python/py-block.c: Fix includes.
14486 * printcmd.c: Fix includes.
14487 * or1k-tdep.c: Fix includes.
14488 * mi/mi-main.c: Fix includes.
14489 * m32r-tdep.c: Fix includes.
14490 * csky-tdep.c: Fix includes.
14491 * compile/compile-cplus-types.c: Fix includes.
14492 * cli/cli-interp.c: Fix includes.
14493
73021deb
AH
144942019-01-21 Alan Hayward <alan.hayward@arm.com>
14495
14496 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14497 for padding.
14498
7932255d
TT
144992019-01-16 Tom Tromey <tom@tromey.com>
14500
14501 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14502 earlier.
14503 (struct objfile) <msymbols_range>: Move from top level.
14504 <msymbols>: New method.
14505 (class objfile_msymbols): Remove.
14506 * symtab.c (default_collect_symbol_completion_matches_break_on):
14507 Update.
14508 * symmisc.c (dump_msymbols): Update.
14509 * stabsread.c (scan_file_globals): Update.
14510 * objc-lang.c (info_selectors_command, info_classes_command)
14511 (find_methods): Update.
14512 * minsyms.c (find_solib_trampoline_target): Update.
14513 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14514 * coffread.c (coff_symfile_read): Update.
14515 * ada-lang.c (ada_lookup_simple_minsym)
14516 (ada_collect_symbol_completion_matches): Update.
14517
604b1bfb
TT
145182019-01-16 Tom Tromey <tom@tromey.com>
14519
14520 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14521 type. Remove no-argument constructor.
14522 <iterator::operator++>: Simplify.
14523 <begin>: Update.
14524 <end>: Use minimal_symbol_count.
14525
f252c6d5
TT
145262019-01-16 Tom Tromey <tom@tromey.com>
14527
14528 * objfiles.h (struct objfile) <psymtabs>: New method.
14529 (class objfile_psymtabs): Remove.
14530 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14531 typedef.
14532 <range>: New method.
14533 (require_partial_symbols): Change return type.
14534 * psymtab.c (require_partial_symbols)
14535 (psym_expand_symtabs_matching): Update.
14536 * mdebugread.c (parse_partial_symbols): Update.
14537 * dbxread.c (dbx_end_psymtab): Update.
14538
b669c953
TT
145392019-01-15 Tom Tromey <tom@tromey.com>
14540
14541 * symtab.c (lookup_objfile_from_block)
14542 (lookup_symbol_in_objfile_symtabs)
14543 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14544 (find_line_symtab, info_sources_command)
14545 (default_collect_symbol_completion_matches_break_on)
14546 (make_source_files_completion_list): Update.
14547 * symmisc.c (print_objfile_statistics, dump_objfile)
14548 (maintenance_print_symbols, maintenance_info_symtabs)
14549 (maintenance_check_symtabs, maintenance_info_line_tables):
14550 Update.
14551 * source.c (select_source_symtab)
14552 (forget_cached_source_info_for_objfile): Update.
14553 * objfiles.h (class objfile_compunits): Remove.
14554 (struct objfile) <compunits_range>: New typedef.
14555 (compunits): New method.
14556 * objfiles.c (objfile_relocate1): Update.
14557 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14558 * maint.c (count_symtabs_and_blocks): Update.
14559 * linespec.c (iterate_over_all_matching_symtabs): Update.
14560 * cp-support.c (add_symbol_overload_list_qualified): Update.
14561 * coffread.c (coff_symtab_read): Update.
14562 * ada-lang.c (add_nonlocal_symbols)
14563 (ada_collect_symbol_completion_matches)
14564 (ada_add_global_exceptions): Update.
14565
7e955d83
TT
145662019-01-15 Tom Tromey <tom@tromey.com>
14567
14568 * progspace.h (program_space) <objfiles_safe_range>: New
14569 typedef.
14570 <objfiles_safe>: New method.
14571 * objfiles.h (class all_objfiles_safe): Remove.
14572 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14573 * jit.c (jit_inferior_exit_hook): Update.
14574
2030c079
TT
145752019-01-17 Tom Tromey <tom@tromey.com>
14576
14577 * progspace.h (program_space) <objfiles_range>: New typedef.
14578 <objfiles>: New method.
14579 <objfiles_head>: Rename from objfiles.
14580 (object_files): Update.
14581 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14582 * guile/scm-pretty-print.c
14583 (ppscm_find_pretty_printer_from_objfiles): Update.
14584 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14585 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14586 Update.
14587 * python/py-progspace.c (pspy_get_objfiles): Update.
14588 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14589 Update.
14590 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14591 (objfpy_lookup_objfile_by_build_id): Update.
14592 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14593 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14594 Update.
14595 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14596 (expand_symtab_containing_pc, lookup_objfile_from_block)
14597 (lookup_static_symbol, basic_lookup_transparent_type)
14598 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14599 (find_line_symtab, info_sources_command)
14600 (default_collect_symbol_completion_matches_break_on)
14601 (make_source_files_completion_list, find_main_name): Update.
14602 * symmisc.c (print_symbol_bcache_statistics)
14603 (print_objfile_statistics, maintenance_print_symbols)
14604 (maintenance_print_msymbols, maintenance_print_objfiles)
14605 (maintenance_info_symtabs, maintenance_check_symtabs)
14606 (maintenance_expand_symtabs, maintenance_info_line_tables):
14607 Update.
14608 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14609 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14610 (map_overlay_command, unmap_overlay_command)
14611 (simple_overlay_update, expand_symtabs_matching)
14612 (map_symbol_filenames): Update.
14613 * symfile-debug.c (set_debug_symfile): Update.
14614 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14615 Update.
14616 * source.c (select_source_symtab, forget_cached_source_info):
14617 Update.
14618 * solib.c (solib_read_symbols): Update.
14619 * solib-spu.c (append_ocl_sos): Update.
14620 * psymtab.c (maintenance_print_psymbols)
14621 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14622 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14623 * printcmd.c (info_symbol_command): Update.
14624 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14625 Update.
14626 * objfiles.h (class all_objfiles): Remove.
14627 * objfiles.c (have_partial_symbols, have_full_symbols)
14628 (have_minimal_symbols, qsort_cmp, update_section_map)
14629 (shared_objfile_contains_address_p)
14630 (default_iterate_over_objfiles_in_search_order): Update.
14631 * objc-lang.c (info_selectors_command, info_classes_command)
14632 (find_methods): Update.
14633 * minsyms.c (find_solib_trampoline_target): Update.
14634 * maint.c (maintenance_info_sections)
14635 (maintenance_translate_address, count_symtabs_and_blocks):
14636 Update.
14637 * main.c (captured_main_1): Update.
14638 * linux-thread-db.c (try_thread_db_load_from_pdir)
14639 (has_libpthread): Update.
14640 * linespec.c (iterate_over_all_matching_symtabs)
14641 (search_minsyms_for_name): Update.
14642 * jit.c (jit_find_objf_with_entry_addr): Update.
14643 * hppa-tdep.c (find_unwind_entry)
14644 (hppa_lookup_stub_minimal_symbol): Update.
14645 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14646 Update.
14647 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14648 (elf_gnu_ifunc_resolve_by_got): Update.
14649 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14650 * dwarf-index-write.c (save_gdb_index_command): Update.
14651 * cp-support.c (add_symbol_overload_list_qualified): Update.
14652 * breakpoint.c (create_overlay_event_breakpoint)
14653 (create_longjmp_master_breakpoint)
14654 (create_std_terminate_master_breakpoint)
14655 (create_exception_master_breakpoint): Update.
14656 * blockframe.c (find_pc_partial_function): Update.
14657 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14658 (ada_collect_symbol_completion_matches)
14659 (ada_add_global_exceptions): Update.
14660
776489e0
TT
146612019-01-17 Tom Tromey <tom@tromey.com>
14662
14663 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14664 declare VEC.
14665 (solib_target_parse_libraries): Change return type.
14666 (library_list_start_segment, library_list_start_section)
14667 (library_list_end_library, library_list_start_library); Update.
14668 (solib_target_free_library_list): Remove.
14669 (solib_target_parse_libraries): Remove cleanup. Change return
14670 type.
14671 (solib_target_current_sos): Update.
14672
6471e7d2
TT
146732019-01-17 Tom Tromey <tromey@bapiya>
14674
14675 * valprint.c: Replace "the the" with "the".
14676 * symtab.c: Replace "the the" with "the".
14677 * solib.c: Replace "the the" with "the".
14678 * solib-dsbt.c: Replace "the the" with "the".
14679 * linespec.c: Replace "the the" with "the".
14680 * dwarf2loc.h: Replace "the the" with "the".
14681 * amd64-windows-tdep.c: Replace "the the" with "the".
14682 * aarch64-tdep.c: Replace "the the" with "the".
14683
c24bdb02
KS
146842019-01-16 Keith Seitz <keiths@redhat.com>
14685
14686 PR gdb/23773
14687 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14688 <builder>: Rename to ..
14689 <m_builder>: ... this and make private.
14690 (dwarf2_cu::get_builder): New method. Change all users of
14691 `builder' to use this method.
14692 (dwarf2_start_symtab): Move to ...
14693 (dwarf2_cu::start_symtab): ... here. Update all callers
14694 (setup_type_unit_groups): Move to ...
14695 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14696 callers.
14697 (dwarf2_cu::reset_builder): New method.
14698 (process_full_compunit, process_full_type_unit): Use
14699 dwarf2_cu::reset_builder.
14700 (follow_die_offset): Record the ancestor CU if it is different
14701 from the followed DIE's CU.
14702 (follow_die_sig_1): Likewise.
14703
8d64371b
TT
147042019-01-15 Tom Tromey <tom@tromey.com>
14705
14706 * remote.c (class remote_state) <buf>: Now a char_vector.
14707 <buf_size>: Remove.
14708 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14709 parameter.
14710 (remote_target::getpkt_or_notif_sane_1)
14711 (remote_target::getpkt_sane)
14712 (remote_target::getpkt_or_notif_sane): Likewise.
14713 (class remote_target) <putpkt>: New overload.
14714 (remote_target::read_frame): Change type of "buf_p". Remove
14715 sizeof_p parameter.
14716 (packet_ok): New overload.
14717 (packet_check_result): New overload.
14718 Update all uses.
14719
bb277751
TT
147202019-01-14 Tom Tromey <tom@tromey.com>
14721
14722 * remote-notif.c (handle_notification, remote_notif_ack)
14723 (remote_notif_parse): Make "buf" const.
14724 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14725 const.
14726 (remote_notif_parse, remote_notif_ack, handle_notification):
14727 Likewise.
14728 * remote.c (remote_notif_stop_parse): Make "buf" const.
14729 (remote_target::remote_parse_stop_reply): Make "buf" const.
14730 (remote_notif_stop_ack): Make "buf" const.
14731
05be00a8
TT
147322019-01-14 Tom Tromey <tom@tromey.com>
14733
14734 * remote.c (remote_console_output): Make parameter const.
14735
491adeca
TT
147362019-01-14 Tom Tromey <tom@tromey.com>
14737
14738 * target-debug.h (target_debug_print_signals): Constify.
14739 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14740 * procfs.c (procfs_target::pass_signals): Update.
14741 * linux-nat.c (linux_nat_target::pass_signals): Update.
14742 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14743 * target-delegates.c: Rebuild.
14744 * remote.c (remote_target::program_signals): Update.
14745 (remote_target::pass_signals): Update.
14746 * target.c (target_pass_signals): Constify argument.
14747 (target_program_signals): Likewise.
14748 * target.h (struct target_ops) <pass_signals, program_signals>:
14749 Constify argument.
14750 (target_pass_signals, target_program_signals): Constify argument.
14751
bbd94648
TT
147522019-01-14 Tom Tromey <tom@tromey.com>
14753
14754 PR tui/28819:
14755 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14756
6f072a10
PFC
147572019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14758
14759 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14760 field.
14761 * rs6000-tdep.c: Include reggroups.h.
14762 (IS_V_ALIAS_PSEUDOREG): Define.
14763 (rs6000_register_name): Return names for the "vX" aliases.
14764 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14765 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14766 aliases. Call default_register_reggroup_p for all other
14767 pseudo-registers.
14768 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14769 New functions.
14770 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14771 Handle "vX" aliases.
14772 (v_alias_pseudo_register_collect): New function.
14773 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14774 (rs6000_gdbarch_init): Initialize "vX" aliases as
14775 pseudo-registers. Restore registration of
14776 rs6000_pseudo_register_reggroup_p with
14777 set_tdesc_pseudo_register_reggroup_p.
14778
1a782351
MF
147792019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14780
14781 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14782 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14783 set_gdbarch_num_pseudo_regs.
14784
d73cff18
PW
147852019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14786
14787 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14788 Remove arg prefixname, add do_set and do_show.
14789 Add member functions set_list and show_list.
14790 * cli/cli-style.c (class cli_style_option): Update accordingly.
14791 (style_set_list): Move to file scope.
14792 (style_show_list): Likewise.
14793 (set_style): Call help_list.
14794 (show_style): Call cmd_show_list.
14795 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14796 Update to use the new macro.
14797
60a90376
JB
147982019-10-12 Joel Brobecker <brobecker@adacore.com>
14799
14800 * ada-lang.c (_initialize_ada_language): Expand the help text
14801 for the "catch exception" command.
14802
9d7c67bf
PW
148032019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14804
14805 * symtab.c (matching_obj_sections): Initialize obj,
14806 declare it closer to its usage.
14807
7cf47dc4
TT
148082019-01-10 Tom Tromey <tom@tromey.com>
14809
14810 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14811 (basic_inf_threads_range): Remove.
14812 (inf_threads_range, inf_non_exited_threads_range)
14813 (safe_inf_threads_range): Use next_adapter.
14814
d3cb6808
KS
148152019-01-10 Keith Seitz <keiths@redhat.com>
14816
14817 PR gdb/23712
14818 PR symtab/23010
14819 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14820 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14821
63a20375
KS
148222019-01-10 Keith Seitz <keiths@redhat.com>
14823
14824 PR gdb/23712
14825 PR symtab/23010
14826 * dictionary.c (pending_to_vector): Remove.
14827 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14828 Remove _1 suffix, replacing functions of the same name. Update
14829 all callers.
14830 (dict_create_hashed, dict_create_hashed_expandable)
14831 (dict_create_linear, dict_create_linear_expandable, dict_free)
14832 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14833 Make functions static.
14834
b026f593
KS
148352019-01-10 Keith Seitz <keiths@redhat.com>
14836
14837 PR gdb/23712
14838 PR symtab/23010
14839 * dictionary.h (struct dictionary): Replace declaration with
14840 multidictionary.
14841 (dict_create_hashed, dict_create_hashed_expandable)
14842 (dict_create_linear, dict_create_linear_expandable)
14843 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14844 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14845 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14846 taking multidictionary argument.
14847 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14848 * block.h (struct block) <dict>: Change to multidictionary
14849 and rename `multidict'.
14850 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14851 symmisc.c: Update all dictionary references to multidictionary.
14852
c7748ee9
KS
148532019-01-10 Keith Seitz <keiths@redhat.com>
14854
14855 PR gdb/23712
14856 PR symtab/23010
14857 * dictionary.c: Include unordered_map.
14858 (pending_to_vector): New function.
14859 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14860 Rewrite the non-"_1" functions to take vector instead
14861 of linked list.
14862 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14863 "new" _1 versions of the same name.
14864 (multidictionary): Define.
14865 (std::hash<enum language): New definition.
14866 (collate_pending_symbols_by_language, mdict_create_hashed)
14867 (mdict_create_hashed_expandable, mdict_create_linear)
14868 (mdict_create_linear_expandable, mdict_free)
14869 (find_language_dictionary, create_new_language_dictionary)
14870 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14871 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14872 (mdict_size, mdict_empty): New functions.
14873 * dictionary.h (mdict_iterator): Define.
14874
67aa1f3c
PA
148752019-01-10 Pedro Alves <palves@redhat.com>
14876
14877 * breakpoint.c (read_uploaded_action)
14878 (create_tracepoint_from_upload): Adjust to use
14879 gdb::unique_xmalloc_ptr.
14880 * ctf.c (ctf_write_uploaded_tp):
14881 (SET_ARRAY_FIELD): Use emplace_back.
14882 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14883 * tracefile-tfile.c (tfile_write_uploaded_tp):
14884 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14885 gdb::unique_xmalloc_ptr.
14886 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14887 at_string, cond_string, cmd_strings>: Replace char pointers
14888 with gdb::unique_xmalloc_ptr.
14889
2f667667
PA
148902019-01-10 Pedro Alves <palves@redhat.com>
14891
14892 * solib-target.c (library_list_start_library): Don't xstrdup name.
14893
36cb7237
PA
148942019-01-10 Pedro Alves <palves@redhat.com>
14895
14896 * mdebugread.c (parse_partial_symbols): Use
14897 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14898
da584958
AB
148992019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14900
14901 * linux-fork.c (scoped_switch_fork_info)
14902 <~scoped_switch_fork_info>: Fix incorrect variable name.
14903
1ef8573c
AB
149042019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14905
14906 * linux-fork.c (scoped_switch_fork_info)
14907 <scoped_switch_fork_info>: Make explicit.
14908 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14909
8d7bcccb
TT
149102019-01-10 Tom Tromey <tom@tromey.com>
14911
14912 * objfiles.h (objfile::reset_psymtabs): Update.
14913 * objfiles.c (objfile::objfile): Update.
14914 * psymtab.h (psymtab_storage::obstack): Update.
14915 (psymtab_storage::m_obstack): Use gdb::optional.
14916 (class psymtab_storage): Update comment. Remove objfile
14917 parameter.
14918 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14919
b596a3c7
TT
149202019-01-10 Tom Tromey <tom@tromey.com>
14921
14922 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14923 <free_psymtabs>: Now private.
14924 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14925 (allocate_psymtab): Use new method.
14926
a9342b62
TT
149272019-01-10 Tom Tromey <tom@tromey.com>
14928
14929 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14930 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14931 * mdebugread.c (parse_partial_symbols): Use
14932 allocate_dependencies.
14933 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14934 allocate_dependencies.
14935 (process_psymtab_comp_unit_reader)
14936 (build_type_psymtab_dependencies): Likewise.
14937 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14938
5af70966
TT
149392019-01-10 Tom Tromey <tom@tromey.com>
14940
14941 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14942 PSYMBOL_SET_LANGUAGE.
14943 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14944
5923a04c
TT
149452019-01-10 Tom Tromey <tom@tromey.com>
14946
14947 * psymtab.h (psymtab_storage::obstack): New method.
14948 <m_obstack>: Rename from obstack; now private.
14949 * psymtab.c (psymtab_storage): Update.
14950 * dwarf2read.c (create_addrmap_from_index)
14951 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14952 Update.
14953
6d6a12bf
TT
149542019-01-10 Tom Tromey <tom@tromey.com>
14955
14956 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14957 * objfiles.h (objfile::reset_psymtabs): New method.
14958
d320c2b5
TT
149592019-01-10 Tom Tromey <tom@tromey.com>
14960
14961 * symmisc.c (print_symbol_bcache_statistics): Update.
14962 (print_objfile_statistics): Update.
14963 * symfile.c (reread_symbols): Update.
14964 * psymtab.h (class psymtab_storage): New.
14965 * psymtab.c (psymtab_storage): New constructor.
14966 (~psymtab_storage): New destructor.
14967 (require_partial_symbols): Update.
14968 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14969 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14970 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14971 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14972 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14973 (start_psymtab_common, end_psymtab_common)
14974 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14975 (allocate_psymtab): Update.
14976 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14977 Update.
14978 (dump_psymtab_addrmap, maintenance_print_psymbols)
14979 (maintenance_check_psymtabs): Update.
14980 (class objfile_psymtabs): Move to objfiles.h.
14981 * psympriv.h (discard_psymtab): Now inline.
14982 (psymtab_discarder::psymtab_discarder): Update.
14983 (psymtab_discarder::~psymtab_discarder): Update.
14984 (ALL_OBJFILE_PSYMTABS): Rewrite.
14985 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14986 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14987 Remove fields.
14988 <partial_symtabs>: New field.
14989 (class objfile_psymtabs): Move from psymtab.h. Update.
14990 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14991 psymbol_cache.
14992 (objfile::~objfile): Don't destroy psymbol_cache.
14993 * mdebugread.c (parse_partial_symbols): Update.
14994 * dwarf2read.c (create_addrmap_from_index)
14995 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14996 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14997 (add_partial_subprogram, dwarf2_ranges_read): Update.
14998 * dwarf-index-write.c (write_address_map)
14999 (write_one_signatured_type, recursively_write_psymbols)
15000 (class debug_names, class debug_names, write_psymtabs_to_index):
15001 Update.
15002
1d94a5a3
TT
150032019-01-10 Tom Tromey <tom@tromey.com>
15004
15005 * symtab.h (SYMBOL_SET_NAMES): Update.
15006 (symbol_set_names): Update.
15007 (MSYMBOL_SET_NAMES): Update.
15008 * symtab.c (symbol_set_names): Change argument to be an
15009 objfile_per_bfd_storage.
15010 * psymtab.c (add_psymbol_to_bcache): Update.
15011 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15012
0f14768a
TT
150132019-01-10 Tom Tromey <tom@tromey.com>
15014
15015 * symtab.c (create_demangled_names_hash): Change argument to be an
15016 objfile_per_bfd_storage.
15017 (symbol_set_names): Update.
15018
6eee24ce
TT
150192019-01-10 Tom Tromey <tom@tromey.com>
15020
15021 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15022 init_psymbol_list.
15023 * psymtab.c (init_psymbol_list): Do nothing if already called.
15024 * psympriv.h (init_psymbol_list): Add comment.
15025 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15026 init_psymbol_list.
15027 * dbxread.c (dbx_symfile_read): Unconditionally call
15028 init_psymbol_list.
15029
75aedd27
TT
150302019-01-10 Tom Tromey <tom@tromey.com>
15031
15032 * xcoffread.c (scan_xcoff_symtab): Update.
15033 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15034 "where".
15035 * mdebugread.c (parse_partial_symbols)
15036 (handle_psymbol_enumerators): Update.
15037 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15038 * dbxread.c (read_dbx_symtab): Update.
15039 * psympriv.h (psymbol_placement): New enum.
15040 (add_psymbol_to_list): Update.
15041
939652a5
TT
150422019-01-10 Tom Tromey <tom@tromey.com>
15043
15044 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15045 static_psymbols parameters.
15046 (scan_xcoff_symtab): Update.
15047 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15048 static_psymbols parameters.
15049 * psympriv.h (start_psymtab_common): Update.
15050 * mdebugread.c (parse_partial_symbols): Update.
15051 * dwarf2read.c (create_partial_symtab): Update.
15052 * dbxread.c (read_dbx_symtab): Update.
15053 (start_psymtab): Remove global_psymbols and static_psymbols
15054 parameters.
15055
baa62830
TT
150562019-01-10 Tom Tromey <tom@tromey.com>
15057
15058 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15059 * psymtab.c (allocate_psymtab): Add comment.
15060 * psympriv.h (allocate_psymtab): Add comment.
15061 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15062 initializations.
15063 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15064
0e8f53ba
TT
150652019-01-10 Tom Tromey <tom@tromey.com>
15066
15067 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15068 Don't declare.
15069 * mipsread.c: Include mdebugread.h.
15070 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15071 Declare.
15072 * elfread.c: Include mdebugread.h.
15073
b22a7c6a
TT
150742019-01-09 Tom Tromey <tom@tromey.com>
15075
15076 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15077 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15078 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15079 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15080 (psym_lookup_symbol, psym_find_last_source_symtab)
15081 (psym_forget_cached_source_info, psym_print_stats)
15082 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15083 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15084 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15085 (psym_find_compunit_symtab_by_address)
15086 (maintenance_print_psymbols, maintenance_info_psymtabs)
15087 (maintenance_check_psymtabs): Use ranged for.
15088 * psymtab.h (class objfile_psymtabs): New.
15089 (require_partial_symbols): Return objfile_psymtabs.
15090 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15091
3b9d3ac2
TT
150922019-01-09 Tom Tromey <tom@tromey.com>
15093
15094 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15095 (find_pc_mapped_section, list_overlays_command)
15096 (map_overlay_command, unmap_overlay_command)
15097 (simple_overlay_update): Use all_objfiles.
15098 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15099 * printcmd.c (info_symbol_command): Use all_objfiles.
15100 * objfiles.h (ALL_OBJSECTIONS): Remove.
15101 * maint.c (maintenance_translate_address): Use all_objfiles.
15102 * gcore.c (gcore_create_callback): Use all_objfiles.
15103 (objfile_find_memory_regions): Likewise.
15104
8b31193a
TT
151052019-01-09 Tom Tromey <tom@tromey.com>
15106
15107 * symtab.c (find_line_symtab, info_sources_command)
15108 (make_source_files_completion_list): Use objfile_compunits.
15109 * source.c (select_source_symtab): Use objfile_compunits.
15110 * objfiles.h (struct objfile): Update comment.
15111 (ALL_OBJFILES): Remove.
15112 (ALL_FILETABS): Remove.
15113 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15114 objfile_compunits.
15115
d5da8b3c
TT
151162019-01-09 Tom Tromey <tom@tromey.com>
15117
15118 * symmisc.c (print_objfile_statistics, dump_objfile)
15119 (maintenance_print_symbols): Use compunit_filetabs.
15120 * source.c (forget_cached_source_info_for_objfile): Use
15121 compunit_filetabs.
15122 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15123 (ALL_FILETABS): Use compunit_filetabs.
15124 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15125 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15126
5accd1a0
TT
151272019-01-09 Tom Tromey <tom@tromey.com>
15128
15129 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15130 (compunit_filetabs): New.
15131 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15132 compunit_filetabs.
15133 (info_sources_command, make_source_files_completion_list): Remove
15134 declaration.
15135 * symmisc.c (print_objfile_statistics, dump_objfile)
15136 (maintenance_print_symbols): Remove declaration.
15137 (maintenance_info_symtabs): Use compunit_filetabs.
15138 (maintenance_info_line_tables): Likewise.
15139 * source.c (select_source_symtab): Change local variable name.
15140 (forget_cached_source_info_for_objfile): Remove declaration.
15141 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15142 * objfiles.c (objfile_relocate1): Remove declaration.
15143 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15144 declaration.
15145 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15146 * coffread.c (coff_symtab_read): Remove declaration.
15147 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15148 compunit_filetabs.
15149
d8aeb77f
TT
151502019-01-09 Tom Tromey <tom@tromey.com>
15151
15152 * symtab.c (lookup_objfile_from_block)
15153 (find_pc_sect_compunit_symtab, search_symbols)
15154 (default_collect_symbol_completion_matches_break_on): Use
15155 objfile_compunits.
15156 * objfiles.h (ALL_COMPUNITS): Remove.
15157 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15158 * cp-support.c (add_symbol_overload_list_qualified): Use
15159 objfile_compunits.
15160 * ada-lang.c (ada_collect_symbol_completion_matches)
15161 (ada_add_global_exceptions): Use objfile_compunits.
15162
592553c4
TT
151632019-01-09 Tom Tromey <tom@tromey.com>
15164
15165 * source.c (select_source_symtab)
15166 (forget_cached_source_info_for_objfile): Remove declaration.
15167 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15168 declaration.
15169 * maint.c (count_symtabs_and_blocks): Remove declaration.
15170 * cp-support.c (add_symbol_overload_list_qualified): Remove
15171 declaration.
15172 * coffread.c (coff_symtab_read): Remove declaration.
15173 * symtab.c (lookup_symbol_in_objfile_symtabs)
15174 (basic_lookup_transparent_type_1): Use objfile_compunits.
15175 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15176 (info_sources_command, search_symbols)
15177 (default_collect_symbol_completion_matches_break_on)
15178 (make_source_files_completion_list): Remove declaration.
15179 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15180 (ada_collect_symbol_completion_matches)
15181 (ada_add_global_exceptions): Remove declaration.
15182 * linespec.c (iterate_over_all_matching_symtabs): Use
15183 objfile_compunits.
15184 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15185 (class objfile_compunits): New.
15186 (ALL_COMPUNITS): Use objfile_compunits.
15187 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15188 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15189 objfile_compunits.
15190 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15191
5325b9bf
TT
151922019-01-09 Tom Tromey <tom@tromey.com>
15193
15194 * symtab.c (search_symbols)
15195 (default_collect_symbol_completion_matches_break_on): Use
15196 objfile_msymbols.
15197 * ada-lang.c (ada_lookup_simple_minsym)
15198 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15199 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15200 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15201 objfile_msymbols.
15202 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15203 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15204 * objc-lang.c (find_methods): Use objfile_msymbols.
15205 (info_selectors_command, info_classes_command): Likewise.
15206 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15207 * objfiles.h (class objfile_msymbols): New.
15208 (ALL_OBJFILE_MSYMBOLS): Remove.
15209 (ALL_MSYMBOLS): Remove.
15210
cac85af2
TT
152112019-01-09 Tom Tromey <tom@tromey.com>
15212
15213 * common/next-iterator.h (next_adapter): Add Iterator template
15214 parameter.
15215 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15216 (class all_objfiles_safe): New.
15217 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15218 * objfiles.c (put_objfile_before): Update comment.
15219 (add_separate_debug_objfile): Likewise.
15220 (free_all_objfiles): Use all_objfiles_safe.
15221 (objfile_purge_solibs): Likewise.
15222
aed57c53
TT
152232019-01-09 Tom Tromey <tom@tromey.com>
15224
15225 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15226 (expand_symtab_containing_pc, lookup_static_symbol)
15227 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15228 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15229 all_objfiles.
15230 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15231 * breakpoint.c (create_overlay_event_breakpoint)
15232 (create_longjmp_master_breakpoint)
15233 (create_std_terminate_master_breakpoint)
15234 (create_exception_master_breakpoint): Use all_objfiles.
15235 * linux-thread-db.c (try_thread_db_load_from_pdir)
15236 (has_libpthread): Use all_objfiles.
15237 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15238 * linespec.c (iterate_over_all_matching_symtabs)
15239 (search_minsyms_for_name): Use all_objfiles.
15240 * maint.c (maintenance_info_sections): Use all_objfiles.
15241 * main.c (captured_main_1): Use all_objfiles.
15242 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15243 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15244 * guile/scm-pretty-print.c
15245 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15246 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15247 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15248 (maintenance_print_msymbols): Use all_objfiles.
15249 * source.c (select_source_symtab): Use all_objfiles.
15250 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15251 * symfile.c (remove_symbol_file_command)
15252 (expand_symtabs_matching, map_symbol_filenames): Use
15253 all_objfiles.
15254 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15255 all_objfiles.
15256 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15257 * objc-lang.c (find_methods): Use all_objfiles.
15258 * objfiles.c (have_partial_symbols, have_full_symbols)
15259 (have_minimal_symbols, qsort_cmp)
15260 (default_iterate_over_objfiles_in_search_order): Use
15261 all_objfiles.
15262 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15263 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15264 (maintenance_check_psymtabs): Use all_objfiles.
15265 (ALL_PSYMTABS): Remove.
15266 * compile/compile-object-run.c (do_module_cleanup): Use
15267 all_objfiles.
15268 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15269 * cp-support.c (add_symbol_overload_list_qualified): Use
15270 all_objfiles.
15271 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15272 Use all_objfiles.
15273 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15274 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15275 all_objfiles.
15276 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15277 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15278 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15279 Uses all_objfiles.
15280 * solib.c (solib_read_symbols): Use all_objfiles
15281
99d89cde
TT
152822019-01-09 Tom Tromey <tom@tromey.com>
15283
15284 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15285 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15286 all_objfiles.
15287 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15288 * symmisc.c (print_symbol_bcache_statistics)
15289 (print_objfile_statistics, maintenance_print_objfiles)
15290 (maintenance_info_symtabs, maintenance_check_symtabs)
15291 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15292 all_objfiles.
15293 * source.c (forget_cached_source_info): Use all_objfiles.
15294 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15295 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15296 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15297 * objfiles.c (update_section_map): Use all_objfiles.
15298 (shared_objfile_contains_address_p): Likewise.
15299 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15300 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15301
21708325
TT
153022019-01-09 Tom Tromey <tom@tromey.com>
15303
15304 * common/next-iterator.h: New file.
15305 * objfiles.h (class all_objfiles): New.
15306 (struct objfile_iterator): New.
15307
669e09f6
PW
153082019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15309
15310 * NEWS: Move the description of the changed "frame", "select-frame",
15311 and "info frame" commands to the Changed commands section.
15312
041be526
SM
153132019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15314
15315 * gdbtypes.c (check_stub_method_group): Remove handling of old
15316 mangling schemes.
15317 * linespec.c (find_methods): Likewise.
15318 * stabsread.c (read_member_functions): Likewise.
15319 * valops.c (search_struct_method): Likewise.
15320 (value_struct_elt_for_reference): Likewise.
15321 * NEWS: Mention this change.
15322
0e2a2133
AB
153232019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15324
15325 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15326 print_source_lines.
15327 * source.c (print_source_lines_base): Update line number check.
15328 (print_source_lines): New function.
15329 (source_lines_range::source_lines_range): New function.
15330 * source.h (class source_lines_range): New class.
15331 (print_source_lines): New declaration.
15332
1055a3b4
PW
153332019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15334
15335 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15336
cfeadda5
TT
153372019-01-08 Tom Tromey <tom@tromey.com>
15338 Simon Marchi <simon.marchi@ericsson.com>
15339
15340 PR gdb/24060
15341 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15342 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15343 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15344 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15345 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15346 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15347
583068ca
AB
153482019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15349
15350 * source.c (select_source_symtab): Move header comment to
15351 declaration in source.h.
15352 (forget_cached_source_info_for_objfile): Likewise.
15353 (forget_cached_source_info): Likewise.
15354 (identify_source_line): Likewise.
15355 * source.h (identify_source_line): Move declaration from symtab.h
15356 and add comment from source.c
15357 (print_source_lines): Likewise.
15358 (forget_cached_source_info_for_objfile): Likewise.
15359 (forget_cached_source_info): Likewise.
15360 (select_source_symtab): Likewise.
15361 (enum print_source_lines_flag): Move definition from symtab.h.
15362 * symtab.h (identify_source_line): Move declaration to source.h.
15363 (print_source_lines): Likewise.
15364 (forget_cached_source_info_for_objfile): Likewise.
15365 (forget_cached_source_info): Likewise.
15366 (select_source_symtab): Likewise.
15367 (enum print_source_lines_flag): Move definition to source.h.
15368 * tui/tui-hooks.c: Add 'source.h' include.
15369
ec98a4ad
AB
153702019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15371
15372 * source.c (print_source_lines_base): Handle requests to print
15373 reverse line number sequences, and guard against empty lines
15374 string.
15375
62ea19c1
AB
153762019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15377
15378 * source.c (print_source_lines_base): Fix skip of '\r' if next
15379 character is '\n'.
15380
9d30e1fd
TT
153812019-01-06 Tom Tromey <tom@tromey.com>
15382
15383 * c-exp.y (struct c_parse_state) <macro_original_text,
15384 expansion_obstack>: New member.
15385 (macro_original_text, expansion_obstack): Remove globals.
15386 (scan_macro_expansion, scanning_macro_expansion)
15387 (finished_macro_expansion): Update.
15388 (scan_macro_cleanup): Remove.
15389 (yylex, c_parse): Update.
15390
c65bac38
TT
153912019-01-06 Tom Tromey <tom@tromey.com>
15392
15393 * c-exp.y (struct c_parse_state) <strings>: New member.
15394 (operator_stoken): Update.
15395
02e12e38
TT
153962019-01-06 Tom Tromey <tom@tromey.com>
15397
15398 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15399 (union type_stack_elt) <typelist_val>: Now a pointer to
15400 std::vector.
15401 (type_stack_cleanup): Don't declare.
15402 (push_typelist): Update.
15403 * parse.c (pop_typelist): Return a std::vector.
15404 (push_typelist): Take a std::vector.
15405 (follow_types): Update. Do not free args.
15406 (type_stack_cleanup): Remove.
15407 * c-exp.y (struct c_parse_state): New.
15408 (cpstate): New global.
15409 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15410 (nonempty_typelist): Update.
15411 (func_mod): Create a new vector.
15412 (c_parse): Create a c_parse_state.
15413 (check_parameter_typelist): Do not delete params.
15414 (function_method): Update. Do not delete type_list.
15415
f097f5ad
TT
154162019-01-06 Tom Tromey <tom@tromey.com>
15417
15418 PR gdb/28155:
15419 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15420 check_typedef.
15421 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15422 (print_return_value): Likewise.
15423
d2adf9f1
TT
154242019-01-05 Tom Tromey <tom@tromey.com>
15425
15426 * contrib/cleanup_check.py: Remove.
15427 * contrib/gcc-with-excheck: Remove.
15428 * contrib/exsummary.py: Remove.
15429 * contrib/excheck.py: Remove.
15430
2eab46b1
JB
154312019-01-05 Joel Brobecker <brobecker@adacore.com>
15432
15433 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15434 NULL. Initialize tpprev to NULL instead of assigning it
15435 to NULL on the next statement.
15436 * windows-nat.c (windows_delete_thread): Remove check for
15437 main_thread_id before printing thread exit notifications.
15438 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15439 Remove thread ID check against main_thread_id.
15440 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15441 windows_delete_thread.
15442 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15443
48c5e7e2
TT
154442019-01-04 Tom Tromey <tom@tromey.com>
15445
15446 * compile/compile.c (_initialize_compile): Use upper case for
15447 metasyntactic variables.
15448 * symmisc.c (_initialize_symmisc): Use upper case for
15449 metasyntactic variables.
15450 * psymtab.c (_initialize_psymtab): Use upper case for
15451 metasyntactic variables.
15452 * demangle.c (demangle_command): Use upper case for metasyntactic
15453 variables.
15454 (_initialize_demangler): Likewise.
15455 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15456 variables.
15457
986041cd
TT
154582019-01-03 Tom Tromey <tom@tromey.com>
15459
15460 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15461
7c711119
TT
154622019-01-03 Tom Tromey <tom@tromey.com>
15463
15464 * python/py-symtab.c (salpy_str): Update.
15465 (struct salpy_sal_object) <symtab>: Now a PyObject.
15466 (salpy_dealloc): Update.
15467 (del_objfile_sal): Use gdbpy_ref.
15468
1b20edf0
TT
154692019-01-03 Tom Tromey <tom@tromey.com>
15470
15471 * python/py-type.c (convert_field): Use new_reference. Return
15472 gdbpy_ref.
15473 (make_fielditem): Return gdbpy_ref.
15474 (typy_fields): Update.
15475 (typy_getitem): Update.
15476 (field_name): Return gdbpy_ref. Use new_reference.
15477 (typy_iterator_iternext): Update.
15478
ea41325b
TT
154792019-01-03 Tom Tromey <tom@tromey.com>
15480
15481 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15482
2a3c71d6
TT
154832019-01-03 Tom Tromey <tom@tromey.com>
15484
15485 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15486 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15487 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15488 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15489 (pspy_set_type_printers): Likewise.
15490 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15491 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15492 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15493 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15494 (objfpy_set_type_printers): Likewise.
15495
5c329e6a
TT
154962019-01-03 Tom Tromey <tom@tromey.com>
15497
15498 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15499 (gdbpy_print_stack): Use gdbpy_err_fetch.
15500 * python/python-internal.h (class gdbpy_err_fetch): New class.
15501 (class gdbpy_enter) <m_error_type, m_error_value,
15502 m_error_traceback>: Remove.
15503 <m_error>: New member.
15504 (gdbpy_exception_to_string): Don't declare.
15505 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15506 * python/py-value.c (convert_value_from_python): Use
15507 gdbpy_err_fetch.
15508 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15509 gdbpy_exception_to_string.
15510 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15511 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15512 gdbpy_err_fetch.
15513
169bb27b
AB
155142019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15515
15516 * linux-nat.c (delete_lwp_cleanup): Delete.
15517 (struct lwp_deleter): New struct.
15518 (lwp_info_up): New typedef.
15519 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15520 lwp_info_up.
15521
a07c8880
AB
155222019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15523
15524 * linux-fork.c (class scoped_switch_fork_info): New class.
15525 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15526
26089c49
AB
155272019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15528
15529 * valops.c (find_overload_match): Remove use of null_cleanup, and
15530 calls to do_cleanups.
15531
06d3e5b0
AB
155322019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15533
15534 * compile/compile-cplus-types.c
15535 (compile_cplus_instance::decl_name): Handle changes to
15536 cp_func_name.
15537 * cp-support.c (cp_func_name): Update header comment, update
15538 return type.
15539 * cp-support.h (cp_func_name): Update return type in declaration.
15540 * valops.c (find_overload_match): Move temp_func local to top
15541 level of function and change its type. Use temp_func to hold and
15542 delete temporary string obtained from cp_func_name.
15543
66644cd3
AB
155442019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15545
15546 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15547 gdb::char_vector, remove cleanup, and update uses of `msg`.
15548
592d8c0a
JW
155492019-01-03 Jim Wilson <jimw@sifive.com>
15550
15551 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15552
c55d06ec
TT
155532019-01-02 Tom Tromey <tom@tromey.com>
15554
15555 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15556 (tdesc_parse_xml): Remove cleanups.
15557 * target-descriptions.h (make_cleanup_free_target_description):
15558 Don't declare.
15559 (target_desc_deleter): New struct.
15560 (target_desc_up): New typedef.
15561 * target-descriptions.c (target_desc_deleter::operator()): Rename
15562 from free_target_description.
15563 (make_cleanup_free_target_description): Remove.
15564
3a6ae42d
TT
155652019-01-02 Tom Tromey <tom@tromey.com>
15566
15567 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15568 constructor, destructor.
15569 (linespec_parser): Remove typedef.
15570 (~linespec_parser): Rename from linespec_parser_delete.
15571 (linespec_lex_to_end, linespec_complete_label)
15572 (linespec_complete): Update.
15573 (decode_line_full): Remove cleanups.
15574 (decode_line_1): Update.
15575
61fd3e73
TT
155762019-01-02 Tom Tromey <tom@tromey.com>
15577
15578 * python/python-internal.h (inferior_to_inferior_object): Change
15579 return type.
15580 * python/py-exitedevent.c (create_exited_event_object): Update.
15581 * python/py-inferior.c (inferior_to_inferior_object): Return
15582 gdbpy_ref.
15583 (python_new_inferior, python_inferior_deleted)
15584 (thread_to_thread_object, delete_thread_object)
15585 (build_inferior_list, gdbpy_selected_inferior): Update.
15586 * python/py-infthread.c (create_thread_object): Update. Also fail
15587 if inferior_to_inferior_object fails.
15588
d20172fc
SM
155892019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15590
15591 * inferior.h (class inferior) <displaced_step_state>: New field.
15592 * infrun.h (struct displaced_step_state): Move here from
15593 infrun.c. Initialize fields, add constructor.
15594 <inf>: Remove field.
15595 <reset>: New method.
15596 * infrun.c (struct displaced_step_inferior_state): Move to
15597 infrun.h.
15598 (displaced_step_inferior_states): Remove.
15599 (get_displaced_stepping_state): Adust.
15600 (displaced_step_in_progress_any_inferior): Adjust.
15601 (displaced_step_in_progress_thread): Adjust.
15602 (displaced_step_in_progress): Adjust.
15603 (add_displaced_stepping_state): Remove.
15604 (get_displaced_step_closure_by_addr): Adjust.
15605 (remove_displaced_stepping_state): Remove.
15606 (infrun_inferior_exit): Call displaced_step_state.reset.
15607 (use_displaced_stepping): Don't check for NULL.
15608 (displaced_step_prepare_throw): Call
15609 get_displaced_stepping_state.
15610 (displaced_step_fixup): Don't check for NULL.
15611 (prepare_for_detach): Don't check for NULL.
15612
e3319240
PW
156132019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15614
15615 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15616 in case of call that did not complete.
15617
5d36dfb9
AU
156182019-01-02 Andrey Utkin <autkin@undo.io>
15619
15620 * symfile.c (find_separate_debug_file): Fix search of debug files for
15621 remote debuggee.
15622
8833fbf0
TT
156232019-01-02 Tom Tromey <tom@tromey.com>
15624
15625 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15626 indentation.
15627 * python/py-frame.c (frapy_older): Remove cast.
15628 (frapy_newer): Likewise.
15629 * python/py-breakpoint.c (local_setattro): Remove cast.
15630 * python/py-arch.c (archpy_name): Remove local variable.
15631 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15632
4ada3dfd
JB
156332019-01-02 Joel Brobecker <brobecker@adacore.com>
15634
15635 * unittests/basic_string_view/element_access/char/empty.cc:
15636 Fix year range in copyright header.
15637
113b7b81
AB
156382019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15639
15640 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15641 Delete.
15642 <operator==>: Update with for removed field.
15643 <hash>: Likewise.
15644 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15645 <isa_features>: ...this.
15646 <abi_features>: New field.
15647 (riscv_isa_flen): Update comment.
15648 (riscv_abi_xlen): New declaration.
15649 (riscv_abi_flen): New declaration.
15650 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15651 isa_features.
15652 (riscv_abi_xlen): New function.
15653 (riscv_isa_flen): Update to get answer from isa_features.
15654 (riscv_abi_flen): New function.
15655 (riscv_has_fp_abi): Update to get answer from abi_features.
15656 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15657 xlen and flen.
15658 (riscv_call_info) <xlen, flen>: Update comment.
15659 (riscv_call_arg_struct): Remove invalid assertions
15660 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15661 is removed.
15662 (riscv_gdbarch_init): Gather isa features and abi features
15663 separately, ensure both match on the gdbarch when reusing an old
15664 gdbarch. Relax an error check to allow 32-bit abi float to run on
15665 a target with 64-bit float hardware.
15666
b18ca514
PW
156672019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15668
15669 * source.c (search_command_helper): Stop reverse search
15670 when line 1 has been searched.
15671
ec70d8db
PW
156722019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15673
15674 * record-full.c (record_full_base_target::close): Rewrite
15675 record_full_core_buf_list free logic.
15676
5b38f9c1
PW
156772019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15678
15679 * break-catch-syscall.c (print_one_catch_syscall): xfree
15680 the last text.
15681
66d91b39
JB
156822019-01-01 Joel Brobecker <brobecker@adacore.com>
15683
15684 * top.c (print_gdb_version): Update Copyright year in version
15685 message.
15686
42a4f53d
JB
156872019-01-01 Joel Brobecker <brobecker@adacore.com>
15688
15689 Update copyright year range in all GDB files.
15690
7e955d83 156912019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 15692
5bbd631d 15693 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 15694
5bbd631d 15695For older changes see ChangeLog-2018.
c906108c
SS
15696\f
15697Local Variables:
15698mode: change-log
15699left-margin: 8
15700fill-column: 74
15701version-control: never
57da7796 15702coding: utf-8
c906108c 15703End:
5bbd631d 15704
This page took 2.985642 seconds and 4 git commands to generate.