Replace int with bool in solib.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-11-25 Christian Biesinger <cbiesinger@google.com>
2
3 * solib.c (solib_find_1): Change int to bool.
4 (exec_file_find): Change int to bool.
5 (solib_find): Change int to bool.
6 (solib_read_symbols): Change int to bool.
7 (solib_used): Change int to bool.
8 (solib_add): Change int to bool.
9 (info_sharedlibrary_command): Change int to bool.
10 (solib_contains_address_p): Change int to bool.
11 (solib_keep_data_in_core): Change int to bool.
12 (in_solib_dynsym_resolve_code): Change int to bool.
13 (reload_shared_libraries_1): Change int to bool.
14 (gdb_sysroot_changed): Change int to bool.
15 * solib.h (solib_read_symbols): Change int to bool.
16 (solib_contains_address_p): Change int to bool.
17 (solib_keep_data_in_core): Change int to bool.
18 (in_solib_dynsym_resolve_code): Change int to bool.
19 (libpthread_name_p): Change int to bool.
20
21 2019-11-25 Luis Machado <luis.machado@linaro.org>
22
23 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
24 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
25 (remote_packet_max_chars): New static global.
26 (show_remote_packet_max_chars): New function.
27 (remote_target::putpkt_binary): Adjust to use new
28 remote_packet_max_chars option.
29 (remote_target::getpkt_or_notif_sane_1): Likewise.
30 (_initialize_remote): Register new remote-packet-max-chars option.
31
32 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
33
34 * m68k-linux-nat.c: Include gdbarch.h.
35
36 2019-11-24 Tom Tromey <tom@tromey.com>
37
38 * symfile.c (read_symbols): Update.
39 * psymtab.c (require_partial_symbols): Change type of "verbose" to
40 bool.
41 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
42 (psym_lookup_symbol, psym_find_last_source_symtab)
43 (psym_forget_cached_source_info, psym_print_stats)
44 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
45 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
46 (psym_map_matching_symbols, psym_expand_symtabs_matching)
47 (psym_find_compunit_symtab_by_address)
48 (maintenance_print_psymbols, maintenance_info_psymtabs)
49 (maintenance_check_psymtabs): Update.
50 * psymtab.h (require_partial_symbols): Change type of "verbose" to
51 bool.
52
53 2019-11-22 Tom Tromey <tom@tromey.com>
54
55 * observable.h: Update comments.
56
57 2019-11-22 Tom Tromey <tromey@adacore.com>
58
59 * ada-tasks.c (ada_task_is_alive): Make parameter const.
60 (print_ada_task_info): Don't try to fetch thread id if task is not
61 alive.
62
63 2019-11-22 Christian Biesinger <cbiesinger@google.com>
64
65 * ada-exp.y: Update.
66 * ada-lang.c (sort_choices): Update.
67 (ada_print_symbol_signature): Update.
68 (resolve_subexp): Update.
69 (ada_parse_renaming): Update.
70 (ada_read_renaming_var_value): Update.
71 (lesseq_defined_than): Update.
72 (remove_extra_symbols): Update.
73 (remove_irrelevant_renamings): Update.
74 (ada_add_block_symbols): Update.
75 (ada_collect_symbol_completion_matches): Update.
76 (ada_is_renaming_symbol): Update.
77 (aggregate_assign_from_choices): Update.
78 (ada_evaluate_subexp): Update.
79 (ada_has_this_exception_support): Update.
80 (ada_is_non_standard_exception_sym): Update.
81 (ada_add_exceptions_from_frame): Update.
82 (ada_add_global_exceptions): Update.
83 (ada_print_subexp): Update.
84 * ax-gdb.c (gen_var_ref): Update.
85 (gen_maybe_namespace_elt): Update.
86 (gen_expr_for_cast): Update.
87 (gen_expr): Update.
88 * block.h: Update.
89 * blockframe.c (find_pc_partial_function): Update.
90 * breakpoint.c (print_breakpoint_location): Update.
91 (update_static_tracepoint): Update.
92 * btrace.c (ftrace_print_function_name): Update.
93 (ftrace_function_switched): Update.
94 * buildsym.c (find_symbol_in_list): Update.
95 * c-exp.y: Update.
96 * c-typeprint.c (c_print_typedef): Update.
97 (c_type_print_template_args): Update.
98 * cli/cli-cmds.c (edit_command): Update.
99 (list_command): Update.
100 (print_sal_location): Update.
101 * coffread.c (patch_opaque_types): Update.
102 (process_coff_symbol): Update.
103 (coff_read_enum_type): Update.
104 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
105 (convert_one_symbol): Update.
106 (hash_symname): Update.
107 (eq_symname): Update.
108 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
109 * compile/compile-cplus-types.c (debug_print_scope): Update.
110 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
111 * compile/compile-object-load.c (get_out_value_type): Update.
112 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
113 (search_symbol_list): Update.
114 (cp_lookup_symbol_imports_or_template): Update.
115 * cp-support.c (overload_list_add_symbol): Update.
116 * ctfread.c (psymtab_to_symtab): Update.
117 * dbxread.c (cp_set_block_scope): Update.
118 * dictionary.c (iter_match_first_hashed): Update.
119 (iter_match_next_hashed): Update.
120 (insert_symbol_hashed): Update.
121 (iter_match_next_linear): Update.
122 * dictionary.h: Update.
123 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
124 (locexpr_describe_location_piece): Update.
125 (locexpr_describe_location_1): Update.
126 (locexpr_generate_c_location): Update.
127 (loclist_describe_location): Update.
128 (loclist_generate_c_location): Update.
129 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
130 (read_func_scope): Update.
131 (process_enumeration_scope): Update.
132 (new_symbol): Update.
133 (dwarf2_const_value): Update.
134 (dwarf2_symbol_mark_computed): Update.
135 * eval.c (evaluate_funcall): Update.
136 (evaluate_subexp_standard): Update.
137 * expprint.c (print_subexp_standard): Update.
138 (dump_subexp_body_standard): Update.
139 * f-valprint.c (info_common_command_for_block): Update.
140 * findvar.c (get_hosting_frame): Update.
141 (default_read_var_value): Update.
142 * go-lang.c (go_symbol_package_name): Update.
143 * guile/scm-block.c (bkscm_print_block_smob): Update.
144 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
145 (gdbscm_symbol_name): Update.
146 (gdbscm_symbol_linkage_name): Update.
147 (gdbscm_symbol_print_name): Update.
148 * infcall.c (get_function_name): Update.
149 * infcmd.c (jump_command): Update.
150 (finish_command): Update.
151 * infrun.c (insert_exception_resume_breakpoint): Update.
152 * linespec.c (canonicalize_linespec): Update.
153 (create_sals_line_offset): Update.
154 (convert_linespec_to_sals): Update.
155 (complete_label): Update.
156 (find_label_symbols_in_block): Update.
157 * m2-typeprint.c (m2_print_typedef): Update.
158 * mdebugread.c (mdebug_reg_to_regnum): Update.
159 (parse_symbol): Update.
160 (mylookup_symbol): Update.
161 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
162 (list_args_or_locals): Update.
163 * objc-lang.c (compare_selectors): Update.
164 (info_selectors_command): Update.
165 (compare_classes): Update.
166 (info_classes_command): Update.
167 (find_imps): Update.
168 * p-typeprint.c (pascal_print_typedef): Update.
169 * printcmd.c (build_address_symbolic): Update.
170 (info_address_command): Update.
171 (print_variable_and_value): Update.
172 * python/py-framefilter.c (extract_sym): Update.
173 (py_print_single_arg): Update.
174 * python/py-symbol.c (sympy_str): Update.
175 (sympy_get_name): Update.
176 (sympy_get_linkage_name): Update.
177 * python/python.c (gdbpy_rbreak): Update.
178 * record-btrace.c (btrace_get_bfun_name): Update.
179 (btrace_call_history): Update.
180 * rust-lang.c (rust_print_typedef): Update.
181 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
182 * stabsread.c (stab_reg_to_regnum): Update.
183 (define_symbol): Update.
184 (read_enum_type): Update.
185 (common_block_end): Update.
186 (cleanup_undefined_types_1): Update.
187 (scan_file_globals): Update.
188 * stack.c (print_frame_arg): Update.
189 (print_frame_args): Update.
190 (find_frame_funname): Update.
191 (info_frame_command_core): Update.
192 (iterate_over_block_locals): Update.
193 (print_block_frame_labels): Update.
194 (do_print_variable_and_value): Update.
195 (iterate_over_block_arg_vars): Update.
196 (return_command): Update.
197 * symmisc.c (dump_symtab_1): Update.
198 (print_symbol): Update.
199 * symtab.c (eq_symbol_entry): Update.
200 (symbol_cache_dump): Update.
201 (lookup_language_this): Update.
202 (find_pc_sect_line): Update.
203 (skip_prologue_sal): Update.
204 (symbol_search::compare_search_syms): Update.
205 (treg_matches_sym_type_name): Update.
206 (search_symbols): Update.
207 (print_symbol_info): Update.
208 (rbreak_command): Update.
209 (completion_list_add_symbol): Update.
210 (find_gnu_ifunc): Update.
211 (get_symbol_address): Update.
212 (search_module_symbols): Update.
213 (info_module_subcommand): Update.
214 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
215 (SYMBOL_LINKAGE_NAME): Remove.
216 (SYMBOL_DEMANGLED_NAME): Remove.
217 (SYMBOL_PRINT_NAME): Remove.
218 (SYMBOL_SEARCH_NAME): Remove.
219 * tracepoint.c (set_traceframe_context): Update.
220 (validate_actionline): Update.
221 (collection_list::collect_symbol): Update.
222 (encode_actions_1): Update.
223 (info_scope_command): Update.
224 (print_one_static_tracepoint_marker): Update.
225 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
226 * valops.c (address_of_variable): Update.
227 (find_overload_match): Update.
228 (find_oload_champ): Update.
229
230 2019-11-22 Christian Biesinger <cbiesinger@google.com>
231
232 * ada-lang.c (ada_lookup_simple_minsym): Update.
233 (ada_collect_symbol_completion_matches): Update.
234 * ada-tasks.c (read_atcb): Update.
235 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
236 (amd64_windows_skip_trampoline_code): Update.
237 * arm-tdep.c (skip_prologue_function): Update.
238 (arm_skip_stack_protector): Update.
239 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
240 (arm_wince_skip_main_prologue): Update.
241 * ax-gdb.c (gen_expr): Update.
242 * block.c (call_site_for_pc): Update.
243 * blockframe.c (find_pc_partial_function): Update.
244 * breakpoint.c (set_breakpoint_location_function): Update.
245 * btrace.c (ftrace_print_function_name): Update.
246 (ftrace_function_switched): Update.
247 * c-valprint.c (print_unpacked_pointer): Update.
248 * coffread.c (coff_symfile_read): Update.
249 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
250 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
251 * dwarf-index-write.c (write_psymbols): Update.
252 * dwarf2loc.c (call_site_to_target_addr): Update.
253 (func_verify_no_selftailcall): Update.
254 (tailcall_dump): Update.
255 (call_site_find_chain_1): Update.
256 (dwarf_expr_reg_to_entry_parameter): Update.
257 * elfread.c (elf_gnu_ifunc_record_cache): Update.
258 * eval.c (evaluate_funcall): Update.
259 (evaluate_subexp_standard): Update.
260 (evaluate_subexp_for_sizeof): Update.
261 * expprint.c (print_subexp_standard): Update.
262 (dump_subexp_body_standard): Update.
263 * frame.c (get_prev_frame_always_1): Update.
264 * frv-tdep.c (frv_skip_main_prologue): Update.
265 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
266 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
267 (gnuv3_get_typename_from_type_info): Update.
268 (gnuv3_skip_trampoline): Update.
269 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
270 * i386-tdep.c (i386_skip_main_prologue): Update.
271 (i386_pe_skip_trampoline_code): Update.
272 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
273 * infcall.c (get_function_name): Update.
274 * linespec.c (minsym_found): Update.
275 * linux-fork.c (info_checkpoints_command): Update.
276 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
277 (m32c_m16c_pointer_to_address): Update.
278 * maint.c (maintenance_translate_address): Update.
279 * minsyms.c (add_minsym_to_hash_table): Update.
280 (add_minsym_to_demangled_hash_table): Update.
281 (lookup_minimal_symbol_mangled): Update.
282 (lookup_minimal_symbol_demangled): Update.
283 (lookup_minimal_symbol_linkage): Update.
284 (lookup_minimal_symbol_text): Update.
285 (lookup_minimal_symbol_by_pc_name): Update.
286 (minimal_symbol_is_less_than): Update.
287 (compact_minimal_symbols): Update.
288 (build_minimal_symbol_hash_tables): Update.
289 (find_solib_trampoline_target): Update.
290 * mips-tdep.c (mips_stub_frame_sniffer): Update.
291 (mips_skip_pic_trampoline_code): Update.
292 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
293 * objc-lang.c (info_selectors_command): Update.
294 (info_classes_command): Update.
295 (find_methods): Update.
296 (find_imps): Update.
297 * p-valprint.c (pascal_val_print): Update.
298 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
299 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
300 * printcmd.c (build_address_symbolic): Update.
301 (info_symbol_command): Update.
302 * psymtab.c (psymbol_name_matches): Update.
303 (match_partial_symbol): Update.
304 (lookup_partial_symbol): Update.
305 (print_partial_symbols): Update.
306 (sort_pst_symbols): Update.
307 (maintenance_check_psymtabs): Update.
308 * python/py-framefilter.c (py_print_frame): Update.
309 * python/python.c (gdbpy_rbreak): Update.
310 * record-btrace.c (btrace_get_bfun_name): Update.
311 (btrace_call_history): Update.
312 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
313 (rs6000_skip_trampoline_code): Update.
314 * sol-thread.c (info_cb): Update.
315 * stabsread.c (scan_file_globals): Update.
316 * stack.c (find_frame_funname): Update.
317 (info_frame_command_core): Update.
318 * symmisc.c (dump_msymbols): Update.
319 * symtab.c (symbol_natural_name): Rename to..,
320 (general_symbol_info::natural_name): ...this.
321 (symbol_demangled_name): Rename to...
322 (general_symbol_info::demangled_name): ...this.
323 (symbol_search_name): Rename to...
324 (general_symbol_info::search_name): ...this.
325 (symbol_matches_search_name): Update.
326 (find_pc_sect_line): Update.
327 (skip_prologue_sal): Update.
328 (search_symbols): Update.
329 (print_msymbol_info): Update.
330 (rbreak_command): Update.
331 (completion_list_add_msymbol): Update.
332 (completion_list_objc_symbol): Update.
333 (get_msymbol_address): Update.
334 * symtab.h (struct general_symbol_info): Add member functions
335 natural_name (), linkage_name (), print_name (), demangled_name (),
336 and search_name ().
337 (SYMBOL_NATURAL_NAME): Update.
338 (symbol_natural_name): Move to a member function on general_symbol_info.
339 (SYMBOL_DEMANGLED_NAME): Update.
340 (symbol_demangled_name): Move to a member function on
341 general_symbol_info.
342 (SYMBOL_SEARCH_NAME): Update.
343 (symbol_search_name): Move to a member function on general_symbol_info.
344 (MSYMBOL_NATURAL_NAME): Remove.
345 (MSYMBOL_LINKAGE_NAME): Remove.
346 (MSYMBOL_PRINT_NAME): Remove.
347 (MSYMBOL_DEMANGLED_NAME): Remove.
348 (MSYMBOL_SEARCH_NAME): Remove.
349 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
350
351 2019-11-22 Christian Biesinger <cbiesinger@google.com>
352
353 * symtab.c (create_demangled_names_hash): Use per_bfd->
354 minimal_symbol_count for computing the initial size, if greater
355 than our default size.
356
357 2019-11-22 Tom de Vries <tdevries@suse.de>
358
359 * contrib/words.sh: Improve words extraction.
360
361 2019-11-22 Tom de Vries <tdevries@suse.de>
362
363 * contrib/words.sh: Combine sed invocations.
364
365 2019-11-21 Christian Biesinger <cbiesinger@google.com>
366
367 * Makefile.in: Update.
368 * demangle.c: Rename to...
369 * gdb-demangle.c: ..this.
370 (is_cplus_marker): Change return type to bool.
371 (_initialize_demangler): Rename to...
372 (_initialize_gdb_demangle): ...this.
373 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
374 * symtab.h (demangle): Remove declaration; instead include
375 gdb-demangle.h.
376
377 2019-11-21 Tom Tromey <tromey@adacore.com>
378
379 * gdbsupport/format.c (format_pieces): Parse %I64d.
380 * unittests/format_pieces-selftests.c (test_windows_formats): New
381 function.
382 (run_tests): Call it.
383
384 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
385
386 Byte reverse display of variables with DW_END_big, DW_END_little
387 (DW_AT_endianity) dwarf attributes if different than the native
388 byte order.
389 * ada-lang.c (ada_value_binop):
390 Use type_byte_order instead of gdbarch_byte_order.
391 * ada-valprint.c (printstr):
392 (ada_val_print_string):
393 * ada-lang.c (value_pointer):
394 (ada_value_binop):
395 Use type_byte_order instead of gdbarch_byte_order.
396 * c-lang.c (c_get_string):
397 Use type_byte_order instead of gdbarch_byte_order.
398 * c-valprint.c (c_val_print_array):
399 Use type_byte_order instead of gdbarch_byte_order.
400 * cp-valprint.c (cp_print_class_member):
401 Use type_byte_order instead of gdbarch_byte_order.
402 * dwarf2loc.c (rw_pieced_value):
403 Use type_byte_order instead of gdbarch_byte_order.
404 * dwarf2read.c (read_base_type): Handle DW_END_big,
405 DW_END_little
406 * f-lang.c (f_get_encoding):
407 Use type_byte_order instead of gdbarch_byte_order.
408 * findvar.c (default_read_var_value):
409 Use type_byte_order instead of gdbarch_byte_order.
410 * gdbtypes.c (check_types_equal):
411 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
412 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
413 and TYPE_ENDIANITY_LITTLE if set.
414 (type_byte_order): new function.
415 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
416 (struct main_type) <flag_endianity_not_default>:
417 New field.
418 (type_byte_order): New function.
419 * infcmd.c (default_print_one_register_info):
420 Use type_byte_order instead of gdbarch_byte_order.
421 * p-lang.c (pascal_printstr):
422 Use type_byte_order instead of gdbarch_byte_order.
423 * p-valprint.c (pascal_val_print):
424 Use type_byte_order instead of gdbarch_byte_order.
425 * printcmd.c (print_scalar_formatted):
426 Use type_byte_order instead of gdbarch_byte_order.
427 * solib-darwin.c (darwin_current_sos):
428 Use type_byte_order instead of gdbarch_byte_order.
429 * solib-svr4.c (solib_svr4_r_ldsomap):
430 Use type_byte_order instead of gdbarch_byte_order.
431 * stap-probe.c (stap_modify_semaphore):
432 Use type_byte_order instead of gdbarch_byte_order.
433 * target-float.c (target_float_same_format_p):
434 Use type_byte_order instead of gdbarch_byte_order.
435 * valarith.c (scalar_binop):
436 (value_bit_index):
437 Use type_byte_order instead of gdbarch_byte_order.
438 * valops.c (value_cast):
439 Use type_byte_order instead of gdbarch_byte_order.
440 * valprint.c (generic_emit_char):
441 (generic_printstr):
442 (val_print_string):
443 Use type_byte_order instead of gdbarch_byte_order.
444 * value.c (unpack_long):
445 (unpack_bits_as_long):
446 (unpack_value_bitfield):
447 (modify_field):
448 (pack_long):
449 (pack_unsigned_long):
450 Use type_byte_order instead of gdbarch_byte_order.
451 * findvar.c (unsigned_pointer_to_address):
452 (signed_pointer_to_address):
453 (unsigned_address_to_pointer):
454 (address_to_signed_pointer):
455 (default_read_var_value):
456 (default_value_from_register):
457 Use type_byte_order instead of gdbarch_byte_order.
458 * gnu-v3-abi.c (gnuv3_make_method_ptr):
459 Use type_byte_order instead of gdbarch_byte_order.
460 * riscv-tdep.c (riscv_print_one_register_info):
461 Use type_byte_order instead of gdbarch_byte_order.
462
463 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
464
465 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
466 (current_ui_gdb_stdin_ptr): Likewise.
467 (current_ui_gdb_stderr_ptr): Likewise.
468 (current_ui_gdb_stdlog_ptr): Likewise.
469 (current_ui_current_uiout_ptr): Likewise.
470 (gen_ret_current_ui_field_ptr): Remove.
471
472 2019-11-21 Tom de Vries <tdevries@suse.de>
473
474 PR gdb/24956
475 * cli/cli-script.c (execute_control_command): Only switch to
476 INTERP_CONSOLE's ui_out when INTERP_MI is active.
477
478 2019-11-19 Tom Tromey <tom@tromey.com>
479
480 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
481 Now static. Change type of "name".
482 (tui_set_win_height_command): Don't copy "arg".
483 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
484 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
485
486 2019-11-19 Ali Tamur <tamur@google.com>
487
488 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
489 "if (attr != nullptr)".
490 (dwarf2_find_base_address): Likewise.
491 (dwarf2_build_include_psymtabs): Likewise.
492 (read_cutu_die_from_dwo): Likewise.
493 (read_func_scope): Likewise.
494 (read_call_site_scope): Likewise.
495 (dwarf2_get_pc_bounds): Likewise.
496 (dwarf2_record_block_ranges): Likewise.
497 (dwarf2_add_field): Likewise.
498 (dwarf2_add_member_fn): Likewise.
499 (read_structure_type): Likewise.
500 (read_enumeration_type): Likewise.
501 (read_array_type): Likewise.
502 (read_array_order): Likewise.
503 (read_set_type): Likewise.
504 (read_common_block): Likewise.
505 (read_tag_reference_type): Likewise.
506 (read_tag_string_type): Likewise.
507 (read_subroutine_type): Likewise.
508 (read_base_type): Likewise.
509 (read_subrange_type): Likewise.
510 (new_symbol): Likewise.
511 (prepare_one_comp_unit): Likewise.
512
513 2019-11-19 Tom Tromey <tromey@adacore.com>
514
515 * windows-nat.c (windows_nat_target::attach): Include GetLastError
516 result in error when DebugActiveProcess fails.
517
518 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
519 Pedro Alves <palves@redhat.com>
520
521 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
522 * target.c (target_stack::push): Call 'unpush' if there's a
523 target on top of the stack.
524
525 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
526
527 * python/py-block.c (blpy_dealloc): Call tp_free.
528 (blpy_block_syms_dealloc): Likewise.
529 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
530 * python/py-inferior.c (infpy_dealloc): Likewise.
531 * python/py-lazy-string.c (stpy_dealloc): Likewise.
532 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
533 * python/py-symbol.c (sympy_dealloc): Likewise.
534 * python/py-symtab.c (stpy_dealloc): Likewise.
535 * python/py-type.c (typy_iterator_dealloc): Likewise.
536
537 2019-11-18 Christian Biesinger <cbiesinger@google.com>
538
539 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
540 constructor instead of using a class initializer.
541
542 2019-11-15 Christian Biesinger <cbiesinger@google.com>
543
544 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
545 * configure: Regenerate.
546 * configure.ac: Don't source common.host.
547 * gdbsupport/common.host: Remove.
548 * gdbsupport/mingw-strerror.c: Remove.
549 * gdbsupport/posix-strerror.c: Rename to...
550 * gdbsupport/safe-strerror.c: ...this.
551
552 2019-11-15 Christian Biesinger <cbiesinger@google.com>
553
554 * maint.c (scoped_command_stats::print_time): Use localtime_r
555 instead of localtime (provided through gnulib if necessary).
556 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
557 of ctime.
558
559 2019-11-15 Christian Biesinger <cbiesinger@google.com>
560
561 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
562 avoid compile errors.
563
564 2019-11-15 Christian Biesinger <cbiesinger@google.com>
565
566 * config.in: Regenerate.
567 * configure: Regenerate.
568 * gdbsupport/common.m4: No longer check for strerror_r.
569 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
570 POSIX version of strerror_r, now that gnulib provides it if
571 necessary.
572
573 2019-11-14 Christian Biesinger <cbiesinger@google.com>
574
575 * README (`configure' options): Update.
576
577 2019-11-14 Tom Tromey <tromey@adacore.com>
578
579 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
580 expected type for the RHS if the LHS is a convenience variable.
581
582 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
583
584 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
585 Provide explicit default and copy constructor.
586
587 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
588
589 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
590 only call Py_INCREF (newbp) in the bppy_pending_object case.
591
592 2019-11-13 Tom Tromey <tromey@adacore.com>
593
594 PR build/25182:
595 * psympriv.h (partial_symbol): Remove static assert.
596 * symtab.h (general_symbol_info, symbol): Remove static assert.
597
598 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
599
600 * gdbsupport/format.c (format_pieces::format_pieces): Support
601 printf 'z' size modifier.
602 * gdbsupport/format.h (enum argclass): Add size_t_arg.
603 * printcmd.c (ui_printf): Handle size_t_arg.
604 * ui-out.c (ui_out::vmessage): Likewise.
605 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
606 function.
607 (run_tests): Call test_format_int_sizes.
608
609 2019-11-12 Christian Biesinger <cbiesinger@google.com>
610
611 * ada-exp.y (write_ambiguous_var): Update.
612 * buildsym.c (add_symbol_to_list): Update.
613 * dwarf2read.c (read_variable): Update.
614 (new_symbol): Update.
615 * jit.c (finalize_symtab): Update.
616 * language.c (language_alloc_type_symbol): Update.
617 * symtab.c (fixup_symbol_section): Update.
618 (initialize_objfile_symbol_1): Move code to...
619 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
620 (allocate_symbol): Update.
621 (allocate_template_symbol): Update.
622 (get_symbol_address): Update.
623 * symtab.h (struct symbol): Inherit from general_symbol_info instead
624 of having as a field, and add a constructor.
625 (SYMBOL_VALUE): Update.
626 (SYMBOL_VALUE_ADDRESS): Update.
627 (SET_SYMBOL_VALUE_ADDRESS): Update.
628 (SYMBOL_VALUE_BYTES): Update.
629 (SYMBOL_VALUE_COMMON_BLOCK): Update.
630 (SYMBOL_BLOCK_VALUE): Update.
631 (SYMBOL_VALUE_CHAIN): Update.
632 (SYMBOL_LANGUAGE): Update.
633 (SYMBOL_SECTION): Update.
634 (SYMBOL_OBJ_SECTION): Update.
635 (SYMBOL_SET_LANGUAGE): Update.
636 (SYMBOL_SET_LINKAGE_NAME): Update.
637 (SYMBOL_SET_NAMES): Update.
638 (SYMBOL_NATURAL_NAME): Update.
639 (SYMBOL_LINKAGE_NAME): Update.
640 (SYMBOL_DEMANGLED_NAME): Update.
641 (SYMBOL_SEARCH_NAME): Update.
642 (SYMBOL_MATCHES_SEARCH_NAME): Update.
643 (struct symbol): Update.
644 (struct template_symbol): Update.
645 (struct rust_vtable_symbol): Update.
646 * xcoffread.c (SYMBOL_DUP): Update.
647
648 2019-11-12 Tom Tromey <tom@tromey.com>
649
650 * tui/tui-layout.c (show_layout): Set current_layout.
651 (show_source_disasm_command, show_data)
652 (show_source_or_disasm_and_command): Don't set current_layout.
653
654 2019-11-12 Tom Tromey <tom@tromey.com>
655
656 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
657
658 2019-11-12 Tom Tromey <tom@tromey.com>
659
660 * tui/tui-win.c (resize_message): New global.
661 (show_tui_resize_message): New function.
662 (tui_async_resize_screen): Print message if requested.
663 (_initialize_tui_win): Add tui-resize-message setting.
664 * NEWS: Add entry for new commands.
665
666 2019-11-11 Tom Tromey <tom@tromey.com>
667
668 * tui/tui.c (tui_initialize_readline): Add new bindable readline
669 functions.
670
671 2019-11-11 Christian Biesinger <cbiesinger@google.com>
672
673 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
674
675 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
676
677 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
678 function.
679 * python/python-internal.h (gdbpy_lookup_static_symbols):
680 Declare new function.
681 * python/python.c (python_GdbMethods): Add
682 gdb.lookup_static_symbols method.
683 * NEWS: Mention gdb.lookup_static_symbols.
684
685 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
686
687 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
688 static block of current object file first. Also fix typo in
689 header comment.
690
691 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
692
693 * stack.c (set_last_displayed_sal): Delete.
694 (last_displayed_sal_valid): Delete.
695 (last_displayed_pspace): Delete.
696 (last_displayed_addr): Delete.
697 (last_displayed_symtab): Delete.
698 (last_displayed_line): Delete.
699 (class last_displayed_symtab_info_type): New.
700 (last_displayed_symtab_info): New static global variable.
701 (print_frame_info): Call methods on last_displayed_symtab_info.
702 (clear_last_displayed_sal): Update header comment, and make use of
703 last_displayed_symtab_info.
704 (last_displayed_sal_is_valid): Likewise.
705 (get_last_displayed_pspace): Likewise.
706 (get_last_displayed_addr): Likewise.
707 (get_last_displayed_symtab): Likewise.
708 (get_last_displayed_line): Likewise.
709 (get_last_displayed_sal): Likewise.
710 * stack.h (clear_last_displayed_sal): Update header comment.
711 (last_displayed_sal_is_valid): Likewise.
712 (get_last_displayed_pspace): Likewise.
713 (get_last_displayed_addr): Likewise.
714 (get_last_displayed_symtab): Likewise.
715 (get_last_displayed_line): Likewise.
716 (get_last_displayed_sal): Likewise.
717
718 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
719
720 * stack.c (frame_show_address): Convert return type to bool.
721 * stack.h (frame_show_address): Likewise, and update header
722 comment.
723
724 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
725
726 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
727 * unittests/vec-utils-selftests.c: New file.
728 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
729
730 2019-11-10 Tom Tromey <tom@tromey.com>
731
732 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
733 (tui_highlight_win): Likewise.
734 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
735 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
736 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
737 Don't set can_highlight.
738
739 2019-11-10 Tom Tromey <tom@tromey.com>
740
741 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
742 Remove unused declaration.
743
744 2019-11-08 Tom Tromey <tromey@adacore.com>
745
746 * top.c (read_command_file): Update.
747 (command_line_input): Make return type const.
748 * python/py-gdb-readline.c: Update.
749 * linespec.c (decode_line_2): Update.
750 * defs.h (command_line_input): Make return type const.
751 * cli/cli-script.c (read_next_line): Make return type const.
752 * ada-lang.c (get_selections): Update.
753
754 2019-11-06 Christian Biesinger <cbiesinger@google.com>
755
756 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
757 * mi/mi-main.c (output_cores): Likewise.
758 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
759 (linux_xfer_osdata_modules): Likewise.
760 * remote.c (register_remote_support_xml): Likewise.
761 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
762 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
763
764 2019-11-06 Tom Tromey <tom@tromey.com>
765
766 * tui/tui-interp.c: Don't include readline.h.
767 * tui/tui-hooks.c: Don't include readline.h.
768 * symmisc.c: Include tilde.h, not readline.h.
769 * symfile.c: Include tilde.h, not readline.h.
770 * source.c: Include tilde.h, not readline.h.
771 * solib.c: Include tilde.h, not readline.h.
772 * psymtab.c: Include tilde.h, not readline.h.
773 * exec.c: Include tilde.h, not readline.h.
774 * corelow.c: Include tilde.h, not readline.h.
775 * cli/cli-dump.c: Include tilde.h, not readline.h.
776 * cli/cli-cmds.c: Don't include readline.h.
777
778 2019-11-05 Tom Tromey <tom@tromey.com>
779
780 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
781 (tui_disassemble): Set addr_size.
782 (tui_disasm_window::set_contents): Use addr_size.
783
784 2019-11-05 Tom Tromey <tom@tromey.com>
785
786 * rust-lang.c (rust_language_defn): Update.
787 * python/py-value.c (valpy_string): Call c_get_string.
788 * p-lang.c (pascal_language_defn): Update.
789 * opencl-lang.c (opencl_language_defn): Update.
790 * objc-lang.c (objc_language_defn): Update.
791 * m2-lang.c (m2_language_defn): Update.
792 * language.c (unknown_language_defn, auto_language_defn): Update.
793 (default_get_string): Remove.
794 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
795 * go-lang.c (go_language_defn): Update.
796 * f-lang.c (f_language_defn): Update.
797 * d-lang.c (d_language_defn): Update.
798 * c-lang.c (c_language_defn, cplus_language_defn)
799 (asm_language_defn, minimal_language_defn): Update.
800 * ada-lang.c (ada_language_defn): Update.
801 * language.h (struct language_defn) <la_get_string>: Remove.
802 (LA_GET_STRING): Remove.
803 (default_get_string): Don't declare.
804
805 2019-11-05 Tom Tromey <tom@tromey.com>
806
807 * tui/tui-source.h (struct tui_source_window): Inline
808 constructor. Remove destructor.
809 <style_changed, m_observable>: Move to superclass.
810 * tui/tui-winsource.h (tui_copy_source_line): Declare.
811 (struct tui_source_window_base): Move private members to end.
812 <style_changed, m_observable>: Move from tui_source_window.
813 * tui/tui-winsource.c (tui_copy_source_line): Move from
814 tui-source.c. Rename from copy_source_line. Add special handling
815 for negative line number.
816 (tui_source_window_base::style_changed): Move from
817 tui_source_window.
818 (tui_source_window_base): Register observer.
819 (~tui_source_window_base): New.
820 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
821 rename.
822 (tui_source_window::set_contents): Use tui_copy_source_line.
823 (tui_source_window::tui_source_window): Move to tui-source.h.
824 (tui_source_window::~tui_source_window): Remove.
825 (tui_source_window::style_changed): Move to superclass.
826 * tui/tui-disasm.c (tui_disassemble): Create string file with
827 styling, when possible. Add "addr_size" parameter.
828 (tui_disasm_window::set_contents): Use tui_copy_source_line.
829 Don't compute maximum size.
830 (len_without_escapes): New function
831
832 2019-11-05 Tom Tromey <tom@tromey.com>
833
834 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
835 std::string.
836 * tui/tui-winsource.c (tui_show_source_line): Update.
837 * tui/tui-source.c (tui_source_window::set_contents): Update.
838 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
839
840 2019-11-05 Christian Biesinger <cbiesinger@google.com>
841
842 * symtab.h (gdb_static_assert): Put && operator at the beginning
843 of the line instead of the end.
844
845 2019-11-04 Christian Biesinger <cbiesinger@google.com>
846
847 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
848 and sizeof (symbol).
849 * symtab.h: Add a static_assert for sizeof (partial_symbol).
850
851 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
852
853 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
854 * configure.host: Mark *-*-solaris2.10* obsolete.
855 * configure.tgt: Mark Solaris < 11 obsolete.
856 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
857 Update target triplet.
858
859 2019-11-01 Tom Tromey <tromey@adacore.com>
860
861 * utils.c (print_sys_errmsg): Simplify.
862
863 2019-11-01 Tom Tromey <tromey@adacore.com>
864
865 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
866
867 2019-11-01 Christian Biesinger <cbiesinger@google.com>
868
869 * configure: Regenerate.
870 * configure.ac: Remove check for strerror_r.
871 * gdbsupport/common.m4: Check for strerror_r.
872
873 2019-11-01 Luis Machado <luis.machado@linaro.org>
874
875 PR gdb/25124
876
877 * arm-tdep.c (arm_per_objfile): Rename to ...
878 (arm_per_bfd): ... this.
879 (arm_objfile_data_key): Rename to ...
880 (arm_bfd_data_key): ... this.
881 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
882 data.
883 (arm_record_special_symbol): Likewise.
884
885 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
886
887 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
888 end.
889 * c-typeprint.c (c_print_typedef): Likewise.
890 * f-typeprint.c (f_print_typedef): Likewise.
891 * m2-typeprint.c (m2_print_typedef): Likewise.
892 * p-typeprint.c (pascal_print_typedef): Likewise.
893 * rust-lang.c (rust_print_typedef): Likewise.
894 * symtab.c (print_symbol_info): Print a newline after calling
895 typedef_print.
896
897 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
898
899 * symtab.c (info_module_cmdlist): New variable.
900 (info_module_command): New function.
901 (search_module_symbols): New function.
902 (info_module_subcommand): New function.
903 (struct info_modules_var_func_options): New struct.
904 (info_modules_var_func_options_defs): New variable.
905 (make_info_modules_var_func_options_def_group): New function.
906 (info_module_functions_command): New function.
907 (info_module_variables_command): New function.
908 (info_module_var_func_command_completer): New function.
909 (_initialize_symtab): Register new 'info module functions' and
910 'info module variables' commands.
911 * symtab.h (typedef symbol_search_in_module): New typedef.
912 (search_module_symbols): Declare new function.
913 * NEWS: Mention new commands.
914
915 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
916
917 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
918 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
919 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
920 MODULES_DOMAIN.
921 (scan_partial_symbols): Only create partial module symbols for non
922 declarations.
923 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
924 and MODULES_DOMAIN.
925 * symtab.c (search_domain_name): Likewise.
926 (search_symbols): Likewise.
927 (print_symbol_info): Likewise.
928 (symtab_symbol_info): Likewise.
929 (info_modules_command): New function.
930 (_initialize_symtab): Register 'info modules' command.
931 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
932 * NEWS: Mention new 'info modules' command.
933
934 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
935
936 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
937 and $_gdb_maint_setting_str.
938
939 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
940
941 * cli/cli-cmds.c (setting_cmd, value_from_setting)
942 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
943 (str_value_from_setting, gdb_setting_str_internal_fn)
944 (gdb_maint_setting_str_internal_fn): New functions.
945 (_initialize_cli_cmds): Define the new convenience functions.
946 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
947 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
948
949 2019-10-31 Christian Biesinger <cbiesinger@google.com>
950
951 * agent.c (set_can_use_agent): When the setting is turned on,
952 look up agent symbols if we don't have them yet.
953 (agent_new_objfile): Don't look up agent symbols when the agent
954 setting is off.
955
956 2019-10-31 Christian Biesinger <cbiesinger@google.com>
957
958 * config.in: Regenerate.
959
960 2019-10-31 Christian Biesinger <cbiesinger@google.com>
961
962 * configure: Regenerate.
963 * configure.ac: Check for strerror_r.
964 * gdbsupport/common-utils.h (safe_strerror): Change return value
965 to const char * and document that this function is now threadsafe.
966 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
967 thread_local and call strerror_r, if available.
968 * utils.c (perror_string): Update.
969 (print_sys_errmsg): Update.
970
971 2019-10-31 Luis Machado <luis.machado@linaro.org>
972
973 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
974 objfile_key.
975 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
976 objfile to fetch per-bfd data.
977 (arm_find_exidx_entry): Likewise.
978
979 2019-10-31 Christian Biesinger <cbiesinger@google.com>
980
981 * gdbsupport/agent.c (debug_agent): Change type to bool.
982 (use_agent): Likewise.
983 (all_agent_symbols_look_up): Likewise.
984 (agent_loaded_p): Change return value to bool.
985 (agent_look_up_symbols): Update.
986 (agent_capability_check): Change return value to bool.
987 * gdbsupport/agent.h (agent_loaded_p): Likewise.
988 (debug_agent): Change type to bool.
989 (use_agent): Likewise.
990 (agent_capability_check): Change return value to bool.
991
992 2019-10-30 Christian Biesinger <cbiesinger@google.com>
993
994 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
995 (build_minimal_symbol_hash_tables): Code to clear the table moved
996 to clear_minimal_symbol_hash_tables.
997 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
998 when needed.
999
1000 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1001
1002 * infcmd.c: Remove includes.
1003 * infrun.c: Remove includes.
1004
1005 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1006
1007 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1008 (grow_vect): Remove declaration.
1009 (ada_type_of_array): Remove declaration.
1010 (ada_update_initial_language): Remove declaration.
1011 (ada_fold_name): Remove declaration.
1012 (ada_fill_in_ada_prototype): Remove declaration.
1013 (user_select_syms): Remove declaration.
1014 (get_selections): Remove declaration.
1015 (ada_tag_type): Remove declaration.
1016 (ada_value_tag): Remove declaration.
1017 (ada_is_others_clause): Remove declaration.
1018 (ada_in_variant): Remove declaration.
1019 (ada_value_struct_elt): Remove declaration.
1020 (ada_attribute_name): Remove declaration.
1021 (ada_system_address_type): Remove declaration.
1022 * ada-lang.c (ada_watch_location_expression): Make static.
1023 (GROW_VECT): Move here from ada-lang.h.
1024 (grow_vect): Make static.
1025 (ada_update_initial_language): Make static.
1026 (ada_fold_name): Make static.
1027 (ada_type_of_array): Make static.
1028 (encoded_ordered_before): Move up.
1029 (sort_choices): Move up.
1030 (print_signatures): Move up.
1031 (ada_print_symbol_signature): Move up.
1032 (get_selections): Move up and make static.
1033 (user_select_syms): Move up and make static.
1034 (ada_value_struct_elt): Move up and make static.
1035 (ada_tag_type): Make static.
1036 (ada_value_tag): Make static.
1037 (ada_is_others_clause): Make static.
1038 (ada_in_variant): Make static.
1039 (ada_attribute_name): Make static.
1040
1041 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1042
1043 * ada-lang.c: Remove includes.
1044 * ada-typeprint.c: Remove includes.
1045 * ada-valprint.c: Remove includes.
1046
1047 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1048
1049 * addrmap.c: Add static assertions of type size, moved from
1050 _initialize_addrmap.
1051 (_initialize_addrmap): Remove.
1052
1053 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1054
1055 * coffread.c (record_minimal_symbol): Update.
1056 (process_coff_symbol): Update.
1057 * dbxread.c (read_dbx_symtab): Update.
1058 * dwarf2read.c (add_partial_symbol): Update.
1059 (fixup_go_packaging): Update.
1060 (load_partial_dies): Update.
1061 (new_symbol): Update.
1062 * elfread.c (record_minimal_symbol): Change signature to use
1063 gdb::string_view instead of name+len.
1064 (elf_symtab_read): Update.
1065 (elf_rel_plt_read): Update.
1066 * mdebugread.c (parse_partial_symbols): Update.
1067 (handle_psymbol_enumerators): Update.
1068 (new_symbol): Update.
1069 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1070 to use gdb::string_view instead of name+len.
1071 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1072 * psympriv.h (add_psymbol_to_list): Likewise.
1073 * psymtab.c (add_psymbol_to_bcache): Likewise.
1074 (add_psymbol_to_list): Likewise.
1075 * stabsread.c (define_symbol): Update.
1076 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1077 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1078 (symbol_set_names): Likewise.
1079 * xcoffread.c (scan_xcoff_symtab): Update.
1080
1081 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1082
1083 * symtab.h (symbol_set_names): Document that copy_name must be
1084 set to true for non-nullterminated strings.
1085 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1086 linkage_name if the entry was not found and we need to demangle.
1087
1088 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1089
1090 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1091 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1092 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1093 * gdbsupport/gdb_binary_search.h: New file.
1094
1095 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1096
1097 * NEWS: Mention new --with-system-gdbinit-dir option.
1098 * config.in: Regenerate.
1099 * configure: Regenerate.
1100 * configure.ac: Add new option --with-system-gdbinit-dir.
1101 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1102 for a ".gdb" suffix.
1103 * main.c (get_init_files): Change system_gdbinit argument to
1104 a vector and return the files in SYSTEM_GDBINIT_DIR in
1105 addition to SYSTEM_GDBINIT.
1106 (captured_main_1): Update.
1107 (print_gdb_help): Update.
1108 * top.c (print_gdb_configuration): Also print the value of
1109 SYSTEM_GDBINIT_DIR.
1110
1111 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1112
1113 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1114 that takes gdb::string_view arguments.
1115
1116 2019-10-26 Tom de Vries <tdevries@suse.de>
1117
1118 * aarch64-linux-tdep.c: Fix typos in comments.
1119 * aarch64-tdep.c: Same.
1120 * ada-lang.c: Same.
1121 * amd64-nat.c: Same.
1122 * arc-tdep.c: Same.
1123 * arch/aarch64-insn.c: Same.
1124 * block.c: Same.
1125 * breakpoint.h: Same.
1126 * btrace.h: Same.
1127 * c-varobj.c: Same.
1128 * cli/cli-decode.c: Same.
1129 * cli/cli-script.c: Same.
1130 * cli/cli-utils.h: Same.
1131 * coff-pe-read.c: Same.
1132 * coffread.c: Same.
1133 * compile/compile-cplus-symbols.c: Same.
1134 * compile/compile-object-run.c: Same.
1135 * completer.c: Same.
1136 * corelow.c: Same.
1137 * cp-support.c: Same.
1138 * demangle.c: Same.
1139 * dwarf-index-write.c: Same.
1140 * dwarf2-frame.c: Same.
1141 * dwarf2-frame.h: Same.
1142 * eval.c: Same.
1143 * frame-base.h: Same.
1144 * frame.h: Same.
1145 * gdbcmd.h: Same.
1146 * gdbtypes.h: Same.
1147 * gnu-nat.c: Same.
1148 * guile/scm-objfile.c: Same.
1149 * i386-tdep.c: Same.
1150 * i386-tdep.h: Same.
1151 * infcall.c: Same.
1152 * infcall.h: Same.
1153 * linux-nat.c: Same.
1154 * m68k-tdep.c: Same.
1155 * macroexp.c: Same.
1156 * memattr.c: Same.
1157 * mi/mi-cmd-disas.c: Same.
1158 * mi/mi-getopt.h: Same.
1159 * mi/mi-main.c: Same.
1160 * minsyms.c: Same.
1161 * nat/aarch64-sve-linux-sigcontext.h: Same.
1162 * objfiles.h: Same.
1163 * ppc-linux-nat.c: Same.
1164 * ppc-linux-tdep.c: Same.
1165 * ppc-tdep.h: Same.
1166 * progspace.h: Same.
1167 * prologue-value.h: Same.
1168 * python/py-evtregistry.c: Same.
1169 * python/py-instruction.h: Same.
1170 * record-btrace.c: Same.
1171 * record-full.c: Same.
1172 * remote.c: Same.
1173 * rs6000-tdep.c: Same.
1174 * ser-tcp.c: Same.
1175 * sol-thread.c: Same.
1176 * sparc-sol2-tdep.c: Same.
1177 * sparc64-tdep.c: Same.
1178 * stabsread.c: Same.
1179 * symfile.c: Same.
1180 * symtab.h: Same.
1181 * target.c: Same.
1182 * tracepoint.c: Same.
1183 * tui/tui-data.h: Same.
1184 * tui/tui-io.c: Same.
1185 * tui/tui-win.c: Same.
1186 * tui/tui.c: Same.
1187 * unittests/rsp-low-selftests.c: Same.
1188 * user-regs.h: Same.
1189 * utils.c: Same.
1190 * utils.h: Same.
1191 * valarith.c: Same.
1192 * valops.c: Same.
1193 * valprint.c: Same.
1194 * valprint.h: Same.
1195 * value.c: Same.
1196 * value.h: Same.
1197 * varobj.c: Same.
1198 * x86-nat.h: Same.
1199 * xtensa-tdep.c: Same.
1200
1201 2019-10-25 Ali Tamur <tamur@google.com>
1202
1203 * charset.c (find_charset_names): Reflect API change.
1204
1205 2019-10-25 Christian Biesinger <cbiesinger@google.com>
1206
1207 * symtab.c (struct demangled_name_entry): Change demangled name
1208 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1209 part of the struct anymore.
1210 (symbol_set_names): No longer obstack allocate + copy the demangled
1211 name, just store the allocated name from bfd.
1212
1213 2019-10-25 Tom Tromey <tromey@adacore.com>
1214
1215 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1216 (bsearch_cie_cmp, add_cie): Remove.
1217 (find_cie): Reimplement.
1218 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1219 (dwarf2_build_frame_info): Update.
1220
1221 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1222
1223 PR gdb/25126
1224 * symfile.c (reread_symbols): Call forget_cached_source_info to
1225 clear the stale source cache.
1226
1227 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1228
1229 * configure: Regenerate.
1230 * configure.ac: Remove code that sets python_has_threads.
1231
1232 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1233
1234 * config.in: Regenerate.
1235 * configure: Regenerate.
1236 * configure.ac: Remove the code that uses sed to get the python
1237 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1238
1239 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1240
1241 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1242 error paths.
1243
1244 2019-10-23 Tom Tromey <tom@tromey.com>
1245
1246 * arc-tdep.c: Remove ".." from include.
1247 * frv-tdep.c: Remove ".." from include.
1248 * lm32-tdep.c: Remove ".." from include.
1249 * microblaze-tdep.c: Remove ".." from include.
1250 * or1k-tdep.h: Remove ".." from include.
1251 * s12z-tdep.c: Remove ".." from include.
1252 * Makefile.in (OPCODES_CFLAGS): Add comment.
1253 (TOP_CFLAGS): New variable.
1254 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1255
1256 2019-10-23 Tom Tromey <tom@tromey.com>
1257
1258 * Makefile.in (READLINE_DIR): Update.
1259
1260 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1261
1262 * infcall.c (call_function_by_hand_dummy): Fix the function
1263 comment. And extract out a code section into...
1264 (reserve_stack_space): ...this new function.
1265
1266 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1267
1268 * infcall.c (value_arg_coerce): Remove an unused parameter.
1269 (call_function_by_hand_dummy): Update the call to
1270 'value_arg_coerce'.
1271
1272 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1273
1274 * infcall.c (call_function_by_hand_dummy): Refactor.
1275
1276 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1277
1278 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1279
1280 2019-10-23 Tom Tromey <tom@tromey.com>
1281
1282 * configure: Rebuild.
1283 * configure.ac: Don't check for sigprocmask.
1284 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1285
1286 2019-10-23 Tom Tromey <tom@tromey.com>
1287
1288 * configure: Rebuild.
1289 * acinclude.m4: Use m4_include, not sinclude.
1290
1291 2019-10-23 Tom de Vries <tdevries@suse.de>
1292
1293 PR breakpoints/24687
1294 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1295
1296 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1297
1298 * symtab.c (struct demangled_name_entry) <language>: Change from
1299 bitfield to regular variable.
1300
1301 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1302
1303 * symtab.c (struct demangled_name_entry): Add a constructor.
1304 (free_demangled_name_entry): New function to call the destructor
1305 for demangled_name_entry.
1306 (create_demangled_names_hash): Pass free_demangled_name_entry to
1307 htab_create_alloc.
1308 (symbol_set_names): Call placement new for demangled_name_entry.
1309 * utils.c: No longer include xxhash.h here, now that fast_hash
1310 is inlined in the header.
1311 * utils.h: Instead, include it here.
1312
1313 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1314
1315 * Makefile.in: Link with libxxhash.
1316 * config.in: Regenerate.
1317 * configure: Regenerate.
1318 * configure.ac: Search for libxxhash.
1319 * utils.c (fast_hash): Use xxhash if present.
1320
1321 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1322
1323 * utils.h (fast_hash): New function.
1324 * symtab.c (hash_demangled_name_entry): Call new function
1325 fast_hash.
1326
1327 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1328
1329 * symtab.c (struct demangled_name_entry): Change type of mangled
1330 to gdb::string_view. Also adds a constructor that takes the
1331 mangled name.
1332 (hash_demangled_name_entry): Update.
1333 (eq_demangled_name_entry): Update.
1334 (free_demangled_name_entry): New function to call the destructor
1335 now that this is not a POD anymore.
1336 (create_demangled_names_hash): Pass free_demangled_name_entry to
1337 htab_create_alloc.
1338 (symbol_set_names): Update.
1339
1340 2019-10-21 Ali Tamur <tamu@google.com>
1341
1342 * dwarf2read.c (dir_index): Change type.
1343 (file_name_index): Likewise.
1344 (line_header::include_dir_at): Change comment and implementation on
1345 whether it is DWARF 5.
1346 (line_header::is_valid_file_index): New function.
1347 (line_header::file_name_at): Change comment and implementation on
1348 whether it is DWARF 5.
1349 (line_header::file_names): Change to private field renamed as
1350 m_file_names and introduce a new accessor method.
1351 (line_header::file_names_size): New method.
1352 (line_header::include_dirs): Change to private field and rename as
1353 m_include_dirs.
1354 (dw2_get_file_names_reader): Define local var at a smaller scope and
1355 reflect API change.
1356 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1357 (process_structure_scope): Likewise.
1358 (line_header::add_include_dir): Change message and reflect renaming.
1359 (line_header::add_file_name): Likewise.
1360 (read_formatted_entries): Handle DW_FORM_data16.
1361 (dwarf_decode_line_header): Fix line header length calculation.
1362 (psymtab_include_file_name): Change comment and API.
1363 (lnp_state_machine::m_file): Update comment and reflect type change.
1364 (lnp_state_machine::record_line): Reflect type change.
1365 (dwarf_decode_lines): Reflect API change.
1366 (file_file_name): Likewise.
1367 (file_full_name): Likewise.
1368
1369 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1370
1371 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1372
1373 2019-10-21 Tom Tromey <tom@tromey.com>
1374
1375 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1376
1377 2019-10-21 Tom Tromey <tom@tromey.com>
1378
1379 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1380 NM_H. Use AC_CONFIG_LINKS.
1381 * configure: Rebuild.
1382 * Makefile.in (NM_H): New variable.
1383 (generated_files): Add NM_H. Remove gcore.
1384 (nm.h, stamp-nmh): New targets.
1385
1386 2019-10-20 Tom Tromey <tom@tromey.com>
1387
1388 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1389 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1390 obsolete comment.
1391 (put_objfile_before): Now static.
1392
1393 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1394
1395 * gdbsupport/common-utils.h (startswith): Change return type to
1396 bool.
1397
1398 2019-10-19 Christian Biesinger <cbiesinger@google.com>
1399
1400 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1401 * breakpoint.c (bp_locations_compare): Rename to...
1402 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1403 (update_global_location_list): Use std::sort instead of qsort.
1404 * buildsym.c (compare_line_numbers): Rename to...
1405 (lte_is_less_than): ...this, and change to std::sort semantics.
1406 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1407 instead of qsort.
1408 * disasm.c (compare_lines): Rename to...
1409 (line_is_less_than): ...this, and change to std::sort semantics.
1410 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1411 of qsort.
1412 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1413 (fde_is_less_than): ...this, and change to std::sort semantics.
1414 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1415 * mdebugread.c (compare_blocks):
1416 (block_is_less_than): ...this, and change to std::sort semantics.
1417 (sort_blocks): Call std::sort instead of qsort.
1418 * objfiles.c (qsort_cmp): Rename to...
1419 (sort_cmp): ...this, and change to std::sort semantics.
1420 (update_section_map): Call std::sort instead of qsort.
1421 * remote.c (compare_pnums): Remove.
1422 (map_regcache_remote_table): Call std::sort instead of qsort.
1423 * utils.c (compare_positive_ints): Remove.
1424 * utils.h (compare_positive_ints): Remove.
1425 * xcoffread.c (compare_lte): Remove.
1426 (arrange_linetable): Call std::sort instead of qsort.
1427
1428 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1429
1430 * symfile.c (init_entry_point_info): Fix typo.
1431 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1432
1433 2019-10-18 Tom de Vries <tdevries@suse.de>
1434
1435 * aarch64-tdep.c: Fix typos in comments.
1436 * ada-lang.c: Same.
1437 * ada-tasks.c: Same.
1438 * alpha-tdep.c: Same.
1439 * alpha-tdep.h: Same.
1440 * amd64-nat.c: Same.
1441 * amd64-windows-tdep.c: Same.
1442 * arc-tdep.c: Same.
1443 * arc-tdep.h: Same.
1444 * arch-utils.c: Same.
1445 * arm-nbsd-tdep.c: Same.
1446 * arm-tdep.c: Same.
1447 * ax-gdb.c: Same.
1448 * blockframe.c: Same.
1449 * btrace.c: Same.
1450 * c-varobj.c: Same.
1451 * coff-pe-read.c: Same.
1452 * coffread.c: Same.
1453 * cris-tdep.c: Same.
1454 * darwin-nat.c: Same.
1455 * dbxread.c: Same.
1456 * dcache.c: Same.
1457 * disasm.c: Same.
1458 * dtrace-probe.c: Same.
1459 * dwarf-index-write.c: Same.
1460 * dwarf2-frame-tailcall.c: Same.
1461 * dwarf2-frame.c: Same.
1462 * dwarf2read.c: Same.
1463 * eval.c: Same.
1464 * exceptions.c: Same.
1465 * fbsd-tdep.c: Same.
1466 * findvar.c: Same.
1467 * frame.c: Same.
1468 * frv-tdep.c: Same.
1469 * gnu-v3-abi.c: Same.
1470 * go32-nat.c: Same.
1471 * h8300-tdep.c: Same.
1472 * hppa-tdep.c: Same.
1473 * i386-linux-tdep.c: Same.
1474 * i386-tdep.c: Same.
1475 * ia64-libunwind-tdep.c: Same.
1476 * ia64-tdep.c: Same.
1477 * infcmd.c: Same.
1478 * infrun.c: Same.
1479 * linespec.c: Same.
1480 * linux-nat.c: Same.
1481 * linux-thread-db.c: Same.
1482 * machoread.c: Same.
1483 * mdebugread.c: Same.
1484 * mep-tdep.c: Same.
1485 * mn10300-tdep.c: Same.
1486 * namespace.c: Same.
1487 * objfiles.c: Same.
1488 * opencl-lang.c: Same.
1489 * or1k-tdep.c: Same.
1490 * osabi.c: Same.
1491 * ppc-linux-nat.c: Same.
1492 * ppc-linux-tdep.c: Same.
1493 * ppc-sysv-tdep.c: Same.
1494 * printcmd.c: Same.
1495 * procfs.c: Same.
1496 * record-btrace.c: Same.
1497 * record-full.c: Same.
1498 * remote-fileio.c: Same.
1499 * remote.c: Same.
1500 * rs6000-tdep.c: Same.
1501 * s12z-tdep.c: Same.
1502 * score-tdep.c: Same.
1503 * ser-base.c: Same.
1504 * ser-go32.c: Same.
1505 * skip.c: Same.
1506 * sol-thread.c: Same.
1507 * solib-svr4.c: Same.
1508 * solib.c: Same.
1509 * source.c: Same.
1510 * sparc-nat.c: Same.
1511 * sparc-sol2-tdep.c: Same.
1512 * sparc-tdep.c: Same.
1513 * sparc64-tdep.c: Same.
1514 * stabsread.c: Same.
1515 * stack.c: Same.
1516 * symfile.c: Same.
1517 * symtab.c: Same.
1518 * target-descriptions.c: Same.
1519 * target-float.c: Same.
1520 * thread.c: Same.
1521 * utils.c: Same.
1522 * valops.c: Same.
1523 * valprint.c: Same.
1524 * value.c: Same.
1525 * varobj.c: Same.
1526 * windows-nat.c: Same.
1527 * xcoffread.c: Same.
1528 * xstormy16-tdep.c: Same.
1529 * xtensa-tdep.c: Same.
1530
1531 2019-10-17 Tom Tromey <tromey@adacore.com>
1532
1533 * configure: Rebuild.
1534 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1535 in AC_CONFIG_FILES invocation.
1536 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1537 new-style config.status invocation.
1538
1539 2019-10-17 Tom de Vries <tdevries@suse.de>
1540
1541 * arm-nbsd-nat.c: Fix typos in comments.
1542 * arm-tdep.c: Same.
1543 * darwin-nat-info.c: Same.
1544 * dwarf2read.c: Same.
1545 * elfread.c: Same.
1546 * event-top.c: Same.
1547 * findvar.c: Same.
1548 * gdbtypes.c: Same.
1549 * hppa-tdep.c: Same.
1550 * i386-tdep.c: Same.
1551 * jit.c: Same.
1552 * main.c: Same.
1553 * mdebugread.c: Same.
1554 * moxie-tdep.c: Same.
1555 * nto-procfs.c: Same.
1556 * osabi.c: Same.
1557 * ppc-linux-tdep.c: Same.
1558 * remote.c: Same.
1559 * riscv-tdep.c: Same.
1560 * s390-tdep.c: Same.
1561 * sh-tdep.c: Same.
1562 * sparc-linux-tdep.c: Same.
1563 * sparc-nat.c: Same.
1564 * stack.c: Same.
1565 * target-descriptions.c: Same.
1566 * top.c: Same.
1567 * varobj.c: Same.
1568
1569 2019-10-16 Tom Tromey <tom@tromey.com>
1570
1571 * objfiles.h (struct objfile) <original_name>: Now const.
1572
1573 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1574
1575 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1576 pass on to sigsetjmp's second argument.
1577 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1578
1579 2019-10-16 Keith Seitz <keiths@redhat.com>
1580
1581 PR gdb/23567
1582 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1583 sections whose size is greater than the file size.
1584
1585 2019-10-16 Jim Wilson <jimw@sifive.com>
1586
1587 * riscv-tdep.c (riscv_gcc_target_options): New.
1588 (riscv_gnu_triplet_regexp): New.
1589 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1590 set_gdbarch_gnu_triplet_regexp.
1591
1592 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1593
1594 * Makefile.in: Add xml-builtin.h.
1595 * features/feature_to_c.sh: Add an include for xml-builtin.h
1596 to ensure that the compiler checks that the types match.
1597 * xml-builtin.h: New file.
1598 * xml-support.c (fetch_xml_builtin): Add missing const.
1599 * xml-support.h: Remove declaration of xml_builtins.
1600
1601 2019-10-16 Tom de Vries <tdevries@suse.de>
1602
1603 PR tdep/25096
1604 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1605 (amd64_classify_aggregate): ... here.
1606 (amd64_classify_aggregate_field): Handled fiels of nested structs
1607 recursively.
1608
1609 2019-10-16 Tom de Vries <tdevries@suse.de>
1610
1611 PR tdep/24104
1612 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1613 that handles 'theclass'.
1614
1615 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1616
1617 * linespec.c (decode_digits_ordinary): Update comment.
1618 * make-target-delegates: No longer need to handle VEC case.
1619 * memrange.c (normalize_mem_ranges): Update comment.
1620 * namespace.c (add_using_directive): Update comment.
1621 * objc-lang.c (uniquify_strings): Update comment.
1622 * ppc-linux-nat.c (struct thread_points): Update comment.
1623 * probe.h (find_probes_in_objfile): Update comment.
1624 * target.h (enum flash_preserve_mode): Update comment.
1625 * varobj.c (varobj_restrict_range): Update comment.
1626 * varobj.h (varobj_list_children): Update comment.
1627
1628 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1629
1630 * Makefile.in: Remove references to vec.h and vec.c.
1631 * aarch64-tdep.c: No longer include vec.h.
1632 * ada-lang.c: Likewise.
1633 * ada-lang.h: Likewise.
1634 * arm-tdep.c: Likewise.
1635 * ax.h: Likewise.
1636 * breakpoint.h: Likewise.
1637 * charset.c: Likewise.
1638 * cp-support.h: Likewise.
1639 * dtrace-probe.c: Likewise.
1640 * dwarf2read.c: Likewise.
1641 * extension.h: Likewise.
1642 * gdb_bfd.c: Likewise.
1643 * gdbsupport/gdb_vecs.h: Likewise.
1644 * gdbsupport/vec.c: Remove.
1645 * gdbsupport/vec.h: Remove.
1646 * gdbthread.h: Likewise.
1647 * guile/scm-type.c: Likewise.
1648 * inline-frame.c: Likewise.
1649 * machoread.c: Likewise.
1650 * memattr.c: Likewise.
1651 * memrange.h: Likewise.
1652 * namespace.h: Likewise.
1653 * nat/linux-btrace.h: Likewise.
1654 * osdata.c: Likewise.
1655 * parser-defs.h: Likewise.
1656 * progspace.h: Likewise.
1657 * python/py-type.c: Likewise.
1658 * record-btrace.c: Likewise.
1659 * rust-exp.y: Likewise.
1660 * solib-target.c: Likewise.
1661 * stap-probe.c: Likewise.
1662 * target-descriptions.c: Likewise.
1663 * target-memory.c: Likewise.
1664 * target.h: Likewise.
1665 * varobj.c: Likewise.
1666 * varobj.h: Likewise.
1667 * xml-support.h: Likewise.
1668
1669 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1670
1671 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1672 Update for new std::vector based implementation.
1673 (process_psymtab_comp_unit_reader): Likewise.
1674 (scan_partial_symbols): Likewise.
1675 (recursively_compute_inclusions): Likewise.
1676 (compute_compunit_symtab_includes): Likewise.
1677 (process_imported_unit_die): Likewise.
1678 (queue_and_load_dwo_tu): Likewise.
1679 (follow_die_sig_1): Likewise.
1680 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1681 (typedef dwarf2_per_cu_ptr): Remove.
1682 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1683 function.
1684 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1685 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1686 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1687 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1688 std::vector.
1689
1690 2019-10-15 Tom Tromey <tromey@adacore.com>
1691
1692 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1693 TID.
1694
1695 2019-10-15 Tom Tromey <tromey@adacore.com>
1696
1697 * windows-nat.c (windows_nat_target::fetch_registers)
1698 (windows_nat_target::store_registers): Rename "pid" to "tid".
1699
1700 2019-10-15 Tom Tromey <tromey@adacore.com>
1701
1702 * gdbarch.h, gdbarch.c: Rebuild.
1703 * gdbarch.sh (gcc_target_options): Change return type to
1704 std::string.
1705 * compile/compile.c (get_args): Update.
1706 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1707 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1708 std::string.
1709 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1710 std::string.
1711 * arch-utils.c (default_gcc_target_options): Return std::string.
1712 * arch-utils.h (default_gcc_target_options): Return std::string.
1713 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1714
1715 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1716
1717 * breakpoint.c (breakpoint_chain): Make static.
1718 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1719 of accessing breakpoint_chain.
1720
1721 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1722
1723 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1724 to a gdb::function_view and return value to bool.
1725 * breakpoint.h (iterate_over_breakpoints): Likewise.
1726 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1727 (pop_dummy_frame): Update.
1728 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1729 (gdbscm_breakpoints): Update.
1730 * python/py-breakpoint.c (build_bp_list): Update.
1731 (gdbpy_breakpoints): Update.
1732 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1733 Update.
1734 (bpfinishpy_handle_stop): Update.
1735 (bpfinishpy_handle_exit): Update.
1736 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1737 (svr4_update_solib_event_breakpoints): Update.
1738
1739 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1740
1741 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1742 when unwrapping single-field structs.
1743
1744 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1745
1746 * dwarf2read.c: Remove includes.
1747
1748 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1749
1750 * ui-out.c (ui_out::call_do_message): Silence
1751 -Wformat-nonliteral warning.
1752
1753 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1754
1755 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1756 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1757 include: readline/tilde.h.
1758
1759 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1760
1761 * remote.c (remote_target::get_trace_status): Remove declaration of
1762 trace_regblock_size.
1763
1764 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1765
1766 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1767 (show_user): Remove declaration of cmdlist.
1768 * cli/cli-cmds.h (max_user_call_depth): Declare.
1769 * cli/cli-script.c (execute_user_command): Remove declaration
1770 of max_user_call_depth.
1771
1772 2019-10-11 Jim Wilson <jimw@sifive.com>
1773
1774 * gdbsupport/print-utils.h (pulongest): Fix comment.
1775 (plongest): Likewise.
1776 (phex): Add missing comment, mention leading zeros.
1777 (phex_nz): Add mention of no leading zeros to comment.
1778
1779 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1780 plongest instead of unsigned long long cast.
1781
1782 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1783
1784 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1785 for external_editor_command and gdbtk_test.
1786
1787 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1788
1789 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1790 * varobj.c (varobjdebug): Move comment to...
1791 * varobj.h (varobjdebug): ...here, and declare.
1792
1793 2019-10-09 Tom Tromey <tom@tromey.com>
1794
1795 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1796 erase_data_content.
1797
1798 2019-10-09 Tom Tromey <tom@tromey.com>
1799
1800 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1801 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1802 * tui/tui-command.c (tui_cmd_window::resize)
1803 (tui_refresh_cmd_win): Update.
1804 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1805 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1806 * tui/tui-data.c (~tui_gen_win_info): Remove.
1807 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1808 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1809 (tui_redisplay_readline, tui_mld_flush)
1810 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1811 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1812 (tui_data_window::erase_data_content)
1813 (tui_data_item_window::rerender)
1814 (tui_data_item_window::refresh_window): Update.
1815 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1816 (box_win, tui_gen_win_info::make_window)
1817 (tui_gen_win_info::make_visible): Update.
1818 (tui_delete_win): Remove.
1819 * tui/tui-winsource.c
1820 (tui_source_window_base::do_erase_source_content): Update.
1821 (tui_show_source_line, tui_source_window_base::update_tab_width)
1822 (tui_source_window_base::update_exec_info): Update.
1823 * tui/tui-data.h (struct curses_deleter): New.
1824 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1825 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1826
1827 2019-10-09 Tom Tromey <tom@tromey.com>
1828
1829 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1830
1831 2019-10-09 Tom Tromey <tom@tromey.com>
1832
1833 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
1834 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
1835
1836 2019-10-09 Tom Tromey <tom@tromey.com>
1837
1838 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
1839 window height directly.
1840 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
1841 declare.
1842 * tui/tui-layout.c (tui_default_win_height): Remove.
1843 (tui_default_win_viewport_height): Remove.
1844
1845 2019-10-09 Tom Tromey <tom@tromey.com>
1846
1847 * tui/tui.h: Remove comments.
1848
1849 2019-10-09 Tom de Vries <tdevries@suse.de>
1850
1851 * python/lib/gdb/printer/bound_registers.py: Use
1852 '^builtin_type_bound128' as regexp argument for
1853 add_builtin_pretty_printer.
1854
1855 2019-10-09 Christian Biesinger <cbiesinger@google.com>
1856
1857 * guile/guile.c (guile_extension_script_ops): Remove forward
1858 declaration and mark as static.
1859 (guile_script_ops): Likewise.
1860 (extension_language_guile): Move further down in the file so
1861 it can reference the definitions for guile_{extension_,}script_ops.
1862
1863 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
1864
1865 * s390-tdep.c (390_process_record): Handle new arch13 instructions
1866 except SORTL, DFLTCC, and KDSA.
1867
1868 2019-10-08 Tom Tromey <tromey@adacore.com>
1869
1870 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
1871 (struct safe_symbol_file_add_args): Remove.
1872
1873 2019-10-08 Tom Tromey <tromey@adacore.com>
1874
1875 * windows-nat.c: Don't include buildsym-legacy.h.
1876
1877 2019-10-08 Tom Tromey <tromey@adacore.com>
1878
1879 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
1880
1881 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1882
1883 * gdbtypes.c (overload_debug): Move comment to header.
1884 * gdbtypes.h (overload_debug): Declare.
1885 * valops.c: Remove declaration of overload_debug, instead
1886 include gdbtypes.h.
1887
1888 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1889
1890 * language.c (show_language_command): Pass lang_frame_mismatch_warn
1891 through _().
1892 (lang_frame_mismatch_warn): Make const, mark with N_(), and
1893 move comment...
1894 * language.h (lang_frame_mismatch_warn): ... here. Also add
1895 declaration.
1896 * top.c (lang_frame_mismatch_warn): Remove declaration.
1897 (check_frame_language_change): Pass lang_frame_mismatch_warn
1898 through _().
1899
1900 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1901
1902 * c-lang.h (vtbl_ptr_name): Declare.
1903 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
1904 it from the header.
1905 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
1906
1907 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1908
1909 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
1910 gdb_static_assert.
1911
1912 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1913
1914 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1915 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
1916 * ctfread.c: New file.
1917 * ctfread.h: New file.
1918 * elfread.c: Include ctfread.h.
1919 (struct elfinfo text_p): New member ctfsect.
1920 (elf_locate_sections): Mark CTF section.
1921 (elf_symfile_read): Call elfctf_build_psymtabs.
1922 * Makefile.in (LIBCTF): Add.
1923 (CLIBS): Use it.
1924 (CDEPS): Likewise.
1925 (DIST): Add ctfread.c.
1926
1927 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1928
1929 * ctfread.c (struct nextfield): Renamed to ...
1930 (struct ctf_nextfield): ... this.
1931 (struct field_info): Renamed to ...
1932 (strut ctf_field_info): ... this.
1933 (attach_fields_to_type): Update for renamed structures.
1934 (ctf_add_member_cb): Likewise.
1935 (ctf_add_enum_member_cb): Likewise.
1936 (process_struct_members): Likewise.
1937 (process_enum_type): Likewise.
1938
1939 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1940
1941 * tracectf.h: Rename, was ctf.h.
1942 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
1943 * tracefile.c: Likewise.
1944 * tracepoint.c: Remove unused include ctf.h.
1945 * mi/mi-main.c: Likewise.
1946 * Makefile.in Replace ctf.c with tracectf.c.
1947
1948 2019-10-06 Joel Brobecker <brobecker@adacore.com>
1949
1950 * version.in: Change version number to "9.0.50.DATE-git".
1951
1952 2019-10-03 Tom Tromey <tom@tromey.com>
1953
1954 PR rust/24976:
1955 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
1956
1957 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1958
1959 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
1960 cp_search_name_hash.
1961 * NEWS: Add entry about nested function support.
1962
1963 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
1964 Andrew Burgess <andrew.burgess@embecosm.com>
1965
1966 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
1967 for nested static variables when searchin VAR_DOMAIN.
1968 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
1969 global scope, update comment.
1970 (add_partial_subprogram): Call add_partial_subprogram recursively
1971 for nested subroutines when processinng Fortran.
1972 (load_partial_dies): Process the child entities of a subprogram
1973 when processing Fortran.
1974 (partial_die_parent_scope): Handle building scope
1975 for Fortran nested functions.
1976 (process_die): Record that nested functions have a scope.
1977 (new_symbol): Always record Fortran subprograms on the global
1978 symbol list.
1979 (determine_prefix): How to build the prefix for Fortran
1980 subprograms.
1981
1982 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1983
1984 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
1985 have just sent the thread a SIGSTOP and are waiting for it to
1986 arrive.
1987
1988 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1989
1990 * btrace.c (btrace_add_pc): Remove whitespace before the template
1991 parameter in 'std::vector <...>'.
1992 (parse_xml_btrace_block): Likewise.
1993 (btrace_maint_decode_pt): Likewise.
1994 (btrace_maint_update_packets): Likewise.
1995 (btrace_maint_print_packets): Likewise.
1996 * btrace.h (struct btrace_maint_info): Likewise.
1997 * dwarf2read.c (struct type_unit_group): Likewise.
1998 (build_type_psymtabs_reader): Likewise.
1999 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2000 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2001 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2002
2003 2019-10-03 Tom de Vries <tdevries@suse.de>
2004
2005 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2006 the first line of the help text for set/show style metadata.
2007
2008 2019-10-02 Tom Tromey <tromey@adacore.com>
2009
2010 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2011 * gdbsupport/common-inferior.c: New file.
2012 * infcmd.c (startup_with_shell): Don't define.
2013 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2014 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2015 * inferior.h (startup_with_shell): Don't declare.
2016
2017 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2018
2019 * gdbsupport/gdb_assert.h: Include errors.h.
2020 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2021
2022 2019-10-02 Tom Tromey <tromey@adacore.com>
2023
2024 * NEWS: Add $_ada_exception entry.
2025 * ada-lang.c (struct ada_catchpoint): Add constructor.
2026 <m_kind>: New member.
2027 (allocate_location_exception, re_set_exception): Remove
2028 "ex" parameter.
2029 (should_stop_exception): Compute $_ada_exception.
2030 (check_status_exception, print_it_exception)
2031 (print_one_exception, print_mention_exception): Remove
2032 "ex" parameter.
2033 (allocate_location_catch_exception, re_set_catch_exception)
2034 (check_status_exception, print_it_catch_exception)
2035 (print_one_catch_exception, print_mention_catch_exception)
2036 (print_recreate_catch_exception)
2037 (allocate_location_catch_exception_unhandled)
2038 (re_set_catch_exception_unhandled)
2039 (check_status_exception, print_it_catch_exception_unhandled)
2040 (print_one_catch_exception_unhandled)
2041 (print_mention_catch_exception_unhandled)
2042 (print_recreate_catch_exception_unhandled)
2043 (allocate_location_catch_assert, re_set_catch_assert)
2044 (check_status_assert, print_it_catch_assert)
2045 (print_one_catch_assert, print_mention_catch_assert)
2046 (print_recreate_catch_assert)
2047 (allocate_location_catch_handlers, re_set_catch_handlers)
2048 (check_status_handlers, print_it_catch_handlers)
2049 (print_one_catch_handlers, print_mention_catch_handlers)
2050 (print_recreate_catch_handlers): Remove.
2051 (create_ada_exception_catchpoint): Update.
2052 (initialize_ada_catchpoint_ops): Update.
2053
2054 2019-10-02 Tom Tromey <tromey@adacore.com>
2055
2056 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2057 (create_excep_cond_exprs): Simplify exception string computation.
2058 (ada_exception_catchpoint_cond_string): Likewise.
2059
2060 2019-10-02 Tom Tromey <tromey@adacore.com>
2061
2062 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2063 * ada-lang.c (lesseq_defined_than): Handle
2064 LOC_STATIC.
2065 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2066 parameter.
2067 (dwarf2_has_info): Likewise.
2068 (new_symbol): Set maybe_copied on symbol when
2069 appropriate.
2070 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2071 parameter.
2072 <can_copy>: New member.
2073 * elfread.c (record_minimal_symbol): Set maybe_copied
2074 on symbol when appropriate.
2075 (elf_symfile_read): Update call to dwarf2_has_info.
2076 * minsyms.c (lookup_minimal_symbol_linkage): New
2077 function.
2078 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2079 * symtab.c (get_symbol_address, get_msymbol_address):
2080 New functions.
2081 * symtab.h (get_symbol_address, get_msymbol_address):
2082 Declare.
2083 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2084 maybe_copied.
2085 (struct symbol, struct minimal_symbol) <maybe_copied>:
2086 New member.
2087
2088 2019-10-02 Tom Tromey <tromey@adacore.com>
2089
2090 * source.c (struct current_source_location): New.
2091 (current_source_key): New global.
2092 (current_source_symtab, current_source_line)
2093 (current_source_pspace): Remove.
2094 (get_source_location): New function.
2095 (get_current_source_symtab_and_line)
2096 (set_default_source_symtab_and_line)
2097 (set_current_source_symtab_and_line)
2098 (clear_current_source_symtab_and_line, select_source_symtab)
2099 (info_source_command, print_source_lines_base)
2100 (info_line_command, search_command_helper, _initialize_source):
2101 Update.
2102
2103 2019-10-02 Tom Tromey <tromey@adacore.com>
2104
2105 * source.c (select_source_symtab): Don't call
2106 decode_line_with_current_source.
2107
2108 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2109
2110 * symtab.c (lookup_global_symbol): Search global block.
2111
2112 2019-10-02 Tom Tromey <tromey@adacore.com>
2113
2114 * coffread.c (process_coff_symbol): Update.
2115 * dwarf2read.c (var_decode_location, new_symbol): Update.
2116 * mdebugread.c (parse_symbol): Update.
2117 * objfiles.c (relocate_one_symbol): Update.
2118 * stabsread.c (define_symbol, fix_common_block)
2119 (scan_file_globals): Update.
2120 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2121 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2122 * xcoffread.c (process_xcoff_symbol): Update.
2123
2124 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2125
2126 * MAINTAINERS: Update my email address.
2127
2128 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2129
2130 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2131 std::vector.
2132 (build_type_psymtabs_reader): Update for std::vector.
2133 (build_type_psymtab_dependencies): Likewise.
2134 * dwarf2read.h: Remove use of DEF_VEC_P.
2135 (typedef sig_type_ptr): Delete.
2136
2137 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2138
2139 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2140 to std::vector.
2141 (btrace_maint_decode_pt): Likewise, and move allocation of the
2142 vector outside of the loop.
2143 (btrace_maint_update_packets): Update to handle change from VEC to
2144 std::vector.
2145 (btrace_maint_print_packets): Likewise.
2146 (maint_info_btrace_cmd): Likewise.
2147 * btrace.h: Remove use of DEF_VEC_O.
2148 (typedef btrace_pt_packet_s): Delete.
2149 (struct btrace_maint_info) <packets>: Change fromm VEC to
2150 std::vector.
2151 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2152
2153 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2154
2155 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2156 make accesses into the vector constant references.
2157 (btrace_add_pc): Update for std::vector.
2158 (btrace_stitch_bts): Likewise.
2159 (parse_xml_btrace_block): Likewise.
2160 (btrace_maint_update_packets): Likewise.
2161 (btrace_maint_print_packets): Likewise.
2162 (maint_info_btrace_cmd): Likewise.
2163 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2164 std::vector.
2165 (btrace_data::empty): Likewise.
2166 (btrace_data_append): Likewise.
2167 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2168 (typedef btrace_block_s): Delete.
2169 (struct btrace_block): Add constructor.
2170 (struct btrace_data_bts) <blocks>: Change to std::vector.
2171 * nat/linux-btrace.c (perf_event_read_bts): Update for
2172 std::vector.
2173 (linux_read_bts): Likewise.
2174
2175 2019-10-01 Tom Tromey <tom@tromey.com>
2176
2177 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2178
2179 2019-10-01 Tom Tromey <tom@tromey.com>
2180
2181 * stack.c (print_frame, info_frame_command_core): Use
2182 styled_string.
2183 * linux-thread-db.c (try_thread_db_load_1)
2184 (try_thread_db_load_from_pdir_1): Use styled_string.
2185 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2186 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2187 (maybe_print_unsupported_script_warning)
2188 (maybe_print_script_not_found_warning): Use styled_string.
2189 * ada-lang.c (user_select_syms): Use styled_string.
2190
2191 2019-10-01 Tom Tromey <tom@tromey.com>
2192
2193 * p-lang.c (pascal_printstr): Use metadata style.
2194 * value.c (show_convenience): Use metadata style.
2195 * valprint.c (valprint_check_validity, val_print_optimized_out)
2196 (val_print_not_saved, val_print_unavailable)
2197 (val_print_invalid_address, generic_val_print, val_print)
2198 (value_check_printable, val_print_array_elements): Use metadata
2199 style.
2200 * ui-out.h (class ui_out) <field_fmt>: New overload.
2201 <do_field_fmt>: Add style parameter.
2202 * ui-out.c (ui_out::field_fmt): New overload.
2203 * typeprint.c (type_print_unknown_return_type)
2204 (val_print_not_allocated, val_print_not_associated): Use metadata
2205 style.
2206 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2207 parameter.
2208 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2209 * tracepoint.c (tvariables_info_1): Use metadata style.
2210 * stack.c (print_frame_arg, print_frame_info, print_frame)
2211 (info_frame_command_core): Use metadata style.
2212 * skip.c (info_skip_command): Use metadata style.
2213 * rust-lang.c (rust_print_enum): Use metadata style.
2214 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2215 metadata style.
2216 * python/py-framefilter.c (py_print_single_arg): Use metadata
2217 style.
2218 * printcmd.c (do_one_display, print_variable_and_value): Use
2219 metadata style.
2220 * p-valprint.c (pascal_val_print)
2221 (pascal_object_print_value_fields): Use metadata style.
2222 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2223 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2224 parameter.
2225 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2226 * m2-valprint.c (m2_print_long_set): Use metadata style.
2227 * m2-typeprint.c (m2_print_type): Use metadata style.
2228 * infcmd.c (print_return_value_1): Use metadata style.
2229 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2230 * f-valprint.c (info_common_command_for_block): Use metadata
2231 style.
2232 * f-typeprint.c (f_type_print_base): Use metadata style.
2233 * expprint.c (print_subexp_standard): Use metadata style.
2234 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2235 * cli/cli-style.h (class cli_style_option): Add constructor.
2236 (metadata_style): Declare.
2237 * cli/cli-style.c (metadata_style): New global.
2238 (_initialize_cli_style): Register metadata style.
2239 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2240 parameter.
2241 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2242 * c-typeprint.c (c_type_print_base_struct_union)
2243 (c_type_print_base_1): Use metadata style.
2244 * breakpoint.c (watchpoint_value_print)
2245 (print_one_breakpoint_location): Use metadata style.
2246 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2247 style.
2248 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2249 style.
2250 * ada-valprint.c (val_print_packed_array_elements, printstr)
2251 (print_field_values, ada_val_print_ref, ada_val_print): Use
2252 metadata style.
2253 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2254 style.
2255 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2256 style.
2257 * ada-lang.c (user_select_syms): Use metadata style.
2258
2259 2019-10-01 Tom Tromey <tom@tromey.com>
2260
2261 * cli/cli-cmds.c (pwd_command): Style output.
2262
2263 2019-10-01 Pedro Alves <palves@redhat.com>
2264 Tom Tromey <tom@tromey.com>
2265
2266 * symtab.c (print_symbol_info): Use %ps.
2267 (print_msymbol_info): Use %ps.
2268 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2269 * printcmd.c (print_variable_and_value): Use %ps.
2270 * macrocmd.c (show_pp_source_pos): Use %ps.
2271 * infrun.c (print_exited_reason): Use ui_out::message.
2272 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2273 (describe_other_breakpoints): Use ui_out::message and new
2274 formats.
2275 (say_where): Use new formats.
2276 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2277 and new formats.
2278
2279 2019-10-01 Pedro Alves <palves@redhat.com>
2280 Tom Tromey <tom@tromey.com>
2281
2282 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2283 (test_gdb_formats): New function.
2284 (run_tests): Call it.
2285 (test_format_specifier): Update.
2286 * utils.h (fputs_filtered): Update comment.
2287 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2288 (fputs_styled_unfiltered): Declare.
2289 * utils.c (fputs_styled_unfiltered): New function.
2290 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2291 (vfprintf_filtered): Update.
2292 (vfprintf_unfiltered, vprintf_filtered): Update.
2293 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2294 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2295 disallow_ui_out_field>: New constants.
2296 (enum class field_kind): New.
2297 (struct base_field_s, struct signed_field_s): New.
2298 (signed_field): New function.
2299 (struct string_field_s): New.
2300 (string_field): New function.
2301 (struct styled_string_s): New.
2302 (styled_string): New function.
2303 (class ui_out) <message>: Add comment.
2304 <vmessage, call_do_message>: New methods.
2305 <do_message>: Add style parameter.
2306 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2307 methods.
2308 (ui_out::message): Rewrite.
2309 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2310 parameter.
2311 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2312 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2313 gdb_extensions parameter.
2314 (class format_piece): Add parameter to constructor.
2315 (n_int_args): New field.
2316 * gdbsupport/format.c (format_pieces::format_pieces): Add
2317 gdb_extensions parameter. Handle '*'.
2318 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2319 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2320 vfprintf_styled_no_gdbfmt.
2321 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2322 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2323 unfiltered output.
2324 * ui-style.h (struct ui_file_style) <ptr>: New method.
2325
2326 2019-10-01 Tom Tromey <tom@tromey.com>
2327
2328 * unittests/format_pieces-selftests.c: Update. Add final format.
2329 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2330 empty literal pieces.
2331
2332 2019-10-01 Tom Tromey <tom@tromey.com>
2333
2334 * ui-out.h (enum class ui_out_style_kind): Remove.
2335 (class ui_out) <field_string, field_stsream, do_field_string>:
2336 Change type of "style".
2337 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2338 (ui_out::field_string): Update.
2339 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2340 of "style".
2341 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2342 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2343 * stack.c (print_frame_arg, print_frame_info, print_frame):
2344 Update.
2345 * source.c (print_source_lines_base): Update.
2346 * solib.c (info_sharedlibrary_command): Update.
2347 * skip.c (info_skip_command): Update.
2348 * record-btrace.c (btrace_call_history_src_line)
2349 (btrace_call_history): Update.
2350 * python/py-framefilter.c (py_print_frame): Update.
2351 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2352 "style".
2353 * mi/mi-out.c (mi_ui_out::do_table_header)
2354 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2355 (mi_ui_out::do_field_string): Update.
2356 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2357 Update.
2358 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2359 "style".
2360 * cli-out.c (cli_ui_out::do_table_header)
2361 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2362 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2363 (cli_ui_out::do_field_fmt): Update.
2364 * breakpoint.c (print_breakpoint_location): Update.
2365 (update_static_tracepoint): Update.
2366
2367 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2368
2369 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2370 conversion of gdb_datadir.
2371 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2372 remove not needed c_str ().
2373
2374 2019-09-30 Ali Tamur <tamur@google.com>
2375
2376 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2377 (dwarf2_string_attr): Likewise.
2378
2379 2019-09-30 Ali Tamur <tamur@google.com>
2380
2381 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2382 (process_full_type_unit): Likewise.
2383 (dump_die_shallow): Likewise.
2384 (cu_debug_loc_section): Likewise.
2385
2386 2019-09-28 Christian Biesinger <cbiesinger@google.com>
2387
2388 * minsyms.c (compare_minimal_symbols): Rename to...
2389 (minimal_symbol_is_less_than): ...this, and adjust to STL
2390 conventions (return bool, take arguments as references)
2391 (minimal_symbol_reader::install): Call std::sort instead
2392 of qsort.
2393
2394 2019-09-29 Christian Biesinger <cbiesinger@google.com>
2395
2396 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2397 hash and why.
2398 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2399 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2400
2401 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2402
2403 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2404 * psympriv.h (add_psymbol_to_list): Move comment here and update
2405 it.
2406
2407 2019-09-29 Tom de Vries <tdevries@suse.de>
2408
2409 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2410 Use $tmpdir/$(basename "$output_file").dwz instead of
2411 "${output_file}.dwz".
2412
2413 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2414
2415 PR gdb/25045
2416 * hppa-linux-nat.c: Include gdbarch.h.
2417
2418 2019-09-26 Christian Biesinger <cbiesinger@google.com>
2419
2420 * blockframe.c (find_pc_partial_function): Change return type to bool.
2421 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2422 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2423 (stub_gnu_ifunc_resolve_name): Likewise.
2424 * symtab.c (compare_filenames_for_search): Likewise.
2425 (compare_glob_filenames_for_search): Likewise.
2426 (matching_obj_sections): Likewise.
2427 (symbol_matches_domain): Likewise.
2428 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2429 (find_line_pc): Change return type to bool.
2430 (find_line_pc_range): Likewise.
2431 (producer_is_realview): Likewise.
2432 * symtab.h (symbol_matches_domain): Likewise.
2433 (find_pc_partial_function): Likewise.
2434 (find_pc_line_pc_range): Likewise.
2435 (in_gnu_ifunc_stub): Likewise.
2436 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2437 (find_line_pc): Likewise.
2438 (find_line_pc_range): Likewise.
2439 (matching_obj_sections): Likewise.
2440 (find_line_symtab): Change out parameter to bool.
2441 (producer_is_realview): Change return type to bool.
2442 (compare_filenames_for_search): Likewise.
2443 (compare_glob_filenames_for_search): Likewise.
2444
2445 2019-09-26 Tom Tromey <tom@tromey.com>
2446
2447 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2448 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2449 * gdb_usleep.h: Remove.
2450 * gdb_usleep.c: Remove.
2451 * utils.c: Don't include gdb_usleep.h.
2452
2453 2019-09-26 Tom Tromey <tromey@adacore.com>
2454
2455 * python/py-type.c (type_to_type_object): Call check_typedef
2456 for stub types.
2457
2458 2019-09-26 Tom Tromey <tom@tromey.com>
2459
2460 * utils.h (initialize_utils): Don't declare.
2461 * top.c (gdb_init): Don't call initialize_utils.
2462 * utils.c (initialize_utils): Remove. Move contents...
2463 (_initialize_utils): ... here.
2464
2465 2019-09-25 Tom Tromey <tom@tromey.com>
2466
2467 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2468 * utils.h (make_hex_string): Don't declare.
2469 * utils.c (make_hex_string): Remove.
2470
2471 2019-09-24 Tom de Vries <tdevries@suse.de>
2472
2473 PR gdb/23815
2474 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2475 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2476
2477 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2478
2479 * NEWS: Mention new simulator port for PRU.
2480
2481 2019-09-23 Christian Biesinger <cbiesinger@google.com>
2482
2483 * ada-exp.y (write_object_remaining): Update.
2484 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2485 and eliminate the static buffer.
2486 (ada_decode_symbol): Update.
2487 (ada_la_decode): Update.
2488 (ada_sniff_from_mangled_name): Update.
2489 (is_valid_name_for_wild_match): Update.
2490 (ada_lookup_name_info::matches): Update and simplify.
2491 (name_matches_regex): Update.
2492 (ada_add_global_exceptions): Update.
2493 * ada-lang.h (ada_decode): Update signature.
2494 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2495 * dwarf-index-write.c (debug_names::insert): Update.
2496
2497 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2498
2499 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2500 formatting.
2501
2502 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2503
2504 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2505 Change "nonzero" to "true" in documentation.
2506
2507 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2508
2509 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2510 (_initialize_darwin_solib): Don't set
2511 darwin_so_ops.lookup_lib_global_symbol.
2512 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2513 set_gdbarch_iterate_over_objfiles_in_search_order.
2514 (elf_lookup_lib_symbol): Rename to...
2515 (svr4_iterate_over_objfiles_in_search_order): this, and update
2516 to iterate semantics.
2517 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2518 * solib.c (solib_global_lookup): Remove.
2519 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2520 (solib_global_lookup): Remove.
2521 * symtab.c (lookup_global_or_static_symbol): Remove call to
2522 solib_global_lookup.
2523
2524 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2525
2526 * NEWS: Move entries about default MI version now being
2527 version 3, and about the GDB/MI fix for multi-location
2528 breakpoints to the "since GDB 8.3" section.
2529
2530 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2531
2532 GDB 8.3.1 released.
2533
2534 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2535
2536 * NEWS: Mention that Cell/B.E. debugging support was removed.
2537 * MAINTAINERS: Remove spu target.
2538
2539 * config/djgpp/fnchange.lst: Remove entries for removed files.
2540
2541 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2542 spu-multiarch.o, and spu-tdep.o.
2543 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2544 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2545 spu-multiarch.c, and spu-tdep.c.
2546 * spu-linux-nat.c: Remove file.
2547 * spu-multiarch.c: Remove file.
2548 * spu-tdep.c: Remove file.
2549 * spu-tdep.h: Remove file.
2550 * solib-spu.c: Remove file.
2551 * solib-spu.h: Remove file.
2552
2553 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2554 * configure.nat (spu-linux): Remove.
2555 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2556 solib-multiarch.o from gdb_target_obs.
2557 (spu*-*-*): Remove.
2558
2559 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2560 feature flag.
2561 (ppc_linux_no_features): Update.
2562 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2563 Cell/B.E. support.
2564 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2565 (tdesc_powerpc_cell64l): Likewise.
2566 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2567 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2568 Cell/B.E. support.
2569 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2570 Do not include "features/rs6000/powerpc-cell32l.c" or
2571 "features/rs6000/powerpc-cell64l.c".
2572 (ppc_linux_spu_section): Remove.
2573 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2574 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2575 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2576 (ppc_linux_spe_context_lookup): Remove.
2577 (ppc_linux_spe_context_inferior_created): Remove.
2578 (ppc_linux_spe_context_solib_loaded): Remove.
2579 (ppc_linux_spe_context_solib_unloaded): Remove.
2580 (ppc_linux_spe_context): Remove.
2581 (struct ppu2spu_cache): Remove.
2582 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2583 (struct ppu2spu_data): Remove.
2584 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2585 ppu2spu_unwind): Remove.
2586 (ppc_linux_init_abi): Remove Cell/B.E. support.
2587 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2588
2589 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2590 (rs6000/powerpc-cell64l-expedite): Likewise
2591 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2592 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2593 rs6000/powerpc-cell64l.xml.
2594 * features/rs6000/powerpc-cell32l.xml: Remove.
2595 * features/rs6000/powerpc-cell64l.xml: Likewise.
2596 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2597 * features/rs6000/powerpc-cell64l.c: Likewise.
2598 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2599 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2600 * regformats/reg-spu.dat: Remove.
2601
2602 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2603 * corelow.c (struct spuid_list): Remove.
2604 (add_to_spuid_list): Remove.
2605 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2606 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2607 (remote_protocol_features): Remove associated entries.
2608 (_initialize_remote): No longer initialize them.
2609 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2610 * linux-nat.c (SPUFS_MAGIC): Remove.
2611 (linux_proc_xfer_spu): Remove.
2612 (spu_enumerate_spu_ids): Remove.
2613 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2614 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2615 (linux_make_corefile_notes): No longer call it.
2616
2617 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2618 (cooked_write_test): Likewise.
2619
2620 2019-09-20 Tom Tromey <tom@tromey.com>
2621
2622 * NEWS: Mention case-sensitivity of TUI commands.
2623 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2624 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2625 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2626
2627 2019-09-20 Tom Tromey <tom@tromey.com>
2628
2629 * tui/tui-source.c (tui_source_window::set_contents): Use
2630 make_unique_xstrdup.
2631 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2632 make_unique_xstrdup.
2633
2634 2019-09-20 Tom Tromey <tom@tromey.com>
2635
2636 * tui/tui-data.c: Remove separator comments.
2637 * tui/tui-layout.c: Remove separator comments.
2638 * tui/tui-win.c: Remove separator comments.
2639 * tui/tui-wingeneral.c: Remove separator comments.
2640
2641 2019-09-20 Tom Tromey <tom@tromey.com>
2642
2643 * tui/tui.h (strcat_to_buf): Don't declare.
2644 * tui/tui.c (strcat_to_buf): Remove.
2645
2646 2019-09-20 Tom Tromey <tom@tromey.com>
2647
2648 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2649 from "fullname".
2650 * tui/tui-source.c (tui_source_window::set_contents)
2651 (tui_source_window::location_matches_p)
2652 (tui_source_window::maybe_update): Update.
2653
2654 2019-09-20 Tom Tromey <tom@tromey.com>
2655
2656 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2657 Update.
2658 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2659 prefix.
2660 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2661 (tui_data_window::line_from_reg_element_no)
2662 (tui_data_window::first_reg_element_no_inline)
2663 (tui_data_window::show_registers)
2664 (tui_data_window::show_register_group)
2665 (tui_data_window::display_registers_from)
2666 (tui_data_window::display_registers_from_line)
2667 (tui_data_window::first_data_item_displayed)
2668 (tui_data_window::delete_data_content_windows)
2669 (tui_data_window::erase_data_content)
2670 (tui_data_window::do_scroll_vertical)
2671 (tui_data_window::refresh_window)
2672 (tui_data_window::check_register_values): Update.
2673
2674 2019-09-20 Tom Tromey <tom@tromey.com>
2675
2676 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2677 (struct tui_locator_window) <full_name, proc_name>: Now
2678 std::string.
2679 * tui/tui-stack.c (tui_locator_window::make_status_line)
2680 (tui_locator_window::set_locator_fullname)
2681 (tui_locator_window::set_locator_info): Update.
2682 * tui/tui-source.c (tui_source_window::set_contents)
2683 (tui_source_window::showing_source_p): Update.
2684
2685 2019-09-20 Tom Tromey <tom@tromey.com>
2686
2687 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2688 Don't call tui_locator_win_info_ptr.
2689
2690 2019-09-20 Tom Tromey <tom@tromey.com>
2691
2692 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2693
2694 2019-09-20 Tom Tromey <tom@tromey.com>
2695
2696 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2697 height for locator.
2698 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2699 * tui/tui-layout.c (show_source_disasm_command, show_data)
2700 (show_source_or_disasm_and_command): Use 1 as height for locator.
2701
2702 2019-09-20 Tom Tromey <tom@tromey.com>
2703
2704 * tui/tui.c (tui_enable): Update.
2705 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2706 Update.
2707 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2708 Update.
2709 * tui/tui-data.c (win_resized): Now bool.
2710 (tui_win_resized): Return bool.
2711 (tui_set_win_resized_to): Accept a bool.
2712
2713 2019-09-20 Tom Tromey <tom@tromey.com>
2714
2715 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2716 Change type of "refresh_values_only".
2717 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2718 type of "refresh_values_only".
2719
2720 2019-09-20 Tom Tromey <tom@tromey.com>
2721
2722 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2723 std::string.
2724 (tui_disassemble): Add "pos" parameter.
2725 (tui_disasm_window::set_contents): Simplify.
2726
2727 2019-09-20 Tom Tromey <tom@tromey.com>
2728
2729 * tui/tui-winsource.h (struct tui_source_window_base)
2730 <show_source_content>: Now private.
2731 * tui/tui-winsource.c
2732 (tui_source_window_base::show_source_content): Don't handle empty
2733 content case.
2734
2735 2019-09-20 Tom Tromey <tom@tromey.com>
2736
2737 * tui/tui-layout.c (show_source_disasm_command)
2738 (show_source_or_disasm_and_command): Don't call
2739 show_source_content.
2740
2741 2019-09-20 Tom Tromey <tom@tromey.com>
2742
2743 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2744 Declare.
2745 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2746 from tui_make_status_line.
2747 (tui_locator_window::rerender): Update.
2748
2749 2019-09-20 Tom Tromey <tom@tromey.com>
2750
2751 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2752 (tui_locator_window::rerender): Update.
2753
2754 2019-09-20 Tom Tromey <tom@tromey.com>
2755
2756 * tui/tui-winsource.h (struct tui_source_window_base)
2757 <~tui_source_window_base>: Don't declare.
2758 <fullname>: Remove.
2759 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2760 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2761 member.
2762 * tui/tui-source.c (tui_source_window::set_contents): Update.
2763 (tui_source_window::location_matches_p)
2764 (tui_source_window::maybe_update): Update.
2765
2766 2019-09-20 Tom Tromey <tom@tromey.com>
2767
2768 * tui/tui-winsource.h (~tui_source_element): Remove.
2769 (tui_source_element): Update.
2770 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2771 * tui/tui-winsource.c (tui_show_source_line): Update.
2772 * tui/tui-source.c (tui_source_window::set_contents): Update.
2773 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2774
2775 2019-09-20 Tom Tromey <tom@tromey.com>
2776
2777 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2778 declare.
2779 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2780 tui_clear_source_windows_detail.
2781 * tui/tui-winsource.h (struct tui_source_window_base)
2782 <clear_detail>: Don't declare.
2783 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2784 Remove.
2785 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2786
2787 2019-09-20 Tom Tromey <tromey@adacore.com>
2788
2789 PR ada/24919:
2790 * block.c (contained_in): Fix final return value.
2791
2792 2019-09-20 Alan Modra <amodra@gmail.com>
2793
2794 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2795 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2796 (read_indirect_string_from_dwz): Use bfd accessor.
2797 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2798 * machoread.c (macho_symfile_read_all_oso): Likewise.
2799 * solib.c (solib_bfd_open): Likewise.
2800
2801 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2802
2803 * eval.c: Move declaration of overload_resolution to...
2804 * value.h: ...here.
2805
2806 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2807
2808 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2809 * arm-linux-tdep.c: Likewise.
2810 * arm-nbsd-nat.c: Likewise.
2811 * arm-tdep.h: Declare arm_apcs_32.
2812 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2813
2814 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2815
2816 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2817 * dwarf2read.h: Declare dwarf_always_disassemble.
2818
2819 2019-09-19 Tom de Vries <tdevries@suse.de>
2820
2821 PR gdb/25009
2822 * source-cache.c (source_cache::ensure): Catch exception thrown during
2823 construction of the highlighter.
2824
2825 2019-09-18 Alan Modra <amodra@gmail.com>
2826
2827 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2828 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2829 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2830 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2831 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2832 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2833 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
2834 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
2835 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
2836 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
2837 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
2838 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
2839 * solib-spu.c, * solib-svr4.c, * solib-target.c,
2840 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
2841 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
2842 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
2843 * mi/mi-interp.c: Update throughout for bfd section macro and
2844 function changes.
2845 * gcore (gcore_create_callback): Use bfd_set_section_lma.
2846 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
2847
2848 2019-09-18 Tom Tromey <tom@tromey.com>
2849
2850 * NEWS: Add entry.
2851 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
2852 call rl_initialize.
2853 (tui_enable): Do not call rl_initialize.
2854
2855 2019-09-18 Christian Groessler <chris@groessler.org>
2856
2857 * alpha-linux-nat.c: Include gdbarch.h.
2858
2859 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2860
2861 * ui-file.c: Include cli/cli-style.h.
2862 (term_cli_styling): Remove cli_styling declaration.
2863
2864 2019-09-18 Alan Modra <amodra@gmail.com>
2865
2866 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
2867 to bfd_asymbol_section.
2868
2869 2019-09-18 Alan Modra <amodra@gmail.com>
2870
2871 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
2872 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2873 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
2874
2875 2019-09-18 Alan Modra <amodra@gmail.com>
2876
2877 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
2878 * spu-linux-nat.c (spu_bfd_open): Likewise.
2879
2880 2019-09-18 Christian Biesinger <cbiesinger@google.com>
2881
2882 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
2883 to bool to match definition in dwarf2read.c.
2884
2885 2019-09-17 Christian Biesinger <cbiesinger@google.com>
2886
2887 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
2888 (print_signatures): Likewise.
2889 (trust_pad_over_xvs): Likewise.
2890 * arch/aarch64-insn.c (aarch64_debug): Likewise.
2891 * arch/aarch64-insn.h (aarch64_debug): Likewise.
2892 * arm-linux-nat.c (arm_apcs_32): Likewise.
2893 * arm-linux-tdep.c (arm_apcs_32): Likewise.
2894 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
2895 * arm-tdep.c (arm_debug): Likewise.
2896 (arm_apcs_32): Likewise.
2897 * auto-load.c (debug_auto_load): Likewise.
2898 (auto_load_gdb_scripts): Likewise.
2899 (global_auto_load): Likewise.
2900 (auto_load_local_gdbinit): Likewise.
2901 (auto_load_local_gdbinit_loaded): Likewise.
2902 * auto-load.h (global_auto_load): Likewise.
2903 (auto_load_local_gdbinit): Likewise.
2904 (auto_load_local_gdbinit_loaded): Likewise.
2905 * breakpoint.c (disconnected_dprintf): Likewise.
2906 (breakpoint_proceeded): Likewise.
2907 (automatic_hardware_breakpoints): Likewise.
2908 (always_inserted_mode): Likewise.
2909 (target_exact_watchpoints): Likewise.
2910 (_initialize_breakpoint): Update.
2911 * breakpoint.h (target_exact_watchpoints): Change to bool.
2912 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
2913 * cli/cli-cmds.c (trace_commands): Likewise.
2914 * cli/cli-cmds.h (trace_commands): Likewise.
2915 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2916 to bool*.
2917 * cli/cli-logging.c (logging_overwrite): Change to bool.
2918 (logging_redirect): Likewise.
2919 (debug_redirect): Likewise.
2920 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2921 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2922 to bool.
2923 <boolean_option_def>: Update.
2924 (struct flag_option_def): Change default type of Context to bool
2925 from int.
2926 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2927 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2928 (get_setshow_command_value_string): Likewise.
2929 * cli/cli-style.c (cli_styling): Change to bool.
2930 (source_styling): Likewise.
2931 * cli/cli-style.h (source_styling): Likewise.
2932 (cli_styling): Likewise.
2933 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
2934 to bool.
2935 * command.h (var_types): Update comment.
2936 (add_setshow_boolean_cmd): Change int* var argument to bool*.
2937 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
2938 bool.
2939 (debug_compile_cplus_scopes): Likewise.
2940 * compile/compile-internal.h (compile_debug): Likewise.
2941 * compile/compile.c (compile_debug): Likewise.
2942 (struct compile_options) <raw>: Likewise.
2943 * cp-support.c (catch_demangler_crashes): Likewise.
2944 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
2945 (usr_cmd_cris_dwarf2_cfi): Likewise.
2946 * csky-tdep.c (csky_debug): Likewise.
2947 * darwin-nat.c (enable_mach_exceptions): Likewise.
2948 * dcache.c (dcache_enabled_p): Likewise.
2949 * defs.h (info_verbose): Likewise.
2950 * demangle.c (demangle): Likewise.
2951 (asm_demangle): Likewise.
2952 * dwarf-index-cache.c (debug_index_cache): Likewise.
2953 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
2954 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
2955 * dwarf2read.c (check_physname): Likewise.
2956 (use_deprecated_index_sections): Likewise.
2957 (dwarf_always_disassemble): Likewise.
2958 * eval.c (overload_resolution): Likewise.
2959 * event-top.c (set_editing_cmd_var): Likewise.
2960 (exec_done_display_p): Likewise.
2961 * event-top.h (set_editing_cmd_var): Likewise.
2962 (exec_done_display_p): Likewise.
2963 * exec.c (write_files): Likewise.
2964 * fbsd-nat.c (debug_fbsd_lwp): Likewise
2965 (debug_fbsd_nat): Likewise.
2966 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
2967 Likewise.
2968 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
2969 <backtrace_past_entry> Likewise.
2970 * gdb-demangle.h (demangle): Likewise.
2971 (asm_demangle): Likewise.
2972 * gdb_bfd.c (bfd_sharing): Likewise.
2973 * gdbcore.h (write_files): Likewise.
2974 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
2975 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
2976 * gdbthread.h (print_thread_events): Likewise.
2977 * gdbtypes.c (opaque_type_resolution): Likewise.
2978 (strict_type_checking): Likewise.
2979 * gnu-nat.c (gnu_debug_flag): Likewise.
2980 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
2981 * guile/scm-param.c (pascm_variable): Add boolval.
2982 (add_setshow_generic): Update.
2983 (pascm_param_value): Update.
2984 (pascm_set_param_value_x): Update.
2985 * hppa-tdep.c (hppa_debug): Change to bool..
2986 * infcall.c (may_call_functions_p): Likewise.
2987 (coerce_float_to_double_p): Likewise.
2988 (unwind_on_signal_p): Likewise.
2989 (unwind_on_terminating_exception_p): Likewise.
2990 * infcmd.c (startup_with_shell): Likewise.
2991 * inferior.c (print_inferior_events): Likewise.
2992 * inferior.h (startup_with_shell): Likewise.
2993 (print_inferior_events): Likewise.
2994 * infrun.c (step_stop_if_no_debug): Likewise.
2995 (detach_fork): Likewise.
2996 (debug_displaced): Likewise.
2997 (disable_randomization): Likewise.
2998 (non_stop): Likewise.
2999 (non_stop_1): Likewise.
3000 (observer_mode): Likewise.
3001 (observer_mode_1): Likewise.
3002 (set_observer_mode): Update.
3003 (sched_multi): Change to bool.
3004 * infrun.h (debug_displaced): Likewise.
3005 (sched_multi): Likewise.
3006 (step_stop_if_no_debug): Likewise.
3007 (non_stop): Likewise.
3008 (disable_randomization): Likewise.
3009 * linux-tdep.c (use_coredump_filter): Likewise.
3010 (dump_excluded_mappings): Likewise.
3011 * linux-thread-db.c (auto_load_thread_db): Likewise.
3012 (check_thread_db_on_load): Likewise.
3013 * main.c (captured_main_1): Update.
3014 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3015 xx2_opt, boolean_opt>: Change to bool.
3016 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3017 * maint.c (maintenance_profile_p): Likewise.
3018 (per_command_time): Likewise.
3019 (per_command_space): Likewise.
3020 (per_command_symtab): Likewise.
3021 * memattr.c (inaccessible_by_default): Likewise.
3022 * mi/mi-main.c (mi_async): Likewise.
3023 (mi_async_1): Likewise.
3024 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3025 * nat/fork-inferior.h (startup_with_shell): Likewise.
3026 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3027 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3028 * nios2-tdep.c (nios2_debug): Likewise.
3029 * or1k-tdep.c (or1k_debug): Likewise.
3030 * parse.c (parser_debug): Likewise.
3031 * parser-defs.h (parser_debug): Likewise.
3032 * printcmd.c (print_symbol_filename): Likewise.
3033 * proc-api.c (procfs_trace): Likewise.
3034 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3035 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3036 (set_parameter_value): Update.
3037 (add_setshow_generic): Update.
3038 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3039 to bool*.
3040 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3041 int*.
3042 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3043 * record-btrace.c (record_btrace_target::store_registers): Update.
3044 * record-full.c (record_full_memory_query): Change to bool.
3045 (record_full_stop_at_limit): Likewise.
3046 * record-full.h (record_full_memory_query): Likewise.
3047 * remote-notif.c (notif_debug): Likewise.
3048 * remote-notif.h (notif_debug): Likewise.
3049 * remote.c (use_range_stepping): Likewise.
3050 (interrupt_on_connect): Likewise.
3051 (remote_break): Likewise.
3052 * ser-tcp.c (tcp_auto_retry): Likewise.
3053 * ser-unix.c (serial_hwflow): Likewise.
3054 * skip.c (debug_skip): Likewise.
3055 * solib-aix.c (solib_aix_debug): Likewise.
3056 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3057 (spu_auto_flush_cache_p): Likewise.
3058 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3059 Likewise.
3060 (struct info_print_options) <quiet>: Likewise.
3061 * symfile-debug.c (debug_symfile): Likewise.
3062 * symfile.c (auto_solib_add): Likewise.
3063 (separate_debug_file_debug): Likewise.
3064 * symfile.h (auto_solib_add): Likewise.
3065 (separate_debug_file_debug): Likewise.
3066 * symtab.c (basenames_may_differ): Likewise.
3067 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3068 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3069 (struct info_types_options) <quiet>: Likewise.
3070 * symtab.h (demangle): Likewise.
3071 (basenames_may_differ): Likewise.
3072 * target-dcache.c (stack_cache_enabled_1): Likewise.
3073 (code_cache_enabled_1): Likewise.
3074 * target.c (trust_readonly): Likewise.
3075 (may_write_registers): Likewise.
3076 (may_write_memory): Likewise.
3077 (may_insert_breakpoints): Likewise.
3078 (may_insert_tracepoints): Likewise.
3079 (may_insert_fast_tracepoints): Likewise.
3080 (may_stop): Likewise.
3081 (auto_connect_native_target): Likewise.
3082 (target_stop_and_wait): Update.
3083 (target_async_permitted): Change to bool.
3084 (target_async_permitted_1): Likewise.
3085 (may_write_registers_1): Likewise.
3086 (may_write_memory_1): Likewise.
3087 (may_insert_breakpoints_1): Likewise.
3088 (may_insert_tracepoints_1): Likewise.
3089 (may_insert_fast_tracepoints_1): Likewise.
3090 (may_stop_1): Likewise.
3091 * target.h (target_async_permitted): Likewise.
3092 (may_write_registers): Likewise.
3093 (may_write_memory): Likewise.
3094 (may_insert_breakpoints): Likewise.
3095 (may_insert_tracepoints): Likewise.
3096 (may_insert_fast_tracepoints): Likewise.
3097 (may_stop): Likewise.
3098 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3099 (make_thread_apply_all_options_def_group): Change argument from int*
3100 to bool*.
3101 (thread_apply_all_command): Update.
3102 (print_thread_events): Change to bool.
3103 * top.c (confirm): Likewise.
3104 (command_editing_p): Likewise.
3105 (history_expansion_p): Likewise.
3106 (write_history_p): Likewise.
3107 (info_verbose): Likewise.
3108 * top.h (confirm): Likewise.
3109 (history_expansion_p): Likewise.
3110 * tracepoint.c (disconnected_tracing): Likewise.
3111 (circular_trace_buffer): Likewise.
3112 * typeprint.c (print_methods): Likewise.
3113 (print_typedefs): Likewise.
3114 * utils.c (debug_timestamp): Likewise.
3115 (sevenbit_strings): Likewise.
3116 (pagination_enabled): Likewise.
3117 * utils.h (sevenbit_strings): Likewise.
3118 (pagination_enabled): Likewise.
3119 * valops.c (overload_resolution): Likewise.
3120 * valprint.h (struct value_print_options) <prettyformat_arrays,
3121 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3122 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3123 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3124 Likewise.
3125 * windows-nat.c (new_console): Likewise.
3126 (cygwin_exceptions): Likewise.
3127 (new_group): Likewise.
3128 (debug_exec): Likewise.
3129 (debug_events): Likewise.
3130 (debug_memory): Likewise.
3131 (debug_exceptions): Likewise.
3132 (useshell): Likewise.
3133 * windows-tdep.c (maint_display_all_tib): Likewise.
3134 * xml-support.c (debug_xml): Likewise.
3135
3136 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3137
3138 * source.c (prepare_path_for_appending): New function.
3139 (openp): Make use of new function.
3140 (find_and_open_source): Search for the compilation directory and
3141 source file as a relative path beneath the directory search path.
3142
3143 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3144
3145 * source-cache.c (source_cache::get_line_charpos): Catch
3146 exceptions and return false, this matches the behaviour documented
3147 in the header file.
3148
3149 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3150
3151 * ada-tasks.c (info_task): Remove quoting of the task's name.
3152
3153 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3154
3155 * symfile.c (auto_solib_add): Replace comment with a reference
3156 to the header file.
3157
3158 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3159
3160 * NEWS: Mention that gdb can now be compiled with Python 3
3161 on Windows.
3162
3163 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3164
3165 * maint.c (maint_print_section_data::maint_print_section_data):
3166 Force use of 'float log10 (float)' by casting the argument to
3167 float.
3168
3169 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3170
3171 * maint.c: Add 'cmath' include.
3172 (struct maint_print_section_data): New structure.
3173 (print_section_index): New function.
3174 (print_bfd_section_info): Add header comment, small whitespace
3175 cleanup, and update to call new print_section_index function.
3176 (print_objfile_section_info): Likewise.
3177 (maint_obj_section_from_bfd_section): New function.
3178 (print_bfd_section_info_maybe_relocated): New function.
3179 (maintenance_info_sections): Add header comment, always use
3180 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3181
3182 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3183
3184 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3185 inner scope, add check that the objfile has psymtabs before
3186 checking psymtabs_addrmap.
3187 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3188
3189 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3190
3191 * NEWS: Announce that Ada task names are now shown at more places,
3192 and between quotes (except in info task output).
3193 * gdb/ada-tasks.c (task_to_str): New function.
3194 (display_current_task_id): Call task_to_str.
3195 (task_command_1): Likewise.
3196 (print_ada_task_info): In non-mi mode, Properly align headers and data
3197 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3198
3199 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3200
3201 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3202 prstatus.pr_lwp.pr_info instead of making it up.
3203
3204 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3205
3206 * auto-load.c (auto_load_expand_dir_vars): Update.
3207 * defs.h (gdb_datadir): Change to std::string.
3208 (python_libdir): Likewise.
3209 (relocate_gdb_directory): Change return type to std::string.
3210 * guile/guile.c (gdbscm_data_directory): Update.
3211 (initialize_scheme_side): Update.
3212 * jit.c (jit_reader_dir): Change to std::string.
3213 (jit_reader_load_command): Update.
3214 * main.c (gdb_datadir): Change to std::string.
3215 (python_libdir): Likewise.
3216 (set_gdb_data_directory): Update.
3217 (relocate_path): Change to return std::string.
3218 (relocate_gdb_directory): Change to return std::string.
3219 (relocate_gdbinit_path_maybe_in_datadir): Update.
3220 (captured_main_1): Update.
3221 * python/python.c (do_start_initialization): Update.
3222 * top.c (show_gdb_datadir): Update.
3223 * xml-syscall.c (xml_init_syscalls_info): Update.
3224 (init_syscalls_info): Update.
3225
3226 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3227
3228 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3229 out of get_init_files.
3230 (get_init_files): Update.
3231
3232 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3233
3234 * main.c (get_init_files): Change to use std::string.
3235 (captured_main_1): Update.
3236 (print_gdb_help): Update.
3237
3238 2019-09-11 Ali Tamur <tamur@google.com>
3239
3240 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3241 implementation.
3242
3243 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3244
3245 * dbxread.c (read_dbx_symtab): Update.
3246 * dwarf2read.c (load_partial_dies): Update.
3247 * mdebugread.c (parse_partial_symbols): Update.
3248 (handle_psymbol_enumerators): Update.
3249 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3250 * psymtab.c (add_psymbol_to_bcache): Likewise.
3251 (add_psymbol_to_list): Likewise.
3252 * symtab.c (symbol_set_names): Likewise.
3253 * symtab.h (symbol_set_names): Likewise.
3254 * xcoffread.c (scan_xcoff_symtab): Update.
3255
3256 2019-09-11 Tom Tromey <tom@tromey.com>
3257
3258 * symfile-mem.c (symbol_file_add_from_memory): Use
3259 bfd_set_filename.
3260 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3261 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3262
3263 2019-09-10 Tom Tromey <tromey@adacore.com>
3264
3265 * dwarf-index-write.c (write_psymbols): Extend error message.
3266 (debug_names::insert): Add Ada code.
3267 (debug_names::write_psymbols): Remove Ada check.
3268 (debug_names) <m_string_obstack>: New member.
3269 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3270 (gdb_index_symbol_name_matcher::matches): Remove.
3271 (mapped_index_base::find_name_components_bounds): Add "lang"
3272 parameter.
3273 (mapped_index_base::build_name_components): Also split names
3274 according to Ada syntax.
3275 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3276 type of "match_callback".
3277 (check_match, check_find_bounds_finds)
3278 (dw2_expand_symtabs_matching): Update.
3279 (dw2_debug_names_iterator): Add new constructor.
3280 (dw2_debug_names_map_matching_symbols): New function.
3281 (dw2_debug_names_expand_symtabs_matching): Update.
3282 (dwarf2_debug_names_functions): Use
3283 dw2_debug_names_map_matching_symbols.
3284
3285 2019-09-10 Tom Tromey <tromey@adacore.com>
3286
3287 * dwarf2read.c (dw2_get_file_names_reader): Add the
3288 CU's file name to the results.
3289
3290 2019-09-10 Tom Tromey <tromey@adacore.com>
3291
3292 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3293 map_matching_symbols. Update.
3294 * dwarf2read.c (dw2_map_matching_symbols): Update.
3295 * psymtab.c (match_partial_symbol): Change type; update.
3296 (psym_map_matching_symbols): Likewise.
3297 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3298 type; update.
3299 * symfile.h (struct quick_symbol_functions)
3300 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3301 Remove "match".
3302
3303 2019-09-10 Tom Tromey <tromey@adacore.com>
3304
3305 * psymtab.c (map_block): Remove.
3306 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3307 * symtab.c (iterate_over_symbols_terminated): New function.
3308 * symtab.c (iterate_over_symbols_terminated): Declare.
3309
3310 2019-09-10 Tom Tromey <tromey@adacore.com>
3311
3312 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3313 * language.h (struct language_defn) <la_iterate_over_symbols>:
3314 Return bool.
3315 * symtab.c (iterate_over_symbols): Return bool.
3316 * symtab.h (iterate_over_symbols): Return bool.
3317
3318 2019-09-10 Tom Tromey <tromey@adacore.com>
3319
3320 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3321 (add_nonlocal_symbols): Update.
3322 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3323 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3324 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3325 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3326 Change type of "callback". Remove "data".
3327
3328
3329 2019-09-09 Ali Tamur <tamur@google.com>
3330
3331 * dwarf2read.c (comp_unit_head): Update comment.
3332 (dwarf2_dwo_name): New function declaration.
3333 (dwarf_unit_type_name): New function declaration.
3334 (read_comp_unit_head): Add support for new compilation units,
3335 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3336 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3337 (currently named as "signature") in their header. Also clarify error
3338 messages.
3339 (lookup_dwo_id): New function. Returns the dwo id of the given
3340 compile unit.
3341 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3342 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3343 functions.
3344 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3345 (dwarf2_dwo_name): Get the dwo name if present.
3346 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3347 purposes.
3348
3349 2019-09-09 Tom Tromey <tom@tromey.com>
3350
3351 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3352
3353 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3354
3355 * python/python.c (do_start_initialization): Make progname_copy static,
3356 to avoid a leak report.
3357
3358 2019-09-08 Tom Tromey <tom@tromey.com>
3359
3360 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3361
3362 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
3363
3364 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3365 Change type to gdb::optional<block_enum>.
3366 (dw2_symtab_iter_init): Change block_index parameter type
3367 to gdb::optional<block_enum>.
3368 (dw2_lookup_symbol): Change block_index parameter
3369 type to block_enum.c
3370 (dw2_debug_names_lookup_symbol): Likewise.
3371 * psymtab.c (psym_lookup_symbol): Likewise.
3372 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3373 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3374 Likewise.
3375
3376 2019-09-06 Christian Biesinger <cbiesinger@google.com>
3377
3378 * defs.h (relocate_gdb_directory): Change int to bool in
3379 signature and rename flag to relocatable.
3380 * main.c (relocate_path): Likewise.
3381 (relocate_gdb_directory): Likewise.
3382
3383 2019-09-06 Alan Modra <amodra@gmail.com>
3384
3385 * coffread.c (coff_symfile_read): Constify filename variable.
3386 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3387 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3388 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3389 * solib.c (reload_shared_libraries_1): Likewise.
3390 * symfile.c (reread_symbols): Likewise.
3391 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3392 * solib-darwin.c (darwin_bfd_open): Likewise.
3393 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3394
3395 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3396
3397 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3398 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3399
3400 2019-09-03 Tom Tromey <tromey@adacore.com>
3401
3402 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3403 types.
3404 (has_negatives): Unbias a range type bound.
3405 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3406 * gdbtypes.c (operator==): Handle new field.
3407 (create_range_type): Add "bias" parameter.
3408 (create_static_range_type, resolve_dynamic_range): Update.
3409 * gdbtypes.h (struct range_bounds) <bias>: New member.
3410 (create_range_type): Add bias parameter.
3411 * printcmd.c (print_scalar_formatted): Unbias range types.
3412 * value.c (unpack_long): Unbias range types.
3413 (pack_long): Bias range types.
3414
3415 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3416
3417 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3418 probe arguments.
3419
3420 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3421
3422 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3423 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3424 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3425 (compile_probe_arg): Likewise.
3426 * probe.h (get_argument_count): Likewise.
3427 * solib-svr4.c (solib_event_probe_action): Likewise.
3428 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3429
3430 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3431
3432 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3433 code to here...
3434 (svr4_create_solib_event_breakpoints): ...from here.
3435
3436 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3437
3438 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3439 suffix from warning message.
3440
3441 2019-08-30 Tom Tromey <tom@tromey.com>
3442
3443 * tui/tui-winsource.h (struct tui_source_window_base)
3444 <refresh_all>: Don't declare.
3445 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3446 Remove.
3447 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3448 tui_show_locator_content.
3449 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3450 declare.
3451 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3452 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3453 declare.
3454
3455 2019-08-30 Tom Tromey <tom@tromey.com>
3456
3457 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3458
3459 2019-08-30 Tom Tromey <tom@tromey.com>
3460
3461 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3462 Remove unnecessary forward declarations.
3463
3464 2019-08-30 Tom Tromey <tom@tromey.com>
3465
3466 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3467 rerender.
3468 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3469 tui_show_locator_content.
3470
3471 2019-08-30 Tom Tromey <tom@tromey.com>
3472
3473 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3474 (tui_locator_window::rerender): Rewrite using body of previous
3475 tui_show_locator_content.
3476
3477 2019-08-30 Tom Tromey <tom@tromey.com>
3478
3479 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3480 set_locator_fullname>: New methods.
3481 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3482 Rename from tui_set_locator_fullname.
3483 (tui_locator_window::set_locator_info): Rename from
3484 tui_set_locator_info. Return bool.
3485 (tui_update_locator_fullname, tui_show_frame_info): Update.
3486
3487 2019-08-30 Tom Tromey <tom@tromey.com>
3488
3489 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3490
3491 2019-08-30 Tom Tromey <tom@tromey.com>
3492
3493 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3494 call touchwin.
3495
3496 2019-08-30 Tom Tromey <tom@tromey.com>
3497
3498 * tui/tui-wingeneral.c (box_win): Assume win_info and
3499 win_info->handle cannot be NULL.
3500
3501 2019-08-30 Tom Tromey <tom@tromey.com>
3502
3503 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3504 refresh_window>: Declare.
3505 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3506 resize.
3507 (tui_data_item_window::rerender): Rename from
3508 tui_display_register.
3509 (tui_data_item_window::refresh_window): New method.
3510 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3511 no-op.
3512
3513 2019-08-30 Tom Tromey <tom@tromey.com>
3514
3515 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3516 regs_column_count, current_group>: Move later. Now private.
3517 <get_current_group>: New method.
3518 * tui/tui-regs.c (tui_reg_command): Update.
3519 * tui/tui-layout.c (tui_set_layout): Update.
3520
3521 2019-08-30 Tom Tromey <tom@tromey.com>
3522
3523 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3524 (tui_data_window::rerender): Don't call
3525 check_and_display_highlight_if_needed.
3526 (tui_data_window::refresh_all): Remove call to
3527 erase_data_content.
3528
3529 2019-08-30 Tom Tromey <tom@tromey.com>
3530
3531 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3532 (tui_data_window::display_registers_from)
3533 (tui_data_window::display_reg_element_at_line)
3534 (tui_data_window::display_registers_from_line): Remove checks of
3535 "empty".
3536
3537 2019-08-30 Tom Tromey <tom@tromey.com>
3538
3539 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3540 Don't declare.
3541 * tui/tui-regs.c (tui_data_window::show_registers): Call
3542 rerender.
3543 (tui_data_window::rerender): Rename from display_all_data.
3544 (tui_data_window::rerender): Remove old implementation.
3545
3546 2019-08-30 Tom Tromey <tom@tromey.com>
3547
3548 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3549 text.
3550 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3551
3552 2019-08-29 Bernhard Wodok <barto@gmx.net>
3553 Sergio Durigan Junior <sergiodj@redhat.com>
3554
3555 PR win32/24284
3556 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3557
3558 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3559
3560 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3561 when searching for types.
3562
3563 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3564
3565 * f-lang.c (f_language_defn): Use f_print_typedef.
3566 * f-lang.h (f_print_typedef): Declare.
3567 * f-typeprint.c (f_print_typedef): Define.
3568
3569 2019-08-27 Christian Biesinger <cbiesinger@google.com>
3570
3571 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3572
3573 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3574
3575 * cli/cli-utils.c (info_print_options_defs): Delete.
3576 (make_info_print_options_def_group): Delete.
3577 (extract_info_print_options): Delete.
3578 (info_print_command_completer): Delete.
3579 (info_print_args_help): Add extra parameter, and optionally
3580 include text about -n flag.
3581 * cli/cli-utils.h (struct info_print_options): Delete.
3582 (extract_info_print_options): Delete declaration.
3583 (info_print_command_completer): Delete declaration.
3584 (info_print_args_help): Add extra parameter, extend header
3585 comment.
3586 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3587 search_symbols.
3588 * stack.c (struct info_print_options): New type.
3589 (info_print_options_defs): New file scoped variable.
3590 (make_info_print_options_def_group): New static function.
3591 (info_print_command_completer): New static function.
3592 (info_locals_command): Update to use new local functions.
3593 (info_args_command): Likewise.
3594 (_initialize_stack): Add extra parameter to calls to
3595 info_print_args_help.
3596 * symtab.c (search_symbols): Add extra parameter, use this to
3597 possibly excluse non-debug symbols.
3598 (symtab_symbol_info): Add extra parameter, which is passed on to
3599 search_symbols.
3600 (struct info_print_options): New type.
3601 (info_print_options_defs): New file scoped variable.
3602 (make_info_print_options_def_group): New static function.
3603 (info_print_command_completer): New static function.
3604 (info_variables_command): Update to use local functions, and pass
3605 extra parameter through to symtab_symbol_info.
3606 (info_functions_command): Likewise.
3607 (info_types_command): Pass additional argument through to
3608 symtab_symbol_info.
3609 (rbreak_command): Pass extra argument to search_symbols.
3610 (_initialize_symtab): Add extra arguments for calls to
3611 info_print_args_help, and update help text for 'info variables',
3612 'whereis', and 'info functions' commands.
3613 * symtab.h (search_symbols): Add extra argument to declaration.
3614 * NEWS: Mention new flags.
3615
3616 2019-08-26 Christian Biesinger <cbiesinger@google.com>
3617
3618 * symtab.c (lookup_static_symbol): Call the new function (and move
3619 it down to be next to lookup_global_symbol).
3620 (struct global_sym_lookup_data): Add block_enum member and rename to...
3621 (struct global_or_static_sym_lookup_data): ...this.
3622 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3623 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3624 (lookup_symbol_global_or_static_iterator_cb): ...this.
3625 (lookup_global_or_static_symbol): New function.
3626 (lookup_global_symbol): Call new function.
3627
3628 2019-08-26 Tom de Vries <tdevries@suse.de>
3629
3630 PR c++/24852
3631 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3632 when pc_probe.prob == NULL.
3633
3634 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3635
3636 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3637 variable symbol_linkage to symbol_linkage_.
3638
3639 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3640
3641 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3642 represent whether the symbol is static, dynamic, or we don't
3643 know.
3644
3645 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3646
3647 * gdb/rx-tdep.c (rx_register_names): New.
3648 (rx_register_name): Delete.
3649 (rx_psw_type): Delete.
3650 (rx_fpsw_type): Delete.
3651 (rx_register_type): Delete.
3652 (rx_gdbarch_init): Convert target-descriptions.
3653 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3654 * gdb/features/Makefile: Add rx.xml.
3655 * gdb/features/rx.xml: New.
3656 * gdb/features/rx.c: Generated.
3657 * gdb/NEWS: Mention target description support.
3658
3659 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3660
3661 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3662 *slot_ptr.
3663
3664 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3665
3666 * configure.ac: Don't check for 'dlfcn.h' (moved to
3667 gdbsupport/common.m4).
3668 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3669 'gdbsupport/'.
3670 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3671 * compile/compile-c-support.c: Include
3672 'gdbsupport/gdb-dlfcn.h'.
3673 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3674 * gdb-dlfcn.c: Move to...
3675 * gdbsupport/gdb-dlfcn.c: ... here.
3676 * gdb-dlfcn.h: Move to...
3677 * gdbsupport/gdb-dlfcn.h: ... here.
3678
3679 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3680
3681 * nios2-tdep.c (struct reg_value): Improve comments. Make
3682 the offset field signed.
3683
3684 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3685
3686 * python/lib/gdb/__init__.py (_execute_file): New function.
3687 * python/python.c (python_run_simple_file): Call gdb._execute_file
3688 on Windows.
3689
3690 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3691
3692 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3693 all uses as this was never set to anything but a zero value.
3694
3695 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3696
3697 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3698
3699 2019-08-21 Christian Biesinger <cbiesinger@google.com>
3700
3701 * tui/tui-data.h (tui_gen_win_info): Add an =default
3702 move constructor, required by some GCC versions.
3703
3704 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
3705
3706 * go32-nat.c (go32_sysinfo): Add hygon_p.
3707
3708 2019-08-20 Tom Tromey <tom@tromey.com>
3709
3710 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3711 line_from_reg_element_no, first_reg_element_no_inline,
3712 display_all_data, delete_data_content_windows,
3713 erase_data_content>: Now private.
3714
3715 2019-08-20 Tom Tromey <tom@tromey.com>
3716
3717 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3718 (tui_unhighlight_win, tui_highlight_win)
3719 (tui_win_info::make_window): Update.
3720 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3721
3722 2019-08-20 Tom Tromey <tom@tromey.com>
3723
3724 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3725 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3726 (MAX_PID_WIDTH): Move to tui-stack.c.
3727 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3728 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3729 (MAX_PID_WIDTH): Move from tui-data.h.
3730
3731 2019-08-20 Tom Tromey <tom@tromey.com>
3732
3733 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3734 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3735 (box_win): Update.
3736 (tui_gen_win_info::make_window): Rename from tui_make_window.
3737 (tui_win_info::make_window): New method.
3738 (tui_gen_win_info::make_visible): Update.
3739 * tui/tui-source.c (tui_source_window::set_contents): Update.
3740 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3741 (tui_data_window::display_registers_from): Update.
3742 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3743 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3744 Declare.
3745 <can_box>: Remove.
3746 <title>: Remove.
3747 (struct tui_win_info) <make_window>: Declare.
3748 <can_box>: Now virtual.
3749 <title>: New member.
3750 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3751 * tui/tui-command.c (tui_cmd_window::resize): Update.
3752
3753 2019-08-20 Tom Tromey <tom@tromey.com>
3754
3755 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3756 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3757 (tui_data_window::check_register_values): Update.
3758
3759 2019-08-20 Tom Tromey <tom@tromey.com>
3760
3761 * tui/tui-regs.h (struct tui_data_window): Use
3762 DISABLE_COPY_AND_ASSIGN.
3763 <regs_content>: Change type, removing unique_ptr.
3764 <tui_data_window>: Add move constructor.
3765 * tui/tui-regs.c (tui_data_window::show_registers)
3766 (tui_data_window::show_register_group)
3767 (tui_data_window::display_registers_from)
3768 (tui_data_window::display_registers_from)
3769 (tui_data_window::first_data_item_displayed)
3770 (tui_data_window::delete_data_content_windows)
3771 (tui_data_window::rerender, tui_data_window::refresh_window)
3772 (tui_data_window::check_register_values): Update.
3773
3774 2019-08-20 Tom Tromey <tom@tromey.com>
3775
3776 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3777 show_register_group>: Declare.
3778 (tui_show_register_group): Don't declare.
3779 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3780 tui_show_registers.
3781 (tui_data_window::show_register_group): Rename from
3782 tui_show_register_group.
3783 (tui_data_window::check_register_values, tui_reg_command):
3784 Update.
3785 * tui/tui-layout.c (tui_set_layout): Update.
3786
3787 2019-08-20 Tom Tromey <tom@tromey.com>
3788
3789 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3790 Declare.
3791 (tui_check_register_values): Don't declare.
3792 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3793 from tui_check_register_values.
3794 * tui/tui-hooks.c (tui_register_changed): Update.
3795
3796 2019-08-20 Tom Tromey <tom@tromey.com>
3797
3798 * tui/tui-regs.c (tui_reg_layout): Move later.
3799 (tui_show_registers): Don't enable TUI mode or change layout.
3800
3801 2019-08-20 Tom Tromey <tom@tromey.com>
3802
3803 * tui/tui-regs.h (struct tui_data_item_window)
3804 <~tui_data_item_window>: Remove.
3805 <content>: Now a unique_xmalloc_ptr.
3806 * tui/tui-regs.c (tui_register_format): Return a
3807 unique_xmalloc_ptr.
3808 (tui_get_register): Update.
3809 (~tui_data_item_window): Remove.
3810 (tui_data_window::display_registers_from, tui_display_register):
3811 Update.
3812 * tui/tui-io.h (tui_expand_tabs): Update.
3813 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3814 Remove "col" parameter.
3815
3816 2019-08-20 Tom Tromey <tom@tromey.com>
3817
3818 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3819 field.
3820 * tui/tui-regs.c (~tui_data_item_window): Update.
3821
3822 2019-08-20 Tom Tromey <tom@tromey.com>
3823
3824 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3825 earlier.
3826
3827 2019-08-20 Tom Tromey <tom@tromey.com>
3828
3829 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3830
3831 2019-08-20 Tom Tromey <tom@tromey.com>
3832
3833 * tui/tui-source.h (struct tui_source_window): Update.
3834 * tui/tui-regs.c (tui_show_registers): Update.
3835 * tui/tui-disasm.h (struct tui_disasm_window): Update.
3836 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
3837 (NO_REGS_STRING): Remove defines.
3838
3839 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
3840
3841 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
3842 unnecessary thread walk if remote doesn't support the packet.
3843
3844 2019-08-19 Tom Tromey <tromey@adacore.com>
3845
3846 * python/py-value.c (value_has_field): Fix indentation.
3847
3848 2019-08-19 Tom Tromey <tromey@adacore.com>
3849
3850 * printcmd.c (do_one_display, info_display_command): Update.
3851 * block.h (contained_in): Return bool. Add allow_nested
3852 parameter.
3853 * block.c (contained_in): Return bool. Add allow_nested
3854 parameter.
3855
3856 2019-08-19 Tom Tromey <tom@tromey.com>
3857
3858 * configure: Rebuild.
3859 * configure.ac: Disallow the combination of -static-libstdc++ and
3860 source highlight.
3861 * source-cache.c (get_language_name): Handle rust.
3862 (source_cache::get_source_lines): Ignore highlighting exceptions.
3863
3864 2019-08-16 Tom Tromey <tom@tromey.com>
3865
3866 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
3867 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
3868 (struct tui_source_window_base) <make_visible, refresh_window,
3869 resize>: Remove methods.
3870 <execution_info>: Remove field.
3871 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
3872 (tui_show_source_line, tui_source_window_base)
3873 (~tui_source_window_base): Update.
3874 (tui_source_window_base::resize)
3875 (tui_source_window_base::make_visible)
3876 (tui_source_window_base::refresh_window): Remove.
3877 (tui_source_window_base::update_exec_info): Update.
3878 * tui/tui-source.c (tui_source_window::set_contents): Update.
3879 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3880
3881 2019-08-16 Tom Tromey <tom@tromey.com>
3882
3883 * tui/tui-hooks.c (tui_remove_hooks): Don't set
3884 deprecated_query_hook.
3885
3886 2019-08-16 Tom Tromey <tom@tromey.com>
3887
3888 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3889 (tui_update_source_windows_with_line): Update.
3890 * tui/tui-source.h (struct tui_source_window)
3891 <show_symtab_source>: Declare.
3892 (tui_show_symtab_source): Don't declare.
3893 * tui/tui-source.c (tui_show_symtab_source): Rename from
3894 tui_show_symtab_source.
3895
3896 2019-08-16 Tom Tromey <tom@tromey.com>
3897
3898 * tui/tui-winsource.h (struct tui_source_window_base)
3899 <set_contents>: Declare.
3900 * tui/tui-winsource.c
3901 (tui_source_window_base::update_source_window_as_is): Update.
3902 * tui/tui-source.h (struct tui_source_window) <set_contents>:
3903 Declare.
3904 (tui_set_source_content): Don't declare.
3905 * tui/tui-source.c (tui_source_window::set_contents): Rename from
3906 tui_set_source_content.
3907 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
3908 Declare.
3909 (tui_set_disassem_content): Don't declare.
3910 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
3911 tui_set_disassem_content.
3912
3913 2019-08-16 Tom Tromey <tom@tromey.com>
3914
3915 * tui/tui-winsource.h (struct tui_source_window_base)
3916 <update_breakpoint_info>: Declare.
3917 (tui_update_breakpoint_info): Don't declare.
3918 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3919 (tui_update_all_breakpoint_info): Update.
3920 (tui_source_window_base::update_breakpoint_info): Rename from
3921 tui_update_breakpoint_info.
3922 (tui_source_window_base::update_exec_info): Update.
3923
3924 2019-08-16 Tom Tromey <tom@tromey.com>
3925
3926 * tui/tui-winsource.h (struct tui_source_window_base)
3927 <update_source_window>: Declare.
3928 (tui_update_source_window): Don't declare.
3929 * tui/tui-winsource.c
3930 (tui_source_window_base::update_source_window): Rename from
3931 tui_update_source_window.
3932 (tui_source_window_base::rerender): Update.
3933 * tui/tui-source.c (tui_source_window::maybe_update): Update.
3934 * tui/tui-disasm.c (tui_show_disassem)
3935 (tui_show_disassem_and_update_source)
3936 (tui_disasm_window::maybe_update): Update.
3937
3938 2019-08-16 Tom Tromey <tom@tromey.com>
3939
3940 * tui/tui-winsource.h (struct tui_source_window_base)
3941 <update_source_window_as_is>: Declare.
3942 (tui_update_source_window_as_is): Don't declare.
3943 * tui/tui-winsource.c (tui_update_source_window): Update
3944 (tui_source_window_base::update_source_window_as_is): Rename from
3945 tui_update_source_window_as_is.
3946 (tui_source_window_base::refill): Update.
3947 * tui/tui-source.c (tui_show_symtab_source): Update.
3948 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
3949 Update.
3950
3951 2019-08-16 Tom Tromey <tom@tromey.com>
3952
3953 * tui/tui-winsource.h (tui_update_source_window)
3954 (tui_update_source_window_as_is): Remove "noerror" parameter.
3955 * tui/tui-winsource.c (tui_update_source_window)
3956 (tui_update_source_window_as_is): Remove "noerror" parameter.
3957 (tui_update_source_windows_with_addr)
3958 (tui_update_source_windows_with_line)
3959 (tui_source_window_base::rerender)
3960 (tui_source_window_base::refill): Update.
3961 * tui/tui-source.h (tui_set_source_content)
3962 (tui_show_symtab_source): Remove "noerror" parameter.
3963 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
3964 parameter.
3965 (tui_show_symtab_source): Likewise.
3966 (tui_source_window::maybe_update): Update.
3967 * tui/tui-disasm.c (tui_show_disassem)
3968 (tui_show_disassem_and_update_source)
3969 (tui_disasm_window::do_scroll_vertical)
3970 (tui_disasm_window::maybe_update): Update.
3971
3972 2019-08-16 Tom Tromey <tom@tromey.com>
3973
3974 * tui/tui.c (tui_is_window_visible): Update.
3975 * tui/tui-wingeneral.c (tui_make_window)
3976 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
3977 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
3978 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
3979 (tui_set_win_height_command, parse_scrolling_args): Update.
3980 * tui/tui-source.c (tui_source_window::style_changed): Update.
3981 * tui/tui-regs.c (tui_show_registers)
3982 (tui_data_window::first_data_item_displayed)
3983 (tui_data_window::delete_data_content_windows)
3984 (tui_check_register_values, tui_reg_command): Update.
3985 * tui/tui-disasm.c (tui_show_disassem): Update.
3986 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
3987 method.
3988 <is_visible>: Remove field.
3989 * tui/tui-data.c (tui_next_win, tui_prev_win)
3990 (tui_delete_invisible_windows): Update.
3991
3992 2019-08-16 Tom Tromey <tom@tromey.com>
3993
3994 * tui/tui-winsource.h (struct tui_source_window_base)
3995 <m_has_locator>: Remove.
3996 * tui/tui-layout.c (show_source_disasm_command, show_data)
3997 (show_source_or_disasm_and_command): Update.
3998
3999 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4000
4001 * NEWS (Other MI changes): New subsection.
4002 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4003 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4004 * arch-utils.c (default_get_pc_address_flags): New function.
4005 * arch-utils.h (default_get_pc_address_flags): New declaration.
4006 * gdbarch.sh: Add get_pc_address_flags.
4007 * gdbarch.c: Regenerate.
4008 * gdbarch.h: Likewise.
4009 * stack.c (print_pc): New function.
4010 (print_frame_info) (print_frame): Call print_pc.
4011
4012 2019-08-16 Tom de Vries <tdevries@suse.de>
4013
4014 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4015 print_objfile_section_info.
4016
4017 2019-08-15 Tom Tromey <tom@tromey.com>
4018
4019 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4020 calling update_cmdwin_start_line.
4021 * tui/tui-winsource.h (struct tui_source_window_base)
4022 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4023 <rerender>: Declare.
4024 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4025 Call rerender.
4026 (tui_source_window_base::set_new_height): Remove.
4027 (tui_source_window_base::rerender): Rename from
4028 do_make_visible_with_new_height.
4029 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4030 resize method.
4031 (tui_win_info::make_invisible_and_set_new_height)
4032 (tui_win_info::make_visible_with_new_height): Remove.
4033 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4034 Declare.
4035 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4036 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4037 do_make_visible_with_new_height>: Don't declare.
4038 <rerender>: Declare.
4039 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4040 set_new_height.
4041 (tui_data_window::do_make_visible_with_new_height): Remove.
4042 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4043 call tui_show_locator_content.
4044 (tui_gen_win_info::resize): Call rerender.
4045 (show_source_or_disasm_and_command): Don't call
4046 tui_show_locator_content.
4047 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4048 method.
4049 (struct tui_win_info) <rerender>: Declare.
4050 <set_new_height, make_invisible_and_set_new_height,
4051 make_visible_with_new_height>: Don't declare.
4052 * tui/tui-data.c (tui_win_list::rerender): New method.
4053 * tui/tui-command.h (struct tui_cmd_window)
4054 <do_make_visible_with_new_height>: Don't declare.
4055 * tui/tui-command.c
4056 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4057
4058 2019-08-15 Tom Tromey <tromey@adacore.com>
4059
4060 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4061 * ada-lang.c (ada_enum_name): Likewise.
4062
4063 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4064
4065 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4066 leading underscore.
4067 (GdbOutputErrorFile): Likewise.
4068 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4069 accordingly.
4070 (execute_unwinders): Rename to have a leading underscore.
4071 (auto_load_packages): Likewise.
4072 (global scope): Adjust call to auto_load_packages accordingly.
4073 (GdbSetPythonDirectory): Likewise.
4074 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4075 instead of execute_unwinders.
4076
4077 2019-08-15 Tom Tromey <tom@tromey.com>
4078
4079 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4080 (show_data): Don't change window visibility.
4081 (tui_gen_win_info::resize): Remove special case for command
4082 window. Use wresize, when available.
4083 (show_source_or_disasm_and_command): Don't change window
4084 visibility.
4085 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4086 <make_visible>: New method.
4087 * tui/tui-command.c (tui_cmd_window::resize): New method.
4088
4089 2019-08-15 Tom Tromey <tom@tromey.com>
4090
4091 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4092 (struct tui_source_windows): New.
4093 * tui/tui-winsource.c (tui_display_main): Update.
4094 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4095 (new_height_ok, parse_scrolling_args): Update.
4096 * tui/tui-layout.c (show_layout, show_data): Update.
4097 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4098 (tui_add_to_source_windows): Don't declare.
4099 * tui/tui-data.c (source_windows, tui_source_windows)
4100 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4101
4102 2019-08-15 Tom Tromey <tom@tromey.com>
4103
4104 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4105 Rename from reset.
4106 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4107 * tui/tui-layout.c (show_source_disasm_command, show_data):
4108 Update.
4109 (tui_gen_win_info::resize): Rename.
4110 (show_source_or_disasm_and_command): Update.
4111 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4112 reset.
4113
4114 2019-08-15 Tom Tromey <tom@tromey.com>
4115
4116 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4117 * tui/tui-interp.c (tui_interp::init): Don't call
4118 tui_initialize_static_data.
4119 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4120
4121 2019-08-15 Tom Tromey <tom@tromey.com>
4122
4123 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4124 examine tui_win_list.
4125
4126 2019-08-15 Tom Tromey <tom@tromey.com>
4127
4128 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4129 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4130 tui_clear_source_content.
4131 (tui_clear_source_content): Remove.
4132 (tui_source_window_base::do_erase_source_content): Hoist call to
4133 content.clear().
4134 * tui/tui-stack.c (tui_show_frame_info): Don't call
4135 tui_clear_source_content.
4136
4137 2019-08-15 Tom Tromey <tom@tromey.com>
4138
4139 * tui/tui-winsource.h (struct tui_source_window_base)
4140 <do_erase_source_content>: New method.
4141 <erase_source_content>: New method.
4142 (tui_erase_source_content): Don't declare.
4143 * tui/tui-winsource.c (tui_clear_source_content): Update.
4144 (tui_source_window_base::do_erase_source_content): Rename from
4145 tui_erase_source_content.
4146 (tui_source_window_base::show_source_content): Update.
4147 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4148 * tui/tui-source.h (struct tui_source_window)
4149 <erase_source_content>: New method.
4150 * tui/tui-disasm.h (struct tui_disasm_window)
4151 <erase_source_content>: New method.
4152
4153 2019-08-15 Tom Tromey <tom@tromey.com>
4154
4155 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4156 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4157 constructor.
4158 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4159 * tui/tui-source.c (tui_set_source_content): Update.
4160 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4161
4162 2019-08-15 Tom Tromey <tom@tromey.com>
4163
4164 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4165 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4166 tui-source.c.
4167 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4168 Declare.
4169 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4170 method.
4171 (tui_source_window::maybe_update): Update.
4172
4173 2019-08-15 Tom Tromey <tom@tromey.com>
4174
4175 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4176 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4177 tui-disasm.c.
4178 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4179 Declare.
4180 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4181 method.
4182 (tui_disasm_window::maybe_update): Update.
4183
4184 2019-08-15 Tom Tromey <tom@tromey.com>
4185
4186 * tui/tui-winsource.h (struct tui_source_window_base)
4187 <maybe_update>: Declare.
4188 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4189 method.
4190 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4191 Declare.
4192 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4193 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4194 Declare.
4195 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4196
4197 2019-08-15 Tom Tromey <tom@tromey.com>
4198
4199 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4200
4201 2019-08-15 Tom Tromey <tom@tromey.com>
4202
4203 * tui/tui-wingeneral.c: Include tui-stack.h.
4204 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4205 (struct tui_locator_window): Move from tui-data.h.
4206 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4207 (tui_initialize_static_data): Move from tui-data.c.
4208 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4209 (struct tui_locator_window): Move to tui-stack.c.
4210 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4211 (tui_initialize_static_data): Move to tui-stack.c.
4212
4213 2019-08-15 Tom Tromey <tom@tromey.com>
4214
4215 * tui/tui-layout.c (show_source_disasm_command)
4216 (show_source_or_disasm_and_command): Use make_visible method, not
4217 tui_make_window.
4218 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4219 Remove.
4220
4221 2019-08-15 Tom Tromey <tom@tromey.com>
4222
4223 * tui/tui-wingeneral.h (tui_make_window): Update.
4224 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4225 parameter.
4226 (tui_gen_win_info::make_visible): Update.
4227 * tui/tui-regs.c (tui_data_window::display_registers_from):
4228 Update.
4229 * tui/tui-layout.c (show_source_disasm_command)
4230 (show_source_or_disasm_and_command): Update.
4231 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4232 (enum tui_box): Remove.
4233 (struct tui_win_info) <can_box>: New method.
4234 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4235 method.
4236
4237 2019-08-15 Tom de Vries <tdevries@suse.de>
4238
4239 * linux-nat-trad.c: Include gdbarch.h.
4240
4241 2019-08-14 Alan Hayward <alan.hayward@arm.com>
4242
4243 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4244 register sizes.
4245
4246 2019-08-14 Tom Tromey <tromey@adacore.com>
4247
4248 * darwin-nat.c: Include gdbarch.h.
4249 * darwin-nat-info.c: Include gdbarch.h.
4250
4251 2019-08-13 Tom Tromey <tom@tromey.com>
4252
4253 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4254 Remove.
4255 * tui/tui-data.c (tui_initialize_static_data): Update.
4256
4257 2019-08-13 Tom Tromey <tom@tromey.com>
4258
4259 * tui/tui-winsource.h (struct tui_exec_info_window)
4260 <~tui_exec_info_window, maybe_allocate_content, get_content,
4261 m_content>: Remove.
4262 (struct tui_source_window_base) <set_exec_info_content,
4263 show_exec_info_content>: Don't declare.
4264 * tui/tui-winsource.c
4265 (tui_exec_info_window::maybe_allocate_content): Remove.
4266 (tui_source_window_base::update_exec_info): Rename from
4267 set_exec_info_content.
4268 (tui_source_window_base::show_exec_info_content)
4269 (tui_source_window_base::update_exec_info): Remove.
4270
4271 2019-08-13 Tom Tromey <tom@tromey.com>
4272
4273 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4274 declare.
4275 * tui/tui-winsource.c (tui_update_source_window_as_is)
4276 (tui_update_source_windows_with_addr, tui_erase_source_content):
4277 Update.
4278 (tui_clear_exec_info_content): Remove.
4279
4280 2019-08-13 Tom Tromey <tom@tromey.com>
4281
4282 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4283 declare.
4284 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4285 call tui_erase_exec_info_content.
4286 (tui_clear_exec_info_content): Rename from
4287 tui_erase_exec_info_content.
4288 (tui_clear_exec_info_content): Delete.
4289
4290 2019-08-13 Tom Tromey <tom@tromey.com>
4291
4292 * tui/tui-winsource.h (struct tui_source_window_base)
4293 <show_exec_info_content>: Declare.
4294 (tui_show_exec_info_content): Don't declare.
4295 * tui/tui-winsource.c
4296 (tui_source_window_base::show_exec_info_content): Rename from
4297 tui_show_exec_info_content.
4298 (tui_source_window_base::update_exec_info): Update.
4299
4300 2019-08-13 Tom Tromey <tom@tromey.com>
4301
4302 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4303 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4304 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4305 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4306 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4307 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4308 ... here.
4309
4310 2019-08-13 Tom Tromey <tom@tromey.com>
4311
4312 * tui/tui-winsource.h (struct tui_source_window_base)
4313 <update_exec_info>: Declare.
4314 (tui_update_exec_info): Don't declare.
4315 * tui/tui-winsource.c (tui_update_source_window_as_is)
4316 (tui_source_window_base::refresh_all)
4317 (tui_update_all_breakpoint_info): Update.
4318 (tui_source_window_base::update_exec_info): Rename from
4319 tui_update_exec_info.
4320 * tui/tui-stack.c (tui_show_frame_info): Update.
4321
4322 2019-08-13 Tom Tromey <tom@tromey.com>
4323
4324 * tui/tui-winsource.h (struct tui_source_window_base)
4325 <set_exec_info_content>: Declare.
4326 (tui_set_exec_info_content): Don't declare.
4327 * tui/tui-winsource.c
4328 (tui_source_window_base::set_exec_info_content): Rename from
4329 tui_set_exec_info_content.
4330 (tui_update_exec_info): Update.
4331
4332 2019-08-13 Tom Tromey <tom@tromey.com>
4333
4334 * tui/tui-winsource.h (struct tui_source_window_base)
4335 <show_source_content>: Declare.
4336 (tui_show_source_content): Don't declare.
4337 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4338 (tui_source_window_base::show_source_content): Rename from
4339 tui_show_source_content.
4340 (tui_source_window_base::refresh_all): Update.
4341 * tui/tui-layout.c (show_source_disasm_command)
4342 (show_source_or_disasm_and_command): Update.
4343
4344 2019-08-13 Tom Tromey <tom@tromey.com>
4345
4346 * tui/tui-winsource.c (tui_erase_source_content)
4347 (tui_show_source_content, tui_source_window_base::refresh_all):
4348 Update.
4349 * tui/tui-wingeneral.h
4350 (tui_check_and_display_highlight_if_needed): Don't declare.
4351 * tui/tui-wingeneral.c
4352 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4353 check_and_display_highlight_if_needed.
4354 * tui/tui-win.c (tui_rehighlight_all)
4355 (tui_win_info::make_visible_with_new_height): Update.
4356 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4357 (tui_data_window::erase_data_content)
4358 (tui_data_window::display_all_data): Update.
4359 * tui/tui-data.h (struct tui_win_info)
4360 <check_and_display_highlight_if_needed>: Declare.
4361
4362 2019-08-13 Tom Tromey <tom@tromey.com>
4363
4364 * tui/tui-win.c (tui_resize_all): Call
4365 tui_delete_invisible_windows.
4366 * tui/tui-layout.c (show_layout): Call
4367 tui_delete_invisible_windows.
4368 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4369 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4370
4371 2019-08-13 Tom Tromey <tom@tromey.com>
4372
4373 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4374 tui_add_win_to_layout.
4375
4376 2019-08-13 Tom Tromey <tom@tromey.com>
4377
4378 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4379 * tui/tui-layout.c (tui_default_win_height): Now static.
4380
4381 2019-08-13 Tom Tromey <tom@tromey.com>
4382
4383 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4384 single switch.
4385 (show_source_disasm_command, show_source_or_disasm_and_command):
4386 Don't check current layout.
4387
4388 2019-08-13 Tom Tromey <tom@tromey.com>
4389
4390 * tui/tui-wingeneral.c (make_all_visible): Remove.
4391 (tui_make_all_invisible): Simplify.
4392 * tui/tui-layout.c (tui_make_all_invisible): Move from
4393 tui-wingeneral.c; simplify.
4394 (show_layout): Hoist call to tui_make_all_invisible.
4395 (show_data): Don't call tui_make_all_invisible.
4396
4397 2019-08-13 Tom Tromey <tom@tromey.com>
4398
4399 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4400 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4401
4402 2019-08-13 Tom Tromey <tom@tromey.com>
4403
4404 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4405 tui-data.c.
4406 (show_source_disasm_command, show_data)
4407 (show_source_or_disasm_and_command): Don't use
4408 tui_set_current_layout_to.
4409 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4410 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4411 tui-layout.c.
4412 (tui_set_current_layout_to): Remove.
4413
4414 2019-08-13 Tom Tromey <tom@tromey.com>
4415
4416 * tui/tui-layout.c (tui_set_layout): Update.
4417 * tui/tui-data.h (struct tui_layout_def): Remove.
4418 (tui_layout_def): Don't declare.
4419 * tui/tui-data.c (layout_def): Remove.
4420 (tui_layout_def): Remove.
4421
4422 2019-08-13 Tom Tromey <tom@tromey.com>
4423
4424 * tui/tui-winsource.h (struct tui_source_window_base)
4425 <clear_detail>: No longer "override".
4426 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4427 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4428 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4429 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4430 Remove.
4431 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4432
4433 2019-08-13 Tom Tromey <tromey@adacore.com>
4434
4435 * tracepoint.c: Don't include readline.h or history.h.
4436
4437 2019-08-12 Tom Tromey <tom@tromey.com>
4438
4439 * configure: Rebuild.
4440 * configure.ac: Check for readline 7.
4441 * NEWS: Mention readline 7 requirement.
4442 * README: Update.
4443
4444 2019-08-12 Tom Tromey <tom@tromey.com>
4445
4446 * mingw-hdep.c (gdb_select): Remove readline hack.
4447
4448 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4449
4450 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4451 when the function fails.
4452
4453 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4454
4455 * s390-tdep.c (s390_type_align): New function.
4456 (s390_gdbarch_init): Set it as type_align gdbarch method.
4457
4458 2019-08-09 Tom de Vries <tdevries@suse.de>
4459
4460 PR gdb/24591
4461 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4462 pc_low with relocation offset.
4463
4464 2019-08-07 Tom Tromey <tromey@adacore.com>
4465
4466 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4467 (print_frame_args): Update.
4468 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4469 Update.
4470 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4471 * frame.h (struct frame_arg): Add initializers.
4472 <error>: Now a unique_xmalloc_ptr.
4473
4474 2019-08-07 Alan Hayward <alan.hayward@arm.com>
4475
4476 * NEWS: Expand the Pointer Authentication entry.
4477 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4478 (aarch64_frame_unmask_lr): ... to this.
4479 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4480 Call aarch64_frame_unmask_lr.
4481 * frame.c (struct frame_info): Add "masked" variable.
4482 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4483 (fprint_frame): Check for masked pc.
4484 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4485 declarations.
4486 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4487 * stack.c (print_frame): Check for masked pc.
4488
4489 2019-08-06 Tom Tromey <tom@tromey.com>
4490
4491 * stabsread.c (patch_block_stabs, read_one_struct_field)
4492 (read_enum_type): Use obstack_strndup.
4493 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4494 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4495 * dwarf2read.c (guess_full_die_structure_name)
4496 (anonymous_struct_prefix): Use obstack_strndup.
4497 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4498 * c-exp.y (yylex): Use obstack_strndup.
4499 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4500 (write_var_or_type): Use obstack_strndup.
4501
4502 2019-08-06 Tom Tromey <tom@tromey.com>
4503
4504 * symfile.c (reread_symbols): Use obstack_strdup.
4505 * stabsread.c (read_type): Use obstack_strdup.
4506 * gdb_obstack.h (obstack_strdup): New overload.
4507 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4508 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4509 (dwarf2_canonicalize_name): Use obstack_strdup.
4510 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4511 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4512 Use obstack_strdup.
4513
4514 2019-08-06 Tom Tromey <tom@tromey.com>
4515
4516 * gdb_obstack.h (obstack_strdup): Define.
4517 * gdb_obstack.c (obstack_strdup): Don't define.
4518
4519 2019-08-06 Tom Tromey <tom@tromey.com>
4520
4521 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4522 obstack_strdup.
4523 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4524 obstack_strdup.
4525 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4526 * stabsread.c (common_block_start): Use obstack_strdup.
4527 * objfiles.c (set_objfile_main_name, objfile): Use
4528 obstack_strdup.
4529 * namespace.c (add_using_directive): Use obstack_strdup.
4530 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4531 * jit.c (finalize_symtab): Use obstack_strdup.
4532 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4533 (guess_partial_die_structure_name, partial_die_info::fixup)
4534 (dwarf2_name): Use obstack_strdup.
4535 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4536 obstack_strdup.
4537 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4538 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4539 obstack_strdup.
4540 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4541
4542 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4543
4544 * unittests/help-doc-selftests.c: New file.
4545 * Makefile.in: Add the new file.
4546
4547 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4548
4549 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4550 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4551 the full first line, except when FOR_VALUE_PREFIX. In this case,
4552 the trailing '.' is not output, and the first character is uppercased.
4553 (print_help_for_command): Update call to print_doc_line.
4554 (print_doc_of_command): Likewise.
4555 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4556 * cli/cli-option.c (append_indented_doc): Do not append newline.
4557 (build_help_option): Append newline after first appended_indented_doc
4558 only if a second call is done.
4559 (build_help): Append 2 new lines before each option, except the first
4560 one.
4561 * compile/compile.c (_initialize_compile): Add new lines after
4562 %OPTIONS%, when not at the end of the help.
4563 Change help doc or code
4564 producing the help doc to respect the invariants.
4565 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4566 Also removed the new line after 'Options:', as all other commands
4567 do not put an empty line between 'Options:' and the first option.
4568 * printcmd.c (_initialize_printcmd): Likewise.
4569 * stack.c (_initialize_stack): Likewise.
4570 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4571 incorrectly telling COMMAND is optional.
4572 * ada-lang.c (_initialize_ada_language): Change help doc or code
4573 producing the help doc to respect the invariants.
4574 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4575 * breakpoint.c (_initialize_breakpoint): Likewise.
4576 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4577 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4578 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4579 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4580 _initialize_cli_style): Likewise.
4581 * corelow.c (core_target_info): Likewise.
4582 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4583 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4584 * filesystem.c (_initialize_filesystem): Likewise.
4585 * frame.c (_initialize_frame): Likewise.
4586 * gnu-nat.c (add_task_commands): Likewise.
4587 * infcall.c (_initialize_infcall): Likewise.
4588 * infcmd.c (_initialize_infcmd): Likewise.
4589 * interps.c (_initialize_interpreter): Likewise.
4590 * language.c (_initialize_language): Likewise.
4591 * linux-fork.c (_initialize_linux_fork): Likewise.
4592 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4593 * maint.c (_initialize_maint_cmds): Likewise.
4594 * memattr.c (_initialize_mem): Likewise.
4595 * printcmd.c (_initialize_printcmd): Likewise.
4596 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4597 _RegEx): Likewise.
4598 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4599 * record-btrace.c (_initialize_record_btrace): Likewise.
4600 * record-full.c (_initialize_record_full): Likewise.
4601 * record.c (_initialize_record): Likewise.
4602 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4603 * regcache.c (_initialize_regcache): Likewise.
4604 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4605 _initialize_remote): Likewise.
4606 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4607 * serial.c (_initialize_serial): Likewise.
4608 * skip.c (_initialize_step_skip): Likewise.
4609 * source.c (_initialize_source): Likewise.
4610 * stack.c (_initialize_stack): Likewise.
4611 * symfile.c (_initialize_symfile): Likewise.
4612 * symtab.c (_initialize_symtab): Likewise.
4613 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4614 * top.c (init_main): Likewise.
4615 * tracefile-tfile.c (tfile_target_info): Likewise.
4616 * tracepoint.c (_initialize_tracepoint): Likewise.
4617 * tui/tui-win.c (_initialize_tui_win): Likewise.
4618 * utils.c (add_internal_problem_command): Likewise.
4619 * valprint.c (value_print_option_defs): Likewise.
4620
4621 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4622
4623 PR build/24886
4624 * configure.ac: Drop enable-libmcheck support.
4625 * configure, config.in: Rebuild.
4626 * libmcheck.m4: Remove.
4627 * acinclude.m4: Don't include it.
4628 * Makefile.in: Don't distribute it.
4629 * top.c (print_gdb_configuration): Don't mention it.
4630
4631 2019-08-06 Tom Tromey <tom@tromey.com>
4632
4633 * utils.c (set_output_style): Sometimes pass stream to
4634 emit_style_escape.
4635 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4636 * record-btrace.c (btrace_insn_history): Update.
4637 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4638 method.
4639 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4640 Update initializers.
4641 <m_uiout>: New field.
4642 <m_di>: Move lower.
4643 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4644 Remove "uiout" parameter.
4645 (dump_insns): Update.
4646 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4647 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4648
4649 2019-08-06 Christian Biesinger <cbiesinger@google.com>
4650
4651 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4652 (error_in_psymtab_expansion): Likewise.
4653 (lookup_symbol_via_quick_fns): Likewise.
4654 (basic_lookup_transparent_type_quick): Likewise.
4655 (basic_lookup_transparent_type_1): Likewise.
4656
4657 2019-08-06 Tom Tromey <tromey@adacore.com>
4658
4659 * source.c (last_source_error): Now bool.
4660 (print_source_lines_base): Make "noprint" bool. Only open
4661 source file when last_source_visited changes.
4662
4663 2019-08-06 Tom Tromey <tromey@adacore.com>
4664
4665 * annotate.c (annotate_source_line): Use g_source_cache.
4666 * source-cache.c (source_cache::get_plain_source_lines): Change
4667 parameters. Populate m_offset_cache.
4668 (source_cache::ensure): New method.
4669 (source_cache::get_line_charpos): New method.
4670 (extract_lines): Move lower. Change parameters.
4671 (source_cache::get_source_lines): Move lower.
4672 * source-cache.h (class source_cache): Update comment.
4673 <get_line_charpos>: New method.
4674 <get_source_lines>: Update comment.
4675 <clear>: Clear m_offset_cache.
4676 <get_plain_source_lines>: Change parameters.
4677 <ensure>: New method
4678 <m_offset_cache>: New member.
4679 * source.c (forget_cached_source_info_for_objfile): Update.
4680 (info_source_command): Use g_source_cache.
4681 (find_source_lines, open_source_file_with_line_charpos): Remove.
4682 (print_source_lines_base, search_command_helper): Use g_source_cache.
4683 * source.h (open_source_file_with_line_charpos): Don't declare.
4684 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4685 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4686 Use g_source_cache.
4687
4688 2019-08-06 Tom Tromey <tromey@adacore.com>
4689
4690 * source-cache.c (source_cache::get_plain_source_lines):
4691 Remove "first_line" and "last_line" parameters.
4692 (source_cache::get_source_lines): Cache plain text.
4693 * source-cache.h (class source_cache)
4694 <get_plain_source_lines>: Update.
4695
4696 2019-08-06 Tom Tromey <tromey@adacore.com>
4697
4698 * source-cache.c (extract_lines): No longer a method.
4699 Changed type of parameter. Include final newline.
4700 (selftests::extract_lines_test): New function.
4701 (_initialize_source_cache): Likewise.
4702 * source-cache.h (class source_cache)
4703 <extract_lines>: Don't declare.
4704
4705 2019-08-06 Tom Tromey <tromey@adacore.com>
4706
4707 * breakpoint.c (init_breakpoint_sal): Update.
4708 (breakpoint): Update.
4709 * breakpoint.h (struct breakpoint) <filter>: Now a
4710 unique_xmalloc_ptr.
4711
4712 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4713
4714 * NEWS: Mention dictionary access on blocks.
4715 * python/py-block.c (blpy_getitem): New function.
4716 (block_object_as_mapping): New struct.
4717 (block_object_type): Use new struct for tp_as_mapping field.
4718
4719 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4720
4721 * objfiles.h (objfile): Add a comment describing partial symbols.
4722
4723 2019-08-05 Tom Tromey <tromey@adacore.com>
4724
4725 * compile/compile.c (_initialize_compile): Use _(), not N_().
4726 * thread.c (_initialize_thread): Use _(), not N_().
4727 * stack.c (_initialize_stack): Use _(), not N_().
4728 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4729
4730 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4731
4732 * dwarf2read.c (struct dw2_symtab_iterator):
4733 <want_specific_block>: Remove.
4734 <block_index>: Change type to gdb::optional.
4735 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4736 change type of BLOCK_INDEX parameter to gdb::optional.
4737 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4738 (dw2_lookup_symbol): Don't pass argument for
4739 WANT_SPECIFIC_BLOCK.
4740 (dw2_expand_symtabs_for_function): Don't pass argument for
4741 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4742 (class dw2_debug_names_iterator)
4743 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4744 parameter, change BLOCK_INDEX type to gdb::optional.
4745 <m_want_specific_block>: Remove.
4746 <m_block_index>: Change type to gdb::optional.
4747 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4748 gdb::optional. Re-write in function of gdb::optional.
4749 (dw2_debug_names_lookup_symbol): Don't pass argument for
4750 WANT_SPECIFIC_BLOCK.
4751 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4752 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4753 BLOCK_INDEX.
4754
4755 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4756
4757 * NEWS: Mention changes to "info sources" command.
4758
4759 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4760
4761 * symtab.c (filename_partial_match_opts): New struct type.
4762 (struct output_source_filename_data): New members
4763 regexp, c_regexp, partial_match.
4764 (output_source_filename): Use new members to decide to print file.
4765 (info_sources_option_defs): New variable.
4766 (make_info_sources_options_def_group, print_info_sources_header,
4767 info_sources_command_completer):
4768 New functions.
4769 (info_sources_command): Read new optional arguments.
4770 (_initialize_symtab): Update info sources help.
4771
4772 2019-08-02 Alexandre Oliva <oliva@adacore.com>
4773
4774 * ada-lang.c (exception_support_info_v0): Renamed from...
4775 (default_exception_support_info): ... this. Create new
4776 definition for v1.
4777 (ada_has_this_exception_support): Look up catch_handlers_sym.
4778 (ada_exception_support_info_sniffer): Try v0 after default.
4779
4780 2019-08-01 Tom Tromey <tromey@adacore.com>
4781
4782 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4783 gdbarch.h.
4784
4785 2019-08-01 Christian Biesinger <cbiesinger@google.com>
4786
4787 * s12z-tdep.c: Fix include path for s12z-opc.h.
4788
4789 2019-08-01 Alan Hayward <alan.hayward@arm.com>
4790
4791 * NEWS: Require GNU make 3.82.
4792
4793 2019-07-16 Tom Tromey <tom@tromey.com>
4794
4795 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4796 declare.
4797
4798 2019-07-30 Tom Tromey <tromey@adacore.com>
4799
4800 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4801
4802 2019-07-30 Kevin Buettner <kevinb@redhat.com>
4803
4804 * printcmd.c (print_address_symbolic): Print negative offsets.
4805 (build_address_symbolic): Force signed arithmetic when computing
4806 offset.
4807
4808 2019-07-30 Christian Biesinger <cbiesinger@google.com>
4809
4810 PR/24474: Add a function to lookup static variables.
4811 * NEWS: Mention this new function.
4812 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4813 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4814 * python/python.c (python_GdbMethods): Add new function.
4815
4816 2019-07-29 Christian Biesinger <cbiesinger@google.com>
4817
4818 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4819 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4820 (objfpy_lookup_static_symbol): New function.
4821 (objfile_object_methods): Add new functions.
4822
4823 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4824
4825 * NEWS: Mention 'set|show print frame-info'. Mention new
4826 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4827 backtrace argument. Mention that python frame filtering code
4828 is now consistent with what 'backtrace' command prints.
4829
4830 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4831
4832 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4833 comments.
4834 (print_frame_info_auto, print_frame_info_source_line,
4835 print_frame_info_location, print_frame_info_source_and_location,
4836 print_frame_info_location_and_address, print_frame_info_short_location):
4837 New declarations.
4838 (struct frame_print_options): New member print_frame_info.
4839 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
4840 * stack.h (get_user_print_what_frame_info): New declaration.
4841 (frame_show_address): New declaration.
4842 * stack.c (print_frame_arguments_choices): New value 'presence'.
4843 (print_frame_info_auto, print_frame_info_source_line,
4844 print_frame_info_location, print_frame_info_source_and_location,
4845 print_frame_info_location_and_address, print_frame_info_short_location,
4846 print_frame_info_choices, print_frame_info_print_what): New definitions.
4847 (print_frame_args): Only print dots for args if print frame-arguments
4848 is 'presence'.
4849 (frame_print_option_defs): New element for "frame-info".
4850 (get_user_print_what_frame_info): New function.
4851 (frame_show_address): Make non static. Move comment to stack.h.
4852 (print_frame_info_to_print_what): New function.
4853 (print_frame_info): Update comment. Use fp_opts.print_frame_info
4854 to decide what to print.
4855 (backtrace_command_1): Handle the new print_frame_arguments_presence
4856 value.
4857 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
4858 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
4859 (py_print_frame): In non-mi mode, use LOCATION as default for
4860 print_what, similarly to frame information printed directly by
4861 backtrace command. Handle frame-info user option in non MI mode.
4862
4863 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4864
4865 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
4866 Add case for debugging 32-bit target on 64-bit host. Revise
4867 comment.
4868
4869 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4870
4871 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
4872 instead of find_function_entry_range_from_pc.
4873
4874 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4875
4876 * stack.c (find_frame_funname): Remove code which preferred
4877 minsym over symtab sym in "certain pathological cases".
4878
4879 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
4880 parameter. Change type of "do_demangle" to bool.
4881 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4882 Pass suitable "prefer_sym_over_minsym" flag to
4883 build_address_symbolic(). Don't output "+" for negative offsets.
4884 * printcmd.c (print_address_symbolic): Update invocation of
4885 build_address_symbolic to include a "prefer_sym_over_minsym"
4886 flag.
4887 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
4888 Restrict cases in which use of minimal symbol is preferred to that
4889 of a found symbol. Update comments.
4890
4891 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
4892 for entry pc when entry pc is out of range for that FDE.
4893
4894 2019-07-26 Brian Callahan <bcallah@openbsd.org>
4895
4896 PR gdb/24839:
4897 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
4898 type.
4899
4900 2019-07-25 Christian Biesinger <cbiesinger@google.com>
4901
4902 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4903 this function's Python signature.
4904
4905
4906 2019-07-24 Christian Biesinger <cbiesinger@google.com>
4907
4908 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
4909 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4910 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4911 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
4912 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
4913
4914
4915 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4916
4917 * h8300-tdep.c (h8300_register_name_common): New.
4918 h8300_register_name): Use h8300_register_name_common.
4919 (h8300s_register_name): Likewise.
4920 (h8300sx_register_name): Likewise.
4921 (h8300h_register_nam): New.
4922 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4923
4924
4925 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4926
4927 * arm-tdep.c (arm_skip_cmse_entry): New function.
4928 (arm_is_sgstubs_section): New function.
4929 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
4930
4931 2019-07-22 Tom Tromey <tom@tromey.com>
4932
4933 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
4934 Don't self-assign.
4935
4936 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4937
4938 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
4939 type_print.
4940
4941 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4942
4943 * symtab.c (search_symbols): Adjust msymbol matching type arrays
4944 so that GDB doesn't match any msymbols when searching in the
4945 TYPES_DOMAIN.
4946 (print_symbol_info): Print using typedef_print or type_print based
4947 on the type of the symbol. Add updated FIXME comment moved from...
4948 (_initialize_symtab): ... move and update FIXME comment to above.
4949
4950 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4951
4952 * NEWS: Mention adding -q option to "info types".
4953 * symtab.c (struct info_types_options): New struct.
4954 (info_types_options_defs): New variable.
4955 (make_info_types_options_def_group): New function.
4956 (info_types_command): Use gdb::option framework to parse options.
4957 (info_types_command_completer): New function.
4958 (_initialize_symtab): Extend the help text on "info types" and
4959 register command completer.
4960
4961 2019-07-21 Christian Biesinger <cbiesinger@google.com>
4962
4963 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
4964 (lookup_symbol_in_objfile): Change int to block_enum and add a
4965 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
4966
4967 2019-07-20 Christian Biesinger <cbiesinger@google.com>
4968
4969 * MAINTAINERS (Write After Approval): Add self.
4970
4971 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
4972
4973 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
4974 instruction to the dummy code region.
4975
4976 2019-07-19 Tom Tromey <tromey@adacore.com>
4977
4978 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
4979 (ARGSUSED, PARAMS, __func__): Remove rules.
4980
4981 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4982
4983 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
4984 * features/arm/arm-with-iwmmxt.c: Remove.
4985 * features/arm/arm-with-iwmmxt.xml: Remove.
4986 * features/arm/arm-with-m-fpa-layout.c: Remove.
4987 * features/arm/arm-with-m-fpa-layout.xml: Remove.
4988 * features/arm/arm-with-m-vfp-d16.c: Remove.
4989 * features/arm/arm-with-m-vfp-d16.xml: Remove.
4990 * features/arm/arm-with-m.c: Remove.
4991 * features/arm/arm-with-m.xml: Remove.
4992 * features/arm/arm-with-neon.c: Remove.
4993 * features/arm/arm-with-neon.xml: Remove.
4994 * features/arm/arm-with-vfpv2.c: Remove.
4995 * features/arm/arm-with-vfpv2.xml: Remove.
4996 * features/arm/arm-with-vfpv3.c: Remove.
4997 * features/arm/arm-with-vfpv3.xml: Remove.
4998
4999 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5000
5001 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5002
5003 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5004
5005 * arch/aarch32.c (aarch32_create_target_description): Create
5006 target descriptions using features.
5007 * arch/arm.c (arm_create_target_description)
5008 (arm_create_mprofile_target_description): Likewise.
5009 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5010
5011 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5012
5013 * Makefile.in: Add new files.
5014 * aarch32-tdep.c: New file.
5015 * aarch32-tdep.h: New file.
5016 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5017 Call aarch32_read_description.
5018 * arch/aarch32.c: New file.
5019 * arch/aarch32.h: New file.
5020 * arch/arm.c (arm_create_target_description)
5021 (arm_create_mprofile_target_description): New function.
5022 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5023 (arm_create_target_description)
5024 (arm_create_mprofile_target_description): New declaration.
5025 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5026 read_description functions.
5027 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5028 Likewise.
5029 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5030 * arm-tdep.c (tdesc_arm_list): New variable.
5031 (arm_register_g_packet_guesses): Call create description functions.
5032 (arm_read_description) (arm_read_mprofile_description): New
5033 function.
5034 * arm-tdep.h (arm_read_description)
5035 (arm_read_mprofile_description): Add declaration.
5036 * configure.tgt: Add new files.
5037
5038 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5039
5040 * top.c (new_ui_command): Open specified terminal just once.
5041
5042 2019-07-18 Tom Tromey <tromey@adacore.com>
5043
5044 * symtab.c (main_name): Constify return type.
5045 * symfile.c (set_initial_language): Update.
5046 * symtab.h (main_name): Constify return type.
5047
5048 2019-07-17 Tom Tromey <tom@tromey.com>
5049
5050 * tui/tui-winsource.c (tui_update_source_window)
5051 (tui_update_source_window_as_is)
5052 (tui_update_source_windows_with_line): Remove return.
5053 * tui/tui-disasm.c (tui_show_disassem)
5054 (tui_show_disassem_and_update_source): Remove return.
5055 * tui/tui.c (tui_reset): Remove return.
5056 * tui/tui-wingeneral.c
5057 (tui_check_and_display_highlight_if_needed): Remove return.
5058
5059 2019-07-17 Tom Tromey <tom@tromey.com>
5060
5061 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5062
5063 2019-07-17 Tom Tromey <tom@tromey.com>
5064
5065 * tui/tui-winsource.h (struct tui_exec_info_window)
5066 (struct tui_source_window_base): Move from tui-data.h.
5067 * tui/tui-winsource.c: Move many method definitions from
5068 elsewhere. Remove "structuring" comments.
5069 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5070 (tui_source_window_base::refresh_window): Move to
5071 tui-winsource.c.
5072 * tui/tui-win.c (tui_source_window_base::refresh_all)
5073 (tui_source_window_base::update_tab_width)
5074 (tui_source_window_base::set_new_height)
5075 (tui_source_window_base::do_make_visible_with_new_height): Move to
5076 tui-winsource.c.
5077 * tui/tui-source.h: Update.
5078 * tui/tui-source.c (tui_source_window_base::reset): Move to
5079 tui-winsource.c.
5080 * tui/tui-disasm.h: Update.
5081 * tui/tui-data.h (struct tui_exec_info_window): Move to
5082 tui-winsource.h.
5083 (struct tui_source_window_base): Likewise.
5084 * tui/tui-data.c (tui_source_window_base::clear_detail)
5085 (tui_source_window_base, ~tui_source_window_base): Move to
5086 tui-winsource.c.
5087
5088 2019-07-17 Tom Tromey <tom@tromey.com>
5089
5090 * tui/tui-win.c (tui_resize_all)
5091 (tui_source_window_base::update_tab_width)
5092 (tui_adjust_win_heights): Update.
5093 (tui_win_info::make_invisible_and_set_new_height): Rename from
5094 make_invisible_and_set_new_height.
5095 * tui/tui-data.h (struct tui_win_info)
5096 <make_invisible_and_set_new_height>: New method.
5097
5098 2019-07-17 Tom Tromey <tom@tromey.com>
5099
5100 * tui/tui.c: Update.
5101 * tui/tui-source.h (struct tui_source_window): Move from
5102 tui-data.h.
5103 * tui/tui-layout.c: Update.
5104 * tui/tui-disasm.c: Update.
5105 * tui/tui-data.h (struct tui_source_window): Move to
5106 tui-source.h.
5107
5108 2019-07-17 Tom Tromey <tom@tromey.com>
5109
5110 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5111 tui-data.h.
5112 * tui/tui-data.h (struct tui_disasm_window): Move to
5113 tui-disasm.h.
5114
5115 2019-07-17 Tom Tromey <tom@tromey.com>
5116
5117 * tui/tui-regs.h (struct tui_data_item_window): Move from
5118 tui-data.h.
5119 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5120 * tui/tui-data.h (struct tui_data_item_window): Move to
5121 tui-regs.h.
5122 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5123
5124 2019-07-17 Tom Tromey <tom@tromey.com>
5125
5126 * tui/tui.c: Update.
5127 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5128 (tui_cmd_window::max_height): Move to tui-command.c.
5129 * tui/tui-layout.c: Update.
5130 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5131 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5132 tui-command.c.
5133 * tui/tui-command.h (struct tui_cmd_window): Move from
5134 tui-data.h.
5135 * tui/tui-command.c: Remove "structuring" comments.
5136 (tui_cmd_window::clear_detail)
5137 (tui_cmd_window::do_make_visible_with_new_height)
5138 (tui_cmd_window::max_height): Move from elsewhere.
5139
5140 2019-07-17 Tom Tromey <tom@tromey.com>
5141
5142 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5143 Now static.
5144 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5145 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5146
5147 2019-07-17 Tom Tromey <tom@tromey.com>
5148
5149 * tui/tui.c: Update.
5150 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5151 tui-regs.c.
5152 * tui/tui-windata.h: Remove file.
5153 * tui/tui-windata.c: Remove file.
5154 * tui/tui-win.c (tui_data_window::set_new_height)
5155 (tui_data_window::do_make_visible_with_new_height): Move to
5156 tui-regs.c.
5157 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5158 * tui/tui-regs.c: Remove "structuring" comments.
5159 (tui_data_window::first_data_item_displayed)
5160 (tui_data_window::delete_data_content_windows)
5161 (tui_data_window::erase_data_content)
5162 (tui_data_window::display_all_data)
5163 (tui_data_window::refresh_all)
5164 (tui_data_window::do_scroll_vertical)
5165 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5166 (tui_data_window::do_make_visible_with_new_height)
5167 (tui_data_window::refresh_window): Move from elsewhere.
5168 (_initialize_tui_regs): Move to end of file.
5169 * tui/tui-layout.c: Update.
5170 * tui/tui-hooks.c: Update.
5171 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5172 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5173 tui-regs.c.
5174 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5175
5176 2019-07-17 Tom Tromey <tom@tromey.com>
5177
5178 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5179 seen.
5180
5181 2019-07-17 Tom Tromey <tom@tromey.com>
5182
5183 * tui/tui-win.c (tui_source_window_base::set_new_height)
5184 (tui_source_window_base::do_make_visible_with_new_height): Use
5185 m_has_locator field directly.
5186 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5187 method.
5188 (struct tui_source_window_base) <has_locator>: Likewise.
5189
5190 2019-07-17 Tom Tromey <tom@tromey.com>
5191
5192 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5193 Don't declare.
5194 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5195 Remove.
5196 * tui/tui-win.c (tui_source_window_base::set_new_height)
5197 (tui_source_window_base::set_new_height)
5198 (make_invisible_and_set_new_height)
5199 (tui_source_window_base::do_make_visible_with_new_height)
5200 (tui_source_window_base::do_make_visible_with_new_height):
5201 Update.
5202 * tui/tui-layout.c (show_source_disasm_command, show_data)
5203 (show_source_or_disasm_and_command): Update.
5204 * tui/tui-layout.c (show_layout): Update.
5205
5206 2019-07-17 Tom Tromey <tom@tromey.com>
5207
5208 * tui/tui-layout.c (make_data_window): Remove.
5209 (show_data): Unify creation and re-initialization cases.
5210
5211 2019-07-17 Tom Tromey <tom@tromey.com>
5212
5213 * tui/tui-layout.c (make_source_window, make_disasm_window):
5214 Remove.
5215 (show_data): Unify creation and re-initialization cases.
5216
5217 2019-07-17 Tom Tromey <tom@tromey.com>
5218
5219 * tui/tui-layout.c (make_command_window): Remove.
5220 (show_source_disasm_command, show_source_or_disasm_and_command):
5221 Unify creation and re-initialization cases.
5222
5223 2019-07-17 Tom Tromey <tom@tromey.com>
5224
5225 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5226 creation and re-initialization cases.
5227
5228 2019-07-17 Tom Tromey <tom@tromey.com>
5229
5230 * tui/tui-regs.c (tui_get_register): Return void.
5231
5232 2019-07-17 Tom Tromey <tom@tromey.com>
5233
5234 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5235 Simplify.
5236
5237 2019-07-17 Tom Tromey <tom@tromey.com>
5238
5239 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5240 resetting.
5241
5242 2019-07-17 Tom Tromey <tom@tromey.com>
5243
5244 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5245 * tui/tui-regs.c (tui_reg_layout): New function.
5246 (tui_show_registers, tui_reg_command): Use it.
5247 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5248 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5249 parameters.
5250 (tui_layout_command): Remove.
5251
5252 2019-07-17 Tom Tromey <tom@tromey.com>
5253
5254 * tui/tui-layout.h (tui/tui-layout): Return void.
5255 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5256
5257 2019-07-17 Tom Tromey <tom@tromey.com>
5258
5259 * tui/tui-layout.c (show_source_disasm_command, show_data):
5260 Update.
5261 (reset_locator): Remove.
5262 (show_source_or_disasm_and_command): Update.
5263
5264 2019-07-17 Tom Tromey <tom@tromey.com>
5265
5266 * tui/tui-source.c (tui_source_window_base::reset): Remove
5267 win_type parameter.
5268 * tui/tui-layout.c (make_command_window, make_source_window)
5269 (make_disasm_window, make_data_window)
5270 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5271 (reset_locator, show_source_or_disasm_and_command): Update.
5272 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5273 win_type parameter.
5274 (struct tui_source_window_base) <reset>: Likewise.
5275
5276 2019-07-17 Tom Tromey <tom@tromey.com>
5277
5278 * tui/tui-layout.c (show_source_disasm_command): Use
5279 reset_locator.
5280 (reset_locator): New function.
5281 (init_and_make_win): Remove.
5282 (show_source_or_disasm_and_command): Use reset_locator.
5283
5284 2019-07-17 Tom Tromey <tom@tromey.com>
5285
5286 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5287 condition.
5288 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5289 Remove condition.
5290 * tui/tui-source.c (tui_source_window_base::reset): New method.
5291 * tui/tui-layout.c (make_command_window): Don't call
5292 init_and_make_win.
5293 (make_source_window, make_disasm_window): Don't call
5294 make_source_or_disasm_window.
5295 (make_data_window): Don't call init_and_make_win. Change calling
5296 convention.
5297 (show_source_disasm_command, show_data): Simplify.
5298 (make_source_or_disasm_window): Remove.
5299 (show_source_or_disasm_and_command): Simplify.
5300 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5301 (struct tui_source_window_base) <reset>: Likewise.
5302 <execution_info>: Remove initializer.
5303 * tui/tui-data.c (tui_source_window_base): Initialize
5304 execution_info.
5305
5306 2019-07-17 Tom Tromey <tom@tromey.com>
5307
5308 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5309 variable.
5310
5311 2019-07-17 Tom Tromey <tom@tromey.com>
5312
5313 * tui/tui.c (tui_rl_other_window): Update.
5314 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5315 superclass method first. Always iterate over regs_content.
5316 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5317 method.
5318 * tui/tui-win.c (tui_set_focus_command): Update.
5319
5320 2019-07-17 Tom Tromey <tom@tromey.com>
5321
5322 * tui/tui-win.c (tui_set_focus_command): Rename from
5323 tui_set_focus. Call tui_enable.
5324 (tui_set_focus_command): Remove.
5325
5326 2019-07-17 Tom Tromey <tom@tromey.com>
5327
5328 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5329 refresh_window.
5330 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5331 touchwin.
5332 (tui_data_window::refresh_window): Call refresh_window on data
5333 items. Always call superclass refresh_window.
5334 (tui_win_info::refresh): Remove.
5335 (tui_source_window_base::refresh_window): Update.
5336 (tui_refresh_all): Update.
5337 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5338 refresh_window.
5339 (show_source_or_disasm_and_command): Likewise.
5340 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5341 (struct tui_source_window_base) <refresh>: Likewise.
5342
5343 2019-07-17 Tom Tromey <tom@tromey.com>
5344
5345 * tui/tui-winsource.c (tui_clear_source_content)
5346 (tui_show_source_content): Update.
5347 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5348 whether content is empty.
5349 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5350 Remove.
5351
5352 2019-07-17 Tom Tromey <tom@tromey.com>
5353
5354 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5355 window's contents.
5356 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5357 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5358
5359 2019-07-17 Tom Tromey <tom@tromey.com>
5360
5361 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5362 (struct tui_data_item_window): Update.
5363
5364 2019-07-17 Tom Tromey <tom@tromey.com>
5365
5366 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5367 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5368 defines.
5369
5370 2019-07-17 Tom Tromey <tom@tromey.com>
5371
5372 * tui/tui-winsource.h (tui_erase_source_content)
5373 (tui_clear_source_content): Remove "display_prompt" parameter.
5374 * tui/tui-winsource.c (tui_update_source_window_as_is)
5375 (tui_update_source_windows_with_addr): Update.
5376 (tui_clear_source_content): Remove "display_prompt" parameter.
5377 (tui_erase_source_content): Likewise. Simplify.
5378 (tui_show_source_content): Update.
5379 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5380 * tui/tui-stack.c (tui_show_frame_info): Update.
5381 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5382 Remove defines.
5383
5384 2019-07-17 Tom Tromey <tom@tromey.com>
5385
5386 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5387 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5388 parameter.
5389 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5390 parameter.
5391
5392 2019-07-17 Tom Tromey <tom@tromey.com>
5393
5394 * tui/tui-winsource.c (tui_clear_source_content)
5395 (tui_show_source_content, tui_show_exec_info_content)
5396 (tui_clear_exec_info_content): Update.
5397 * tui/tui-stack.c (tui_show_locator_content): Update.
5398 (tui_show_frame_info): Update.
5399 * tui/tui-source.h (tui_source_window): Don't declare.
5400 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5401 from tui_source_is_displayed.
5402 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5403 Remove field.
5404 (struct tui_source_window_base) <content_in_use>: New field. Now
5405 bool.
5406 (struct tui_source_window) <showing_source_p>: New method.
5407 (TUI_SRC_WIN): Change cast.
5408 * tui/tui-data.c (tui_initialize_static_data): Update.
5409
5410 2019-07-17 Tom Tromey <tom@tromey.com>
5411
5412 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5413 location_matches_p.
5414 * tui/tui-source.c (tui_source_window::location_matches_p): New
5415 method.
5416 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5417 method.
5418 * tui/tui-data.h (struct tui_source_window_base)
5419 <location_matches_p>: New method.
5420 (struct tui_source_window, struct tui_disasm_window)
5421 <location_matches_p>: Likewise.
5422
5423 2019-07-17 Tom Tromey <tom@tromey.com>
5424
5425 * tui/tui-win.c (tui_set_win_height_command): Rename from
5426 tui_set_win_height.
5427 (tui_set_win_height_command): Remove.
5428
5429 2019-07-17 Tom Tromey <tom@tromey.com>
5430
5431 * tui/tui-source.c (tui_source_window): New constructor. Add
5432 observer.
5433 (~tui_source_window): New destructor.
5434 (tui_source_window::style_changed): New method.
5435 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5436 (tui_attach_detach_observers): Update.
5437 * tui/tui-data.h (struct tui_source_window): Make constructor not
5438 inline. Add destructor.
5439 (struct tui_source_window) <style_changed>: New method.
5440 <m_observable>: New member.
5441
5442 2019-07-17 Tom Tromey <tom@tromey.com>
5443
5444 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5445 * tui/tui-win.c (tui_resize_all): Fix typo.
5446
5447 2019-07-17 Tom Tromey <tom@tromey.com>
5448
5449 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5450 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5451 (tui_refresh_all): Remove "list" parameter. Use foreach.
5452 * tui/tui-win.c (window_name_completer): Use foreach.
5453 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5454 (update_tab_width): Likewise.
5455 * tui/tui-layout.c (show_layout): Update.
5456 * tui/tui-data.h (class tui_window_iterator): New.
5457 (struct all_tui_windows): New.
5458 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5459
5460 2019-07-17 Tom Tromey <tom@tromey.com>
5461
5462 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5463 parameter. Don't reference globals.
5464 (tui_reg_command): Update.
5465
5466 2019-07-17 Tom Tromey <tom@tromey.com>
5467
5468 * tui/tui-regs.c (tui_show_registers): Simplify.
5469
5470 2019-07-17 Tom Tromey <tom@tromey.com>
5471
5472 * tui/tui-regs.c (tui_show_registers): Update.
5473 (tui_show_register_group): Add win_info parameter.
5474
5475 2019-07-17 Tom Tromey <tom@tromey.com>
5476
5477 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5478 Rename from tui_display_reg_element_at_line.
5479 (tui_data_window::display_registers_from_line): Update.
5480 * tui/tui-data.h (struct tui_data_window)
5481 <display_reg_element_at_line>: New method.
5482
5483 2019-07-17 Tom Tromey <tom@tromey.com>
5484
5485 * tui/tui-regs.h (tui_display_registers_from)
5486 (tui_display_registers_from_line): Don't declare.
5487 * tui/tui-windata.c (tui_data_window::display_all_data)
5488 (tui_data_window::refresh_all)
5489 (tui_data_window::do_scroll_vertical): Update.
5490 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5491 from tui_display_registers_from.
5492 (tui_display_reg_element_at_line): Update.
5493 (tui_data_window::display_registers_from_line): Rename from
5494 tui_display_registers_from_line.
5495 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5496 display_registers_from_line>: New methods.
5497
5498 2019-07-17 Tom Tromey <tom@tromey.com>
5499
5500 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5501 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5502 from tui_erase_data_content.
5503 (tui_data_window::display_all_data)
5504 (tui_data_window::refresh_all)
5505 (tui_data_window::do_scroll_vertical): Update.
5506 * tui/tui-regs.c (tui_show_registers): Update.
5507 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5508 New method.
5509
5510 2019-07-17 Tom Tromey <tom@tromey.com>
5511
5512 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5513 declare.
5514 * tui/tui-windata.c
5515 (tui_data_window::delete_data_content_windows): Rename from
5516 tui_delete_data_content_windows.
5517 (tui_data_window::display_all_data)
5518 (tui_data_window::do_scroll_vertical): Update.
5519 * tui/tui-data.h (struct tui_data_window)
5520 <delete_data_content_windows>: New method.
5521
5522 2019-07-17 Tom Tromey <tom@tromey.com>
5523
5524 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5525 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5526
5527 2019-07-17 Tom Tromey <tom@tromey.com>
5528
5529 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5530 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5531 from tui_display_all_data.
5532 * tui/tui-win.c
5533 (tui_data_window::do_make_visible_with_new_height): Update.
5534 * tui/tui-regs.c (tui_show_registers): Update.
5535 * tui/tui-layout.c (tui_set_layout): Update.
5536 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5537 method.
5538
5539 2019-07-17 Tom Tromey <tom@tromey.com>
5540
5541 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5542 * tui/tui-windata.c (tui_display_data_from): Remove.
5543 (tui_data_window::refresh_all): Update.
5544
5545 2019-07-17 Tom Tromey <tom@tromey.com>
5546
5547 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5548 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5549 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5550 tui_display_registers_from_line.
5551 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5552 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5553 "force_display" parameter.
5554
5555 2019-07-17 Tom Tromey <tom@tromey.com>
5556
5557 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5558 declare.
5559 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5560 Rename from tui_first_reg_element_no_inline.
5561 (tui_display_reg_element_at_line)
5562 (tui_display_registers_from_line): Update.
5563 * tui/tui-data.h (struct tui_data_window)
5564 <first_reg_element_no_inline>: New method.
5565
5566 2019-07-17 Tom Tromey <tom@tromey.com>
5567
5568 * tui/tui-windata.c (tui_display_data_from)
5569 (tui_data_window::do_scroll_vertical): Update.
5570 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5571 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5572 Rename from tui_line_from_reg_element_no.
5573 (tui_display_registers_from_line): Update.
5574 * tui/tui-data.h (struct tui_data_window)
5575 <line_from_reg_element_no>: New method.
5576
5577 2019-07-17 Tom Tromey <tom@tromey.com>
5578
5579 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5580 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5581 tui_last_regs_line_no.
5582 (tui_display_reg_element_at_line)
5583 (tui_display_registers_from_line): Update.
5584 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5585 method.
5586
5587 2019-07-17 Tom Tromey <tom@tromey.com>
5588
5589 PR tui/24722:
5590 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5591 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5592 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5593 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5594 (tui_update_breakpoint_info): Likewise.
5595 * tui/tui-hooks.c (tui_event_create_breakpoint)
5596 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5597 Update.
5598
5599 2019-07-17 Tom Tromey <tom@tromey.com>
5600
5601 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5602
5603 2019-07-17 Tom Tromey <tom@tromey.com>
5604
5605 * tui/tui-winsource.c (tui_update_source_window_as_is)
5606 (tui_update_source_windows_with_addr): Update.
5607 * tui/tui-source.h (tui_set_source_content)
5608 (tui_show_symtab_source): Add "win_info" parameter.
5609 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5610 parameter.
5611 (tui_show_symtab_source): Likewise.
5612
5613 2019-07-17 Tom Tromey <tom@tromey.com>
5614
5615 * tui/tui-wingeneral.c
5616 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5617
5618 2019-07-17 Tom Tromey <tom@tromey.com>
5619
5620 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5621 (struct tui_cmd_window) <can_scroll>: New method.
5622 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5623 method.
5624
5625 2019-07-17 Tom Tromey <tromey@adacore.com>
5626
5627 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5628 do_field_signed>: Rename. Change type of "value".
5629 * ui-out.c (ui_out::field_signed): Rename from field_int.
5630 Change type of "value".
5631 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5632 type of "value".
5633 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5634 do_field_int. Change type of "value".
5635 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5636 do_field_int. Change type of "value".
5637 * tracepoint.c (trace_status_mi, tfind_1)
5638 (print_one_static_tracepoint_marker): Update.
5639 * thread.c (print_thread_info_1, print_selected_thread_frame):
5640 Update.
5641 * stack.c (print_frame, print_frame_info): Update.
5642 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5643 Update.
5644 * source.c (print_source_lines_base): Update.
5645 * skip.c (info_skip_command): Update.
5646 * record-btrace.c (btrace_ui_out_decode_error)
5647 (btrace_call_history_src_line): Update.
5648 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5649 Update.
5650 * progspace.c (print_program_space): Update.
5651 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5652 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5653 do_field_int. Change type of "value".
5654 * mi/mi-out.c (mi_ui_out::do_table_begin)
5655 (mi_ui_out::do_table_header): Update.
5656 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5657 type of "value".
5658 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5659 (mi_cmd_data_list_changed_registers, output_register)
5660 (mi_cmd_data_read_memory, mi_load_progress)
5661 (mi_cmd_trace_frame_collected): Update.
5662 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5663 Update.
5664 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5665 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5666 (mi_cmd_var_list_children, varobj_update_one): Update.
5667 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5668 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5669 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5670 * inferior.c (print_inferior): Update.
5671 * gdb_bfd.c (print_one_bfd): Update.
5672 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5673 Update.
5674 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5675 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5676 do_field_int. Change type of "value".
5677 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5678 do_field_int. Change type of "value".
5679 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5680 (print_one_breakpoint_location, print_it_catch_fork)
5681 (print_one_catch_fork, print_it_catch_vfork)
5682 (print_one_catch_vfork, print_it_catch_solib)
5683 (print_it_catch_exec, print_it_ranged_breakpoint)
5684 (print_mention_watchpoint, print_mention_masked_watchpoint)
5685 (bkpt_print_it, update_static_tracepoint): Update.
5686 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5687 * break-catch-syscall.c (print_it_catch_syscall): Update.
5688 * ada-tasks.c (print_ada_task_info): Update.
5689 * ada-lang.c (print_it_exception, print_mention_exception):
5690 Update.
5691
5692 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5693
5694 PR breakpoints/24541
5695 * gdbarch.c: Regenerate.
5696 * gdbarch.h: Regenerate.
5697 * gdbarch.sh: Adjust return type and parameter types for
5698 'stap_adjust_register'.
5699 (i386_stap_adjust_register): Adjust signature and return new
5700 register name.
5701 * stap-probe.c (stap_parse_register_operand): Adjust use of
5702 'gdbarch_stap_adjust_register'.
5703
5704 2019-07-17 Tom Tromey <tromey@adacore.com>
5705
5706 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5707 declare VEC.
5708 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5709 std::vector.
5710 (struct s390_process_info): Add initializers.
5711 (s390_add_process): Use new.
5712 (s390_linux_nat_target::low_forget_process): Use delete.
5713 (s390_linux_nat_target::low_new_fork)
5714 (s390_linux_nat_target::stopped_by_watchpoint)
5715 (s390_linux_nat_target::low_prepare_to_resume)
5716 (s390_linux_nat_target::insert_watchpoint)
5717 (s390_linux_nat_target::insert_hw_breakpoint)
5718 (s390_linux_nat_target::remove_watchpoint)
5719 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5720
5721 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5722
5723 * aarch64-fbsd-nat.c: Include regcache.h.
5724 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5725 argument.
5726 (aarch64_fbsd_nat_target::fetch_registers)
5727 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5728 variable.
5729 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5730
5731 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5732
5733 * fbsd-nat.c: Include gdbarch.h.
5734
5735 2019-07-15 Tom Tromey <tromey@adacore.com>
5736
5737 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5738
5739 2019-07-15 Tom Tromey <tromey@adacore.com>
5740
5741 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5742 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5743 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5744 * cli-out.c (cli_ui_out::do_field_int): New method.
5745 * ui-out.c (ui_out::field_unsigned): New method.
5746 * symfile.c (generic_load): Use field_unsigned.
5747 (print_transfer_performance): Likewise.
5748 * record-btrace.c (ui_out_field_uint): Remove.
5749 (btrace_call_history_insn_range, btrace_call_history): Use
5750 field_unsigned.
5751 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5752 field_unsigned.
5753 * ui-out.h (class ui_out) <field_unsigned>: New method.
5754 <do_field_unsigned>: Likewise.
5755
5756 2019-07-15 Tom Tromey <tromey@adacore.com>
5757
5758 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5759 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5760 * target.c (flash_erase_command): Use field_string.
5761 * infrun.c (print_signal_received_reason): Use field_string.
5762 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5763 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5764 field_string.
5765 * ada-tasks.c (print_ada_task_info): Use field_string.
5766
5767 2019-07-15 Tom Tromey <tromey@adacore.com>
5768
5769 * target.c (flash_erase_command): Use field_core_addr.
5770 * symfile.c (generic_load): Use field_core_addr.
5771 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5772 Use field_core_addr.
5773 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5774 field_core_addr.
5775
5776 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5777
5778 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5779 value if its desired type is smaller than a CORE_ADDR and signed.
5780
5781 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5782
5783 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5784 of changes to field names, and use new is_reference field to
5785 decide if a property is a reference or not.
5786 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5787 field.
5788 (struct dwarf2_property_baton): Update header comment, rename
5789 'referenced_type' to 'property_type' and update comments.
5790 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5791 default property type, store in property baton, update to take
5792 accound of renamed field.
5793 (read_func_scope): Update call to attr_to_dynamic_prop.
5794 (read_array_type): Likewise.
5795 (dwarf2_per_cu_addr_sized_int_type): New function.
5796 (read_subrange_index_type): Move type finding code to
5797 dwarf2_per_cu_addr_sized_int_type.
5798 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5799 (dwarf2_per_cu_addr_type): New function.
5800 (set_die_type): Update calls to attr_to_dynamic_prop.
5801
5802 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5803
5804 * dwarf2read.c (read_subrange_index_type): New function.
5805 (read_subrange_type): Move code into new function and call it.
5806 * gdbtypes.c (create_range_type): Add some asserts.
5807
5808 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5809
5810 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5811 update return statements.
5812 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5813 declaration, and update comment to match.
5814 * gdbtypes.c (resolve_dynamic_array): Update call to
5815 dwarf2_evaluate_property to match new return type.
5816
5817 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5818
5819 * valarith.c (value_subscripted_rvalue): Change lowerbound
5820 parameter type from int to LONGEST.
5821 * value.h (value_subscripted_rvalue): Likewise in declaration.
5822
5823 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5824
5825 * cli/cli-utils.c (info_print_command_completer): New function.
5826 * cli/cli-utils.h: Add 'completer.h' include, and forward
5827 declaration for 'struct cmd_list_element'.
5828 (info_print_command_completer): Declare.
5829 * stack.c (_initialize_stack): Add completer for 'info locals' and
5830 'info args'.
5831 * symtab.c (_initialize_symtab): Add completer for 'info
5832 variables' and 'info functions'.
5833 * NEWS: Mention completion for additional info commands.
5834
5835 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5836
5837 * cli/cli-utils.c (extract_info_print_args): Delete.
5838 (extract_arg_maybe_quoted): Delete.
5839 (info_print_options_defs): New variable.
5840 (make_info_print_options_def_group): New function.
5841 (extract_info_print_options): Define new function.
5842 * cli/cli-utils.h (extract_info_print_args): Delete.
5843 (struct info_print_options): New structure.
5844 (extract_info_print_options): Declare new function.
5845 * stack.c (info_locals_command): Update to use new
5846 extract_info_print_options, also add a header comment.
5847 (info_args_command): Likewise.
5848 * symtab.c (info_variables_command): Likewise.
5849 (info_functions_command): Likewise.
5850
5851 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5852
5853 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
5854 to extract string arguments.
5855 * common/common-utils.c (extract_string_maybe_quoted): New function.
5856 * common/common-utils.h (extract_string_maybe_quoted): Declare.
5857
5858 2019-07-11 Tom Tromey <tromey@adacore.com>
5859
5860 * main.c (get_init_files): Use GDBINIT, not gdbinit.
5861 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
5862 * top.h (gdbinit): Don't declare.
5863 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
5864 into...
5865 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
5866 * top.c (gdb_init): Don't call init_cli_cmds.
5867 (gdbinit): Remove.
5868 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
5869
5870 2019-07-11 Tom Tromey <tromey@adacore.com>
5871
5872 * python/py-inferior.c (add_thread_object): Don't use thread_obj
5873 after it has been moved.
5874
5875 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5876
5877 * valops.c (value_must_coerce_to_target): Change return type to
5878 bool.
5879 * value.h (value_must_coerce_to_target): Likewise.
5880
5881 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
5882
5883 * breakpoint.c (is_hardware_watchpoint): Remove
5884 forward-declaration.
5885 (is_masked_watchpoint): Change return type to bool.
5886 (is_tracepoint): Likewise.
5887 (is_breakpoint): Likewise.
5888 (is_hardware_watchpoint): Likewise.
5889 (is_watchpoint): Likewise.
5890 (is_no_memory_software_watchpoint): Likewise.
5891 (is_catchpoint): Likewise.
5892 (breakpoint_1): Make FILTER parameter's return type bool.
5893 is_masked_watchpoint): Change return type to bool.
5894 (save_breakpoints): Make FILTER parameter's return type bool.
5895 * breakpoint.h (is_breakpoint): Change return type to bool.
5896 (is_watchpoint): Likewise.
5897 (is_catchpoint): Likewise.
5898 (is_tracepoint): Likewise.
5899
5900 2019-07-10 Tom Tromey <tom@tromey.com>
5901
5902 * defs.h: Don't include gdbarch.h.
5903 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5904 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
5905 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
5906 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
5907 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
5908 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
5909 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
5910 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
5911 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
5912 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
5913 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5914 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5915 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5916 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5917 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5918 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5919 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5920 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5921 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5922 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5923 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5924 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5925 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5926 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5927 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5928 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5929 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
5930
5931 2019-07-10 Tom Tromey <tromey@adacore.com>
5932
5933 * ada-lang.h (is_ada_exception_catchpoint): Declare.
5934 * breakpoint.c (init_ada_exception_breakpoint): Register as
5935 bp_catchpoint.
5936 (print_one_breakpoint_location, print_one_breakpoint): Use
5937 is_ada_exception_catchpoint.
5938 * ada-lang.c (class ada_catchpoint_location): Pass
5939 bp_loc_software_breakpoint to bp_location constructor.
5940 (is_ada_exception_catchpoint): New function.
5941
5942 2019-07-10 Tom Tromey <tromey@adacore.com>
5943
5944 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
5945 VEC.
5946 (struct arm_exidx_entry): New method operator<.
5947 (struct arm_exidx_data) <section_maps>: Change type.
5948 (arm_exidx_data_free): Remove.
5949 (arm_exidx_data_key): Change type. Move lower.
5950 (arm_exidx_new_objfile): Update.
5951 (arm_compare_exidx_entries): Remove.
5952 (arm_find_exidx_entry, _initialize_arm_tdep)
5953
5954 2019-07-10 Tom Tromey <tromey@adacore.com>
5955
5956 * solib-spu.c (ocl_program_data_key): Change type.
5957 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
5958 Update.
5959
5960 2019-07-10 Tom Tromey <tromey@adacore.com>
5961
5962 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
5963 (struct solib_aix_inferior_data) <library_list>: Change type.
5964 (solib_aix_inferior_data_handle): Change type.
5965 (get_solib_aix_inferior_data): Update.
5966 (solib_aix_free_library_list): Remove.
5967 (library_list_start_library): Update.
5968 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
5969 return type.
5970 (solib_aix_get_library_list)
5971 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
5972 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
5973
5974 2019-07-10 Tom Tromey <tromey@adacore.com>
5975
5976 * solib-dsbt.c (struct dsbt_info): Add initializers.
5977 (solib_dsbt_pspace_data): Change type.
5978 (dsbt_pspace_data_cleanup): Remove.
5979 (get_dsbt_info, _initialize_dsbt_solib): Update.
5980
5981 2019-07-10 Tom Tromey <tromey@adacore.com>
5982
5983 * spu-tdep.c (spu_overlay_data): Change type.
5984 (spu_get_overlay_table, spu_overlay_new_objfile)
5985 (_initialize_spu_tdep): Update.
5986
5987 2019-07-10 Tom Tromey <tromey@adacore.com>
5988
5989 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
5990 destructor.
5991 (dbx_objfile_data_key): Change type and declare later.
5992 (DBX_SYMFILE_INFO): Rewrite.
5993 * dbxread.c (dbx_objfile_data_key): Change type.
5994 (dbx_symfile_init): Update.
5995 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
5996 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5997 (stabsect_build_psymtabs, _initialize_dbxread): Update.
5998
5999 2019-07-10 Tom Tromey <tromey@adacore.com>
6000
6001 * jit.c (jit_program_space_key): Change type. Move lower.
6002 (get_jit_program_space_data): Update.
6003 (jit_program_space_data_cleanup): Remove.
6004 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6005 Update.
6006 (struct jit_program_space_data): Add initializers.
6007
6008 2019-07-10 Tom Tromey <tromey@adacore.com>
6009
6010 * solib-darwin.c (struct darwin_info): Add initializers.
6011 (solib_darwin_pspace_data): Change type.
6012 (darwin_pspace_data_cleanup): Remove.
6013 (get_darwin_info, _initialize_darwin_solib): Update.
6014
6015 2019-07-10 Tom Tromey <tromey@adacore.com>
6016
6017 * remote-sim.c (struct sim_inferior_data): Add initializers,
6018 constructor, and destructor.
6019 (sim_inferior_data_key): Change type. Move lower.
6020 (check_for_duplicate_sim_descriptor): Update.
6021 (get_sim_inferior_data): Use new. Update.
6022 (~sim_inferior_data_cleanup): Rename from
6023 sim_inferior_data_cleanup. Simplify.
6024 (gdbsim_close_inferior, simulator_command)
6025 (sim_command_completer, _initialize_remote_sim): Update.
6026 (next_pid, INITIAL_PID): Move earlier.
6027
6028 2019-07-10 Tom Tromey <tromey@adacore.com>
6029
6030 * python/python-internal.h (create_thread_object): Return
6031 gdbpy_ref.
6032 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6033 * python/py-inferior.c (struct threadlist_entry): Add
6034 constructor.
6035 <thread_obj>: Now a gdbpy_ref.
6036 (thread_to_thread_object): Update.
6037 (add_thread_object): Use new.
6038 (delete_thread_object): Use delete.
6039 (infpy_threads): Update.
6040 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6041 GIL.
6042
6043 2019-07-10 Tom Tromey <tromey@adacore.com>
6044
6045 * valops.c (value_cast): Specialize error message for Ada.
6046
6047 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6048
6049 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6050
6051 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6052
6053 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6054 bpstat_should_step): Return bool, adjust comments.
6055 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6056 bpstat_should_step): Likewise.
6057
6058 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6059
6060 * features/Makefile: Use feature target descriptions for Arm.
6061 * features/arm/arm-core.c: Generate new file.
6062 * features/arm/arm-fpa.c: Likewise.
6063 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6064 * features/arm/arm-m-profile.c: Likewise.
6065 * features/arm/arm-vfpv2.c: Likewise.
6066 * features/arm/arm-vfpv3.c: Likewise.
6067 * features/arm/xscale-iwmmxt.c: Likewise.
6068 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6069
6070 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6071
6072 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6073 ptrace earlier.
6074
6075 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6076
6077 * features/aarch64-pauth.c: Regenerate.
6078
6079 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6080
6081 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6082 bool.
6083 (bpstat_what): Use false instead of 0.
6084
6085 2019-07-09 Pedro Alves <palves@redhat.com>
6086
6087 * break-catch-throw.c (is_exception_catchpoint): New.
6088 * breakpoint.c (print_one_breakpoint_location): New parameter
6089 'raw_loc'. Handle it. Use
6090 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6091 looking at the breakpoint's type.
6092 (print_one_breakpoint): If handling "maint info breakpoints", also
6093 print locations of exception catchpoints.
6094 * breakpoint.h (is_exception_catchpoint): Declare.
6095
6096 2019-07-09 Pedro Alves <palves@redhat.com>
6097
6098 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6099 "addr" field.
6100 (allocate_location_exception_catchpoint): New.
6101 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6102 (initialize_throw_catchpoint_ops): Install
6103 allocate_location_exception_catchpoint as allocate_location
6104 method.
6105 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6106 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6107 bp_loc_other.
6108 (breakpoint_address_is_meaningful): Delete.
6109 (bl_address_is_meaningful): New.
6110 (breakpoint_locations_match): Adjust comment.
6111 (bp_location_from_bp_type): New, factored out of...
6112 (bp_location::bp_location(breakpoint *)): ... this.
6113 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6114 factored out of...
6115 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6116 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6117 breakpoint_address_is_meaningful.
6118 (bp_locations_compare): Adjust comment.
6119 (update_global_location_list): Use bl_address_is_meaningful
6120 instead of breakpoint_address_is_meaningful.
6121 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6122 explicit.
6123 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6124 * python/py-breakpoint.c (bppy_get_location): No longer check
6125 whether location is null.
6126
6127 2019-07-09 Pedro Alves <palves@redhat.com>
6128
6129 PR c++/15468
6130 * breakpoint.c (print_one_breakpoint_location): Remove
6131 single-location assert.
6132
6133 2019-07-09 Tom Tromey <tom@tromey.com>
6134
6135 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6136 * configure: Rebuild.
6137 * configure.ac: Change common to gdbsupport.
6138 * gdbsupport: Rename from common.
6139 * acinclude.m4: Change common to gdbsupport.
6140 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6141 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6142 gdbsupport.
6143 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6144 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6145 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6146 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6147 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6148 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6149 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6150 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6151 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6152 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6153 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6154 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6155 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6156 coff-pe-read.c, command.h, compile/compile-c-support.c,
6157 compile/compile-c.h, compile/compile-cplus-symbols.c,
6158 compile/compile-cplus-types.c, compile/compile-cplus.h,
6159 compile/compile-loc2c.c, compile/compile.c, completer.c,
6160 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6161 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6162 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6163 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6164 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6165 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6166 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6167 features/aarch64-core.c, features/aarch64-fpu.c,
6168 features/aarch64-pauth.c, features/aarch64-sve.c,
6169 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6170 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6171 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6172 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6173 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6174 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6175 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6176 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6177 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6178 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6179 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6180 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6181 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6182 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6183 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6184 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6185 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6186 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6187 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6188 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6189 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6190 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6191 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6192 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6193 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6194 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6195 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6196 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6197 minsyms.c, mips-linux-tdep.c, namespace.h,
6198 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6199 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6200 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6201 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6202 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6203 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6204 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6205 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6206 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6207 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6208 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6209 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6210 procfs.c, producer.c, progspace.h, psymtab.h,
6211 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6212 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6213 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6214 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6215 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6216 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6217 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6218 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6219 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6220 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6221 target-memory.c, target.c, target.h, target/waitstatus.c,
6222 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6223 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6224 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6225 unittests/array-view-selftests.c,
6226 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6227 unittests/common-utils-selftests.c,
6228 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6229 unittests/format_pieces-selftests.c,
6230 unittests/function-view-selftests.c,
6231 unittests/lookup_name_info-selftests.c,
6232 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6233 unittests/mkdir-recursive-selftests.c,
6234 unittests/observable-selftests.c,
6235 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6236 unittests/parse-connection-spec-selftests.c,
6237 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6238 unittests/scoped_fd-selftests.c,
6239 unittests/scoped_mmap-selftests.c,
6240 unittests/scoped_restore-selftests.c,
6241 unittests/string_view-selftests.c, unittests/style-selftests.c,
6242 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6243 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6244 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6245 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6246 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6247 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6248
6249 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6250
6251 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6252 bool value.
6253 (decode_digits_ordinary): Set explicit_line field in sal.
6254 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6255 symtab_and_line that was set on an explicit line number in
6256 assembler code. Do always update the recorded symtab and line if
6257 we do skip the prologue.
6258
6259 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6260
6261 * breakpoint.c (set_breakpoint_location_function): Remove
6262 explicit_loc parameter.
6263 (momentary_breakpoint_from_master): Update call to
6264 set_breakpoint_location_function.
6265 (add_location_to_breakpoint): Likewise.
6266
6267 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6268
6269 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6270 required features based on default bfd type when no specific bfd
6271 is present.
6272
6273 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6274
6275 * NEWS: Mention that GDB printf and eval commands can now print
6276 C-style and Ada-style convenience var strings without
6277 calling the inferior.
6278 * printcmd.c (printf_c_string): Locally print GDB internal var
6279 instead of transiting via the inferior.
6280 (printf_wide_c_string): Likewise.
6281
6282 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6283
6284 PR breakpoints/25011
6285 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6286
6287 2019-07-04 Tom Tromey <tom@tromey.com>
6288
6289 PR tui/24724:
6290 * tui/tui-winsource.c (tui_clear_source_content): Update.
6291 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6292 (tui_update_breakpoint_info): Update.
6293 (tui_set_exec_info_content): Update.
6294 * tui/tui-source.c (tui_set_source_content_nil): Update.
6295 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6296 has_break.
6297 * tui/tui-data.h (enum tui_bp_flag): New.
6298 (tui_bp_flags): New enum flags type.
6299 (struct tui_source_element) <break_mode>: Change type. Rename
6300 from has_break.
6301 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6302 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6303 constants.
6304 * tui/tui-winsource.h: Fix comment.
6305
6306 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6307
6308 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6309 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6310 (store_fpregs_to_thread)
6311 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6312 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6313 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6314 (IWMMXT_REGS_SIZE): Add define.
6315 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6316 (fetch_vfp_regs, store_vfp_regs)
6317 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6318 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6319
6320 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6321
6322 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6323 defines.
6324 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6325 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6326 (ARM_INT_REGISTER_SIZE): ...to this.
6327 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6328 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6329 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6330 (arm_linux_collect_gregset, supply_nwfpe_register)
6331 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6332 defines.
6333 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6334 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6335 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6336 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6337 (arm_return_in_memory, arm_store_return_value)
6338 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6339 (arm_record_ld_st_multiple): Likewise.
6340 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6341 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6342
6343 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6344
6345 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6346 AARCH64_DISPLACED_MODIFIED_INSNS.
6347 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6348 (aarch64_displaced_step_copy_insn): Likewise.
6349 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6350 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6351 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6352 ARM_DISPLACED_MODIFIED_INSNS.
6353 * arm-tdep.c (arm_gdbarch_init): Likewise.
6354 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6355 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6356 (struct arm_displaced_step_closure): Use
6357 ARM_DISPLACED_MODIFIED_INSNS.
6358
6359 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6360
6361 * features/Makefile: Remove unused xml files.
6362 * features/aarch64.xml: Remove.
6363 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6364 * features/i386/amd64-avx-avx512.xml: Remove.
6365 * features/i386/amd64-avx-linux.xml: Remove.
6366 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6367 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6368 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6369 * features/i386/amd64-avx-mpx.xml: Remove.
6370 * features/i386/amd64-avx.xml: Remove.
6371 * features/i386/amd64-linux.xml: Remove.
6372 * features/i386/amd64-mpx-linux.xml: Remove.
6373 * features/i386/amd64-mpx.xml: Remove.
6374 * features/i386/amd64.xml: Remove.
6375 * features/i386/i386-avx-avx512-linux.xml: Remove.
6376 * features/i386/i386-avx-avx512.xml: Remove.
6377 * features/i386/i386-avx-linux.xml: Remove.
6378 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6379 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6380 * features/i386/i386-avx-mpx-linux.xml: Remove.
6381 * features/i386/i386-avx-mpx.xml: Remove.
6382 * features/i386/i386-avx.xml: Remove.
6383 * features/i386/i386-linux.xml: Remove.
6384 * features/i386/i386-mmx-linux.xml: Remove.
6385 * features/i386/i386-mmx.xml: Remove.
6386 * features/i386/i386-mpx-linux.xml: Remove.
6387 * features/i386/i386-mpx.xml: Remove.
6388 * features/i386/i386.xml: Remove.
6389 * features/i386/x32-avx-avx512-linux.xml: Remove.
6390 * features/i386/x32-avx-linux.xml: Remove.
6391 * features/i386/x32-linux.xml: Remove.
6392
6393 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6394
6395 * regformats/aarch64.dat: Remove.
6396 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6397 * regformats/i386/amd64-avx-linux.dat: Remove.
6398 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6399 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6400 * regformats/i386/amd64-linux.dat: Remove.
6401 * regformats/i386/amd64-mpx-linux.dat: Remove.
6402 * regformats/i386/amd64.dat: Remove.
6403 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6404 * regformats/i386/i386-avx-linux.dat: Remove.
6405 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6406 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6407 * regformats/i386/i386-linux.dat: Remove.
6408 * regformats/i386/i386-mmx-linux.dat: Remove.
6409 * regformats/i386/i386-mpx-linux.dat: Remove.
6410 * regformats/i386/i386.dat: Remove.
6411 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6412 * regformats/i386/x32-avx-linux.dat: Remove.
6413 * regformats/i386/x32-linux.dat: Remove.
6414
6415 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6416
6417 * aarch64-tdep.c: Remove xml self tests.
6418 * amd64-linux-tdep.c: Likewise.
6419 * amd64-tdep.c: Likewise.
6420 * i386-linux-tdep.c: Likewise.
6421 * i386-tdep.c: Likewise.
6422
6423 2019-07-03 Pedro Alves <palves@redhat.com>
6424
6425 PR cli/24732
6426 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6427 (pipe_cmd_option_defs): New.
6428 (make_pipe_cmd_options_def_group): New.
6429 (pipe_command): Use gdb::option::process_options.
6430 (pipe_command_completer): New function.
6431 (_initialize_cli_cmds): Install completer for "pipe" command.
6432
6433 2019-07-03 Pedro Alves <palves@redhat.com>
6434
6435 * cli/cli-option.c (union option_value) <string>: New field.
6436 (struct option_def_and_value): Add ctor, move ctor, dtor and
6437 use DISABLE_COPY_AND_ASSIGN.
6438 (option_def_and_value::clear_value): New.
6439 (parse_option, save_option_value_in_ctx, get_val_type_str)
6440 (add_setshow_cmds_for_options): Handle var_string.
6441 * cli-option.h (union option_def::var_address) <string>: New
6442 field.
6443 (struct string_option_def): New.
6444 * maint-test-options.c (struct test_options_opts): Add default
6445 ctor and use DISABLE_COPY_AND_ASSIGN.
6446 <string_opt>: New field.
6447 (test_options_opts::~test_options_opts): New.
6448 (test_options_opts::dump): Also dump "-string".
6449 (test_options_option_defs): Install "string.
6450
6451 2019-07-03 Pedro Alves <palves@redhat.com>
6452
6453 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6454 option_value with a null enumeration.
6455 (complete_options): Save the option values in the context.
6456 (save_option_value_in_ctx): New, factored out from ...
6457 (process_options): ... here.
6458 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6459 of the function.
6460 * maint-test-options.c (test_options_opts::dump): New, factored
6461 out from ...
6462 (maintenance_test_options_command_mode): ... here.
6463 (maintenance_test_options_command_completion_result): Delete.
6464 (maintenance_test_options_command_completion_text): Update
6465 comment.
6466 (maintenance_show_test_options_completion_result): Change
6467 prototype. Just print
6468 maintenance_test_options_command_completion_text.
6469 (save_completion_result): New.
6470 (maintenance_test_options_completer_mode): Pass options context to
6471 complete_options, and then save a dump.
6472 (_initialize_maint_test_options): Use add_cmd to install "maint
6473 show test-options-completion-result".
6474
6475 2019-07-03 Pedro Alves <palves@redhat.com>
6476
6477 * NEWS (New commands): Mention "with" and "maint with".
6478 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6479 (with_command, with_command_completer): New.
6480 (pipe_command): Adjust to new repeat_previous
6481 interface.
6482 (_initialize_cli_cmds): Install the "with" command and its "w"
6483 alias.
6484 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6485 declarations.
6486 * cli/cli-setshow.c (parse_cli_var_uinteger)
6487 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6488 argument strings for all var_types.
6489 (get_setshow_command_value_string): New, factored out from ...
6490 (do_show_command): ... this.
6491 * cli/cli-setshow.h: Include <string>.
6492 (get_setshow_command_value_string): Declare.
6493 * command.h (repeat_previous): Now returns const char *. Adjust
6494 comment.
6495 * maint.c: Include "cli/cli-cmds.h".
6496 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6497 (_initialize_maint_cmds): Register the "maintenance with" command.
6498 * top.c (repeat_previous): Move bits from pipe_command here:
6499 Return the saved command line, if any; error out if there's no
6500 command to relaunch.
6501
6502 2019-07-03 Pedro Alves <palves@redhat.com>
6503
6504 * NEWS (New commands): Mention "maint set/show test-settings"
6505 instead of "maint test-settings".
6506 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6507 (maintenance_test_settings_set_list): Rename to ...
6508 (maintenance_set_test_settings_list): ... this.
6509 (maintenance_test_settings_show_list): Rename to ...
6510 (maintenance_show_test_settings_list): ... this.
6511 (maintenance_test_settings_cmd): Delete.
6512 (maintenance_test_settings_set_cmd): ...
6513 (maintenance_set_test_settings_cmd): ... this.
6514 (maintenance_test_settings_show_cmd): ...
6515 (maintenance_show_test_settings_cmd): ... this.
6516 (maintenance_test_settings_show_value_cmd):
6517 (maintenance_show_test_settings_value_cmd): ... this.
6518 (_initialize_maint_test_settings): No longer install the "maint
6519 test-settings" prefix command. Rename "maint test-settings set"
6520 to "maint set test-settings", and "maint test-settings show" to
6521 "maint show test-settings". Adjust all subcommands.
6522
6523 2019-07-03 Pedro Alves <palves@redhat.com>
6524
6525 * maint-test-settings.c: Fix file's intro comment. Replace all
6526 references to "test-options" with references to "test-settings",
6527 in comments.
6528
6529 2019-07-03 Pedro Alves <palves@redhat.com>
6530
6531 * maint-test-settings.c (maintenance_test_settings_xxx)
6532 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6533 New.
6534 (maintenance_test_settings_enums): Use them.
6535 (maintenance_test_settings_enum): Default to
6536 maintenance_test_settings_xxx.
6537 (_initialize_maint_test_settings): Initialize
6538 MAINTENANCE_TEST_SETTINGS_FILENAME.
6539
6540 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6541
6542 * breakpoint.h (remove_breakpoints_inf): Change return type to
6543 void, move function documentation here.
6544 * breakpoint.c (remove_breakpoints_inf): Change return type to
6545 void, move function documentation to header.
6546
6547 2019-07-02 Pedro Alves <palves@redhat.com>
6548
6549 * NEWS (Completion improvements): Mention "info threads".
6550 * thread.c (struct info_threads_opts, info_threads_option_defs)
6551 (make_info_threads_options_def_group): New.
6552 (info_threads_command): Use gdb::option::process_options.
6553 (info_threads_command_completer): New.
6554 (_initialize_thread): Use gdb::option::build_help to build the
6555 help text for "info threads".
6556
6557 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6558
6559 * defs.h (generic_load): Move from here...
6560 * symfile.h (generic_load): ... to here. Rename name parameter
6561 to args.
6562 * symfile.c (generic_load): Add comment.
6563
6564 2019-07-01 Tom Tromey <tromey@adacore.com>
6565
6566 * dwarf2read.c
6567 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6568 declaration of without_params. Fix formatting.
6569
6570 2019-07-01 Tom Tromey <tromey@adacore.com>
6571
6572 * ada-exp.y (find_primitive_type): Update.
6573 * ada-lang.h (ada_lookup_symbol): Update.
6574 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6575 parameter.
6576 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6577
6578 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6579
6580 PR breakpoints/24541
6581 * gdbarch.c: Regenerate.
6582 * gdbarch.h: Regenerate.
6583 * gdbarch.sh: Add 'stap_adjust_register'.
6584 * i386-tdep.c: Include '<unordered_set>'.
6585 (i386_stap_adjust_register): New function.
6586 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6587 * stap-probe.c (stap_parse_register_operand): Call
6588 'gdbarch_stap_adjust_register'.
6589
6590 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6591
6592 PR python/24742
6593 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6594 * python/python.c (do_start_initialization): Use 'xmalloc'
6595 instead of 'PyMem_Malloc'.
6596
6597 2019-06-28 Tom Tromey <tromey@adacore.com>
6598
6599 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6600 for Ada.
6601
6602 2019-06-27 Tom Tromey <tromey@adacore.com>
6603
6604 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6605 objfile_key.
6606 (arm_find_mapping_symbol, arm_record_special_symbol)
6607 (_initialize_arm_tdep): Update.
6608 (arm_objfile_data_free): Remove.
6609
6610 2019-06-27 Tom Tromey <tromey@adacore.com>
6611
6612 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6613 to cp_print_static_field.
6614
6615 2019-06-26 Tom Tromey <tromey@adacore.com>
6616
6617 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6618 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6619 declare.
6620
6621 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6622
6623 * features/aarch64-core.c (create_feature_aarch64_core):
6624 Regenerate.
6625 * features/aarch64-core.xml: Add cpsr flags.
6626
6627 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6628
6629 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6630 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6631
6632 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6633
6634 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6635 field.
6636 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6637 use.
6638 (arm_record_special_symbol): Don't insert new symbol in sorted
6639 position, push it at the end.
6640
6641 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6642
6643 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6644 (arm_mapping_symbol_s): Remove.
6645 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6646 (arm_mapping_symbol_vec): New typedef.
6647 (struct arm_per_objfile): Add constructor.
6648 <section_maps>: Change type to
6649 std::unique_ptr<arm_mapping_symbol_vec[]>.
6650 (arm_compare_mapping_symbols): Remove.
6651 (arm_find_mapping_symbol): Adjust to section_maps type change.
6652 (arm_objfile_data_free): Call delete on arm_per_objfile.
6653 (arm_record_special_symbol): Adjust to section_maps type change.
6654 Allocate arm_per_objfile with new.
6655
6656 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6657
6658 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6659 with the command prefix.
6660
6661 2019-06-25 Tom Tromey <tom@tromey.com>
6662
6663 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6664 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6665
6666 2019-06-25 Tom Tromey <tom@tromey.com>
6667
6668 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6669 type.
6670 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6671 protected.
6672
6673 2019-06-25 Tom Tromey <tom@tromey.com>
6674
6675 * tui/tui-winsource.c
6676 (tui_source_window_base::set_is_exec_point_at): Add check against
6677 LOA_ADDRESS.
6678
6679 2019-06-25 Tom Tromey <tom@tromey.com>
6680
6681 * tui/tui-source.c (tui_set_source_content): Don't check before
6682 xfree.
6683 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6684
6685 2019-06-25 Tom Tromey <tom@tromey.com>
6686
6687 * tui/tui-winsource.h (tui_update_source_window_as_is)
6688 (tui_alloc_source_buffer, tui_line_is_displayed)
6689 (tui_addr_is_displayed): Change type of win_info.
6690 * tui/tui-winsource.c (tui_update_source_window_as_is)
6691 (tui_clear_source_content, tui_show_source_line)
6692 (tui_show_source_content, tui_source_window_base::refill)
6693 (tui_source_window_base::set_is_exec_point_at)
6694 (tui_source_window_base::set_is_exec_point_at)
6695 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6696 (tui_alloc_source_buffer, tui_line_is_displayed)
6697 (tui_addr_is_displayed): Change type of win_info. Update.
6698 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6699 (tui_source_window_base::do_make_visible_with_new_height):
6700 Update.
6701 * tui/tui-source.c (tui_set_source_content)
6702 (tui_set_source_content_nil)
6703 (tui_source_window::do_scroll_vertical): Update.
6704 * tui/tui-layout.c (show_layout): Update.
6705 * tui/tui-disasm.c (tui_set_disassem_content)
6706 (tui_disasm_window::do_scroll_vertical): Update.
6707 * tui/tui-data.h (tui_win_content): Remove.
6708 (struct tui_gen_win_info) <content, content_size>: Remove.
6709 (struct tui_source_element): Add initializers and destructor.
6710 (union tui_which_element, struct tui_win_element): Remove.
6711 (struct tui_source_window_base) <content>: New field.
6712 (struct tui_data_window): Remove destructor.
6713 (tui_alloc_content, tui_free_win_content)
6714 (tui_free_all_source_wins_content): Don't declare.
6715 * tui/tui-data.c (tui_initialize_static_data): Update.
6716 (init_content_element, tui_alloc_content): Remove.
6717 (~tui_gen_win_info): Update.
6718 (~tui_data_window, tui_free_all_source_wins_content)
6719 (tui_free_win_content, free_content, free_content_elements):
6720 Remove.
6721
6722 2019-06-25 Tom Tromey <tom@tromey.com>
6723
6724 * tui/tui-winsource.h (tui_clear_source_content)
6725 (tui_erase_source_content, tui_show_source_content): Change type
6726 of win_info.
6727 * tui/tui-winsource.c (tui_clear_source_content)
6728 (tui_erase_source_content, tui_show_source_content): Change type
6729 of win_info.
6730 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6731 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6732 win_info.
6733 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6734 win_info.
6735 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6736
6737 2019-06-25 Tom Tromey <tom@tromey.com>
6738
6739 * tui/tui-winsource.c (tui_clear_source_content)
6740 (tui_source_window_base::set_is_exec_point_at): Update.
6741 * tui/tui-source.c (tui_set_source_content_nil): Update.
6742 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6743 a bool.
6744 * tui/tui-data.c (init_content_element): Update.
6745
6746 2019-06-25 Tom Tromey <tom@tromey.com>
6747
6748 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6749 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6750 * tui/tui-layout.c (init_and_make_win): Update.
6751 * tui/tui.h (enum tui_win_type): Update.
6752 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6753 tui_win_is_auxillary.
6754 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6755 tui_win_is_auxillary.
6756
6757 2019-06-25 Tom Tromey <tom@tromey.com>
6758
6759 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6760 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6761 (tui_delete_data_content_windows, tui_display_all_data)
6762 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6763 Update.
6764 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6765 * tui/tui-regs.c (tui_last_regs_line_no)
6766 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6767 (tui_show_registers): Update.
6768 (tui_show_register_group): Return void. Update.
6769 (tui_display_registers_from, tui_display_reg_element_at_line)
6770 (tui_display_registers_from_line, tui_check_register_values):
6771 Update.
6772 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6773 member.
6774 (struct tui_data_window) <regs_content>: Now a std::vector.
6775 <regs_content_count>: Remove.
6776 (tui_add_content_elements, tui_free_data_content): Don't declare.
6777 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6778 (init_content_element): Remove DATA_WIN case. Add assert.
6779 (tui_add_content_elements): Remove.
6780 (tui_data_window): Update.
6781 (tui_free_data_content): Remove.
6782 (free_content_elements): Remove DATA_WIN case.
6783
6784 2019-06-25 Tom Tromey <tom@tromey.com>
6785
6786 * tui/tui-data.c (tui_data_item_window): Update.
6787 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6788 * tui/tui-windata.c (tui_display_all_data)
6789 (tui_display_data_from_line): Update.
6790 (tui_check_data_values): Remove.
6791 * tui/tui-regs.c (tui_show_register_group)
6792 (tui_display_reg_element_at_line): Update.
6793 * tui/tui-hooks.c (tui_register_changed)
6794 (tui_refresh_frame_and_register_information): Call
6795 tui_check_register_values.
6796 * tui/tui-data.h (struct tui_data_window) <data_content,
6797 data_content_count, data_type>: Remove.
6798 (enum tui_data_type): Remove.
6799
6800 * tui/tui-data.c (tui_data_window::clear_detail)
6801 (~tui_data_window): Update.
6802
6803 2019-06-25 Tom Tromey <tom@tromey.com>
6804
6805 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6806 declare.
6807 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6808 Rename from tui_first_data_item_displayed. Update.
6809 (tui_data_window::refresh_all)
6810 (tui_data_window::do_scroll_vertical): Update.
6811 * tui/tui-data.h (struct tui_data_window)
6812 <first_data_item_displayed>: Declare new method.
6813
6814 2019-06-25 Tom Tromey <tom@tromey.com>
6815
6816 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6817 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6818 contents...
6819 (tui_initialize_static_data): ...here.
6820
6821 2019-06-25 Tom Tromey <tom@tromey.com>
6822
6823 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6824 (tui_display_registers_from, tui_check_register_values): Update.
6825 (tui_display_register): Remove win_info parameter; update.
6826 (tui_get_register): Change type of parameters.
6827 * tui/tui-data.h (struct tui_data_element): Remove.
6828 (union tui_which_element) <data>: Remove.
6829 <data_window>: Change type.
6830 (struct tui_data_item_window): New.
6831 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6832 case. Add assert.
6833 (~tui_data_item_window): New destructor.
6834 (free_content_elements): Remove DATA_ITEM_WIN case.
6835
6836 2019-06-25 Tom Tromey <tom@tromey.com>
6837
6838 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
6839 Remove.
6840
6841 2019-06-25 Tom Tromey <tom@tromey.com>
6842
6843 * tui/tui-data.h (struct tui_command_element): Remove.
6844 (union tui_which_element) <command>: Remove.
6845 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
6846 assert.
6847 (free_content_elements): Remove CMD_WIN case.
6848
6849 2019-06-25 Tom Tromey <tom@tromey.com>
6850
6851 * tui/tui-layout.c (tui_set_layout): Update.
6852 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
6853 * tui/tui-data.c (layout_def): Update.
6854
6855 2019-06-25 Tom Tromey <tom@tromey.com>
6856
6857 * tui/tui-wingeneral.c (tui_refresh_all): Update.
6858 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6859 (tui_source_window_base::set_new_height): Update.
6860 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
6861 Update.
6862 (tui_set_locator_fullname, tui_set_locator_info)
6863 (tui_show_frame_info): Update.
6864 * tui/tui-source.c (tui_set_source_content)
6865 (tui_source_is_displayed): Update.
6866 * tui/tui-layout.c (show_source_disasm_command, show_data)
6867 (show_source_or_disasm_and_command): Update.
6868 * tui/tui-disasm.c (tui_set_disassem_content)
6869 (tui_get_begin_asm_address): Update.
6870 * tui/tui-data.h (struct tui_locator_element): Remove.
6871 (union tui_which_element) <locator>: Remove.
6872 (struct tui_locator_window): New.
6873 (tui_locator_win_info_ptr): Change return type.
6874 * tui/tui-data.c (_locator): Change type.
6875 (tui_locator_win_info_ptr): Change return type.
6876 (init_content_element): Remove LOCATOR_WIN case. Add assert.
6877 (tui_alloc_content): Add assert.
6878
6879 2019-06-25 Tom Tromey <tom@tromey.com>
6880
6881 * tui/tui-winsource.c
6882 (tui_exec_info_window::maybe_allocate_content): New method.
6883 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
6884 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
6885 (make_source_or_disasm_window): Add cast.
6886 * tui/tui-data.h (union tui_which_element) <simple_string>:
6887 Remove.
6888 (struct tui_source_info): New.
6889 (struct tui_source_window_base) <execution_info>: Change type.
6890 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
6891 case, and add assert.
6892 (tui_alloc_content): Add assert.
6893
6894 2019-06-25 Tom Tromey <tom@tromey.com>
6895
6896 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
6897 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
6898 * tui/tui-data.c (tui_alloc_win_info): Remove.
6899
6900 2019-06-25 Tom Tromey <tom@tromey.com>
6901
6902 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
6903 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
6904 can_highlight.
6905
6906 2019-06-25 Tom Tromey <tom@tromey.com>
6907
6908 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
6909 make_visible_with_new_height method.
6910 (tui_win_info::make_visible_with_new_height): New method.
6911 (tui_source_window_base::do_make_visible_with_new_height)
6912 (tui_data_window::do_make_visible_with_new_height)
6913 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6914 (make_visible_with_new_height): Remove.
6915 (tui_resize_all, tui_adjust_win_heights): Use
6916 make_visible_with_new_height method.
6917 * tui/tui-data.h (struct tui_win_info)
6918 <do_make_visible_with_new_height, make_visible_with_new_height>:
6919 New methods.
6920 (struct tui_source_window_base, struct tui_data_window)
6921 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6922 methods.
6923
6924 2019-06-25 Tom Tromey <tom@tromey.com>
6925
6926 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6927 method.
6928 (update_tab_width): Call update_tab_width method.
6929 * tui/tui-data.h (struct tui_win_info)
6930 (struct tui_source_window_base) <update_tab_width>: New methods.
6931
6932 2019-06-25 Tom Tromey <tom@tromey.com>
6933
6934 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
6935 parameter.
6936 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
6937 parameter.
6938 (tui_gen_win_info::make_visible): Update.
6939 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
6940 parameter.
6941 * tui/tui-data.h (enum tui_box): New enum.
6942 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
6943
6944 2019-06-25 Tom Tromey <tom@tromey.com>
6945
6946 * tui/tui-layout.c (make_source_or_disasm_window): Always use
6947 init_and_make_win for EXEC_INFO_WIN.
6948 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
6949 longer inline.
6950 (struct tui_win_info) <~tui_win_info>: Inline.
6951 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6952 Don't declare.
6953 * tui/tui-data.c (source_win, disasm_win): Remove globals.
6954 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6955 Remove.
6956 (tui_initialize_static_data): Update.
6957 (~tui_gen_win_info): Handle more cleanup here.
6958 (~tui_source_window_base): Delete "execution_info".
6959 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
6960
6961 2019-06-25 Tom Tromey <tom@tromey.com>
6962
6963 * tui/tui-layout.c (make_command_window): Don't set
6964 can_highlight.
6965 (show_source_disasm_command): Call the reset method.
6966 (show_data): Don't set can_highlight. Call the reset method.
6967 (tui_gen_win_info::reset): Rename from init_gen_win_info
6968 (init_and_make_win): Simplify. Return tui_gen_win_info.
6969 (show_source_or_disasm_and_command): Call the reset method.
6970 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
6971 (struct tui_cmd_window): Set can_highlight.
6972
6973 2019-06-25 Tom Tromey <tom@tromey.com>
6974
6975 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
6976 from make_visible.
6977 (tui_make_visible, tui_make_invisible): Rewrite.
6978 (tui_win_info::make_visible): Remove.
6979 (tui_source_window_base::make_visible): Update.
6980 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
6981 method. Moved from...
6982 (struct tui_win_info) <make_visible>: ...here.
6983
6984 2019-06-25 Tom Tromey <tom@tromey.com>
6985
6986 * tui/tui-winsource.c
6987 (tui_source_window_base::do_scroll_horizontal): Remove direction
6988 parameter.
6989 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
6990 direction parameter.
6991 * tui/tui-win.c (tui_win_info::forward_scroll)
6992 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6993 (tui_win_info::right_scroll): Update.
6994 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
6995 direction parameter.
6996 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
6997 direction parameter.
6998 * tui/tui-data.h (enum tui_scroll_direction): Remove.
6999 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7000 Remove direction parameter.
7001 (struct tui_source_window_base, struct tui_source_window)
7002 (struct tui_disasm_window, struct tui_data_window)
7003 (struct tui_cmd_window): Update.
7004
7005 2019-06-25 Tom Tromey <tom@tromey.com>
7006
7007 * tui/tui-winsource.h (tui_set_exec_info_content)
7008 (tui_show_exec_info_content, tui_erase_exec_info_content)
7009 (tui_clear_exec_info_content, tui_update_exec_info): Change
7010 argument to tui_source_window_base.
7011 * tui/tui-winsource.c (tui_set_exec_info_content)
7012 (tui_show_exec_info_content, tui_erase_exec_info_content)
7013 (tui_clear_exec_info_content, tui_update_exec_info): Change
7014 argument to tui_source_window_base.
7015
7016 2019-06-25 Tom Tromey <tom@tromey.com>
7017
7018 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7019 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7020
7021 2019-06-25 Tom Tromey <tom@tromey.com>
7022
7023 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7024 check.
7025
7026 2019-06-25 Tom Tromey <tom@tromey.com>
7027
7028 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7029 type to void.
7030 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7031 type to void.
7032 * tui/tui-source.c (tui_set_source_content): Update.
7033 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7034
7035 2019-06-25 Tom Tromey <tom@tromey.com>
7036
7037 * tui/tui-win.c (window_name_completer, tui_set_focus)
7038 (tui_all_windows_info): Use name method.
7039 * tui/tui-data.h (struct tui_gen_win_info)
7040 (struct tui_source_window, struct tui_disasm_window)
7041 (struct tui_data_window, struct tui_cmd_window) <name>: New
7042 method.
7043 (tui_win_name): Don't declare.
7044 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7045 (tui_win_name): Remove.
7046
7047 2019-06-25 Tom Tromey <tom@tromey.com>
7048
7049 * tui/tui-winsource.h (tui_update_source_window)
7050 (tui_update_source_window_as_is): Change parameter type.
7051 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7052 to be a tui_source_window_base.
7053 (tui_update_source_window_as_is): Likewise.
7054 * tui/tui-win.c (make_visible_with_new_height): Update.
7055
7056 2019-06-25 Tom Tromey <tom@tromey.com>
7057
7058 * tui/tui-winsource.c (tui_erase_source_content)
7059 (tui_show_source_content, tui_show_exec_info_content)
7060 (tui_erase_exec_info_content): Use refresh_window method.
7061 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7062 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7063 from tui_refresh_win.
7064 (tui_data_window::refresh_window): New method.
7065 (tui_win_info::refresh, tui_source_window_base::refresh)
7066 (tui_refresh_all): Use refresh_window method.
7067 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7068 method.
7069 * tui/tui-regs.c (tui_display_register): Call refresh_window
7070 method.
7071 * tui/tui-layout.c (show_source_disasm_command)
7072 (show_source_or_disasm_and_command): Call refresh_window method.
7073 * tui/tui-data.h (struct tui_gen_win_info)
7074 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7075 New method.
7076
7077 2019-06-25 Tom Tromey <tom@tromey.com>
7078
7079 * tui/tui.c (tui_rl_other_window, tui_enable)
7080 (tui_is_window_visible, tui_get_command_dimension): Update.
7081 * tui/tui-winsource.c (tui_update_source_window_as_is)
7082 (tui_clear_source_content, tui_erase_source_content)
7083 (tui_show_source_line, tui_source_window_base::refill)
7084 (tui_source_window_base::do_scroll_horizontal)
7085 (tui_source_window_base::set_is_exec_point_at)
7086 (tui_update_breakpoint_info, tui_set_exec_info_content)
7087 (tui_alloc_source_buffer, tui_line_is_displayed)
7088 (tui_addr_is_displayed): Update.
7089 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7090 (tui_check_and_display_highlight_if_needed)
7091 (tui_win_info::make_visible, tui_win_info::refresh)
7092 (tui_refresh_all): Update.
7093 * tui/tui-windata.c (tui_first_data_item_displayed)
7094 (tui_delete_data_content_windows, tui_erase_data_content)
7095 (tui_display_all_data, tui_data_window::refresh_all)
7096 (tui_check_data_values): Update.
7097 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7098 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7099 (tui_win_info::backward_scroll, tui_refresh_all_win)
7100 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7101 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7102 (tui_source_window_base::set_new_height)
7103 (tui_data_window::set_new_height)
7104 (make_invisible_and_set_new_height)
7105 (make_visible_with_new_height, new_height_ok)
7106 (parse_scrolling_args): Update.
7107 * tui/tui-stack.c (tui_show_frame_info): Update.
7108 * tui/tui-source.c (tui_set_source_content)
7109 (tui_set_source_content_nil, tui_source_is_displayed)
7110 (tui_source_window::do_scroll_vertical): Update.
7111 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7112 (tui_display_registers_from, tui_display_reg_element_at_line)
7113 (tui_check_register_values, tui_reg_command): Update.
7114 * tui/tui-layout.c (tui_default_win_height)
7115 (show_source_disasm_command, show_data, init_and_make_win)
7116 (show_source_or_disasm_and_command): Update.
7117 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7118 (tui_redisplay_readline, tui_mld_flush)
7119 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7120 (tui_getc): Update.
7121 * tui/tui-disasm.c (tui_set_disassem_content)
7122 (tui_disasm_window::do_scroll_vertical): Update.
7123 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7124 Now virtual.
7125 (struct tui_win_info): Derive from tui_gen_win_info.
7126 <~tui_win_info>: Mark as override.
7127 <generic>: Remove member.
7128 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7129 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7130 (~tui_data_window, ~tui_win_info)
7131 (tui_free_all_source_wins_content): Update.
7132 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7133
7134 2019-06-25 Tom Tromey <tom@tromey.com>
7135
7136 * tui/tui-layout.c (init_and_make_win): Use new.
7137 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7138 destructor, initializers.
7139 (tui_alloc_generic_win_info): Don't declare.
7140 * tui/tui-data.c (_locator): Add argument to constructor.
7141 (source_win, disasm_win): New globals.
7142 (exec_info): Remove.
7143 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7144 Update.
7145 (tui_alloc_generic_win_info): Remove.
7146 (init_content_element): Use new.
7147 (tui_win_info::tui_win_info): Update.
7148 (free_content_elements) <case DATA_WIN>: Use delete.
7149
7150 2019-06-25 Tom Tromey <tom@tromey.com>
7151
7152 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7153 * tui/tui-windata.c (tui_first_data_item_displayed)
7154 (tui_delete_data_content_windows): Update.
7155 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7156 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7157 (tui_display_registers_from, tui_check_register_values): Update.
7158 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7159 pointer.
7160 * tui/tui-data.c (init_content_element): Update. Allocate the new
7161 window.
7162 (tui_free_data_content): Update.
7163 (free_content_elements) <case DATA_WIN>: Free the window.
7164
7165 2019-06-25 Tom Tromey <tom@tromey.com>
7166
7167 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7168 Update.
7169 * tui/tui-layout.c (make_command_window)
7170 (show_source_disasm_command, show_data, init_and_make_win)
7171 (show_source_or_disasm_and_command): Update.
7172 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7173 method.
7174 <can_highight, is_highlighted>: Now bool.
7175 (tui_set_win_highlight): Don't declare.
7176 * tui/tui-data.c (tui_set_win_highlight): Remove.
7177
7178 2019-06-25 Tom Tromey <tom@tromey.com>
7179
7180 * tui/tui-wingeneral.c (make_visible): Remove check of window
7181 type.
7182
7183 2019-06-25 Tom Tromey <tom@tromey.com>
7184
7185 * tui/tui-win.c (tui_win_info::max_height)
7186 (tui_cmd_window::max_height): New methods.
7187 (new_height_ok): Call max_height.
7188 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7189 <max_height>: New method.
7190
7191 2019-06-25 Tom Tromey <tom@tromey.com>
7192
7193 * tui/tui-win.c (tui_source_window_base::set_new_height)
7194 (tui_data_window::set_new_height): New methods.
7195 (make_invisible_and_set_new_height): Call set_new_height method.
7196 * tui/tui-data.h (struct tui_win_info)
7197 (struct tui_source_window_base, struct tui_data_window)
7198 <set_new_height>: New method.
7199
7200 2019-06-25 Tom Tromey <tom@tromey.com>
7201
7202 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7203 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7204 tui_refresh_data_win.
7205 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7206 method.
7207 (tui_refresh_all_win): Call the refresh_all method.
7208 (tui_set_focus): Likewise.
7209 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7210 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7211 Likewise.
7212
7213 2019-06-25 Tom Tromey <tom@tromey.com>
7214
7215 * tui/tui-winsource.h (tui_refill_source_window)
7216 (tui_set_is_exec_point_at): Don't declare.
7217 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7218 (tui_source_window_base::refill): Rename from
7219 tui_refill_source_window.
7220 (tui_source_window_base::do_scroll_horizontal): Update.
7221 (tui_source_window_base::set_is_exec_point_at): Rename from
7222 tui_set_is_exec_point_at.
7223 (tui_update_all_breakpoint_info): Update.
7224 * tui/tui-stack.c (tui_show_frame_info): Update.
7225 * tui/tui-layout.c (show_data): Add cast.
7226 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7227 * tui/tui-data.h (struct tui_source_window_base) <refill,
7228 set_is_exec_point_at>: New methods.
7229 (tui_source_windows, tui_add_to_source_windows): Update types.
7230 (tui_add_to_source_windows): Remove redundant declaration.
7231 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7232 (tui_source_windows): Change return type.
7233 (tui_clear_source_windows_detail): Update.
7234 (tui_add_to_source_windows): Change type of parameter.
7235 (tui_free_all_source_wins_content): Update.
7236
7237 2019-06-25 Tom Tromey <tom@tromey.com>
7238
7239 * tui/tui-wingeneral.c (tui_win_info::refresh)
7240 (tui_source_window_base::refresh): New methods.
7241 (tui_refresh_all): Call the refresh method.
7242 * tui/tui-data.h (struct tui_win_info)
7243 (struct tui_source_window_base) <refresh>: New method.
7244
7245 2019-06-25 Tom Tromey <tom@tromey.com>
7246
7247 * tui/tui.h (tui_is_window_visible): Return bool.
7248 * tui/tui.c (tui_is_window_visible): Return bool.
7249 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7250 (tui_make_visible, tui_make_invisible)
7251 (tui_win_info::make_visible)
7252 (tui_source_window_base::make_visible, make_all_visible)
7253 (tui_make_all_visible, tui_make_all_invisible): Update.
7254 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7255 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7256 bool.
7257 (struct tui_win_info, struct tui_source_window_base)
7258 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7259 * tui/tui-data.c (tui_init_generic_part): Update.
7260
7261 2019-06-25 Tom Tromey <tom@tromey.com>
7262
7263 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7264 (tui_source_window_base::make_visible): New methods.
7265 (make_all_visible): Make method call.
7266 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7267 (struct tui_source_window_base, struct tui_cmd_window): Override
7268 make_visible.
7269 (tui_win_is_source_type): Don't declare.
7270 * tui/tui-data.c (tui_win_is_source_type): Remove.
7271
7272 2019-06-25 Tom Tromey <tom@tromey.com>
7273
7274 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7275 NULL check.
7276
7277 2019-06-25 Tom Tromey <tom@tromey.com>
7278
7279 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7280 Inline constructor. Add initializers for members.
7281 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7282 constructors; now inline in class.
7283
7284 2019-06-25 Tom Tromey <tom@tromey.com>
7285
7286 * tui/tui-regs.c (tui_show_registers): Update.
7287 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7288 bool.
7289 * tui/tui-data.c (tui_data_window::clear_detail)
7290 (tui_data_window): Update.
7291
7292 2019-06-25 Tom Tromey <tom@tromey.com>
7293
7294 * tui/tui-windata.c (tui_display_all_data)
7295 (tui_display_data_from_line, tui_display_data_from)
7296 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7297 Update.
7298 * tui/tui-regs.c (tui_last_regs_line_no)
7299 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7300 (tui_show_registers, tui_show_register_group)
7301 (tui_display_registers_from, tui_display_reg_element_at_line)
7302 (tui_display_registers_from_line, tui_check_register_values)
7303 (tui_reg_next, tui_reg_prev): Update.
7304 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7305 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7306 tui_data_window.
7307 (struct tui_win_info) <detail>: Remove. Add new fields from
7308 tui_data_info.
7309 (TUI_DATA_WIN): Add cast.
7310 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7311 (~tui_data_window): Simplify.
7312
7313 2019-06-25 Tom Tromey <tom@tromey.com>
7314
7315 * tui/tui-layout.c (show_source_disasm_command)
7316 (show_source_or_disasm_and_command): Update.
7317 * tui/tui-io.c (update_cmdwin_start_line)
7318 (tui_redisplay_readline): Update.
7319 * tui/tui-data.h (struct tui_command_info): Remove.
7320 (struct tui_win_info) <detail>: Remove command_info member.
7321 (struct tui_data_window) <start_line>: New member, from
7322 tui_command_info.
7323 (TUI_CMD_WIN): Add casts.
7324
7325 2019-06-25 Tom Tromey <tom@tromey.com>
7326
7327 * tui/tui-winsource.c (tui_update_source_window)
7328 (tui_refill_source_window)
7329 (tui_source_window_base::do_scroll_horizontal)
7330 (tui_update_breakpoint_info, tui_set_exec_info_content)
7331 (tui_show_exec_info_content, tui_erase_exec_info_content)
7332 (tui_clear_exec_info_content): Update.
7333 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7334 Update.
7335 * tui/tui-win.c (make_invisible_and_set_new_height)
7336 (make_visible_with_new_height): Update.
7337 * tui/tui-source.c (tui_set_source_content)
7338 (tui_show_symtab_source): Update.
7339 * tui/tui-layout.c (extract_display_start_addr)
7340 (show_source_disasm_command, show_data)
7341 (make_source_or_disasm_window)
7342 (show_source_or_disasm_and_command): Update.
7343 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7344 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7345 "gdbarch".
7346 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7347 to tui_source_window_base.
7348 (struct tui_win_info) <detail>: Remove source_info member.
7349 (struct tui_source_window_base) <has_locator>: Inline.
7350 Move contents from tui_source_info; rename has_locator member to
7351 m_has_locator.
7352 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7353 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7354 header file.
7355 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7356 Simplify.
7357 (tui_free_all_source_wins_content): Cast to
7358 tui_source_window_base.
7359
7360 2019-06-25 Tom Tromey <tom@tromey.com>
7361
7362 * tui/tui-win.c (make_invisible_and_set_new_height)
7363 (make_visible_with_new_height): Call has_locator method.
7364 * tui/tui-layout.c (show_source_disasm_command, show_data)
7365 (show_source_or_disasm_and_command): Update for bool change.
7366 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7367 (tui_win_info) <has_locator>: New method.
7368 (struct tui_source_window_base) <has_locator>: New method.
7369 (tui_win_has_locator): Don't declare.
7370 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7371 from tui_win_has_locator.
7372 (tui_source_window_base): Use false, not FALSE.
7373
7374 2019-06-25 Tom Tromey <tom@tromey.com>
7375
7376 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7377 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7378 clear_detail method directly.
7379 (tui_clear_win_detail): Remove.
7380
7381 2019-06-25 Tom Tromey <tom@tromey.com>
7382
7383 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7384 "this", not TUI_DISASM_WIN.
7385
7386 2019-06-25 Tom Tromey <tom@tromey.com>
7387
7388 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7389 declare.
7390 * tui/tui-winsource.c
7391 (tui_source_window_base::do_scroll_horizontal): Rename from
7392 tui_horizontal_source_scroll.
7393 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7394 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7395 from tui_vertical_data_scroll.
7396 * tui/tui-win.h (tui_scroll): Don't declare.
7397 * tui/tui-win.c (tui_win_info::forward_scroll)
7398 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7399 (tui_win_info::right_scroll): Rename and update.
7400 (tui_scroll_forward_command, tui_scroll_backward_command)
7401 (tui_scroll_left_command, tui_scroll_right_command): Update.
7402 (tui_scroll): Remove.
7403 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7404 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7405 from tui_vertical_source_scroll.
7406 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7407 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7408 from tui_vertical_disassem_scroll.
7409 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7410 do_scroll_horizontal>: New methods.
7411 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7412 Likewise.
7413 (struct tui_source_window_base): Add do_scroll_horizontal.
7414 (struct tui_source_window, struct tui_disasm_window): Add
7415 do_scroll_vertical.
7416 (struct tui_data_window, struct tui_cmd_window): Add
7417 do_scroll_horizontal and do_scroll_vertical.
7418 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7419
7420 2019-06-25 Tom Tromey <tom@tromey.com>
7421
7422 * tui/tui-data.h (struct tui_source_window_base): New struct.
7423 (struct tui_source_window): Derive from tui_source_window_base.
7424 (struct tui_disasm_window): New struct.
7425 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7426 from tui_source_window::clear_detail.
7427 (tui_source_window_base): Rename from tui_source_window.
7428 (~tui_source_window_base): Rename from ~tui_source_window.
7429 (tui_alloc_win_info): Create a tui_disasm_window.
7430
7431 2019-06-25 Tom Tromey <tom@tromey.com>
7432
7433 * tui/tui-data.h (struct tui_source_window)
7434 (struct tui_data_window): Declare destructors.
7435 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7436 destructors.
7437 (tui_win_info): Simplify.
7438
7439 2019-06-25 Tom Tromey <tom@tromey.com>
7440
7441 * tui/tui-winsource.c (tui_display_main)
7442 (tui_update_source_windows_with_addr)
7443 (tui_update_all_breakpoint_info): Update.
7444 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7445 (new_height_ok, parse_scrolling_args): Update.
7446 * tui/tui-stack.c (tui_show_frame_info): Update.
7447 * tui/tui-data.h (struct tui_list): Remove.
7448 (tui_source_windows): Return a reference to a std::vector.
7449 * tui/tui-data.c (source_windows): Now a std::vector.
7450 (tui_source_windows): Change return type.
7451 (tui_clear_source_windows): Rewrite.
7452 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7453 (tui_free_all_source_wins_content): Rewrite.
7454
7455 2019-06-25 Tom Tromey <tom@tromey.com>
7456
7457 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7458 (struct tui_data_window, struct tui_cmd_window): Declare
7459 clear_detail method.
7460 * tui/tui-data.c (tui_source_window::clear_detail)
7461 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7462 methods.
7463 (tui_clear_win_detail): Simplify.
7464
7465 2019-06-25 Tom Tromey <tom@tromey.com>
7466
7467 * tui/tui-layout.c (make_source_window, make_disasm_window)
7468 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7469 Return the new window.
7470 (show_source_disasm_command, show_data)
7471 (show_source_or_disasm_and_command): Update.
7472
7473 2019-06-25 Tom Tromey <tom@tromey.com>
7474
7475 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7476 parameter. Return the new window.
7477 (show_source_disasm_command): Update and remove NULL check.
7478 (show_source_or_disasm_and_command): Update.
7479
7480 2019-06-25 Tom Tromey <tom@tromey.com>
7481
7482 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7483
7484 2019-06-25 Tom Tromey <tom@tromey.com>
7485
7486 * tui/tui-data.h (struct tui_win_info): Make constructor
7487 protected. Make destructor virtual. Add initializers.
7488 (tui_source_window, tui_data_window, tui_cmd_window): New
7489 classes.
7490 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7491 constructor. Add "type" parameter.
7492 (tui_source_window, tui_data_window, tui_cmd_window): New
7493 constructors.
7494 (tui_alloc_win_info): Instantiate the appropriate subclass.
7495
7496 2019-06-25 Tom Tromey <tom@tromey.com>
7497
7498 * tui/tui-win.c (tui_resize_all): Use delete.
7499 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7500 destructor.
7501 (tui_free_window): Don't declare.
7502 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7503 Update.
7504
7505 2019-06-25 Tom Tromey <tom@tromey.com>
7506
7507 * tui/tui-data.h (struct tui_win_info): Add constructor.
7508 * tui/tui-data.c (tui_alloc_win_info): Use new.
7509 (tui_free_window): Use delete.
7510
7511 2019-06-22 Tom Tromey <tom@tromey.com>
7512
7513 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7514 declare.
7515 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7516
7517 2019-06-22 Tom Tromey <tom@tromey.com>
7518
7519 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7520 declare.
7521 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7522
7523 2019-06-22 Tom de Vries <tdevries@suse.de>
7524
7525 * dwarf2read.c (create_addrmap_from_aranges)
7526 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7527 instead of '%zu'.
7528
7529 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
7530
7531 * dwarf2read.h (dwarf2_section_info_def): Remove.
7532 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7533 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7534 std::vector<dwarf2_section_info>.
7535 (struct dwo_file) <~dwo_file>: Remove.
7536 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7537 types field.
7538 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7539 (dwarf2_read_debug_names): Likewise.
7540 (create_debug_types_hash_table): Change parameter type to
7541 array_view, adjust code accordingly.
7542 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7543 (partial_die_info::fixup): Likewise.
7544 (determine_prefix): Likewise.
7545 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7546
7547 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7548
7549 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7550 gdb_bfd_ref_ptr.
7551 <~dwo_file>: Remove call to gdb_bfd_unref.
7552 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7553 gdb_bfd_ref_ptr::get.
7554
7555 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7556
7557 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7558 type to htab_up.
7559 * dwarf2read.c (struct dwo_file): Initialize fields.
7560 <~dwo_file>: New.
7561 (free_dwo_file): Remove, move content to ~dwo_file.
7562 (struct dwo_file_deleter): Remove.
7563 (dwo_file_up>: Remove custom deleter.
7564 (free_dwo_files): Remove.
7565 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7566 dwo_files.
7567 (process_skeletonless_type_units): Call unique_ptr::get.
7568 (allocate_dwo_file_hash_table): Add deleter to created hash
7569 table. Change return type to htab_up.
7570 (lookup_dwo_file_slot): Don't memset dwo_file, call
7571 unique_ptr::get.
7572 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7573 (create_dwo_unit_in_dwp_v2): Likewise.
7574 (open_and_init_dwo_file): Likewise.
7575 (free_dwo_file_from_slot): Remove.
7576
7577 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7578
7579 * dwarf2read.h (struct dwarf2_section_info) <readin,
7580 is_virtual>: Change type to bool.
7581 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7582 true instead of 1.
7583
7584 2019-06-19 Tom Tromey <tom@tromey.com>
7585
7586 * tui/tui-data.h (tui_init_content_element): Don't declare.
7587
7588 2019-06-19 Tom Tromey <tom@tromey.com>
7589
7590 * tui/tui-data.h (tui_init_win_info): Don't declare.
7591
7592 2019-06-19 Tom de Vries <tdevries@suse.de>
7593
7594 * dwarf2read.h (abstract_to_concrete): Change type to
7595 std::unordered_map<sect_offset, std::vector<sect_offset>,
7596 gdb::hash_enum<sect_offset>>.
7597
7598 2019-06-19 Tom Tromey <tromey@adacore.com>
7599
7600 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7601 EVAL_AVOID_SIDE_EFFECTS specially.
7602
7603 2019-06-19 Tom Tromey <tromey@adacore.com>
7604
7605 * source-cache.c (highlighter): New global.
7606 (source_cache::get_source_lines): Create a highlighter on demand.
7607
7608 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7609
7610 * defs.h (deprecated_interactive_hook): Delete declaration.
7611 * interps.c (clear_interpreter_hooks): Remove use of
7612 deprecated_interactive_hook.
7613 * top.c (deprecated_interactive_hook): Delete definition.
7614 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7615
7616 2019-06-18 Tom de Vries <tdevries@suse.de>
7617
7618 PR gdb/24515
7619 * dwarf2read.h (abstract_to_concrete): Change type from
7620 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7621 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7622 * dwarf2read.c (read_variable): Update.
7623 (dwarf2_fetch_die_loc_sect_off): Update.
7624
7625 2019-06-17 Tom de Vries <tdevries@suse.de>
7626
7627 PR gdb/24617
7628 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7629 accessing parent[parent_len - 1].
7630
7631 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7632
7633 PR gdb/24364
7634 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7635 call dtrace_process_dof with NULL dof.
7636
7637 2019-06-16 Tom de Vries <tdevries@suse.de>
7638
7639 PR gdb/24445
7640 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7641
7642 2019-06-16 Tom Tromey <tom@tromey.com>
7643
7644 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7645 (make_all_visible): Use address of member.
7646
7647 2019-06-16 Tom Tromey <tom@tromey.com>
7648
7649 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7650 (tui_free_window, free_content, free_content_elements): Remove
7651 unnecessary cast.
7652 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7653 cast.
7654 * tui/tui-regs.c (tui_show_register_group)
7655 (tui_display_registers_from, tui_display_reg_element_at_line):
7656 Remove unnecessary cast.
7657
7658 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7659
7660 * linux-nat.c (normal_mask): Delete.
7661 (_initialize_linux_nat): Don't initialise normal_mask.
7662
7663 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7664
7665 PR gdb/24445
7666 * dwarf-index-write.h (write_psymtabs_to_index): Add
7667 dwz_basename parameter.
7668 * dwarf-index-write.c (write_gdbindex): Move file writing to
7669 write_gdbindex_1. Change return type void.
7670 (assert_file_size): Move up, remove filename parameter.
7671 (write_gdbindex_1): New function.
7672 (write_debug_names): Change return type to void, call
7673 assert_file_size.
7674 (struct index_wip_file): New struct.
7675 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7676 file logic to index_wip_file. Write index for dwz file if
7677 needed.
7678 (save_gdb_index_command): Pass basename of dwz file, if present.
7679 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7680 build-id of dwz file, if present.
7681 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7682 (dwarf2_get_dwz_file): Likewise.
7683 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7684 (dwarf2_get_dwz_file): Likewise.
7685
7686 2019-06-16 Tom Tromey <tom@tromey.com>
7687
7688 * coffread.c (process_coff_symbol): Use xstrdup.
7689 * value.c (create_internalvar): Use xstrdup.
7690
7691 2019-06-16 Tom Tromey <tom@tromey.com>
7692
7693 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7694 * breakpoint.c (stopin_command, stopat_command)
7695 (until_break_command, decode_location_default): Remove unnecessary
7696 cast.
7697 * utils.c (subset_compare): Remove unnecessary cast.
7698 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7699 cast.
7700 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7701 cast.
7702 * infcmd.c (path_command): Remove unnecessary cast.
7703 * coffread.c (decode_type): Remove unnecessary cast.
7704 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7705 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7706 * tui/tui-stack.c (tui_show_locator_content)
7707 (tui_show_frame_info): Remove unnecessary cast.
7708 * tui/tui-win.c (tui_scroll_forward_command)
7709 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7710 (parse_scrolling_args): Remove unnecessary cast.
7711 * tui/tui-data.c (init_win_info, tui_del_window)
7712 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7713 (free_content_elements): Remove unnecessary cast.
7714 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7715 unnecessary cast.
7716 * tui/tui-source.c (tui_set_source_content)
7717 (tui_vertical_source_scroll): Remove unnecessary cast.
7718 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7719 cast.
7720 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7721 * tui/tui-regs.c (tui_display_registers_from)
7722 (tui_display_register): Remove unnecessary cast.
7723 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7724 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7725 (make_visible): Remove unnecessary cast.
7726 * tui/tui-winsource.c (tui_erase_source_content)
7727 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7728 unnecessary cast.
7729 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7730 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7731 * stabsread.c (read_type, read_array_type, read_range_type):
7732 Remove unnecessary cast.
7733 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7734 (parse_symbol, parse_type, upgrade_type, parse_external)
7735 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7736 unnecessary cast.
7737 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7738
7739 2019-06-16 Tom Tromey <tom@tromey.com>
7740
7741 * tui/tui-data.c (tui_alloc_generic_win_info)
7742 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7743 checks.
7744
7745 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7746 Andrew Burgess <andrew.burgess@embecosm.com>
7747
7748 * f-typeprint.c (f_print_type): Don't return early for not
7749 associated or not allocated types.
7750 (f_type_print_varspec_suffix): Add print_rank parameter and print
7751 ranks of array types in case they dangling.
7752 (f_type_print_base): Add print_rank parameter.
7753
7754 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7755
7756 * NEWS: Mention new MI commands.
7757 * break-catch-throw.c (enum exception_event_kind): Move to
7758 breakpoint.h.
7759 (print_mention_exception_catchpoint): Output text as a single
7760 message.
7761 (catch_exception_command_1): Rename to...
7762 (catch_exception_event): ...this, make non-static, update header
7763 command, and change some parameter types.
7764 (catch_catch_command): Update for changes to
7765 catch_exception_command_1.
7766 (catch_throw_command): Likewise.
7767 (catch_rethrow_command): Likewise.
7768 * breakpoint.c (enum exception_event_kind): Delete.
7769 * breakpoint.h (enum exception_event_kind): Moved here from
7770 break-catch-throw.c.
7771 (catch_exception_event): Declare.
7772 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7773 (mi_cmd_catch_throw): New function.
7774 (mi_cmd_catch_rethrow): New function.
7775 (mi_cmd_catch_catch): New function.
7776 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7777 'catch-catch' entries.
7778 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7779 (mi_cmd_catch_rethrow): Declare.
7780 (mi_cmd_catch_catch): Declare.
7781
7782 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7783
7784 * annotate.c (annotate_source_line): Change return type to void,
7785 update implementation to match.
7786 * annotate.h (annotate_source_line): Change return type to void,
7787 update header comment.
7788 * stack.c (print_frame_info): Don't change what frame information
7789 is printed based on whether annotations are on or not.
7790
7791 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7792
7793 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7794 (annotate_source): Make static.
7795 (annotate_source_line): Moved from source.c and renamed from
7796 identify_source_line. Update the return type.
7797 * annotate.h (annotate_source): Delete declaration.
7798 (annotate_source_line): Declaration moved from source.h, and
7799 renamed from identify_source_line. Return type updated.
7800 * source.c (identify_source_line): Moved to annotate.c and renamed
7801 to annotate_source_line.
7802 (info_line_command): Remove check of annotation_level.
7803 * source.h (identify_source_line): Move declaration to annotate.h
7804 and rename to annotate_source_line.
7805 * stack.c: Add 'annotate.h' include.
7806 (print_frame_info): Remove check of annotation_level before
7807 calling annotate_source_line.
7808
7809 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7810
7811 * source-cache.c (source_cache::get_plain_source_lines): Use
7812 open_source_file_with_line_charpos instead of just
7813 open_source_file, remove call to find_source_lines.
7814 (source_cache::get_source_lines): Likewise.
7815 * source.c (find_source_lines): Make static.
7816 (get_filename_and_charpos): Renamed into...
7817 (open_source_file_with_line_charpos): ..this along with changes to
7818 return a scoped_fd, and some other minor clean ups.
7819 (identify_source_line): Use open_source_file_with_line_charpos.
7820 (search_command_helper): Use open_source_file_with_line_charpos
7821 instead of just open_source_file, remove call to
7822 find_source_lines.
7823 * source.h (open_source_file_with_line_charpos): Declare new
7824 function.
7825 (find_source_lines): Delete declaration.
7826
7827 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7828
7829 * source.c (get_filename_and_charpos): Remove fullname
7830 parameter.
7831 (identify_source_line): Update call to get_filename_and_charpos.
7832
7833 2019-06-14 Tom Tromey <tromey@adacore.com>
7834
7835 PR gdb/24502:
7836 * ui-style.h (skip_ansi_escape): Update comment.
7837 * ui-file.h (class no_terminal_escape_file): New class.
7838 * ui-file.c (no_terminal_escape_file::write)
7839 (no_terminal_escape_file::puts): New methods.
7840 * cli/cli-logging.c (handle_redirections): Use
7841 no_terminal_escape_file.
7842
7843 2019-06-14 Tom Tromey <tromey@adacore.com>
7844
7845 * NEWS: Move convenience variable news above Python news.
7846
7847 2019-06-14 Tom Tromey <tom@tromey.com>
7848
7849 * gnulib: Move directory to top-level.
7850 * configure.ac: Don't configure gnulib.
7851 * configure: Rebuild.
7852 * common/common-defs.h: Use new path to gnulib.
7853 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
7854 (GNULIB_H): Remove.
7855 (INCGNU): Look in new gnulib location.
7856 (HFILES_NO_SRCDIR): Remove gnulib files.
7857 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
7858 (generated_files): Remove GNULIB_H.
7859 ($(LIBGNU), all-lib): Remove targets.
7860 (distclean): Don't mention GNULIB_BUILDDIR.
7861 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
7862
7863 2019-06-14 Tom Tromey <tromey@adacore.com>
7864
7865 * symfile.c (add_symbol_file_command): Remove obsolete comment.
7866 Warn if symbol file does not provide any symbols.
7867
7868 2019-06-14 Tom Tromey <tromey@adacore.com>
7869
7870 * source.c (find_and_open_source): Respect basenames_may_differ.
7871
7872 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
7873
7874 * annotate.c (annotate_breakpoints_invalid): Make use of
7875 scoped_restore_terminal_state.
7876 (annotate_frames_invalid): Likewise.
7877
7878 2019-06-14 Tom Tromey <tromey@adacore.com>
7879
7880 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
7881 allow assignment to an internalvar.
7882
7883 2019-06-14 Tom Tromey <tromey@adacore.com>
7884
7885 * ada-lex.l: Allow "_" in attribute names.
7886
7887 2019-06-14 Tom Tromey <tromey@adacore.com>
7888
7889 PR gdb/24653:
7890 * regcache.c (registers_changed): Don't call alloca.
7891 * top.c (execute_command): Don't call alloca.
7892
7893 2019-06-13 Pedro Alves <palves@redhat.com>
7894
7895 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
7896 'expression'. When parsing an expression, error out if there's
7897 junk after "unlimited".
7898 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7899 (do_set_command): Adjust calls to is_unlimited_literal.
7900
7901 2019-06-13 Pedro Alves <palves@redhat.com>
7902
7903 * compile/compile.c (make_compile_options_def_group): Add braces
7904 around array_view initializer.
7905 * thread.c (make_thread_apply_all_options_def_group)
7906 (make_thread_apply_all_options_def_group): Likewise.
7907
7908 2019-06-13 Pedro Alves <palves@redhat.com>
7909
7910 * NEWS (New commands): Mention "maint test-options
7911 require-delimiter", "maint test-options unknown-is-error", "maint
7912 test-options unknown-is-operand" and "maint show
7913 test-options-completion-result".
7914 (New command options, command completion): New section.
7915 (Completion improvements): New section.
7916 Mention that you can abbreviate "unlimited".
7917
7918 2019-06-13 Pedro Alves <palves@redhat.com>
7919
7920 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7921 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7922 * unittests/cli-utils-selftests.c (test_parse_flags)
7923 (test_parse_flags_qcs): Delete.
7924 (test_cli_utils): Don't call deleted functions.
7925
7926 2019-06-13 Pedro Alves <palves@redhat.com>
7927
7928 * thread.c: Include "cli/cli-option.h".
7929 (tp_array_compar_ascending): Global.
7930 (tp_array_compar): Delete function.
7931 (tp_array_compar_ascending, tp_array_compar_descending): New
7932 functions.
7933 (ascending_option_def, qcs_flag_option_def)
7934 (thr_qcs_flags_option_defs)
7935 (make_thread_apply_all_options_def_group)
7936 (make_thread_apply_options_def_group): New.
7937 (thread_apply_all_command): Use gdb::option::process_options.
7938 (thread_apply_command_completer)
7939 (thread_apply_all_command_completer): New.
7940 (thread_apply_command): Use gdb::option::process_options.
7941 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
7942 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
7943 to generate help text of "thread apply". Adjust "taas"'s help.
7944 * tid-parse.c (tid_range_parser::in_thread_range): New method.
7945 * tid-parse.h (tid_range_parser::in_thread_range): New method.
7946
7947 2019-06-13 Pedro Alves <palves@redhat.com>
7948
7949 * thread.c (thread_apply_command): Check for invalid TID with
7950 isdigit instead of !isalpha.
7951
7952 2019-06-13 Pedro Alves <palves@redhat.com>
7953
7954 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
7955 (validate_flags_qcs): New.
7956 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
7957 (validate_flags_qcs): Declare.
7958 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
7959 (make_frame_apply_options_def_group): New.
7960 (frame_apply_command_count): Process options with
7961 gdb::option::process_options.
7962 (frame_apply_completer): New.
7963 (frame_apply_level_completer, frame_apply_all_completer)
7964 (frame_apply_completer): New.
7965 (_initialize_stack): Update help of "frame apply", "frame apply
7966 level", "frame apply all" and "faas" to mention supported options
7967 and install command completers.
7968 * stack.h (frame_apply_all_completer): Declare.
7969 * thread.c: Include "stack.h".
7970 (tfaas_command): Add "--".
7971 (_initialize_thread): Update help "tfaas" to mention supported
7972 options and install command completer.
7973
7974 2019-06-13 Pedro Alves <palves@redhat.com>
7975
7976 * completer.c (complete_nested_command_line): New.
7977 (gdb_completion_word_break_characters_throw): Add assertion.
7978 * completer.h (complete_nested_command_line): Declare.
7979
7980 2019-06-13 Pedro Alves <palves@redhat.com>
7981
7982 * stack.c (parse_backtrace_qualifiers): New.
7983 (backtrace_command): Use it.
7984 (backtrace_command_completer): Complete on qualifiers.
7985
7986 2019-06-13 Pedro Alves <palves@redhat.com>
7987
7988 * frame.c: Include "cli/cli-option.h.
7989 (user_set_backtrace_options): New.
7990 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
7991 Delete.
7992 (get_prev_frame): Adjust.
7993 (boolean_option_def, uinteger_option_def)
7994 (set_backtrace_option_defs): New.
7995 (_initialize_frame): Adjust and use
7996 gdb::option::add_setshow_cmds_for_options to install "set
7997 backtrace past-main" and "set backtrace past-entry".
7998 * frame.h: Include "cli/cli-option.h".
7999 (struct frame_print_options): Forward declare.
8000 (print_frame_arguments_all, print_frame_arguments_scalars)
8001 (print_frame_arguments_none): Declare.
8002 (print_entry_values): Delete declaration.
8003 (struct frame_print_options, user_frame_print_options): New.
8004 (struct set_backtrace_options): New.
8005 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8006 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8007 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8008 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8009 (list_args_or_locals): Add frame_print_options parameter.
8010 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8011 * python/py-framefilter.c (enumerate_args): Pass down
8012 USER_FRAME_PRINT_OPTIONS.
8013 * stack.c: Include "cli/cli-option.h".
8014 (print_frame_arguments_all, print_frame_arguments_scalars)
8015 (print_frame_arguments_none): Declare.
8016 (print_raw_frame_arguments, print_entry_values): Delete.
8017 (user_frame_print_options): New.
8018 (boolean_option_def, enum_option_def, frame_print_option_defs):
8019 New.
8020 (struct backtrace_cmd_options): New.
8021 (bt_flag_option_def): New.
8022 (backtrace_command_option_defs): New.
8023 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8024 (print_frame_arg, read_frame_arg, print_frame_args)
8025 (print_frame_info, print_frame): Add frame_print_options parameter
8026 and use it.
8027 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8028 (backtrace_command_1): Add frame_print_options and
8029 backtrace_cmd_options parameters and use them.
8030 (make_backtrace_options_def_group): New.
8031 (backtrace_command): Process command options with
8032 gdb::option::process_options.
8033 (backtrace_command_completer): New.
8034 (_initialize_stack): Extend "backtrace"'s help to mention
8035 supported options. Install completer for "backtrace".
8036 Install some settings commands with add_setshow_cmds_for_options.
8037
8038 2019-06-13 Pedro Alves <palves@redhat.com>
8039
8040 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8041 and that "set/show print raw frame-arguments" are now deprecated.
8042
8043 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8044 command.
8045 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8046 * stack.c (_initialize_stack): Install "set/show print
8047 raw-frame-arguments", and deprecate "set/show print raw
8048 frame-arguments".
8049 * valprint.c (_initialize_valprint): Deprecate "set/show print
8050 raw".
8051
8052 2019-06-13 Pedro Alves <palves@redhat.com>
8053
8054 * compile/compile.c (struct compile_options): New.
8055 (compile_flag_option_def, compile_command_option_defs)
8056 (make_compile_options_def_group): New.
8057 (compile_file_command): Handle options with
8058 gdb::option::process_options.
8059 (compile_file_command_completer): New function.
8060 (compile_code_command): Handle options with
8061 gdb::option::process_options.
8062 (compile_code_command_completer): New function.
8063 (_initialize_compiler): Install completers for "compile code" and
8064 "compile file". Mention available options in "compile code" and
8065 "compile code"'s help.
8066 * completer.c (advance_to_completion_word): New, factored out from
8067 ...
8068 (advance_to_expression_complete_word_point): ... this.
8069 (advance_to_filename_complete_word_point): New.
8070 * completer.h (advance_to_filename_complete_word_point): New
8071 declaration.
8072
8073 2019-06-13 Pedro Alves <palves@redhat.com>
8074
8075 * compile/compile.c: Include "cli/cli-option.h".
8076 (compile_print_value): Scope data pointer is now a
8077 value_print_options pointer; adjust.
8078 (compile_print_command): Process options. Scope data pointer is
8079 now a value_print_options pointer; adjust.
8080 (_initialize_compile): Update "compile print"'s help to include
8081 supported options. Install a completer for "compile print".
8082 * cp-valprint.c (show_vtblprint, show_objectprint)
8083 (show_static_field_print): Delete.
8084 (_initialize_cp_valprint): Don't install "set print
8085 static-members", "set print vtbl", "set print object" here.
8086 * printcmd.c: Include "cli/cli-option.h" and
8087 "common/gdb_optional.h".
8088 (print_command_parse_format): Rework to fill in a
8089 value_print_options instead of a format_data.
8090 (print_value): Change parameter type from format_data pointer to
8091 value_print_options reference. Adjust.
8092 (print_command_1): Process options. Adjust to pass down a
8093 value_print_options.
8094 (print_command_completer): New.
8095 (_initialize_printcmd): Install print_command_completer as
8096 handle_brkchars completer for the "print" command. Update
8097 "print"'s help to include supported options.
8098 * valprint.c: Include "cli/cli-option.h".
8099 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8100 here from cp-valprint.c.
8101 (boolean_option_def, uinteger_option_def)
8102 (value_print_option_defs, make_value_print_options_def_group):
8103 New. Use gdb::option::add_setshow_cmds_for_options to install
8104 "set print elements", "set print null-stop", "set print repeats",
8105 "set print pretty", "set print union", "set print array", "set
8106 print address", "set print symbol", "set print array-indexes".
8107 * valprint.h: Include <string> and "cli/cli-option.h".
8108 (make_value_print_options_def_group): Declare.
8109 (print_value): Change parameter type from format_data pointer to
8110 value_print_options reference.
8111 (print_command_completer): Declare.
8112
8113 2019-06-13 Pedro Alves <palves@redhat.com>
8114
8115 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8116 (COMMON_SFILES): Add maint-test-settings.c.
8117 * cli/cli-decode.c (boolean_enums): New global, factored out from
8118 ...
8119 (add_setshow_boolean_cmd): ... here.
8120 * cli/cli-decode.h (boolean_enums): Declare.
8121 * cli/cli-option.c: New file.
8122 * cli/cli-option.h: New file.
8123 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8124 factored out from ...
8125 (parse_cli_boolean_value(const char *)): ... this.
8126 (is_unlimited_literal): Change parameter type to pointer to
8127 pointer. Adjust and advance ARG pointer.
8128 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8129 (parse_cli_var_enum): New, factored out from ...
8130 (do_set_command): ... this. Adjust.
8131 * cli/cli-setshow.h (parse_cli_boolean_value)
8132 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8133 (parse_cli_var_enum): Declare.
8134 * cli/cli-utils.c: Include "cli/cli-option.h".
8135 (get_ulongest): New.
8136 * cli/cli-utils.h (get_ulongest): Declare.
8137 (check_for_argument): New overloads.
8138 * maint-test-options.c: New file.
8139
8140 2019-06-13 Pedro Alves <palves@redhat.com>
8141
8142 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8143 parse a range if "-" is at the end of the string.
8144
8145 2019-06-13 Pedro Alves <palves@redhat.com>
8146
8147 * cli/cli-setshow.c (parse_auto_binary_operation)
8148 (parse_cli_boolean_value): Don't allow "o".
8149
8150 2019-06-13 Pedro Alves <palves@redhat.com>
8151
8152 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8153 * NEWS: Mention maint test-settings KIND.
8154 * maint-test-settings.c: New file.
8155
8156 2019-06-13 Pedro Alves <palves@redhat.com>
8157
8158 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8159 completer.
8160 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8161 "set" completers.
8162
8163 2019-06-13 Pedro Alves <palves@redhat.com>
8164
8165 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8166 after item.
8167
8168 2019-06-13 Pedro Alves <palves@redhat.com>
8169
8170 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8171
8172 2019-06-13 Pedro Alves <palves@redhat.com>
8173
8174 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8175 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8176 call.
8177 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8178 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8179 calls.
8180 (check_for_argument): Skip spaces after argument.
8181
8182 2019-06-13 Pedro Alves <palves@redhat.com>
8183
8184 * thread.c (thread_apply_command): Adjust TID parsing.
8185 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8186 detected before end of string.
8187 (tid_is_in_list): Error out if LIST is invalid.
8188
8189 2019-06-13 Pedro Alves <palves@redhat.com>
8190
8191 * completer.c (complete_line_internal_1): Rewind completion word
8192 point.
8193 (completion_tracker::advance_custom_word_point_by): Change
8194 parameter type to int.
8195 * completer.h (completion_tracker::advance_custom_word_point_by):
8196 Likewise.
8197
8198 2019-06-13 Pedro Alves <palves@redhat.com>
8199
8200 * completer.c (advance_to_completion_word): Handle delimiters.
8201
8202 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8203
8204 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8205
8206 2019-06-11 Tom Tromey <tom@tromey.com>
8207
8208 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8209 (xmalloc_failed): Move to alloc.c.
8210 * alloc.c: New file.
8211 * Makefile.in (COMMON_SFILES): Add alloc.c.
8212
8213 2019-06-11 Tom Tromey <tom@tromey.com>
8214
8215 * nat/linux-waitpid.c: Don't include server.h.
8216 (linux_debug): Remove.
8217 (my_waitpid): Update.
8218
8219 2019-06-11 Tom Tromey <tromey@adacore.com>
8220
8221 * infcall.c (_initialize_infcall): Remove trailing newline from
8222 help.
8223 * user-regs.c (_initialize_user_regs): Remove trailing newline
8224 from help.
8225 * typeprint.c (_initialize_typeprint): Remove trailing newline
8226 from help.
8227 * reverse.c (_initialize_reverse): Remove trailing newlines from
8228 help.
8229 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8230 from help.
8231 * language.c (add_set_language_command): Remove trailing newline
8232 from help.
8233 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8234 help.
8235 * disasm.c (_initialize_disasm): Remove trailing newline from
8236 help.
8237 * top.c (init_main): Remove trailing newline from help.
8238 * interps.c (_initialize_interpreter): Remove trailing newline
8239 from help.
8240 * btrace.c (_initialize_btrace): Remove trailing newlines from
8241 help.
8242 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8243 from help.
8244 * python/python.c (_initialize_python): Remove trailing newline
8245 from help.
8246 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8247 help.
8248 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8249 from help. Reformat some text.
8250 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8251 from help.
8252 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8253 newline from help.
8254
8255 2019-06-11 Tom Tromey <tromey@adacore.com>
8256
8257 * darwin-nat.c (darwin_decode_exception_message)
8258 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8259
8260 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8261
8262 * valops.c (value_slice): Check for not allocated or not
8263 associated values.
8264
8265 2019-06-10 Tom de Vries <tdevries@suse.de>
8266
8267 PR gdb/24618
8268 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8269 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8270 invalid.
8271
8272 2019-06-10 Tom de Vries <tdevries@suse.de>
8273
8274 PR gdb/24611
8275 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8276 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8277
8278 2019-06-10 Tom de Vries <tdevries@suse.de>
8279
8280 PR symtab/24545
8281 * symtab.c (struct demangled_name_entry): Add language field.
8282 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8283 static minimal symbol". Set and use language field.
8284
8285 2019-06-10 Tom Tromey <tromey@adacore.com>
8286
8287 * ada-lang.c (_initialize_ada_language): Update help text.
8288
8289 2019-06-10 Tom Tromey <tromey@adacore.com>
8290
8291 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8292 with a newline.
8293 * guile/guile.c (handle_boot_error): Don't end warning with a
8294 newline.
8295 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8296 warning with a newline.
8297 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8298 newline.
8299 (s12z_frame_cache): Likewise.
8300 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8301 a newline.
8302 * solib-svr4.c (disable_probes_interface): Don't end warning with
8303 a newline.
8304 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8305 newline.
8306 * python/python.c (do_finish_initialization): Don't end warning
8307 with a newline.
8308
8309 2019-06-10 Tom Tromey <tom@tromey.com>
8310
8311 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8312 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8313 gdbpy_enter.
8314
8315 2019-06-10 Tom Tromey <tromey@adacore.com>
8316
8317 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8318 data.
8319 (elf_new_init): Don't call stabsread_new_init.
8320 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8321 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8322 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8323
8324 2019-06-10 Tom de Vries <tdevries@suse.de>
8325
8326 PR symtab/16264
8327 PR symtab/24517
8328 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8329
8330 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8331
8332 * source.c (find_and_open_source): Also rewrite relative file
8333 names.
8334
8335 2019-04-26 Amos Bird <amosbird@gmail.com>
8336
8337 * annotate.c (annotate_thread_exited): Add "thread-exited"
8338 annotation.
8339
8340 2019-06-06 Tom Tromey <tromey@adacore.com>
8341
8342 * maint.h (class scoped_command_stats): Use
8343 DISABLE_COPY_AND_ASSIGN.
8344 <print_time>: New method.
8345 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8346 print_time.
8347 (scoped_command_stats::print_time): New method.
8348
8349 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8350
8351 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8352 instructions of lengths 6 or 8 bytes.
8353
8354 2019-06-04 Pedro Alves <palves@redhat.com>
8355
8356 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8357
8358 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8359 * breakpoint.c (condition_completer): Likewise.
8360 * cli/cli-dump.c (scan_expression): Likewise.
8361 * common/filestuff.c (mkdir_recursive): Likewise.
8362 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8363 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8364 (gdb_abspath): Likewise.
8365 * compile/compile-cplus-types.c
8366 (compile_cplus_instance::decl_name): Likewise.
8367 * completer.c (complete_explicit_location):
8368 (signal_completer, reg_or_group_completer_1): Likewise.
8369 * cp-support.c (cp_remove_params_if_any): Likewise.
8370 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8371 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8372 * infcmd.c (strip_bg_char): Likewise.
8373 * linespec.c (copy_token_string): Likewise.
8374 * mi/mi-main.c (output_cores): Likewise.
8375 * psymtab.c (psymtab_search_name):
8376 * symfile.c (test_set_ext_lang_command): Likewise.
8377 * target.c (target_fileio_read_stralloc): Likewise.
8378 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8379 * value.c (complete_internalvar): Likewise.
8380
8381 2019-06-04 Christian Biesinger <cbiesinger@google.com>
8382
8383 Add objfile property to gdb.Type.
8384 * NEWS: Mention Python API addition.
8385 * python/py-type.c (typy_get_objfile): New method.
8386
8387 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8388
8389 * NEWS: Mention the new set|show style [title|highlight].
8390 Mention changes to "show style", "help" and "apropos".
8391
8392 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8393
8394 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8395 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8396 instead of print_help_for_command.
8397 (print_doc_of_command): New function.
8398 (help_list): Add 'apropos -v word' suggestion.
8399 (print_help_for_command): Style the command name using title style.
8400 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8401 (_initialize_cli_cmds): Describe -v in apropos_command help.
8402
8403 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8404
8405 * cli/cli-style.h (cli_style_option): Add name in constructor,
8406 add m_name class member, add constructor with intensity,
8407 add name class function.
8408 (cli_style_option::add_setshow_commands): Remove name argument.
8409 (highlight_style, title_style): New styles.
8410 * cli/cli-style.c (do_show): New function that shows a style
8411 characteristic styling the style name with itself.
8412 (set_style_name): New function.
8413 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8414 Update all callers according to the changes in cli/cli-style.h.
8415 * utils.h (fputs_highlighted): New function.
8416 * utils.c (fputs_highlighted): Likewise.
8417
8418 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8419
8420 * NEWS: Mention new pipe command and new convenience variables.
8421
8422 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8423
8424 * cli/cli-cmds.c (pipe_command): New function.
8425 (_initialize_cli_cmds): Call add_com for pipe_command.
8426 Define | as an alias for pipe.
8427 (exit_status_set_internal_vars): New function.
8428 (shell_escape): Call exit_status_set_internal_vars.
8429 cli/cli-decode.c (find_command_name_length): Recognize | as
8430 a single character command.
8431
8432 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8433
8434 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8435 top.c (execute_command_to_ui_file): New function, mostly a copy
8436 of execute_command_to_string.
8437 (execute_command_to_string): Implement by calling
8438 execute_command_to_ui_file.
8439
8440 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8441
8442 * top.h (saved_command_line): Remove declaration.
8443 * top.c (previous_saved_command_line, previous_repeat_arguments):
8444 New variables.
8445 (saved_command_line): Make static, define together with other
8446 'repeat variables'.
8447 (dont_repeat): Clear repeat_arguments.
8448 (repeat_previous, get_saved_command_line, save_command_line):
8449 New functions.
8450 (gdb_init): Initialize saved_command_line
8451 and previous_saved_command_line.
8452 * main.c (captured_main_1): Remove saved_command_line initialization.
8453 * event-top.c (handle_line_of_input): Update to use
8454 the new 'repeat' related functions instead of direct access to
8455 saved_command_line.
8456 * command.h (repeat_previous, get_saved_command_line,
8457 save_command_line): New declarations.
8458 (dont_repeat): Add comment.
8459
8460 2019-05-30 Tom Tromey <tromey@adacore.com>
8461
8462 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8463 Fix comment.
8464 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8465
8466 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8467
8468 PR cli/24587
8469 * completer.c (complete): Initialize variable word.
8470
8471 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8472
8473 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8474 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8475 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8476 'body' is NULL to the outter 'if', protecting the '!is_define'
8477 situation as well.
8478
8479 2019-05-29 Tom Tromey <tromey@adacore.com>
8480
8481 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8482 (dwarf_unknown): New function.
8483 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8484 (dwarf_type_encoding_name): Use dwarf_unknown.
8485
8486 2019-05-29 Tom Tromey <tromey@adacore.com>
8487
8488 PR c++/20020:
8489 * cp-valprint.c (cp_print_value_fields): Call
8490 cp_print_static_field inside "try".
8491
8492 2019-05-29 Tom Tromey <tromey@adacore.com>
8493
8494 * inflow.c (struct terminal_info): Add default operator=.
8495 * configure: Rebuild.
8496 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8497 -Wdeprecated-copy-dtor, -Wredundant-move.
8498
8499 2019-05-29 Tom Tromey <tromey@adacore.com>
8500
8501 * NEWS: Add entry.
8502 * infcmd.c (print_return_value_1): Handle finish_print
8503 option.
8504 (show_print_finish): New function.
8505 (_initialize_infcmd): Add "set/show print finish" commands.
8506 * valprint.c (user_print_options): Initialize new member.
8507 * valprint.h (struct value_print_options) <finish_print>: New
8508 member.
8509
8510 2019-05-28 Tom Tromey <tromey@adacore.com>
8511
8512 * ada-lang.c (ada_remove_Xbn_suffix)
8513 (find_old_style_renaming_symbol)
8514 (parse_old_style_renaming): Remove.
8515 (ada_find_renaming_symbol): Don't call
8516 find_old_style_renaming_symbol.
8517 (ada_is_renaming_symbol): Rename from
8518 ada_find_renaming_symbol. Remove "block" parameter. Return
8519 bool. Now static.
8520 (ada_read_var_value): Update and simplify.
8521 * ada-exp.y (write_var_or_type): Remove old code.
8522
8523 2019-05-28 Alan Hayward <alan.hayward@arm.com>
8524
8525 PR gdb/25010
8526 * event-top.c: Remove include comment.
8527 * inflow.c (class scoped_ignore_sigttou): Move from here...
8528 * inflow.h (class scoped_ignore_sigttou): ...to here.
8529 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8530 * top.c: Remove include comment.
8531
8532 2019-05-27 Tom Tromey <tom@tromey.com>
8533
8534 * NEWS: Fix typo.
8535
8536 2019-05-22 Tom Tromey <tromey@adacore.com>
8537
8538 * target.c (target_follow_exec): Constify parameter.
8539 * target-delegates.c: Rebuild.
8540 * remote.c (remote_target::follow_exec): Constify parameter.
8541 * infrun.c (follow_exec): Constify parameter.
8542 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8543 (target_follow_exec): Likewise.
8544
8545 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8546
8547 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8548 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8549
8550 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8551
8552 * NEWS: Add debugredirect and testsuite sections.
8553
8554 2019-05-22 Simon Cook <simon.cook@embecosm.com>
8555
8556 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8557 target descriptions using exclusively floating point register name
8558 aliases.
8559
8560 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8561
8562 PR gdb/18644:
8563 * f-lang.c (build_fortran_types): Handle the case where
8564 gdbarch_floatformat_for_type returns a nullptr.
8565
8566 2019-05-21 Tom de Vries <tdevries@suse.de>
8567
8568 PR cli/24587
8569 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8570
8571 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8572
8573 PR gdb/18644:
8574 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8575 16-byte floats.
8576 * i386-tdep.c (i386_floatformat_for_type): Use
8577 floatformats_ia64_quad for the 16-byte floating point component
8578 within a fortran 32-byte complex number.
8579
8580 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8581
8582 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8583 delete default constructor.
8584 (find_partial_die): Update to return const struct.
8585 (partial_die_parent_scope): Move variable declaration into scope
8586 of its use and change its type to auto.
8587 (guess_partial_die_structure_name): Likewise.
8588 (partial_die_info::fixup): Likewise.
8589
8590 2019-05-17 Tom Tromey <tromey@adacore.com>
8591
8592 * source.c (find_and_open_source): Remove cast.
8593
8594 2019-05-17 Tom Tromey <tromey@adacore.com>
8595
8596 * annotate.c (annotate_source): Make "filename" const.
8597 * annotate.h (annotate_source): Use const.
8598
8599 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8600
8601 * disasm.c (set_disassembler_options): Send errors to stderr.
8602
8603 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8604
8605 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8606 (cli_interp_base::set_logging): Check debug_redirect.
8607 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8608 * cli/cli-logging.c (debug_redirect): Add static variable.
8609 (pop_output_files): Add default param.
8610 (handle_redirections): Print debug setting.
8611 (show_logging_command): Likewise.
8612 (_initialize_cli_logging): Add debugredirect command.
8613 * interps.c (current_interp_set_logging): Add debug_redirect
8614 parameter.
8615 * interps.h (set_logging): Add debug_redirect parameter.
8616 (current_interp_set_logging): Likewise.
8617 * mi/mi-common.h: Likewise.
8618 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8619
8620 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8621 Tom Tromey <tromey@adacore.com>
8622
8623 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8624 directly.
8625 * cli/cli-interp.h (make_logging_output): Remove declaration.
8626 * cli/cli-logging.c (make_logging_output): Remove function.
8627 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8628 directly.
8629 * ui-file.c (tee_file::tee_file): Remove bools.
8630 (tee_file::~tee_file): Remove deletes.
8631 * ui-file.h (tee_file): Remove bools.
8632
8633 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8634
8635 * mi/mi-cmds.h (mi_cmd_complete): New function.
8636 * mi/mi-main.c (mi_cmd_complete): Likewise.
8637 * mi/mi-cmds.c: Define new MI command -complete.
8638 * NEWS: Mention new -complete command.
8639
8640 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8641
8642 * completer.h (complete): New function.
8643 * completer.c (complete): Likewise.
8644 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8645 function defined in completer.h.
8646
8647 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8648
8649 * MAINTAINERS (Write After Approval): Add myself.
8650
8651 2019-05-17 Tom de Vries <tdevries@suse.de>
8652
8653 PR gdb/24094
8654 * dwarf2read.c (struct cu_partial_die_info): New struct.
8655 (find_partial_die): Return cu_partial_die_info.
8656 (partial_die_parent_scope, guess_partial_die_structure_name)
8657 (partial_die_info::fixup): Handle new return type of find_partial_die.
8658
8659 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8660
8661 PR breakpoints/24541
8662 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8663 "std::string", simplifying the algorithm.
8664
8665 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8666
8667 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8668 (stap_static_probe_ops::get_probes): Likewise.
8669
8670 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8671
8672 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8673 '-')" and "else if".
8674 (stap_parse_single_operand): Join checks for
8675 "gdbarch_stap_parse_special_token_p" and
8676 "gdbarch_stap_parse_special_token" in the same "if" statement.
8677 Invert check when verifying for operation on register
8678 displacement.
8679
8680 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8681
8682 * stap-probe.c (stap_get_opcode): Update comment.
8683 (stap_get_expected_argument_type): Likewise.
8684 (handle_stap_probe): Likewise.
8685
8686 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8687
8688 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8689 return type to 'bool'. Adjust comment. Use 'bool' when
8690 appropriate.
8691 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8692 * stap-probe.c (stap_parse_argument_1): Likewise.
8693 (stap_is_operator): Likewise.
8694 (stap_is_generic_prefix): Likewise.
8695 (stap_is_register_prefix): Likewise.
8696 (stap_is_register_indirection_prefix): Likewise.
8697 (stap_is_integer_prefix): Likewise.
8698 (stap_generic_check_suffix): Likewise.
8699 (stap_check_integer_suffix): Likewise.
8700 (stap_check_register_suffix): Likewise.
8701 (stap_check_register_indirection_suffix): Likewise.
8702 (stap_parse_register_operand): Likewise.
8703 (stap_parse_single_operand): Likewise.
8704 (stap_parse_argument_1): Likewise.
8705 (stap_probe::get_argument_count): Likewise.
8706 (stap_is_operator): Likewise.
8707
8708 2019-05-16 Tom Tromey <tromey@adacore.com>
8709
8710 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8711 keyword to foreach.
8712
8713 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
8714
8715 * linux-thread-db.c (try_thread_db_load_1): Change return type
8716 to bool.
8717 (try_thread_db_load): Likewise.
8718 (try_thread_db_load_from_pdir_1): Likewise.
8719 (try_thread_db_load_from_pdir): Likewise.
8720 (try_thread_db_load_from_sdir): Likewise.
8721 (try_thread_db_load_from_dir): Likewise.
8722 (thread_db_load_search): Likewise.
8723 (has_libpthread): Likewise.
8724 (thread_db_load): Likewise.
8725
8726 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8727
8728 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8729 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8730 NULL, and complain/return if that's the case.
8731
8732 2019-05-15 John Darrington <john@darrington.wattle.id.au>
8733
8734 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8735 (advance, posn, abstract_read_memory): New functions.
8736 [struct mem_read_abstraction]: New struct.
8737 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8738
8739 2019-05-14 Tom Tromey <tromey@adacore.com>
8740
8741 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8742 value is not lval_memory.
8743
8744 2019-05-14 Tom Tromey <tromey@adacore.com>
8745
8746 * solib.c (info_sharedlibrary_command): Style the file name.
8747
8748 2019-05-14 Alan Hayward <alan.hayward@arm.com>
8749
8750 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8751 (aarch64_vnv_type): Likewise.
8752 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8753 * common/tdesc.c: Likewise.
8754 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8755 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8756 * features/aarch64-fpu.xml: Add ieee half view.
8757 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8758 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8759 * gdbtypes.h (struct builtin_type): Likewise.
8760 (struct objfile_type): Likewise.
8761
8762 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
8763
8764 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8765 typo.
8766 * location.h (string_to_event_location): Likewise.
8767
8768 2019-05-11 Joel Brobecker <brobecker@adacore.com>
8769
8770 GDB 8.3 released.
8771
8772 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8773
8774 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8775 New variable declaration.
8776 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8777 New variable.
8778 (print_one_breakpoint): Use ui_out::test_flags and new global
8779 variable to compute use_fixed_output.
8780 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8781 Remove.
8782 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8783 (mi_multi_location_breakpoint_output_fixed): Remove.
8784 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8785 new variable.
8786 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8787 fix_multi_location_breakpoint_output flag if version >= 3.
8788 * ui-out.h (enum ui_out_flag)
8789 <fix_multi_location_breakpoint_output>: New enumerator.
8790
8791 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8792
8793 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8794
8795 2019-05-10 Tom Tromey <tromey@adacore.com>
8796
8797 * ada-lang.c (catch_ada_completer): New function.
8798 (_initialize_ada_language): Use it.
8799
8800 2019-05-10 Tom Tromey <tromey@adacore.com>
8801
8802 * thread.c (print_thread_info): Make "requested_threads" const.
8803 * gdbthread.h (print_thread_info): Make "requested_threads"
8804 const.
8805 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8806 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8807
8808 2019-05-08 Tom Tromey <tom@tromey.com>
8809
8810 * gdbtypes.c (objfile_type_data): Change type.
8811 (objfile_type, _initialize_gdbtypes): Update.
8812
8813 2019-05-08 Tom Tromey <tom@tromey.com>
8814
8815 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8816 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8817 (_initialize_dwarf2_frame): Update.
8818
8819 2019-05-08 Tom Tromey <tom@tromey.com>
8820
8821 * objc-lang.c (objc_objfile_data): Change type.
8822 (find_methods): Update.
8823 (_initialize_objc_lang): Remove.
8824
8825 2019-05-08 Tom Tromey <tom@tromey.com>
8826
8827 * stabsread.c (rs6000_builtin_type_data): Change type.
8828 (rs6000_builtin_type, _initialize_stabsread): Update.
8829
8830 2019-05-08 Tom Tromey <tom@tromey.com>
8831
8832 * mips-tdep.c (mips_pdr_data): Remove.
8833 (_initialize_mips_tdep): Update.
8834
8835 2019-05-08 Tom Tromey <tom@tromey.com>
8836
8837 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
8838 (hppa_init_objfile_priv_data, read_unwind_info)
8839 (find_unwind_entry, _initialize_hppa_tdep): Update.
8840
8841 2019-05-08 Tom Tromey <tom@tromey.com>
8842
8843 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
8844 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
8845 on obstack.
8846 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
8847
8848 2019-05-08 Tom Tromey <tom@tromey.com>
8849
8850 * mdebugread.c (basic_type_data): Change type.
8851 (basic_type, _initialize_mdebugread): Update.
8852
8853 2019-05-08 Tom Tromey <tom@tromey.com>
8854
8855 * common/gdb_unique_ptr.h (struct noop_deleter): New.
8856
8857 2019-05-08 Tom Tromey <tom@tromey.com>
8858
8859 * nto-tdep.c (nto_inferior_data_reg): Change type.
8860 (nto_inferior_data): Update.
8861 (nto_inferior_data_cleanup, nto_new_inferior_data)
8862 (_initialize_nto_tdep): Remove.
8863 * nto-tdep.h (struct nto_inferior_data): Add initializers.
8864
8865 2019-05-08 Tom Tromey <tom@tromey.com>
8866
8867 * ada-lang.c (struct ada_inferior_data): Add initializers.
8868 (ada_inferior_data): Change type.
8869 (ada_inferior_data_cleanup): Remove.
8870 (get_ada_inferior_data, ada_inferior_exit)
8871 (struct ada_pspace_data): Add initializers, destructor.
8872 (ada_pspace_data_handle): Change type.
8873 (get_ada_pspace_data): Update.
8874 (ada_pspace_data_cleanup): Remove.
8875
8876 2019-05-08 Tom Tromey <tom@tromey.com>
8877
8878 * coffread.c (struct coff_symfile_info): Add initializers.
8879 (coff_objfile_data_key): Move lower. Change type.
8880 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
8881 Update.
8882 (coff_free_info): Remove.
8883
8884 2019-05-08 Tom Tromey <tom@tromey.com>
8885
8886 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
8887 (fbsd_pspace_data_handle): Move lower. Change type.
8888 (get_fbsd_pspace_data): Update.
8889 (fbsd_pspace_data_cleanup): Remove.
8890 (_initialize_fbsd_tdep): Update.
8891
8892 2019-05-08 Tom Tromey <tom@tromey.com>
8893
8894 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
8895 (get_ada_tasks_pspace_data): Update.
8896 (ada_tasks_pspace_data_cleanup): Remove.
8897 (_initialize_tasks): Update.
8898 (ada_tasks_inferior_data_handle): Change type.
8899 (get_ada_tasks_inferior_data): Update.
8900 (ada_tasks_inferior_data_cleanup): Remove.
8901 (struct ada_tasks_pspace_data): Add initializers.
8902
8903 2019-05-08 Tom Tromey <tom@tromey.com>
8904
8905 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
8906 * symfile-debug.c (debug_sym_get_probes): Change type.
8907 * stap-probe.c (handle_stap_probe):
8908 (stap_static_probe_ops::get_probes): Change type.
8909 * probe.h (class static_probe_ops) <get_probes>: Change type.
8910 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
8911 (parse_probes_in_pspace): Update.
8912 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
8913 Update.
8914 (any_static_probe_ops::get_probes): Change type.
8915 * elfread.c (elfread_data): New typedef.
8916 (probe_key): Change type.
8917 (elf_get_probes): Likewise. Update.
8918 (probe_key_free): Remove.
8919 (_initialize_elfread): Update.
8920 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8921 Change type.
8922 (dtrace_process_dof_probe, dtrace_process_dof)
8923 (dtrace_static_probe_ops::get_probe): Change type.
8924
8925 2019-05-08 Tom Tromey <tom@tromey.com>
8926
8927 * xcoffread.c (struct xcoff_symfile_info): Rename from
8928 coff_symfile_info. Add initializers.
8929 (xcoff_objfile_data_key): Move lower. Change type.
8930 (XCOFF_DATA): Rewrite.
8931 (xcoff_free_info): Remove.
8932 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
8933 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
8934 (xcoff_initial_scan): Update.
8935
8936 2019-05-08 Tom Tromey <tom@tromey.com>
8937
8938 * solib-svr4.c (struct svr4_info): Add initializers and
8939 destructor.
8940 <probes_table>: Now an htab_up.
8941 (solib_svr4_pspace_data): Change type.
8942 (free_probes_table): Simplify.
8943 (~svr4_info): Rename from svr4_pspace_data_cleanup.
8944 (get_svr4_info, probes_table_htab_remove_objfile_probes)
8945 (probes_table_remove_objfile_probes, register_solib_event_probe)
8946 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
8947 (_initialize_svr4_solib): Update.
8948
8949 2019-05-08 Tom Tromey <tom@tromey.com>
8950
8951 * remote.c (remote_pspace_data): Change type.
8952 (remote_pspace_data_cleanup): Remove.
8953 (get_remote_exec_file, set_pspace_remote_exec_file)
8954 (_initialize_remote): Update.
8955
8956 2019-05-08 Tom Tromey <tom@tromey.com>
8957
8958 * breakpoint.c (breakpoint_objfile_key): Change type.
8959 (get_breakpoint_objfile_data): Update.
8960 (free_breakpoint_objfile_data): Remove.
8961 (_initialize_breakpoint): Update.
8962
8963 2019-05-08 Tom Tromey <tom@tromey.com>
8964
8965 * linux-tdep.c (struct linux_info): Add initializers.
8966 (linux_inferior_data): Move. Change type.
8967 (invalidate_linux_cache_inf): Update.
8968 (linux_inferior_data_cleanup): Remove.
8969 (get_linux_inferior_data, _initialize_linux_tdep): Update.
8970
8971 2019-05-08 Tom Tromey <tom@tromey.com>
8972
8973 * auxv.c (auxv_inferior_data): Move. Change type.
8974 (auxv_inferior_data_cleanup): Remove.
8975 (invalidate_auxv_cache_inf): Rewrite.
8976 (get_auxv_inferior_data, _initialize_auxv): Update.
8977
8978 2019-05-08 Tom Tromey <tom@tromey.com>
8979
8980 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
8981 (symfile_debug_objfile_data_key): Change type.
8982 (symfile_debug_installed, debug_qf_has_symbols)
8983 (debug_qf_find_last_source_symtab)
8984 (debug_qf_forget_cached_source_info)
8985 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
8986 (debug_qf_print_stats, debug_qf_dump)
8987 (debug_qf_expand_symtabs_for_function)
8988 (debug_qf_expand_all_symtabs)
8989 (debug_qf_expand_symtabs_with_fullname)
8990 (debug_qf_map_matching_symbols)
8991 (debug_qf_expand_symtabs_matching)
8992 (debug_qf_find_pc_sect_compunit_symtab)
8993 (debug_qf_map_symbol_filenames)
8994 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
8995 (debug_sym_new_init, debug_sym_init, debug_sym_read)
8996 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
8997 (debug_sym_read_linetable, debug_sym_relocate): Update.
8998 (symfile_debug_free_objfile): Remove.
8999 (install_symfile_debug_logging, _initialize_symfile_debug):
9000 Update.
9001
9002 2019-05-08 Tom Tromey <tom@tromey.com>
9003
9004 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9005 allocate_on_obstack.
9006 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9007 (get_dwarf2_per_objfile): Update.
9008 (set_dwarf2_per_objfile): Remove.
9009 (dwarf2_has_info, dwarf2_get_section_info): Update.
9010 (dwarf2_free_objfile): Remove.
9011 (_initialize_dwarf2_read): Update.
9012
9013 2019-05-08 Tom Tromey <tom@tromey.com>
9014
9015 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9016 initializers.
9017 <unsupported_script_warning_printed,
9018 script_not_found_warning_printed>: Now bool.
9019 (auto_load_pspace_data): Change type.
9020 (~auto_load_pspace_info): Rename from
9021 auto_load_pspace_data_cleanup.
9022 (get_auto_load_pspace_data, init_loaded_scripts_info)
9023 (clear_section_scripts, maybe_print_unsupported_script_warning)
9024 (maybe_print_script_not_found_warning, _initialize_auto_load):
9025 Update.
9026
9027 2019-05-08 Tom Tromey <tom@tromey.com>
9028
9029 * objfiles.c (objfile_pspace_info): Add destructor and
9030 initializers.
9031 (objfiles_pspace_data): Change type.
9032 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9033 (get_objfile_pspace_data): Update.
9034 (objfiles_bfd_data): Change type.
9035 (get_objfile_bfd_data): Update.
9036 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9037
9038 2019-05-08 Tom Tromey <tom@tromey.com>
9039
9040 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9041 Change type.
9042 (get_catch_syscall_inferior_data): Update.
9043 (catch_syscall_inferior_data_cleanup): Remove.
9044 (_initialize_break_catch_syscall): Update.
9045
9046 2019-05-08 Tom Tromey <tom@tromey.com>
9047
9048 * inflow.c (struct terminal_info): Add destructor and
9049 initializers.
9050 (inflow_inferior_data): Change type.
9051 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9052 (get_inflow_inferior_data, inflow_inferior_exit)
9053 (swap_terminal_info, _initialize_inflow): Update.
9054
9055 2019-05-08 Tom Tromey <tom@tromey.com>
9056
9057 * target-dcache.c (target_dcache_cleanup): Remove.
9058 (target_dcache_aspace_key): Change type.
9059 (target_dcache_init_p, target_dcache_invalidate)
9060 (target_dcache_get, target_dcache_get_or_init)
9061 (_initialize_target_dcache): Update.
9062 * dcache.h (struct dcache_deleter): New.
9063
9064 2019-05-08 Tom Tromey <tom@tromey.com>
9065
9066 * symtab.c (struct symbol_cache): Add destructor and
9067 initializers.
9068 (symbol_cache_key): Move. Change type.
9069 (make_symbol_cache, free_symbol_cache): Remove.
9070 (get_symbol_cache): Update.
9071 (symbol_cache_cleanup): Remove.
9072 (ALL_PSPACES, symbol_cache_flush)
9073 (maintenance_print_symbol_cache)
9074 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9075 Update.
9076
9077 2019-05-08 Tom Tromey <tom@tromey.com>
9078
9079 * symtab.c (struct main_info): Add destructor and initializers.
9080 (main_progspace_key): Move. Change type.
9081 (get_main_info): Update.
9082 (main_info_cleanup): Remove.
9083 (_initialize_symtab): Update.
9084
9085 2019-05-08 Tom Tromey <tom@tromey.com>
9086
9087 * registry.h (DECLARE_REGISTRY): Define the _key class.
9088
9089 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9090
9091 * NEWS: Merge two 'New commands' sections.
9092
9093 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9094
9095 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9096 parameter and use Ada language definition instead.
9097 (ada_val_print_ptr): Remove unused language parameter.
9098 (ada_val_print_num): Remove language parameter and use Ada language
9099 definition instead.
9100 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9101 parameter.
9102 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9103 parameter and use Ada language definition instead.
9104 (ada_val_print_1): Update all ada_val_print_xxx calls.
9105 Remove language parameter.
9106 (ada_val_print): Update ada_val_print_1 call.
9107
9108 2019-05-08 Tom Tromey <tromey@adacore.com>
9109
9110 * remote.c (remote_hw_watchpoint_limit)
9111 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9112 Now static.
9113
9114 2019-05-08 Tom Tromey <tromey@adacore.com>
9115
9116 * maint.c (_initialize_maint_cmds): Move initialization code to
9117 remote.c.
9118 (watchdog, show_watchdog): Move to remote.c.
9119 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9120 "watchdog" static.
9121 (_initialize_remote): Move initialization code from maint.c.
9122 * defs.h (watchdog): Don't declare.
9123
9124 2019-05-08 Tom Tromey <tromey@adacore.com>
9125
9126 * tui/tui-interp.c: Include main.h.
9127 * interps.c: Include main.h.
9128 * main.h (interpreter_p): Declare.
9129 * defs.h (interpreter_p): Don't declare.
9130
9131 2019-05-08 Tom Tromey <tromey@adacore.com>
9132
9133 * dwarf2loc.c: Include dwarf2read.h.
9134 * defs.h (read_unsigned_leb128): Don't declare.
9135 * dwarf2read.h (read_unsigned_leb128): Declare.
9136
9137 2019-05-08 Tom Tromey <tromey@adacore.com>
9138
9139 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9140 method.
9141
9142 2019-05-08 Tom Tromey <tromey@adacore.com>
9143
9144 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9145 when no wrap column is set.
9146
9147 2019-05-08 Tom Tromey <tromey@adacore.com>
9148
9149 * c-lang.c (c_get_string): Handle non-C-style arrays.
9150
9151 2019-05-08 Tom Tromey <tromey@adacore.com>
9152
9153 * typeprint.c (print_offset_data::update): Print the bit offset,
9154 not the number of bits remaining.
9155
9156 2019-05-08 Tom Tromey <tromey@adacore.com>
9157
9158 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9159 padding at end of comment.
9160
9161 2019-05-08 Tom Tromey <tromey@adacore.com>
9162
9163 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9164 Compare main types.
9165
9166 2019-05-06 Tom Tromey <tom@tromey.com>
9167
9168 * common/scoped_mmap.c: Include common-defs.h.
9169 * common/scoped_mmap.h: Don't include config.h.
9170
9171 2019-05-04 Tom Tromey <tom@tromey.com>
9172
9173 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9174 (struct aarch64_call_info): Add initializers.
9175 <si>: Now a std::vector.
9176 (pass_on_stack, aarch64_push_dummy_call): Update.
9177
9178 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9179 Tom Tromey <tom@tromey.com>
9180
9181 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9182 (ppc_threads): Now a std::vector. Now static.
9183 (hwdebug_find_thread_points_by_tid)
9184 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9185 Update.
9186
9187 2019-05-04 Tom Tromey <tom@tromey.com>
9188
9189 * arc-tdep.c (arc_tdesc_init): Return bool.
9190
9191 2019-05-04 Tom Tromey <tom@tromey.com>
9192
9193 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9194 Use gdb_assert_not_reached.
9195
9196 2019-05-04 Tom Tromey <tom@tromey.com>
9197
9198 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9199 "false".
9200
9201 2019-05-04 Tom Tromey <tom@tromey.com>
9202
9203 * arc-tdep.c (arc_tdesc_init): Use bool.
9204
9205 2019-05-04 Tom Tromey <tom@tromey.com>
9206
9207 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9208
9209 2019-05-04 Tom Tromey <tom@tromey.com>
9210
9211 * cli/cli-cmds.c (valid_command_p): Return bool.
9212
9213 2019-05-04 Tom Tromey <tom@tromey.com>
9214
9215 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9216 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9217
9218 2019-05-04 Raul Tambre <raul@tambre.ee>
9219
9220 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9221 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9222 operator for comparison.
9223
9224 2019-05-04 Tom Tromey <tom@tromey.com>
9225
9226 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9227 (lookup_partial_symbol, print_partial_symbols)
9228 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9229 (psymbol_compare): Update.
9230 (add_psymbol_to_bcache): Clear the entire psymbol.
9231 (maintenance_check_psymtabs): Update.
9232 * psympriv.h (struct partial_symbol): Don't derive from
9233 general_symbol_info.
9234 <obj_section, unrelocated_address, address,
9235 set_unrelocated_address>: Update.
9236 <ginfo>: New member.
9237 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9238 (debug_names::write_psymbols): Update.
9239
9240 2019-05-04 Tom de Vries <tdevries@suse.de>
9241
9242 * contrib/cc-with-tweaks.sh: Support -n arg.
9243
9244 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9245
9246 * corelow.c (core_target::detach): Ensure frame cache and
9247 register caches are cleared.
9248 inferior.c (exit_inferior_1): Likewise.
9249
9250 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9251 Tom Tromey <tom@tromey.com>
9252
9253 * dictionary.c (collate_pending_symbols_by_language): Remove
9254 "struct" from foreach.
9255 * symtab.c (lookup_global_symbol_from_objfile)
9256 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9257 foreach.
9258 * ser-tcp.c (net_open): Remove "struct" from foreach.
9259 * objfiles.c (objfile_relocate, objfile_rebase)
9260 (objfile_has_symbols): Remove "struct" from foreach.
9261 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9262 from foreach.
9263 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9264 foreach.
9265 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9266 "struct" from foreach.
9267 * ada-lang.c (create_excep_cond_exprs)
9268 (ada_exception_catchpoint_cond_string): Remove "struct" from
9269 foreach.
9270
9271 2019-05-03 Tom Tromey <tromey@adacore.com>
9272
9273 * ada-exp.y (convert_char_literal): Check suffix of each
9274 enumerator.
9275
9276 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9277
9278 PR ada/21406:
9279 * ada-exp.y (yywrap): Don't define.
9280 * ada-lex.l (%option): Add noyywrap
9281 (yywrap): Remove.
9282
9283 2019-05-03 Eli Zaretskii <eliz@gnu.org>
9284
9285 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9286 _WIN32_WINNT to the XP level, unless already defined to a higher
9287 level.
9288
9289 * unittests/parse-connection-spec-selftests.c:
9290 * ser-tcp.c:
9291 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9292 override.
9293
9294 * symfile.c (find_separate_debug_file): Remove colon from the
9295 drive spec of DOS/Windows file names of the target, so that the
9296 file name produced from DEBUGDIR and the target's directory will
9297 be valid on DOS/Windows systems.
9298
9299 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9300
9301 * rust-lang.c (val_print_struct): Handle printing structures
9302 containing strings.
9303
9304 2019-05-02 Tom Tromey <tromey@adacore.com>
9305
9306 * valarith.c (_initialize_valarith): Remove.
9307
9308 2019-05-01 Tom Tromey <tromey@adacore.com>
9309
9310 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9311 bitfields.
9312
9313 2019-05-01 Tom Tromey <tromey@adacore.com>
9314
9315 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9316 for big-endian copies.
9317
9318 2019-04-30 Ali Tamur <tamur@google.com>
9319 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9320 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9321 (read_3_bytes): New function.
9322
9323 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9324
9325 * windows-nat.c (main_thread_id): Delete.
9326 (handle_output_debug_string): Replace main_thread_id by
9327 current_event.dwThreadId.
9328 (fake_create_process): Likewise.
9329 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9330 Do not set main_thread_id.
9331 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9332 current_event.dwThreadId.
9333 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9334
9335 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9336
9337 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9338 Use current_event.dwThreadId instead of main_thread_id.
9339
9340 2019-04-30 Tom Tromey <tromey@adacore.com>
9341
9342 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9343 (create_excep_cond_exprs): Iterate over program spaces.
9344 (ada_exception_catchpoint_cond_string): Examine all minimal
9345 symbols for exception types.
9346
9347 2019-04-30 Tom Tromey <tromey@adacore.com>
9348
9349 PR c++/24470:
9350 * dwarf2read.c (process_structure_scope): Handle case where type
9351 has template parameters but no symbol was created.
9352
9353 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9354 Chris January <chris.january@arm.com>
9355
9356 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9357 qualifier.
9358 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9359
9360 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9361
9362 * f-typeprint.c (f_print_type): Update rules for printing
9363 whitespace.
9364 (f_type_print_varspec_suffix): Likewise.
9365
9366 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9367 Chris January <chris.january@arm.com>
9368
9369 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9370 function arguments.
9371
9372 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9373
9374 * f-lang.c (build_fortran_types): Change name of void type to
9375 lower case.
9376 * f-typeprint.c (f_type_print_base): Print the name of the void
9377 type, rather than a fixed string.
9378 * f-valprint.c (f_decorations): Use lower case void string.
9379
9380 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9381 Chris January <chris.january@arm.com>
9382
9383 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9384 types for Fortran.
9385
9386 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9387 Chris January <chris.january@arm.com>
9388 David Lecomber <david.lecomber@arm.com>
9389
9390 * f-exp.y (BINOP_INTRINSIC): New token.
9391 (exp): New parser rule handling BINOP_INTRINSIC.
9392 (f77_keywords): Add new builtin procedures.
9393 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9394 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9395 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9396 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9397 (print_unop_subexp_f): New function.
9398 (print_binop_subexp_f): New function.
9399 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9400 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9401 (dump_subexp_body_f): Likewise.
9402 (operator_check_f): Likewise.
9403 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9404 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9405
9406 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9407
9408 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9409 UNOP_KIND.
9410 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9411 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9412 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9413 (operator_length_f): New fuction.
9414 (print_subexp_f): New function.
9415 (op_name_f): New function.
9416 (dump_subexp_body_f): New function.
9417 (operator_check_f): New function.
9418 (exp_descriptor_f): Replace standard expression handling functions
9419 with new functions.
9420 * gdb/fortran-operator.def: New file.
9421 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9422 * gdb/std-operator.def: Remove UNOP_KIND.
9423
9424 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9425
9426 * std-operator.def: Remove unbalanced, stray double quote
9427 character.
9428
9429 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9430 Chris January <chris.january@arm.com>
9431 Daniel Everett <daniel.everett@arm.com>
9432 Nick Forrington <nick.forrington@arm.com>
9433 Richard Bunt <richard.bunt@arm.com>
9434
9435 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9436 of depth when printing anonymous structs or unions.
9437 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9438 Don't print either the top-level value, or the children if the
9439 max-depth is exceeded.
9440 (ppscm_print_children): When printing the key of a map, allow one
9441 extra level of depth.
9442 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9443 print either the top-level value, or the children if the max-depth
9444 is exceeded.
9445 (print_children): When printing the key of a map, allow one extra
9446 level of depth.
9447 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9448 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9449 (user_print_options): Initialise max_depth field.
9450 (val_print_scalar_or_string_type_p): New function.
9451 (val_print): Check to see if the max depth has been reached.
9452 (val_print_check_max_depth): Define new function.
9453 (show_print_max_depth): New function.
9454 (_initialize_valprint): Add 'print max-depth' option.
9455 * valprint.h (struct value_print_options) <max_depth>: New field.
9456 (val_print_check_max_depth): Declare new function.
9457 * NEWS: Document new feature.
9458
9459 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9460
9461 * ada-lang.c (ada_language_defn): Initialise new field.
9462 * c-lang.c (c_is_string_type_p): New function.
9463 (c_language_defn): Initialise new field.
9464 (cplus_language_defn): Initialise new field.
9465 (asm_language_defn): Initialise new field.
9466 (minimal_language_defn): Initialise new field.
9467 * c-lang.h (c_is_string_type_p): Declare new function.
9468 * d-lang.c (d_language_defn): Initialise new field.
9469 * f-lang.c (f_is_string_type_p): New function.
9470 (f_language_defn): Initialise new field.
9471 * go-lang.c (go_is_string_type_p): New function.
9472 (go_language_defn): Initialise new field.
9473 * language.c (default_is_string_type_p): New function.
9474 (unknown_language_defn): Initialise new field.
9475 (auto_language_defn): Initialise new field.
9476 * language.h (struct language_defn) <la_is_string_type_p>: New
9477 member variable.
9478 (default_is_string_type_p): Declare new function.
9479 * m2-lang.c (m2_language_defn): Initialise new field.
9480 * objc-lang.c (objc_language_defn): Initialise new field.
9481 * opencl-lang.c (opencl_language_defn): Initialise new field.
9482 * p-lang.c (pascal_is_string_type_p): New function.
9483 (pascal_language_defn): Initialise new field.
9484 * rust-lang.c (rust_is_string_type_p): New function.
9485 (rust_language_defn): Initialise new field.
9486
9487 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9488
9489 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9490 New field.
9491 * ada-lang.c (ada_language_defn): Initialise new field.
9492 * c-lang.c (c_language_defn): Likewise.
9493 (cplus_language_defn): Likewise.
9494 (asm_language_defn): Likewise.
9495 (minimal_language_defn): Likewise.
9496 * d-lang.c (d_language_defn): Likewise.
9497 * f-lang.c (f_language_defn): Likewise.
9498 * go-lang.c (go_language_defn): Likewise.
9499 * language.c (unknown_language_defn): Likewise.
9500 (auto_language_defn): Likewise.
9501 * m2-lang.c (m2_language_defn): Likewise.
9502 * objc-lang.c (objc_language_defn): Likewise.
9503 * opencl-lang.c (opencl_language_defn): Likewise.
9504 * p-lang.c (pascal_language_defn): Likewise.
9505 * rust-lang.c (rust_language_defn): Likewise.
9506
9507 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9508
9509 * ada-lang.c (ada_is_character_type): Change return type to bool.
9510 (ada_is_string_type): Likewise.
9511 * ada-lang.h (ada_is_character_type): Update declaration
9512 (ada_is_string_type): Likewise.
9513
9514 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9515
9516 Support style in 'frame|thread apply'
9517
9518 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9519 * record.c (record_start, record_stop): Update callers of
9520 execute_command_to_string with false.
9521 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9522 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9523 methods.
9524 (class string_file): New constructor with term_out parameter.
9525 Override methods term_out and can_emit_style_escape. New member
9526 term_out.
9527 (class stdio_file): Override can_emit_style_escape.
9528 (class tee_file): Override term_out and can_emit_style_escape.
9529 * utils.h (can_emit_style_escape): Remove.
9530 * utils.c (can_emit_style_escape): Likewise.
9531 Update all callers of can_emit_style_escape (SOMESTREAM) to
9532 SOMESTREAM->can_emit_style_escape.
9533 * source-cache.c (source_cache::get_source_lines): Likewise.
9534 * stack.c (frame_apply_command_count): Call execute_command_to_string
9535 passing the term_out characteristic of the current gdb_stdout.
9536 * thread.c (thr_try_catch_cmd): Likewise.
9537 * top.c (execute_command_to_string): pass term_out parameter
9538 to construct the string_file for the command output.
9539 * ui-file.c (term_cli_styling): New function (most code moved
9540 from utils.c can_emit_style_escape).
9541 (string_file::string_file, string_file::can_emit_style_escape,
9542 stdio_file::can_emit_style_escape, tee_file::term_out,
9543 tee_file::can_emit_style_escape): New functions.
9544
9545 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9546
9547 * NEWS: Mention the new set|show may-call-functions.
9548 * infcall.c (may_call_functions_p): New variable.
9549 (show_may_call_functions_p): New function.
9550 (call_function_by_hand_dummy): Throws an error if not
9551 may-call-functions.
9552 (_initialize_infcall): Call add_setshow_boolean_cmd for
9553 may-call-functions.
9554
9555 2019-04-25 Keith Seitz <keiths@redhat.com>
9556
9557 PR c++/24367
9558 * cp-support.c (inspect_type): Don't attempt substitutions
9559 of symbol with the same name.
9560
9561 2019-04-25 Tom Tromey <tromey@adacore.com>
9562
9563 PR gdb/24475:
9564 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9565 static.
9566
9567 2019-04-25 Tom Tromey <tromey@adacore.com>
9568
9569 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9570 rvalue reference.
9571 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9572 (gdb_xml_parser::parse): Use std::move.
9573 * python/python-internal.h (gdbpy_convert_exception): Take a const
9574 reference.
9575 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9576 std::move.
9577 * python/py-utils.c (gdbpy_convert_exception): Take a const
9578 reference.
9579 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9580 Use std::move.
9581 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9582 Use std::move.
9583 * mi/mi-main.c (mi_print_exception): Take a const reference.
9584 * main.c (handle_command_errors): Take a const reference.
9585 * linespec.c (parse_linespec): Use std::move.
9586 * infcall.c (run_inferior_call): Use std::move.
9587 (call_function_by_hand_dummy): Use std::move.
9588 * exec.c (try_open_exec_file): Use std::move.
9589 * exceptions.h (exception_print, exception_fprintf)
9590 (exception_print_same): Update.
9591 * exceptions.c (print_exception, exception_print)
9592 (exception_fprintf, exception_print_same): Change parameters to
9593 const reference.
9594 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9595 * common/new-op.c: Use std::move.
9596 * common/common-exceptions.h (struct gdb_exception): Add move
9597 constructor.
9598 (struct gdb_exception_error, struct gdb_exception_quit, struct
9599 gdb_quit_bad_alloc): Change constructor to move constructor.
9600 (throw_exception): Change parameter to rvalue reference.
9601 * common/common-exceptions.c (throw_exception): Take rvalue
9602 reference.
9603 * cli/cli-interp.c (safe_execute_command): Use std::move.
9604 * breakpoint.c (insert_bp_location, location_to_sals): Use
9605 std::move.
9606
9607 2019-04-25 Tom Tromey <tromey@adacore.com>
9608
9609 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9610 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9611 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9612 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9613 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9614 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9615 guile/scm-value.c: Use unpack.
9616 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9617 gdbscm_gdb_exception.
9618 (gdbscm_throw_gdb_exception): Likewise.
9619 (struct gdbscm_gdb_exception): New.
9620 (unpack): New function.
9621 (gdbscm_wrap): Use unpack.
9622
9623 2019-04-25 Tom Tromey <tromey@adacore.com>
9624
9625 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9626 (gdb_rl_callback_handler): Use std::move.
9627 * common/common-exceptions.h (struct gdb_exception): Add move
9628 assignment operator.
9629 (throw_exception_sjlj): Change "exception" to const reference.
9630 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9631 (throw_exception_sjlj): Change "exception" to const reference.
9632
9633 2019-04-25 Tom Tromey <tromey@adacore.com>
9634
9635 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9636 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9637 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9638 Update.
9639 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9640 Update.
9641 * mi/mi-interp.c (mi_interp::exec): Update.
9642 * linespec.c (parse_linespec): Update.
9643 * infcall.c (run_inferior_call): Update.
9644 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9645 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9646 (gdbscm_lookup_global_symbol): Update.
9647 * guile/scm-param.c (gdbscm_parameter_value): Update.
9648 * guile/scm-frame.c (gdbscm_frame_read_register)
9649 (gdbscm_frame_read_var): Update.
9650 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9651 * exec.c (try_open_exec_file): Update.
9652 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9653 (gdb_rl_callback_handler): Update.
9654 * common/common-exceptions.h (exception_none): Don't declare.
9655 * common/common-exceptions.c (exception_none): Don't define.
9656 (struct catcher) <exception>: Update.
9657 * cli/cli-interp.c (safe_execute_command): Update.
9658 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9659
9660 2019-04-25 Ali Tamur <tamur@google.com>
9661
9662 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9663 (read_attribute_value): Likewise.
9664 (dwarf2_read_addr_index): Update comment.
9665 (read_str_index): Add DW_FORM_strx.
9666 (dwarf2_string_attr): Likewise.
9667 (dwarf2_const_value_attr): Likewise.
9668 (dump_die_shallow): Likewise.
9669 (dwarf2_fetch_constant_bytes): Likewise.
9670 (skip_form_bytes): Likewise.
9671 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9672
9673 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9674
9675 PR corefiles/11608
9676 PR corefiles/18187
9677 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9678 OFFSET. Verify if current mapping contains an ELF header.
9679 (linux_find_memory_regions_full): Adjust call to
9680 dump_mapping_p.
9681
9682 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9683 Kang Li <kanglictf@gmail.com>
9684
9685 PR gdb/21600
9686
9687 * dwarf2-frame.c (read_initial_length): Be consistent about using
9688 unsigned representation of length.
9689 (decode_frame_entry_1): Likewise. Check for wraparound of
9690 end pointer as well as buffer overflow.
9691
9692 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9693
9694 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9695 "vq".
9696
9697 2019-04-24 Tom Tromey <tromey@adacore.com>
9698
9699 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9700
9701 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9702
9703 * s12z-tdep.c (s12z_unwind_pc): Delete.
9704 (s12z_unwind_sp): Delete.
9705 (s12z_gdbarch_init): Don't register deleted functions with
9706 gdbarch.
9707
9708 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9709
9710 * rl78-tdep.c (rl78_unwind_sp): Delete.
9711 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9712
9713 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9714
9715 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9716 (xstormy16_unwind_pc): Delete.
9717 (xstormy16_dummy_id): Delete.
9718 (xstormy16_gdbarch_init): Don't register deleted functions with
9719 gdbarch.
9720
9721 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9722
9723 * vax-tdep.c (vax_unwind_pc): Delete.
9724 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9725
9726 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9727
9728 * v850-tdep.c (v850_unwind_sp): Delete.
9729 (v850_unwind_pc): Delete.
9730 (v850_dummy_id): Delete.
9731 (v850_gdbarch_init): Don't register deleted functions with
9732 gdbarch.
9733
9734 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9735
9736 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9737 (tilegx_unwind_pc): Delete.
9738 (tilegx_unwind_dummy_id): Delete.
9739 (tilegx_gdbarch_init): Don't register deleted functions with
9740 gdbarch.
9741
9742 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9743
9744 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9745 (tic6x_dummy_id): Delete.
9746 (tic6x_gdbarch_init): Don't register deleted functions with
9747 gdbarch.
9748
9749 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9750
9751 * sparc-tdep.c (sparc_unwind_pc): Delete.
9752 (sparc32_gdbarch_init): Don't register deleted function with
9753 gdbarch.
9754
9755 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9756
9757 * sh-tdep.c (sh_unwind_sp): Delete.
9758 (sh_unwind_pc): Delete.
9759 (sh_dummy_id): Delete.
9760 (sh_gdbarch_init): Don't register deleted functions with
9761 gdbarch.
9762
9763 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9764
9765 * score-tdep.c (score_unwind_sp): Delete.
9766 (score_unwind_pc): Delete.
9767 (score_dummy_id): Delete.
9768 (score_gdbarch_init): Don't register deleted functions with
9769 gdbarch.
9770
9771 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9772
9773 * rx-tdep.c (rx_unwind_pc): Delete.
9774 (rx_unwind_sp): Delete.
9775 (rx_dummy_id): Delete.
9776 (rx_gdbarch_init): Don't register deleted functions with
9777 gdbarch. Update comment.
9778
9779 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9780
9781 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9782 (rs6000_dummy_id): Delete.
9783 (rs6000_gdbarch_init): Don't register deleted functions with
9784 gdbarch.
9785
9786 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9787
9788 * or1k-tdep.c (or1k_dummy_id): Delete.
9789 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9790
9791 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9792
9793 * nios2-tdep.c (nios2_dummy_id): Delete.
9794 (nios2_unwind_sp): Delete.
9795 (nios2_gdbarch_init): Don't register deleted functions with
9796 gdbarch.
9797
9798 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9799
9800 * nds32-tdep.c (nds32_dummy_id): Delete.
9801 (nds32_unwind_pc): Delete.
9802 (nds32_unwind_sp): Delete.
9803 (nds32_gdbarch_init): Don't register deleted functions with
9804 gdbarch.
9805
9806 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9807
9808 * msp430-tdep.c (msp430_unwind_pc): Delete.
9809 (msp430_unwind_sp): Delete.
9810 (msp430_dummy_id): Delete.
9811 (msp430_gdbarch_init): Don't register deleted functions with
9812 gdbarch.
9813
9814 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9815
9816 * moxie-tdep.c (moxie_unwind_sp): Delete.
9817 (moxie_unwind_pc): Delete.
9818 (moxie_dummy_id): Delete.
9819 (moxie_gdbarch_init): Don't register deleted functions with
9820 gdbarch.
9821
9822 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9823
9824 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9825 (mn10300_unwind_pc): Delete.
9826 (mn10300_unwind_sp): Delete.
9827 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9828 mn10300_unwind_sp.
9829 (mn10300_frame_unwind_init): Don't register deleted functions with
9830 gdbarch.
9831
9832 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9833
9834 * mep-tdep.c (mep_unwind_pc): Delete.
9835 (mep_unwind_sp): Delete.
9836 (mep_dummy_id): Delete.
9837 (mep_gdbarch_init): Don't register deleted functions with
9838 gdbarch.
9839
9840 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9841
9842 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
9843 (m68hc11_unwind_sp): Delete.
9844 (m68hc11_gdbarch_init): Don't register deleted functions with
9845 gdbarch.
9846
9847 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9848
9849 * m32r-tdep.c (m32r_unwind_sp): Delete.
9850 (m32r_unwind_pc): Delete.
9851 (m32r_dummy_id): Delete.
9852 (m32r_gdbarch_init): Don't register deleted functions with
9853 gdbarch.
9854
9855 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9856
9857 * m32c-tdep.c (m32c_unwind_pc): Delete.
9858 (m32c_unwind_sp): Delete.
9859 (m32c_dummy_id): Delete.
9860 (m32c_gdbarch_init): Don't register deleted functions with
9861 gdbarch.
9862
9863 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9864
9865 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
9866 (lm32_unwind_pc): Delete.
9867 (lm32_dummy_id): Delete.
9868 (lm32_gdbarch_init): Don't register deleted functions with
9869 gdbarch.
9870
9871 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9872
9873 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
9874 (iq2000_unwind_pc): Delete.
9875 (iq2000_dummy_id): Delete.
9876 (iq2000_gdbarch_init): Don't register deleted functions with
9877 gdbarch.
9878
9879 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9880
9881 * nds32-tdep.c (nds32_type_align): Delete.
9882 (nds32_push_dummy_call): Use type_align instead.
9883
9884 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9885
9886 * arm-tdep.c (arm_type_align): Only handle vector override case.
9887 (arm_push_dummy_call): Use type_align.
9888 (arm_gdbarch_init): Register arm_type_align gdbarch function.
9889
9890 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9891
9892 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
9893 case.
9894 (pass_on_stack): Use type_align.
9895 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
9896 function.
9897
9898 2019-04-23 Tom Tromey <tromey@adacore.com>
9899
9900 * dwarf2read.c (line_header::file_name_at): Remove unused
9901 overload.
9902
9903 2019-04-23 Tom de Vries <tdevries@suse.de>
9904
9905 PR gdb/24438
9906 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
9907 invocation.
9908
9909
9910 2019-03-27 Ali Tamur <tamur@google.com>
9911
9912 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
9913 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9914 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9915 (dwarf_expr_context::get_addr_index): Likewise
9916 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9917 (symbol_needs_eval_context::get_addr_index): Likewise
9918 (disassemble_dwarf_expression): Add DW_OP_addrx
9919 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9920 (read_cutu_die_from_dwo): Update comment
9921 (skip_one_die): Add DW_FORM_addrx
9922 (read_attribute_value): Likewise
9923 (var_decode_location): Add DW_OP_addrx
9924 (dwarf2_const_value_attr): Add DW_FORM_addrx
9925 (dump_die_shallow): Likewise
9926 (dwarf2_fetch_constant_bytes): Likewise
9927 (decode_locdesc): Add DW_OP_addrx
9928 (skip_form_bytes): Add DW_FORM_addrx
9929
9930 2019-04-22 Ali Tamur <tamur@google.com>
9931
9932 * MAINTAINERS (Write After Approval): Add self.
9933
9934 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
9935
9936 * solib-svr4.c (get_svr4_info): Add pspace parameter.
9937 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
9938 (open_symbol_file_object): Likewise.
9939 (svr4_default_sos): Add info parameter.
9940 (svr4_read_so_list): Likewise.
9941 (svr4_current_sos_direct): Adjust functions calls to pass down
9942 info.
9943 (svr4_current_sos_1): Add info parameter.
9944 (svr4_current_sos): Call get_svr4_info, pass info down to
9945 svr4_current_sos_1.
9946 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
9947 get_svr4_info.
9948 (svr4_in_dynsym_resolve_code): Pass current_program_space to
9949 get_svr4_info.
9950 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
9951 to get_svr4_info.
9952 (probes_table_remove_objfile_probes): Likewise.
9953 (register_solib_event_probe): Add info parameter.
9954 (solist_update_incremental): Pass info parameter down to
9955 svr4_read_so_list.
9956 (disable_probes_interface): Add info parameter.
9957 (svr4_handle_solib_event): Pass current_program_space to
9958 get_svr4_info. Adjust disable_probes_interface cleanup.
9959 (svr4_create_probe_breakpoints): Add info parameter, pass it
9960 down to register_solib_event_probe.
9961 (svr4_create_solib_event_breakpoints): Add info parameter,
9962 pass it down to svr4_create_probe_breakpoints.
9963 (enable_break): Pass info down to
9964 svr4_create_solib_event_breakpoints.
9965 (svr4_solib_create_inferior_hook): Pass current_program_space to
9966 get_svr4_info.
9967 (svr4_clear_solib): Likewise.
9968
9969 2019-04-22 Pedro Alves <palves@redhat.com>
9970
9971 * solib-svr4.c (svr4_free_objfile_observer): New.
9972 (probe_and_action::objfile): New field.
9973 (probes_table_htab_remove_objfile_probes)
9974 (probes_table_remove_objfile_probes): New functions.
9975 (register_solib_event_probe): Add 'objfile' parameter. Store it
9976 in the new probe_and_action. Don't store the probe in 'lookup'.
9977 (svr4_create_probe_breakpoints): Pass objfile to
9978 register_solib_event_probe.
9979 (_initialize_svr4_solib): Register a free_objfile observer.
9980
9981 2019-04-19 Tom Tromey <tom@tromey.com>
9982
9983 * common/queue.h: Remove.
9984
9985 2019-04-19 Tom Tromey <tom@tromey.com>
9986
9987 * event-loop.c: Don't include "common/queue.h".
9988
9989 2019-04-19 Tom Tromey <tom@tromey.com>
9990
9991 * remote.c (remote_target): Use delete.
9992 * remote-notif.h: Include <list>, not "common/queue.h".
9993 (notif_client_p): Remove typedef.
9994 (remote_notif_state): Add constructor, destructor, initializer.
9995 <notif_queue>: Now a std::list.
9996 (remote_notif_state_xfree): Don't declare.
9997 * remote-notif.c (remote_notif_process, handle_notification)
9998 (remote_notif_state_allocate): Update.
9999 (~remote_notif_state): Rename from remote_notif_state_xfree.
10000
10001 2019-04-19 Tom Tromey <tom@tromey.com>
10002
10003 * symfile.c (reread_symbols): Update.
10004 * objfiles.c (objfile_register_static_link)
10005 (objfile_lookup_static_link): Update
10006 (~objfile) Don't delete static_links.
10007 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10008
10009 2019-04-19 Tom Tromey <tom@tromey.com>
10010
10011 * type-stack.h (struct type_stack) <insert>: Constify string.
10012 * type-stack.c (type_stack::insert): Constify string.
10013 * gdbtypes.h (lookup_template_type): Update.
10014 (address_space_name_to_int): Update.
10015 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10016 const.
10017 (lookup_template_type): Make name const.
10018 * c-exp.y: Update rules.
10019 (lex_one_token, classify_name, classify_inner_name)
10020 (c_print_token): Update.
10021 * p-exp.y: Update rules.
10022 (yylex): Update.
10023 * f-exp.y: Update rules.
10024 (yylex): Update.
10025 * d-exp.y: Update rules.
10026 (lex_one_token, classify_name, classify_inner_name): Update.
10027 * parse.c (write_dollar_variable, copy_name): Return std::string.
10028 * parser-defs.h (copy_name): Change return type.
10029 * m2-exp.y: Update rules.
10030 (yylex): Update.
10031 * go-exp.y (lex_one_token): Update.
10032 Update rules.
10033 (classify_unsafe_function, classify_packaged_name)
10034 (classify_name, yylex): Update.
10035
10036 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10037
10038 * configure.ac: add --enable-source-highlight switch.
10039 * configure: Regenerate.
10040 * top.c (print_gdb_version): plumb --enable-source-highlight
10041 status to "show configuration".
10042
10043 2019-04-19 Tom Tromey <tromey@adacore.com>
10044
10045 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10046 Check ADA_TYPE_P.
10047 (empty_record, ada_template_to_fixed_record_type_1)
10048 (template_to_static_fixed_type)
10049 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10050 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10051 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10052 macros.
10053
10054 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10055
10056 PR symtab/24423:
10057 * source.c (print_source_lines_base): Advance "iter" when a
10058 control character is seen.
10059
10060 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10061
10062 * inferior.h (struct infcall_suspend_state_deleter):
10063 Catch exception in destructor to avoid crash.
10064
10065 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10066
10067 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10068 close to the add_com "shell".
10069
10070 2019-04-18 Tom Tromey <tromey@adacore.com>
10071
10072 * process-stratum-target.h (class process_stratum_target)
10073 <stratum>: Add "final".
10074
10075 2019-04-17 Tom Tromey <tromey@adacore.com>
10076
10077 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10078 against nullptr before use.
10079
10080 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10081
10082 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10083
10084 2019-04-17 Jim Wilson <jimw@sifive.com>
10085 Andrew Burgess <andrew.burgess@embecosm.com>
10086
10087 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10088 code read might fail, assume 4-byte breakpoint in that case.
10089
10090 2019-04-15 Leszek Swirski <leszeks@google.com>
10091
10092 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10093 rather than a hand-rolled POD check when checking for forced MEMORY
10094 classification.
10095
10096 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10097
10098 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10099 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10100 function.
10101 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10102 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10103 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10104 declaration.
10105
10106 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10107
10108 * aarch64-linux-nat.c
10109 (aarch64_linux_nat_target::thread_architecture): Add override.
10110 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10111 each VQ.
10112
10113 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10114
10115 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10116
10117 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10118
10119 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10120 target types of size 96-bits, add some additional comments, and
10121 check that the builtin type we found was the correct size.
10122
10123 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10124
10125 * utils.c (prompt_for_continue): Don't restore the styling at the
10126 end, as applied_style has the wrong value. This fixes styling in
10127 long lists of file names that are interrupted by the "Continue?"
10128 prompt.
10129
10130 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10131
10132 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10133 * c-lang.c (c_language_defn): Likewise.
10134 (cplus_language_defn): Likewise.
10135 (asm_language_defn): Likewise.
10136 (minimal_language_defn): Likewise.
10137 * d-lang.c (d_language_defn): Likewise.
10138 * f-lang.c (f_language_defn): Likewise.
10139 * go-lang.c (go_language_defn): Likewise.
10140 * language.c (unknown_language_defn): Likewise.
10141 (auto_language_defn): Likewise.
10142 * language.h (struct language_defn): Remove la_magic field.
10143 (LANG_MAGIC): Delete.
10144 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10145 * objc-lang.c (objc_language_defn): Likewise.
10146 * opencl-lang.c (opencl_language_defn): Likewise.
10147 * p-lang.c (pascal_language_defn): Likewise.
10148 * rust-lang.c (rust_language_defn): Likewise.
10149
10150 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10151
10152 * riscv-tdep.c (riscv_type_align): New function.
10153 (riscv_type_alignment): Delete.
10154 (riscv_arg_location): Use 'type_align'.
10155 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10156
10157 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10158
10159 * gdbtypes.c (type_align): A struct with no non-static fields also
10160 has alignment of 1.
10161
10162 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10163
10164 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10165 component to 0.
10166 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10167 member.
10168 (riscv_struct_info::analyse): New implementation using new
10169 analyse_inner member function.
10170 (riscv_struct_info::field_offset): New member function.
10171 (riscv_struct_info::m_offsets): New member variable.
10172 (riscv_struct_info::analyse_inner): New private member function,
10173 takes the old implementation of riscv_struct_info::analyse but
10174 extended to track field offsets.
10175 (riscv_call_arg_struct): Update the struct folding special cases
10176 to handle cases where empty C++ structs, which are non-zero
10177 length, are found.
10178 (riscv_arg_location): Initialise the length of each location, a
10179 non-zero length now indicates the location is in use.
10180 (riscv_push_dummy_call): Allow for the first location having a
10181 non-zero offset when setting up arguments.
10182 (riscv_return_value): Likewise, but for return values.
10183
10184 2019-04-11 Tom Tromey <tromey@adacore.com>
10185
10186 * utils.c (internal_vproblem): Make "msg" const.
10187
10188 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10189
10190 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10191 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10192 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10193 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10194
10195 2019-04-10 Kevin Buettner <kevinb@redhat.com>
10196
10197 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10198 function.
10199 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10200 of amd64_collect_native_gregset.
10201 (amd64_linux_nat_target::store_registers): Likewise.
10202
10203 2019-04-10 Tom Tromey <tom@tromey.com>
10204
10205 * symtab.c (lookup_global_symbol_from_objfile)
10206 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10207 * objfiles.h (class separate_debug_iterator): New.
10208 (class separate_debug_range): New.
10209 (struct objfile) <separate_debug_objfiles>: New method.
10210 (objfile_separate_debug_iterate): Don't declare.
10211 * objfiles.c (separate_debug_iterator::operator++): Rename from
10212 objfile_separate_debug_iterate.
10213 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10214 iterator.
10215 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10216 iterator.
10217
10218 2019-04-10 Tom Tromey <tom@tromey.com>
10219
10220 * symfile.c (reread_symbols): Remove old comment.
10221 * objfiles.c (free_all_objfiles): Fix a typo.
10222
10223 2019-04-10 Tom Tromey <tom@tromey.com>
10224
10225 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10226 * minsyms.c (lookup_minimal_symbol): Use foreach.
10227 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10228 (lookup_minimal_symbol_solib_trampoline): Likewise.
10229 * symfile.c (reread_symbols): Use foreach.
10230
10231 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
10232 Tom Tromey <tromey@adacore.com>
10233
10234 PR rust/24414:
10235 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10236 (rust_lex_int_test): Change "value" to be LONGEST.
10237 (rust_lex_tests): Add test for long integer literal.
10238
10239 2019-04-09 Tom Tromey <tromey@adacore.com>
10240
10241 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10242 to bool.
10243 (extended_remote_target::attach): Update.
10244 (remote_target::remote_notice_new_inferior): Update.
10245 (remote_target::add_current_inferior_and_thread): Update.
10246 * inferior.c (exit_inferior_1): Use "false".
10247 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10248
10249 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
10250
10251 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
10252 the "start" command.
10253
10254 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10255
10256 * python/py-inferior.c (infpy_thread_from_thread_handle):
10257 Adjust comments to reflect renaming of thread_from_thread_handle
10258 to thread_from_handle. Adjust keywords. Fix type error message.
10259 (inferior_object_methods): Add thread_from_handle. Retain
10260 thread_from_thread_handle, but mark it as deprecated.
10261
10262 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10263
10264 * gdbthread.h (find_thread_by_handle): Revise declaration.
10265 * thread.c (find_thread_by_handle): Likewise. Adjust
10266 implementation too.
10267 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10268 support for buffer objects as handles.
10269
10270 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10271
10272 * python/py-infthread.c (thpy_thread_handle): New function.
10273 (thread_object_methods): Register thpy_thread_handle.
10274
10275 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10276
10277 * gdbthread.h (thread_to_thread_handle): Declare.
10278 * thread.c (gdbtypes.h): Include.
10279 (thread_to_thread_handle): New function.
10280
10281 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10282 (target_thread_info_to_thread_handle): Declare.
10283 * target.c (target_thread_info_to_thread_handle): New function.
10284 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10285 * target-delegates.c: Regenerate.
10286
10287 * linux-thread-db.c (class thread_db_target): Add method
10288 thread_info_to_thread_handle.
10289 (thread_db_target::thread_info_to_thread_handle): Define.
10290 * remote.c (class remote_target): Add new method
10291 thread_info_to_thread_handle.
10292 (remote_target::thread_info_to_thread_handle): Define.
10293
10294 2019-04-08 Pedro Alves <palves@redhat.com>
10295
10296 * common/common-exceptions.c (throw_exception): Don't create
10297 named object to throw; throw directly.
10298 (throw_it): Likewise. Don't initialize gdb_exception::message
10299 here, with new; pass FMT and AP to the ctor instead.
10300 * common/common-exceptions.h: Include <string>.
10301 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10302 const char *, va_list)): New ctor. Use std::make_shared.
10303 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10304 errors)): Delete.
10305 (gdb_exception_error::gdb_exception_error(enum errors, const char
10306 *, va_list)): New.
10307 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10308 Add assertion.
10309 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10310 errors)): Delete.
10311 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10312 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10313 Add assertion.
10314
10315 2019-04-08 Tom Tromey <tom@tromey.com>
10316
10317 * valops.c (value_rtti_indirect_type): Replace throw_exception
10318 with throw.
10319 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10320 with throw.
10321 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10322 throw.
10323 * target.c (target_translate_tls_address): Replace throw_exception
10324 with throw.
10325 * stack.c (frame_apply_command_count): Replace throw_exception
10326 with throw.
10327 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10328 throw.
10329 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10330 with throw.
10331 * rs6000-tdep.c (rs6000_frame_cache)
10332 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10333 * remote.c: Replace throw_exception with throw.
10334 * record-full.c (record_full_message, record_full_wait_1)
10335 (record_full_restore): Replace throw_exception with throw.
10336 * record-btrace.c:
10337 (get_thread_current_frame_id, record_btrace_start_replaying)
10338 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10339 (cmd_record_btrace_start): Replace throw_exception with throw.
10340 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10341 throw.
10342 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10343 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10344 * linespec.c:
10345 (find_linespec_symbols): Replace throw_exception with throw.
10346 * infrun.c (displaced_step_prepare, resume): Replace
10347 throw_exception with throw.
10348 * infcmd.c (post_create_inferior): Replace throw_exception with
10349 throw.
10350 * inf-loop.c (inferior_event_handler): Replace throw_exception
10351 with throw.
10352 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10353 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10354 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10355 (get_prev_frame_always, get_frame_pc_if_available)
10356 (get_frame_address_in_block_if_available, get_frame_language):
10357 Replace throw_exception with throw.
10358 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10359 throw_exception with throw.
10360 * eval.c (fetch_subexp_value, evaluate_var_value)
10361 (evaluate_funcall, evaluate_subexp_standard): Replace
10362 throw_exception with throw.
10363 * dwarf2loc.c (call_site_find_chain)
10364 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10365 Replace throw_exception with throw.
10366 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10367 with throw.
10368 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10369 throw.
10370 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10371 * completer.c (complete_line_internal): Replace throw_exception
10372 with throw.
10373 * compile/compile-object-run.c (compile_object_run): Replace
10374 throw_exception with throw.
10375 * cli/cli-script.c (process_next_line): Replace throw_exception
10376 with throw.
10377 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10378 (btrace_enable, btrace_maint_update_pt_packets): Replace
10379 throw_exception with throw.
10380 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10381 throw_exception with throw.
10382 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10383 throw_exception with throw.
10384 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10385 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10386 * aarch64-tdep.c (aarch64_make_prologue_cache)
10387 (aarch64_make_stub_cache): Replace throw_exception with throw.
10388
10389 2019-04-08 Tom Tromey <tom@tromey.com>
10390
10391 * common/common-exceptions.c (throw_exception): Rename from
10392 throw_exception_cxx. Remove old copy. Make argument const.
10393 (throw_it): Create and throw exception objects directly.
10394 * common/common-exceptions.h (throw_exception): Make argument
10395 const.
10396 (struct gdb_exception_error): Add constructor.
10397 (struct gdb_exception_quit): Add constructor.
10398
10399 2019-04-08 Tom Tromey <tom@tromey.com>
10400
10401 * common/common-exceptions.h (exception_rethrow): Don't declare.
10402 (TRY_SJLJ): Update comment.
10403 (TRY, CATCH, END_CATCH): Remove.
10404 * common/common-exceptions.c (exception_rethrow): Remove.
10405
10406 2019-04-08 Tom Tromey <tom@tromey.com>
10407
10408 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10409 Remove.
10410 (gdb_exception_error): Rename from
10411 gdb_exception_RETURN_MASK_ERROR.
10412 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10413 (gdb_quit_bad_alloc): Update.
10414 * aarch64-tdep.c: Update.
10415 * ada-lang.c: Update.
10416 * ada-typeprint.c: Update.
10417 * ada-valprint.c: Update.
10418 * amd64-tdep.c: Update.
10419 * arch-utils.c: Update.
10420 * break-catch-throw.c: Update.
10421 * breakpoint.c: Update.
10422 * btrace.c: Update.
10423 * c-varobj.c: Update.
10424 * cli/cli-cmds.c: Update.
10425 * cli/cli-interp.c: Update.
10426 * cli/cli-script.c: Update.
10427 * common/common-exceptions.c: Update.
10428 * common/new-op.c: Update.
10429 * common/selftest.c: Update.
10430 * compile/compile-c-symbols.c: Update.
10431 * compile/compile-cplus-symbols.c: Update.
10432 * compile/compile-object-load.c: Update.
10433 * compile/compile-object-run.c: Update.
10434 * completer.c: Update.
10435 * corelow.c: Update.
10436 * cp-abi.c: Update.
10437 * cp-support.c: Update.
10438 * cp-valprint.c: Update.
10439 * darwin-nat.c: Update.
10440 * disasm-selftests.c: Update.
10441 * dtrace-probe.c: Update.
10442 * dwarf-index-cache.c: Update.
10443 * dwarf-index-write.c: Update.
10444 * dwarf2-frame-tailcall.c: Update.
10445 * dwarf2-frame.c: Update.
10446 * dwarf2loc.c: Update.
10447 * dwarf2read.c: Update.
10448 * eval.c: Update.
10449 * event-loop.c: Update.
10450 * event-top.c: Update.
10451 * exec.c: Update.
10452 * f-valprint.c: Update.
10453 * fbsd-tdep.c: Update.
10454 * frame-unwind.c: Update.
10455 * frame.c: Update.
10456 * gdbtypes.c: Update.
10457 * gnu-v3-abi.c: Update.
10458 * guile/guile-internal.h: Update.
10459 * guile/scm-block.c: Update.
10460 * guile/scm-breakpoint.c: Update.
10461 * guile/scm-cmd.c: Update.
10462 * guile/scm-disasm.c: Update.
10463 * guile/scm-frame.c: Update.
10464 * guile/scm-lazy-string.c: Update.
10465 * guile/scm-math.c: Update.
10466 * guile/scm-param.c: Update.
10467 * guile/scm-ports.c: Update.
10468 * guile/scm-pretty-print.c: Update.
10469 * guile/scm-symbol.c: Update.
10470 * guile/scm-symtab.c: Update.
10471 * guile/scm-type.c: Update.
10472 * guile/scm-value.c: Update.
10473 * i386-linux-tdep.c: Update.
10474 * i386-tdep.c: Update.
10475 * inf-loop.c: Update.
10476 * infcall.c: Update.
10477 * infcmd.c: Update.
10478 * infrun.c: Update.
10479 * jit.c: Update.
10480 * language.c: Update.
10481 * linespec.c: Update.
10482 * linux-fork.c: Update.
10483 * linux-nat.c: Update.
10484 * linux-tdep.c: Update.
10485 * linux-thread-db.c: Update.
10486 * main.c: Update.
10487 * mi/mi-cmd-break.c: Update.
10488 * mi/mi-cmd-stack.c: Update.
10489 * mi/mi-interp.c: Update.
10490 * mi/mi-main.c: Update.
10491 * objc-lang.c: Update.
10492 * p-valprint.c: Update.
10493 * parse.c: Update.
10494 * ppc-linux-tdep.c: Update.
10495 * printcmd.c: Update.
10496 * python/py-arch.c: Update.
10497 * python/py-breakpoint.c: Update.
10498 * python/py-cmd.c: Update.
10499 * python/py-finishbreakpoint.c: Update.
10500 * python/py-frame.c: Update.
10501 * python/py-framefilter.c: Update.
10502 * python/py-gdb-readline.c: Update.
10503 * python/py-inferior.c: Update.
10504 * python/py-infthread.c: Update.
10505 * python/py-lazy-string.c: Update.
10506 * python/py-linetable.c: Update.
10507 * python/py-objfile.c: Update.
10508 * python/py-param.c: Update.
10509 * python/py-prettyprint.c: Update.
10510 * python/py-progspace.c: Update.
10511 * python/py-record-btrace.c: Update.
10512 * python/py-record.c: Update.
10513 * python/py-symbol.c: Update.
10514 * python/py-type.c: Update.
10515 * python/py-unwind.c: Update.
10516 * python/py-utils.c: Update.
10517 * python/py-value.c: Update.
10518 * python/python.c: Update.
10519 * record-btrace.c: Update.
10520 * record-full.c: Update.
10521 * remote-fileio.c: Update.
10522 * remote.c: Update.
10523 * riscv-tdep.c: Update.
10524 * rs6000-aix-tdep.c: Update.
10525 * rs6000-tdep.c: Update.
10526 * rust-exp.y: Update.
10527 * rust-lang.c: Update.
10528 * s390-tdep.c: Update.
10529 * selftest-arch.c: Update.
10530 * solib-dsbt.c: Update.
10531 * solib-frv.c: Update.
10532 * solib-spu.c: Update.
10533 * solib-svr4.c: Update.
10534 * solib.c: Update.
10535 * sparc64-linux-tdep.c: Update.
10536 * stack.c: Update.
10537 * symfile-mem.c: Update.
10538 * symmisc.c: Update.
10539 * target.c: Update.
10540 * thread.c: Update.
10541 * top.c: Update.
10542 * tracefile-tfile.c: Update.
10543 * tui/tui.c: Update.
10544 * typeprint.c: Update.
10545 * unittests/cli-utils-selftests.c: Update.
10546 * unittests/parse-connection-spec-selftests.c: Update.
10547 * valops.c: Update.
10548 * valprint.c: Update.
10549 * value.c: Update.
10550 * varobj.c: Update.
10551 * windows-nat.c: Update.
10552 * x86-linux-nat.c: Update.
10553 * xml-support.c: Update.
10554
10555 2019-04-08 Tom Tromey <tom@tromey.com>
10556
10557 * xml-support.c: Use C++ exception handling.
10558 * x86-linux-nat.c: Use C++ exception handling.
10559 * windows-nat.c: Use C++ exception handling.
10560 * varobj.c: Use C++ exception handling.
10561 * value.c: Use C++ exception handling.
10562 * valprint.c: Use C++ exception handling.
10563 * valops.c: Use C++ exception handling.
10564 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10565 handling.
10566 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10567 * typeprint.c: Use C++ exception handling.
10568 * tui/tui.c: Use C++ exception handling.
10569 * tracefile-tfile.c: Use C++ exception handling.
10570 * top.c: Use C++ exception handling.
10571 * thread.c: Use C++ exception handling.
10572 * target.c: Use C++ exception handling.
10573 * symmisc.c: Use C++ exception handling.
10574 * symfile-mem.c: Use C++ exception handling.
10575 * stack.c: Use C++ exception handling.
10576 * sparc64-linux-tdep.c: Use C++ exception handling.
10577 * solib.c: Use C++ exception handling.
10578 * solib-svr4.c: Use C++ exception handling.
10579 * solib-spu.c: Use C++ exception handling.
10580 * solib-frv.c: Use C++ exception handling.
10581 * solib-dsbt.c: Use C++ exception handling.
10582 * selftest-arch.c: Use C++ exception handling.
10583 * s390-tdep.c: Use C++ exception handling.
10584 * rust-lang.c: Use C++ exception handling.
10585 * rust-exp.y: Use C++ exception handling.
10586 * rs6000-tdep.c: Use C++ exception handling.
10587 * rs6000-aix-tdep.c: Use C++ exception handling.
10588 * riscv-tdep.c: Use C++ exception handling.
10589 * remote.c: Use C++ exception handling.
10590 * remote-fileio.c: Use C++ exception handling.
10591 * record-full.c: Use C++ exception handling.
10592 * record-btrace.c: Use C++ exception handling.
10593 * python/python.c: Use C++ exception handling.
10594 * python/py-value.c: Use C++ exception handling.
10595 * python/py-utils.c: Use C++ exception handling.
10596 * python/py-unwind.c: Use C++ exception handling.
10597 * python/py-type.c: Use C++ exception handling.
10598 * python/py-symbol.c: Use C++ exception handling.
10599 * python/py-record.c: Use C++ exception handling.
10600 * python/py-record-btrace.c: Use C++ exception handling.
10601 * python/py-progspace.c: Use C++ exception handling.
10602 * python/py-prettyprint.c: Use C++ exception handling.
10603 * python/py-param.c: Use C++ exception handling.
10604 * python/py-objfile.c: Use C++ exception handling.
10605 * python/py-linetable.c: Use C++ exception handling.
10606 * python/py-lazy-string.c: Use C++ exception handling.
10607 * python/py-infthread.c: Use C++ exception handling.
10608 * python/py-inferior.c: Use C++ exception handling.
10609 * python/py-gdb-readline.c: Use C++ exception handling.
10610 * python/py-framefilter.c: Use C++ exception handling.
10611 * python/py-frame.c: Use C++ exception handling.
10612 * python/py-finishbreakpoint.c: Use C++ exception handling.
10613 * python/py-cmd.c: Use C++ exception handling.
10614 * python/py-breakpoint.c: Use C++ exception handling.
10615 * python/py-arch.c: Use C++ exception handling.
10616 * printcmd.c: Use C++ exception handling.
10617 * ppc-linux-tdep.c: Use C++ exception handling.
10618 * parse.c: Use C++ exception handling.
10619 * p-valprint.c: Use C++ exception handling.
10620 * objc-lang.c: Use C++ exception handling.
10621 * mi/mi-main.c: Use C++ exception handling.
10622 * mi/mi-interp.c: Use C++ exception handling.
10623 * mi/mi-cmd-stack.c: Use C++ exception handling.
10624 * mi/mi-cmd-break.c: Use C++ exception handling.
10625 * main.c: Use C++ exception handling.
10626 * linux-thread-db.c: Use C++ exception handling.
10627 * linux-tdep.c: Use C++ exception handling.
10628 * linux-nat.c: Use C++ exception handling.
10629 * linux-fork.c: Use C++ exception handling.
10630 * linespec.c: Use C++ exception handling.
10631 * language.c: Use C++ exception handling.
10632 * jit.c: Use C++ exception handling.
10633 * infrun.c: Use C++ exception handling.
10634 * infcmd.c: Use C++ exception handling.
10635 * infcall.c: Use C++ exception handling.
10636 * inf-loop.c: Use C++ exception handling.
10637 * i386-tdep.c: Use C++ exception handling.
10638 * i386-linux-tdep.c: Use C++ exception handling.
10639 * guile/scm-value.c: Use C++ exception handling.
10640 * guile/scm-type.c: Use C++ exception handling.
10641 * guile/scm-symtab.c: Use C++ exception handling.
10642 * guile/scm-symbol.c: Use C++ exception handling.
10643 * guile/scm-pretty-print.c: Use C++ exception handling.
10644 * guile/scm-ports.c: Use C++ exception handling.
10645 * guile/scm-param.c: Use C++ exception handling.
10646 * guile/scm-math.c: Use C++ exception handling.
10647 * guile/scm-lazy-string.c: Use C++ exception handling.
10648 * guile/scm-frame.c: Use C++ exception handling.
10649 * guile/scm-disasm.c: Use C++ exception handling.
10650 * guile/scm-cmd.c: Use C++ exception handling.
10651 * guile/scm-breakpoint.c: Use C++ exception handling.
10652 * guile/scm-block.c: Use C++ exception handling.
10653 * guile/guile-internal.h: Use C++ exception handling.
10654 * gnu-v3-abi.c: Use C++ exception handling.
10655 * gdbtypes.c: Use C++ exception handling.
10656 * frame.c: Use C++ exception handling.
10657 * frame-unwind.c: Use C++ exception handling.
10658 * fbsd-tdep.c: Use C++ exception handling.
10659 * f-valprint.c: Use C++ exception handling.
10660 * exec.c: Use C++ exception handling.
10661 * event-top.c: Use C++ exception handling.
10662 * event-loop.c: Use C++ exception handling.
10663 * eval.c: Use C++ exception handling.
10664 * dwarf2read.c: Use C++ exception handling.
10665 * dwarf2loc.c: Use C++ exception handling.
10666 * dwarf2-frame.c: Use C++ exception handling.
10667 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10668 * dwarf-index-write.c: Use C++ exception handling.
10669 * dwarf-index-cache.c: Use C++ exception handling.
10670 * dtrace-probe.c: Use C++ exception handling.
10671 * disasm-selftests.c: Use C++ exception handling.
10672 * darwin-nat.c: Use C++ exception handling.
10673 * cp-valprint.c: Use C++ exception handling.
10674 * cp-support.c: Use C++ exception handling.
10675 * cp-abi.c: Use C++ exception handling.
10676 * corelow.c: Use C++ exception handling.
10677 * completer.c: Use C++ exception handling.
10678 * compile/compile-object-run.c: Use C++ exception handling.
10679 * compile/compile-object-load.c: Use C++ exception handling.
10680 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10681 * compile/compile-c-symbols.c: Use C++ exception handling.
10682 * common/selftest.c: Use C++ exception handling.
10683 * common/new-op.c: Use C++ exception handling.
10684 * cli/cli-script.c: Use C++ exception handling.
10685 * cli/cli-interp.c: Use C++ exception handling.
10686 * cli/cli-cmds.c: Use C++ exception handling.
10687 * c-varobj.c: Use C++ exception handling.
10688 * btrace.c: Use C++ exception handling.
10689 * breakpoint.c: Use C++ exception handling.
10690 * break-catch-throw.c: Use C++ exception handling.
10691 * arch-utils.c: Use C++ exception handling.
10692 * amd64-tdep.c: Use C++ exception handling.
10693 * ada-valprint.c: Use C++ exception handling.
10694 * ada-typeprint.c: Use C++ exception handling.
10695 * ada-lang.c: Use C++ exception handling.
10696 * aarch64-tdep.c: Use C++ exception handling.
10697
10698 2019-04-08 Tom Tromey <tom@tromey.com>
10699
10700 * xml-support.c (gdb_xml_parser::parse): Update.
10701 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10702 * value.c (show_convenience): Update.
10703 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10704 (test_parse_flags_qcs): Update.
10705 * thread.c (thr_try_catch_cmd): Update.
10706 * target.c (target_translate_tls_address): Update.
10707 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10708 (info_frame_command_core, frame_apply_command_count): Update.
10709 * rust-exp.y (rust_lex_exception_test): Update.
10710 * riscv-tdep.c (riscv_print_one_register_info): Update.
10711 * remote.c (remote_target::enable_btrace): Update.
10712 * record-btrace.c (record_btrace_enable_warn): Update.
10713 * python/py-utils.c (gdbpy_convert_exception): Update.
10714 * printcmd.c (do_one_display, print_variable_and_value): Update.
10715 * mi/mi-main.c (mi_print_exception): Update.
10716 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10717 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10718 * linux-nat.c (linux_nat_target::attach): Update.
10719 * linux-fork.c (class scoped_switch_fork_info): Update.
10720 * infrun.c (displaced_step_prepare): Update.
10721 * infcall.c (call_function_by_hand_dummy): Update.
10722 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10723 * gnu-v3-abi.c (print_one_vtable): Update.
10724 * frame.c (get_prev_frame_always): Update.
10725 * f-valprint.c (info_common_command_for_block): Update.
10726 * exec.c (try_open_exec_file): Update.
10727 * exceptions.c (print_exception, exception_print)
10728 (exception_fprintf, exception_print_same): Update.
10729 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10730 * dwarf-index-cache.c (index_cache::store)
10731 (index_cache::lookup_gdb_index): Update.
10732 * darwin-nat.c (maybe_cache_shell): Update.
10733 * cp-valprint.c (cp_print_value_fields): Update.
10734 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10735 (gcc_cplus_symbol_address): Update.
10736 * compile/compile-c-symbols.c (gcc_convert_symbol)
10737 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10738 * common/selftest.c: Update.
10739 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10740 a std::string.
10741 (exception_try_scope_entry, exception_try_scope_exit): Don't
10742 declare.
10743 (struct exception_try_scope): Remove.
10744 (TRY): Don't use exception_try_scope.
10745 (struct gdb_exception): Add constructor, operator=.
10746 <what>: New method.
10747 (struct gdb_exception_RETURN_MASK_ALL)
10748 (struct gdb_exception_RETURN_MASK_ERROR)
10749 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10750 (struct gdb_quit_bad_alloc): Update.
10751 * common/common-exceptions.c (exception_none): Change
10752 initializer.
10753 (struct catcher) <state, exception>: Initialize inline.
10754 <prev>: Remove member.
10755 (current_catcher): Remove.
10756 (catchers): New global.
10757 (exceptions_state_mc_init): Simplify.
10758 (catcher_pop): Remove.
10759 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10760 (try_scope_depth, exception_try_scope_entry)
10761 (exception_try_scope_exit): Remove.
10762 (throw_exception_sjlj): Update.
10763 (exception_messages, exception_messages_size): Remove.
10764 (throw_it): Simplify.
10765 (gdb_exception_sliced_copy): Remove.
10766 (throw_exception_cxx): Update.
10767 * cli/cli-script.c (script_from_file): Update.
10768 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10769 Update.
10770 * ada-valprint.c (ada_val_print): Update.
10771 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10772 (create_excep_cond_exprs): Update.
10773
10774 2019-04-08 Tom Tromey <tom@tromey.com>
10775
10776 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10777 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10778 (TRY, CATCH, END_CATCH): Remove some definitions.
10779 * common/common-exceptions.c: Don't use GDB_XCPT.
10780 (catcher_list_size): Remove.
10781 (throw_exception, throw_it): Simplify.
10782
10783 2019-04-05 Tom Tromey <tom@tromey.com>
10784
10785 Revert the header-sorting patch.
10786 * ft32-tdep.c: Revert.
10787 * frv-tdep.c: Revert.
10788 * frv-linux-tdep.c: Revert.
10789 * frame.c: Revert.
10790 * frame-unwind.c: Revert.
10791 * frame-base.c: Revert.
10792 * fork-child.c: Revert.
10793 * findvar.c: Revert.
10794 * findcmd.c: Revert.
10795 * filesystem.c: Revert.
10796 * filename-seen-cache.h: Revert.
10797 * filename-seen-cache.c: Revert.
10798 * fbsd-tdep.c: Revert.
10799 * fbsd-nat.h: Revert.
10800 * fbsd-nat.c: Revert.
10801 * f-valprint.c: Revert.
10802 * f-typeprint.c: Revert.
10803 * f-lang.c: Revert.
10804 * extension.h: Revert.
10805 * extension.c: Revert.
10806 * extension-priv.h: Revert.
10807 * expprint.c: Revert.
10808 * exec.h: Revert.
10809 * exec.c: Revert.
10810 * exceptions.c: Revert.
10811 * event-top.c: Revert.
10812 * event-loop.c: Revert.
10813 * eval.c: Revert.
10814 * elfread.c: Revert.
10815 * dwarf2read.h: Revert.
10816 * dwarf2read.c: Revert.
10817 * dwarf2loc.c: Revert.
10818 * dwarf2expr.h: Revert.
10819 * dwarf2expr.c: Revert.
10820 * dwarf2-frame.c: Revert.
10821 * dwarf2-frame-tailcall.c: Revert.
10822 * dwarf-index-write.h: Revert.
10823 * dwarf-index-write.c: Revert.
10824 * dwarf-index-common.c: Revert.
10825 * dwarf-index-cache.h: Revert.
10826 * dwarf-index-cache.c: Revert.
10827 * dummy-frame.c: Revert.
10828 * dtrace-probe.c: Revert.
10829 * disasm.h: Revert.
10830 * disasm.c: Revert.
10831 * disasm-selftests.c: Revert.
10832 * dictionary.c: Revert.
10833 * dicos-tdep.c: Revert.
10834 * demangle.c: Revert.
10835 * dcache.h: Revert.
10836 * dcache.c: Revert.
10837 * darwin-nat.h: Revert.
10838 * darwin-nat.c: Revert.
10839 * darwin-nat-info.c: Revert.
10840 * d-valprint.c: Revert.
10841 * d-namespace.c: Revert.
10842 * d-lang.c: Revert.
10843 * ctf.c: Revert.
10844 * csky-tdep.c: Revert.
10845 * csky-linux-tdep.c: Revert.
10846 * cris-tdep.c: Revert.
10847 * cris-linux-tdep.c: Revert.
10848 * cp-valprint.c: Revert.
10849 * cp-support.c: Revert.
10850 * cp-namespace.c: Revert.
10851 * cp-abi.c: Revert.
10852 * corelow.c: Revert.
10853 * corefile.c: Revert.
10854 * continuations.c: Revert.
10855 * completer.h: Revert.
10856 * completer.c: Revert.
10857 * complaints.c: Revert.
10858 * coffread.c: Revert.
10859 * coff-pe-read.c: Revert.
10860 * cli-out.h: Revert.
10861 * cli-out.c: Revert.
10862 * charset.c: Revert.
10863 * c-varobj.c: Revert.
10864 * c-valprint.c: Revert.
10865 * c-typeprint.c: Revert.
10866 * c-lang.c: Revert.
10867 * buildsym.c: Revert.
10868 * buildsym-legacy.c: Revert.
10869 * build-id.h: Revert.
10870 * build-id.c: Revert.
10871 * btrace.c: Revert.
10872 * bsd-uthread.c: Revert.
10873 * breakpoint.h: Revert.
10874 * breakpoint.c: Revert.
10875 * break-catch-throw.c: Revert.
10876 * break-catch-syscall.c: Revert.
10877 * break-catch-sig.c: Revert.
10878 * blockframe.c: Revert.
10879 * block.c: Revert.
10880 * bfin-tdep.c: Revert.
10881 * bfin-linux-tdep.c: Revert.
10882 * bfd-target.c: Revert.
10883 * bcache.c: Revert.
10884 * ax-general.c: Revert.
10885 * ax-gdb.h: Revert.
10886 * ax-gdb.c: Revert.
10887 * avr-tdep.c: Revert.
10888 * auxv.c: Revert.
10889 * auto-load.c: Revert.
10890 * arm-wince-tdep.c: Revert.
10891 * arm-tdep.c: Revert.
10892 * arm-symbian-tdep.c: Revert.
10893 * arm-pikeos-tdep.c: Revert.
10894 * arm-obsd-tdep.c: Revert.
10895 * arm-nbsd-tdep.c: Revert.
10896 * arm-nbsd-nat.c: Revert.
10897 * arm-linux-tdep.c: Revert.
10898 * arm-linux-nat.c: Revert.
10899 * arm-fbsd-tdep.c: Revert.
10900 * arm-fbsd-nat.c: Revert.
10901 * arm-bsd-tdep.c: Revert.
10902 * arch-utils.c: Revert.
10903 * arc-tdep.c: Revert.
10904 * arc-newlib-tdep.c: Revert.
10905 * annotate.h: Revert.
10906 * annotate.c: Revert.
10907 * amd64-windows-tdep.c: Revert.
10908 * amd64-windows-nat.c: Revert.
10909 * amd64-tdep.c: Revert.
10910 * amd64-sol2-tdep.c: Revert.
10911 * amd64-obsd-tdep.c: Revert.
10912 * amd64-obsd-nat.c: Revert.
10913 * amd64-nbsd-tdep.c: Revert.
10914 * amd64-nbsd-nat.c: Revert.
10915 * amd64-nat.c: Revert.
10916 * amd64-linux-tdep.c: Revert.
10917 * amd64-linux-nat.c: Revert.
10918 * amd64-fbsd-tdep.c: Revert.
10919 * amd64-fbsd-nat.c: Revert.
10920 * amd64-dicos-tdep.c: Revert.
10921 * amd64-darwin-tdep.c: Revert.
10922 * amd64-bsd-nat.c: Revert.
10923 * alpha-tdep.c: Revert.
10924 * alpha-obsd-tdep.c: Revert.
10925 * alpha-nbsd-tdep.c: Revert.
10926 * alpha-mdebug-tdep.c: Revert.
10927 * alpha-linux-tdep.c: Revert.
10928 * alpha-linux-nat.c: Revert.
10929 * alpha-bsd-tdep.c: Revert.
10930 * alpha-bsd-nat.c: Revert.
10931 * aix-thread.c: Revert.
10932 * agent.c: Revert.
10933 * addrmap.c: Revert.
10934 * ada-varobj.c: Revert.
10935 * ada-valprint.c: Revert.
10936 * ada-typeprint.c: Revert.
10937 * ada-tasks.c: Revert.
10938 * ada-lang.c: Revert.
10939 * aarch64-tdep.c: Revert.
10940 * aarch64-ravenscar-thread.c: Revert.
10941 * aarch64-newlib-tdep.c: Revert.
10942 * aarch64-linux-tdep.c: Revert.
10943 * aarch64-linux-nat.c: Revert.
10944 * aarch64-fbsd-tdep.c: Revert.
10945 * aarch64-fbsd-nat.c: Revert.
10946 * aarch32-linux-nat.c: Revert.
10947
10948 2019-04-05 Tom Tromey <tom@tromey.com>
10949
10950 * ft32-tdep.c: Sort headers.
10951 * frv-tdep.c: Sort headers.
10952 * frv-linux-tdep.c: Sort headers.
10953 * frame.c: Sort headers.
10954 * frame-unwind.c: Sort headers.
10955 * frame-base.c: Sort headers.
10956 * fork-child.c: Sort headers.
10957 * findvar.c: Sort headers.
10958 * findcmd.c: Sort headers.
10959 * filesystem.c: Sort headers.
10960 * filename-seen-cache.h: Sort headers.
10961 * filename-seen-cache.c: Sort headers.
10962 * fbsd-tdep.c: Sort headers.
10963 * fbsd-nat.h: Sort headers.
10964 * fbsd-nat.c: Sort headers.
10965 * f-valprint.c: Sort headers.
10966 * f-typeprint.c: Sort headers.
10967 * f-lang.c: Sort headers.
10968 * extension.h: Sort headers.
10969 * extension.c: Sort headers.
10970 * extension-priv.h: Sort headers.
10971 * expprint.c: Sort headers.
10972 * exec.h: Sort headers.
10973 * exec.c: Sort headers.
10974 * exceptions.c: Sort headers.
10975 * event-top.c: Sort headers.
10976 * event-loop.c: Sort headers.
10977 * eval.c: Sort headers.
10978 * elfread.c: Sort headers.
10979 * dwarf2read.h: Sort headers.
10980 * dwarf2read.c: Sort headers.
10981 * dwarf2loc.c: Sort headers.
10982 * dwarf2expr.h: Sort headers.
10983 * dwarf2expr.c: Sort headers.
10984 * dwarf2-frame.c: Sort headers.
10985 * dwarf2-frame-tailcall.c: Sort headers.
10986 * dwarf-index-write.h: Sort headers.
10987 * dwarf-index-write.c: Sort headers.
10988 * dwarf-index-common.c: Sort headers.
10989 * dwarf-index-cache.h: Sort headers.
10990 * dwarf-index-cache.c: Sort headers.
10991 * dummy-frame.c: Sort headers.
10992 * dtrace-probe.c: Sort headers.
10993 * disasm.h: Sort headers.
10994 * disasm.c: Sort headers.
10995 * disasm-selftests.c: Sort headers.
10996 * dictionary.c: Sort headers.
10997 * dicos-tdep.c: Sort headers.
10998 * demangle.c: Sort headers.
10999 * dcache.h: Sort headers.
11000 * dcache.c: Sort headers.
11001 * darwin-nat.h: Sort headers.
11002 * darwin-nat.c: Sort headers.
11003 * darwin-nat-info.c: Sort headers.
11004 * d-valprint.c: Sort headers.
11005 * d-namespace.c: Sort headers.
11006 * d-lang.c: Sort headers.
11007 * ctf.c: Sort headers.
11008 * csky-tdep.c: Sort headers.
11009 * csky-linux-tdep.c: Sort headers.
11010 * cris-tdep.c: Sort headers.
11011 * cris-linux-tdep.c: Sort headers.
11012 * cp-valprint.c: Sort headers.
11013 * cp-support.c: Sort headers.
11014 * cp-namespace.c: Sort headers.
11015 * cp-abi.c: Sort headers.
11016 * corelow.c: Sort headers.
11017 * corefile.c: Sort headers.
11018 * continuations.c: Sort headers.
11019 * completer.h: Sort headers.
11020 * completer.c: Sort headers.
11021 * complaints.c: Sort headers.
11022 * coffread.c: Sort headers.
11023 * coff-pe-read.c: Sort headers.
11024 * cli-out.h: Sort headers.
11025 * cli-out.c: Sort headers.
11026 * charset.c: Sort headers.
11027 * c-varobj.c: Sort headers.
11028 * c-valprint.c: Sort headers.
11029 * c-typeprint.c: Sort headers.
11030 * c-lang.c: Sort headers.
11031 * buildsym.c: Sort headers.
11032 * buildsym-legacy.c: Sort headers.
11033 * build-id.h: Sort headers.
11034 * build-id.c: Sort headers.
11035 * btrace.c: Sort headers.
11036 * bsd-uthread.c: Sort headers.
11037 * breakpoint.h: Sort headers.
11038 * breakpoint.c: Sort headers.
11039 * break-catch-throw.c: Sort headers.
11040 * break-catch-syscall.c: Sort headers.
11041 * break-catch-sig.c: Sort headers.
11042 * blockframe.c: Sort headers.
11043 * block.c: Sort headers.
11044 * bfin-tdep.c: Sort headers.
11045 * bfin-linux-tdep.c: Sort headers.
11046 * bfd-target.c: Sort headers.
11047 * bcache.c: Sort headers.
11048 * ax-general.c: Sort headers.
11049 * ax-gdb.h: Sort headers.
11050 * ax-gdb.c: Sort headers.
11051 * avr-tdep.c: Sort headers.
11052 * auxv.c: Sort headers.
11053 * auto-load.c: Sort headers.
11054 * arm-wince-tdep.c: Sort headers.
11055 * arm-tdep.c: Sort headers.
11056 * arm-symbian-tdep.c: Sort headers.
11057 * arm-pikeos-tdep.c: Sort headers.
11058 * arm-obsd-tdep.c: Sort headers.
11059 * arm-nbsd-tdep.c: Sort headers.
11060 * arm-nbsd-nat.c: Sort headers.
11061 * arm-linux-tdep.c: Sort headers.
11062 * arm-linux-nat.c: Sort headers.
11063 * arm-fbsd-tdep.c: Sort headers.
11064 * arm-fbsd-nat.c: Sort headers.
11065 * arm-bsd-tdep.c: Sort headers.
11066 * arch-utils.c: Sort headers.
11067 * arc-tdep.c: Sort headers.
11068 * arc-newlib-tdep.c: Sort headers.
11069 * annotate.h: Sort headers.
11070 * annotate.c: Sort headers.
11071 * amd64-windows-tdep.c: Sort headers.
11072 * amd64-windows-nat.c: Sort headers.
11073 * amd64-tdep.c: Sort headers.
11074 * amd64-sol2-tdep.c: Sort headers.
11075 * amd64-obsd-tdep.c: Sort headers.
11076 * amd64-obsd-nat.c: Sort headers.
11077 * amd64-nbsd-tdep.c: Sort headers.
11078 * amd64-nbsd-nat.c: Sort headers.
11079 * amd64-nat.c: Sort headers.
11080 * amd64-linux-tdep.c: Sort headers.
11081 * amd64-linux-nat.c: Sort headers.
11082 * amd64-fbsd-tdep.c: Sort headers.
11083 * amd64-fbsd-nat.c: Sort headers.
11084 * amd64-dicos-tdep.c: Sort headers.
11085 * amd64-darwin-tdep.c: Sort headers.
11086 * amd64-bsd-nat.c: Sort headers.
11087 * alpha-tdep.c: Sort headers.
11088 * alpha-obsd-tdep.c: Sort headers.
11089 * alpha-nbsd-tdep.c: Sort headers.
11090 * alpha-mdebug-tdep.c: Sort headers.
11091 * alpha-linux-tdep.c: Sort headers.
11092 * alpha-linux-nat.c: Sort headers.
11093 * alpha-bsd-tdep.c: Sort headers.
11094 * alpha-bsd-nat.c: Sort headers.
11095 * aix-thread.c: Sort headers.
11096 * agent.c: Sort headers.
11097 * addrmap.c: Sort headers.
11098 * ada-varobj.c: Sort headers.
11099 * ada-valprint.c: Sort headers.
11100 * ada-typeprint.c: Sort headers.
11101 * ada-tasks.c: Sort headers.
11102 * ada-lang.c: Sort headers.
11103 * aarch64-tdep.c: Sort headers.
11104 * aarch64-ravenscar-thread.c: Sort headers.
11105 * aarch64-newlib-tdep.c: Sort headers.
11106 * aarch64-linux-tdep.c: Sort headers.
11107 * aarch64-linux-nat.c: Sort headers.
11108 * aarch64-fbsd-tdep.c: Sort headers.
11109 * aarch64-fbsd-nat.c: Sort headers.
11110 * aarch32-linux-nat.c: Sort headers.
11111
11112 2019-04-04 Tom Tromey <tom@tromey.com>
11113
11114 * varobj.c (varobj_create): Update.
11115 * rust-exp.y (struct rust_parser) <update_innermost_block,
11116 lookup_symbol>: New methods.
11117 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11118 Rename.
11119 (rust_parser::rust_lookup_type)
11120 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11121 * printcmd.c (display_command, do_one_display): Update.
11122 * parser-defs.h (struct parser_state) <parser_state>: Add
11123 "tracker" parameter.
11124 (block_tracker): New member.
11125 (class innermost_block_tracker) <innermost_block_tracker>: Add
11126 "types" parameter.
11127 <reset>: Remove method.
11128 (innermost_block): Don't declare.
11129 (null_post_parser): Update.
11130 * parse.c (innermost_block): Remove global.
11131 (write_dollar_variable): Update.
11132 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11133 Remove "tracker_types" parameter.
11134 (parse_expression): Add "tracker" parameter.
11135 (parse_expression_for_completion): Update.
11136 (null_post_parser): Add "tracker" parameter.
11137 * p-exp.y: Update rules.
11138 * m2-exp.y: Update rules.
11139 * language.h (struct language_defn) <la_post_parser>: Add
11140 "tracker" parameter.
11141 * go-exp.y: Update rules.
11142 * f-exp.y: Update rules.
11143 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11144 parameter.
11145 * d-exp.y: Update rules.
11146 * c-exp.y: Update rules.
11147 * breakpoint.c (set_breakpoint_condition): Create an
11148 innermost_block_tracker.
11149 (watch_command_1): Likewise.
11150 * ada-lang.c (resolve): Add "tracker" parameter.
11151 (resolve_subexp): Likewise.
11152 * ada-exp.y (write_var_from_sym): Update.
11153
11154 2019-04-04 Tom Tromey <tom@tromey.com>
11155
11156 * type-stack.h: New file.
11157 * type-stack.c: New file.
11158 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11159 type-stack.h.
11160 (insert_into_type_stack, insert_type, push_type, push_type_int)
11161 (insert_type_address_space, pop_type, pop_type_int)
11162 (pop_typelist, pop_type_stack, append_type_stack)
11163 (push_type_stack, get_type_stack, push_typelist)
11164 (follow_type_instance_flags, follow_types): Don't declare.
11165 * parse.c (type_stack): Remove global.
11166 (parse_exp_in_context): Update.
11167 (insert_into_type_stack, insert_type, push_type, push_type_int)
11168 (insert_type_address_space, pop_type, pop_type_int)
11169 (pop_typelist, pop_type_stack, append_type_stack)
11170 (push_type_stack, get_type_stack, push_typelist)
11171 (follow_type_instance_flags, follow_types): Remove (moved to
11172 type-stack.c).
11173 * f-exp.y (type_stack): New global.
11174 Update rules.
11175 (push_kind_type, f_parse): Update.
11176 * d-exp.y (type_stack): New global.
11177 Update rules.
11178 (d_parse): Update.
11179 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11180 Update rules.
11181 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11182 (HFILES_NO_SRCDIR): Add type-stack.h.
11183
11184 2019-04-04 Tom Tromey <tom@tromey.com>
11185
11186 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11187 (rust_parser::convert_ast_to_expression, rust_parse)
11188 (rust_lex_test_completion, rust_lex_tests): Update.
11189 * parser-defs.h (struct expr_completion_state): New.
11190 (struct parser_state) <parser_state>: Add completion parameter.
11191 <mark_struct_expression, mark_completion_tag>: New methods.
11192 <parse_completion, m_completion_state>: New members.
11193 (prefixify_expression, null_post_parser): Update.
11194 (mark_struct_expression, mark_completion_tag): Don't declare.
11195 * parse.c (parse_completion, expout_last_struct)
11196 (expout_tag_completion_type, expout_completion_name): Remove
11197 globals.
11198 (parser_state::mark_struct_expression)
11199 (parser_state::mark_completion_tag): Now methods.
11200 (prefixify_expression): Add last_struct parameter.
11201 (prefixify_subexp): Likewise.
11202 (parse_exp_1): Update.
11203 (parse_exp_in_context): Add cstate parameter. Update.
11204 (parse_expression_for_completion): Create an
11205 expr_completion_state.
11206 (null_post_parser): Add "completion" parameter.
11207 * p-exp.y: Update rules.
11208 (yylex): Update.
11209 * language.h (struct language_defn) <la_post_parser>: Add
11210 "completing" parameter.
11211 * go-exp.y: Update rules.
11212 (lex_one_token): Update.
11213 * expression.h (parse_completion): Don't declare.
11214 * d-exp.y: Update rules.
11215 (lex_one_token): Update rules.
11216 * c-exp.y: Update rules.
11217 (lex_one_token): Update.
11218 * ada-lang.c (resolve): Add "parse_completion" parameter.
11219 (resolve_subexp): Likewise.
11220 (ada_resolve_function): Likewise.
11221
11222 2019-04-04 Tom Tromey <tom@tromey.com>
11223
11224 * parser-defs.h (struct parser_state) <start_arglist,
11225 end_arglist>: New methods.
11226 <arglist_len, m_funcall_chain>: New members.
11227 (arglist_len, start_arglist, end_arglist): Don't declare.
11228 * parse.c (arglist_len, funcall_chain): Remove global.
11229 (start_arglist, end_arglist): Remove functions.
11230 (parse_exp_in_context): Update.
11231 * p-exp.y: Update rules.
11232 * m2-exp.y: Update rules.
11233 * go-exp.y: Update rules.
11234 * f-exp.y: Update rules.
11235 * d-exp.y: Update rules.
11236 * c-exp.y: Update rules.
11237
11238 2019-04-04 Tom Tromey <tom@tromey.com>
11239
11240 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11241 lex_operator, push_back>: New methods.
11242 Update all rules.
11243 (rust_parser::lex_hex, lex_escape): Rename and update.
11244 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11245 (rust_parser::lex_operator): Rename and update.
11246 (rust_parser::lex_number, rustyylex, rustyyerror)
11247 (rust_lex_test_init, rust_lex_test_sequence)
11248 (rust_lex_test_push_back, rust_lex_tests): Update.
11249 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11250 parameter.
11251 <lexptr, prev_lexptr>: New members.
11252 (lexptr, prev_lexptr): Don't declare.
11253 * parse.c (lexptr, prev_lexptr): Remove globals.
11254 (parse_exp_in_context): Update.
11255 * p-exp.y (yylex, yyerror): Update.
11256 * m2-exp.y (parse_number, yylex, yyerror): Update.
11257 * go-exp.y (lex_one_token, yyerror): Update.
11258 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11259 * d-exp.y (lex_one_token, yyerror): Update.
11260 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11261 (lex_one_token, yyerror): Update.
11262 * ada-lex.l (YY_INPUT): Update.
11263 (rewind_to_char): Update.
11264 * ada-exp.y (yyerror): Update.
11265
11266 2019-04-04 Tom Tromey <tom@tromey.com>
11267
11268 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11269 * parser-defs.h (struct parser_state) <parser_state>: Add new
11270 parameter.
11271 <comma_terminates>: New member.
11272 (comma_terminates): Don't declare global.
11273 * parse.c (comma_terminates): Remove global.
11274 (parse_exp_in_context): Update.
11275 * p-exp.y (yylex): Update.
11276 * m2-exp.y (yylex): Update.
11277 * go-exp.y (lex_one_token): Update.
11278 * f-exp.y (yylex): Update.
11279 * d-exp.y (lex_one_token): Update.
11280 * c-exp.y (lex_one_token): Update.
11281 * ada-lex.l: Update.
11282
11283 2019-04-04 Tom Tromey <tom@tromey.com>
11284
11285 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11286 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11287 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11288 * parser-defs.h (paren_depth): Don't declare.
11289 * parse.c (paren_depth): Remove global.
11290 (parse_exp_in_context): Update.
11291 * p-exp.y (paren_depth): New global.
11292 (pascal_parse): Initialize it.
11293 * m2-exp.y (paren_depth): New global.
11294 (m2_parse): Initialize it.
11295 * go-exp.y (paren_depth): New global.
11296 (go_parse): Initialize it.
11297 * f-exp.y (paren_depth): New global.
11298 (f_parse): Initialize it.
11299 * d-exp.y (paren_depth): New global.
11300 (d_parse): Initialize it.
11301 * c-exp.y (paren_depth): New global.
11302 (c_parse): Initialize it.
11303 * ada-lex.l (paren_depth): New global.
11304 (lexer_init): Initialize it.
11305
11306 2019-04-04 Tom Tromey <tom@tromey.com>
11307
11308 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11309 (rust_parser::convert_ast_to_type)
11310 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11311 * parser-defs.h (struct parser_state) <parser_state>: Add
11312 parameters. Initialize new members.
11313 <expression_context_block, expression_context_pc>: New members.
11314 * parse.c (expression_context_block, expression_context_pc):
11315 Remove globals.
11316 (parse_exp_in_context): Update.
11317 * p-exp.y: Update all rules.
11318 (yylex): Update.
11319 * m2-exp.y: Update all rules.
11320 (yylex): Update.
11321 * go-exp.y (yylex): Update.
11322 * f-exp.y (yylex): Update.
11323 * d-exp.y: Update all rules.
11324 (yylex): Update.
11325 * c-exp.y: Update all rules.
11326 (lex_one_token, classify_name, yylex, c_parse): Update.
11327 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11328
11329 2019-04-04 Tom Tromey <tom@tromey.com>
11330
11331 * gdbarch.h, gdbarch.c: Rebuild.
11332 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11333 * stap-probe.h:
11334 (struct stap_parse_info): Replace "parser_state" with
11335 "expr_builder".
11336 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11337 (parser_state): New class.
11338 * parse.c (expr_builder): Rename.
11339 (expr_builder::release): Rename.
11340 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11341 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11342 (write_exp_elt_longcst, write_exp_elt_floatcst)
11343 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11344 (write_exp_string_vector, write_exp_bitstring)
11345 (write_exp_msymbol, mark_struct_expression)
11346 (write_dollar_variable)
11347 (insert_type_address_space, increase_expout_size): Replace
11348 "parser_state" with "expr_builder".
11349 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11350 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11351 "parser_state" with "expr_builder".
11352
11353 2019-04-04 Tom Tromey <tom@tromey.com>
11354
11355 * rust-exp.y: Replace "parse_language" with method call.
11356 * p-exp.y:
11357 (yylex): Replace "parse_language" with method call.
11358 * m2-exp.y:
11359 (yylex): Replace "parse_language" with method call.
11360 * go-exp.y (classify_name): Replace "parse_language" with method
11361 call.
11362 * f-exp.y (yylex): Replace "parse_language" with method call.
11363 * d-exp.y (lex_one_token): Replace "parse_language" with method
11364 call.
11365 * c-exp.y:
11366 (lex_one_token, classify_name, yylex): Replace "parse_language"
11367 with method call.
11368 * ada-exp.y (find_primitive_type, type_char)
11369 (type_system_address): Replace "parse_language" with method call.
11370
11371 2019-04-04 Tom Tromey <tom@tromey.com>
11372
11373 * rust-exp.y: Replace "parse_gdbarch" with method call.
11374 * parse.c (write_dollar_variable, insert_type_address_space):
11375 Replace "parse_gdbarch" with method call.
11376 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11377 call.
11378 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11379 call.
11380 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11381 "parse_gdbarch" with method call.
11382 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11383 with method call.
11384 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11385 "parse_gdbarch" with method call.
11386 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11387 "parse_gdbarch" with method call.
11388 * c-exp.y (parse_type, parse_number, classify_name): Replace
11389 "parse_gdbarch" with method call.
11390 * ada-lex.l: Replace "parse_gdbarch" with method call.
11391 * ada-exp.y (parse_type, find_primitive_type, type_char)
11392 (type_system_address): Replace "parse_gdbarch" with method call.
11393
11394 2019-04-04 Tom Tromey <tom@tromey.com>
11395
11396 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11397 * stap-probe.c (stap_parse_argument): Update.
11398 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11399 initial_size parameter.
11400 * rust-exp.y (rust_lex_tests): Update.
11401 * parse.c (parser_state): Update.
11402 (parse_exp_in_context): Update.
11403 * parser-defs.h (struct parser_state) <parser_state>: Remove
11404 "initial_size" parameter.
11405
11406 2019-04-04 Tom Tromey <tom@tromey.com>
11407
11408 * parser-defs.h (increase_expout_size): Don't declare.
11409 * parse.c (increase_expout_size): Now static.
11410
11411 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11412
11413 * gnu-nat.c (gnu_nat_target::wait): Fix
11414 target_waitstatus_to_string call.
11415
11416 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11417
11418 * eval.c (evaluate_subexp_standard): Handle internal functions
11419 during Fortran function call handling.
11420
11421 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11422
11423 * NEWS: Mention new internal functions.
11424 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11425 (read_base_type): Use dwarf2_init_complex_target_type.
11426 * value.c (creal_internal_fn): New function.
11427 (cimag_internal_fn): New function.
11428 (_initialize_values): Register new internal functions.
11429
11430 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11431
11432 * infrun.c (stop_all_threads): If debug_infrun, always
11433 trace the wait status after wait_one, using
11434 target_waitstatus_to_string and target_pid_to_str.
11435 (handle_inferior_event): Replace various trace of
11436 wait status kind by a single trace.
11437 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11438 wait status kind image by target_waitstatus_to_string.
11439 * target/waitstatus.c (target_waitstatus_to_string): Fix
11440 obsolete comment.
11441
11442 2019-04-01 Tom Tromey <tromey@adacore.com>
11443
11444 PR symtab/23331:
11445 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11446
11447 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11448 Pedro Alves <palves@redhat.com>
11449
11450 * top.c (quit_force): Call 'finalize_values'.
11451 * value.c (finalize_values): New function.
11452 * value.h (finalize_values): Declare.
11453
11454 2019-03-30 Eli Zaretskii <eliz@gnu.org>
11455
11456 * NEWS: Announce $_gdb_major and $_gdb_minor.
11457
11458 * top.c (init_gdb_version_vars): New function.
11459 (gdb_init): Call init_gdb_version_vars.
11460
11461 2019-03-29 Tom Tromey <tromey@adacore.com>
11462
11463 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11464 help text. Remove dead code.
11465
11466 2019-03-29 Keith Seitz <keiths@redhat.com>
11467
11468 From Siddhesh Poyarekar:
11469 * f-lang.h (f77_get_upperbound): Return LONGEST.
11470 (f77_get_lowerbound): Likewise.
11471 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11472 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11473 print them.
11474 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11475 plongest to format print it.
11476 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11477 (f77_get_upperbound): Likewise.
11478 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11479 LOWER_BOUND to LONGEST.
11480 (f77_create_arrayprint_offset_tbl): Likewise.
11481
11482 2019-03-29 Keith Seitz <keiths@redhat.com>
11483
11484 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11485 %s/pulongest for TYPE_LENGTH instead of %d in format
11486 strings.
11487 * ada-typerint.c (ada_print_type): Likewise.
11488 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11489 * compile/compile-c-support.c (generate_register_struct): Likewise.
11490 * gdbtypes.c (recursive_dump_type): Likewise.
11491 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11492 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11493 instead of %d in format strings.
11494 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11495 to std::min to ULONGEST.
11496 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11497 instead of %d in format strings.
11498 * tracepoint.c (info_scope_command): Likewise.
11499 * typeprint.c (print_offset_data::update)
11500 (print_offset_data::finish): Likewise.
11501 * xtensa-tdep.c (xtensa_store_return_value)
11502 (xtensa_push_dummy_call): Likewise.
11503
11504 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11505
11506 * windows-nat.c (display_selector): Fixed format specifications
11507 for 64-bit Cygwin.
11508
11509 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11510
11511 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11512
11513 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11514
11515 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11516 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11517 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11518 (nios2_linux_init_abi): Install it.
11519
11520 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11521
11522 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11523
11524 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11525
11526 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11527
11528 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11529 Tom Tromey <tromey@adacore.com>
11530
11531 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11532
11533 2019-03-26 Joel Brobecker <brobecker@adacore.com>
11534
11535 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11536 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11537 method to compute the bounds of range types. Also print "[evaluated]"
11538 if the bounds' values come from a dynamic evaluation.
11539
11540 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11541
11542 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11543 whitespace when pretty printing is on.
11544
11545 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11546
11547 * ppc-linux-nat.c: Add include.
11548
11549 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11550
11551 * NEWS: Mention AArch64 Pointer Authentication.
11552
11553 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11554
11555 * arm-linux-nat.c: Add include.
11556
11557 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11558
11559 * source-cache.c (source_cache::get_source_lines): Re-read
11560 fullname after calling open_source_file.
11561
11562 2019-03-25 John Baldwin <jhb@FreeBSD.org>
11563
11564 * NEWS: Mention TLS support for FreeBSD.
11565
11566 2019-03-25 Tom Tromey <tromey@adacore.com>
11567
11568 * minsyms.c (BUNCH_SIZE): Update comment.
11569 (~minimal_symbol_reader): Remove old comment.
11570 (compact_minimal_symbols): Update comment.
11571 (minimal_symbol_reader::install): Remove old comment. Update
11572 other comments.
11573
11574 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11575
11576 * s390-linux-nat.c: Add include.
11577
11578 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11579
11580 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11581 Call linux_get_hwcap.
11582 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11583 Likewise.
11584 (aarch64_linux_get_hwcap): Remove function.
11585 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11586 declaration.
11587 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11588 linux_get_hwcap.
11589 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11590 * linux-tdep.c (linux_get_hwcap): Add function.
11591 (linux_get_hwcap2): Likewise.
11592 * linux-tdep.h (linux_get_hwcap): Add declaration.
11593 (linux_get_hwcap2): Likewise.
11594 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11595 (ppc_linux_get_hwcap2): Likewise.
11596 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11597 linux_get_hwcap.
11598 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11599 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11600 (ppc_linux_nat_target::read_description): Likewise.
11601 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11602 * s390-linux-nat.c: Likewise.
11603 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11604
11605 2019-03-24 Tom Tromey <tom@tromey.com>
11606
11607 * ada-lang.c (standard_lookup): Simplify initialization.
11608 (ada_lookup_symbol_nonlocal): Simplify return.
11609 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11610 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11611 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11612 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11613 initialization.
11614 * solib.c (solib_global_lookup): Simplify.
11615 * symtab.c (null_block_symbol): Remove.
11616 (symbol_cache_lookup): Simplify returns.
11617 (lookup_language_this): Simplify returns.
11618 (lookup_symbol_aux): Simplify return.
11619 (lookup_local_symbol): Simplify returns.
11620 (lookup_global_symbol_from_objfile): Simplify return.
11621 (lookup_symbol_in_objfile_symtabs)
11622 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11623 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11624 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11625 * cp-namespace.c (cp_lookup_bare_symbol)
11626 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11627 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11628 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11629 (cp_lookup_symbol_via_imports): Simplify initialization.
11630 (find_symbol_in_baseclass): Likewise.
11631 * symtab.h (null_block_symbol): Remove.
11632 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11633 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11634 (d_lookup_symbol_module): Likewise.
11635 (find_symbol_in_baseclass): Simplify initialization.
11636
11637 2019-03-24 Tom Tromey <tom@tromey.com>
11638
11639 * expression.h: Don't include symtab.h.
11640 (struct block): Forward declare.
11641
11642 2019-03-24 Tom Tromey <tom@tromey.com>
11643
11644 * c-exp.y (typebase): Remove casts.
11645 * gdbtypes.c (lookup_unsigned_typename, )
11646 (lookup_signed_typename): Remove cast.
11647 * eval.c (parse_to_comma_and_eval): Remove cast.
11648 * parse.c (write_dollar_variable): Remove cast.
11649 * block.h (struct block) <superblock>: Now const.
11650 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11651 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11652 (map_block): Make "block" const.
11653 * symfile.h (struct quick_symbol_functions)
11654 <map_matching_symbols>: Constify block argument to "callback".
11655 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11656 const.
11657 (find_pc_sect_compunit_symtab): Make "b" const.
11658 (find_symbol_at_address): Likewise.
11659 (search_symbols): Likewise.
11660 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11661 (dw2_debug_names_lookup_symbol): Likewise.
11662 (dw2_map_matching_symbols): Update.
11663 * p-valprint.c (pascal_val_print): Remove "block".
11664 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11665 (aux_add_nonlocal_symbols): Make "block" const.
11666 (resolve_subexp): Remove cast.
11667 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11668 const.
11669 (iterate_over_file_blocks): Likewise.
11670 * f-exp.y (%union) <bval>: Remove.
11671 * coffread.c (patch_opaque_types): Make "b" const.
11672 * spu-tdep.c (spu_catch_start): Make "block" const.
11673 * c-valprint.c (print_unpacked_pointer): Remove "block".
11674 * symmisc.c (dump_symtab_1): Make "b" const.
11675 (block_depth): Make "block" const.
11676 * d-exp.y (%union) <bval>: Remove.
11677 * cp-support.h (cp_lookup_rtti_type): Update.
11678 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11679 * psymtab.c (psym_lookup_symbol): Make "block" const.
11680 (maintenance_check_psymtabs): Make "b" const.
11681 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11682 (enumerate_locals, enumerate_args): Update.
11683 * python/py-symtab.c (stpy_global_block): Make "block" const.
11684 (stpy_static_block): Likewise.
11685 * inline-frame.c (block_starting_point_at): Make "new_block"
11686 const.
11687 * block.c (find_block_in_blockvector): Make return type const.
11688 (blockvector_for_pc_sect): Make "b" const.
11689 (find_block_in_blockvector): Make "b" const.
11690
11691 2019-03-23 Tom Tromey <tom@tromey.com>
11692
11693 * varobj.c (varobj_create): Update.
11694 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11695 * printcmd.c (display_command, do_one_display): Don't reset
11696 innermost_block.
11697 * parser-defs.h (enum innermost_block_tracker_type): Move to
11698 expression.h.
11699 (innermost_block): Update comment.
11700 * parse.c (parse_exp_1): Add tracker_types parameter.
11701 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11702 tracker_types parameter. Reset innermost_block.
11703 (parse_exp_in_context): Remove.
11704 (parse_expression_for_completion): Update.
11705 * objfiles.c (~objfile): Don't reset expression_context_block or
11706 innermost_block.
11707 * expression.h (enum innermost_block_tracker_type): Move from
11708 parser-defs.h.
11709 (parse_exp_1): Add tracker_types parameter.
11710 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11711 reset innermost_block.
11712
11713 2019-03-23 Tom Tromey <tom@tromey.com>
11714
11715 * objfiles.h: Include bcache.h.
11716
11717 2019-03-23 Tom Tromey <tom@tromey.com>
11718
11719 * linespec.c (get_current_search_block): Use
11720 scoped_restore_current_language.
11721 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11722
11723 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11724 Jiong Wang <jiong.wang@arm.com>
11725
11726 * aarch64-linux-tdep.c
11727 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11728 section.
11729 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11730
11731 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11732 Jiong Wang <jiong.wang@arm.com>
11733
11734 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11735 instructions.
11736 (aarch64_analyze_prologue_test): Add PACIASP test.
11737 (aarch64_prologue_prev_register): Unmask PC value.
11738
11739 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11740 Jiong Wang <jiong.wang@arm.com>
11741
11742 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11743 (aarch64_dwarf2_prev_register): Unmask PC value.
11744 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11745 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11746 DW_CFA_AARCH64_negate_ra_state.
11747 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11748
11749 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11750 Jiong Wang <jiong.wang@arm.com>
11751
11752 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11753 registers.
11754 (aarch64_pseudo_register_name): Likewise.
11755 (aarch64_pseudo_register_type): Likewise.
11756 (aarch64_pseudo_register_reggroup_p): Likewise.
11757 (aarch64_gdbarch_init): Add pauth registers.
11758 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11759 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11760 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11761 (struct gdbarch_tdep): Add regnum for ra_state.
11762
11763 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11764 Jiong Wang <jiong.wang@arm.com>
11765
11766 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11767
11768 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11769 Jiong Wang <jiong.wang@arm.com>
11770
11771 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11772 function.
11773 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11774 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11775 (aarch64_gdbarch_init): Add puth registers.
11776 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11777 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11778 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11779
11780 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11781 Jiong Wang <jiong.wang@arm.com>
11782
11783 * aarch64-linux-nat.c
11784 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11785 * aarch64-linux-tdep.c
11786 (aarch64_linux_core_read_description): Likewise.
11787 (aarch64_linux_get_hwcap): New function.
11788 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11789 (aarch64_linux_get_hwcap): New declaration.
11790
11791 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11792 Jiong Wang <jiong.wang@arm.com>
11793
11794 * aarch64-linux-nat.c
11795 (aarch64_linux_nat_target::read_description): Add pauth param.
11796 * aarch64-linux-tdep.c
11797 (aarch64_linux_core_read_description): Likewise.
11798 * aarch64-tdep.c (struct target_desc): Add in pauth.
11799 (aarch64_read_description): Add pauth param.
11800 (aarch64_gdbarch_init): Likewise.
11801 * aarch64-tdep.h (aarch64_read_description): Likewise.
11802 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11803 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11804 * features/Makefile: Add new files.
11805 * features/aarch64-pauth.c: New file.
11806 * features/aarch64-pauth.xml: New file.
11807
11808 2019-03-20 Tom Tromey <tromey@adacore.com>
11809
11810 * infrun.c (handle_inferior_event): Rename from
11811 handle_inferior_event_1. Create a scoped_value_mark.
11812 (handle_inferior_event): Remove.
11813
11814 2019-03-19 Tom Tromey <tromey@adacore.com>
11815
11816 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11817 * infrun.h (print_stop_event): Add "displays" parameter.
11818 * infrun.c (print_stop_event): Add "displays" parameter.
11819
11820 2019-03-19 Pedro Alves <palves@redhat.com>
11821
11822 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11823 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11824 to -1. Fix TABs vs spaces.
11825 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11826 * tui/tui-out.h (tui_ui_out) Add intro comments.
11827 <m_line, m_start_of_line>: In-class initialize, and add describing
11828 comment.
11829
11830 2019-03-18 Alan Hayward <alan.hayward@arm.com>
11831
11832 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11833 variable names.
11834 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
11835
11836 2019-03-18 Pedro Alves <palves@redhat.com>
11837 Eli Zaretskii <eliz@gnu.org>
11838
11839 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
11840 m_line and m_start_of_line.
11841
11842 2019-03-18 Eli Zaretskii <eliz@gnu.org>
11843
11844 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
11845 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
11846 it returns a newline. This fixes a regression in TU mode, whereby
11847 the next line is output on the same screen line as the user input.
11848
11849 2019-03-18 Tom Tromey <tromey@adacore.com>
11850
11851 * minsyms.c (minimal_symbol_reader::install): Remove call to
11852 obstack_blank.
11853
11854 2019-03-18 Pedro Alves <palves@redhat.com>
11855
11856 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
11857 New globals.
11858 (apply_style): New, factored out from ...
11859 (apply_ansi_escape): ... this. Handle reverse video mode.
11860 (tui_set_reverse_mode): New function.
11861 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
11862 * tui/tui-winsource.c (tui_show_source_line): Use
11863 tui_set_reverse_mode instead of setting A_STANDOUT.
11864 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
11865 New setter methods.
11866
11867 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
11868
11869 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
11870 Handle tabs.
11871
11872 2019-03-18 Tom Tromey <tromey@adacore.com>
11873
11874 * ada-lang.c (empty_array): Add "high" parameter.
11875 (ada_evaluate_subexp): Update.
11876
11877 2019-03-17 Sergei Trofimovich <siarheit@google.com>
11878
11879 * unittests/string_view-selftests.c: Define
11880 _initialize_string_view_selftests unconditionally.
11881
11882 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11883
11884 PR gdb/24350
11885 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
11886
11887 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11888
11889 PR gdb/24351
11890 * windows-nat.c (display_selector): Fix format specifiers.
11891
11892 2019-03-17 Eli Zaretskii <eliz@gnu.org>
11893
11894 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
11895 tui_refill_source_window instead of tui_refresh_win, to update the
11896 current execution line. This fixes redisplay of the current line
11897 when stepping through the code with "next" or "step".
11898
11899 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11900
11901 * source-cache.c (source_cache::get_source_lines): Call
11902 find_source_lines to initialize s->nlines. This fixes vertical
11903 scrolling of TUI source window when the DOWN arrow is pressed.
11904
11905 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11906
11907 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
11908 linux-thread-db.c (_initialize_thread_db): Likewise.
11909
11910 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11911
11912 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
11913 wclrtoeol in tui_show_source_line". This reverts changes made in
11914 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11915
11916 2019-03-15 Tom Tromey <tom@tromey.com>
11917
11918 * symtab.h (struct minimal_symbol): Derive from
11919 general_symbol_info.
11920 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11921 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11922 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11923 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11924 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11925 (MSYMBOL_SEARCH_NAME): Update.
11926 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11927 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11928 * minsyms.c (minimal_symbol_reader::record_full): Update.
11929
11930 2019-03-15 Tom Tromey <tom@tromey.com>
11931
11932 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
11933
11934 2019-03-15 Tom Tromey <tom@tromey.com>
11935
11936 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
11937 unique_xmalloc_ptr.
11938 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
11939 Update.
11940 * minsyms.c (lookup_minimal_symbol_by_pc_section)
11941 (build_minimal_symbol_hash_tables)
11942 (minimal_symbol_reader::install): Update.
11943
11944 2019-03-15 Tom Tromey <tom@tromey.com>
11945
11946 * symtab.c (create_demangled_names_hash): Update.
11947 (symbol_set_names): Update.
11948 * objfiles.h (struct objfile_per_bfd_storage)
11949 <demangled_names_hash>: Now an htab_up.
11950 * objfiles.c (objfile_per_bfd_storage): Simplify.
11951
11952 2019-03-15 Tom Tromey <tom@tromey.com>
11953
11954 * objfiles.h (struct objfile_per_bfd_storage): Declare
11955 destructor.
11956 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
11957 New.
11958 (get_objfile_bfd_data): Use new. Don't initialize
11959 language_of_main.
11960 (free_objfile_per_bfd_storage): Remove.
11961 (objfile_bfd_data_free, objfile::~objfile): Use delete.
11962
11963 2019-03-15 Tom Tromey <tom@tromey.com>
11964
11965 * symfile.c (reread_symbols): Update.
11966 * objfiles.c (objfile::objfile): Update.
11967 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
11968 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
11969 comment.
11970 (minimal_symbol_reader::install): Update.
11971 (terminate_minimal_symbol_table): Remove.
11972 * jit.c (jit_object_close_impl): Update.
11973
11974 2019-03-15 Tom Tromey <tom@tromey.com>
11975
11976 * minsyms.c (minimal_symbol_reader::record_full): Remove some
11977 initializations.
11978
11979 2019-03-15 Tom Tromey <tom@tromey.com>
11980
11981 * objfiles.h (struct objfile_per_bfd_storage)
11982 <demangled_hash_languages>: Now a bitset.
11983 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
11984 (lookup_minimal_symbol): Update.
11985
11986 2019-03-15 Tom Tromey <tom@tromey.com>
11987
11988 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
11989 Don't return the symbol.
11990 * coffread.c (record_minimal_symbol): Use record_full.
11991
11992 2019-03-14 Eli Zaretskii <eliz@gnu.org>
11993
11994 The MS-Windows port of ncurses fails to switch to a color pair if
11995 one or both of the colors are the implicit default colors. This
11996 change records the default colors when TUI is initialized, and
11997 then specifies them explicitly when a color pair uses the default
11998 colors. This allows color styling in TUI mode on MS-Windows.
11999
12000 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12001 ncurses_norm_attr.
12002 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12003 colors in ncurses_norm_attr.
12004 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12005 "none", replace it with the default color recorded in
12006 ncurses_norm_attr.
12007
12008 2019-03-14 Tom Tromey <tromey@adacore.com>
12009
12010 * source-cache.h (class source_cache) <get_source_lines>: Return
12011 std::string.
12012 * source-cache.c (source_cache::extract_lines): Handle case where
12013 first_pos==npos. Return std::string.
12014 (source_cache::get_source_lines): Update.
12015
12016 2019-03-14 Tom Tromey <tromey@adacore.com>
12017
12018 * NEWS: Add item for "style sources" commands.
12019 * source-cache.c (source_cache::get_source_lines): Check
12020 source_styling.
12021 * cli/cli-style.c (source_styling): New global.
12022 (_initialize_cli_style): Add "style sources" commands.
12023 (show_style_sources): New function.
12024 * cli/cli-style.h (source_styling): Declare.
12025
12026 2019-03-14 Pedro Alves <palves@redhat.com>
12027 Tom Tromey <tromey@adacore.com>
12028
12029 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12030 * tui/tui-winsource.c (tui_refill_source_window): New function,
12031 from...
12032 (tui_horizontal_source_scroll): ... here. Move some logic.
12033 * cli/cli-style.c (set_style_enabled): Notify new observable.
12034 * tui/tui-hooks.c (tui_redisplay_source): New function.
12035 (tui_attach_detach_observers): Attach or detach
12036 tui_redisplay_source.
12037 * observable.h (source_styling_changed): New observable.
12038 * observable.c: Define source_styling_changed observable.
12039
12040 2019-03-13 Tom Tromey <tromey@adacore.com>
12041
12042 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12043 (i386_gnu_nat_target::store_registers): Update.
12044 * target-debug.h (target_debug_print_std_string): New macro.
12045 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12046 * windows-tdep.c (display_one_tib): Update.
12047 * tui/tui-stack.c (tui_make_status_line): Update.
12048 * top.c (print_inferior_quit_action): Update.
12049 * thread.c (thr_try_catch_cmd): Update.
12050 (add_thread_with_info): Update.
12051 (thread_target_id_str): Update.
12052 (thr_try_catch_cmd): Update.
12053 (thread_command): Update.
12054 (thread_find_command): Update.
12055 * record-btrace.c (record_btrace_target::info_record)
12056 (record_btrace_resume_thread, record_btrace_target::resume)
12057 (record_btrace_cancel_resume, record_btrace_step_thread)
12058 (record_btrace_target::wait, record_btrace_target::wait)
12059 (record_btrace_target::wait, record_btrace_target::stop): Update.
12060 * progspace.c (print_program_space): Update.
12061 * process-stratum-target.c
12062 (process_stratum_target::thread_address_space): Update.
12063 * linux-fork.c (linux_fork_mourn_inferior)
12064 (detach_checkpoint_command, info_checkpoints_command)
12065 (linux_fork_context): Update.
12066 (linux_fork_detach): Update.
12067 (class scoped_switch_fork_info): Update.
12068 (delete_checkpoint_command): Update.
12069 * infrun.c (follow_fork_inferior): Update.
12070 (follow_fork_inferior): Update.
12071 (proceed_after_vfork_done): Update.
12072 (handle_vfork_child_exec_or_exit): Update.
12073 (follow_exec): Update.
12074 (displaced_step_prepare_throw): Update.
12075 (displaced_step_restore): Update.
12076 (start_step_over): Update.
12077 (resume_1): Update.
12078 (clear_proceed_status_thread): Update.
12079 (proceed): Update.
12080 (print_target_wait_results): Update.
12081 (do_target_wait): Update.
12082 (context_switch): Update.
12083 (stop_all_threads): Update.
12084 (restart_threads): Update.
12085 (finish_step_over): Update.
12086 (handle_signal_stop): Update.
12087 (switch_back_to_stepped_thread): Update.
12088 (keep_going_pass_signal): Update.
12089 (print_exited_reason): Update.
12090 (normal_stop): Update.
12091 * inferior.c (inferior_pid_to_str): Change return type.
12092 (print_selected_inferior): Update.
12093 (add_inferior): Update.
12094 (detach_inferior): Update.
12095 * dummy-frame.c (fprint_dummy_frames): Update.
12096 * dcache.c (dcache_info_1): Update.
12097 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12098 (btrace_fetch, btrace_clear): Update.
12099 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12100 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12101 type.
12102 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12103 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12104 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12105 * gdbarch.c, gdbarch.h: Rebuild.
12106 * gdbarch.sh (core_pid_to_str): Change return type.
12107 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12108 return type.
12109 (windows_nat_target::pid_to_str): Change return type.
12110 (windows_delete_thread): Update.
12111 (windows_nat_target::attach): Update.
12112 (windows_nat_target::files_info): Update.
12113 * target-delegates.c: Rebuild.
12114 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12115 return type.
12116 (sol_thread_target::pid_to_str): Change return type.
12117 * remote.c (class remote_target) <pid_to_str>: Change return
12118 type.
12119 (remote_target::pid_to_str): Change return type.
12120 (extended_remote_target::attach, remote_target::remote_stop_ns)
12121 (remote_target::remote_notif_remove_queued_reply)
12122 (remote_target::push_stop_reply, remote_target::disable_btrace):
12123 Update.
12124 (extended_remote_target::attach): Update.
12125 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12126 type.
12127 (gdbsim_target::pid_to_str): Change return type.
12128 * ravenscar-thread.c (struct ravenscar_thread_target)
12129 <pid_to_str>: Change return type.
12130 (ravenscar_thread_target::pid_to_str): Change return type.
12131 * procfs.c (class procfs_target) <pid_to_str>: Change return
12132 type.
12133 (procfs_target::pid_to_str): Change return type.
12134 (procfs_target::attach): Update.
12135 (procfs_target::detach): Update.
12136 (procfs_target::fetch_registers): Update.
12137 (procfs_target::store_registers): Update.
12138 (procfs_target::wait): Update.
12139 (procfs_target::files_info): Update.
12140 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12141 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12142 return type.
12143 (nto_procfs_target::pid_to_str): Change return type.
12144 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12145 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12146 return type.
12147 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12148 (exit_lwp): Update.
12149 (attach_proc_task_lwp_callback, get_detach_signal)
12150 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12151 (linux_nat_target::resume, wait_lwp, stop_callback)
12152 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12153 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12154 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12155 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12156 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12157 type.
12158 (inf_ptrace_target::attach): Update.
12159 (inf_ptrace_target::files_info): Update.
12160 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12161 type.
12162 (go32_nat_target::pid_to_str): Change return type.
12163 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12164 (gnu_nat_target::wait): Update.
12165 (gnu_nat_target::wait): Update.
12166 (gnu_nat_target::resume): Update.
12167 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12168 (fbsd_nat_target::wait): Update.
12169 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12170 type.
12171 (darwin_nat_target::attach): Update.
12172 * corelow.c (class core_target) <pid_to_str>: Change return type.
12173 (core_target::pid_to_str): Change return type.
12174 * target.c (normal_pid_to_str): Change return type.
12175 (default_pid_to_str): Likewise.
12176 (target_pid_to_str): Change return type.
12177 (target_translate_tls_address): Update.
12178 (target_announce_detach): Update.
12179 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12180 return type.
12181 (bsd_uthread_target::pid_to_str): Change return type.
12182 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12183 type.
12184 (bsd_kvm_target::pid_to_str): Change return type.
12185 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12186 return type.
12187 (aix_thread_target::pid_to_str): Change return type.
12188 * target.h (struct target_ops) <pid_to_str>: Change return type.
12189 (target_pid_to_str, normal_pid_to_str): Likewise.
12190 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12191 type.
12192 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12193 type.
12194 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12195 return type.
12196 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12197 type.
12198 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12199 type.
12200 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12201 return type.
12202
12203 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12204
12205 * NEWS: Mention that the new default MI version is 3. Mention
12206 changes to the output of commands and events that deal with
12207 multi-location breakpoints.
12208 * breakpoint.c: Include "mi/mi-out.h".
12209 (print_one_breakpoint): Change output syntax if using MI version
12210 >= 3.
12211 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12212 New.
12213 (mi_multi_location_breakpoint_output_fixed): New.
12214 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12215 (mi_cmd_fix_multi_location_breakpoint_output): New.
12216 (mi_multi_location_breakpoint_output_fixed): New.
12217 * mi/mi-cmds.c (mi_cmds): Register command
12218 -fix-multi-location-breakpoint-output.
12219 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12220 interpreter "mi".
12221
12222 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12223
12224 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12225 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12226 instantiate mi_ui_out based on interpreter name.
12227 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12228 * mi/mi-main.c (mi_load_progress): Likewise.
12229
12230 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12231
12232 * NEWS: Combine separate "New targets" sections for 8.3.
12233
12234 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12235
12236 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12237 (ppcfbsd_init_abi): Install gdbarch
12238 "fetch_tls_load_module_address" and "get_thread_local_address"
12239 methods.
12240
12241 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12242
12243 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12244 (riscv_fbsd_init_abi): Install gdbarch
12245 "fetch_tls_load_module_address" and "get_thread_local_address"
12246 methods.
12247
12248 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12249
12250 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12251 (i386fbsd_init_abi): Install gdbarch
12252 "fetch_tls_load_module_address" and "get_thread_local_address"
12253 methods.
12254
12255 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12256
12257 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12258 (amd64fbsd_init_abi): Install gdbarch
12259 "fetch_tls_load_module_address" and "get_thread_local_address"
12260 methods.
12261
12262 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12263
12264 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12265 (struct fbsd_pspace_data): New type.
12266 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12267 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12268 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12269 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12270 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12271
12272 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12273
12274 * gdbtypes.c (lookup_struct_elt): New function.
12275 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12276 * gdbtypes.h (struct struct_elt): New type.
12277 (lookup_struct_elt): New prototype.
12278
12279 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12280
12281 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12282 remove disabled code block.
12283
12284 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12285
12286 * gdbarch.sh (get_thread_local_address): New method.
12287 * gdbarch.h, gdbarch.c: Regenerate.
12288 * target.c (target_translate_tls_address): Use
12289 gdbarch_get_thread_local_address if present instead of
12290 target::get_thread_local_address.
12291
12292 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12293
12294 * target.h (target::get_thread_local_address): Update comment.
12295
12296 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12297
12298 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12299 objfile->separate_debug_objfile_backlink if not NULL.
12300
12301 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12302
12303 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12304 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12305 (amd64bsd_store_inferior_registers): Likewise.
12306 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12307 Enable segment base registers.
12308 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12309 PT_GETFSBASE and PT_GETGSBASE.
12310 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12311 PT_SETGSBASE.
12312 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12313 segment base registers.
12314 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12315
12316 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12317
12318 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12319 Update calls to i386_target_description to add 'segments'
12320 parameter.
12321 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12322 add segment base registers.
12323 * arch/i386.c (i386_create_target_description): Add 'segments'
12324 parameter to enable segment base registers.
12325 * arch/i386.h (i386_create_target_description): Likewise.
12326 * features/i386/32bit-segments.xml: New file.
12327 * features/i386/32bit-segments.c: Generate.
12328 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12329 call to i386_target_description to add 'segments' parameter.
12330 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12331 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12332 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12333 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12334 if feature is present.
12335 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12336 Add 'segments' parameter to call to i386_target_description.
12337 (i386_target_description): Add 'segments' parameter to enable
12338 segment base registers.
12339 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12340 to call to i386_target_description.
12341 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12342 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12343 Define I386_NUM_REGS.
12344 (i386_target_description): Add 'segments' parameter to enable
12345 segment base registers.
12346
12347 2019-03-12 Eli Zaretskii <eliz@gnu.org>
12348
12349 PR/24325
12350 * source-cache.c: #undef open and close, to avoid unresolved
12351 externals during linking.
12352
12353 2019-03-12 Tom Tromey <tromey@adacore.com>
12354
12355 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12356 const. Add initializers.
12357 (_initialize_remote): Don't initialize ptid globals.
12358
12359 2019-03-12 Pedro Alves <palves@redhat.com>
12360
12361 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12362
12363 2019-03-12 Pedro Alves <palves@redhat.com>
12364
12365 * cp-name-parser.y (main): Remove unused 'len' variable.
12366
12367 2019-03-12 Tom Tromey <tromey@adacore.com>
12368
12369 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12370 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12371
12372 2019-03-12 Tom Tromey <tromey@adacore.com>
12373
12374 * linux-nat.c (iterate_over_lwps): Update.
12375 (stop_callback): Remove parameter.
12376 (stop_wait_callback, detach_callback, resume_set_callback)
12377 (select_singlestep_lwp_callback, set_ignore_sigint)
12378 (status_callback, resumed_callback, resume_clear_callback)
12379 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12380 data parameter.
12381 (linux_nat_target::detach, linux_nat_target::resume)
12382 (linux_stop_and_wait_all_lwps, select_event_lwp)
12383 (linux_nat_filter_event, linux_nat_wait_1)
12384 (linux_nat_target::kill, linux_nat_target::stop)
12385 (linux_nat_target::stop): Update.
12386 (linux_nat_resume_callback): Change type.
12387 (resume_stopped_resumed_lwps, count_events_callback)
12388 (select_event_lwp_callback): Likewise.
12389 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12390 * arm-linux-nat.c (struct update_registers_data): Remove.
12391 (update_registers_callback): Change type.
12392 (arm_linux_insert_hw_breakpoint1): Update.
12393 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12394 parameter.
12395 (x86_linux_dr_set_addr): Update.
12396 (x86_linux_dr_set_control): Update.
12397 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12398 (iterate_over_lwps): Use gdb::function_view.
12399 * nat/aarch64-linux-hw-point.c (struct
12400 aarch64_dr_update_callback_param): Remove.
12401 (debug_reg_change_callback): Change type.
12402 (aarch64_notify_debug_reg_change): Update.
12403 * s390-linux-nat.c (s390_refresh_per_info): Update.
12404
12405 2019-03-11 Tom Tromey <tromey@adacore.com>
12406
12407 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12408 redundant assignment to "this_cu".
12409
12410 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12411
12412 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12413
12414 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12415
12416 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12417 from...
12418 (rank_one_type): ... this.
12419
12420 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12421
12422 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12423 from...
12424 (rank_one_type): ... this.
12425
12426 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12427
12428 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12429 from...
12430 (rank_one_type): ... this.
12431
12432 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12433
12434 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12435 from...
12436 (rank_one_type): ... this.
12437
12438 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12439
12440 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12441 from...
12442 (rank_one_type): ... this.
12443
12444 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12445
12446 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12447 from...
12448 (rank_one_type): ... this.
12449
12450 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12451
12452 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12453 from...
12454 (rank_one_type): ... this.
12455
12456 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12457
12458 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12459 from...
12460 (rank_one_type): ... this.
12461
12462 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12463
12464 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12465 from...
12466 (rank_one_type): ... this.
12467
12468 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12469
12470 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12471 from...
12472 (rank_one_type): ... this.
12473
12474 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12475
12476 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12477 from...
12478 (rank_one_type): ... this.
12479
12480 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12481
12482 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12483 from...
12484 (rank_one_type): ... this.
12485
12486 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12487
12488 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12489 inferior-events' shows the example events.
12490
12491 2019-03-08 Eli Zaretskii <eliz@gnu.org>
12492
12493 Support styling on native MS-Windows console
12494
12495 PR/24315
12496 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12497 on MS-Windows if $TERM is not defined.
12498
12499 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12500
12501 * posix-hdep.c (gdb_console_fputs):
12502 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12503 functions.
12504 * ui-file.h (gdb_console_fputs): Add prototype.
12505
12506 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12507 back to fputs only if the former returns zero.
12508
12509 2019-03-07 Tom Tromey <tom@tromey.com>
12510
12511 * symmisc.c (print_symbol_bcache_statistics): Update.
12512 (print_objfile_statistics): Update.
12513 * symfile.c (allocate_symtab): Update.
12514 * stabsread.c: Don't include bcache.h.
12515 * psymtab.h (struct psymbol_bcache): Don't declare.
12516 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12517 (psymbol_bcache_init, psymbol_bcache_free)
12518 (psymbol_bcache_get_bcache): Don't declare.
12519 * psymtab.c (struct psymbol_bcache): Remove.
12520 (psymtab_storage::psymtab_storage): Update.
12521 (psymtab_storage::~psymtab_storage): Update.
12522 (psymbol_bcache_init, psymbol_bcache_free)
12523 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12524 (add_psymbol_to_bcache): Update.
12525 (allocate_psymtab): Update.
12526 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12527 macro_cache>: No longer pointers.
12528 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12529 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12530 * macrotab.c (macro_bcache): Update.
12531 * macroexp.c: Don't include bcache.h.
12532 * gdbtypes.c (check_types_worklist): Update.
12533 (types_deeply_equal): Remove TRY/CATCH. Update.
12534 * elfread.c (elf_symtab_read): Update.
12535 * dwarf2read.c: Don't include bcache.h.
12536 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12537 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12538 (print_bcache_statistics, bcache_memory_used): Don't declare.
12539 (struct bcache): Move from bcache.c. Add constructor, destructor,
12540 methods. Rename all data members.
12541 * bcache.c (struct bcache): Move to bcache.h.
12542 (bcache::expand_hash_table): Rename from expand_hash_table.
12543 (bcache): Remove.
12544 (bcache::insert): Rename from bcache_full.
12545 (bcache::compare): Rename from bcache_compare.
12546 (bcache_xmalloc): Remove.
12547 (bcache::~bcache): Rename from bcache_xfree.
12548 (bcache::print_statistics): Rename from print_bcache_statistics.
12549 (bcache::memory_used): Rename from bcache_memory_used.
12550
12551 2019-03-07 Pedro Alves <palves@redhat.com>
12552
12553 * infrun.c (normal_stop): Also check for
12554 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12555
12556 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12557
12558 * f-lang.c (value_from_host_double): Moved to...
12559 * value.c (value_from_host_double): ...here.
12560 * value.h (value_from_host_double): Declare.
12561 * guile/scm-math.c (vlscm_convert_typed_number): Use
12562 value_from_host_double.
12563 (vlscm_convert_number): Likewise.
12564 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12565 * python/py-value.c (convert_value_from_python): Likewise.
12566
12567 2019-03-06 Tom Tromey <tom@tromey.com>
12568
12569 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12570
12571 2019-03-06 Tom Tromey <tom@tromey.com>
12572
12573 * utils.h (free_current_contents): Don't declare.
12574 * utils.c (free_current_contents): Remove.
12575
12576 2019-03-06 Tom Tromey <tom@tromey.com>
12577
12578 * top.c (quit_force): Update.
12579 * main.c (captured_command_loop): Update.
12580 * common/new-op.c (operator new): Update.
12581 * common/common-exceptions.c (struct catcher)
12582 <save_cleanup_chain>: Remove member.
12583 (exceptions_state_mc_init): Update.
12584 (exception_try_scope_entry): Return nullptr.
12585 (exception_try_scope_exit, exception_rethrow)
12586 (throw_exception_sjlj, throw_exception_cxx): Update.
12587 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12588 (all_cleanups, do_cleanups, discard_cleanups)
12589 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12590 (restore_cleanups, restore_final_cleanups): Don't declare.
12591 (do_final_cleanups): Remove parameter.
12592 * common/cleanups.c (cleanup_chain, make_cleanup)
12593 (make_cleanup_dtor, all_cleanups, do_cleanups)
12594 (discard_my_cleanups, discard_cleanups)
12595 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12596 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12597 (null_cleanup): Remove.
12598 (do_final_cleanups): Remove parameter.
12599
12600 2019-03-06 Tom Tromey <tom@tromey.com>
12601
12602 * remote.c (remote_target::remote_parse_stop_reply): Use
12603 unique_xmalloc_ptr.
12604
12605 2019-03-06 Tom Tromey <tom@tromey.com>
12606
12607 * stabsread.c (struct stabs_field_info): Rename from field_info.
12608 <list, fnlist>: Add initializers.
12609 <obstack>: New member.
12610 (read_member_functions, read_struct_fields, read_baseclasses):
12611 Allocate on obstack. Don't use cleanups.
12612 (read_one_struct_field, read_member_functions, read_struct_fields)
12613 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12614 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12615 (read_struct_type): Update.
12616
12617 2019-03-06 Tom Tromey <tom@tromey.com>
12618
12619 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12620 * common/filestuff.h (make_cleanup_close): Don't declare.
12621 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12622 Remove.
12623
12624 2019-03-06 Tom Tromey <tom@tromey.com>
12625
12626 * solib-aix.c: Use make_scope_exit.
12627
12628 2019-03-06 Tom Tromey <tom@tromey.com>
12629
12630 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12631 Use make_scope_exit.
12632
12633 2019-03-06 Tom Tromey <tom@tromey.com>
12634
12635 * solib-svr4.c (disable_probes_interface): Remove parameter.
12636 (svr4_handle_solib_event): Use make_scope_exit.
12637
12638 2019-03-06 Tom Tromey <tom@tromey.com>
12639
12640 * remote.c (struct stop_reply_deleter): Remove.
12641 (stop_reply_up): Update.
12642 (struct stop_reply): Derive from notif_event. Don't typedef.
12643 <regcache>: Now a std::vector.
12644 (stop_reply_xfree): Remove.
12645 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12646 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12647 (remote_target::discard_pending_stop_replies): Use delete.
12648 (remote_target::remote_parse_stop_reply): Update.
12649 (remote_target::process_stop_reply): Update.
12650 * remote-notif.h (struct notif_event): Add virtual destructor.
12651 Remove "dtr" member.
12652 (struct notif_client) <alloc_event>: Return a unique_ptr.
12653 (notif_event_xfree): Don't declare.
12654 (notif_event_up): New typedef.
12655 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12656 (notif_event_xfree, do_notif_event_xfree): Remove.
12657 (remote_notif_state_xfree): Update.
12658
12659 2019-03-06 Tom Tromey <tom@tromey.com>
12660
12661 * infrun.c (displaced_step_clear_cleanup): Now a
12662 forward_scope_exit type.
12663 (displaced_step_prepare_throw): Update.
12664 (displaced_step_fixup): Update.
12665
12666 2019-03-06 Tom Tromey <tom@tromey.com>
12667
12668 * inferior.h (class inferior): Update comment.
12669 * gdbthread.h (class thread_info): Update comment.
12670
12671 2019-03-06 Joel Brobecker <brobecker@adacore.com>
12672 Tom Tromey <tom@tromey.com>
12673
12674 * stabsread.h (struct stab_section_list): Remove.
12675 (coffstab_build_psymtabs): Update.
12676 * dbxread.c (symbuf_sections): Now a std::vector.
12677 (sect_idx): New global.
12678 (fill_symbuf): Update.
12679 (coffstab_build_psymtabs): Change type of stabsects parameter.
12680 Update.
12681 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12682 std::vector.
12683 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12684 (coff_locate_sections): Update.
12685 (coff_symfile_read): Remove cleanups. Update.
12686 (init_stringtab): Add storage parameter.
12687 (free_stringtab, free_stringtab_cleanup): Remove.
12688 (init_lineno): Add storage parameter.
12689 (free_linetab, free_linetab_cleanup): Remove.
12690
12691 2019-03-06 Pedro Alves <palves@redhat.com>
12692
12693 * linux-fork.c (fork_info::clobber_regs): Delete.
12694 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12695 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12696 comment. Adjust.
12697 (scoped_switch_fork_info::scoped_switch_fork_info)
12698 (checkpoint_command, linux_fork_context): Adjust
12699 fork_save_infrun_state calls.
12700
12701 2019-03-06 Pedro Alves <palves@redhat.com>
12702
12703 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12704 (inf_has_multiple_threads): Return 'bool' and rewrite using
12705 inferior_info::threads().
12706
12707 2019-03-06 Pedro Alves <palves@redhat.com>
12708
12709 * linux-fork.c: Include <list>.
12710 (fork_list): Now a std::list instance.
12711 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12712 (forks_exist_p, find_last_fork): Adjust.
12713 (new_fork): Delete.
12714 (one_fork_p): New.
12715 (add_fork): Adjust.
12716 (free_fork): Delete, folded into fork_info::~fork_info().
12717 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12718 Adjust.
12719 (init_fork_list): Delete.
12720 (linux_fork_killall, linux_fork_mourn_inferior)
12721 (linux_fork_detach, info_checkpoints_command): Adjust.
12722 (_initialize_linux_fork): No longer call init_fork_list.
12723
12724 2019-03-06 Pedro Alves <palves@redhat.com>
12725
12726 * linux-fork.c (new_fork): New, split out of ...
12727 (add_fork): ... this. Return void. Move "first fork" special
12728 case from here, to ...
12729 (checkpoint_command): ... here.
12730 * linux-linux.h (add_fork): Return void.
12731
12732 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12733
12734 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12735
12736 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12737 Chris January <chris.january@arm.com>
12738 David Lecomber <david.lecomber@arm.com>
12739
12740 * f-exp.y: New token, UNOP_INTRINSIC.
12741 (exp): New pattern using UNOP_INTRINSIC token.
12742 (f77_keywords): Add 'abs' keyword.
12743 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12744 (value_from_host_double): New function.
12745 (evaluate_subexp_f): Support UNOP_ABS.
12746
12747 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12748
12749 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12750 types.
12751
12752 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12753
12754 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12755 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12756 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12757
12758 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12759
12760 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12761
12762 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12763 Chris January <chris.january@arm.com>
12764
12765 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12766 * f-exp.y: Define 'KIND' token.
12767 (exp): New pattern for KIND expressions.
12768 (ptype): Handle types with a kind extension.
12769 (direct_abs_decl): Extend to spot kind extensions.
12770 (f77_keywords): Add 'kind' to the list.
12771 (push_kind_type): New function.
12772 (convert_to_kind_type): New function.
12773 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12774 * parse.c (operator_length_standard): Likewise.
12775 * parser-defs.h (enum type_pieces): Add tp_kind.
12776 * std-operator.def: Add UNOP_KIND.
12777
12778 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12779
12780 * f-exp.y (f_parse): Set yydebug.
12781
12782 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12783
12784 * f-lang.c (evaluate_subexp_f): New function.
12785 (exp_descriptor_f): New global.
12786 (f_language_defn): Use exp_descriptor_f instead of
12787 exp_descriptor_standard.
12788
12789 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12790
12791 * f-exp.y (struct token): Add comments.
12792 (dot_ops): Remove uppercase versions and the end marker.
12793 (f77_keywords): Likewise.
12794 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12795 entries in the dot_ops array are case insensitive, and use
12796 strncasecmp to compare strings. Also some whitespace cleanup in
12797 this area. Similar for the f77_keywords array, except entries in
12798 this list might be case sensitive.
12799
12800 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12801
12802 * f-exp.y (struct f77_boolean_val): Add comments.
12803 (boolean_values): Remove uppercase versions, and end marker.
12804 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12805 and use strncasecmp to achieve case insensitivity. Additionally,
12806 perform whitespace cleanup around this code.
12807
12808 2019-03-06 Tom Tromey <tromey@adacore.com>
12809
12810 * remote-sim.c (gdbsim_target_open): Use result of
12811 gdb_argv::release.
12812
12813 2019-03-06 Richard Bunt <richard.bunt@arm.com>
12814 Dirk Schubert <dirk.schubert@arm.com>
12815 Chris January <chris.january@arm.com>
12816
12817 * eval.c (evaluate_subexp_standard): Call Fortran argument
12818 wrapping logic.
12819 * f-lang.c (struct value): A value which can be passed into a
12820 Fortran function call.
12821 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12822 where appropriate.
12823 (struct type): Value ready for a Fortran function call.
12824 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12825 is needed.
12826 * f-lang.h (fortran_argument_convert): Declaration.
12827 (fortran_preserve_arg_pointer): Declaration.
12828 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12829
12830 2019-03-05 Tom Tromey <tromey@adacore.com>
12831
12832 * python/py-prettyprint.c (print_string_repr): Remove #if.
12833 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
12834
12835 2019-03-05 Tom Tromey <tromey@adacore.com>
12836
12837 * target.c (the_dummy_target): Move later. Change type to
12838 "dummy_target".
12839 (initialize_targets): Don't initialize the_dummy_target.
12840
12841 2019-03-05 Tom Tromey <tromey@adacore.com>
12842
12843 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
12844 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
12845
12846 2019-03-05 Tom Tromey <tromey@adacore.com>
12847
12848 * windows-nat.c (windows_nat_target::attach)
12849 (windows_nat_target::detach): Don't call gdb_flush.
12850 * valprint.c (generic_val_print, val_print, val_print_string):
12851 Don't call gdb_flush.
12852 * utils.c (defaulted_query): Don't call gdb_flush.
12853 * typeprint.c (print_type_scalar): Don't call gdb_flush.
12854 * target.c (target_announce_detach): Don't call gdb_flush.
12855 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
12856 * remote.c (extended_remote_target::attach): Don't call
12857 gdb_flush.
12858 * procfs.c (procfs_target::detach): Don't call gdb_flush.
12859 * printcmd.c (do_examine): Don't call gdb_flush.
12860 (info_display_command): Don't call gdb_flush.
12861 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
12862 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
12863 * memattr.c (info_mem_command): Don't call gdb_flush.
12864 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
12865 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
12866 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
12867 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
12868 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
12869 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
12870 (gnu_nat_target::detach): Don't call gdb_flush.
12871 * f-valprint.c (f_val_print): Don't call gdb_flush.
12872 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
12873 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
12874 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
12875 gdb_flush.
12876 * c-valprint.c (c_val_print): Don't call gdb_flush.
12877 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
12878
12879 2019-03-05 Tom Tromey <tromey@adacore.com>
12880
12881 * varobj.c (update_dynamic_varobj_children): Update.
12882 (install_default_visualizer): Use reset, not release.
12883 * value.c (set_internalvar): Update.
12884 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
12885 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
12886 ATTRIBUTE_UNUSED_RESULT.
12887
12888 2019-03-05 Tom Tromey <tromey@adacore.com>
12889
12890 * remote.c (class scoped_remote_fd) <release>: Add
12891 ATTRIBUTE_UNUSED_RESULT.
12892
12893 2019-03-05 Tom Tromey <tromey@adacore.com>
12894
12895 * macroexp.c (struct macro_buffer) <release>: Add
12896 ATTRIBUTE_UNUSED_RESULT.
12897
12898 2019-03-05 Tom Tromey <tromey@adacore.com>
12899
12900 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
12901 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
12902 ATTRIBUTE_UNUSED_RESULT.
12903
12904 2019-03-05 Tom Tromey <tromey@adacore.com>
12905
12906 * common/scoped_fd.h (class scoped_fd) <release>: Add
12907 ATTRIBUTE_UNUSED_RESULT.
12908
12909 2019-03-05 Tom Tromey <tromey@adacore.com>
12910
12911 * parser-defs.h (struct parser_state) <release>: Add
12912 ATTRIBUTE_UNUSED_RESULT.
12913
12914 2019-03-05 Tom Tromey <tromey@adacore.com>
12915
12916 * utils.h (class gdb_argv) <release>: Add
12917 ATTRIBUTE_UNUSED_RESULT.
12918 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12919
12920 2019-03-02 Eli Zaretskii <eliz@gnu.org>
12921
12922 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12923 for-loop range, to avoid compiler warnings.
12924
12925 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12926 avoid compiler warnings about unused variables.
12927
12928 * NEWS: Mention end of support for native debugging on MS-Windows
12929 before XP.
12930
12931 PR gdb/24292
12932 * common/netstuff.c:
12933 * gdbserver/gdbreplay.c
12934 * gdbserver/remote-utils.c:
12935 * ser-tcp.c:
12936 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
12937 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
12938 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
12939 'getaddrinfo' and 'freeaddrinfo' were not available before
12940 Windows XP, and mingw.org's MinGW headers by default define
12941 _WIN32_WINNT to 0x500.
12942
12943 2019-03-01 Gary Benson <gbenson@redhat.com>
12944
12945 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
12946
12947 2019-02-28 Brian Vandenberg <phantall@gmail.com>
12948 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12949
12950 PR gdb/8527
12951 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
12952 set_sigint_trap, clear_sigint_trap.
12953
12954 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12955
12956 * target.c (target_detach): Clear the regcache and the
12957 frame cache.
12958
12959 2019-02-27 Pedro Alves <palves@redhat.com>
12960
12961 * utils.c (set_screen_size): When we cap the height/width sizes,
12962 tweak the corresponding command variable to show "unlimited":
12963
12964 2019-02-27 Saagar Jha <saagar@saagarjha.com>
12965 Pedro Alves <palves@redhat.com>
12966
12967 * utils.c (set_screen_size): Reduce "infinite" rows and columns
12968 before calling rl_set_screen_size.
12969
12970 2019-02-27 Tom Tromey <tromey@adacore.com>
12971
12972 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
12973 define.
12974 * python/py-value.c: Remove Python 2.4 workaround.
12975 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
12976 workaround.
12977 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
12978 Python 2.4 workaround.
12979 * python/python-internal.h: Remove Python 2.4 comment.
12980 (Py_ssize_t): Don't define.
12981 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
12982 (gdb_Py_DECREF): Remove Python 2.4 workaround.
12983 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
12984 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
12985 * python/python.c (do_start_initialization): Remove Python 2.4
12986 workaround.
12987 * python/py-prettyprint.c (class dummy_python_frame): Remove.
12988 (print_children): Remove Python 2.4 workaround.
12989 * python/py-inferior.c (buffer_procs): Remove Python 2.4
12990 workaround.
12991 (CHARBUFFERPROC_NAME): Remove.
12992 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
12993 Python 2.4 workaround.
12994
12995 2019-02-27 Kevin Buettner <kevinb@redhat.com>
12996
12997 * NEWS: Note minimum Python version.
12998
12999 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13000
13001 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13002 code from these functions. Remove corresponding ifdefs. Use
13003 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13004 Remove gotos and target of gotos.
13005 (infpy_search_memory): Likewise.
13006
13007 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13008
13009 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13010 (hppa_gdbarch_init): Don't register deleted functions with
13011 gdbarch.
13012
13013 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13014
13015 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13016 (h8300_unwind_sp): Delete.
13017 (h8300_dummy_id): Delete.
13018 (h8300_gdbarch_init): Don't register deleted functions with
13019 gdbarch.
13020
13021 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13022
13023 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13024 (ft32_unwind_pc): Delete.
13025 (ft32_unwind_sp): Delete.
13026 (ft32_gdbarch_init): Don't register deleted functions with
13027 gdbarch.
13028
13029 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13030
13031 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13032 (frv_unwind_pc): Delete.
13033 (frv_unwind_sp): Delete.
13034 (frv_gdbarch_init): Don't register deleted functions with
13035 gdbarch.
13036
13037 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13038
13039 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13040 (riscv_unwind_pc): Delete.
13041 (riscv_unwind_sp): Delete.
13042 (riscv_gdbarch_init): Don't register deleted functions with
13043 gdbarch.
13044
13045 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13046
13047 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13048 (csky_unwind_pc): Delete.
13049 (csky_unwind_sp): Delete.
13050 (csky_gdbarch_init): Don't register deleted functions with
13051 gdbarch.
13052
13053 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13054
13055 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13056 (cris_unwind_pc): Delete.
13057 (cris_unwind_sp): Delete.
13058 (cris_gdbarch_init): Don't register deleted functions with
13059 gdbarch.
13060
13061 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13062
13063 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13064 (bfin_unwind_pc): Delete.
13065 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13066
13067 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13068
13069 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13070 (arm_unwind_pc): Delete.
13071 (arm_unwind_sp): Delete.
13072 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13073
13074 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13075
13076 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13077 (arc_unwind_pc): Delete.
13078 (arc_unwind_sp): Delete.
13079 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13080
13081 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13082
13083 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13084 (alpha_unwind_pc): Delete.
13085 (alpha_gdbarch_init): Don't register deleted functions with
13086 gdbarch.
13087
13088 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13089
13090 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13091 (aarch64_unwind_pc): Delete.
13092 (aarch64_unwind_sp): Delete.
13093 (aarch64_gdbarch_init): Don't register deleted functions with
13094 gdbarch.
13095
13096 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13097
13098 * gdbtypes.c (type_align): Don't consider static members when
13099 computing structure alignment.
13100
13101 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13102
13103 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13104 return 0 for other types.
13105 * arch-utils.c (default_type_align): Always return 0.
13106 * gdbarch.h: Regenerate.
13107 * gdbarch.sh (type_align): Extend comment.
13108 * gdbtypes.c (type_align): Add additional comments, always call
13109 gdbarch_type_align before applying the default rules.
13110 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13111 generic code will then apply a suitable default.
13112 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13113 types, return 0 for other types.
13114
13115 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13116
13117 * NEWS: Create a new section for the next release branch.
13118 Rename the section of the current branch, now that it has
13119 been cut.
13120
13121 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13122
13123 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13124 * version.in: Bump version to 8.3.50.DATE-git.
13125
13126 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13127
13128 * aix-thread.c (ptid_cmp): Remove unused variable.
13129 (get_signaled_thread): Likewise.
13130 (store_regs_user_thread): Likewise.
13131 (store_regs_kernel_thread): Likewise.
13132 (fetch_regs_kernel_thread): Remove shadowed variable.
13133
13134 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13135
13136 * features/riscv/32bit-cpu.xml: Add register numbers.
13137 * features/riscv/32bit-fpu.c: Regenerate.
13138 * features/riscv/32bit-fpu.xml: Add register numbers.
13139 * features/riscv/64bit-cpu.xml: Add register numbers.
13140 * features/riscv/64bit-fpu.c: Regenerate.
13141 * features/riscv/64bit-fpu.xml: Add register numbers.
13142
13143 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13144
13145 * NEWS: Mention two argument form of gdb.Value constructor.
13146 * python/py-value.c (convert_buffer_and_type_to_value): New
13147 function.
13148 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13149 Add support for handling an optional second argument. Call
13150 convert_buffer_and_type_to_value as appropriate.
13151 * python/python-internal.h (Py_buffer_deleter): New struct.
13152 (Py_buffer_up): New typedef.
13153
13154 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13155
13156 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13157 instead of releasing ownership.
13158
13159 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13160
13161 * dwarf2read.c (open_and_init_dwp_file): Call
13162 elf_numsections instead of bfd_count_sections to initialize
13163 dwp_file->num_sections.
13164
13165 2019-02-25 Tom Tromey <tromey@adacore.com>
13166
13167 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13168
13169 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13170
13171 * gcore.in: Add '--readnever' option when invoking GDB.
13172
13173 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13174
13175 * MAINTAINERS: Update my email address.
13176
13177 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13178
13179 * build-id.c (build_id_to_debug_bfd_1): New function.
13180 (build_id_to_debug_bfd): Look for separate debug file in
13181 sysroot.
13182
13183 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13184
13185 * gdbarch.sh: Update the copyright year range that is placed into
13186 generated files.
13187
13188 2019-02-22 Keith Seitz <keiths@redhat.com>
13189
13190 PR symtab/23853
13191 * linespec.c (create_sals_line_offset): Search for the default
13192 symtab's filename instead of its fullname.
13193
13194 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13195
13196 * NEWS: Update style defaults.
13197
13198 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13199
13200 * main.c (captured_main_1): Disable styling in batch mode.
13201
13202 2019-02-20 Tom Tromey <tom@tromey.com>
13203
13204 * symtab.c (symtab_symbol_info): Fix typos.
13205
13206 2019-02-20 Tom Tromey <tromey@adacore.com>
13207
13208 * findcmd.c (_initialize_mem_search): Use upper case for
13209 metasyntactic variables.
13210
13211 2019-02-20 Alan Hayward <alan.hayward@arm.com>
13212
13213 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13214 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13215
13216 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13217
13218 * top.h (source_file_name): Change to std::string.
13219 * top.c (source_file_name): Likewise.
13220 (command_line_input): Adjust.
13221 * cli/cli-script.c (script_from_file): Adjust.
13222
13223 2019-02-19 Tom Tromey <tromey@adacore.com>
13224
13225 * ravenscar-thread.c
13226 (ravenscar_thread_target::update_thread_list): Don't call
13227 ada_build_task_list.
13228 * ada-lang.h (ada_build_task_list): Don't declare.
13229 * ada-tasks.c (struct ada_tasks_inferior_data)
13230 <task_list_valid_p>: Now bool.
13231 (read_known_tasks, ada_task_list_changed)
13232 (ada_tasks_invalidate_inferior_data): Update.
13233 (read_known_tasks_array): Return bool.
13234 (read_known_tasks_list): Likewise.
13235 (read_known_tasks): Return void.
13236 (ada_build_task_list): Now static.
13237
13238 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13239
13240 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13241 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13242
13243 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13244
13245 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13246 variant for ada_tasks_pspace_data_handle and
13247 ada_tasks_inferior_data_handle.
13248 (ada_tasks_pspace_data_cleanup): New function.
13249 (ada_tasks_inferior_data_cleanup): New function.
13250
13251 2019-02-17 Tom Tromey <tom@tromey.com>
13252
13253 * macrotab.h (macro_source_fullname): Return a std::string.
13254 * macrotab.c (macro_include, check_for_redefinition)
13255 (macro_undef, macro_lookup_definition, foreach_macro)
13256 (foreach_macro_in_scope): Update.
13257 (macro_source_fullname): Return a std::string.
13258 * macrocmd.c (show_pp_source_pos): Update.
13259
13260 2019-02-17 Tom Tromey <tom@tromey.com>
13261
13262 * macrocmd.c (show_pp_source_pos): Style the file names.
13263
13264 2019-02-17 Tom Tromey <tom@tromey.com>
13265
13266 PR tui/24197:
13267 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13268
13269 2019-02-17 Tom Tromey <tom@tromey.com>
13270
13271 * ada-lang.c (user_select_syms): Use filtered printing.
13272 * utils.c (wrap_style): New global.
13273 (desired_style): Remove.
13274 (emit_style_escape): Add stream parameter.
13275 (set_output_style, reset_terminal_style, prompt_for_continue):
13276 Update.
13277 (flush_wrap_buffer): Only flush gdb_stdout.
13278 (wrap_here): Set wrap_style.
13279 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13280 treat escape sequences as a character. Change when wrap buffer is
13281 flushed.
13282 (fputs_styled): Do not set the output style when the default is
13283 requested.
13284 * ui-style.h (struct ui_file_style) <is_default>: New method.
13285 * source.c (print_source_lines_base): Emit escape sequences in one
13286 piece.
13287
13288 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13289
13290 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13291 integers and enumeration types.
13292
13293 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13294
13295 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13296 instead of lookup_symbol_in_language
13297 (do_exact_match): New function.
13298 (ada_get_symbol_name_matcher): Return do_exact_match when
13299 doing a verbatim match.
13300
13301 2019-02-15 Tom Tromey <tromey@adacore.com>
13302
13303 * ravenscar-thread.c (ravenscar_thread_target::resume)
13304 (ravenscar_thread_target::wait): Special case wildcard requests.
13305
13306 2019-02-15 Tom Tromey <tromey@adacore.com>
13307
13308 * ravenscar-thread.c (base_ptid): Remove.
13309 (struct ravenscar_thread_target) <close>: New method.
13310 <m_base_ptid>: New member.
13311 <update_inferior_ptid, active_task, task_is_currently_active,
13312 runtime_initialized>: Declare methods.
13313 <ravenscar_thread_target>: Add constructor.
13314 (ravenscar_thread_target::task_is_currently_active)
13315 (ravenscar_thread_target::update_inferior_ptid)
13316 (ravenscar_runtime_initialized): Rename. Now methods.
13317 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13318 (ravenscar_thread_target::update_thread_list): Update.
13319 (ravenscar_thread_target::active_task): Now method.
13320 (ravenscar_thread_target::store_registers)
13321 (ravenscar_thread_target::prepare_to_store)
13322 (ravenscar_thread_target::prepare_to_store)
13323 (ravenscar_thread_target::mourn_inferior): Update.
13324 (ravenscar_inferior_created): Use "new" to create target.
13325 (ravenscar_thread_target::get_ada_task_ptid): Update.
13326 (_initialize_ravenscar): Don't initialize base_ptid.
13327 (ravenscar_ops): Remove global.
13328
13329 2019-02-15 Tom Tromey <tromey@adacore.com>
13330
13331 * target.h (push_target): Declare new overload.
13332 * target.c (push_target): New overload, taking an rvalue reference.
13333 * remote.c (remote_target::open_1): Use push_target overload.
13334 * corelow.c (core_target_open): Use push_target overload.
13335
13336 2019-02-15 Tom Tromey <tromey@adacore.com>
13337
13338 * ravenscar-thread.c (is_ravenscar_task)
13339 (ravenscar_task_is_currently_active): Return bool.
13340 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13341 (_initialize_ravenscar): Remove "(void)".
13342 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13343 Return bool.
13344
13345 2019-02-15 Tom Tromey <tromey@adacore.com>
13346
13347 * ravenscar-thread.c (ravenscar_runtime_initializer)
13348 (has_ravenscar_runtime, get_running_thread_id)
13349 (ravenscar_thread_target::resume): Fix indentation.
13350
13351 2019-02-15 Tom Tromey <tromey@adacore.com>
13352
13353 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13354 from ravenscar_arch_ops.
13355 (sparc_ravenscar_ops::fetch_registers)
13356 (sparc_ravenscar_ops::store_registers): Now methods.
13357 (sparc_ravenscar_prepare_to_store): Remove.
13358 (sparc_ravenscar_ops): Redefine.
13359 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13360 methods and destructor. Remove members.
13361 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13362 (ravenscar_thread_target::store_registers)
13363 (ravenscar_thread_target::prepare_to_store): Update.
13364 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13365 Remove.
13366 (struct ppc_ravenscar_powerpc_ops): Derive from
13367 ravenscar_arch_ops.
13368 (ppc_ravenscar_powerpc_ops::fetch_registers)
13369 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13370 (ppc_ravenscar_powerpc_ops): Redefine.
13371 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13372 (ppc_ravenscar_e500_ops::fetch_registers)
13373 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13374 (ppc_ravenscar_e500_ops): Redefine.
13375 * aarch64-ravenscar-thread.c
13376 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13377 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13378 (aarch64_ravenscar_fetch_registers)
13379 (aarch64_ravenscar_store_registers): Now methods.
13380 (aarch64_ravenscar_ops): Redefine.
13381
13382 2019-02-15 Tom Tromey <tromey@adacore.com>
13383
13384 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13385 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13386 (ravenscar_thread_target::stopped_by_watchpoint)
13387 (ravenscar_thread_target::stopped_data_address)
13388 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13389
13390 2019-02-15 Tom Tromey <tromey@adacore.com>
13391
13392 * ravenscar-thread.c: Fix some typos.
13393
13394 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13395 Tom Tromey <tromey@adacore.com>
13396
13397 * ada-lang.c (ada_exception_sal): Change addr_string to a
13398 std::string.
13399 (create_ada_exception_catchpoint): Update.
13400
13401 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13402 Tom Tromey <tromey@adacore.com>
13403
13404 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13405 (bp_location_ops): Remove.
13406 (base_breakpoint_allocate_location): Update.
13407 (free_bp_location): Update.
13408 * ada-lang.c (class ada_catchpoint_location)
13409 <ada_catchpoint_location>: Remove ops parameter.
13410 (ada_catchpoint_location_dtor): Remove.
13411 (ada_catchpoint_location_ops): Remove.
13412 (allocate_location_exception): Update.
13413 * breakpoint.h (struct bp_location_ops): Remove.
13414 (class bp_location) <bp_location>: Remove bp_location_ops
13415 parameter.
13416 <~bp_location>: Add destructor.
13417 <ops>: Remove.
13418
13419 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13420 Pedro Alves <palves@redhat.com>
13421
13422 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13423 'PATH_MAX'.
13424
13425 2019-02-14 David Michael <fedora.dm0@gmail.com>
13426 Samuel Thibault <samuel.thibault@gnu.org>
13427 Thomas Schwinge <thomas@codesourcery.com>
13428
13429 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13430 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13431
13432 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13433
13434 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13435 (check_empty): Use "const char *".
13436
13437 * gnu-nat.c (gnu_nat_target::detach): Instead of
13438 'detach_inferior (pid)' call
13439 'detach_inferior (find_inferior_pid (pid))'.
13440
13441 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13442 'nat/fork-inferior.o'.
13443 * gnu-nat.c: #include "nat/fork-inferior.h".
13444
13445 * gnu-nat.c (gnu_nat_target::detach): Instead of
13446 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13447 * gnu-nat.h: #include "inf-child.h".
13448 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13449 'i386_gnu_nat_target::fetch_registers'.
13450 (gnu_store_registers): Rename/move to
13451 'i386_gnu_nat_target::store_registers'.
13452
13453 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13454 * gnu-nat.h (mach_thread_info): New function.
13455 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13456
13457 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13458
13459 2019-02-14 Frederic Konrad <konrad@adacore.com>
13460
13461 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13462
13463 2019-02-14 Joel Brobecker <brobecker@adacore.com>
13464
13465 * windows-nat.c (windows_add_thread): Add new parameter
13466 "main_thread_p" with default value set to false. Update
13467 function documentation as well as all callers.
13468 (windows_delete_thread): Likewise.
13469 (fake_create_process): Update call to windows_add_thread.
13470 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13471 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13472 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13473 call to windows_delete_thread.
13474
13475 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13476
13477 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13478
13479 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13480
13481 * symfile.c (find_separate_debug_file): Use canonical path of
13482 sysroot with child_path instead of gdb_sysroot if it is valid.
13483
13484 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13485
13486 * symfile.c (find_separate_debug_file): Use child_path to
13487 determine if an object file is under a sysroot.
13488
13489 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13490
13491 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13492 unittests/child-path-selftests.c.
13493 * common/pathstuff.c (child_path): New function.
13494 * common/pathstuff.h (child_path): New prototype.
13495 * unittests/child-path-selftests.c: New file.
13496
13497 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13498
13499 * symfile.c (find_separate_debug_file): Look for separate debug
13500 files in debug directories under the sysroot.
13501
13502 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13503
13504 * symtab.h (struct minimal_symbol data_p): New const method.
13505 (struct minimal_symbol text_p): Likewise.
13506 * symtab.c (output_source_filename): Use file name style
13507 to print file name.
13508 (print_symbol_info): Likewise.
13509 (print_msymbol_info): Use address style to print addresses.
13510 Use function name style to print executable text symbols.
13511 (expand_symtab_containing_pc): Use data_p.
13512 (find_pc_sect_compunit_symtab): Likewise.
13513
13514 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13515
13516 * breakpoint.c (describe_other_breakpoints): Use address style
13517 to print addresses.
13518 (say_where): Likewise.
13519
13520 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13521
13522 * ada-typeprint.c (print_func_type): Print function name
13523 style to print function name.
13524 * c-typeprint.c (c_print_type_1): Likewise.
13525
13526 2019-02-11 Alan Hayward <alan.hayward@arm.com>
13527
13528 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13529 for execve.
13530
13531 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13532
13533 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13534 type_stack.
13535
13536 2019-02-10 Joel Brobecker <brobecker@adacore.com>
13537
13538 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13539 TYPE_CODE_REF types.
13540
13541 2019-02-08 Jim Wilson <jimw@sifive.com>
13542
13543 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13544 (riscv_linux_fregset): New.
13545 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13546
13547 2019-02-07 Tom Tromey <tom@tromey.com>
13548
13549 * thread.c (thread_cancel_execution_command): Update.
13550 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13551 methods.
13552 (struct thread_fsm_ops): Remove.
13553 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13554 (thread_fsm_should_stop, thread_fsm_return_value)
13555 (thread_fsm_set_finished, thread_fsm_finished_p)
13556 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13557 Don't declare.
13558 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13559 * infrun.c (clear_proceed_status_thread)
13560 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13561 (print_stop_event): Update.
13562 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13563 Add constructor.
13564 (step_command_fsm_ops): Remove.
13565 (new_step_command_fsm): Remove.
13566 (step_1): Update.
13567 (step_command_fsm::should_stop): Rename from
13568 step_command_fsm_should_stop.
13569 (step_command_fsm::clean_up): Rename from
13570 step_command_fsm_clean_up.
13571 (step_command_fsm::do_async_reply_reason): Rename from
13572 step_command_fsm_async_reply_reason.
13573 (struct until_next_fsm): Inherit from thread_fsm. Add
13574 constructor.
13575 (until_next_fsm_ops): Remove.
13576 (new_until_next_fsm): Remove.
13577 (until_next_fsm::should_stop): Rename from
13578 until_next_fsm_should_stop.
13579 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13580 (until_next_fsm::do_async_reply_reason): Rename from
13581 until_next_fsm_async_reply_reason.
13582 (struct finish_command_fsm): Inherit from thread_fsm. Add
13583 constructor. Change type of breakpoint.
13584 (finish_command_fsm_ops): Remove.
13585 (new_finish_command_fsm): Remove.
13586 (finish_command_fsm::should_stop): Rename from
13587 finish_command_fsm_should_stop.
13588 (finish_command_fsm::clean_up): Rename from
13589 finish_command_fsm_clean_up.
13590 (finish_command_fsm::return_value): Rename from
13591 finish_command_fsm_return_value.
13592 (finish_command_fsm::do_async_reply_reason): Rename from
13593 finish_command_fsm_async_reply_reason.
13594 (finish_command): Update.
13595 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13596 Add constructor.
13597 (call_thread_fsm_ops): Remove.
13598 (call_thread_fsm::call_thread_fsm): Rename from
13599 new_call_thread_fsm.
13600 (call_thread_fsm::should_stop): Rename from
13601 call_thread_fsm_should_stop.
13602 (call_thread_fsm::should_notify_stop): Rename from
13603 call_thread_fsm_should_notify_stop.
13604 (run_inferior_call, call_function_by_hand_dummy): Update.
13605 * cli/cli-interp.c (should_print_stop_to_console): Update.
13606 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13607 Add constructor. Change type of location_breakpoint,
13608 caller_breakpoint.
13609 (until_break_fsm_ops): Remove.
13610 (new_until_break_fsm): Remove.
13611 (until_break_fsm::should_stop): Rename from
13612 until_break_fsm_should_stop.
13613 (until_break_fsm::clean_up): Rename from
13614 until_break_fsm_clean_up.
13615 (until_break_fsm::do_async_reply_reason): Rename from
13616 until_break_fsm_async_reply_reason.
13617 (until_break_command): Update.
13618 * thread-fsm.c: Remove.
13619 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13620
13621 2019-02-07 Tom Tromey <tom@tromey.com>
13622
13623 * yy-remap.h: Add include guard.
13624 * xtensa-tdep.h: Add include guard.
13625 * xcoffread.h: Rename include guard.
13626 * varobj-iter.h: Add include guard.
13627 * tui/tui.h: Rename include guard.
13628 * tui/tui-winsource.h: Rename include guard.
13629 * tui/tui-wingeneral.h: Rename include guard.
13630 * tui/tui-windata.h: Rename include guard.
13631 * tui/tui-win.h: Rename include guard.
13632 * tui/tui-stack.h: Rename include guard.
13633 * tui/tui-source.h: Rename include guard.
13634 * tui/tui-regs.h: Rename include guard.
13635 * tui/tui-out.h: Rename include guard.
13636 * tui/tui-layout.h: Rename include guard.
13637 * tui/tui-io.h: Rename include guard.
13638 * tui/tui-hooks.h: Rename include guard.
13639 * tui/tui-file.h: Rename include guard.
13640 * tui/tui-disasm.h: Rename include guard.
13641 * tui/tui-data.h: Rename include guard.
13642 * tui/tui-command.h: Rename include guard.
13643 * tic6x-tdep.h: Add include guard.
13644 * target/waitstatus.h: Rename include guard.
13645 * target/wait.h: Rename include guard.
13646 * target/target.h: Rename include guard.
13647 * target/resume.h: Rename include guard.
13648 * target-float.h: Rename include guard.
13649 * stabsread.h: Add include guard.
13650 * rs6000-tdep.h: Add include guard.
13651 * riscv-fbsd-tdep.h: Add include guard.
13652 * regformats/regdef.h: Rename include guard.
13653 * record.h: Rename include guard.
13654 * python/python.h: Rename include guard.
13655 * python/python-internal.h: Rename include guard.
13656 * python/py-stopevent.h: Rename include guard.
13657 * python/py-ref.h: Rename include guard.
13658 * python/py-record.h: Rename include guard.
13659 * python/py-record-full.h: Rename include guard.
13660 * python/py-record-btrace.h: Rename include guard.
13661 * python/py-instruction.h: Rename include guard.
13662 * python/py-events.h: Rename include guard.
13663 * python/py-event.h: Rename include guard.
13664 * procfs.h: Add include guard.
13665 * proc-utils.h: Add include guard.
13666 * p-lang.h: Add include guard.
13667 * or1k-tdep.h: Rename include guard.
13668 * observable.h: Rename include guard.
13669 * nto-tdep.h: Rename include guard.
13670 * nat/x86-linux.h: Rename include guard.
13671 * nat/x86-linux-dregs.h: Rename include guard.
13672 * nat/x86-gcc-cpuid.h: Add include guard.
13673 * nat/x86-dregs.h: Rename include guard.
13674 * nat/x86-cpuid.h: Rename include guard.
13675 * nat/ppc-linux.h: Rename include guard.
13676 * nat/mips-linux-watch.h: Rename include guard.
13677 * nat/linux-waitpid.h: Rename include guard.
13678 * nat/linux-ptrace.h: Rename include guard.
13679 * nat/linux-procfs.h: Rename include guard.
13680 * nat/linux-osdata.h: Rename include guard.
13681 * nat/linux-nat.h: Rename include guard.
13682 * nat/linux-namespaces.h: Rename include guard.
13683 * nat/linux-btrace.h: Rename include guard.
13684 * nat/glibc_thread_db.h: Rename include guard.
13685 * nat/gdb_thread_db.h: Rename include guard.
13686 * nat/gdb_ptrace.h: Rename include guard.
13687 * nat/fork-inferior.h: Rename include guard.
13688 * nat/amd64-linux-siginfo.h: Rename include guard.
13689 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13690 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13691 * nat/aarch64-linux.h: Rename include guard.
13692 * nat/aarch64-linux-hw-point.h: Rename include guard.
13693 * mn10300-tdep.h: Add include guard.
13694 * mips-linux-tdep.h: Add include guard.
13695 * mi/mi-parse.h: Rename include guard.
13696 * mi/mi-out.h: Rename include guard.
13697 * mi/mi-main.h: Rename include guard.
13698 * mi/mi-interp.h: Rename include guard.
13699 * mi/mi-getopt.h: Rename include guard.
13700 * mi/mi-console.h: Rename include guard.
13701 * mi/mi-common.h: Rename include guard.
13702 * mi/mi-cmds.h: Rename include guard.
13703 * mi/mi-cmd-break.h: Rename include guard.
13704 * m2-lang.h: Add include guard.
13705 * location.h: Rename include guard.
13706 * linux-record.h: Rename include guard.
13707 * linux-nat.h: Add include guard.
13708 * linux-fork.h: Add include guard.
13709 * i386-darwin-tdep.h: Rename include guard.
13710 * hppa-linux-offsets.h: Add include guard.
13711 * guile/guile.h: Rename include guard.
13712 * guile/guile-internal.h: Rename include guard.
13713 * gnu-nat.h: Rename include guard.
13714 * gdb-stabs.h: Rename include guard.
13715 * frv-tdep.h: Add include guard.
13716 * f-lang.h: Add include guard.
13717 * event-loop.h: Add include guard.
13718 * darwin-nat.h: Rename include guard.
13719 * cp-abi.h: Rename include guard.
13720 * config/sparc/nm-sol2.h: Rename include guard.
13721 * config/nm-nto.h: Rename include guard.
13722 * config/nm-linux.h: Add include guard.
13723 * config/i386/nm-i386gnu.h: Rename include guard.
13724 * config/djgpp/nl_types.h: Rename include guard.
13725 * config/djgpp/langinfo.h: Rename include guard.
13726 * compile/gcc-cp-plugin.h: Add include guard.
13727 * compile/gcc-c-plugin.h: Add include guard.
13728 * compile/compile.h: Rename include guard.
13729 * compile/compile-object-run.h: Rename include guard.
13730 * compile/compile-object-load.h: Rename include guard.
13731 * compile/compile-internal.h: Rename include guard.
13732 * compile/compile-cplus.h: Rename include guard.
13733 * compile/compile-c.h: Rename include guard.
13734 * common/xml-utils.h: Rename include guard.
13735 * common/x86-xstate.h: Rename include guard.
13736 * common/version.h: Rename include guard.
13737 * common/vec.h: Rename include guard.
13738 * common/tdesc.h: Rename include guard.
13739 * common/selftest.h: Rename include guard.
13740 * common/scoped_restore.h: Rename include guard.
13741 * common/scoped_mmap.h: Rename include guard.
13742 * common/scoped_fd.h: Rename include guard.
13743 * common/safe-iterator.h: Rename include guard.
13744 * common/run-time-clock.h: Rename include guard.
13745 * common/refcounted-object.h: Rename include guard.
13746 * common/queue.h: Rename include guard.
13747 * common/ptid.h: Rename include guard.
13748 * common/print-utils.h: Rename include guard.
13749 * common/preprocessor.h: Rename include guard.
13750 * common/pathstuff.h: Rename include guard.
13751 * common/observable.h: Rename include guard.
13752 * common/netstuff.h: Rename include guard.
13753 * common/job-control.h: Rename include guard.
13754 * common/host-defs.h: Rename include guard.
13755 * common/gdb_wait.h: Rename include guard.
13756 * common/gdb_vecs.h: Rename include guard.
13757 * common/gdb_unlinker.h: Rename include guard.
13758 * common/gdb_unique_ptr.h: Rename include guard.
13759 * common/gdb_tilde_expand.h: Rename include guard.
13760 * common/gdb_sys_time.h: Rename include guard.
13761 * common/gdb_string_view.h: Rename include guard.
13762 * common/gdb_splay_tree.h: Rename include guard.
13763 * common/gdb_setjmp.h: Rename include guard.
13764 * common/gdb_ref_ptr.h: Rename include guard.
13765 * common/gdb_optional.h: Rename include guard.
13766 * common/gdb_locale.h: Rename include guard.
13767 * common/gdb_assert.h: Rename include guard.
13768 * common/filtered-iterator.h: Rename include guard.
13769 * common/filestuff.h: Rename include guard.
13770 * common/fileio.h: Rename include guard.
13771 * common/environ.h: Rename include guard.
13772 * common/common-utils.h: Rename include guard.
13773 * common/common-types.h: Rename include guard.
13774 * common/common-regcache.h: Rename include guard.
13775 * common/common-inferior.h: Rename include guard.
13776 * common/common-gdbthread.h: Rename include guard.
13777 * common/common-exceptions.h: Rename include guard.
13778 * common/common-defs.h: Rename include guard.
13779 * common/common-debug.h: Rename include guard.
13780 * common/cleanups.h: Rename include guard.
13781 * common/buffer.h: Rename include guard.
13782 * common/btrace-common.h: Rename include guard.
13783 * common/break-common.h: Rename include guard.
13784 * cli/cli-utils.h: Rename include guard.
13785 * cli/cli-style.h: Rename include guard.
13786 * cli/cli-setshow.h: Rename include guard.
13787 * cli/cli-script.h: Rename include guard.
13788 * cli/cli-interp.h: Rename include guard.
13789 * cli/cli-decode.h: Rename include guard.
13790 * cli/cli-cmds.h: Rename include guard.
13791 * charset-list.h: Add include guard.
13792 * buildsym-legacy.h: Rename include guard.
13793 * bfin-tdep.h: Add include guard.
13794 * ax.h: Rename include guard.
13795 * arm-linux-tdep.h: Add include guard.
13796 * arm-fbsd-tdep.h: Add include guard.
13797 * arch/xtensa.h: Rename include guard.
13798 * arch/tic6x.h: Add include guard.
13799 * arch/i386.h: Add include guard.
13800 * arch/arm.h: Rename include guard.
13801 * arch/arm-linux.h: Rename include guard.
13802 * arch/arm-get-next-pcs.h: Rename include guard.
13803 * arch/amd64.h: Add include guard.
13804 * arch/aarch64-insn.h: Rename include guard.
13805 * arch-utils.h: Rename include guard.
13806 * annotate.h: Add include guard.
13807 * amd64-darwin-tdep.h: Rename include guard.
13808 * aarch64-linux-tdep.h: Add include guard.
13809 * aarch64-fbsd-tdep.h: Add include guard.
13810 * aarch32-linux-nat.h: Add include guard.
13811
13812 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13813
13814 * macrotab.c (macro_define_internal): New function that
13815 factorizes macro_define_object_internal and macro_define_function
13816 code.
13817 (macro_define_object_internal): Use macro_define_internal.
13818 (macro_define_function): Likewise.
13819
13820 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13821
13822 * macrocmd.c (extract_identifier): Return
13823 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13824 callers.
13825
13826 2019-02-06 John Baldwin <jhb@FreeBSD.org>
13827
13828 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13829
13830 2019-02-05 Tom Tromey <tom@tromey.com>
13831
13832 * target.c (target_stack::unpush): Move assertion earlier.
13833
13834 2019-01-30 Tom Tromey <tom@tromey.com>
13835
13836 PR python/23615:
13837 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
13838 (gdbpy_parse_and_eval): Likewise.
13839 * python/python-internal.h (gdbpy_allow_threads): New class.
13840
13841 2019-01-28 John Baldwin <jhb@FreeBSD.org>
13842
13843 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
13844 (aarch64_fbsd_fpregmap): Move earlier.
13845 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
13846 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13847 instead of individual calls to trad_frame_set_reg_addr.
13848 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
13849 earlier.
13850 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
13851 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13852 instead of individual calls to trad_frame_set_reg_addr.
13853
13854 2019-01-28 Alan Hayward <alan.hayward@arm.com>
13855
13856 * CONTRIBUTE: Replace contribution list with wiki link.
13857
13858 2019-01-25 Tom Tromey <tom@tromey.com>
13859
13860 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
13861
13862 2019-01-25 Tom Tromey <tom@tromey.com>
13863
13864 * xtensa-linux-nat.c: Fix common/ includes.
13865 * xml-support.h: Fix common/ includes.
13866 * xml-support.c: Fix common/ includes.
13867 * x86-linux-nat.c: Fix common/ includes.
13868 * windows-nat.c: Fix common/ includes.
13869 * varobj.h: Fix common/ includes.
13870 * varobj.c: Fix common/ includes.
13871 * value.c: Fix common/ includes.
13872 * valops.c: Fix common/ includes.
13873 * utils.c: Fix common/ includes.
13874 * unittests/xml-utils-selftests.c: Fix common/ includes.
13875 * unittests/utils-selftests.c: Fix common/ includes.
13876 * unittests/unpack-selftests.c: Fix common/ includes.
13877 * unittests/tracepoint-selftests.c: Fix common/ includes.
13878 * unittests/style-selftests.c: Fix common/ includes.
13879 * unittests/string_view-selftests.c: Fix common/ includes.
13880 * unittests/scoped_restore-selftests.c: Fix common/ includes.
13881 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
13882 * unittests/scoped_fd-selftests.c: Fix common/ includes.
13883 * unittests/rsp-low-selftests.c: Fix common/ includes.
13884 * unittests/parse-connection-spec-selftests.c: Fix common/
13885 includes.
13886 * unittests/optional-selftests.c: Fix common/ includes.
13887 * unittests/offset-type-selftests.c: Fix common/ includes.
13888 * unittests/observable-selftests.c: Fix common/ includes.
13889 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
13890 * unittests/memrange-selftests.c: Fix common/ includes.
13891 * unittests/memory-map-selftests.c: Fix common/ includes.
13892 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
13893 * unittests/function-view-selftests.c: Fix common/ includes.
13894 * unittests/environ-selftests.c: Fix common/ includes.
13895 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
13896 * unittests/common-utils-selftests.c: Fix common/ includes.
13897 * unittests/cli-utils-selftests.c: Fix common/ includes.
13898 * unittests/array-view-selftests.c: Fix common/ includes.
13899 * ui-file.c: Fix common/ includes.
13900 * tui/tui-io.c: Fix common/ includes.
13901 * tracepoint.h: Fix common/ includes.
13902 * tracepoint.c: Fix common/ includes.
13903 * tracefile-tfile.c: Fix common/ includes.
13904 * top.h: Fix common/ includes.
13905 * top.c: Fix common/ includes.
13906 * thread.c: Fix common/ includes.
13907 * target/waitstatus.h: Fix common/ includes.
13908 * target/waitstatus.c: Fix common/ includes.
13909 * target.h: Fix common/ includes.
13910 * target.c: Fix common/ includes.
13911 * target-memory.c: Fix common/ includes.
13912 * target-descriptions.c: Fix common/ includes.
13913 * symtab.h: Fix common/ includes.
13914 * symfile.c: Fix common/ includes.
13915 * stap-probe.c: Fix common/ includes.
13916 * spu-linux-nat.c: Fix common/ includes.
13917 * sparc-nat.c: Fix common/ includes.
13918 * source.c: Fix common/ includes.
13919 * solib.c: Fix common/ includes.
13920 * solib-target.c: Fix common/ includes.
13921 * ser-unix.c: Fix common/ includes.
13922 * ser-tcp.c: Fix common/ includes.
13923 * ser-pipe.c: Fix common/ includes.
13924 * ser-base.c: Fix common/ includes.
13925 * selftest-arch.c: Fix common/ includes.
13926 * s12z-tdep.c: Fix common/ includes.
13927 * rust-exp.y: Fix common/ includes.
13928 * rs6000-aix-tdep.c: Fix common/ includes.
13929 * riscv-tdep.c: Fix common/ includes.
13930 * remote.c: Fix common/ includes.
13931 * remote-notif.h: Fix common/ includes.
13932 * remote-fileio.h: Fix common/ includes.
13933 * remote-fileio.c: Fix common/ includes.
13934 * regcache.h: Fix common/ includes.
13935 * regcache.c: Fix common/ includes.
13936 * record-btrace.c: Fix common/ includes.
13937 * python/python.c: Fix common/ includes.
13938 * python/py-type.c: Fix common/ includes.
13939 * python/py-inferior.c: Fix common/ includes.
13940 * progspace.h: Fix common/ includes.
13941 * producer.c: Fix common/ includes.
13942 * procfs.c: Fix common/ includes.
13943 * proc-api.c: Fix common/ includes.
13944 * printcmd.c: Fix common/ includes.
13945 * ppc-linux-nat.c: Fix common/ includes.
13946 * parser-defs.h: Fix common/ includes.
13947 * osdata.c: Fix common/ includes.
13948 * obsd-nat.c: Fix common/ includes.
13949 * nat/x86-linux.c: Fix common/ includes.
13950 * nat/x86-linux-dregs.c: Fix common/ includes.
13951 * nat/x86-dregs.h: Fix common/ includes.
13952 * nat/x86-dregs.c: Fix common/ includes.
13953 * nat/ppc-linux.c: Fix common/ includes.
13954 * nat/mips-linux-watch.h: Fix common/ includes.
13955 * nat/mips-linux-watch.c: Fix common/ includes.
13956 * nat/linux-waitpid.c: Fix common/ includes.
13957 * nat/linux-ptrace.h: Fix common/ includes.
13958 * nat/linux-ptrace.c: Fix common/ includes.
13959 * nat/linux-procfs.c: Fix common/ includes.
13960 * nat/linux-personality.c: Fix common/ includes.
13961 * nat/linux-osdata.c: Fix common/ includes.
13962 * nat/linux-namespaces.c: Fix common/ includes.
13963 * nat/linux-btrace.h: Fix common/ includes.
13964 * nat/linux-btrace.c: Fix common/ includes.
13965 * nat/fork-inferior.c: Fix common/ includes.
13966 * nat/amd64-linux-siginfo.c: Fix common/ includes.
13967 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
13968 * nat/aarch64-linux.c: Fix common/ includes.
13969 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
13970 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
13971 * namespace.h: Fix common/ includes.
13972 * mips-linux-tdep.c: Fix common/ includes.
13973 * minsyms.c: Fix common/ includes.
13974 * mi/mi-parse.h: Fix common/ includes.
13975 * mi/mi-main.c: Fix common/ includes.
13976 * mi/mi-cmd-env.c: Fix common/ includes.
13977 * memrange.h: Fix common/ includes.
13978 * memattr.c: Fix common/ includes.
13979 * maint.h: Fix common/ includes.
13980 * maint.c: Fix common/ includes.
13981 * main.c: Fix common/ includes.
13982 * machoread.c: Fix common/ includes.
13983 * location.c: Fix common/ includes.
13984 * linux-thread-db.c: Fix common/ includes.
13985 * linux-nat.c: Fix common/ includes.
13986 * linux-fork.c: Fix common/ includes.
13987 * inline-frame.c: Fix common/ includes.
13988 * infrun.c: Fix common/ includes.
13989 * inflow.c: Fix common/ includes.
13990 * inferior.h: Fix common/ includes.
13991 * inferior.c: Fix common/ includes.
13992 * infcmd.c: Fix common/ includes.
13993 * inf-ptrace.c: Fix common/ includes.
13994 * inf-child.c: Fix common/ includes.
13995 * ia64-linux-nat.c: Fix common/ includes.
13996 * i387-tdep.c: Fix common/ includes.
13997 * i386-tdep.c: Fix common/ includes.
13998 * i386-linux-tdep.c: Fix common/ includes.
13999 * i386-linux-nat.c: Fix common/ includes.
14000 * i386-go32-tdep.c: Fix common/ includes.
14001 * i386-fbsd-tdep.c: Fix common/ includes.
14002 * i386-fbsd-nat.c: Fix common/ includes.
14003 * guile/scm-type.c: Fix common/ includes.
14004 * guile/guile.c: Fix common/ includes.
14005 * go32-nat.c: Fix common/ includes.
14006 * gnu-nat.c: Fix common/ includes.
14007 * gdbthread.h: Fix common/ includes.
14008 * gdbarch-selftests.c: Fix common/ includes.
14009 * gdb_usleep.c: Fix common/ includes.
14010 * gdb_select.h: Fix common/ includes.
14011 * gdb_bfd.c: Fix common/ includes.
14012 * gcore.c: Fix common/ includes.
14013 * fork-child.c: Fix common/ includes.
14014 * findvar.c: Fix common/ includes.
14015 * fbsd-nat.c: Fix common/ includes.
14016 * event-top.c: Fix common/ includes.
14017 * event-loop.c: Fix common/ includes.
14018 * dwarf2read.c: Fix common/ includes.
14019 * dwarf2loc.c: Fix common/ includes.
14020 * dwarf2-frame.c: Fix common/ includes.
14021 * dwarf-index-cache.c: Fix common/ includes.
14022 * dtrace-probe.c: Fix common/ includes.
14023 * disasm-selftests.c: Fix common/ includes.
14024 * defs.h: Fix common/ includes.
14025 * csky-tdep.c: Fix common/ includes.
14026 * cp-valprint.c: Fix common/ includes.
14027 * cp-support.h: Fix common/ includes.
14028 * cp-support.c: Fix common/ includes.
14029 * corelow.c: Fix common/ includes.
14030 * completer.h: Fix common/ includes.
14031 * completer.c: Fix common/ includes.
14032 * compile/compile.c: Fix common/ includes.
14033 * compile/compile-loc2c.c: Fix common/ includes.
14034 * compile/compile-cplus-types.c: Fix common/ includes.
14035 * compile/compile-cplus-symbols.c: Fix common/ includes.
14036 * command.h: Fix common/ includes.
14037 * cli/cli-dump.c: Fix common/ includes.
14038 * cli/cli-cmds.c: Fix common/ includes.
14039 * charset.c: Fix common/ includes.
14040 * build-id.c: Fix common/ includes.
14041 * btrace.h: Fix common/ includes.
14042 * btrace.c: Fix common/ includes.
14043 * breakpoint.h: Fix common/ includes.
14044 * breakpoint.c: Fix common/ includes.
14045 * ax.h:
14046 (enum agent_op): Fix common/ includes.
14047 * ax-general.c (struct aop_map): Fix common/ includes.
14048 * ax-gdb.c: Fix common/ includes.
14049 * auxv.c: Fix common/ includes.
14050 * auto-load.c: Fix common/ includes.
14051 * arm-tdep.c: Fix common/ includes.
14052 * arch/riscv.c: Fix common/ includes.
14053 * arch/ppc-linux-common.c: Fix common/ includes.
14054 * arch/i386.c: Fix common/ includes.
14055 * arch/arm.c: Fix common/ includes.
14056 * arch/arm-linux.c: Fix common/ includes.
14057 * arch/arm-get-next-pcs.c: Fix common/ includes.
14058 * arch/amd64.c: Fix common/ includes.
14059 * arch/aarch64.c: Fix common/ includes.
14060 * arch/aarch64-insn.c: Fix common/ includes.
14061 * arch-utils.c: Fix common/ includes.
14062 * amd64-windows-tdep.c: Fix common/ includes.
14063 * amd64-tdep.c: Fix common/ includes.
14064 * amd64-sol2-tdep.c: Fix common/ includes.
14065 * amd64-obsd-tdep.c: Fix common/ includes.
14066 * amd64-nbsd-tdep.c: Fix common/ includes.
14067 * amd64-linux-tdep.c: Fix common/ includes.
14068 * amd64-linux-nat.c: Fix common/ includes.
14069 * amd64-fbsd-tdep.c: Fix common/ includes.
14070 * amd64-fbsd-nat.c: Fix common/ includes.
14071 * amd64-dicos-tdep.c: Fix common/ includes.
14072 * amd64-darwin-tdep.c: Fix common/ includes.
14073 * agent.c: Fix common/ includes.
14074 * ada-lang.h: Fix common/ includes.
14075 * ada-lang.c: Fix common/ includes.
14076 * aarch64-tdep.c: Fix common/ includes.
14077
14078 2019-01-25 Tom Tromey <tom@tromey.com>
14079
14080 * common/create-version.sh: Use common/version.h.
14081
14082 2019-01-24 Pedro Alves <palves@redhat.com>
14083
14084 * infrun.c (signal_stop, signal_print, signal_program)
14085 (signal_catch, signal_pass): Now arrays instead of pointers.
14086 (update_signals_program_target, do_target_resume)
14087 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14088 * linux-nat.c (linux_nat_target::pass_signals)
14089 (linux_nat_target::create_inferior, linux_nat_target::attach):
14090 Adjust.
14091 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14092 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14093 * procfs.c (procfs_target::pass_signals): Adjust.
14094 * record-full.c (record_full_target::resume): Adjust.
14095 * remote.c (remote_target::pass_signals)
14096 (remote_target::program_signals): Adjust.
14097 * target-debug.h (target_debug_print_signals): Now takes a
14098 gdb::array_view as parameter. Adjust.
14099 * target.h (target_ops) <pass_signals, program_signals>: Replace
14100 pointer and length parameters with gdb::array_view.
14101 (target_pass_signals, target_program_signals): Likewise.
14102 * target-delegates.c: Regenerate.
14103
14104 2019-01-24 Pedro Alves <palves@redhat.com>
14105
14106 * common/forward-scope-exit.h
14107 (forward_scope_exit::forward_scope_exit): Pass arguments to
14108 m_bind_function directly, instead of creating a std::bind and
14109 copying that.
14110
14111 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14112
14113 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14114 for static members.
14115 (pass_in_v_vfp_candidate): Likewise.
14116
14117 2019-01-23 Tom Tromey <tom@tromey.com>
14118 Pedro Alves <palves@redhat.com>
14119
14120 * regcache.c (class regcache_invalidator): Remove.
14121 (regcache::raw_write): Use make_scope_exit.
14122
14123 2019-01-23 Tom Tromey <tom@tromey.com>
14124
14125 * ui-out.h (class ui_out_emit_type): Update comment.
14126
14127 2019-01-23 Tom Tromey <tom@tromey.com>
14128
14129 * infrun.c (fetch_inferior_event): Update comment.
14130
14131 2019-01-23 Tom Tromey <tom@tromey.com>
14132 Pedro Alves <palves@redhat.com>
14133
14134 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14135 parameter.
14136 (fetch_inferior_event): Use SCOPE_EXIT.
14137
14138
14139 2019-01-23 Tom Tromey <tom@tromey.com>
14140 Pedro Alves <palves@redhat.com>
14141
14142 * infrun.c (disable_thread_events): Delete.
14143 (stop_all_threads): Use SCOPE_EXIT.
14144
14145 2019-01-23 Tom Tromey <tom@tromey.com>
14146 Pedro Alves <palves@redhat.com>
14147
14148 * symfile.c: Include forward-scope-exit.h.
14149 (clear_symtab_users_cleanup): Replace forward declaration with
14150 a FORWARD_SCOPE_EXIT.
14151 (syms_from_objfile_1): Use the forward_scope_exit and
14152 gdb::optional instead of cleanup_function.
14153 (reread_symbols): Use the forward_scope_exit instead of
14154 cleanup_function.
14155 (clear_symtab_users_cleanup): Remove function.
14156
14157 2019-01-23 Tom Tromey <tom@tromey.com>
14158 Pedro Alves <palves@redhat.com>
14159
14160 * linux-nat.c: Include scope-exit.h.
14161 (cleanup_target_stop): Remove.
14162 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14163 SCOPE_EXIT.
14164
14165 2019-01-23 Tom Tromey <tom@tromey.com>
14166 Pedro Alves <palves@redhat.com>
14167
14168 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14169 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14170
14171 2019-01-23 Tom Tromey <tom@tromey.com>
14172 Andrew Burgess <andrew.burgess@embecosm.com>
14173 Pedro Alves <palves@redhat.com>
14174
14175 * infrun.c (fetch_inferior_event): Use scope_exit.
14176 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14177 * top.c (execute_command): Use scope_exit.
14178 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14179 * utils.c (do_bpstat_clear_actions_cleanup)
14180 (make_bpstat_clear_actions_cleanup): Remove.
14181
14182 2019-01-23 Tom Tromey <tom@tromey.com>
14183 Pedro Alves <palves@redhat.com>
14184
14185 * infrun.c: Include "common/scope-exit.h"
14186 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14187 (wait_for_inferior): Use SCOPE_EXIT.
14188 (fetch_inferior_event): Use scope_exit.
14189
14190 2019-01-23 Tom Tromey <tom@tromey.com>
14191 Pedro Alves <palves@redhat.com>
14192
14193 * breakpoint.c (create_breakpoint): Remove cleanup.
14194
14195 2019-01-23 Tom Tromey <tom@tromey.com>
14196 Andrew Burgess <andrew.burgess@embecosm.com>
14197 Pedro Alves <palves@redhat.com>
14198
14199 2019-01-23 Pedro Alves <palves@redhat.com>
14200
14201 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14202
14203 2019-01-23 Pedro Alves <palves@redhat.com>
14204 Andrew Burgess <andrew.burgess@embecosm.com>
14205
14206 * gdbthread.h: Include "common/forward-scope-exit.h".
14207 (scoped_finish_thread_state): Redefine custom class in terms of
14208 forward_scope_exit.
14209
14210 2019-01-23 Pedro Alves <palves@redhat.com>
14211 Andrew Burgess <andrew.burgess@embecosm.com>
14212
14213 * common/forward-scope-exit.h: New file.
14214
14215 2019-01-23 Pedro Alves <palves@redhat.com>
14216 Andrew Burgess <andrew.burgess@embecosm.com>
14217 Tom Tromey <tom@tromey.com>
14218
14219 * common/scope-exit.h: New file.
14220
14221 2019-01-23 Pedro Alves <palves@redhat.com>
14222
14223 * common/preprocessor.h (ESC): Rename to ...
14224 (ESC_PARENS): ... this.
14225 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14226 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14227
14228 2019-01-23 Tom Tromey <tom@tromey.com>
14229
14230 * language.h (class scoped_switch_to_sym_language_if_auto):
14231 Initialize m_lang in both cases.
14232
14233 2019-01-23 Alan Hayward <alan.hayward@arm.com>
14234
14235 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14236 with XCNEW.
14237
14238 2019-01-22 Tom Tromey <tom@tromey.com>
14239
14240 * corelow.c: Do not include sys/file.h.
14241
14242 2019-01-22 Tom Tromey <tom@tromey.com>
14243
14244 * tui/tui-wingeneral.h: Include gdb_curses.h.
14245
14246 2019-01-22 Tom Tromey <tom@tromey.com>
14247
14248 * source-cache.h (class source_cache) <get_source_lines,
14249 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14250
14251 2019-01-22 Tom Tromey <tom@tromey.com>
14252
14253 * remote-fileio.h (struct remote_target): Declare.
14254
14255 2019-01-22 Tom Tromey <tom@tromey.com>
14256
14257 * python/py-arch.c: Do not include py-ref.h.
14258 * python/py-bpevent.c: Do not include py-ref.h.
14259 * python/py-cmd.c: Do not include py-ref.h.
14260 * python/py-continueevent.c: Do not include py-ref.h.
14261 * python/py-event.h: Do not include py-ref.h.
14262 * python/py-evtregistry.c: Do not include py-ref.h.
14263 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14264 * python/py-frame.c: Do not include py-ref.h.
14265 * python/py-framefilter.c: Do not include py-ref.h.
14266 * python/py-function.c: Do not include py-ref.h.
14267 * python/py-infevents.c: Do not include py-ref.h.
14268 * python/py-linetable.c: Do not include py-ref.h.
14269 * python/py-objfile.c: Do not include py-ref.h.
14270 * python/py-param.c: Do not include py-ref.h.
14271 * python/py-prettyprint.c: Do not include py-ref.h.
14272 * python/py-progspace.c: Do not include py-ref.h.
14273 * python/py-symbol.c: Do not include py-ref.h.
14274 * python/py-symtab.c: Do not include py-ref.h.
14275 * python/py-type.c: Do not include py-ref.h.
14276 * python/py-unwind.c: Do not include py-ref.h.
14277 * python/py-utils.c: Do not include py-ref.h.
14278 * python/py-value.c: Do not include py-ref.h.
14279 * python/py-varobj.c: Do not include py-ref.h.
14280 * python/py-xmethods.c: Do not include py-ref.h.
14281 * python/python.c: Do not include py-ref.h.
14282 * varobj.c: Do not include py-ref.h.
14283
14284 2019-01-22 Tom Tromey <tom@tromey.com>
14285
14286 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14287 keyword for bcache.
14288
14289 2019-01-22 Tom Tromey <tom@tromey.com>
14290
14291 * compile/compile-cplus-types.c: Remove a comment by #include.
14292
14293 2019-01-22 Tom Tromey <tom@tromey.com>
14294
14295 * compile/gcc-c-plugin.h: Include compile-internal.h.
14296
14297 2019-01-22 Tom Tromey <tom@tromey.com>
14298
14299 * stabsread.c (EXTERN): Do not define.
14300 (symnum, next_symbol_text_func, processing_gcc_compilation)
14301 (within_function, global_sym_chain, global_stabs)
14302 (previous_stab_code, this_object_header_files)
14303 (n_this_object_header_files)
14304 (n_allocated_this_object_header_files): Define.
14305 * stabsread.h (EXTERN): Never define. Use "extern".
14306
14307 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14308
14309 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14310 history_value.
14311
14312 2019-01-21 Tom Tromey <tom@tromey.com>
14313
14314 * ui-out.c: Fix includes.
14315 * tui/tui-source.c: Fix includes.
14316 * target.c: Fix includes.
14317 * remote.c: Fix includes.
14318 * regcache.c: Fix includes.
14319 * python/py-block.c: Fix includes.
14320 * printcmd.c: Fix includes.
14321 * or1k-tdep.c: Fix includes.
14322 * mi/mi-main.c: Fix includes.
14323 * m32r-tdep.c: Fix includes.
14324 * csky-tdep.c: Fix includes.
14325 * compile/compile-cplus-types.c: Fix includes.
14326 * cli/cli-interp.c: Fix includes.
14327
14328 2019-01-21 Alan Hayward <alan.hayward@arm.com>
14329
14330 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14331 for padding.
14332
14333 2019-01-16 Tom Tromey <tom@tromey.com>
14334
14335 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14336 earlier.
14337 (struct objfile) <msymbols_range>: Move from top level.
14338 <msymbols>: New method.
14339 (class objfile_msymbols): Remove.
14340 * symtab.c (default_collect_symbol_completion_matches_break_on):
14341 Update.
14342 * symmisc.c (dump_msymbols): Update.
14343 * stabsread.c (scan_file_globals): Update.
14344 * objc-lang.c (info_selectors_command, info_classes_command)
14345 (find_methods): Update.
14346 * minsyms.c (find_solib_trampoline_target): Update.
14347 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14348 * coffread.c (coff_symfile_read): Update.
14349 * ada-lang.c (ada_lookup_simple_minsym)
14350 (ada_collect_symbol_completion_matches): Update.
14351
14352 2019-01-16 Tom Tromey <tom@tromey.com>
14353
14354 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14355 type. Remove no-argument constructor.
14356 <iterator::operator++>: Simplify.
14357 <begin>: Update.
14358 <end>: Use minimal_symbol_count.
14359
14360 2019-01-16 Tom Tromey <tom@tromey.com>
14361
14362 * objfiles.h (struct objfile) <psymtabs>: New method.
14363 (class objfile_psymtabs): Remove.
14364 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14365 typedef.
14366 <range>: New method.
14367 (require_partial_symbols): Change return type.
14368 * psymtab.c (require_partial_symbols)
14369 (psym_expand_symtabs_matching): Update.
14370 * mdebugread.c (parse_partial_symbols): Update.
14371 * dbxread.c (dbx_end_psymtab): Update.
14372
14373 2019-01-15 Tom Tromey <tom@tromey.com>
14374
14375 * symtab.c (lookup_objfile_from_block)
14376 (lookup_symbol_in_objfile_symtabs)
14377 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14378 (find_line_symtab, info_sources_command)
14379 (default_collect_symbol_completion_matches_break_on)
14380 (make_source_files_completion_list): Update.
14381 * symmisc.c (print_objfile_statistics, dump_objfile)
14382 (maintenance_print_symbols, maintenance_info_symtabs)
14383 (maintenance_check_symtabs, maintenance_info_line_tables):
14384 Update.
14385 * source.c (select_source_symtab)
14386 (forget_cached_source_info_for_objfile): Update.
14387 * objfiles.h (class objfile_compunits): Remove.
14388 (struct objfile) <compunits_range>: New typedef.
14389 (compunits): New method.
14390 * objfiles.c (objfile_relocate1): Update.
14391 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14392 * maint.c (count_symtabs_and_blocks): Update.
14393 * linespec.c (iterate_over_all_matching_symtabs): Update.
14394 * cp-support.c (add_symbol_overload_list_qualified): Update.
14395 * coffread.c (coff_symtab_read): Update.
14396 * ada-lang.c (add_nonlocal_symbols)
14397 (ada_collect_symbol_completion_matches)
14398 (ada_add_global_exceptions): Update.
14399
14400 2019-01-15 Tom Tromey <tom@tromey.com>
14401
14402 * progspace.h (program_space) <objfiles_safe_range>: New
14403 typedef.
14404 <objfiles_safe>: New method.
14405 * objfiles.h (class all_objfiles_safe): Remove.
14406 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14407 * jit.c (jit_inferior_exit_hook): Update.
14408
14409 2019-01-17 Tom Tromey <tom@tromey.com>
14410
14411 * progspace.h (program_space) <objfiles_range>: New typedef.
14412 <objfiles>: New method.
14413 <objfiles_head>: Rename from objfiles.
14414 (object_files): Update.
14415 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14416 * guile/scm-pretty-print.c
14417 (ppscm_find_pretty_printer_from_objfiles): Update.
14418 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14419 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14420 Update.
14421 * python/py-progspace.c (pspy_get_objfiles): Update.
14422 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14423 Update.
14424 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14425 (objfpy_lookup_objfile_by_build_id): Update.
14426 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14427 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14428 Update.
14429 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14430 (expand_symtab_containing_pc, lookup_objfile_from_block)
14431 (lookup_static_symbol, basic_lookup_transparent_type)
14432 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14433 (find_line_symtab, info_sources_command)
14434 (default_collect_symbol_completion_matches_break_on)
14435 (make_source_files_completion_list, find_main_name): Update.
14436 * symmisc.c (print_symbol_bcache_statistics)
14437 (print_objfile_statistics, maintenance_print_symbols)
14438 (maintenance_print_msymbols, maintenance_print_objfiles)
14439 (maintenance_info_symtabs, maintenance_check_symtabs)
14440 (maintenance_expand_symtabs, maintenance_info_line_tables):
14441 Update.
14442 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14443 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14444 (map_overlay_command, unmap_overlay_command)
14445 (simple_overlay_update, expand_symtabs_matching)
14446 (map_symbol_filenames): Update.
14447 * symfile-debug.c (set_debug_symfile): Update.
14448 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14449 Update.
14450 * source.c (select_source_symtab, forget_cached_source_info):
14451 Update.
14452 * solib.c (solib_read_symbols): Update.
14453 * solib-spu.c (append_ocl_sos): Update.
14454 * psymtab.c (maintenance_print_psymbols)
14455 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14456 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14457 * printcmd.c (info_symbol_command): Update.
14458 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14459 Update.
14460 * objfiles.h (class all_objfiles): Remove.
14461 * objfiles.c (have_partial_symbols, have_full_symbols)
14462 (have_minimal_symbols, qsort_cmp, update_section_map)
14463 (shared_objfile_contains_address_p)
14464 (default_iterate_over_objfiles_in_search_order): Update.
14465 * objc-lang.c (info_selectors_command, info_classes_command)
14466 (find_methods): Update.
14467 * minsyms.c (find_solib_trampoline_target): Update.
14468 * maint.c (maintenance_info_sections)
14469 (maintenance_translate_address, count_symtabs_and_blocks):
14470 Update.
14471 * main.c (captured_main_1): Update.
14472 * linux-thread-db.c (try_thread_db_load_from_pdir)
14473 (has_libpthread): Update.
14474 * linespec.c (iterate_over_all_matching_symtabs)
14475 (search_minsyms_for_name): Update.
14476 * jit.c (jit_find_objf_with_entry_addr): Update.
14477 * hppa-tdep.c (find_unwind_entry)
14478 (hppa_lookup_stub_minimal_symbol): Update.
14479 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14480 Update.
14481 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14482 (elf_gnu_ifunc_resolve_by_got): Update.
14483 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14484 * dwarf-index-write.c (save_gdb_index_command): Update.
14485 * cp-support.c (add_symbol_overload_list_qualified): Update.
14486 * breakpoint.c (create_overlay_event_breakpoint)
14487 (create_longjmp_master_breakpoint)
14488 (create_std_terminate_master_breakpoint)
14489 (create_exception_master_breakpoint): Update.
14490 * blockframe.c (find_pc_partial_function): Update.
14491 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14492 (ada_collect_symbol_completion_matches)
14493 (ada_add_global_exceptions): Update.
14494
14495 2019-01-17 Tom Tromey <tom@tromey.com>
14496
14497 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14498 declare VEC.
14499 (solib_target_parse_libraries): Change return type.
14500 (library_list_start_segment, library_list_start_section)
14501 (library_list_end_library, library_list_start_library); Update.
14502 (solib_target_free_library_list): Remove.
14503 (solib_target_parse_libraries): Remove cleanup. Change return
14504 type.
14505 (solib_target_current_sos): Update.
14506
14507 2019-01-17 Tom Tromey <tromey@bapiya>
14508
14509 * valprint.c: Replace "the the" with "the".
14510 * symtab.c: Replace "the the" with "the".
14511 * solib.c: Replace "the the" with "the".
14512 * solib-dsbt.c: Replace "the the" with "the".
14513 * linespec.c: Replace "the the" with "the".
14514 * dwarf2loc.h: Replace "the the" with "the".
14515 * amd64-windows-tdep.c: Replace "the the" with "the".
14516 * aarch64-tdep.c: Replace "the the" with "the".
14517
14518 2019-01-16 Keith Seitz <keiths@redhat.com>
14519
14520 PR gdb/23773
14521 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14522 <builder>: Rename to ..
14523 <m_builder>: ... this and make private.
14524 (dwarf2_cu::get_builder): New method. Change all users of
14525 `builder' to use this method.
14526 (dwarf2_start_symtab): Move to ...
14527 (dwarf2_cu::start_symtab): ... here. Update all callers
14528 (setup_type_unit_groups): Move to ...
14529 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14530 callers.
14531 (dwarf2_cu::reset_builder): New method.
14532 (process_full_compunit, process_full_type_unit): Use
14533 dwarf2_cu::reset_builder.
14534 (follow_die_offset): Record the ancestor CU if it is different
14535 from the followed DIE's CU.
14536 (follow_die_sig_1): Likewise.
14537
14538 2019-01-15 Tom Tromey <tom@tromey.com>
14539
14540 * remote.c (class remote_state) <buf>: Now a char_vector.
14541 <buf_size>: Remove.
14542 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14543 parameter.
14544 (remote_target::getpkt_or_notif_sane_1)
14545 (remote_target::getpkt_sane)
14546 (remote_target::getpkt_or_notif_sane): Likewise.
14547 (class remote_target) <putpkt>: New overload.
14548 (remote_target::read_frame): Change type of "buf_p". Remove
14549 sizeof_p parameter.
14550 (packet_ok): New overload.
14551 (packet_check_result): New overload.
14552 Update all uses.
14553
14554 2019-01-14 Tom Tromey <tom@tromey.com>
14555
14556 * remote-notif.c (handle_notification, remote_notif_ack)
14557 (remote_notif_parse): Make "buf" const.
14558 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14559 const.
14560 (remote_notif_parse, remote_notif_ack, handle_notification):
14561 Likewise.
14562 * remote.c (remote_notif_stop_parse): Make "buf" const.
14563 (remote_target::remote_parse_stop_reply): Make "buf" const.
14564 (remote_notif_stop_ack): Make "buf" const.
14565
14566 2019-01-14 Tom Tromey <tom@tromey.com>
14567
14568 * remote.c (remote_console_output): Make parameter const.
14569
14570 2019-01-14 Tom Tromey <tom@tromey.com>
14571
14572 * target-debug.h (target_debug_print_signals): Constify.
14573 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14574 * procfs.c (procfs_target::pass_signals): Update.
14575 * linux-nat.c (linux_nat_target::pass_signals): Update.
14576 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14577 * target-delegates.c: Rebuild.
14578 * remote.c (remote_target::program_signals): Update.
14579 (remote_target::pass_signals): Update.
14580 * target.c (target_pass_signals): Constify argument.
14581 (target_program_signals): Likewise.
14582 * target.h (struct target_ops) <pass_signals, program_signals>:
14583 Constify argument.
14584 (target_pass_signals, target_program_signals): Constify argument.
14585
14586 2019-01-14 Tom Tromey <tom@tromey.com>
14587
14588 PR tui/28819:
14589 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14590
14591 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14592
14593 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14594 field.
14595 * rs6000-tdep.c: Include reggroups.h.
14596 (IS_V_ALIAS_PSEUDOREG): Define.
14597 (rs6000_register_name): Return names for the "vX" aliases.
14598 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14599 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14600 aliases. Call default_register_reggroup_p for all other
14601 pseudo-registers.
14602 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14603 New functions.
14604 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14605 Handle "vX" aliases.
14606 (v_alias_pseudo_register_collect): New function.
14607 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14608 (rs6000_gdbarch_init): Initialize "vX" aliases as
14609 pseudo-registers. Restore registration of
14610 rs6000_pseudo_register_reggroup_p with
14611 set_tdesc_pseudo_register_reggroup_p.
14612
14613 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14614
14615 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14616 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14617 set_gdbarch_num_pseudo_regs.
14618
14619 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14620
14621 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14622 Remove arg prefixname, add do_set and do_show.
14623 Add member functions set_list and show_list.
14624 * cli/cli-style.c (class cli_style_option): Update accordingly.
14625 (style_set_list): Move to file scope.
14626 (style_show_list): Likewise.
14627 (set_style): Call help_list.
14628 (show_style): Call cmd_show_list.
14629 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14630 Update to use the new macro.
14631
14632 2019-10-12 Joel Brobecker <brobecker@adacore.com>
14633
14634 * ada-lang.c (_initialize_ada_language): Expand the help text
14635 for the "catch exception" command.
14636
14637 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14638
14639 * symtab.c (matching_obj_sections): Initialize obj,
14640 declare it closer to its usage.
14641
14642 2019-01-10 Tom Tromey <tom@tromey.com>
14643
14644 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14645 (basic_inf_threads_range): Remove.
14646 (inf_threads_range, inf_non_exited_threads_range)
14647 (safe_inf_threads_range): Use next_adapter.
14648
14649 2019-01-10 Keith Seitz <keiths@redhat.com>
14650
14651 PR gdb/23712
14652 PR symtab/23010
14653 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14654 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14655
14656 2019-01-10 Keith Seitz <keiths@redhat.com>
14657
14658 PR gdb/23712
14659 PR symtab/23010
14660 * dictionary.c (pending_to_vector): Remove.
14661 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14662 Remove _1 suffix, replacing functions of the same name. Update
14663 all callers.
14664 (dict_create_hashed, dict_create_hashed_expandable)
14665 (dict_create_linear, dict_create_linear_expandable, dict_free)
14666 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14667 Make functions static.
14668
14669 2019-01-10 Keith Seitz <keiths@redhat.com>
14670
14671 PR gdb/23712
14672 PR symtab/23010
14673 * dictionary.h (struct dictionary): Replace declaration with
14674 multidictionary.
14675 (dict_create_hashed, dict_create_hashed_expandable)
14676 (dict_create_linear, dict_create_linear_expandable)
14677 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14678 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14679 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14680 taking multidictionary argument.
14681 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14682 * block.h (struct block) <dict>: Change to multidictionary
14683 and rename `multidict'.
14684 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14685 symmisc.c: Update all dictionary references to multidictionary.
14686
14687 2019-01-10 Keith Seitz <keiths@redhat.com>
14688
14689 PR gdb/23712
14690 PR symtab/23010
14691 * dictionary.c: Include unordered_map.
14692 (pending_to_vector): New function.
14693 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14694 Rewrite the non-"_1" functions to take vector instead
14695 of linked list.
14696 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14697 "new" _1 versions of the same name.
14698 (multidictionary): Define.
14699 (std::hash<enum language): New definition.
14700 (collate_pending_symbols_by_language, mdict_create_hashed)
14701 (mdict_create_hashed_expandable, mdict_create_linear)
14702 (mdict_create_linear_expandable, mdict_free)
14703 (find_language_dictionary, create_new_language_dictionary)
14704 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14705 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14706 (mdict_size, mdict_empty): New functions.
14707 * dictionary.h (mdict_iterator): Define.
14708
14709 2019-01-10 Pedro Alves <palves@redhat.com>
14710
14711 * breakpoint.c (read_uploaded_action)
14712 (create_tracepoint_from_upload): Adjust to use
14713 gdb::unique_xmalloc_ptr.
14714 * ctf.c (ctf_write_uploaded_tp):
14715 (SET_ARRAY_FIELD): Use emplace_back.
14716 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14717 * tracefile-tfile.c (tfile_write_uploaded_tp):
14718 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14719 gdb::unique_xmalloc_ptr.
14720 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14721 at_string, cond_string, cmd_strings>: Replace char pointers
14722 with gdb::unique_xmalloc_ptr.
14723
14724 2019-01-10 Pedro Alves <palves@redhat.com>
14725
14726 * solib-target.c (library_list_start_library): Don't xstrdup name.
14727
14728 2019-01-10 Pedro Alves <palves@redhat.com>
14729
14730 * mdebugread.c (parse_partial_symbols): Use
14731 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14732
14733 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14734
14735 * linux-fork.c (scoped_switch_fork_info)
14736 <~scoped_switch_fork_info>: Fix incorrect variable name.
14737
14738 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14739
14740 * linux-fork.c (scoped_switch_fork_info)
14741 <scoped_switch_fork_info>: Make explicit.
14742 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14743
14744 2019-01-10 Tom Tromey <tom@tromey.com>
14745
14746 * objfiles.h (objfile::reset_psymtabs): Update.
14747 * objfiles.c (objfile::objfile): Update.
14748 * psymtab.h (psymtab_storage::obstack): Update.
14749 (psymtab_storage::m_obstack): Use gdb::optional.
14750 (class psymtab_storage): Update comment. Remove objfile
14751 parameter.
14752 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14753
14754 2019-01-10 Tom Tromey <tom@tromey.com>
14755
14756 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14757 <free_psymtabs>: Now private.
14758 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14759 (allocate_psymtab): Use new method.
14760
14761 2019-01-10 Tom Tromey <tom@tromey.com>
14762
14763 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14764 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14765 * mdebugread.c (parse_partial_symbols): Use
14766 allocate_dependencies.
14767 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14768 allocate_dependencies.
14769 (process_psymtab_comp_unit_reader)
14770 (build_type_psymtab_dependencies): Likewise.
14771 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14772
14773 2019-01-10 Tom Tromey <tom@tromey.com>
14774
14775 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14776 PSYMBOL_SET_LANGUAGE.
14777 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14778
14779 2019-01-10 Tom Tromey <tom@tromey.com>
14780
14781 * psymtab.h (psymtab_storage::obstack): New method.
14782 <m_obstack>: Rename from obstack; now private.
14783 * psymtab.c (psymtab_storage): Update.
14784 * dwarf2read.c (create_addrmap_from_index)
14785 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14786 Update.
14787
14788 2019-01-10 Tom Tromey <tom@tromey.com>
14789
14790 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14791 * objfiles.h (objfile::reset_psymtabs): New method.
14792
14793 2019-01-10 Tom Tromey <tom@tromey.com>
14794
14795 * symmisc.c (print_symbol_bcache_statistics): Update.
14796 (print_objfile_statistics): Update.
14797 * symfile.c (reread_symbols): Update.
14798 * psymtab.h (class psymtab_storage): New.
14799 * psymtab.c (psymtab_storage): New constructor.
14800 (~psymtab_storage): New destructor.
14801 (require_partial_symbols): Update.
14802 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14803 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14804 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14805 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14806 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14807 (start_psymtab_common, end_psymtab_common)
14808 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14809 (allocate_psymtab): Update.
14810 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14811 Update.
14812 (dump_psymtab_addrmap, maintenance_print_psymbols)
14813 (maintenance_check_psymtabs): Update.
14814 (class objfile_psymtabs): Move to objfiles.h.
14815 * psympriv.h (discard_psymtab): Now inline.
14816 (psymtab_discarder::psymtab_discarder): Update.
14817 (psymtab_discarder::~psymtab_discarder): Update.
14818 (ALL_OBJFILE_PSYMTABS): Rewrite.
14819 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14820 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14821 Remove fields.
14822 <partial_symtabs>: New field.
14823 (class objfile_psymtabs): Move from psymtab.h. Update.
14824 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14825 psymbol_cache.
14826 (objfile::~objfile): Don't destroy psymbol_cache.
14827 * mdebugread.c (parse_partial_symbols): Update.
14828 * dwarf2read.c (create_addrmap_from_index)
14829 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14830 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14831 (add_partial_subprogram, dwarf2_ranges_read): Update.
14832 * dwarf-index-write.c (write_address_map)
14833 (write_one_signatured_type, recursively_write_psymbols)
14834 (class debug_names, class debug_names, write_psymtabs_to_index):
14835 Update.
14836
14837 2019-01-10 Tom Tromey <tom@tromey.com>
14838
14839 * symtab.h (SYMBOL_SET_NAMES): Update.
14840 (symbol_set_names): Update.
14841 (MSYMBOL_SET_NAMES): Update.
14842 * symtab.c (symbol_set_names): Change argument to be an
14843 objfile_per_bfd_storage.
14844 * psymtab.c (add_psymbol_to_bcache): Update.
14845 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
14846
14847 2019-01-10 Tom Tromey <tom@tromey.com>
14848
14849 * symtab.c (create_demangled_names_hash): Change argument to be an
14850 objfile_per_bfd_storage.
14851 (symbol_set_names): Update.
14852
14853 2019-01-10 Tom Tromey <tom@tromey.com>
14854
14855 * xcoffread.c (xcoff_initial_scan): Unconditionally call
14856 init_psymbol_list.
14857 * psymtab.c (init_psymbol_list): Do nothing if already called.
14858 * psympriv.h (init_psymbol_list): Add comment.
14859 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
14860 init_psymbol_list.
14861 * dbxread.c (dbx_symfile_read): Unconditionally call
14862 init_psymbol_list.
14863
14864 2019-01-10 Tom Tromey <tom@tromey.com>
14865
14866 * xcoffread.c (scan_xcoff_symtab): Update.
14867 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
14868 "where".
14869 * mdebugread.c (parse_partial_symbols)
14870 (handle_psymbol_enumerators): Update.
14871 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
14872 * dbxread.c (read_dbx_symtab): Update.
14873 * psympriv.h (psymbol_placement): New enum.
14874 (add_psymbol_to_list): Update.
14875
14876 2019-01-10 Tom Tromey <tom@tromey.com>
14877
14878 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
14879 static_psymbols parameters.
14880 (scan_xcoff_symtab): Update.
14881 * psymtab.c (start_psymtab_common): Remove global_psymbols and
14882 static_psymbols parameters.
14883 * psympriv.h (start_psymtab_common): Update.
14884 * mdebugread.c (parse_partial_symbols): Update.
14885 * dwarf2read.c (create_partial_symtab): Update.
14886 * dbxread.c (read_dbx_symtab): Update.
14887 (start_psymtab): Remove global_psymbols and static_psymbols
14888 parameters.
14889
14890 2019-01-10 Tom Tromey <tom@tromey.com>
14891
14892 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
14893 * psymtab.c (allocate_psymtab): Add comment.
14894 * psympriv.h (allocate_psymtab): Add comment.
14895 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
14896 initializations.
14897 * dbxread.c (dbx_end_psymtab): Remove some initializations.
14898
14899 2019-01-10 Tom Tromey <tom@tromey.com>
14900
14901 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14902 Don't declare.
14903 * mipsread.c: Include mdebugread.h.
14904 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14905 Declare.
14906 * elfread.c: Include mdebugread.h.
14907
14908 2019-01-09 Tom Tromey <tom@tromey.com>
14909
14910 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
14911 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
14912 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
14913 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14914 (psym_lookup_symbol, psym_find_last_source_symtab)
14915 (psym_forget_cached_source_info, psym_print_stats)
14916 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14917 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14918 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14919 (psym_find_compunit_symtab_by_address)
14920 (maintenance_print_psymbols, maintenance_info_psymtabs)
14921 (maintenance_check_psymtabs): Use ranged for.
14922 * psymtab.h (class objfile_psymtabs): New.
14923 (require_partial_symbols): Return objfile_psymtabs.
14924 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14925
14926 2019-01-09 Tom Tromey <tom@tromey.com>
14927
14928 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14929 (find_pc_mapped_section, list_overlays_command)
14930 (map_overlay_command, unmap_overlay_command)
14931 (simple_overlay_update): Use all_objfiles.
14932 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
14933 * printcmd.c (info_symbol_command): Use all_objfiles.
14934 * objfiles.h (ALL_OBJSECTIONS): Remove.
14935 * maint.c (maintenance_translate_address): Use all_objfiles.
14936 * gcore.c (gcore_create_callback): Use all_objfiles.
14937 (objfile_find_memory_regions): Likewise.
14938
14939 2019-01-09 Tom Tromey <tom@tromey.com>
14940
14941 * symtab.c (find_line_symtab, info_sources_command)
14942 (make_source_files_completion_list): Use objfile_compunits.
14943 * source.c (select_source_symtab): Use objfile_compunits.
14944 * objfiles.h (struct objfile): Update comment.
14945 (ALL_OBJFILES): Remove.
14946 (ALL_FILETABS): Remove.
14947 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
14948 objfile_compunits.
14949
14950 2019-01-09 Tom Tromey <tom@tromey.com>
14951
14952 * symmisc.c (print_objfile_statistics, dump_objfile)
14953 (maintenance_print_symbols): Use compunit_filetabs.
14954 * source.c (forget_cached_source_info_for_objfile): Use
14955 compunit_filetabs.
14956 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
14957 (ALL_FILETABS): Use compunit_filetabs.
14958 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
14959 * coffread.c (coff_symtab_read): Use compunit_filetabs.
14960
14961 2019-01-09 Tom Tromey <tom@tromey.com>
14962
14963 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
14964 (compunit_filetabs): New.
14965 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
14966 compunit_filetabs.
14967 (info_sources_command, make_source_files_completion_list): Remove
14968 declaration.
14969 * symmisc.c (print_objfile_statistics, dump_objfile)
14970 (maintenance_print_symbols): Remove declaration.
14971 (maintenance_info_symtabs): Use compunit_filetabs.
14972 (maintenance_info_line_tables): Likewise.
14973 * source.c (select_source_symtab): Change local variable name.
14974 (forget_cached_source_info_for_objfile): Remove declaration.
14975 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
14976 * objfiles.c (objfile_relocate1): Remove declaration.
14977 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14978 declaration.
14979 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
14980 * coffread.c (coff_symtab_read): Remove declaration.
14981 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
14982 compunit_filetabs.
14983
14984 2019-01-09 Tom Tromey <tom@tromey.com>
14985
14986 * symtab.c (lookup_objfile_from_block)
14987 (find_pc_sect_compunit_symtab, search_symbols)
14988 (default_collect_symbol_completion_matches_break_on): Use
14989 objfile_compunits.
14990 * objfiles.h (ALL_COMPUNITS): Remove.
14991 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
14992 * cp-support.c (add_symbol_overload_list_qualified): Use
14993 objfile_compunits.
14994 * ada-lang.c (ada_collect_symbol_completion_matches)
14995 (ada_add_global_exceptions): Use objfile_compunits.
14996
14997 2019-01-09 Tom Tromey <tom@tromey.com>
14998
14999 * source.c (select_source_symtab)
15000 (forget_cached_source_info_for_objfile): Remove declaration.
15001 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15002 declaration.
15003 * maint.c (count_symtabs_and_blocks): Remove declaration.
15004 * cp-support.c (add_symbol_overload_list_qualified): Remove
15005 declaration.
15006 * coffread.c (coff_symtab_read): Remove declaration.
15007 * symtab.c (lookup_symbol_in_objfile_symtabs)
15008 (basic_lookup_transparent_type_1): Use objfile_compunits.
15009 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15010 (info_sources_command, search_symbols)
15011 (default_collect_symbol_completion_matches_break_on)
15012 (make_source_files_completion_list): Remove declaration.
15013 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15014 (ada_collect_symbol_completion_matches)
15015 (ada_add_global_exceptions): Remove declaration.
15016 * linespec.c (iterate_over_all_matching_symtabs): Use
15017 objfile_compunits.
15018 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15019 (class objfile_compunits): New.
15020 (ALL_COMPUNITS): Use objfile_compunits.
15021 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15022 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15023 objfile_compunits.
15024 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15025
15026 2019-01-09 Tom Tromey <tom@tromey.com>
15027
15028 * symtab.c (search_symbols)
15029 (default_collect_symbol_completion_matches_break_on): Use
15030 objfile_msymbols.
15031 * ada-lang.c (ada_lookup_simple_minsym)
15032 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15033 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15034 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15035 objfile_msymbols.
15036 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15037 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15038 * objc-lang.c (find_methods): Use objfile_msymbols.
15039 (info_selectors_command, info_classes_command): Likewise.
15040 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15041 * objfiles.h (class objfile_msymbols): New.
15042 (ALL_OBJFILE_MSYMBOLS): Remove.
15043 (ALL_MSYMBOLS): Remove.
15044
15045 2019-01-09 Tom Tromey <tom@tromey.com>
15046
15047 * common/next-iterator.h (next_adapter): Add Iterator template
15048 parameter.
15049 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15050 (class all_objfiles_safe): New.
15051 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15052 * objfiles.c (put_objfile_before): Update comment.
15053 (add_separate_debug_objfile): Likewise.
15054 (free_all_objfiles): Use all_objfiles_safe.
15055 (objfile_purge_solibs): Likewise.
15056
15057 2019-01-09 Tom Tromey <tom@tromey.com>
15058
15059 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15060 (expand_symtab_containing_pc, lookup_static_symbol)
15061 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15062 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15063 all_objfiles.
15064 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15065 * breakpoint.c (create_overlay_event_breakpoint)
15066 (create_longjmp_master_breakpoint)
15067 (create_std_terminate_master_breakpoint)
15068 (create_exception_master_breakpoint): Use all_objfiles.
15069 * linux-thread-db.c (try_thread_db_load_from_pdir)
15070 (has_libpthread): Use all_objfiles.
15071 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15072 * linespec.c (iterate_over_all_matching_symtabs)
15073 (search_minsyms_for_name): Use all_objfiles.
15074 * maint.c (maintenance_info_sections): Use all_objfiles.
15075 * main.c (captured_main_1): Use all_objfiles.
15076 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15077 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15078 * guile/scm-pretty-print.c
15079 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15080 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15081 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15082 (maintenance_print_msymbols): Use all_objfiles.
15083 * source.c (select_source_symtab): Use all_objfiles.
15084 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15085 * symfile.c (remove_symbol_file_command)
15086 (expand_symtabs_matching, map_symbol_filenames): Use
15087 all_objfiles.
15088 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15089 all_objfiles.
15090 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15091 * objc-lang.c (find_methods): Use all_objfiles.
15092 * objfiles.c (have_partial_symbols, have_full_symbols)
15093 (have_minimal_symbols, qsort_cmp)
15094 (default_iterate_over_objfiles_in_search_order): Use
15095 all_objfiles.
15096 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15097 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15098 (maintenance_check_psymtabs): Use all_objfiles.
15099 (ALL_PSYMTABS): Remove.
15100 * compile/compile-object-run.c (do_module_cleanup): Use
15101 all_objfiles.
15102 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15103 * cp-support.c (add_symbol_overload_list_qualified): Use
15104 all_objfiles.
15105 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15106 Use all_objfiles.
15107 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15108 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15109 all_objfiles.
15110 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15111 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15112 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15113 Uses all_objfiles.
15114 * solib.c (solib_read_symbols): Use all_objfiles
15115
15116 2019-01-09 Tom Tromey <tom@tromey.com>
15117
15118 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15119 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15120 all_objfiles.
15121 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15122 * symmisc.c (print_symbol_bcache_statistics)
15123 (print_objfile_statistics, maintenance_print_objfiles)
15124 (maintenance_info_symtabs, maintenance_check_symtabs)
15125 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15126 all_objfiles.
15127 * source.c (forget_cached_source_info): Use all_objfiles.
15128 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15129 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15130 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15131 * objfiles.c (update_section_map): Use all_objfiles.
15132 (shared_objfile_contains_address_p): Likewise.
15133 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15134 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15135
15136 2019-01-09 Tom Tromey <tom@tromey.com>
15137
15138 * common/next-iterator.h: New file.
15139 * objfiles.h (class all_objfiles): New.
15140 (struct objfile_iterator): New.
15141
15142 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15143
15144 * NEWS: Move the description of the changed "frame", "select-frame",
15145 and "info frame" commands to the Changed commands section.
15146
15147 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15148
15149 * gdbtypes.c (check_stub_method_group): Remove handling of old
15150 mangling schemes.
15151 * linespec.c (find_methods): Likewise.
15152 * stabsread.c (read_member_functions): Likewise.
15153 * valops.c (search_struct_method): Likewise.
15154 (value_struct_elt_for_reference): Likewise.
15155 * NEWS: Mention this change.
15156
15157 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15158
15159 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15160 print_source_lines.
15161 * source.c (print_source_lines_base): Update line number check.
15162 (print_source_lines): New function.
15163 (source_lines_range::source_lines_range): New function.
15164 * source.h (class source_lines_range): New class.
15165 (print_source_lines): New declaration.
15166
15167 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15168
15169 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15170
15171 2019-01-08 Tom Tromey <tom@tromey.com>
15172 Simon Marchi <simon.marchi@ericsson.com>
15173
15174 PR gdb/24060
15175 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15176 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15177 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15178 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15179 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15180 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15181
15182 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15183
15184 * source.c (select_source_symtab): Move header comment to
15185 declaration in source.h.
15186 (forget_cached_source_info_for_objfile): Likewise.
15187 (forget_cached_source_info): Likewise.
15188 (identify_source_line): Likewise.
15189 * source.h (identify_source_line): Move declaration from symtab.h
15190 and add comment from source.c
15191 (print_source_lines): Likewise.
15192 (forget_cached_source_info_for_objfile): Likewise.
15193 (forget_cached_source_info): Likewise.
15194 (select_source_symtab): Likewise.
15195 (enum print_source_lines_flag): Move definition from symtab.h.
15196 * symtab.h (identify_source_line): Move declaration to source.h.
15197 (print_source_lines): Likewise.
15198 (forget_cached_source_info_for_objfile): Likewise.
15199 (forget_cached_source_info): Likewise.
15200 (select_source_symtab): Likewise.
15201 (enum print_source_lines_flag): Move definition to source.h.
15202 * tui/tui-hooks.c: Add 'source.h' include.
15203
15204 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15205
15206 * source.c (print_source_lines_base): Handle requests to print
15207 reverse line number sequences, and guard against empty lines
15208 string.
15209
15210 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15211
15212 * source.c (print_source_lines_base): Fix skip of '\r' if next
15213 character is '\n'.
15214
15215 2019-01-06 Tom Tromey <tom@tromey.com>
15216
15217 * c-exp.y (struct c_parse_state) <macro_original_text,
15218 expansion_obstack>: New member.
15219 (macro_original_text, expansion_obstack): Remove globals.
15220 (scan_macro_expansion, scanning_macro_expansion)
15221 (finished_macro_expansion): Update.
15222 (scan_macro_cleanup): Remove.
15223 (yylex, c_parse): Update.
15224
15225 2019-01-06 Tom Tromey <tom@tromey.com>
15226
15227 * c-exp.y (struct c_parse_state) <strings>: New member.
15228 (operator_stoken): Update.
15229
15230 2019-01-06 Tom Tromey <tom@tromey.com>
15231
15232 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15233 (union type_stack_elt) <typelist_val>: Now a pointer to
15234 std::vector.
15235 (type_stack_cleanup): Don't declare.
15236 (push_typelist): Update.
15237 * parse.c (pop_typelist): Return a std::vector.
15238 (push_typelist): Take a std::vector.
15239 (follow_types): Update. Do not free args.
15240 (type_stack_cleanup): Remove.
15241 * c-exp.y (struct c_parse_state): New.
15242 (cpstate): New global.
15243 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15244 (nonempty_typelist): Update.
15245 (func_mod): Create a new vector.
15246 (c_parse): Create a c_parse_state.
15247 (check_parameter_typelist): Do not delete params.
15248 (function_method): Update. Do not delete type_list.
15249
15250 2019-01-06 Tom Tromey <tom@tromey.com>
15251
15252 PR gdb/28155:
15253 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15254 check_typedef.
15255 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15256 (print_return_value): Likewise.
15257
15258 2019-01-05 Tom Tromey <tom@tromey.com>
15259
15260 * contrib/cleanup_check.py: Remove.
15261 * contrib/gcc-with-excheck: Remove.
15262 * contrib/exsummary.py: Remove.
15263 * contrib/excheck.py: Remove.
15264
15265 2019-01-05 Joel Brobecker <brobecker@adacore.com>
15266
15267 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15268 NULL. Initialize tpprev to NULL instead of assigning it
15269 to NULL on the next statement.
15270 * windows-nat.c (windows_delete_thread): Remove check for
15271 main_thread_id before printing thread exit notifications.
15272 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15273 Remove thread ID check against main_thread_id.
15274 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15275 windows_delete_thread.
15276 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15277
15278 2019-01-04 Tom Tromey <tom@tromey.com>
15279
15280 * compile/compile.c (_initialize_compile): Use upper case for
15281 metasyntactic variables.
15282 * symmisc.c (_initialize_symmisc): Use upper case for
15283 metasyntactic variables.
15284 * psymtab.c (_initialize_psymtab): Use upper case for
15285 metasyntactic variables.
15286 * demangle.c (demangle_command): Use upper case for metasyntactic
15287 variables.
15288 (_initialize_demangler): Likewise.
15289 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15290 variables.
15291
15292 2019-01-03 Tom Tromey <tom@tromey.com>
15293
15294 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15295
15296 2019-01-03 Tom Tromey <tom@tromey.com>
15297
15298 * python/py-symtab.c (salpy_str): Update.
15299 (struct salpy_sal_object) <symtab>: Now a PyObject.
15300 (salpy_dealloc): Update.
15301 (del_objfile_sal): Use gdbpy_ref.
15302
15303 2019-01-03 Tom Tromey <tom@tromey.com>
15304
15305 * python/py-type.c (convert_field): Use new_reference. Return
15306 gdbpy_ref.
15307 (make_fielditem): Return gdbpy_ref.
15308 (typy_fields): Update.
15309 (typy_getitem): Update.
15310 (field_name): Return gdbpy_ref. Use new_reference.
15311 (typy_iterator_iternext): Update.
15312
15313 2019-01-03 Tom Tromey <tom@tromey.com>
15314
15315 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15316
15317 2019-01-03 Tom Tromey <tom@tromey.com>
15318
15319 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15320 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15321 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15322 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15323 (pspy_set_type_printers): Likewise.
15324 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15325 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15326 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15327 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15328 (objfpy_set_type_printers): Likewise.
15329
15330 2019-01-03 Tom Tromey <tom@tromey.com>
15331
15332 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15333 (gdbpy_print_stack): Use gdbpy_err_fetch.
15334 * python/python-internal.h (class gdbpy_err_fetch): New class.
15335 (class gdbpy_enter) <m_error_type, m_error_value,
15336 m_error_traceback>: Remove.
15337 <m_error>: New member.
15338 (gdbpy_exception_to_string): Don't declare.
15339 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15340 * python/py-value.c (convert_value_from_python): Use
15341 gdbpy_err_fetch.
15342 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15343 gdbpy_exception_to_string.
15344 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15345 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15346 gdbpy_err_fetch.
15347
15348 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15349
15350 * linux-nat.c (delete_lwp_cleanup): Delete.
15351 (struct lwp_deleter): New struct.
15352 (lwp_info_up): New typedef.
15353 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15354 lwp_info_up.
15355
15356 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15357
15358 * linux-fork.c (class scoped_switch_fork_info): New class.
15359 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15360
15361 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15362
15363 * valops.c (find_overload_match): Remove use of null_cleanup, and
15364 calls to do_cleanups.
15365
15366 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15367
15368 * compile/compile-cplus-types.c
15369 (compile_cplus_instance::decl_name): Handle changes to
15370 cp_func_name.
15371 * cp-support.c (cp_func_name): Update header comment, update
15372 return type.
15373 * cp-support.h (cp_func_name): Update return type in declaration.
15374 * valops.c (find_overload_match): Move temp_func local to top
15375 level of function and change its type. Use temp_func to hold and
15376 delete temporary string obtained from cp_func_name.
15377
15378 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15379
15380 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15381 gdb::char_vector, remove cleanup, and update uses of `msg`.
15382
15383 2019-01-03 Jim Wilson <jimw@sifive.com>
15384
15385 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15386
15387 2019-01-02 Tom Tromey <tom@tromey.com>
15388
15389 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15390 (tdesc_parse_xml): Remove cleanups.
15391 * target-descriptions.h (make_cleanup_free_target_description):
15392 Don't declare.
15393 (target_desc_deleter): New struct.
15394 (target_desc_up): New typedef.
15395 * target-descriptions.c (target_desc_deleter::operator()): Rename
15396 from free_target_description.
15397 (make_cleanup_free_target_description): Remove.
15398
15399 2019-01-02 Tom Tromey <tom@tromey.com>
15400
15401 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15402 constructor, destructor.
15403 (linespec_parser): Remove typedef.
15404 (~linespec_parser): Rename from linespec_parser_delete.
15405 (linespec_lex_to_end, linespec_complete_label)
15406 (linespec_complete): Update.
15407 (decode_line_full): Remove cleanups.
15408 (decode_line_1): Update.
15409
15410 2019-01-02 Tom Tromey <tom@tromey.com>
15411
15412 * python/python-internal.h (inferior_to_inferior_object): Change
15413 return type.
15414 * python/py-exitedevent.c (create_exited_event_object): Update.
15415 * python/py-inferior.c (inferior_to_inferior_object): Return
15416 gdbpy_ref.
15417 (python_new_inferior, python_inferior_deleted)
15418 (thread_to_thread_object, delete_thread_object)
15419 (build_inferior_list, gdbpy_selected_inferior): Update.
15420 * python/py-infthread.c (create_thread_object): Update. Also fail
15421 if inferior_to_inferior_object fails.
15422
15423 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15424
15425 * inferior.h (class inferior) <displaced_step_state>: New field.
15426 * infrun.h (struct displaced_step_state): Move here from
15427 infrun.c. Initialize fields, add constructor.
15428 <inf>: Remove field.
15429 <reset>: New method.
15430 * infrun.c (struct displaced_step_inferior_state): Move to
15431 infrun.h.
15432 (displaced_step_inferior_states): Remove.
15433 (get_displaced_stepping_state): Adust.
15434 (displaced_step_in_progress_any_inferior): Adjust.
15435 (displaced_step_in_progress_thread): Adjust.
15436 (displaced_step_in_progress): Adjust.
15437 (add_displaced_stepping_state): Remove.
15438 (get_displaced_step_closure_by_addr): Adjust.
15439 (remove_displaced_stepping_state): Remove.
15440 (infrun_inferior_exit): Call displaced_step_state.reset.
15441 (use_displaced_stepping): Don't check for NULL.
15442 (displaced_step_prepare_throw): Call
15443 get_displaced_stepping_state.
15444 (displaced_step_fixup): Don't check for NULL.
15445 (prepare_for_detach): Don't check for NULL.
15446
15447 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15448
15449 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15450 in case of call that did not complete.
15451
15452 2019-01-02 Andrey Utkin <autkin@undo.io>
15453
15454 * symfile.c (find_separate_debug_file): Fix search of debug files for
15455 remote debuggee.
15456
15457 2019-01-02 Tom Tromey <tom@tromey.com>
15458
15459 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15460 indentation.
15461 * python/py-frame.c (frapy_older): Remove cast.
15462 (frapy_newer): Likewise.
15463 * python/py-breakpoint.c (local_setattro): Remove cast.
15464 * python/py-arch.c (archpy_name): Remove local variable.
15465 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15466
15467 2019-01-02 Joel Brobecker <brobecker@adacore.com>
15468
15469 * unittests/basic_string_view/element_access/char/empty.cc:
15470 Fix year range in copyright header.
15471
15472 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15473
15474 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15475 Delete.
15476 <operator==>: Update with for removed field.
15477 <hash>: Likewise.
15478 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15479 <isa_features>: ...this.
15480 <abi_features>: New field.
15481 (riscv_isa_flen): Update comment.
15482 (riscv_abi_xlen): New declaration.
15483 (riscv_abi_flen): New declaration.
15484 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15485 isa_features.
15486 (riscv_abi_xlen): New function.
15487 (riscv_isa_flen): Update to get answer from isa_features.
15488 (riscv_abi_flen): New function.
15489 (riscv_has_fp_abi): Update to get answer from abi_features.
15490 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15491 xlen and flen.
15492 (riscv_call_info) <xlen, flen>: Update comment.
15493 (riscv_call_arg_struct): Remove invalid assertions
15494 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15495 is removed.
15496 (riscv_gdbarch_init): Gather isa features and abi features
15497 separately, ensure both match on the gdbarch when reusing an old
15498 gdbarch. Relax an error check to allow 32-bit abi float to run on
15499 a target with 64-bit float hardware.
15500
15501 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15502
15503 * source.c (search_command_helper): Stop reverse search
15504 when line 1 has been searched.
15505
15506 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15507
15508 * record-full.c (record_full_base_target::close): Rewrite
15509 record_full_core_buf_list free logic.
15510
15511 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15512
15513 * break-catch-syscall.c (print_one_catch_syscall): xfree
15514 the last text.
15515
15516 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15517
15518 * top.c (print_gdb_version): Update Copyright year in version
15519 message.
15520
15521 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15522
15523 Update copyright year range in all GDB files.
15524
15525 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
15526
15527 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
15528
15529 For older changes see ChangeLog-2018.
15530 \f
15531 Local Variables:
15532 mode: change-log
15533 left-margin: 8
15534 fill-column: 74
15535 version-control: never
15536 coding: utf-8
15537 End:
15538
This page took 0.503805 seconds and 5 git commands to generate.