[gdb/contrib] Add -c option to words.sh script
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2019-11-25 Tom de Vries <tdevries@suse.de>
2
3 * contrib/words.sh: Add -c option.
4
5 2019-11-25 Christian Biesinger <cbiesinger@google.com>
6
7 * solib.c (solib_find_1): Change int to bool.
8 (exec_file_find): Change int to bool.
9 (solib_find): Change int to bool.
10 (solib_read_symbols): Change int to bool.
11 (solib_used): Change int to bool.
12 (solib_add): Change int to bool.
13 (info_sharedlibrary_command): Change int to bool.
14 (solib_contains_address_p): Change int to bool.
15 (solib_keep_data_in_core): Change int to bool.
16 (in_solib_dynsym_resolve_code): Change int to bool.
17 (reload_shared_libraries_1): Change int to bool.
18 (gdb_sysroot_changed): Change int to bool.
19 * solib.h (solib_read_symbols): Change int to bool.
20 (solib_contains_address_p): Change int to bool.
21 (solib_keep_data_in_core): Change int to bool.
22 (in_solib_dynsym_resolve_code): Change int to bool.
23 (libpthread_name_p): Change int to bool.
24
25 2019-11-25 Luis Machado <luis.machado@linaro.org>
26
27 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
28 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
29 (remote_packet_max_chars): New static global.
30 (show_remote_packet_max_chars): New function.
31 (remote_target::putpkt_binary): Adjust to use new
32 remote_packet_max_chars option.
33 (remote_target::getpkt_or_notif_sane_1): Likewise.
34 (_initialize_remote): Register new remote-packet-max-chars option.
35
36 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
37
38 * m68k-linux-nat.c: Include gdbarch.h.
39
40 2019-11-24 Tom Tromey <tom@tromey.com>
41
42 * symfile.c (read_symbols): Update.
43 * psymtab.c (require_partial_symbols): Change type of "verbose" to
44 bool.
45 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
46 (psym_lookup_symbol, psym_find_last_source_symtab)
47 (psym_forget_cached_source_info, psym_print_stats)
48 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
49 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
50 (psym_map_matching_symbols, psym_expand_symtabs_matching)
51 (psym_find_compunit_symtab_by_address)
52 (maintenance_print_psymbols, maintenance_info_psymtabs)
53 (maintenance_check_psymtabs): Update.
54 * psymtab.h (require_partial_symbols): Change type of "verbose" to
55 bool.
56
57 2019-11-22 Tom Tromey <tom@tromey.com>
58
59 * observable.h: Update comments.
60
61 2019-11-22 Tom Tromey <tromey@adacore.com>
62
63 * ada-tasks.c (ada_task_is_alive): Make parameter const.
64 (print_ada_task_info): Don't try to fetch thread id if task is not
65 alive.
66
67 2019-11-22 Christian Biesinger <cbiesinger@google.com>
68
69 * ada-exp.y: Update.
70 * ada-lang.c (sort_choices): Update.
71 (ada_print_symbol_signature): Update.
72 (resolve_subexp): Update.
73 (ada_parse_renaming): Update.
74 (ada_read_renaming_var_value): Update.
75 (lesseq_defined_than): Update.
76 (remove_extra_symbols): Update.
77 (remove_irrelevant_renamings): Update.
78 (ada_add_block_symbols): Update.
79 (ada_collect_symbol_completion_matches): Update.
80 (ada_is_renaming_symbol): Update.
81 (aggregate_assign_from_choices): Update.
82 (ada_evaluate_subexp): Update.
83 (ada_has_this_exception_support): Update.
84 (ada_is_non_standard_exception_sym): Update.
85 (ada_add_exceptions_from_frame): Update.
86 (ada_add_global_exceptions): Update.
87 (ada_print_subexp): Update.
88 * ax-gdb.c (gen_var_ref): Update.
89 (gen_maybe_namespace_elt): Update.
90 (gen_expr_for_cast): Update.
91 (gen_expr): Update.
92 * block.h: Update.
93 * blockframe.c (find_pc_partial_function): Update.
94 * breakpoint.c (print_breakpoint_location): Update.
95 (update_static_tracepoint): Update.
96 * btrace.c (ftrace_print_function_name): Update.
97 (ftrace_function_switched): Update.
98 * buildsym.c (find_symbol_in_list): Update.
99 * c-exp.y: Update.
100 * c-typeprint.c (c_print_typedef): Update.
101 (c_type_print_template_args): Update.
102 * cli/cli-cmds.c (edit_command): Update.
103 (list_command): Update.
104 (print_sal_location): Update.
105 * coffread.c (patch_opaque_types): Update.
106 (process_coff_symbol): Update.
107 (coff_read_enum_type): Update.
108 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
109 (convert_one_symbol): Update.
110 (hash_symname): Update.
111 (eq_symname): Update.
112 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
113 * compile/compile-cplus-types.c (debug_print_scope): Update.
114 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
115 * compile/compile-object-load.c (get_out_value_type): Update.
116 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
117 (search_symbol_list): Update.
118 (cp_lookup_symbol_imports_or_template): Update.
119 * cp-support.c (overload_list_add_symbol): Update.
120 * ctfread.c (psymtab_to_symtab): Update.
121 * dbxread.c (cp_set_block_scope): Update.
122 * dictionary.c (iter_match_first_hashed): Update.
123 (iter_match_next_hashed): Update.
124 (insert_symbol_hashed): Update.
125 (iter_match_next_linear): Update.
126 * dictionary.h: Update.
127 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
128 (locexpr_describe_location_piece): Update.
129 (locexpr_describe_location_1): Update.
130 (locexpr_generate_c_location): Update.
131 (loclist_describe_location): Update.
132 (loclist_generate_c_location): Update.
133 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
134 (read_func_scope): Update.
135 (process_enumeration_scope): Update.
136 (new_symbol): Update.
137 (dwarf2_const_value): Update.
138 (dwarf2_symbol_mark_computed): Update.
139 * eval.c (evaluate_funcall): Update.
140 (evaluate_subexp_standard): Update.
141 * expprint.c (print_subexp_standard): Update.
142 (dump_subexp_body_standard): Update.
143 * f-valprint.c (info_common_command_for_block): Update.
144 * findvar.c (get_hosting_frame): Update.
145 (default_read_var_value): Update.
146 * go-lang.c (go_symbol_package_name): Update.
147 * guile/scm-block.c (bkscm_print_block_smob): Update.
148 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
149 (gdbscm_symbol_name): Update.
150 (gdbscm_symbol_linkage_name): Update.
151 (gdbscm_symbol_print_name): Update.
152 * infcall.c (get_function_name): Update.
153 * infcmd.c (jump_command): Update.
154 (finish_command): Update.
155 * infrun.c (insert_exception_resume_breakpoint): Update.
156 * linespec.c (canonicalize_linespec): Update.
157 (create_sals_line_offset): Update.
158 (convert_linespec_to_sals): Update.
159 (complete_label): Update.
160 (find_label_symbols_in_block): Update.
161 * m2-typeprint.c (m2_print_typedef): Update.
162 * mdebugread.c (mdebug_reg_to_regnum): Update.
163 (parse_symbol): Update.
164 (mylookup_symbol): Update.
165 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
166 (list_args_or_locals): Update.
167 * objc-lang.c (compare_selectors): Update.
168 (info_selectors_command): Update.
169 (compare_classes): Update.
170 (info_classes_command): Update.
171 (find_imps): Update.
172 * p-typeprint.c (pascal_print_typedef): Update.
173 * printcmd.c (build_address_symbolic): Update.
174 (info_address_command): Update.
175 (print_variable_and_value): Update.
176 * python/py-framefilter.c (extract_sym): Update.
177 (py_print_single_arg): Update.
178 * python/py-symbol.c (sympy_str): Update.
179 (sympy_get_name): Update.
180 (sympy_get_linkage_name): Update.
181 * python/python.c (gdbpy_rbreak): Update.
182 * record-btrace.c (btrace_get_bfun_name): Update.
183 (btrace_call_history): Update.
184 * rust-lang.c (rust_print_typedef): Update.
185 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
186 * stabsread.c (stab_reg_to_regnum): Update.
187 (define_symbol): Update.
188 (read_enum_type): Update.
189 (common_block_end): Update.
190 (cleanup_undefined_types_1): Update.
191 (scan_file_globals): Update.
192 * stack.c (print_frame_arg): Update.
193 (print_frame_args): Update.
194 (find_frame_funname): Update.
195 (info_frame_command_core): Update.
196 (iterate_over_block_locals): Update.
197 (print_block_frame_labels): Update.
198 (do_print_variable_and_value): Update.
199 (iterate_over_block_arg_vars): Update.
200 (return_command): Update.
201 * symmisc.c (dump_symtab_1): Update.
202 (print_symbol): Update.
203 * symtab.c (eq_symbol_entry): Update.
204 (symbol_cache_dump): Update.
205 (lookup_language_this): Update.
206 (find_pc_sect_line): Update.
207 (skip_prologue_sal): Update.
208 (symbol_search::compare_search_syms): Update.
209 (treg_matches_sym_type_name): Update.
210 (search_symbols): Update.
211 (print_symbol_info): Update.
212 (rbreak_command): Update.
213 (completion_list_add_symbol): Update.
214 (find_gnu_ifunc): Update.
215 (get_symbol_address): Update.
216 (search_module_symbols): Update.
217 (info_module_subcommand): Update.
218 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
219 (SYMBOL_LINKAGE_NAME): Remove.
220 (SYMBOL_DEMANGLED_NAME): Remove.
221 (SYMBOL_PRINT_NAME): Remove.
222 (SYMBOL_SEARCH_NAME): Remove.
223 * tracepoint.c (set_traceframe_context): Update.
224 (validate_actionline): Update.
225 (collection_list::collect_symbol): Update.
226 (encode_actions_1): Update.
227 (info_scope_command): Update.
228 (print_one_static_tracepoint_marker): Update.
229 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
230 * valops.c (address_of_variable): Update.
231 (find_overload_match): Update.
232 (find_oload_champ): Update.
233
234 2019-11-22 Christian Biesinger <cbiesinger@google.com>
235
236 * ada-lang.c (ada_lookup_simple_minsym): Update.
237 (ada_collect_symbol_completion_matches): Update.
238 * ada-tasks.c (read_atcb): Update.
239 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
240 (amd64_windows_skip_trampoline_code): Update.
241 * arm-tdep.c (skip_prologue_function): Update.
242 (arm_skip_stack_protector): Update.
243 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
244 (arm_wince_skip_main_prologue): Update.
245 * ax-gdb.c (gen_expr): Update.
246 * block.c (call_site_for_pc): Update.
247 * blockframe.c (find_pc_partial_function): Update.
248 * breakpoint.c (set_breakpoint_location_function): Update.
249 * btrace.c (ftrace_print_function_name): Update.
250 (ftrace_function_switched): Update.
251 * c-valprint.c (print_unpacked_pointer): Update.
252 * coffread.c (coff_symfile_read): Update.
253 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
254 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
255 * dwarf-index-write.c (write_psymbols): Update.
256 * dwarf2loc.c (call_site_to_target_addr): Update.
257 (func_verify_no_selftailcall): Update.
258 (tailcall_dump): Update.
259 (call_site_find_chain_1): Update.
260 (dwarf_expr_reg_to_entry_parameter): Update.
261 * elfread.c (elf_gnu_ifunc_record_cache): Update.
262 * eval.c (evaluate_funcall): Update.
263 (evaluate_subexp_standard): Update.
264 (evaluate_subexp_for_sizeof): Update.
265 * expprint.c (print_subexp_standard): Update.
266 (dump_subexp_body_standard): Update.
267 * frame.c (get_prev_frame_always_1): Update.
268 * frv-tdep.c (frv_skip_main_prologue): Update.
269 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
270 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
271 (gnuv3_get_typename_from_type_info): Update.
272 (gnuv3_skip_trampoline): Update.
273 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
274 * i386-tdep.c (i386_skip_main_prologue): Update.
275 (i386_pe_skip_trampoline_code): Update.
276 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
277 * infcall.c (get_function_name): Update.
278 * linespec.c (minsym_found): Update.
279 * linux-fork.c (info_checkpoints_command): Update.
280 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
281 (m32c_m16c_pointer_to_address): Update.
282 * maint.c (maintenance_translate_address): Update.
283 * minsyms.c (add_minsym_to_hash_table): Update.
284 (add_minsym_to_demangled_hash_table): Update.
285 (lookup_minimal_symbol_mangled): Update.
286 (lookup_minimal_symbol_demangled): Update.
287 (lookup_minimal_symbol_linkage): Update.
288 (lookup_minimal_symbol_text): Update.
289 (lookup_minimal_symbol_by_pc_name): Update.
290 (minimal_symbol_is_less_than): Update.
291 (compact_minimal_symbols): Update.
292 (build_minimal_symbol_hash_tables): Update.
293 (find_solib_trampoline_target): Update.
294 * mips-tdep.c (mips_stub_frame_sniffer): Update.
295 (mips_skip_pic_trampoline_code): Update.
296 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
297 * objc-lang.c (info_selectors_command): Update.
298 (info_classes_command): Update.
299 (find_methods): Update.
300 (find_imps): Update.
301 * p-valprint.c (pascal_val_print): Update.
302 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
303 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
304 * printcmd.c (build_address_symbolic): Update.
305 (info_symbol_command): Update.
306 * psymtab.c (psymbol_name_matches): Update.
307 (match_partial_symbol): Update.
308 (lookup_partial_symbol): Update.
309 (print_partial_symbols): Update.
310 (sort_pst_symbols): Update.
311 (maintenance_check_psymtabs): Update.
312 * python/py-framefilter.c (py_print_frame): Update.
313 * python/python.c (gdbpy_rbreak): Update.
314 * record-btrace.c (btrace_get_bfun_name): Update.
315 (btrace_call_history): Update.
316 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
317 (rs6000_skip_trampoline_code): Update.
318 * sol-thread.c (info_cb): Update.
319 * stabsread.c (scan_file_globals): Update.
320 * stack.c (find_frame_funname): Update.
321 (info_frame_command_core): Update.
322 * symmisc.c (dump_msymbols): Update.
323 * symtab.c (symbol_natural_name): Rename to..,
324 (general_symbol_info::natural_name): ...this.
325 (symbol_demangled_name): Rename to...
326 (general_symbol_info::demangled_name): ...this.
327 (symbol_search_name): Rename to...
328 (general_symbol_info::search_name): ...this.
329 (symbol_matches_search_name): Update.
330 (find_pc_sect_line): Update.
331 (skip_prologue_sal): Update.
332 (search_symbols): Update.
333 (print_msymbol_info): Update.
334 (rbreak_command): Update.
335 (completion_list_add_msymbol): Update.
336 (completion_list_objc_symbol): Update.
337 (get_msymbol_address): Update.
338 * symtab.h (struct general_symbol_info): Add member functions
339 natural_name (), linkage_name (), print_name (), demangled_name (),
340 and search_name ().
341 (SYMBOL_NATURAL_NAME): Update.
342 (symbol_natural_name): Move to a member function on general_symbol_info.
343 (SYMBOL_DEMANGLED_NAME): Update.
344 (symbol_demangled_name): Move to a member function on
345 general_symbol_info.
346 (SYMBOL_SEARCH_NAME): Update.
347 (symbol_search_name): Move to a member function on general_symbol_info.
348 (MSYMBOL_NATURAL_NAME): Remove.
349 (MSYMBOL_LINKAGE_NAME): Remove.
350 (MSYMBOL_PRINT_NAME): Remove.
351 (MSYMBOL_DEMANGLED_NAME): Remove.
352 (MSYMBOL_SEARCH_NAME): Remove.
353 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
354
355 2019-11-22 Christian Biesinger <cbiesinger@google.com>
356
357 * symtab.c (create_demangled_names_hash): Use per_bfd->
358 minimal_symbol_count for computing the initial size, if greater
359 than our default size.
360
361 2019-11-22 Tom de Vries <tdevries@suse.de>
362
363 * contrib/words.sh: Improve words extraction.
364
365 2019-11-22 Tom de Vries <tdevries@suse.de>
366
367 * contrib/words.sh: Combine sed invocations.
368
369 2019-11-21 Christian Biesinger <cbiesinger@google.com>
370
371 * Makefile.in: Update.
372 * demangle.c: Rename to...
373 * gdb-demangle.c: ..this.
374 (is_cplus_marker): Change return type to bool.
375 (_initialize_demangler): Rename to...
376 (_initialize_gdb_demangle): ...this.
377 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
378 * symtab.h (demangle): Remove declaration; instead include
379 gdb-demangle.h.
380
381 2019-11-21 Tom Tromey <tromey@adacore.com>
382
383 * gdbsupport/format.c (format_pieces): Parse %I64d.
384 * unittests/format_pieces-selftests.c (test_windows_formats): New
385 function.
386 (run_tests): Call it.
387
388 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
389
390 Byte reverse display of variables with DW_END_big, DW_END_little
391 (DW_AT_endianity) dwarf attributes if different than the native
392 byte order.
393 * ada-lang.c (ada_value_binop):
394 Use type_byte_order instead of gdbarch_byte_order.
395 * ada-valprint.c (printstr):
396 (ada_val_print_string):
397 * ada-lang.c (value_pointer):
398 (ada_value_binop):
399 Use type_byte_order instead of gdbarch_byte_order.
400 * c-lang.c (c_get_string):
401 Use type_byte_order instead of gdbarch_byte_order.
402 * c-valprint.c (c_val_print_array):
403 Use type_byte_order instead of gdbarch_byte_order.
404 * cp-valprint.c (cp_print_class_member):
405 Use type_byte_order instead of gdbarch_byte_order.
406 * dwarf2loc.c (rw_pieced_value):
407 Use type_byte_order instead of gdbarch_byte_order.
408 * dwarf2read.c (read_base_type): Handle DW_END_big,
409 DW_END_little
410 * f-lang.c (f_get_encoding):
411 Use type_byte_order instead of gdbarch_byte_order.
412 * findvar.c (default_read_var_value):
413 Use type_byte_order instead of gdbarch_byte_order.
414 * gdbtypes.c (check_types_equal):
415 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
416 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
417 and TYPE_ENDIANITY_LITTLE if set.
418 (type_byte_order): new function.
419 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
420 (struct main_type) <flag_endianity_not_default>:
421 New field.
422 (type_byte_order): New function.
423 * infcmd.c (default_print_one_register_info):
424 Use type_byte_order instead of gdbarch_byte_order.
425 * p-lang.c (pascal_printstr):
426 Use type_byte_order instead of gdbarch_byte_order.
427 * p-valprint.c (pascal_val_print):
428 Use type_byte_order instead of gdbarch_byte_order.
429 * printcmd.c (print_scalar_formatted):
430 Use type_byte_order instead of gdbarch_byte_order.
431 * solib-darwin.c (darwin_current_sos):
432 Use type_byte_order instead of gdbarch_byte_order.
433 * solib-svr4.c (solib_svr4_r_ldsomap):
434 Use type_byte_order instead of gdbarch_byte_order.
435 * stap-probe.c (stap_modify_semaphore):
436 Use type_byte_order instead of gdbarch_byte_order.
437 * target-float.c (target_float_same_format_p):
438 Use type_byte_order instead of gdbarch_byte_order.
439 * valarith.c (scalar_binop):
440 (value_bit_index):
441 Use type_byte_order instead of gdbarch_byte_order.
442 * valops.c (value_cast):
443 Use type_byte_order instead of gdbarch_byte_order.
444 * valprint.c (generic_emit_char):
445 (generic_printstr):
446 (val_print_string):
447 Use type_byte_order instead of gdbarch_byte_order.
448 * value.c (unpack_long):
449 (unpack_bits_as_long):
450 (unpack_value_bitfield):
451 (modify_field):
452 (pack_long):
453 (pack_unsigned_long):
454 Use type_byte_order instead of gdbarch_byte_order.
455 * findvar.c (unsigned_pointer_to_address):
456 (signed_pointer_to_address):
457 (unsigned_address_to_pointer):
458 (address_to_signed_pointer):
459 (default_read_var_value):
460 (default_value_from_register):
461 Use type_byte_order instead of gdbarch_byte_order.
462 * gnu-v3-abi.c (gnuv3_make_method_ptr):
463 Use type_byte_order instead of gdbarch_byte_order.
464 * riscv-tdep.c (riscv_print_one_register_info):
465 Use type_byte_order instead of gdbarch_byte_order.
466
467 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
468
469 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
470 (current_ui_gdb_stdin_ptr): Likewise.
471 (current_ui_gdb_stderr_ptr): Likewise.
472 (current_ui_gdb_stdlog_ptr): Likewise.
473 (current_ui_current_uiout_ptr): Likewise.
474 (gen_ret_current_ui_field_ptr): Remove.
475
476 2019-11-21 Tom de Vries <tdevries@suse.de>
477
478 PR gdb/24956
479 * cli/cli-script.c (execute_control_command): Only switch to
480 INTERP_CONSOLE's ui_out when INTERP_MI is active.
481
482 2019-11-19 Tom Tromey <tom@tromey.com>
483
484 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
485 Now static. Change type of "name".
486 (tui_set_win_height_command): Don't copy "arg".
487 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
488 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
489
490 2019-11-19 Ali Tamur <tamur@google.com>
491
492 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
493 "if (attr != nullptr)".
494 (dwarf2_find_base_address): Likewise.
495 (dwarf2_build_include_psymtabs): Likewise.
496 (read_cutu_die_from_dwo): Likewise.
497 (read_func_scope): Likewise.
498 (read_call_site_scope): Likewise.
499 (dwarf2_get_pc_bounds): Likewise.
500 (dwarf2_record_block_ranges): Likewise.
501 (dwarf2_add_field): Likewise.
502 (dwarf2_add_member_fn): Likewise.
503 (read_structure_type): Likewise.
504 (read_enumeration_type): Likewise.
505 (read_array_type): Likewise.
506 (read_array_order): Likewise.
507 (read_set_type): Likewise.
508 (read_common_block): Likewise.
509 (read_tag_reference_type): Likewise.
510 (read_tag_string_type): Likewise.
511 (read_subroutine_type): Likewise.
512 (read_base_type): Likewise.
513 (read_subrange_type): Likewise.
514 (new_symbol): Likewise.
515 (prepare_one_comp_unit): Likewise.
516
517 2019-11-19 Tom Tromey <tromey@adacore.com>
518
519 * windows-nat.c (windows_nat_target::attach): Include GetLastError
520 result in error when DebugActiveProcess fails.
521
522 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
523 Pedro Alves <palves@redhat.com>
524
525 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
526 * target.c (target_stack::push): Call 'unpush' if there's a
527 target on top of the stack.
528
529 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
530
531 * python/py-block.c (blpy_dealloc): Call tp_free.
532 (blpy_block_syms_dealloc): Likewise.
533 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
534 * python/py-inferior.c (infpy_dealloc): Likewise.
535 * python/py-lazy-string.c (stpy_dealloc): Likewise.
536 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
537 * python/py-symbol.c (sympy_dealloc): Likewise.
538 * python/py-symtab.c (stpy_dealloc): Likewise.
539 * python/py-type.c (typy_iterator_dealloc): Likewise.
540
541 2019-11-18 Christian Biesinger <cbiesinger@google.com>
542
543 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
544 constructor instead of using a class initializer.
545
546 2019-11-15 Christian Biesinger <cbiesinger@google.com>
547
548 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
549 * configure: Regenerate.
550 * configure.ac: Don't source common.host.
551 * gdbsupport/common.host: Remove.
552 * gdbsupport/mingw-strerror.c: Remove.
553 * gdbsupport/posix-strerror.c: Rename to...
554 * gdbsupport/safe-strerror.c: ...this.
555
556 2019-11-15 Christian Biesinger <cbiesinger@google.com>
557
558 * maint.c (scoped_command_stats::print_time): Use localtime_r
559 instead of localtime (provided through gnulib if necessary).
560 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
561 of ctime.
562
563 2019-11-15 Christian Biesinger <cbiesinger@google.com>
564
565 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
566 avoid compile errors.
567
568 2019-11-15 Christian Biesinger <cbiesinger@google.com>
569
570 * config.in: Regenerate.
571 * configure: Regenerate.
572 * gdbsupport/common.m4: No longer check for strerror_r.
573 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
574 POSIX version of strerror_r, now that gnulib provides it if
575 necessary.
576
577 2019-11-14 Christian Biesinger <cbiesinger@google.com>
578
579 * README (`configure' options): Update.
580
581 2019-11-14 Tom Tromey <tromey@adacore.com>
582
583 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
584 expected type for the RHS if the LHS is a convenience variable.
585
586 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
587
588 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
589 Provide explicit default and copy constructor.
590
591 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
592
593 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
594 only call Py_INCREF (newbp) in the bppy_pending_object case.
595
596 2019-11-13 Tom Tromey <tromey@adacore.com>
597
598 PR build/25182:
599 * psympriv.h (partial_symbol): Remove static assert.
600 * symtab.h (general_symbol_info, symbol): Remove static assert.
601
602 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
603
604 * gdbsupport/format.c (format_pieces::format_pieces): Support
605 printf 'z' size modifier.
606 * gdbsupport/format.h (enum argclass): Add size_t_arg.
607 * printcmd.c (ui_printf): Handle size_t_arg.
608 * ui-out.c (ui_out::vmessage): Likewise.
609 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
610 function.
611 (run_tests): Call test_format_int_sizes.
612
613 2019-11-12 Christian Biesinger <cbiesinger@google.com>
614
615 * ada-exp.y (write_ambiguous_var): Update.
616 * buildsym.c (add_symbol_to_list): Update.
617 * dwarf2read.c (read_variable): Update.
618 (new_symbol): Update.
619 * jit.c (finalize_symtab): Update.
620 * language.c (language_alloc_type_symbol): Update.
621 * symtab.c (fixup_symbol_section): Update.
622 (initialize_objfile_symbol_1): Move code to...
623 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
624 (allocate_symbol): Update.
625 (allocate_template_symbol): Update.
626 (get_symbol_address): Update.
627 * symtab.h (struct symbol): Inherit from general_symbol_info instead
628 of having as a field, and add a constructor.
629 (SYMBOL_VALUE): Update.
630 (SYMBOL_VALUE_ADDRESS): Update.
631 (SET_SYMBOL_VALUE_ADDRESS): Update.
632 (SYMBOL_VALUE_BYTES): Update.
633 (SYMBOL_VALUE_COMMON_BLOCK): Update.
634 (SYMBOL_BLOCK_VALUE): Update.
635 (SYMBOL_VALUE_CHAIN): Update.
636 (SYMBOL_LANGUAGE): Update.
637 (SYMBOL_SECTION): Update.
638 (SYMBOL_OBJ_SECTION): Update.
639 (SYMBOL_SET_LANGUAGE): Update.
640 (SYMBOL_SET_LINKAGE_NAME): Update.
641 (SYMBOL_SET_NAMES): Update.
642 (SYMBOL_NATURAL_NAME): Update.
643 (SYMBOL_LINKAGE_NAME): Update.
644 (SYMBOL_DEMANGLED_NAME): Update.
645 (SYMBOL_SEARCH_NAME): Update.
646 (SYMBOL_MATCHES_SEARCH_NAME): Update.
647 (struct symbol): Update.
648 (struct template_symbol): Update.
649 (struct rust_vtable_symbol): Update.
650 * xcoffread.c (SYMBOL_DUP): Update.
651
652 2019-11-12 Tom Tromey <tom@tromey.com>
653
654 * tui/tui-layout.c (show_layout): Set current_layout.
655 (show_source_disasm_command, show_data)
656 (show_source_or_disasm_and_command): Don't set current_layout.
657
658 2019-11-12 Tom Tromey <tom@tromey.com>
659
660 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
661
662 2019-11-12 Tom Tromey <tom@tromey.com>
663
664 * tui/tui-win.c (resize_message): New global.
665 (show_tui_resize_message): New function.
666 (tui_async_resize_screen): Print message if requested.
667 (_initialize_tui_win): Add tui-resize-message setting.
668 * NEWS: Add entry for new commands.
669
670 2019-11-11 Tom Tromey <tom@tromey.com>
671
672 * tui/tui.c (tui_initialize_readline): Add new bindable readline
673 functions.
674
675 2019-11-11 Christian Biesinger <cbiesinger@google.com>
676
677 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
678
679 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
680
681 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
682 function.
683 * python/python-internal.h (gdbpy_lookup_static_symbols):
684 Declare new function.
685 * python/python.c (python_GdbMethods): Add
686 gdb.lookup_static_symbols method.
687 * NEWS: Mention gdb.lookup_static_symbols.
688
689 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
690
691 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
692 static block of current object file first. Also fix typo in
693 header comment.
694
695 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
696
697 * stack.c (set_last_displayed_sal): Delete.
698 (last_displayed_sal_valid): Delete.
699 (last_displayed_pspace): Delete.
700 (last_displayed_addr): Delete.
701 (last_displayed_symtab): Delete.
702 (last_displayed_line): Delete.
703 (class last_displayed_symtab_info_type): New.
704 (last_displayed_symtab_info): New static global variable.
705 (print_frame_info): Call methods on last_displayed_symtab_info.
706 (clear_last_displayed_sal): Update header comment, and make use of
707 last_displayed_symtab_info.
708 (last_displayed_sal_is_valid): Likewise.
709 (get_last_displayed_pspace): Likewise.
710 (get_last_displayed_addr): Likewise.
711 (get_last_displayed_symtab): Likewise.
712 (get_last_displayed_line): Likewise.
713 (get_last_displayed_sal): Likewise.
714 * stack.h (clear_last_displayed_sal): Update header comment.
715 (last_displayed_sal_is_valid): Likewise.
716 (get_last_displayed_pspace): Likewise.
717 (get_last_displayed_addr): Likewise.
718 (get_last_displayed_symtab): Likewise.
719 (get_last_displayed_line): Likewise.
720 (get_last_displayed_sal): Likewise.
721
722 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
723
724 * stack.c (frame_show_address): Convert return type to bool.
725 * stack.h (frame_show_address): Likewise, and update header
726 comment.
727
728 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
729
730 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
731 * unittests/vec-utils-selftests.c: New file.
732 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
733
734 2019-11-10 Tom Tromey <tom@tromey.com>
735
736 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
737 (tui_highlight_win): Likewise.
738 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
739 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
740 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
741 Don't set can_highlight.
742
743 2019-11-10 Tom Tromey <tom@tromey.com>
744
745 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
746 Remove unused declaration.
747
748 2019-11-08 Tom Tromey <tromey@adacore.com>
749
750 * top.c (read_command_file): Update.
751 (command_line_input): Make return type const.
752 * python/py-gdb-readline.c: Update.
753 * linespec.c (decode_line_2): Update.
754 * defs.h (command_line_input): Make return type const.
755 * cli/cli-script.c (read_next_line): Make return type const.
756 * ada-lang.c (get_selections): Update.
757
758 2019-11-06 Christian Biesinger <cbiesinger@google.com>
759
760 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
761 * mi/mi-main.c (output_cores): Likewise.
762 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
763 (linux_xfer_osdata_modules): Likewise.
764 * remote.c (register_remote_support_xml): Likewise.
765 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
766 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
767
768 2019-11-06 Tom Tromey <tom@tromey.com>
769
770 * tui/tui-interp.c: Don't include readline.h.
771 * tui/tui-hooks.c: Don't include readline.h.
772 * symmisc.c: Include tilde.h, not readline.h.
773 * symfile.c: Include tilde.h, not readline.h.
774 * source.c: Include tilde.h, not readline.h.
775 * solib.c: Include tilde.h, not readline.h.
776 * psymtab.c: Include tilde.h, not readline.h.
777 * exec.c: Include tilde.h, not readline.h.
778 * corelow.c: Include tilde.h, not readline.h.
779 * cli/cli-dump.c: Include tilde.h, not readline.h.
780 * cli/cli-cmds.c: Don't include readline.h.
781
782 2019-11-05 Tom Tromey <tom@tromey.com>
783
784 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
785 (tui_disassemble): Set addr_size.
786 (tui_disasm_window::set_contents): Use addr_size.
787
788 2019-11-05 Tom Tromey <tom@tromey.com>
789
790 * rust-lang.c (rust_language_defn): Update.
791 * python/py-value.c (valpy_string): Call c_get_string.
792 * p-lang.c (pascal_language_defn): Update.
793 * opencl-lang.c (opencl_language_defn): Update.
794 * objc-lang.c (objc_language_defn): Update.
795 * m2-lang.c (m2_language_defn): Update.
796 * language.c (unknown_language_defn, auto_language_defn): Update.
797 (default_get_string): Remove.
798 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
799 * go-lang.c (go_language_defn): Update.
800 * f-lang.c (f_language_defn): Update.
801 * d-lang.c (d_language_defn): Update.
802 * c-lang.c (c_language_defn, cplus_language_defn)
803 (asm_language_defn, minimal_language_defn): Update.
804 * ada-lang.c (ada_language_defn): Update.
805 * language.h (struct language_defn) <la_get_string>: Remove.
806 (LA_GET_STRING): Remove.
807 (default_get_string): Don't declare.
808
809 2019-11-05 Tom Tromey <tom@tromey.com>
810
811 * tui/tui-source.h (struct tui_source_window): Inline
812 constructor. Remove destructor.
813 <style_changed, m_observable>: Move to superclass.
814 * tui/tui-winsource.h (tui_copy_source_line): Declare.
815 (struct tui_source_window_base): Move private members to end.
816 <style_changed, m_observable>: Move from tui_source_window.
817 * tui/tui-winsource.c (tui_copy_source_line): Move from
818 tui-source.c. Rename from copy_source_line. Add special handling
819 for negative line number.
820 (tui_source_window_base::style_changed): Move from
821 tui_source_window.
822 (tui_source_window_base): Register observer.
823 (~tui_source_window_base): New.
824 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
825 rename.
826 (tui_source_window::set_contents): Use tui_copy_source_line.
827 (tui_source_window::tui_source_window): Move to tui-source.h.
828 (tui_source_window::~tui_source_window): Remove.
829 (tui_source_window::style_changed): Move to superclass.
830 * tui/tui-disasm.c (tui_disassemble): Create string file with
831 styling, when possible. Add "addr_size" parameter.
832 (tui_disasm_window::set_contents): Use tui_copy_source_line.
833 Don't compute maximum size.
834 (len_without_escapes): New function
835
836 2019-11-05 Tom Tromey <tom@tromey.com>
837
838 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
839 std::string.
840 * tui/tui-winsource.c (tui_show_source_line): Update.
841 * tui/tui-source.c (tui_source_window::set_contents): Update.
842 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
843
844 2019-11-05 Christian Biesinger <cbiesinger@google.com>
845
846 * symtab.h (gdb_static_assert): Put && operator at the beginning
847 of the line instead of the end.
848
849 2019-11-04 Christian Biesinger <cbiesinger@google.com>
850
851 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
852 and sizeof (symbol).
853 * symtab.h: Add a static_assert for sizeof (partial_symbol).
854
855 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
856
857 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
858 * configure.host: Mark *-*-solaris2.10* obsolete.
859 * configure.tgt: Mark Solaris < 11 obsolete.
860 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
861 Update target triplet.
862
863 2019-11-01 Tom Tromey <tromey@adacore.com>
864
865 * utils.c (print_sys_errmsg): Simplify.
866
867 2019-11-01 Tom Tromey <tromey@adacore.com>
868
869 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
870
871 2019-11-01 Christian Biesinger <cbiesinger@google.com>
872
873 * configure: Regenerate.
874 * configure.ac: Remove check for strerror_r.
875 * gdbsupport/common.m4: Check for strerror_r.
876
877 2019-11-01 Luis Machado <luis.machado@linaro.org>
878
879 PR gdb/25124
880
881 * arm-tdep.c (arm_per_objfile): Rename to ...
882 (arm_per_bfd): ... this.
883 (arm_objfile_data_key): Rename to ...
884 (arm_bfd_data_key): ... this.
885 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
886 data.
887 (arm_record_special_symbol): Likewise.
888
889 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
890
891 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
892 end.
893 * c-typeprint.c (c_print_typedef): Likewise.
894 * f-typeprint.c (f_print_typedef): Likewise.
895 * m2-typeprint.c (m2_print_typedef): Likewise.
896 * p-typeprint.c (pascal_print_typedef): Likewise.
897 * rust-lang.c (rust_print_typedef): Likewise.
898 * symtab.c (print_symbol_info): Print a newline after calling
899 typedef_print.
900
901 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
902
903 * symtab.c (info_module_cmdlist): New variable.
904 (info_module_command): New function.
905 (search_module_symbols): New function.
906 (info_module_subcommand): New function.
907 (struct info_modules_var_func_options): New struct.
908 (info_modules_var_func_options_defs): New variable.
909 (make_info_modules_var_func_options_def_group): New function.
910 (info_module_functions_command): New function.
911 (info_module_variables_command): New function.
912 (info_module_var_func_command_completer): New function.
913 (_initialize_symtab): Register new 'info module functions' and
914 'info module variables' commands.
915 * symtab.h (typedef symbol_search_in_module): New typedef.
916 (search_module_symbols): Declare new function.
917 * NEWS: Mention new commands.
918
919 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
920
921 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
922 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
923 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
924 MODULES_DOMAIN.
925 (scan_partial_symbols): Only create partial module symbols for non
926 declarations.
927 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
928 and MODULES_DOMAIN.
929 * symtab.c (search_domain_name): Likewise.
930 (search_symbols): Likewise.
931 (print_symbol_info): Likewise.
932 (symtab_symbol_info): Likewise.
933 (info_modules_command): New function.
934 (_initialize_symtab): Register 'info modules' command.
935 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
936 * NEWS: Mention new 'info modules' command.
937
938 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
939
940 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
941 and $_gdb_maint_setting_str.
942
943 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
944
945 * cli/cli-cmds.c (setting_cmd, value_from_setting)
946 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
947 (str_value_from_setting, gdb_setting_str_internal_fn)
948 (gdb_maint_setting_str_internal_fn): New functions.
949 (_initialize_cli_cmds): Define the new convenience functions.
950 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
951 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
952
953 2019-10-31 Christian Biesinger <cbiesinger@google.com>
954
955 * agent.c (set_can_use_agent): When the setting is turned on,
956 look up agent symbols if we don't have them yet.
957 (agent_new_objfile): Don't look up agent symbols when the agent
958 setting is off.
959
960 2019-10-31 Christian Biesinger <cbiesinger@google.com>
961
962 * config.in: Regenerate.
963
964 2019-10-31 Christian Biesinger <cbiesinger@google.com>
965
966 * configure: Regenerate.
967 * configure.ac: Check for strerror_r.
968 * gdbsupport/common-utils.h (safe_strerror): Change return value
969 to const char * and document that this function is now threadsafe.
970 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
971 thread_local and call strerror_r, if available.
972 * utils.c (perror_string): Update.
973 (print_sys_errmsg): Update.
974
975 2019-10-31 Luis Machado <luis.machado@linaro.org>
976
977 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
978 objfile_key.
979 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
980 objfile to fetch per-bfd data.
981 (arm_find_exidx_entry): Likewise.
982
983 2019-10-31 Christian Biesinger <cbiesinger@google.com>
984
985 * gdbsupport/agent.c (debug_agent): Change type to bool.
986 (use_agent): Likewise.
987 (all_agent_symbols_look_up): Likewise.
988 (agent_loaded_p): Change return value to bool.
989 (agent_look_up_symbols): Update.
990 (agent_capability_check): Change return value to bool.
991 * gdbsupport/agent.h (agent_loaded_p): Likewise.
992 (debug_agent): Change type to bool.
993 (use_agent): Likewise.
994 (agent_capability_check): Change return value to bool.
995
996 2019-10-30 Christian Biesinger <cbiesinger@google.com>
997
998 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
999 (build_minimal_symbol_hash_tables): Code to clear the table moved
1000 to clear_minimal_symbol_hash_tables.
1001 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1002 when needed.
1003
1004 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1005
1006 * infcmd.c: Remove includes.
1007 * infrun.c: Remove includes.
1008
1009 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1010
1011 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1012 (grow_vect): Remove declaration.
1013 (ada_type_of_array): Remove declaration.
1014 (ada_update_initial_language): Remove declaration.
1015 (ada_fold_name): Remove declaration.
1016 (ada_fill_in_ada_prototype): Remove declaration.
1017 (user_select_syms): Remove declaration.
1018 (get_selections): Remove declaration.
1019 (ada_tag_type): Remove declaration.
1020 (ada_value_tag): Remove declaration.
1021 (ada_is_others_clause): Remove declaration.
1022 (ada_in_variant): Remove declaration.
1023 (ada_value_struct_elt): Remove declaration.
1024 (ada_attribute_name): Remove declaration.
1025 (ada_system_address_type): Remove declaration.
1026 * ada-lang.c (ada_watch_location_expression): Make static.
1027 (GROW_VECT): Move here from ada-lang.h.
1028 (grow_vect): Make static.
1029 (ada_update_initial_language): Make static.
1030 (ada_fold_name): Make static.
1031 (ada_type_of_array): Make static.
1032 (encoded_ordered_before): Move up.
1033 (sort_choices): Move up.
1034 (print_signatures): Move up.
1035 (ada_print_symbol_signature): Move up.
1036 (get_selections): Move up and make static.
1037 (user_select_syms): Move up and make static.
1038 (ada_value_struct_elt): Move up and make static.
1039 (ada_tag_type): Make static.
1040 (ada_value_tag): Make static.
1041 (ada_is_others_clause): Make static.
1042 (ada_in_variant): Make static.
1043 (ada_attribute_name): Make static.
1044
1045 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1046
1047 * ada-lang.c: Remove includes.
1048 * ada-typeprint.c: Remove includes.
1049 * ada-valprint.c: Remove includes.
1050
1051 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1052
1053 * addrmap.c: Add static assertions of type size, moved from
1054 _initialize_addrmap.
1055 (_initialize_addrmap): Remove.
1056
1057 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1058
1059 * coffread.c (record_minimal_symbol): Update.
1060 (process_coff_symbol): Update.
1061 * dbxread.c (read_dbx_symtab): Update.
1062 * dwarf2read.c (add_partial_symbol): Update.
1063 (fixup_go_packaging): Update.
1064 (load_partial_dies): Update.
1065 (new_symbol): Update.
1066 * elfread.c (record_minimal_symbol): Change signature to use
1067 gdb::string_view instead of name+len.
1068 (elf_symtab_read): Update.
1069 (elf_rel_plt_read): Update.
1070 * mdebugread.c (parse_partial_symbols): Update.
1071 (handle_psymbol_enumerators): Update.
1072 (new_symbol): Update.
1073 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1074 to use gdb::string_view instead of name+len.
1075 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1076 * psympriv.h (add_psymbol_to_list): Likewise.
1077 * psymtab.c (add_psymbol_to_bcache): Likewise.
1078 (add_psymbol_to_list): Likewise.
1079 * stabsread.c (define_symbol): Update.
1080 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1081 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1082 (symbol_set_names): Likewise.
1083 * xcoffread.c (scan_xcoff_symtab): Update.
1084
1085 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1086
1087 * symtab.h (symbol_set_names): Document that copy_name must be
1088 set to true for non-nullterminated strings.
1089 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1090 linkage_name if the entry was not found and we need to demangle.
1091
1092 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1093
1094 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1095 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1096 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1097 * gdbsupport/gdb_binary_search.h: New file.
1098
1099 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1100
1101 * NEWS: Mention new --with-system-gdbinit-dir option.
1102 * config.in: Regenerate.
1103 * configure: Regenerate.
1104 * configure.ac: Add new option --with-system-gdbinit-dir.
1105 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1106 for a ".gdb" suffix.
1107 * main.c (get_init_files): Change system_gdbinit argument to
1108 a vector and return the files in SYSTEM_GDBINIT_DIR in
1109 addition to SYSTEM_GDBINIT.
1110 (captured_main_1): Update.
1111 (print_gdb_help): Update.
1112 * top.c (print_gdb_configuration): Also print the value of
1113 SYSTEM_GDBINIT_DIR.
1114
1115 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1116
1117 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1118 that takes gdb::string_view arguments.
1119
1120 2019-10-26 Tom de Vries <tdevries@suse.de>
1121
1122 * aarch64-linux-tdep.c: Fix typos in comments.
1123 * aarch64-tdep.c: Same.
1124 * ada-lang.c: Same.
1125 * amd64-nat.c: Same.
1126 * arc-tdep.c: Same.
1127 * arch/aarch64-insn.c: Same.
1128 * block.c: Same.
1129 * breakpoint.h: Same.
1130 * btrace.h: Same.
1131 * c-varobj.c: Same.
1132 * cli/cli-decode.c: Same.
1133 * cli/cli-script.c: Same.
1134 * cli/cli-utils.h: Same.
1135 * coff-pe-read.c: Same.
1136 * coffread.c: Same.
1137 * compile/compile-cplus-symbols.c: Same.
1138 * compile/compile-object-run.c: Same.
1139 * completer.c: Same.
1140 * corelow.c: Same.
1141 * cp-support.c: Same.
1142 * demangle.c: Same.
1143 * dwarf-index-write.c: Same.
1144 * dwarf2-frame.c: Same.
1145 * dwarf2-frame.h: Same.
1146 * eval.c: Same.
1147 * frame-base.h: Same.
1148 * frame.h: Same.
1149 * gdbcmd.h: Same.
1150 * gdbtypes.h: Same.
1151 * gnu-nat.c: Same.
1152 * guile/scm-objfile.c: Same.
1153 * i386-tdep.c: Same.
1154 * i386-tdep.h: Same.
1155 * infcall.c: Same.
1156 * infcall.h: Same.
1157 * linux-nat.c: Same.
1158 * m68k-tdep.c: Same.
1159 * macroexp.c: Same.
1160 * memattr.c: Same.
1161 * mi/mi-cmd-disas.c: Same.
1162 * mi/mi-getopt.h: Same.
1163 * mi/mi-main.c: Same.
1164 * minsyms.c: Same.
1165 * nat/aarch64-sve-linux-sigcontext.h: Same.
1166 * objfiles.h: Same.
1167 * ppc-linux-nat.c: Same.
1168 * ppc-linux-tdep.c: Same.
1169 * ppc-tdep.h: Same.
1170 * progspace.h: Same.
1171 * prologue-value.h: Same.
1172 * python/py-evtregistry.c: Same.
1173 * python/py-instruction.h: Same.
1174 * record-btrace.c: Same.
1175 * record-full.c: Same.
1176 * remote.c: Same.
1177 * rs6000-tdep.c: Same.
1178 * ser-tcp.c: Same.
1179 * sol-thread.c: Same.
1180 * sparc-sol2-tdep.c: Same.
1181 * sparc64-tdep.c: Same.
1182 * stabsread.c: Same.
1183 * symfile.c: Same.
1184 * symtab.h: Same.
1185 * target.c: Same.
1186 * tracepoint.c: Same.
1187 * tui/tui-data.h: Same.
1188 * tui/tui-io.c: Same.
1189 * tui/tui-win.c: Same.
1190 * tui/tui.c: Same.
1191 * unittests/rsp-low-selftests.c: Same.
1192 * user-regs.h: Same.
1193 * utils.c: Same.
1194 * utils.h: Same.
1195 * valarith.c: Same.
1196 * valops.c: Same.
1197 * valprint.c: Same.
1198 * valprint.h: Same.
1199 * value.c: Same.
1200 * value.h: Same.
1201 * varobj.c: Same.
1202 * x86-nat.h: Same.
1203 * xtensa-tdep.c: Same.
1204
1205 2019-10-25 Ali Tamur <tamur@google.com>
1206
1207 * charset.c (find_charset_names): Reflect API change.
1208
1209 2019-10-25 Christian Biesinger <cbiesinger@google.com>
1210
1211 * symtab.c (struct demangled_name_entry): Change demangled name
1212 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1213 part of the struct anymore.
1214 (symbol_set_names): No longer obstack allocate + copy the demangled
1215 name, just store the allocated name from bfd.
1216
1217 2019-10-25 Tom Tromey <tromey@adacore.com>
1218
1219 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1220 (bsearch_cie_cmp, add_cie): Remove.
1221 (find_cie): Reimplement.
1222 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1223 (dwarf2_build_frame_info): Update.
1224
1225 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1226
1227 PR gdb/25126
1228 * symfile.c (reread_symbols): Call forget_cached_source_info to
1229 clear the stale source cache.
1230
1231 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1232
1233 * configure: Regenerate.
1234 * configure.ac: Remove code that sets python_has_threads.
1235
1236 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1237
1238 * config.in: Regenerate.
1239 * configure: Regenerate.
1240 * configure.ac: Remove the code that uses sed to get the python
1241 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1242
1243 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1244
1245 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1246 error paths.
1247
1248 2019-10-23 Tom Tromey <tom@tromey.com>
1249
1250 * arc-tdep.c: Remove ".." from include.
1251 * frv-tdep.c: Remove ".." from include.
1252 * lm32-tdep.c: Remove ".." from include.
1253 * microblaze-tdep.c: Remove ".." from include.
1254 * or1k-tdep.h: Remove ".." from include.
1255 * s12z-tdep.c: Remove ".." from include.
1256 * Makefile.in (OPCODES_CFLAGS): Add comment.
1257 (TOP_CFLAGS): New variable.
1258 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1259
1260 2019-10-23 Tom Tromey <tom@tromey.com>
1261
1262 * Makefile.in (READLINE_DIR): Update.
1263
1264 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1265
1266 * infcall.c (call_function_by_hand_dummy): Fix the function
1267 comment. And extract out a code section into...
1268 (reserve_stack_space): ...this new function.
1269
1270 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1271
1272 * infcall.c (value_arg_coerce): Remove an unused parameter.
1273 (call_function_by_hand_dummy): Update the call to
1274 'value_arg_coerce'.
1275
1276 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1277
1278 * infcall.c (call_function_by_hand_dummy): Refactor.
1279
1280 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1281
1282 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1283
1284 2019-10-23 Tom Tromey <tom@tromey.com>
1285
1286 * configure: Rebuild.
1287 * configure.ac: Don't check for sigprocmask.
1288 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1289
1290 2019-10-23 Tom Tromey <tom@tromey.com>
1291
1292 * configure: Rebuild.
1293 * acinclude.m4: Use m4_include, not sinclude.
1294
1295 2019-10-23 Tom de Vries <tdevries@suse.de>
1296
1297 PR breakpoints/24687
1298 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1299
1300 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1301
1302 * symtab.c (struct demangled_name_entry) <language>: Change from
1303 bitfield to regular variable.
1304
1305 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1306
1307 * symtab.c (struct demangled_name_entry): Add a constructor.
1308 (free_demangled_name_entry): New function to call the destructor
1309 for demangled_name_entry.
1310 (create_demangled_names_hash): Pass free_demangled_name_entry to
1311 htab_create_alloc.
1312 (symbol_set_names): Call placement new for demangled_name_entry.
1313 * utils.c: No longer include xxhash.h here, now that fast_hash
1314 is inlined in the header.
1315 * utils.h: Instead, include it here.
1316
1317 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1318
1319 * Makefile.in: Link with libxxhash.
1320 * config.in: Regenerate.
1321 * configure: Regenerate.
1322 * configure.ac: Search for libxxhash.
1323 * utils.c (fast_hash): Use xxhash if present.
1324
1325 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1326
1327 * utils.h (fast_hash): New function.
1328 * symtab.c (hash_demangled_name_entry): Call new function
1329 fast_hash.
1330
1331 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1332
1333 * symtab.c (struct demangled_name_entry): Change type of mangled
1334 to gdb::string_view. Also adds a constructor that takes the
1335 mangled name.
1336 (hash_demangled_name_entry): Update.
1337 (eq_demangled_name_entry): Update.
1338 (free_demangled_name_entry): New function to call the destructor
1339 now that this is not a POD anymore.
1340 (create_demangled_names_hash): Pass free_demangled_name_entry to
1341 htab_create_alloc.
1342 (symbol_set_names): Update.
1343
1344 2019-10-21 Ali Tamur <tamu@google.com>
1345
1346 * dwarf2read.c (dir_index): Change type.
1347 (file_name_index): Likewise.
1348 (line_header::include_dir_at): Change comment and implementation on
1349 whether it is DWARF 5.
1350 (line_header::is_valid_file_index): New function.
1351 (line_header::file_name_at): Change comment and implementation on
1352 whether it is DWARF 5.
1353 (line_header::file_names): Change to private field renamed as
1354 m_file_names and introduce a new accessor method.
1355 (line_header::file_names_size): New method.
1356 (line_header::include_dirs): Change to private field and rename as
1357 m_include_dirs.
1358 (dw2_get_file_names_reader): Define local var at a smaller scope and
1359 reflect API change.
1360 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1361 (process_structure_scope): Likewise.
1362 (line_header::add_include_dir): Change message and reflect renaming.
1363 (line_header::add_file_name): Likewise.
1364 (read_formatted_entries): Handle DW_FORM_data16.
1365 (dwarf_decode_line_header): Fix line header length calculation.
1366 (psymtab_include_file_name): Change comment and API.
1367 (lnp_state_machine::m_file): Update comment and reflect type change.
1368 (lnp_state_machine::record_line): Reflect type change.
1369 (dwarf_decode_lines): Reflect API change.
1370 (file_file_name): Likewise.
1371 (file_full_name): Likewise.
1372
1373 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1374
1375 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1376
1377 2019-10-21 Tom Tromey <tom@tromey.com>
1378
1379 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1380
1381 2019-10-21 Tom Tromey <tom@tromey.com>
1382
1383 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1384 NM_H. Use AC_CONFIG_LINKS.
1385 * configure: Rebuild.
1386 * Makefile.in (NM_H): New variable.
1387 (generated_files): Add NM_H. Remove gcore.
1388 (nm.h, stamp-nmh): New targets.
1389
1390 2019-10-20 Tom Tromey <tom@tromey.com>
1391
1392 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1393 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1394 obsolete comment.
1395 (put_objfile_before): Now static.
1396
1397 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1398
1399 * gdbsupport/common-utils.h (startswith): Change return type to
1400 bool.
1401
1402 2019-10-19 Christian Biesinger <cbiesinger@google.com>
1403
1404 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1405 * breakpoint.c (bp_locations_compare): Rename to...
1406 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1407 (update_global_location_list): Use std::sort instead of qsort.
1408 * buildsym.c (compare_line_numbers): Rename to...
1409 (lte_is_less_than): ...this, and change to std::sort semantics.
1410 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1411 instead of qsort.
1412 * disasm.c (compare_lines): Rename to...
1413 (line_is_less_than): ...this, and change to std::sort semantics.
1414 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1415 of qsort.
1416 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1417 (fde_is_less_than): ...this, and change to std::sort semantics.
1418 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1419 * mdebugread.c (compare_blocks):
1420 (block_is_less_than): ...this, and change to std::sort semantics.
1421 (sort_blocks): Call std::sort instead of qsort.
1422 * objfiles.c (qsort_cmp): Rename to...
1423 (sort_cmp): ...this, and change to std::sort semantics.
1424 (update_section_map): Call std::sort instead of qsort.
1425 * remote.c (compare_pnums): Remove.
1426 (map_regcache_remote_table): Call std::sort instead of qsort.
1427 * utils.c (compare_positive_ints): Remove.
1428 * utils.h (compare_positive_ints): Remove.
1429 * xcoffread.c (compare_lte): Remove.
1430 (arrange_linetable): Call std::sort instead of qsort.
1431
1432 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1433
1434 * symfile.c (init_entry_point_info): Fix typo.
1435 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1436
1437 2019-10-18 Tom de Vries <tdevries@suse.de>
1438
1439 * aarch64-tdep.c: Fix typos in comments.
1440 * ada-lang.c: Same.
1441 * ada-tasks.c: Same.
1442 * alpha-tdep.c: Same.
1443 * alpha-tdep.h: Same.
1444 * amd64-nat.c: Same.
1445 * amd64-windows-tdep.c: Same.
1446 * arc-tdep.c: Same.
1447 * arc-tdep.h: Same.
1448 * arch-utils.c: Same.
1449 * arm-nbsd-tdep.c: Same.
1450 * arm-tdep.c: Same.
1451 * ax-gdb.c: Same.
1452 * blockframe.c: Same.
1453 * btrace.c: Same.
1454 * c-varobj.c: Same.
1455 * coff-pe-read.c: Same.
1456 * coffread.c: Same.
1457 * cris-tdep.c: Same.
1458 * darwin-nat.c: Same.
1459 * dbxread.c: Same.
1460 * dcache.c: Same.
1461 * disasm.c: Same.
1462 * dtrace-probe.c: Same.
1463 * dwarf-index-write.c: Same.
1464 * dwarf2-frame-tailcall.c: Same.
1465 * dwarf2-frame.c: Same.
1466 * dwarf2read.c: Same.
1467 * eval.c: Same.
1468 * exceptions.c: Same.
1469 * fbsd-tdep.c: Same.
1470 * findvar.c: Same.
1471 * frame.c: Same.
1472 * frv-tdep.c: Same.
1473 * gnu-v3-abi.c: Same.
1474 * go32-nat.c: Same.
1475 * h8300-tdep.c: Same.
1476 * hppa-tdep.c: Same.
1477 * i386-linux-tdep.c: Same.
1478 * i386-tdep.c: Same.
1479 * ia64-libunwind-tdep.c: Same.
1480 * ia64-tdep.c: Same.
1481 * infcmd.c: Same.
1482 * infrun.c: Same.
1483 * linespec.c: Same.
1484 * linux-nat.c: Same.
1485 * linux-thread-db.c: Same.
1486 * machoread.c: Same.
1487 * mdebugread.c: Same.
1488 * mep-tdep.c: Same.
1489 * mn10300-tdep.c: Same.
1490 * namespace.c: Same.
1491 * objfiles.c: Same.
1492 * opencl-lang.c: Same.
1493 * or1k-tdep.c: Same.
1494 * osabi.c: Same.
1495 * ppc-linux-nat.c: Same.
1496 * ppc-linux-tdep.c: Same.
1497 * ppc-sysv-tdep.c: Same.
1498 * printcmd.c: Same.
1499 * procfs.c: Same.
1500 * record-btrace.c: Same.
1501 * record-full.c: Same.
1502 * remote-fileio.c: Same.
1503 * remote.c: Same.
1504 * rs6000-tdep.c: Same.
1505 * s12z-tdep.c: Same.
1506 * score-tdep.c: Same.
1507 * ser-base.c: Same.
1508 * ser-go32.c: Same.
1509 * skip.c: Same.
1510 * sol-thread.c: Same.
1511 * solib-svr4.c: Same.
1512 * solib.c: Same.
1513 * source.c: Same.
1514 * sparc-nat.c: Same.
1515 * sparc-sol2-tdep.c: Same.
1516 * sparc-tdep.c: Same.
1517 * sparc64-tdep.c: Same.
1518 * stabsread.c: Same.
1519 * stack.c: Same.
1520 * symfile.c: Same.
1521 * symtab.c: Same.
1522 * target-descriptions.c: Same.
1523 * target-float.c: Same.
1524 * thread.c: Same.
1525 * utils.c: Same.
1526 * valops.c: Same.
1527 * valprint.c: Same.
1528 * value.c: Same.
1529 * varobj.c: Same.
1530 * windows-nat.c: Same.
1531 * xcoffread.c: Same.
1532 * xstormy16-tdep.c: Same.
1533 * xtensa-tdep.c: Same.
1534
1535 2019-10-17 Tom Tromey <tromey@adacore.com>
1536
1537 * configure: Rebuild.
1538 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1539 in AC_CONFIG_FILES invocation.
1540 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1541 new-style config.status invocation.
1542
1543 2019-10-17 Tom de Vries <tdevries@suse.de>
1544
1545 * arm-nbsd-nat.c: Fix typos in comments.
1546 * arm-tdep.c: Same.
1547 * darwin-nat-info.c: Same.
1548 * dwarf2read.c: Same.
1549 * elfread.c: Same.
1550 * event-top.c: Same.
1551 * findvar.c: Same.
1552 * gdbtypes.c: Same.
1553 * hppa-tdep.c: Same.
1554 * i386-tdep.c: Same.
1555 * jit.c: Same.
1556 * main.c: Same.
1557 * mdebugread.c: Same.
1558 * moxie-tdep.c: Same.
1559 * nto-procfs.c: Same.
1560 * osabi.c: Same.
1561 * ppc-linux-tdep.c: Same.
1562 * remote.c: Same.
1563 * riscv-tdep.c: Same.
1564 * s390-tdep.c: Same.
1565 * sh-tdep.c: Same.
1566 * sparc-linux-tdep.c: Same.
1567 * sparc-nat.c: Same.
1568 * stack.c: Same.
1569 * target-descriptions.c: Same.
1570 * top.c: Same.
1571 * varobj.c: Same.
1572
1573 2019-10-16 Tom Tromey <tom@tromey.com>
1574
1575 * objfiles.h (struct objfile) <original_name>: Now const.
1576
1577 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1578
1579 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1580 pass on to sigsetjmp's second argument.
1581 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1582
1583 2019-10-16 Keith Seitz <keiths@redhat.com>
1584
1585 PR gdb/23567
1586 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1587 sections whose size is greater than the file size.
1588
1589 2019-10-16 Jim Wilson <jimw@sifive.com>
1590
1591 * riscv-tdep.c (riscv_gcc_target_options): New.
1592 (riscv_gnu_triplet_regexp): New.
1593 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1594 set_gdbarch_gnu_triplet_regexp.
1595
1596 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1597
1598 * Makefile.in: Add xml-builtin.h.
1599 * features/feature_to_c.sh: Add an include for xml-builtin.h
1600 to ensure that the compiler checks that the types match.
1601 * xml-builtin.h: New file.
1602 * xml-support.c (fetch_xml_builtin): Add missing const.
1603 * xml-support.h: Remove declaration of xml_builtins.
1604
1605 2019-10-16 Tom de Vries <tdevries@suse.de>
1606
1607 PR tdep/25096
1608 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1609 (amd64_classify_aggregate): ... here.
1610 (amd64_classify_aggregate_field): Handled fiels of nested structs
1611 recursively.
1612
1613 2019-10-16 Tom de Vries <tdevries@suse.de>
1614
1615 PR tdep/24104
1616 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1617 that handles 'theclass'.
1618
1619 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1620
1621 * linespec.c (decode_digits_ordinary): Update comment.
1622 * make-target-delegates: No longer need to handle VEC case.
1623 * memrange.c (normalize_mem_ranges): Update comment.
1624 * namespace.c (add_using_directive): Update comment.
1625 * objc-lang.c (uniquify_strings): Update comment.
1626 * ppc-linux-nat.c (struct thread_points): Update comment.
1627 * probe.h (find_probes_in_objfile): Update comment.
1628 * target.h (enum flash_preserve_mode): Update comment.
1629 * varobj.c (varobj_restrict_range): Update comment.
1630 * varobj.h (varobj_list_children): Update comment.
1631
1632 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1633
1634 * Makefile.in: Remove references to vec.h and vec.c.
1635 * aarch64-tdep.c: No longer include vec.h.
1636 * ada-lang.c: Likewise.
1637 * ada-lang.h: Likewise.
1638 * arm-tdep.c: Likewise.
1639 * ax.h: Likewise.
1640 * breakpoint.h: Likewise.
1641 * charset.c: Likewise.
1642 * cp-support.h: Likewise.
1643 * dtrace-probe.c: Likewise.
1644 * dwarf2read.c: Likewise.
1645 * extension.h: Likewise.
1646 * gdb_bfd.c: Likewise.
1647 * gdbsupport/gdb_vecs.h: Likewise.
1648 * gdbsupport/vec.c: Remove.
1649 * gdbsupport/vec.h: Remove.
1650 * gdbthread.h: Likewise.
1651 * guile/scm-type.c: Likewise.
1652 * inline-frame.c: Likewise.
1653 * machoread.c: Likewise.
1654 * memattr.c: Likewise.
1655 * memrange.h: Likewise.
1656 * namespace.h: Likewise.
1657 * nat/linux-btrace.h: Likewise.
1658 * osdata.c: Likewise.
1659 * parser-defs.h: Likewise.
1660 * progspace.h: Likewise.
1661 * python/py-type.c: Likewise.
1662 * record-btrace.c: Likewise.
1663 * rust-exp.y: Likewise.
1664 * solib-target.c: Likewise.
1665 * stap-probe.c: Likewise.
1666 * target-descriptions.c: Likewise.
1667 * target-memory.c: Likewise.
1668 * target.h: Likewise.
1669 * varobj.c: Likewise.
1670 * varobj.h: Likewise.
1671 * xml-support.h: Likewise.
1672
1673 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1674
1675 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1676 Update for new std::vector based implementation.
1677 (process_psymtab_comp_unit_reader): Likewise.
1678 (scan_partial_symbols): Likewise.
1679 (recursively_compute_inclusions): Likewise.
1680 (compute_compunit_symtab_includes): Likewise.
1681 (process_imported_unit_die): Likewise.
1682 (queue_and_load_dwo_tu): Likewise.
1683 (follow_die_sig_1): Likewise.
1684 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1685 (typedef dwarf2_per_cu_ptr): Remove.
1686 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1687 function.
1688 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1689 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1690 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1691 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1692 std::vector.
1693
1694 2019-10-15 Tom Tromey <tromey@adacore.com>
1695
1696 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1697 TID.
1698
1699 2019-10-15 Tom Tromey <tromey@adacore.com>
1700
1701 * windows-nat.c (windows_nat_target::fetch_registers)
1702 (windows_nat_target::store_registers): Rename "pid" to "tid".
1703
1704 2019-10-15 Tom Tromey <tromey@adacore.com>
1705
1706 * gdbarch.h, gdbarch.c: Rebuild.
1707 * gdbarch.sh (gcc_target_options): Change return type to
1708 std::string.
1709 * compile/compile.c (get_args): Update.
1710 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1711 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1712 std::string.
1713 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1714 std::string.
1715 * arch-utils.c (default_gcc_target_options): Return std::string.
1716 * arch-utils.h (default_gcc_target_options): Return std::string.
1717 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1718
1719 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1720
1721 * breakpoint.c (breakpoint_chain): Make static.
1722 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1723 of accessing breakpoint_chain.
1724
1725 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1726
1727 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1728 to a gdb::function_view and return value to bool.
1729 * breakpoint.h (iterate_over_breakpoints): Likewise.
1730 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1731 (pop_dummy_frame): Update.
1732 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1733 (gdbscm_breakpoints): Update.
1734 * python/py-breakpoint.c (build_bp_list): Update.
1735 (gdbpy_breakpoints): Update.
1736 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1737 Update.
1738 (bpfinishpy_handle_stop): Update.
1739 (bpfinishpy_handle_exit): Update.
1740 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1741 (svr4_update_solib_event_breakpoints): Update.
1742
1743 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1744
1745 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1746 when unwrapping single-field structs.
1747
1748 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1749
1750 * dwarf2read.c: Remove includes.
1751
1752 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1753
1754 * ui-out.c (ui_out::call_do_message): Silence
1755 -Wformat-nonliteral warning.
1756
1757 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1758
1759 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1760 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1761 include: readline/tilde.h.
1762
1763 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1764
1765 * remote.c (remote_target::get_trace_status): Remove declaration of
1766 trace_regblock_size.
1767
1768 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1769
1770 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1771 (show_user): Remove declaration of cmdlist.
1772 * cli/cli-cmds.h (max_user_call_depth): Declare.
1773 * cli/cli-script.c (execute_user_command): Remove declaration
1774 of max_user_call_depth.
1775
1776 2019-10-11 Jim Wilson <jimw@sifive.com>
1777
1778 * gdbsupport/print-utils.h (pulongest): Fix comment.
1779 (plongest): Likewise.
1780 (phex): Add missing comment, mention leading zeros.
1781 (phex_nz): Add mention of no leading zeros to comment.
1782
1783 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1784 plongest instead of unsigned long long cast.
1785
1786 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1787
1788 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1789 for external_editor_command and gdbtk_test.
1790
1791 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1792
1793 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1794 * varobj.c (varobjdebug): Move comment to...
1795 * varobj.h (varobjdebug): ...here, and declare.
1796
1797 2019-10-09 Tom Tromey <tom@tromey.com>
1798
1799 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1800 erase_data_content.
1801
1802 2019-10-09 Tom Tromey <tom@tromey.com>
1803
1804 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1805 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1806 * tui/tui-command.c (tui_cmd_window::resize)
1807 (tui_refresh_cmd_win): Update.
1808 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1809 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1810 * tui/tui-data.c (~tui_gen_win_info): Remove.
1811 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1812 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1813 (tui_redisplay_readline, tui_mld_flush)
1814 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1815 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1816 (tui_data_window::erase_data_content)
1817 (tui_data_item_window::rerender)
1818 (tui_data_item_window::refresh_window): Update.
1819 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1820 (box_win, tui_gen_win_info::make_window)
1821 (tui_gen_win_info::make_visible): Update.
1822 (tui_delete_win): Remove.
1823 * tui/tui-winsource.c
1824 (tui_source_window_base::do_erase_source_content): Update.
1825 (tui_show_source_line, tui_source_window_base::update_tab_width)
1826 (tui_source_window_base::update_exec_info): Update.
1827 * tui/tui-data.h (struct curses_deleter): New.
1828 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1829 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1830
1831 2019-10-09 Tom Tromey <tom@tromey.com>
1832
1833 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1834
1835 2019-10-09 Tom Tromey <tom@tromey.com>
1836
1837 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
1838 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
1839
1840 2019-10-09 Tom Tromey <tom@tromey.com>
1841
1842 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
1843 window height directly.
1844 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
1845 declare.
1846 * tui/tui-layout.c (tui_default_win_height): Remove.
1847 (tui_default_win_viewport_height): Remove.
1848
1849 2019-10-09 Tom Tromey <tom@tromey.com>
1850
1851 * tui/tui.h: Remove comments.
1852
1853 2019-10-09 Tom de Vries <tdevries@suse.de>
1854
1855 * python/lib/gdb/printer/bound_registers.py: Use
1856 '^builtin_type_bound128' as regexp argument for
1857 add_builtin_pretty_printer.
1858
1859 2019-10-09 Christian Biesinger <cbiesinger@google.com>
1860
1861 * guile/guile.c (guile_extension_script_ops): Remove forward
1862 declaration and mark as static.
1863 (guile_script_ops): Likewise.
1864 (extension_language_guile): Move further down in the file so
1865 it can reference the definitions for guile_{extension_,}script_ops.
1866
1867 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
1868
1869 * s390-tdep.c (390_process_record): Handle new arch13 instructions
1870 except SORTL, DFLTCC, and KDSA.
1871
1872 2019-10-08 Tom Tromey <tromey@adacore.com>
1873
1874 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
1875 (struct safe_symbol_file_add_args): Remove.
1876
1877 2019-10-08 Tom Tromey <tromey@adacore.com>
1878
1879 * windows-nat.c: Don't include buildsym-legacy.h.
1880
1881 2019-10-08 Tom Tromey <tromey@adacore.com>
1882
1883 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
1884
1885 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1886
1887 * gdbtypes.c (overload_debug): Move comment to header.
1888 * gdbtypes.h (overload_debug): Declare.
1889 * valops.c: Remove declaration of overload_debug, instead
1890 include gdbtypes.h.
1891
1892 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1893
1894 * language.c (show_language_command): Pass lang_frame_mismatch_warn
1895 through _().
1896 (lang_frame_mismatch_warn): Make const, mark with N_(), and
1897 move comment...
1898 * language.h (lang_frame_mismatch_warn): ... here. Also add
1899 declaration.
1900 * top.c (lang_frame_mismatch_warn): Remove declaration.
1901 (check_frame_language_change): Pass lang_frame_mismatch_warn
1902 through _().
1903
1904 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1905
1906 * c-lang.h (vtbl_ptr_name): Declare.
1907 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
1908 it from the header.
1909 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
1910
1911 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1912
1913 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
1914 gdb_static_assert.
1915
1916 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1917
1918 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1919 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
1920 * ctfread.c: New file.
1921 * ctfread.h: New file.
1922 * elfread.c: Include ctfread.h.
1923 (struct elfinfo text_p): New member ctfsect.
1924 (elf_locate_sections): Mark CTF section.
1925 (elf_symfile_read): Call elfctf_build_psymtabs.
1926 * Makefile.in (LIBCTF): Add.
1927 (CLIBS): Use it.
1928 (CDEPS): Likewise.
1929 (DIST): Add ctfread.c.
1930
1931 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1932
1933 * ctfread.c (struct nextfield): Renamed to ...
1934 (struct ctf_nextfield): ... this.
1935 (struct field_info): Renamed to ...
1936 (strut ctf_field_info): ... this.
1937 (attach_fields_to_type): Update for renamed structures.
1938 (ctf_add_member_cb): Likewise.
1939 (ctf_add_enum_member_cb): Likewise.
1940 (process_struct_members): Likewise.
1941 (process_enum_type): Likewise.
1942
1943 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1944
1945 * tracectf.h: Rename, was ctf.h.
1946 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
1947 * tracefile.c: Likewise.
1948 * tracepoint.c: Remove unused include ctf.h.
1949 * mi/mi-main.c: Likewise.
1950 * Makefile.in Replace ctf.c with tracectf.c.
1951
1952 2019-10-06 Joel Brobecker <brobecker@adacore.com>
1953
1954 * version.in: Change version number to "9.0.50.DATE-git".
1955
1956 2019-10-03 Tom Tromey <tom@tromey.com>
1957
1958 PR rust/24976:
1959 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
1960
1961 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1962
1963 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
1964 cp_search_name_hash.
1965 * NEWS: Add entry about nested function support.
1966
1967 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
1968 Andrew Burgess <andrew.burgess@embecosm.com>
1969
1970 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
1971 for nested static variables when searchin VAR_DOMAIN.
1972 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
1973 global scope, update comment.
1974 (add_partial_subprogram): Call add_partial_subprogram recursively
1975 for nested subroutines when processinng Fortran.
1976 (load_partial_dies): Process the child entities of a subprogram
1977 when processing Fortran.
1978 (partial_die_parent_scope): Handle building scope
1979 for Fortran nested functions.
1980 (process_die): Record that nested functions have a scope.
1981 (new_symbol): Always record Fortran subprograms on the global
1982 symbol list.
1983 (determine_prefix): How to build the prefix for Fortran
1984 subprograms.
1985
1986 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1987
1988 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
1989 have just sent the thread a SIGSTOP and are waiting for it to
1990 arrive.
1991
1992 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1993
1994 * btrace.c (btrace_add_pc): Remove whitespace before the template
1995 parameter in 'std::vector <...>'.
1996 (parse_xml_btrace_block): Likewise.
1997 (btrace_maint_decode_pt): Likewise.
1998 (btrace_maint_update_packets): Likewise.
1999 (btrace_maint_print_packets): Likewise.
2000 * btrace.h (struct btrace_maint_info): Likewise.
2001 * dwarf2read.c (struct type_unit_group): Likewise.
2002 (build_type_psymtabs_reader): Likewise.
2003 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2004 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2005 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2006
2007 2019-10-03 Tom de Vries <tdevries@suse.de>
2008
2009 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2010 the first line of the help text for set/show style metadata.
2011
2012 2019-10-02 Tom Tromey <tromey@adacore.com>
2013
2014 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2015 * gdbsupport/common-inferior.c: New file.
2016 * infcmd.c (startup_with_shell): Don't define.
2017 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2018 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2019 * inferior.h (startup_with_shell): Don't declare.
2020
2021 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2022
2023 * gdbsupport/gdb_assert.h: Include errors.h.
2024 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2025
2026 2019-10-02 Tom Tromey <tromey@adacore.com>
2027
2028 * NEWS: Add $_ada_exception entry.
2029 * ada-lang.c (struct ada_catchpoint): Add constructor.
2030 <m_kind>: New member.
2031 (allocate_location_exception, re_set_exception): Remove
2032 "ex" parameter.
2033 (should_stop_exception): Compute $_ada_exception.
2034 (check_status_exception, print_it_exception)
2035 (print_one_exception, print_mention_exception): Remove
2036 "ex" parameter.
2037 (allocate_location_catch_exception, re_set_catch_exception)
2038 (check_status_exception, print_it_catch_exception)
2039 (print_one_catch_exception, print_mention_catch_exception)
2040 (print_recreate_catch_exception)
2041 (allocate_location_catch_exception_unhandled)
2042 (re_set_catch_exception_unhandled)
2043 (check_status_exception, print_it_catch_exception_unhandled)
2044 (print_one_catch_exception_unhandled)
2045 (print_mention_catch_exception_unhandled)
2046 (print_recreate_catch_exception_unhandled)
2047 (allocate_location_catch_assert, re_set_catch_assert)
2048 (check_status_assert, print_it_catch_assert)
2049 (print_one_catch_assert, print_mention_catch_assert)
2050 (print_recreate_catch_assert)
2051 (allocate_location_catch_handlers, re_set_catch_handlers)
2052 (check_status_handlers, print_it_catch_handlers)
2053 (print_one_catch_handlers, print_mention_catch_handlers)
2054 (print_recreate_catch_handlers): Remove.
2055 (create_ada_exception_catchpoint): Update.
2056 (initialize_ada_catchpoint_ops): Update.
2057
2058 2019-10-02 Tom Tromey <tromey@adacore.com>
2059
2060 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2061 (create_excep_cond_exprs): Simplify exception string computation.
2062 (ada_exception_catchpoint_cond_string): Likewise.
2063
2064 2019-10-02 Tom Tromey <tromey@adacore.com>
2065
2066 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2067 * ada-lang.c (lesseq_defined_than): Handle
2068 LOC_STATIC.
2069 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2070 parameter.
2071 (dwarf2_has_info): Likewise.
2072 (new_symbol): Set maybe_copied on symbol when
2073 appropriate.
2074 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2075 parameter.
2076 <can_copy>: New member.
2077 * elfread.c (record_minimal_symbol): Set maybe_copied
2078 on symbol when appropriate.
2079 (elf_symfile_read): Update call to dwarf2_has_info.
2080 * minsyms.c (lookup_minimal_symbol_linkage): New
2081 function.
2082 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2083 * symtab.c (get_symbol_address, get_msymbol_address):
2084 New functions.
2085 * symtab.h (get_symbol_address, get_msymbol_address):
2086 Declare.
2087 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2088 maybe_copied.
2089 (struct symbol, struct minimal_symbol) <maybe_copied>:
2090 New member.
2091
2092 2019-10-02 Tom Tromey <tromey@adacore.com>
2093
2094 * source.c (struct current_source_location): New.
2095 (current_source_key): New global.
2096 (current_source_symtab, current_source_line)
2097 (current_source_pspace): Remove.
2098 (get_source_location): New function.
2099 (get_current_source_symtab_and_line)
2100 (set_default_source_symtab_and_line)
2101 (set_current_source_symtab_and_line)
2102 (clear_current_source_symtab_and_line, select_source_symtab)
2103 (info_source_command, print_source_lines_base)
2104 (info_line_command, search_command_helper, _initialize_source):
2105 Update.
2106
2107 2019-10-02 Tom Tromey <tromey@adacore.com>
2108
2109 * source.c (select_source_symtab): Don't call
2110 decode_line_with_current_source.
2111
2112 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2113
2114 * symtab.c (lookup_global_symbol): Search global block.
2115
2116 2019-10-02 Tom Tromey <tromey@adacore.com>
2117
2118 * coffread.c (process_coff_symbol): Update.
2119 * dwarf2read.c (var_decode_location, new_symbol): Update.
2120 * mdebugread.c (parse_symbol): Update.
2121 * objfiles.c (relocate_one_symbol): Update.
2122 * stabsread.c (define_symbol, fix_common_block)
2123 (scan_file_globals): Update.
2124 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2125 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2126 * xcoffread.c (process_xcoff_symbol): Update.
2127
2128 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2129
2130 * MAINTAINERS: Update my email address.
2131
2132 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2133
2134 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2135 std::vector.
2136 (build_type_psymtabs_reader): Update for std::vector.
2137 (build_type_psymtab_dependencies): Likewise.
2138 * dwarf2read.h: Remove use of DEF_VEC_P.
2139 (typedef sig_type_ptr): Delete.
2140
2141 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2142
2143 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2144 to std::vector.
2145 (btrace_maint_decode_pt): Likewise, and move allocation of the
2146 vector outside of the loop.
2147 (btrace_maint_update_packets): Update to handle change from VEC to
2148 std::vector.
2149 (btrace_maint_print_packets): Likewise.
2150 (maint_info_btrace_cmd): Likewise.
2151 * btrace.h: Remove use of DEF_VEC_O.
2152 (typedef btrace_pt_packet_s): Delete.
2153 (struct btrace_maint_info) <packets>: Change fromm VEC to
2154 std::vector.
2155 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2156
2157 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2158
2159 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2160 make accesses into the vector constant references.
2161 (btrace_add_pc): Update for std::vector.
2162 (btrace_stitch_bts): Likewise.
2163 (parse_xml_btrace_block): Likewise.
2164 (btrace_maint_update_packets): Likewise.
2165 (btrace_maint_print_packets): Likewise.
2166 (maint_info_btrace_cmd): Likewise.
2167 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2168 std::vector.
2169 (btrace_data::empty): Likewise.
2170 (btrace_data_append): Likewise.
2171 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2172 (typedef btrace_block_s): Delete.
2173 (struct btrace_block): Add constructor.
2174 (struct btrace_data_bts) <blocks>: Change to std::vector.
2175 * nat/linux-btrace.c (perf_event_read_bts): Update for
2176 std::vector.
2177 (linux_read_bts): Likewise.
2178
2179 2019-10-01 Tom Tromey <tom@tromey.com>
2180
2181 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2182
2183 2019-10-01 Tom Tromey <tom@tromey.com>
2184
2185 * stack.c (print_frame, info_frame_command_core): Use
2186 styled_string.
2187 * linux-thread-db.c (try_thread_db_load_1)
2188 (try_thread_db_load_from_pdir_1): Use styled_string.
2189 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2190 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2191 (maybe_print_unsupported_script_warning)
2192 (maybe_print_script_not_found_warning): Use styled_string.
2193 * ada-lang.c (user_select_syms): Use styled_string.
2194
2195 2019-10-01 Tom Tromey <tom@tromey.com>
2196
2197 * p-lang.c (pascal_printstr): Use metadata style.
2198 * value.c (show_convenience): Use metadata style.
2199 * valprint.c (valprint_check_validity, val_print_optimized_out)
2200 (val_print_not_saved, val_print_unavailable)
2201 (val_print_invalid_address, generic_val_print, val_print)
2202 (value_check_printable, val_print_array_elements): Use metadata
2203 style.
2204 * ui-out.h (class ui_out) <field_fmt>: New overload.
2205 <do_field_fmt>: Add style parameter.
2206 * ui-out.c (ui_out::field_fmt): New overload.
2207 * typeprint.c (type_print_unknown_return_type)
2208 (val_print_not_allocated, val_print_not_associated): Use metadata
2209 style.
2210 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2211 parameter.
2212 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2213 * tracepoint.c (tvariables_info_1): Use metadata style.
2214 * stack.c (print_frame_arg, print_frame_info, print_frame)
2215 (info_frame_command_core): Use metadata style.
2216 * skip.c (info_skip_command): Use metadata style.
2217 * rust-lang.c (rust_print_enum): Use metadata style.
2218 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2219 metadata style.
2220 * python/py-framefilter.c (py_print_single_arg): Use metadata
2221 style.
2222 * printcmd.c (do_one_display, print_variable_and_value): Use
2223 metadata style.
2224 * p-valprint.c (pascal_val_print)
2225 (pascal_object_print_value_fields): Use metadata style.
2226 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2227 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2228 parameter.
2229 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2230 * m2-valprint.c (m2_print_long_set): Use metadata style.
2231 * m2-typeprint.c (m2_print_type): Use metadata style.
2232 * infcmd.c (print_return_value_1): Use metadata style.
2233 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2234 * f-valprint.c (info_common_command_for_block): Use metadata
2235 style.
2236 * f-typeprint.c (f_type_print_base): Use metadata style.
2237 * expprint.c (print_subexp_standard): Use metadata style.
2238 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2239 * cli/cli-style.h (class cli_style_option): Add constructor.
2240 (metadata_style): Declare.
2241 * cli/cli-style.c (metadata_style): New global.
2242 (_initialize_cli_style): Register metadata style.
2243 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2244 parameter.
2245 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2246 * c-typeprint.c (c_type_print_base_struct_union)
2247 (c_type_print_base_1): Use metadata style.
2248 * breakpoint.c (watchpoint_value_print)
2249 (print_one_breakpoint_location): Use metadata style.
2250 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2251 style.
2252 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2253 style.
2254 * ada-valprint.c (val_print_packed_array_elements, printstr)
2255 (print_field_values, ada_val_print_ref, ada_val_print): Use
2256 metadata style.
2257 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2258 style.
2259 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2260 style.
2261 * ada-lang.c (user_select_syms): Use metadata style.
2262
2263 2019-10-01 Tom Tromey <tom@tromey.com>
2264
2265 * cli/cli-cmds.c (pwd_command): Style output.
2266
2267 2019-10-01 Pedro Alves <palves@redhat.com>
2268 Tom Tromey <tom@tromey.com>
2269
2270 * symtab.c (print_symbol_info): Use %ps.
2271 (print_msymbol_info): Use %ps.
2272 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2273 * printcmd.c (print_variable_and_value): Use %ps.
2274 * macrocmd.c (show_pp_source_pos): Use %ps.
2275 * infrun.c (print_exited_reason): Use ui_out::message.
2276 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2277 (describe_other_breakpoints): Use ui_out::message and new
2278 formats.
2279 (say_where): Use new formats.
2280 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2281 and new formats.
2282
2283 2019-10-01 Pedro Alves <palves@redhat.com>
2284 Tom Tromey <tom@tromey.com>
2285
2286 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2287 (test_gdb_formats): New function.
2288 (run_tests): Call it.
2289 (test_format_specifier): Update.
2290 * utils.h (fputs_filtered): Update comment.
2291 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2292 (fputs_styled_unfiltered): Declare.
2293 * utils.c (fputs_styled_unfiltered): New function.
2294 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2295 (vfprintf_filtered): Update.
2296 (vfprintf_unfiltered, vprintf_filtered): Update.
2297 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2298 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2299 disallow_ui_out_field>: New constants.
2300 (enum class field_kind): New.
2301 (struct base_field_s, struct signed_field_s): New.
2302 (signed_field): New function.
2303 (struct string_field_s): New.
2304 (string_field): New function.
2305 (struct styled_string_s): New.
2306 (styled_string): New function.
2307 (class ui_out) <message>: Add comment.
2308 <vmessage, call_do_message>: New methods.
2309 <do_message>: Add style parameter.
2310 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2311 methods.
2312 (ui_out::message): Rewrite.
2313 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2314 parameter.
2315 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2316 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2317 gdb_extensions parameter.
2318 (class format_piece): Add parameter to constructor.
2319 (n_int_args): New field.
2320 * gdbsupport/format.c (format_pieces::format_pieces): Add
2321 gdb_extensions parameter. Handle '*'.
2322 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2323 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2324 vfprintf_styled_no_gdbfmt.
2325 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2326 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2327 unfiltered output.
2328 * ui-style.h (struct ui_file_style) <ptr>: New method.
2329
2330 2019-10-01 Tom Tromey <tom@tromey.com>
2331
2332 * unittests/format_pieces-selftests.c: Update. Add final format.
2333 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2334 empty literal pieces.
2335
2336 2019-10-01 Tom Tromey <tom@tromey.com>
2337
2338 * ui-out.h (enum class ui_out_style_kind): Remove.
2339 (class ui_out) <field_string, field_stsream, do_field_string>:
2340 Change type of "style".
2341 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2342 (ui_out::field_string): Update.
2343 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2344 of "style".
2345 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2346 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2347 * stack.c (print_frame_arg, print_frame_info, print_frame):
2348 Update.
2349 * source.c (print_source_lines_base): Update.
2350 * solib.c (info_sharedlibrary_command): Update.
2351 * skip.c (info_skip_command): Update.
2352 * record-btrace.c (btrace_call_history_src_line)
2353 (btrace_call_history): Update.
2354 * python/py-framefilter.c (py_print_frame): Update.
2355 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2356 "style".
2357 * mi/mi-out.c (mi_ui_out::do_table_header)
2358 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2359 (mi_ui_out::do_field_string): Update.
2360 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2361 Update.
2362 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2363 "style".
2364 * cli-out.c (cli_ui_out::do_table_header)
2365 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2366 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2367 (cli_ui_out::do_field_fmt): Update.
2368 * breakpoint.c (print_breakpoint_location): Update.
2369 (update_static_tracepoint): Update.
2370
2371 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2372
2373 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2374 conversion of gdb_datadir.
2375 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2376 remove not needed c_str ().
2377
2378 2019-09-30 Ali Tamur <tamur@google.com>
2379
2380 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2381 (dwarf2_string_attr): Likewise.
2382
2383 2019-09-30 Ali Tamur <tamur@google.com>
2384
2385 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2386 (process_full_type_unit): Likewise.
2387 (dump_die_shallow): Likewise.
2388 (cu_debug_loc_section): Likewise.
2389
2390 2019-09-28 Christian Biesinger <cbiesinger@google.com>
2391
2392 * minsyms.c (compare_minimal_symbols): Rename to...
2393 (minimal_symbol_is_less_than): ...this, and adjust to STL
2394 conventions (return bool, take arguments as references)
2395 (minimal_symbol_reader::install): Call std::sort instead
2396 of qsort.
2397
2398 2019-09-29 Christian Biesinger <cbiesinger@google.com>
2399
2400 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2401 hash and why.
2402 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2403 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2404
2405 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2406
2407 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2408 * psympriv.h (add_psymbol_to_list): Move comment here and update
2409 it.
2410
2411 2019-09-29 Tom de Vries <tdevries@suse.de>
2412
2413 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2414 Use $tmpdir/$(basename "$output_file").dwz instead of
2415 "${output_file}.dwz".
2416
2417 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2418
2419 PR gdb/25045
2420 * hppa-linux-nat.c: Include gdbarch.h.
2421
2422 2019-09-26 Christian Biesinger <cbiesinger@google.com>
2423
2424 * blockframe.c (find_pc_partial_function): Change return type to bool.
2425 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2426 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2427 (stub_gnu_ifunc_resolve_name): Likewise.
2428 * symtab.c (compare_filenames_for_search): Likewise.
2429 (compare_glob_filenames_for_search): Likewise.
2430 (matching_obj_sections): Likewise.
2431 (symbol_matches_domain): Likewise.
2432 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2433 (find_line_pc): Change return type to bool.
2434 (find_line_pc_range): Likewise.
2435 (producer_is_realview): Likewise.
2436 * symtab.h (symbol_matches_domain): Likewise.
2437 (find_pc_partial_function): Likewise.
2438 (find_pc_line_pc_range): Likewise.
2439 (in_gnu_ifunc_stub): Likewise.
2440 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2441 (find_line_pc): Likewise.
2442 (find_line_pc_range): Likewise.
2443 (matching_obj_sections): Likewise.
2444 (find_line_symtab): Change out parameter to bool.
2445 (producer_is_realview): Change return type to bool.
2446 (compare_filenames_for_search): Likewise.
2447 (compare_glob_filenames_for_search): Likewise.
2448
2449 2019-09-26 Tom Tromey <tom@tromey.com>
2450
2451 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2452 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2453 * gdb_usleep.h: Remove.
2454 * gdb_usleep.c: Remove.
2455 * utils.c: Don't include gdb_usleep.h.
2456
2457 2019-09-26 Tom Tromey <tromey@adacore.com>
2458
2459 * python/py-type.c (type_to_type_object): Call check_typedef
2460 for stub types.
2461
2462 2019-09-26 Tom Tromey <tom@tromey.com>
2463
2464 * utils.h (initialize_utils): Don't declare.
2465 * top.c (gdb_init): Don't call initialize_utils.
2466 * utils.c (initialize_utils): Remove. Move contents...
2467 (_initialize_utils): ... here.
2468
2469 2019-09-25 Tom Tromey <tom@tromey.com>
2470
2471 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2472 * utils.h (make_hex_string): Don't declare.
2473 * utils.c (make_hex_string): Remove.
2474
2475 2019-09-24 Tom de Vries <tdevries@suse.de>
2476
2477 PR gdb/23815
2478 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2479 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2480
2481 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2482
2483 * NEWS: Mention new simulator port for PRU.
2484
2485 2019-09-23 Christian Biesinger <cbiesinger@google.com>
2486
2487 * ada-exp.y (write_object_remaining): Update.
2488 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2489 and eliminate the static buffer.
2490 (ada_decode_symbol): Update.
2491 (ada_la_decode): Update.
2492 (ada_sniff_from_mangled_name): Update.
2493 (is_valid_name_for_wild_match): Update.
2494 (ada_lookup_name_info::matches): Update and simplify.
2495 (name_matches_regex): Update.
2496 (ada_add_global_exceptions): Update.
2497 * ada-lang.h (ada_decode): Update signature.
2498 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2499 * dwarf-index-write.c (debug_names::insert): Update.
2500
2501 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2502
2503 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2504 formatting.
2505
2506 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2507
2508 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2509 Change "nonzero" to "true" in documentation.
2510
2511 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2512
2513 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2514 (_initialize_darwin_solib): Don't set
2515 darwin_so_ops.lookup_lib_global_symbol.
2516 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2517 set_gdbarch_iterate_over_objfiles_in_search_order.
2518 (elf_lookup_lib_symbol): Rename to...
2519 (svr4_iterate_over_objfiles_in_search_order): this, and update
2520 to iterate semantics.
2521 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2522 * solib.c (solib_global_lookup): Remove.
2523 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2524 (solib_global_lookup): Remove.
2525 * symtab.c (lookup_global_or_static_symbol): Remove call to
2526 solib_global_lookup.
2527
2528 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2529
2530 * NEWS: Move entries about default MI version now being
2531 version 3, and about the GDB/MI fix for multi-location
2532 breakpoints to the "since GDB 8.3" section.
2533
2534 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2535
2536 GDB 8.3.1 released.
2537
2538 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2539
2540 * NEWS: Mention that Cell/B.E. debugging support was removed.
2541 * MAINTAINERS: Remove spu target.
2542
2543 * config/djgpp/fnchange.lst: Remove entries for removed files.
2544
2545 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2546 spu-multiarch.o, and spu-tdep.o.
2547 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2548 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2549 spu-multiarch.c, and spu-tdep.c.
2550 * spu-linux-nat.c: Remove file.
2551 * spu-multiarch.c: Remove file.
2552 * spu-tdep.c: Remove file.
2553 * spu-tdep.h: Remove file.
2554 * solib-spu.c: Remove file.
2555 * solib-spu.h: Remove file.
2556
2557 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2558 * configure.nat (spu-linux): Remove.
2559 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2560 solib-multiarch.o from gdb_target_obs.
2561 (spu*-*-*): Remove.
2562
2563 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2564 feature flag.
2565 (ppc_linux_no_features): Update.
2566 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2567 Cell/B.E. support.
2568 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2569 (tdesc_powerpc_cell64l): Likewise.
2570 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2571 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2572 Cell/B.E. support.
2573 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2574 Do not include "features/rs6000/powerpc-cell32l.c" or
2575 "features/rs6000/powerpc-cell64l.c".
2576 (ppc_linux_spu_section): Remove.
2577 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2578 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2579 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2580 (ppc_linux_spe_context_lookup): Remove.
2581 (ppc_linux_spe_context_inferior_created): Remove.
2582 (ppc_linux_spe_context_solib_loaded): Remove.
2583 (ppc_linux_spe_context_solib_unloaded): Remove.
2584 (ppc_linux_spe_context): Remove.
2585 (struct ppu2spu_cache): Remove.
2586 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2587 (struct ppu2spu_data): Remove.
2588 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2589 ppu2spu_unwind): Remove.
2590 (ppc_linux_init_abi): Remove Cell/B.E. support.
2591 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2592
2593 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2594 (rs6000/powerpc-cell64l-expedite): Likewise
2595 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2596 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2597 rs6000/powerpc-cell64l.xml.
2598 * features/rs6000/powerpc-cell32l.xml: Remove.
2599 * features/rs6000/powerpc-cell64l.xml: Likewise.
2600 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2601 * features/rs6000/powerpc-cell64l.c: Likewise.
2602 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2603 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2604 * regformats/reg-spu.dat: Remove.
2605
2606 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2607 * corelow.c (struct spuid_list): Remove.
2608 (add_to_spuid_list): Remove.
2609 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2610 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2611 (remote_protocol_features): Remove associated entries.
2612 (_initialize_remote): No longer initialize them.
2613 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2614 * linux-nat.c (SPUFS_MAGIC): Remove.
2615 (linux_proc_xfer_spu): Remove.
2616 (spu_enumerate_spu_ids): Remove.
2617 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2618 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2619 (linux_make_corefile_notes): No longer call it.
2620
2621 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2622 (cooked_write_test): Likewise.
2623
2624 2019-09-20 Tom Tromey <tom@tromey.com>
2625
2626 * NEWS: Mention case-sensitivity of TUI commands.
2627 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2628 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2629 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2630
2631 2019-09-20 Tom Tromey <tom@tromey.com>
2632
2633 * tui/tui-source.c (tui_source_window::set_contents): Use
2634 make_unique_xstrdup.
2635 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2636 make_unique_xstrdup.
2637
2638 2019-09-20 Tom Tromey <tom@tromey.com>
2639
2640 * tui/tui-data.c: Remove separator comments.
2641 * tui/tui-layout.c: Remove separator comments.
2642 * tui/tui-win.c: Remove separator comments.
2643 * tui/tui-wingeneral.c: Remove separator comments.
2644
2645 2019-09-20 Tom Tromey <tom@tromey.com>
2646
2647 * tui/tui.h (strcat_to_buf): Don't declare.
2648 * tui/tui.c (strcat_to_buf): Remove.
2649
2650 2019-09-20 Tom Tromey <tom@tromey.com>
2651
2652 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2653 from "fullname".
2654 * tui/tui-source.c (tui_source_window::set_contents)
2655 (tui_source_window::location_matches_p)
2656 (tui_source_window::maybe_update): Update.
2657
2658 2019-09-20 Tom Tromey <tom@tromey.com>
2659
2660 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2661 Update.
2662 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2663 prefix.
2664 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2665 (tui_data_window::line_from_reg_element_no)
2666 (tui_data_window::first_reg_element_no_inline)
2667 (tui_data_window::show_registers)
2668 (tui_data_window::show_register_group)
2669 (tui_data_window::display_registers_from)
2670 (tui_data_window::display_registers_from_line)
2671 (tui_data_window::first_data_item_displayed)
2672 (tui_data_window::delete_data_content_windows)
2673 (tui_data_window::erase_data_content)
2674 (tui_data_window::do_scroll_vertical)
2675 (tui_data_window::refresh_window)
2676 (tui_data_window::check_register_values): Update.
2677
2678 2019-09-20 Tom Tromey <tom@tromey.com>
2679
2680 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2681 (struct tui_locator_window) <full_name, proc_name>: Now
2682 std::string.
2683 * tui/tui-stack.c (tui_locator_window::make_status_line)
2684 (tui_locator_window::set_locator_fullname)
2685 (tui_locator_window::set_locator_info): Update.
2686 * tui/tui-source.c (tui_source_window::set_contents)
2687 (tui_source_window::showing_source_p): Update.
2688
2689 2019-09-20 Tom Tromey <tom@tromey.com>
2690
2691 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2692 Don't call tui_locator_win_info_ptr.
2693
2694 2019-09-20 Tom Tromey <tom@tromey.com>
2695
2696 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2697
2698 2019-09-20 Tom Tromey <tom@tromey.com>
2699
2700 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2701 height for locator.
2702 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2703 * tui/tui-layout.c (show_source_disasm_command, show_data)
2704 (show_source_or_disasm_and_command): Use 1 as height for locator.
2705
2706 2019-09-20 Tom Tromey <tom@tromey.com>
2707
2708 * tui/tui.c (tui_enable): Update.
2709 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2710 Update.
2711 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2712 Update.
2713 * tui/tui-data.c (win_resized): Now bool.
2714 (tui_win_resized): Return bool.
2715 (tui_set_win_resized_to): Accept a bool.
2716
2717 2019-09-20 Tom Tromey <tom@tromey.com>
2718
2719 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2720 Change type of "refresh_values_only".
2721 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2722 type of "refresh_values_only".
2723
2724 2019-09-20 Tom Tromey <tom@tromey.com>
2725
2726 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2727 std::string.
2728 (tui_disassemble): Add "pos" parameter.
2729 (tui_disasm_window::set_contents): Simplify.
2730
2731 2019-09-20 Tom Tromey <tom@tromey.com>
2732
2733 * tui/tui-winsource.h (struct tui_source_window_base)
2734 <show_source_content>: Now private.
2735 * tui/tui-winsource.c
2736 (tui_source_window_base::show_source_content): Don't handle empty
2737 content case.
2738
2739 2019-09-20 Tom Tromey <tom@tromey.com>
2740
2741 * tui/tui-layout.c (show_source_disasm_command)
2742 (show_source_or_disasm_and_command): Don't call
2743 show_source_content.
2744
2745 2019-09-20 Tom Tromey <tom@tromey.com>
2746
2747 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2748 Declare.
2749 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2750 from tui_make_status_line.
2751 (tui_locator_window::rerender): Update.
2752
2753 2019-09-20 Tom Tromey <tom@tromey.com>
2754
2755 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2756 (tui_locator_window::rerender): Update.
2757
2758 2019-09-20 Tom Tromey <tom@tromey.com>
2759
2760 * tui/tui-winsource.h (struct tui_source_window_base)
2761 <~tui_source_window_base>: Don't declare.
2762 <fullname>: Remove.
2763 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2764 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2765 member.
2766 * tui/tui-source.c (tui_source_window::set_contents): Update.
2767 (tui_source_window::location_matches_p)
2768 (tui_source_window::maybe_update): Update.
2769
2770 2019-09-20 Tom Tromey <tom@tromey.com>
2771
2772 * tui/tui-winsource.h (~tui_source_element): Remove.
2773 (tui_source_element): Update.
2774 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2775 * tui/tui-winsource.c (tui_show_source_line): Update.
2776 * tui/tui-source.c (tui_source_window::set_contents): Update.
2777 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2778
2779 2019-09-20 Tom Tromey <tom@tromey.com>
2780
2781 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2782 declare.
2783 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2784 tui_clear_source_windows_detail.
2785 * tui/tui-winsource.h (struct tui_source_window_base)
2786 <clear_detail>: Don't declare.
2787 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2788 Remove.
2789 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2790
2791 2019-09-20 Tom Tromey <tromey@adacore.com>
2792
2793 PR ada/24919:
2794 * block.c (contained_in): Fix final return value.
2795
2796 2019-09-20 Alan Modra <amodra@gmail.com>
2797
2798 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2799 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2800 (read_indirect_string_from_dwz): Use bfd accessor.
2801 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2802 * machoread.c (macho_symfile_read_all_oso): Likewise.
2803 * solib.c (solib_bfd_open): Likewise.
2804
2805 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2806
2807 * eval.c: Move declaration of overload_resolution to...
2808 * value.h: ...here.
2809
2810 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2811
2812 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2813 * arm-linux-tdep.c: Likewise.
2814 * arm-nbsd-nat.c: Likewise.
2815 * arm-tdep.h: Declare arm_apcs_32.
2816 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2817
2818 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2819
2820 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2821 * dwarf2read.h: Declare dwarf_always_disassemble.
2822
2823 2019-09-19 Tom de Vries <tdevries@suse.de>
2824
2825 PR gdb/25009
2826 * source-cache.c (source_cache::ensure): Catch exception thrown during
2827 construction of the highlighter.
2828
2829 2019-09-18 Alan Modra <amodra@gmail.com>
2830
2831 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2832 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2833 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2834 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2835 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2836 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2837 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
2838 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
2839 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
2840 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
2841 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
2842 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
2843 * solib-spu.c, * solib-svr4.c, * solib-target.c,
2844 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
2845 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
2846 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
2847 * mi/mi-interp.c: Update throughout for bfd section macro and
2848 function changes.
2849 * gcore (gcore_create_callback): Use bfd_set_section_lma.
2850 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
2851
2852 2019-09-18 Tom Tromey <tom@tromey.com>
2853
2854 * NEWS: Add entry.
2855 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
2856 call rl_initialize.
2857 (tui_enable): Do not call rl_initialize.
2858
2859 2019-09-18 Christian Groessler <chris@groessler.org>
2860
2861 * alpha-linux-nat.c: Include gdbarch.h.
2862
2863 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2864
2865 * ui-file.c: Include cli/cli-style.h.
2866 (term_cli_styling): Remove cli_styling declaration.
2867
2868 2019-09-18 Alan Modra <amodra@gmail.com>
2869
2870 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
2871 to bfd_asymbol_section.
2872
2873 2019-09-18 Alan Modra <amodra@gmail.com>
2874
2875 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
2876 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2877 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
2878
2879 2019-09-18 Alan Modra <amodra@gmail.com>
2880
2881 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
2882 * spu-linux-nat.c (spu_bfd_open): Likewise.
2883
2884 2019-09-18 Christian Biesinger <cbiesinger@google.com>
2885
2886 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
2887 to bool to match definition in dwarf2read.c.
2888
2889 2019-09-17 Christian Biesinger <cbiesinger@google.com>
2890
2891 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
2892 (print_signatures): Likewise.
2893 (trust_pad_over_xvs): Likewise.
2894 * arch/aarch64-insn.c (aarch64_debug): Likewise.
2895 * arch/aarch64-insn.h (aarch64_debug): Likewise.
2896 * arm-linux-nat.c (arm_apcs_32): Likewise.
2897 * arm-linux-tdep.c (arm_apcs_32): Likewise.
2898 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
2899 * arm-tdep.c (arm_debug): Likewise.
2900 (arm_apcs_32): Likewise.
2901 * auto-load.c (debug_auto_load): Likewise.
2902 (auto_load_gdb_scripts): Likewise.
2903 (global_auto_load): Likewise.
2904 (auto_load_local_gdbinit): Likewise.
2905 (auto_load_local_gdbinit_loaded): Likewise.
2906 * auto-load.h (global_auto_load): Likewise.
2907 (auto_load_local_gdbinit): Likewise.
2908 (auto_load_local_gdbinit_loaded): Likewise.
2909 * breakpoint.c (disconnected_dprintf): Likewise.
2910 (breakpoint_proceeded): Likewise.
2911 (automatic_hardware_breakpoints): Likewise.
2912 (always_inserted_mode): Likewise.
2913 (target_exact_watchpoints): Likewise.
2914 (_initialize_breakpoint): Update.
2915 * breakpoint.h (target_exact_watchpoints): Change to bool.
2916 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
2917 * cli/cli-cmds.c (trace_commands): Likewise.
2918 * cli/cli-cmds.h (trace_commands): Likewise.
2919 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2920 to bool*.
2921 * cli/cli-logging.c (logging_overwrite): Change to bool.
2922 (logging_redirect): Likewise.
2923 (debug_redirect): Likewise.
2924 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2925 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2926 to bool.
2927 <boolean_option_def>: Update.
2928 (struct flag_option_def): Change default type of Context to bool
2929 from int.
2930 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2931 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2932 (get_setshow_command_value_string): Likewise.
2933 * cli/cli-style.c (cli_styling): Change to bool.
2934 (source_styling): Likewise.
2935 * cli/cli-style.h (source_styling): Likewise.
2936 (cli_styling): Likewise.
2937 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
2938 to bool.
2939 * command.h (var_types): Update comment.
2940 (add_setshow_boolean_cmd): Change int* var argument to bool*.
2941 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
2942 bool.
2943 (debug_compile_cplus_scopes): Likewise.
2944 * compile/compile-internal.h (compile_debug): Likewise.
2945 * compile/compile.c (compile_debug): Likewise.
2946 (struct compile_options) <raw>: Likewise.
2947 * cp-support.c (catch_demangler_crashes): Likewise.
2948 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
2949 (usr_cmd_cris_dwarf2_cfi): Likewise.
2950 * csky-tdep.c (csky_debug): Likewise.
2951 * darwin-nat.c (enable_mach_exceptions): Likewise.
2952 * dcache.c (dcache_enabled_p): Likewise.
2953 * defs.h (info_verbose): Likewise.
2954 * demangle.c (demangle): Likewise.
2955 (asm_demangle): Likewise.
2956 * dwarf-index-cache.c (debug_index_cache): Likewise.
2957 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
2958 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
2959 * dwarf2read.c (check_physname): Likewise.
2960 (use_deprecated_index_sections): Likewise.
2961 (dwarf_always_disassemble): Likewise.
2962 * eval.c (overload_resolution): Likewise.
2963 * event-top.c (set_editing_cmd_var): Likewise.
2964 (exec_done_display_p): Likewise.
2965 * event-top.h (set_editing_cmd_var): Likewise.
2966 (exec_done_display_p): Likewise.
2967 * exec.c (write_files): Likewise.
2968 * fbsd-nat.c (debug_fbsd_lwp): Likewise
2969 (debug_fbsd_nat): Likewise.
2970 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
2971 Likewise.
2972 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
2973 <backtrace_past_entry> Likewise.
2974 * gdb-demangle.h (demangle): Likewise.
2975 (asm_demangle): Likewise.
2976 * gdb_bfd.c (bfd_sharing): Likewise.
2977 * gdbcore.h (write_files): Likewise.
2978 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
2979 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
2980 * gdbthread.h (print_thread_events): Likewise.
2981 * gdbtypes.c (opaque_type_resolution): Likewise.
2982 (strict_type_checking): Likewise.
2983 * gnu-nat.c (gnu_debug_flag): Likewise.
2984 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
2985 * guile/scm-param.c (pascm_variable): Add boolval.
2986 (add_setshow_generic): Update.
2987 (pascm_param_value): Update.
2988 (pascm_set_param_value_x): Update.
2989 * hppa-tdep.c (hppa_debug): Change to bool..
2990 * infcall.c (may_call_functions_p): Likewise.
2991 (coerce_float_to_double_p): Likewise.
2992 (unwind_on_signal_p): Likewise.
2993 (unwind_on_terminating_exception_p): Likewise.
2994 * infcmd.c (startup_with_shell): Likewise.
2995 * inferior.c (print_inferior_events): Likewise.
2996 * inferior.h (startup_with_shell): Likewise.
2997 (print_inferior_events): Likewise.
2998 * infrun.c (step_stop_if_no_debug): Likewise.
2999 (detach_fork): Likewise.
3000 (debug_displaced): Likewise.
3001 (disable_randomization): Likewise.
3002 (non_stop): Likewise.
3003 (non_stop_1): Likewise.
3004 (observer_mode): Likewise.
3005 (observer_mode_1): Likewise.
3006 (set_observer_mode): Update.
3007 (sched_multi): Change to bool.
3008 * infrun.h (debug_displaced): Likewise.
3009 (sched_multi): Likewise.
3010 (step_stop_if_no_debug): Likewise.
3011 (non_stop): Likewise.
3012 (disable_randomization): Likewise.
3013 * linux-tdep.c (use_coredump_filter): Likewise.
3014 (dump_excluded_mappings): Likewise.
3015 * linux-thread-db.c (auto_load_thread_db): Likewise.
3016 (check_thread_db_on_load): Likewise.
3017 * main.c (captured_main_1): Update.
3018 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3019 xx2_opt, boolean_opt>: Change to bool.
3020 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3021 * maint.c (maintenance_profile_p): Likewise.
3022 (per_command_time): Likewise.
3023 (per_command_space): Likewise.
3024 (per_command_symtab): Likewise.
3025 * memattr.c (inaccessible_by_default): Likewise.
3026 * mi/mi-main.c (mi_async): Likewise.
3027 (mi_async_1): Likewise.
3028 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3029 * nat/fork-inferior.h (startup_with_shell): Likewise.
3030 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3031 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3032 * nios2-tdep.c (nios2_debug): Likewise.
3033 * or1k-tdep.c (or1k_debug): Likewise.
3034 * parse.c (parser_debug): Likewise.
3035 * parser-defs.h (parser_debug): Likewise.
3036 * printcmd.c (print_symbol_filename): Likewise.
3037 * proc-api.c (procfs_trace): Likewise.
3038 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3039 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3040 (set_parameter_value): Update.
3041 (add_setshow_generic): Update.
3042 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3043 to bool*.
3044 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3045 int*.
3046 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3047 * record-btrace.c (record_btrace_target::store_registers): Update.
3048 * record-full.c (record_full_memory_query): Change to bool.
3049 (record_full_stop_at_limit): Likewise.
3050 * record-full.h (record_full_memory_query): Likewise.
3051 * remote-notif.c (notif_debug): Likewise.
3052 * remote-notif.h (notif_debug): Likewise.
3053 * remote.c (use_range_stepping): Likewise.
3054 (interrupt_on_connect): Likewise.
3055 (remote_break): Likewise.
3056 * ser-tcp.c (tcp_auto_retry): Likewise.
3057 * ser-unix.c (serial_hwflow): Likewise.
3058 * skip.c (debug_skip): Likewise.
3059 * solib-aix.c (solib_aix_debug): Likewise.
3060 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3061 (spu_auto_flush_cache_p): Likewise.
3062 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3063 Likewise.
3064 (struct info_print_options) <quiet>: Likewise.
3065 * symfile-debug.c (debug_symfile): Likewise.
3066 * symfile.c (auto_solib_add): Likewise.
3067 (separate_debug_file_debug): Likewise.
3068 * symfile.h (auto_solib_add): Likewise.
3069 (separate_debug_file_debug): Likewise.
3070 * symtab.c (basenames_may_differ): Likewise.
3071 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3072 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3073 (struct info_types_options) <quiet>: Likewise.
3074 * symtab.h (demangle): Likewise.
3075 (basenames_may_differ): Likewise.
3076 * target-dcache.c (stack_cache_enabled_1): Likewise.
3077 (code_cache_enabled_1): Likewise.
3078 * target.c (trust_readonly): Likewise.
3079 (may_write_registers): Likewise.
3080 (may_write_memory): Likewise.
3081 (may_insert_breakpoints): Likewise.
3082 (may_insert_tracepoints): Likewise.
3083 (may_insert_fast_tracepoints): Likewise.
3084 (may_stop): Likewise.
3085 (auto_connect_native_target): Likewise.
3086 (target_stop_and_wait): Update.
3087 (target_async_permitted): Change to bool.
3088 (target_async_permitted_1): Likewise.
3089 (may_write_registers_1): Likewise.
3090 (may_write_memory_1): Likewise.
3091 (may_insert_breakpoints_1): Likewise.
3092 (may_insert_tracepoints_1): Likewise.
3093 (may_insert_fast_tracepoints_1): Likewise.
3094 (may_stop_1): Likewise.
3095 * target.h (target_async_permitted): Likewise.
3096 (may_write_registers): Likewise.
3097 (may_write_memory): Likewise.
3098 (may_insert_breakpoints): Likewise.
3099 (may_insert_tracepoints): Likewise.
3100 (may_insert_fast_tracepoints): Likewise.
3101 (may_stop): Likewise.
3102 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3103 (make_thread_apply_all_options_def_group): Change argument from int*
3104 to bool*.
3105 (thread_apply_all_command): Update.
3106 (print_thread_events): Change to bool.
3107 * top.c (confirm): Likewise.
3108 (command_editing_p): Likewise.
3109 (history_expansion_p): Likewise.
3110 (write_history_p): Likewise.
3111 (info_verbose): Likewise.
3112 * top.h (confirm): Likewise.
3113 (history_expansion_p): Likewise.
3114 * tracepoint.c (disconnected_tracing): Likewise.
3115 (circular_trace_buffer): Likewise.
3116 * typeprint.c (print_methods): Likewise.
3117 (print_typedefs): Likewise.
3118 * utils.c (debug_timestamp): Likewise.
3119 (sevenbit_strings): Likewise.
3120 (pagination_enabled): Likewise.
3121 * utils.h (sevenbit_strings): Likewise.
3122 (pagination_enabled): Likewise.
3123 * valops.c (overload_resolution): Likewise.
3124 * valprint.h (struct value_print_options) <prettyformat_arrays,
3125 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3126 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3127 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3128 Likewise.
3129 * windows-nat.c (new_console): Likewise.
3130 (cygwin_exceptions): Likewise.
3131 (new_group): Likewise.
3132 (debug_exec): Likewise.
3133 (debug_events): Likewise.
3134 (debug_memory): Likewise.
3135 (debug_exceptions): Likewise.
3136 (useshell): Likewise.
3137 * windows-tdep.c (maint_display_all_tib): Likewise.
3138 * xml-support.c (debug_xml): Likewise.
3139
3140 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3141
3142 * source.c (prepare_path_for_appending): New function.
3143 (openp): Make use of new function.
3144 (find_and_open_source): Search for the compilation directory and
3145 source file as a relative path beneath the directory search path.
3146
3147 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3148
3149 * source-cache.c (source_cache::get_line_charpos): Catch
3150 exceptions and return false, this matches the behaviour documented
3151 in the header file.
3152
3153 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3154
3155 * ada-tasks.c (info_task): Remove quoting of the task's name.
3156
3157 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3158
3159 * symfile.c (auto_solib_add): Replace comment with a reference
3160 to the header file.
3161
3162 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3163
3164 * NEWS: Mention that gdb can now be compiled with Python 3
3165 on Windows.
3166
3167 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3168
3169 * maint.c (maint_print_section_data::maint_print_section_data):
3170 Force use of 'float log10 (float)' by casting the argument to
3171 float.
3172
3173 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3174
3175 * maint.c: Add 'cmath' include.
3176 (struct maint_print_section_data): New structure.
3177 (print_section_index): New function.
3178 (print_bfd_section_info): Add header comment, small whitespace
3179 cleanup, and update to call new print_section_index function.
3180 (print_objfile_section_info): Likewise.
3181 (maint_obj_section_from_bfd_section): New function.
3182 (print_bfd_section_info_maybe_relocated): New function.
3183 (maintenance_info_sections): Add header comment, always use
3184 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3185
3186 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3187
3188 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3189 inner scope, add check that the objfile has psymtabs before
3190 checking psymtabs_addrmap.
3191 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3192
3193 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3194
3195 * NEWS: Announce that Ada task names are now shown at more places,
3196 and between quotes (except in info task output).
3197 * gdb/ada-tasks.c (task_to_str): New function.
3198 (display_current_task_id): Call task_to_str.
3199 (task_command_1): Likewise.
3200 (print_ada_task_info): In non-mi mode, Properly align headers and data
3201 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3202
3203 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3204
3205 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3206 prstatus.pr_lwp.pr_info instead of making it up.
3207
3208 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3209
3210 * auto-load.c (auto_load_expand_dir_vars): Update.
3211 * defs.h (gdb_datadir): Change to std::string.
3212 (python_libdir): Likewise.
3213 (relocate_gdb_directory): Change return type to std::string.
3214 * guile/guile.c (gdbscm_data_directory): Update.
3215 (initialize_scheme_side): Update.
3216 * jit.c (jit_reader_dir): Change to std::string.
3217 (jit_reader_load_command): Update.
3218 * main.c (gdb_datadir): Change to std::string.
3219 (python_libdir): Likewise.
3220 (set_gdb_data_directory): Update.
3221 (relocate_path): Change to return std::string.
3222 (relocate_gdb_directory): Change to return std::string.
3223 (relocate_gdbinit_path_maybe_in_datadir): Update.
3224 (captured_main_1): Update.
3225 * python/python.c (do_start_initialization): Update.
3226 * top.c (show_gdb_datadir): Update.
3227 * xml-syscall.c (xml_init_syscalls_info): Update.
3228 (init_syscalls_info): Update.
3229
3230 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3231
3232 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3233 out of get_init_files.
3234 (get_init_files): Update.
3235
3236 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3237
3238 * main.c (get_init_files): Change to use std::string.
3239 (captured_main_1): Update.
3240 (print_gdb_help): Update.
3241
3242 2019-09-11 Ali Tamur <tamur@google.com>
3243
3244 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3245 implementation.
3246
3247 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3248
3249 * dbxread.c (read_dbx_symtab): Update.
3250 * dwarf2read.c (load_partial_dies): Update.
3251 * mdebugread.c (parse_partial_symbols): Update.
3252 (handle_psymbol_enumerators): Update.
3253 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3254 * psymtab.c (add_psymbol_to_bcache): Likewise.
3255 (add_psymbol_to_list): Likewise.
3256 * symtab.c (symbol_set_names): Likewise.
3257 * symtab.h (symbol_set_names): Likewise.
3258 * xcoffread.c (scan_xcoff_symtab): Update.
3259
3260 2019-09-11 Tom Tromey <tom@tromey.com>
3261
3262 * symfile-mem.c (symbol_file_add_from_memory): Use
3263 bfd_set_filename.
3264 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3265 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3266
3267 2019-09-10 Tom Tromey <tromey@adacore.com>
3268
3269 * dwarf-index-write.c (write_psymbols): Extend error message.
3270 (debug_names::insert): Add Ada code.
3271 (debug_names::write_psymbols): Remove Ada check.
3272 (debug_names) <m_string_obstack>: New member.
3273 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3274 (gdb_index_symbol_name_matcher::matches): Remove.
3275 (mapped_index_base::find_name_components_bounds): Add "lang"
3276 parameter.
3277 (mapped_index_base::build_name_components): Also split names
3278 according to Ada syntax.
3279 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3280 type of "match_callback".
3281 (check_match, check_find_bounds_finds)
3282 (dw2_expand_symtabs_matching): Update.
3283 (dw2_debug_names_iterator): Add new constructor.
3284 (dw2_debug_names_map_matching_symbols): New function.
3285 (dw2_debug_names_expand_symtabs_matching): Update.
3286 (dwarf2_debug_names_functions): Use
3287 dw2_debug_names_map_matching_symbols.
3288
3289 2019-09-10 Tom Tromey <tromey@adacore.com>
3290
3291 * dwarf2read.c (dw2_get_file_names_reader): Add the
3292 CU's file name to the results.
3293
3294 2019-09-10 Tom Tromey <tromey@adacore.com>
3295
3296 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3297 map_matching_symbols. Update.
3298 * dwarf2read.c (dw2_map_matching_symbols): Update.
3299 * psymtab.c (match_partial_symbol): Change type; update.
3300 (psym_map_matching_symbols): Likewise.
3301 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3302 type; update.
3303 * symfile.h (struct quick_symbol_functions)
3304 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3305 Remove "match".
3306
3307 2019-09-10 Tom Tromey <tromey@adacore.com>
3308
3309 * psymtab.c (map_block): Remove.
3310 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3311 * symtab.c (iterate_over_symbols_terminated): New function.
3312 * symtab.c (iterate_over_symbols_terminated): Declare.
3313
3314 2019-09-10 Tom Tromey <tromey@adacore.com>
3315
3316 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3317 * language.h (struct language_defn) <la_iterate_over_symbols>:
3318 Return bool.
3319 * symtab.c (iterate_over_symbols): Return bool.
3320 * symtab.h (iterate_over_symbols): Return bool.
3321
3322 2019-09-10 Tom Tromey <tromey@adacore.com>
3323
3324 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3325 (add_nonlocal_symbols): Update.
3326 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3327 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3328 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3329 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3330 Change type of "callback". Remove "data".
3331
3332
3333 2019-09-09 Ali Tamur <tamur@google.com>
3334
3335 * dwarf2read.c (comp_unit_head): Update comment.
3336 (dwarf2_dwo_name): New function declaration.
3337 (dwarf_unit_type_name): New function declaration.
3338 (read_comp_unit_head): Add support for new compilation units,
3339 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3340 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3341 (currently named as "signature") in their header. Also clarify error
3342 messages.
3343 (lookup_dwo_id): New function. Returns the dwo id of the given
3344 compile unit.
3345 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3346 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3347 functions.
3348 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3349 (dwarf2_dwo_name): Get the dwo name if present.
3350 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3351 purposes.
3352
3353 2019-09-09 Tom Tromey <tom@tromey.com>
3354
3355 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3356
3357 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3358
3359 * python/python.c (do_start_initialization): Make progname_copy static,
3360 to avoid a leak report.
3361
3362 2019-09-08 Tom Tromey <tom@tromey.com>
3363
3364 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3365
3366 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
3367
3368 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3369 Change type to gdb::optional<block_enum>.
3370 (dw2_symtab_iter_init): Change block_index parameter type
3371 to gdb::optional<block_enum>.
3372 (dw2_lookup_symbol): Change block_index parameter
3373 type to block_enum.c
3374 (dw2_debug_names_lookup_symbol): Likewise.
3375 * psymtab.c (psym_lookup_symbol): Likewise.
3376 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3377 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3378 Likewise.
3379
3380 2019-09-06 Christian Biesinger <cbiesinger@google.com>
3381
3382 * defs.h (relocate_gdb_directory): Change int to bool in
3383 signature and rename flag to relocatable.
3384 * main.c (relocate_path): Likewise.
3385 (relocate_gdb_directory): Likewise.
3386
3387 2019-09-06 Alan Modra <amodra@gmail.com>
3388
3389 * coffread.c (coff_symfile_read): Constify filename variable.
3390 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3391 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3392 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3393 * solib.c (reload_shared_libraries_1): Likewise.
3394 * symfile.c (reread_symbols): Likewise.
3395 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3396 * solib-darwin.c (darwin_bfd_open): Likewise.
3397 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3398
3399 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3400
3401 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3402 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3403
3404 2019-09-03 Tom Tromey <tromey@adacore.com>
3405
3406 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3407 types.
3408 (has_negatives): Unbias a range type bound.
3409 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3410 * gdbtypes.c (operator==): Handle new field.
3411 (create_range_type): Add "bias" parameter.
3412 (create_static_range_type, resolve_dynamic_range): Update.
3413 * gdbtypes.h (struct range_bounds) <bias>: New member.
3414 (create_range_type): Add bias parameter.
3415 * printcmd.c (print_scalar_formatted): Unbias range types.
3416 * value.c (unpack_long): Unbias range types.
3417 (pack_long): Bias range types.
3418
3419 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3420
3421 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3422 probe arguments.
3423
3424 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3425
3426 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3427 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3428 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3429 (compile_probe_arg): Likewise.
3430 * probe.h (get_argument_count): Likewise.
3431 * solib-svr4.c (solib_event_probe_action): Likewise.
3432 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3433
3434 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3435
3436 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3437 code to here...
3438 (svr4_create_solib_event_breakpoints): ...from here.
3439
3440 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3441
3442 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3443 suffix from warning message.
3444
3445 2019-08-30 Tom Tromey <tom@tromey.com>
3446
3447 * tui/tui-winsource.h (struct tui_source_window_base)
3448 <refresh_all>: Don't declare.
3449 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3450 Remove.
3451 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3452 tui_show_locator_content.
3453 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3454 declare.
3455 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3456 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3457 declare.
3458
3459 2019-08-30 Tom Tromey <tom@tromey.com>
3460
3461 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3462
3463 2019-08-30 Tom Tromey <tom@tromey.com>
3464
3465 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3466 Remove unnecessary forward declarations.
3467
3468 2019-08-30 Tom Tromey <tom@tromey.com>
3469
3470 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3471 rerender.
3472 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3473 tui_show_locator_content.
3474
3475 2019-08-30 Tom Tromey <tom@tromey.com>
3476
3477 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3478 (tui_locator_window::rerender): Rewrite using body of previous
3479 tui_show_locator_content.
3480
3481 2019-08-30 Tom Tromey <tom@tromey.com>
3482
3483 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3484 set_locator_fullname>: New methods.
3485 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3486 Rename from tui_set_locator_fullname.
3487 (tui_locator_window::set_locator_info): Rename from
3488 tui_set_locator_info. Return bool.
3489 (tui_update_locator_fullname, tui_show_frame_info): Update.
3490
3491 2019-08-30 Tom Tromey <tom@tromey.com>
3492
3493 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3494
3495 2019-08-30 Tom Tromey <tom@tromey.com>
3496
3497 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3498 call touchwin.
3499
3500 2019-08-30 Tom Tromey <tom@tromey.com>
3501
3502 * tui/tui-wingeneral.c (box_win): Assume win_info and
3503 win_info->handle cannot be NULL.
3504
3505 2019-08-30 Tom Tromey <tom@tromey.com>
3506
3507 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3508 refresh_window>: Declare.
3509 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3510 resize.
3511 (tui_data_item_window::rerender): Rename from
3512 tui_display_register.
3513 (tui_data_item_window::refresh_window): New method.
3514 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3515 no-op.
3516
3517 2019-08-30 Tom Tromey <tom@tromey.com>
3518
3519 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3520 regs_column_count, current_group>: Move later. Now private.
3521 <get_current_group>: New method.
3522 * tui/tui-regs.c (tui_reg_command): Update.
3523 * tui/tui-layout.c (tui_set_layout): Update.
3524
3525 2019-08-30 Tom Tromey <tom@tromey.com>
3526
3527 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3528 (tui_data_window::rerender): Don't call
3529 check_and_display_highlight_if_needed.
3530 (tui_data_window::refresh_all): Remove call to
3531 erase_data_content.
3532
3533 2019-08-30 Tom Tromey <tom@tromey.com>
3534
3535 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3536 (tui_data_window::display_registers_from)
3537 (tui_data_window::display_reg_element_at_line)
3538 (tui_data_window::display_registers_from_line): Remove checks of
3539 "empty".
3540
3541 2019-08-30 Tom Tromey <tom@tromey.com>
3542
3543 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3544 Don't declare.
3545 * tui/tui-regs.c (tui_data_window::show_registers): Call
3546 rerender.
3547 (tui_data_window::rerender): Rename from display_all_data.
3548 (tui_data_window::rerender): Remove old implementation.
3549
3550 2019-08-30 Tom Tromey <tom@tromey.com>
3551
3552 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3553 text.
3554 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3555
3556 2019-08-29 Bernhard Wodok <barto@gmx.net>
3557 Sergio Durigan Junior <sergiodj@redhat.com>
3558
3559 PR win32/24284
3560 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3561
3562 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3563
3564 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3565 when searching for types.
3566
3567 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3568
3569 * f-lang.c (f_language_defn): Use f_print_typedef.
3570 * f-lang.h (f_print_typedef): Declare.
3571 * f-typeprint.c (f_print_typedef): Define.
3572
3573 2019-08-27 Christian Biesinger <cbiesinger@google.com>
3574
3575 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3576
3577 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3578
3579 * cli/cli-utils.c (info_print_options_defs): Delete.
3580 (make_info_print_options_def_group): Delete.
3581 (extract_info_print_options): Delete.
3582 (info_print_command_completer): Delete.
3583 (info_print_args_help): Add extra parameter, and optionally
3584 include text about -n flag.
3585 * cli/cli-utils.h (struct info_print_options): Delete.
3586 (extract_info_print_options): Delete declaration.
3587 (info_print_command_completer): Delete declaration.
3588 (info_print_args_help): Add extra parameter, extend header
3589 comment.
3590 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3591 search_symbols.
3592 * stack.c (struct info_print_options): New type.
3593 (info_print_options_defs): New file scoped variable.
3594 (make_info_print_options_def_group): New static function.
3595 (info_print_command_completer): New static function.
3596 (info_locals_command): Update to use new local functions.
3597 (info_args_command): Likewise.
3598 (_initialize_stack): Add extra parameter to calls to
3599 info_print_args_help.
3600 * symtab.c (search_symbols): Add extra parameter, use this to
3601 possibly excluse non-debug symbols.
3602 (symtab_symbol_info): Add extra parameter, which is passed on to
3603 search_symbols.
3604 (struct info_print_options): New type.
3605 (info_print_options_defs): New file scoped variable.
3606 (make_info_print_options_def_group): New static function.
3607 (info_print_command_completer): New static function.
3608 (info_variables_command): Update to use local functions, and pass
3609 extra parameter through to symtab_symbol_info.
3610 (info_functions_command): Likewise.
3611 (info_types_command): Pass additional argument through to
3612 symtab_symbol_info.
3613 (rbreak_command): Pass extra argument to search_symbols.
3614 (_initialize_symtab): Add extra arguments for calls to
3615 info_print_args_help, and update help text for 'info variables',
3616 'whereis', and 'info functions' commands.
3617 * symtab.h (search_symbols): Add extra argument to declaration.
3618 * NEWS: Mention new flags.
3619
3620 2019-08-26 Christian Biesinger <cbiesinger@google.com>
3621
3622 * symtab.c (lookup_static_symbol): Call the new function (and move
3623 it down to be next to lookup_global_symbol).
3624 (struct global_sym_lookup_data): Add block_enum member and rename to...
3625 (struct global_or_static_sym_lookup_data): ...this.
3626 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3627 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3628 (lookup_symbol_global_or_static_iterator_cb): ...this.
3629 (lookup_global_or_static_symbol): New function.
3630 (lookup_global_symbol): Call new function.
3631
3632 2019-08-26 Tom de Vries <tdevries@suse.de>
3633
3634 PR c++/24852
3635 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3636 when pc_probe.prob == NULL.
3637
3638 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3639
3640 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3641 variable symbol_linkage to symbol_linkage_.
3642
3643 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3644
3645 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3646 represent whether the symbol is static, dynamic, or we don't
3647 know.
3648
3649 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3650
3651 * gdb/rx-tdep.c (rx_register_names): New.
3652 (rx_register_name): Delete.
3653 (rx_psw_type): Delete.
3654 (rx_fpsw_type): Delete.
3655 (rx_register_type): Delete.
3656 (rx_gdbarch_init): Convert target-descriptions.
3657 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3658 * gdb/features/Makefile: Add rx.xml.
3659 * gdb/features/rx.xml: New.
3660 * gdb/features/rx.c: Generated.
3661 * gdb/NEWS: Mention target description support.
3662
3663 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3664
3665 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3666 *slot_ptr.
3667
3668 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3669
3670 * configure.ac: Don't check for 'dlfcn.h' (moved to
3671 gdbsupport/common.m4).
3672 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3673 'gdbsupport/'.
3674 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3675 * compile/compile-c-support.c: Include
3676 'gdbsupport/gdb-dlfcn.h'.
3677 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3678 * gdb-dlfcn.c: Move to...
3679 * gdbsupport/gdb-dlfcn.c: ... here.
3680 * gdb-dlfcn.h: Move to...
3681 * gdbsupport/gdb-dlfcn.h: ... here.
3682
3683 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3684
3685 * nios2-tdep.c (struct reg_value): Improve comments. Make
3686 the offset field signed.
3687
3688 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3689
3690 * python/lib/gdb/__init__.py (_execute_file): New function.
3691 * python/python.c (python_run_simple_file): Call gdb._execute_file
3692 on Windows.
3693
3694 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3695
3696 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3697 all uses as this was never set to anything but a zero value.
3698
3699 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3700
3701 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3702
3703 2019-08-21 Christian Biesinger <cbiesinger@google.com>
3704
3705 * tui/tui-data.h (tui_gen_win_info): Add an =default
3706 move constructor, required by some GCC versions.
3707
3708 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
3709
3710 * go32-nat.c (go32_sysinfo): Add hygon_p.
3711
3712 2019-08-20 Tom Tromey <tom@tromey.com>
3713
3714 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3715 line_from_reg_element_no, first_reg_element_no_inline,
3716 display_all_data, delete_data_content_windows,
3717 erase_data_content>: Now private.
3718
3719 2019-08-20 Tom Tromey <tom@tromey.com>
3720
3721 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3722 (tui_unhighlight_win, tui_highlight_win)
3723 (tui_win_info::make_window): Update.
3724 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3725
3726 2019-08-20 Tom Tromey <tom@tromey.com>
3727
3728 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3729 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3730 (MAX_PID_WIDTH): Move to tui-stack.c.
3731 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3732 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3733 (MAX_PID_WIDTH): Move from tui-data.h.
3734
3735 2019-08-20 Tom Tromey <tom@tromey.com>
3736
3737 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3738 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3739 (box_win): Update.
3740 (tui_gen_win_info::make_window): Rename from tui_make_window.
3741 (tui_win_info::make_window): New method.
3742 (tui_gen_win_info::make_visible): Update.
3743 * tui/tui-source.c (tui_source_window::set_contents): Update.
3744 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3745 (tui_data_window::display_registers_from): Update.
3746 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3747 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3748 Declare.
3749 <can_box>: Remove.
3750 <title>: Remove.
3751 (struct tui_win_info) <make_window>: Declare.
3752 <can_box>: Now virtual.
3753 <title>: New member.
3754 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3755 * tui/tui-command.c (tui_cmd_window::resize): Update.
3756
3757 2019-08-20 Tom Tromey <tom@tromey.com>
3758
3759 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3760 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3761 (tui_data_window::check_register_values): Update.
3762
3763 2019-08-20 Tom Tromey <tom@tromey.com>
3764
3765 * tui/tui-regs.h (struct tui_data_window): Use
3766 DISABLE_COPY_AND_ASSIGN.
3767 <regs_content>: Change type, removing unique_ptr.
3768 <tui_data_window>: Add move constructor.
3769 * tui/tui-regs.c (tui_data_window::show_registers)
3770 (tui_data_window::show_register_group)
3771 (tui_data_window::display_registers_from)
3772 (tui_data_window::display_registers_from)
3773 (tui_data_window::first_data_item_displayed)
3774 (tui_data_window::delete_data_content_windows)
3775 (tui_data_window::rerender, tui_data_window::refresh_window)
3776 (tui_data_window::check_register_values): Update.
3777
3778 2019-08-20 Tom Tromey <tom@tromey.com>
3779
3780 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3781 show_register_group>: Declare.
3782 (tui_show_register_group): Don't declare.
3783 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3784 tui_show_registers.
3785 (tui_data_window::show_register_group): Rename from
3786 tui_show_register_group.
3787 (tui_data_window::check_register_values, tui_reg_command):
3788 Update.
3789 * tui/tui-layout.c (tui_set_layout): Update.
3790
3791 2019-08-20 Tom Tromey <tom@tromey.com>
3792
3793 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3794 Declare.
3795 (tui_check_register_values): Don't declare.
3796 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3797 from tui_check_register_values.
3798 * tui/tui-hooks.c (tui_register_changed): Update.
3799
3800 2019-08-20 Tom Tromey <tom@tromey.com>
3801
3802 * tui/tui-regs.c (tui_reg_layout): Move later.
3803 (tui_show_registers): Don't enable TUI mode or change layout.
3804
3805 2019-08-20 Tom Tromey <tom@tromey.com>
3806
3807 * tui/tui-regs.h (struct tui_data_item_window)
3808 <~tui_data_item_window>: Remove.
3809 <content>: Now a unique_xmalloc_ptr.
3810 * tui/tui-regs.c (tui_register_format): Return a
3811 unique_xmalloc_ptr.
3812 (tui_get_register): Update.
3813 (~tui_data_item_window): Remove.
3814 (tui_data_window::display_registers_from, tui_display_register):
3815 Update.
3816 * tui/tui-io.h (tui_expand_tabs): Update.
3817 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3818 Remove "col" parameter.
3819
3820 2019-08-20 Tom Tromey <tom@tromey.com>
3821
3822 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3823 field.
3824 * tui/tui-regs.c (~tui_data_item_window): Update.
3825
3826 2019-08-20 Tom Tromey <tom@tromey.com>
3827
3828 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3829 earlier.
3830
3831 2019-08-20 Tom Tromey <tom@tromey.com>
3832
3833 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3834
3835 2019-08-20 Tom Tromey <tom@tromey.com>
3836
3837 * tui/tui-source.h (struct tui_source_window): Update.
3838 * tui/tui-regs.c (tui_show_registers): Update.
3839 * tui/tui-disasm.h (struct tui_disasm_window): Update.
3840 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
3841 (NO_REGS_STRING): Remove defines.
3842
3843 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
3844
3845 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
3846 unnecessary thread walk if remote doesn't support the packet.
3847
3848 2019-08-19 Tom Tromey <tromey@adacore.com>
3849
3850 * python/py-value.c (value_has_field): Fix indentation.
3851
3852 2019-08-19 Tom Tromey <tromey@adacore.com>
3853
3854 * printcmd.c (do_one_display, info_display_command): Update.
3855 * block.h (contained_in): Return bool. Add allow_nested
3856 parameter.
3857 * block.c (contained_in): Return bool. Add allow_nested
3858 parameter.
3859
3860 2019-08-19 Tom Tromey <tom@tromey.com>
3861
3862 * configure: Rebuild.
3863 * configure.ac: Disallow the combination of -static-libstdc++ and
3864 source highlight.
3865 * source-cache.c (get_language_name): Handle rust.
3866 (source_cache::get_source_lines): Ignore highlighting exceptions.
3867
3868 2019-08-16 Tom Tromey <tom@tromey.com>
3869
3870 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
3871 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
3872 (struct tui_source_window_base) <make_visible, refresh_window,
3873 resize>: Remove methods.
3874 <execution_info>: Remove field.
3875 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
3876 (tui_show_source_line, tui_source_window_base)
3877 (~tui_source_window_base): Update.
3878 (tui_source_window_base::resize)
3879 (tui_source_window_base::make_visible)
3880 (tui_source_window_base::refresh_window): Remove.
3881 (tui_source_window_base::update_exec_info): Update.
3882 * tui/tui-source.c (tui_source_window::set_contents): Update.
3883 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3884
3885 2019-08-16 Tom Tromey <tom@tromey.com>
3886
3887 * tui/tui-hooks.c (tui_remove_hooks): Don't set
3888 deprecated_query_hook.
3889
3890 2019-08-16 Tom Tromey <tom@tromey.com>
3891
3892 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3893 (tui_update_source_windows_with_line): Update.
3894 * tui/tui-source.h (struct tui_source_window)
3895 <show_symtab_source>: Declare.
3896 (tui_show_symtab_source): Don't declare.
3897 * tui/tui-source.c (tui_show_symtab_source): Rename from
3898 tui_show_symtab_source.
3899
3900 2019-08-16 Tom Tromey <tom@tromey.com>
3901
3902 * tui/tui-winsource.h (struct tui_source_window_base)
3903 <set_contents>: Declare.
3904 * tui/tui-winsource.c
3905 (tui_source_window_base::update_source_window_as_is): Update.
3906 * tui/tui-source.h (struct tui_source_window) <set_contents>:
3907 Declare.
3908 (tui_set_source_content): Don't declare.
3909 * tui/tui-source.c (tui_source_window::set_contents): Rename from
3910 tui_set_source_content.
3911 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
3912 Declare.
3913 (tui_set_disassem_content): Don't declare.
3914 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
3915 tui_set_disassem_content.
3916
3917 2019-08-16 Tom Tromey <tom@tromey.com>
3918
3919 * tui/tui-winsource.h (struct tui_source_window_base)
3920 <update_breakpoint_info>: Declare.
3921 (tui_update_breakpoint_info): Don't declare.
3922 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3923 (tui_update_all_breakpoint_info): Update.
3924 (tui_source_window_base::update_breakpoint_info): Rename from
3925 tui_update_breakpoint_info.
3926 (tui_source_window_base::update_exec_info): Update.
3927
3928 2019-08-16 Tom Tromey <tom@tromey.com>
3929
3930 * tui/tui-winsource.h (struct tui_source_window_base)
3931 <update_source_window>: Declare.
3932 (tui_update_source_window): Don't declare.
3933 * tui/tui-winsource.c
3934 (tui_source_window_base::update_source_window): Rename from
3935 tui_update_source_window.
3936 (tui_source_window_base::rerender): Update.
3937 * tui/tui-source.c (tui_source_window::maybe_update): Update.
3938 * tui/tui-disasm.c (tui_show_disassem)
3939 (tui_show_disassem_and_update_source)
3940 (tui_disasm_window::maybe_update): Update.
3941
3942 2019-08-16 Tom Tromey <tom@tromey.com>
3943
3944 * tui/tui-winsource.h (struct tui_source_window_base)
3945 <update_source_window_as_is>: Declare.
3946 (tui_update_source_window_as_is): Don't declare.
3947 * tui/tui-winsource.c (tui_update_source_window): Update
3948 (tui_source_window_base::update_source_window_as_is): Rename from
3949 tui_update_source_window_as_is.
3950 (tui_source_window_base::refill): Update.
3951 * tui/tui-source.c (tui_show_symtab_source): Update.
3952 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
3953 Update.
3954
3955 2019-08-16 Tom Tromey <tom@tromey.com>
3956
3957 * tui/tui-winsource.h (tui_update_source_window)
3958 (tui_update_source_window_as_is): Remove "noerror" parameter.
3959 * tui/tui-winsource.c (tui_update_source_window)
3960 (tui_update_source_window_as_is): Remove "noerror" parameter.
3961 (tui_update_source_windows_with_addr)
3962 (tui_update_source_windows_with_line)
3963 (tui_source_window_base::rerender)
3964 (tui_source_window_base::refill): Update.
3965 * tui/tui-source.h (tui_set_source_content)
3966 (tui_show_symtab_source): Remove "noerror" parameter.
3967 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
3968 parameter.
3969 (tui_show_symtab_source): Likewise.
3970 (tui_source_window::maybe_update): Update.
3971 * tui/tui-disasm.c (tui_show_disassem)
3972 (tui_show_disassem_and_update_source)
3973 (tui_disasm_window::do_scroll_vertical)
3974 (tui_disasm_window::maybe_update): Update.
3975
3976 2019-08-16 Tom Tromey <tom@tromey.com>
3977
3978 * tui/tui.c (tui_is_window_visible): Update.
3979 * tui/tui-wingeneral.c (tui_make_window)
3980 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
3981 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
3982 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
3983 (tui_set_win_height_command, parse_scrolling_args): Update.
3984 * tui/tui-source.c (tui_source_window::style_changed): Update.
3985 * tui/tui-regs.c (tui_show_registers)
3986 (tui_data_window::first_data_item_displayed)
3987 (tui_data_window::delete_data_content_windows)
3988 (tui_check_register_values, tui_reg_command): Update.
3989 * tui/tui-disasm.c (tui_show_disassem): Update.
3990 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
3991 method.
3992 <is_visible>: Remove field.
3993 * tui/tui-data.c (tui_next_win, tui_prev_win)
3994 (tui_delete_invisible_windows): Update.
3995
3996 2019-08-16 Tom Tromey <tom@tromey.com>
3997
3998 * tui/tui-winsource.h (struct tui_source_window_base)
3999 <m_has_locator>: Remove.
4000 * tui/tui-layout.c (show_source_disasm_command, show_data)
4001 (show_source_or_disasm_and_command): Update.
4002
4003 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4004
4005 * NEWS (Other MI changes): New subsection.
4006 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4007 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4008 * arch-utils.c (default_get_pc_address_flags): New function.
4009 * arch-utils.h (default_get_pc_address_flags): New declaration.
4010 * gdbarch.sh: Add get_pc_address_flags.
4011 * gdbarch.c: Regenerate.
4012 * gdbarch.h: Likewise.
4013 * stack.c (print_pc): New function.
4014 (print_frame_info) (print_frame): Call print_pc.
4015
4016 2019-08-16 Tom de Vries <tdevries@suse.de>
4017
4018 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4019 print_objfile_section_info.
4020
4021 2019-08-15 Tom Tromey <tom@tromey.com>
4022
4023 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4024 calling update_cmdwin_start_line.
4025 * tui/tui-winsource.h (struct tui_source_window_base)
4026 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4027 <rerender>: Declare.
4028 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4029 Call rerender.
4030 (tui_source_window_base::set_new_height): Remove.
4031 (tui_source_window_base::rerender): Rename from
4032 do_make_visible_with_new_height.
4033 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4034 resize method.
4035 (tui_win_info::make_invisible_and_set_new_height)
4036 (tui_win_info::make_visible_with_new_height): Remove.
4037 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4038 Declare.
4039 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4040 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4041 do_make_visible_with_new_height>: Don't declare.
4042 <rerender>: Declare.
4043 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4044 set_new_height.
4045 (tui_data_window::do_make_visible_with_new_height): Remove.
4046 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4047 call tui_show_locator_content.
4048 (tui_gen_win_info::resize): Call rerender.
4049 (show_source_or_disasm_and_command): Don't call
4050 tui_show_locator_content.
4051 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4052 method.
4053 (struct tui_win_info) <rerender>: Declare.
4054 <set_new_height, make_invisible_and_set_new_height,
4055 make_visible_with_new_height>: Don't declare.
4056 * tui/tui-data.c (tui_win_list::rerender): New method.
4057 * tui/tui-command.h (struct tui_cmd_window)
4058 <do_make_visible_with_new_height>: Don't declare.
4059 * tui/tui-command.c
4060 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4061
4062 2019-08-15 Tom Tromey <tromey@adacore.com>
4063
4064 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4065 * ada-lang.c (ada_enum_name): Likewise.
4066
4067 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4068
4069 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4070 leading underscore.
4071 (GdbOutputErrorFile): Likewise.
4072 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4073 accordingly.
4074 (execute_unwinders): Rename to have a leading underscore.
4075 (auto_load_packages): Likewise.
4076 (global scope): Adjust call to auto_load_packages accordingly.
4077 (GdbSetPythonDirectory): Likewise.
4078 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4079 instead of execute_unwinders.
4080
4081 2019-08-15 Tom Tromey <tom@tromey.com>
4082
4083 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4084 (show_data): Don't change window visibility.
4085 (tui_gen_win_info::resize): Remove special case for command
4086 window. Use wresize, when available.
4087 (show_source_or_disasm_and_command): Don't change window
4088 visibility.
4089 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4090 <make_visible>: New method.
4091 * tui/tui-command.c (tui_cmd_window::resize): New method.
4092
4093 2019-08-15 Tom Tromey <tom@tromey.com>
4094
4095 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4096 (struct tui_source_windows): New.
4097 * tui/tui-winsource.c (tui_display_main): Update.
4098 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4099 (new_height_ok, parse_scrolling_args): Update.
4100 * tui/tui-layout.c (show_layout, show_data): Update.
4101 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4102 (tui_add_to_source_windows): Don't declare.
4103 * tui/tui-data.c (source_windows, tui_source_windows)
4104 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4105
4106 2019-08-15 Tom Tromey <tom@tromey.com>
4107
4108 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4109 Rename from reset.
4110 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4111 * tui/tui-layout.c (show_source_disasm_command, show_data):
4112 Update.
4113 (tui_gen_win_info::resize): Rename.
4114 (show_source_or_disasm_and_command): Update.
4115 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4116 reset.
4117
4118 2019-08-15 Tom Tromey <tom@tromey.com>
4119
4120 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4121 * tui/tui-interp.c (tui_interp::init): Don't call
4122 tui_initialize_static_data.
4123 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4124
4125 2019-08-15 Tom Tromey <tom@tromey.com>
4126
4127 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4128 examine tui_win_list.
4129
4130 2019-08-15 Tom Tromey <tom@tromey.com>
4131
4132 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4133 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4134 tui_clear_source_content.
4135 (tui_clear_source_content): Remove.
4136 (tui_source_window_base::do_erase_source_content): Hoist call to
4137 content.clear().
4138 * tui/tui-stack.c (tui_show_frame_info): Don't call
4139 tui_clear_source_content.
4140
4141 2019-08-15 Tom Tromey <tom@tromey.com>
4142
4143 * tui/tui-winsource.h (struct tui_source_window_base)
4144 <do_erase_source_content>: New method.
4145 <erase_source_content>: New method.
4146 (tui_erase_source_content): Don't declare.
4147 * tui/tui-winsource.c (tui_clear_source_content): Update.
4148 (tui_source_window_base::do_erase_source_content): Rename from
4149 tui_erase_source_content.
4150 (tui_source_window_base::show_source_content): Update.
4151 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4152 * tui/tui-source.h (struct tui_source_window)
4153 <erase_source_content>: New method.
4154 * tui/tui-disasm.h (struct tui_disasm_window)
4155 <erase_source_content>: New method.
4156
4157 2019-08-15 Tom Tromey <tom@tromey.com>
4158
4159 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4160 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4161 constructor.
4162 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4163 * tui/tui-source.c (tui_set_source_content): Update.
4164 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4165
4166 2019-08-15 Tom Tromey <tom@tromey.com>
4167
4168 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4169 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4170 tui-source.c.
4171 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4172 Declare.
4173 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4174 method.
4175 (tui_source_window::maybe_update): Update.
4176
4177 2019-08-15 Tom Tromey <tom@tromey.com>
4178
4179 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4180 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4181 tui-disasm.c.
4182 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4183 Declare.
4184 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4185 method.
4186 (tui_disasm_window::maybe_update): Update.
4187
4188 2019-08-15 Tom Tromey <tom@tromey.com>
4189
4190 * tui/tui-winsource.h (struct tui_source_window_base)
4191 <maybe_update>: Declare.
4192 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4193 method.
4194 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4195 Declare.
4196 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4197 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4198 Declare.
4199 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4200
4201 2019-08-15 Tom Tromey <tom@tromey.com>
4202
4203 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4204
4205 2019-08-15 Tom Tromey <tom@tromey.com>
4206
4207 * tui/tui-wingeneral.c: Include tui-stack.h.
4208 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4209 (struct tui_locator_window): Move from tui-data.h.
4210 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4211 (tui_initialize_static_data): Move from tui-data.c.
4212 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4213 (struct tui_locator_window): Move to tui-stack.c.
4214 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4215 (tui_initialize_static_data): Move to tui-stack.c.
4216
4217 2019-08-15 Tom Tromey <tom@tromey.com>
4218
4219 * tui/tui-layout.c (show_source_disasm_command)
4220 (show_source_or_disasm_and_command): Use make_visible method, not
4221 tui_make_window.
4222 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4223 Remove.
4224
4225 2019-08-15 Tom Tromey <tom@tromey.com>
4226
4227 * tui/tui-wingeneral.h (tui_make_window): Update.
4228 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4229 parameter.
4230 (tui_gen_win_info::make_visible): Update.
4231 * tui/tui-regs.c (tui_data_window::display_registers_from):
4232 Update.
4233 * tui/tui-layout.c (show_source_disasm_command)
4234 (show_source_or_disasm_and_command): Update.
4235 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4236 (enum tui_box): Remove.
4237 (struct tui_win_info) <can_box>: New method.
4238 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4239 method.
4240
4241 2019-08-15 Tom de Vries <tdevries@suse.de>
4242
4243 * linux-nat-trad.c: Include gdbarch.h.
4244
4245 2019-08-14 Alan Hayward <alan.hayward@arm.com>
4246
4247 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4248 register sizes.
4249
4250 2019-08-14 Tom Tromey <tromey@adacore.com>
4251
4252 * darwin-nat.c: Include gdbarch.h.
4253 * darwin-nat-info.c: Include gdbarch.h.
4254
4255 2019-08-13 Tom Tromey <tom@tromey.com>
4256
4257 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4258 Remove.
4259 * tui/tui-data.c (tui_initialize_static_data): Update.
4260
4261 2019-08-13 Tom Tromey <tom@tromey.com>
4262
4263 * tui/tui-winsource.h (struct tui_exec_info_window)
4264 <~tui_exec_info_window, maybe_allocate_content, get_content,
4265 m_content>: Remove.
4266 (struct tui_source_window_base) <set_exec_info_content,
4267 show_exec_info_content>: Don't declare.
4268 * tui/tui-winsource.c
4269 (tui_exec_info_window::maybe_allocate_content): Remove.
4270 (tui_source_window_base::update_exec_info): Rename from
4271 set_exec_info_content.
4272 (tui_source_window_base::show_exec_info_content)
4273 (tui_source_window_base::update_exec_info): Remove.
4274
4275 2019-08-13 Tom Tromey <tom@tromey.com>
4276
4277 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4278 declare.
4279 * tui/tui-winsource.c (tui_update_source_window_as_is)
4280 (tui_update_source_windows_with_addr, tui_erase_source_content):
4281 Update.
4282 (tui_clear_exec_info_content): Remove.
4283
4284 2019-08-13 Tom Tromey <tom@tromey.com>
4285
4286 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4287 declare.
4288 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4289 call tui_erase_exec_info_content.
4290 (tui_clear_exec_info_content): Rename from
4291 tui_erase_exec_info_content.
4292 (tui_clear_exec_info_content): Delete.
4293
4294 2019-08-13 Tom Tromey <tom@tromey.com>
4295
4296 * tui/tui-winsource.h (struct tui_source_window_base)
4297 <show_exec_info_content>: Declare.
4298 (tui_show_exec_info_content): Don't declare.
4299 * tui/tui-winsource.c
4300 (tui_source_window_base::show_exec_info_content): Rename from
4301 tui_show_exec_info_content.
4302 (tui_source_window_base::update_exec_info): Update.
4303
4304 2019-08-13 Tom Tromey <tom@tromey.com>
4305
4306 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4307 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4308 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4309 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4310 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4311 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4312 ... here.
4313
4314 2019-08-13 Tom Tromey <tom@tromey.com>
4315
4316 * tui/tui-winsource.h (struct tui_source_window_base)
4317 <update_exec_info>: Declare.
4318 (tui_update_exec_info): Don't declare.
4319 * tui/tui-winsource.c (tui_update_source_window_as_is)
4320 (tui_source_window_base::refresh_all)
4321 (tui_update_all_breakpoint_info): Update.
4322 (tui_source_window_base::update_exec_info): Rename from
4323 tui_update_exec_info.
4324 * tui/tui-stack.c (tui_show_frame_info): Update.
4325
4326 2019-08-13 Tom Tromey <tom@tromey.com>
4327
4328 * tui/tui-winsource.h (struct tui_source_window_base)
4329 <set_exec_info_content>: Declare.
4330 (tui_set_exec_info_content): Don't declare.
4331 * tui/tui-winsource.c
4332 (tui_source_window_base::set_exec_info_content): Rename from
4333 tui_set_exec_info_content.
4334 (tui_update_exec_info): Update.
4335
4336 2019-08-13 Tom Tromey <tom@tromey.com>
4337
4338 * tui/tui-winsource.h (struct tui_source_window_base)
4339 <show_source_content>: Declare.
4340 (tui_show_source_content): Don't declare.
4341 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4342 (tui_source_window_base::show_source_content): Rename from
4343 tui_show_source_content.
4344 (tui_source_window_base::refresh_all): Update.
4345 * tui/tui-layout.c (show_source_disasm_command)
4346 (show_source_or_disasm_and_command): Update.
4347
4348 2019-08-13 Tom Tromey <tom@tromey.com>
4349
4350 * tui/tui-winsource.c (tui_erase_source_content)
4351 (tui_show_source_content, tui_source_window_base::refresh_all):
4352 Update.
4353 * tui/tui-wingeneral.h
4354 (tui_check_and_display_highlight_if_needed): Don't declare.
4355 * tui/tui-wingeneral.c
4356 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4357 check_and_display_highlight_if_needed.
4358 * tui/tui-win.c (tui_rehighlight_all)
4359 (tui_win_info::make_visible_with_new_height): Update.
4360 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4361 (tui_data_window::erase_data_content)
4362 (tui_data_window::display_all_data): Update.
4363 * tui/tui-data.h (struct tui_win_info)
4364 <check_and_display_highlight_if_needed>: Declare.
4365
4366 2019-08-13 Tom Tromey <tom@tromey.com>
4367
4368 * tui/tui-win.c (tui_resize_all): Call
4369 tui_delete_invisible_windows.
4370 * tui/tui-layout.c (show_layout): Call
4371 tui_delete_invisible_windows.
4372 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4373 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4374
4375 2019-08-13 Tom Tromey <tom@tromey.com>
4376
4377 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4378 tui_add_win_to_layout.
4379
4380 2019-08-13 Tom Tromey <tom@tromey.com>
4381
4382 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4383 * tui/tui-layout.c (tui_default_win_height): Now static.
4384
4385 2019-08-13 Tom Tromey <tom@tromey.com>
4386
4387 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4388 single switch.
4389 (show_source_disasm_command, show_source_or_disasm_and_command):
4390 Don't check current layout.
4391
4392 2019-08-13 Tom Tromey <tom@tromey.com>
4393
4394 * tui/tui-wingeneral.c (make_all_visible): Remove.
4395 (tui_make_all_invisible): Simplify.
4396 * tui/tui-layout.c (tui_make_all_invisible): Move from
4397 tui-wingeneral.c; simplify.
4398 (show_layout): Hoist call to tui_make_all_invisible.
4399 (show_data): Don't call tui_make_all_invisible.
4400
4401 2019-08-13 Tom Tromey <tom@tromey.com>
4402
4403 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4404 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4405
4406 2019-08-13 Tom Tromey <tom@tromey.com>
4407
4408 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4409 tui-data.c.
4410 (show_source_disasm_command, show_data)
4411 (show_source_or_disasm_and_command): Don't use
4412 tui_set_current_layout_to.
4413 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4414 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4415 tui-layout.c.
4416 (tui_set_current_layout_to): Remove.
4417
4418 2019-08-13 Tom Tromey <tom@tromey.com>
4419
4420 * tui/tui-layout.c (tui_set_layout): Update.
4421 * tui/tui-data.h (struct tui_layout_def): Remove.
4422 (tui_layout_def): Don't declare.
4423 * tui/tui-data.c (layout_def): Remove.
4424 (tui_layout_def): Remove.
4425
4426 2019-08-13 Tom Tromey <tom@tromey.com>
4427
4428 * tui/tui-winsource.h (struct tui_source_window_base)
4429 <clear_detail>: No longer "override".
4430 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4431 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4432 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4433 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4434 Remove.
4435 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4436
4437 2019-08-13 Tom Tromey <tromey@adacore.com>
4438
4439 * tracepoint.c: Don't include readline.h or history.h.
4440
4441 2019-08-12 Tom Tromey <tom@tromey.com>
4442
4443 * configure: Rebuild.
4444 * configure.ac: Check for readline 7.
4445 * NEWS: Mention readline 7 requirement.
4446 * README: Update.
4447
4448 2019-08-12 Tom Tromey <tom@tromey.com>
4449
4450 * mingw-hdep.c (gdb_select): Remove readline hack.
4451
4452 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4453
4454 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4455 when the function fails.
4456
4457 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4458
4459 * s390-tdep.c (s390_type_align): New function.
4460 (s390_gdbarch_init): Set it as type_align gdbarch method.
4461
4462 2019-08-09 Tom de Vries <tdevries@suse.de>
4463
4464 PR gdb/24591
4465 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4466 pc_low with relocation offset.
4467
4468 2019-08-07 Tom Tromey <tromey@adacore.com>
4469
4470 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4471 (print_frame_args): Update.
4472 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4473 Update.
4474 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4475 * frame.h (struct frame_arg): Add initializers.
4476 <error>: Now a unique_xmalloc_ptr.
4477
4478 2019-08-07 Alan Hayward <alan.hayward@arm.com>
4479
4480 * NEWS: Expand the Pointer Authentication entry.
4481 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4482 (aarch64_frame_unmask_lr): ... to this.
4483 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4484 Call aarch64_frame_unmask_lr.
4485 * frame.c (struct frame_info): Add "masked" variable.
4486 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4487 (fprint_frame): Check for masked pc.
4488 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4489 declarations.
4490 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4491 * stack.c (print_frame): Check for masked pc.
4492
4493 2019-08-06 Tom Tromey <tom@tromey.com>
4494
4495 * stabsread.c (patch_block_stabs, read_one_struct_field)
4496 (read_enum_type): Use obstack_strndup.
4497 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4498 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4499 * dwarf2read.c (guess_full_die_structure_name)
4500 (anonymous_struct_prefix): Use obstack_strndup.
4501 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4502 * c-exp.y (yylex): Use obstack_strndup.
4503 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4504 (write_var_or_type): Use obstack_strndup.
4505
4506 2019-08-06 Tom Tromey <tom@tromey.com>
4507
4508 * symfile.c (reread_symbols): Use obstack_strdup.
4509 * stabsread.c (read_type): Use obstack_strdup.
4510 * gdb_obstack.h (obstack_strdup): New overload.
4511 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4512 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4513 (dwarf2_canonicalize_name): Use obstack_strdup.
4514 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4515 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4516 Use obstack_strdup.
4517
4518 2019-08-06 Tom Tromey <tom@tromey.com>
4519
4520 * gdb_obstack.h (obstack_strdup): Define.
4521 * gdb_obstack.c (obstack_strdup): Don't define.
4522
4523 2019-08-06 Tom Tromey <tom@tromey.com>
4524
4525 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4526 obstack_strdup.
4527 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4528 obstack_strdup.
4529 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4530 * stabsread.c (common_block_start): Use obstack_strdup.
4531 * objfiles.c (set_objfile_main_name, objfile): Use
4532 obstack_strdup.
4533 * namespace.c (add_using_directive): Use obstack_strdup.
4534 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4535 * jit.c (finalize_symtab): Use obstack_strdup.
4536 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4537 (guess_partial_die_structure_name, partial_die_info::fixup)
4538 (dwarf2_name): Use obstack_strdup.
4539 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4540 obstack_strdup.
4541 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4542 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4543 obstack_strdup.
4544 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4545
4546 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4547
4548 * unittests/help-doc-selftests.c: New file.
4549 * Makefile.in: Add the new file.
4550
4551 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4552
4553 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4554 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4555 the full first line, except when FOR_VALUE_PREFIX. In this case,
4556 the trailing '.' is not output, and the first character is uppercased.
4557 (print_help_for_command): Update call to print_doc_line.
4558 (print_doc_of_command): Likewise.
4559 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4560 * cli/cli-option.c (append_indented_doc): Do not append newline.
4561 (build_help_option): Append newline after first appended_indented_doc
4562 only if a second call is done.
4563 (build_help): Append 2 new lines before each option, except the first
4564 one.
4565 * compile/compile.c (_initialize_compile): Add new lines after
4566 %OPTIONS%, when not at the end of the help.
4567 Change help doc or code
4568 producing the help doc to respect the invariants.
4569 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4570 Also removed the new line after 'Options:', as all other commands
4571 do not put an empty line between 'Options:' and the first option.
4572 * printcmd.c (_initialize_printcmd): Likewise.
4573 * stack.c (_initialize_stack): Likewise.
4574 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4575 incorrectly telling COMMAND is optional.
4576 * ada-lang.c (_initialize_ada_language): Change help doc or code
4577 producing the help doc to respect the invariants.
4578 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4579 * breakpoint.c (_initialize_breakpoint): Likewise.
4580 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4581 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4582 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4583 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4584 _initialize_cli_style): Likewise.
4585 * corelow.c (core_target_info): Likewise.
4586 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4587 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4588 * filesystem.c (_initialize_filesystem): Likewise.
4589 * frame.c (_initialize_frame): Likewise.
4590 * gnu-nat.c (add_task_commands): Likewise.
4591 * infcall.c (_initialize_infcall): Likewise.
4592 * infcmd.c (_initialize_infcmd): Likewise.
4593 * interps.c (_initialize_interpreter): Likewise.
4594 * language.c (_initialize_language): Likewise.
4595 * linux-fork.c (_initialize_linux_fork): Likewise.
4596 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4597 * maint.c (_initialize_maint_cmds): Likewise.
4598 * memattr.c (_initialize_mem): Likewise.
4599 * printcmd.c (_initialize_printcmd): Likewise.
4600 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4601 _RegEx): Likewise.
4602 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4603 * record-btrace.c (_initialize_record_btrace): Likewise.
4604 * record-full.c (_initialize_record_full): Likewise.
4605 * record.c (_initialize_record): Likewise.
4606 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4607 * regcache.c (_initialize_regcache): Likewise.
4608 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4609 _initialize_remote): Likewise.
4610 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4611 * serial.c (_initialize_serial): Likewise.
4612 * skip.c (_initialize_step_skip): Likewise.
4613 * source.c (_initialize_source): Likewise.
4614 * stack.c (_initialize_stack): Likewise.
4615 * symfile.c (_initialize_symfile): Likewise.
4616 * symtab.c (_initialize_symtab): Likewise.
4617 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4618 * top.c (init_main): Likewise.
4619 * tracefile-tfile.c (tfile_target_info): Likewise.
4620 * tracepoint.c (_initialize_tracepoint): Likewise.
4621 * tui/tui-win.c (_initialize_tui_win): Likewise.
4622 * utils.c (add_internal_problem_command): Likewise.
4623 * valprint.c (value_print_option_defs): Likewise.
4624
4625 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4626
4627 PR build/24886
4628 * configure.ac: Drop enable-libmcheck support.
4629 * configure, config.in: Rebuild.
4630 * libmcheck.m4: Remove.
4631 * acinclude.m4: Don't include it.
4632 * Makefile.in: Don't distribute it.
4633 * top.c (print_gdb_configuration): Don't mention it.
4634
4635 2019-08-06 Tom Tromey <tom@tromey.com>
4636
4637 * utils.c (set_output_style): Sometimes pass stream to
4638 emit_style_escape.
4639 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4640 * record-btrace.c (btrace_insn_history): Update.
4641 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4642 method.
4643 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4644 Update initializers.
4645 <m_uiout>: New field.
4646 <m_di>: Move lower.
4647 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4648 Remove "uiout" parameter.
4649 (dump_insns): Update.
4650 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4651 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4652
4653 2019-08-06 Christian Biesinger <cbiesinger@google.com>
4654
4655 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4656 (error_in_psymtab_expansion): Likewise.
4657 (lookup_symbol_via_quick_fns): Likewise.
4658 (basic_lookup_transparent_type_quick): Likewise.
4659 (basic_lookup_transparent_type_1): Likewise.
4660
4661 2019-08-06 Tom Tromey <tromey@adacore.com>
4662
4663 * source.c (last_source_error): Now bool.
4664 (print_source_lines_base): Make "noprint" bool. Only open
4665 source file when last_source_visited changes.
4666
4667 2019-08-06 Tom Tromey <tromey@adacore.com>
4668
4669 * annotate.c (annotate_source_line): Use g_source_cache.
4670 * source-cache.c (source_cache::get_plain_source_lines): Change
4671 parameters. Populate m_offset_cache.
4672 (source_cache::ensure): New method.
4673 (source_cache::get_line_charpos): New method.
4674 (extract_lines): Move lower. Change parameters.
4675 (source_cache::get_source_lines): Move lower.
4676 * source-cache.h (class source_cache): Update comment.
4677 <get_line_charpos>: New method.
4678 <get_source_lines>: Update comment.
4679 <clear>: Clear m_offset_cache.
4680 <get_plain_source_lines>: Change parameters.
4681 <ensure>: New method
4682 <m_offset_cache>: New member.
4683 * source.c (forget_cached_source_info_for_objfile): Update.
4684 (info_source_command): Use g_source_cache.
4685 (find_source_lines, open_source_file_with_line_charpos): Remove.
4686 (print_source_lines_base, search_command_helper): Use g_source_cache.
4687 * source.h (open_source_file_with_line_charpos): Don't declare.
4688 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4689 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4690 Use g_source_cache.
4691
4692 2019-08-06 Tom Tromey <tromey@adacore.com>
4693
4694 * source-cache.c (source_cache::get_plain_source_lines):
4695 Remove "first_line" and "last_line" parameters.
4696 (source_cache::get_source_lines): Cache plain text.
4697 * source-cache.h (class source_cache)
4698 <get_plain_source_lines>: Update.
4699
4700 2019-08-06 Tom Tromey <tromey@adacore.com>
4701
4702 * source-cache.c (extract_lines): No longer a method.
4703 Changed type of parameter. Include final newline.
4704 (selftests::extract_lines_test): New function.
4705 (_initialize_source_cache): Likewise.
4706 * source-cache.h (class source_cache)
4707 <extract_lines>: Don't declare.
4708
4709 2019-08-06 Tom Tromey <tromey@adacore.com>
4710
4711 * breakpoint.c (init_breakpoint_sal): Update.
4712 (breakpoint): Update.
4713 * breakpoint.h (struct breakpoint) <filter>: Now a
4714 unique_xmalloc_ptr.
4715
4716 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4717
4718 * NEWS: Mention dictionary access on blocks.
4719 * python/py-block.c (blpy_getitem): New function.
4720 (block_object_as_mapping): New struct.
4721 (block_object_type): Use new struct for tp_as_mapping field.
4722
4723 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4724
4725 * objfiles.h (objfile): Add a comment describing partial symbols.
4726
4727 2019-08-05 Tom Tromey <tromey@adacore.com>
4728
4729 * compile/compile.c (_initialize_compile): Use _(), not N_().
4730 * thread.c (_initialize_thread): Use _(), not N_().
4731 * stack.c (_initialize_stack): Use _(), not N_().
4732 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4733
4734 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4735
4736 * dwarf2read.c (struct dw2_symtab_iterator):
4737 <want_specific_block>: Remove.
4738 <block_index>: Change type to gdb::optional.
4739 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4740 change type of BLOCK_INDEX parameter to gdb::optional.
4741 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4742 (dw2_lookup_symbol): Don't pass argument for
4743 WANT_SPECIFIC_BLOCK.
4744 (dw2_expand_symtabs_for_function): Don't pass argument for
4745 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4746 (class dw2_debug_names_iterator)
4747 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4748 parameter, change BLOCK_INDEX type to gdb::optional.
4749 <m_want_specific_block>: Remove.
4750 <m_block_index>: Change type to gdb::optional.
4751 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4752 gdb::optional. Re-write in function of gdb::optional.
4753 (dw2_debug_names_lookup_symbol): Don't pass argument for
4754 WANT_SPECIFIC_BLOCK.
4755 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4756 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4757 BLOCK_INDEX.
4758
4759 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4760
4761 * NEWS: Mention changes to "info sources" command.
4762
4763 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4764
4765 * symtab.c (filename_partial_match_opts): New struct type.
4766 (struct output_source_filename_data): New members
4767 regexp, c_regexp, partial_match.
4768 (output_source_filename): Use new members to decide to print file.
4769 (info_sources_option_defs): New variable.
4770 (make_info_sources_options_def_group, print_info_sources_header,
4771 info_sources_command_completer):
4772 New functions.
4773 (info_sources_command): Read new optional arguments.
4774 (_initialize_symtab): Update info sources help.
4775
4776 2019-08-02 Alexandre Oliva <oliva@adacore.com>
4777
4778 * ada-lang.c (exception_support_info_v0): Renamed from...
4779 (default_exception_support_info): ... this. Create new
4780 definition for v1.
4781 (ada_has_this_exception_support): Look up catch_handlers_sym.
4782 (ada_exception_support_info_sniffer): Try v0 after default.
4783
4784 2019-08-01 Tom Tromey <tromey@adacore.com>
4785
4786 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4787 gdbarch.h.
4788
4789 2019-08-01 Christian Biesinger <cbiesinger@google.com>
4790
4791 * s12z-tdep.c: Fix include path for s12z-opc.h.
4792
4793 2019-08-01 Alan Hayward <alan.hayward@arm.com>
4794
4795 * NEWS: Require GNU make 3.82.
4796
4797 2019-07-16 Tom Tromey <tom@tromey.com>
4798
4799 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4800 declare.
4801
4802 2019-07-30 Tom Tromey <tromey@adacore.com>
4803
4804 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4805
4806 2019-07-30 Kevin Buettner <kevinb@redhat.com>
4807
4808 * printcmd.c (print_address_symbolic): Print negative offsets.
4809 (build_address_symbolic): Force signed arithmetic when computing
4810 offset.
4811
4812 2019-07-30 Christian Biesinger <cbiesinger@google.com>
4813
4814 PR/24474: Add a function to lookup static variables.
4815 * NEWS: Mention this new function.
4816 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4817 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4818 * python/python.c (python_GdbMethods): Add new function.
4819
4820 2019-07-29 Christian Biesinger <cbiesinger@google.com>
4821
4822 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4823 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4824 (objfpy_lookup_static_symbol): New function.
4825 (objfile_object_methods): Add new functions.
4826
4827 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4828
4829 * NEWS: Mention 'set|show print frame-info'. Mention new
4830 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4831 backtrace argument. Mention that python frame filtering code
4832 is now consistent with what 'backtrace' command prints.
4833
4834 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4835
4836 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4837 comments.
4838 (print_frame_info_auto, print_frame_info_source_line,
4839 print_frame_info_location, print_frame_info_source_and_location,
4840 print_frame_info_location_and_address, print_frame_info_short_location):
4841 New declarations.
4842 (struct frame_print_options): New member print_frame_info.
4843 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
4844 * stack.h (get_user_print_what_frame_info): New declaration.
4845 (frame_show_address): New declaration.
4846 * stack.c (print_frame_arguments_choices): New value 'presence'.
4847 (print_frame_info_auto, print_frame_info_source_line,
4848 print_frame_info_location, print_frame_info_source_and_location,
4849 print_frame_info_location_and_address, print_frame_info_short_location,
4850 print_frame_info_choices, print_frame_info_print_what): New definitions.
4851 (print_frame_args): Only print dots for args if print frame-arguments
4852 is 'presence'.
4853 (frame_print_option_defs): New element for "frame-info".
4854 (get_user_print_what_frame_info): New function.
4855 (frame_show_address): Make non static. Move comment to stack.h.
4856 (print_frame_info_to_print_what): New function.
4857 (print_frame_info): Update comment. Use fp_opts.print_frame_info
4858 to decide what to print.
4859 (backtrace_command_1): Handle the new print_frame_arguments_presence
4860 value.
4861 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
4862 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
4863 (py_print_frame): In non-mi mode, use LOCATION as default for
4864 print_what, similarly to frame information printed directly by
4865 backtrace command. Handle frame-info user option in non MI mode.
4866
4867 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4868
4869 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
4870 Add case for debugging 32-bit target on 64-bit host. Revise
4871 comment.
4872
4873 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4874
4875 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
4876 instead of find_function_entry_range_from_pc.
4877
4878 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4879
4880 * stack.c (find_frame_funname): Remove code which preferred
4881 minsym over symtab sym in "certain pathological cases".
4882
4883 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
4884 parameter. Change type of "do_demangle" to bool.
4885 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4886 Pass suitable "prefer_sym_over_minsym" flag to
4887 build_address_symbolic(). Don't output "+" for negative offsets.
4888 * printcmd.c (print_address_symbolic): Update invocation of
4889 build_address_symbolic to include a "prefer_sym_over_minsym"
4890 flag.
4891 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
4892 Restrict cases in which use of minimal symbol is preferred to that
4893 of a found symbol. Update comments.
4894
4895 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
4896 for entry pc when entry pc is out of range for that FDE.
4897
4898 2019-07-26 Brian Callahan <bcallah@openbsd.org>
4899
4900 PR gdb/24839:
4901 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
4902 type.
4903
4904 2019-07-25 Christian Biesinger <cbiesinger@google.com>
4905
4906 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4907 this function's Python signature.
4908
4909
4910 2019-07-24 Christian Biesinger <cbiesinger@google.com>
4911
4912 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
4913 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4914 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4915 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
4916 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
4917
4918
4919 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4920
4921 * h8300-tdep.c (h8300_register_name_common): New.
4922 h8300_register_name): Use h8300_register_name_common.
4923 (h8300s_register_name): Likewise.
4924 (h8300sx_register_name): Likewise.
4925 (h8300h_register_nam): New.
4926 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4927
4928
4929 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4930
4931 * arm-tdep.c (arm_skip_cmse_entry): New function.
4932 (arm_is_sgstubs_section): New function.
4933 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
4934
4935 2019-07-22 Tom Tromey <tom@tromey.com>
4936
4937 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
4938 Don't self-assign.
4939
4940 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4941
4942 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
4943 type_print.
4944
4945 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4946
4947 * symtab.c (search_symbols): Adjust msymbol matching type arrays
4948 so that GDB doesn't match any msymbols when searching in the
4949 TYPES_DOMAIN.
4950 (print_symbol_info): Print using typedef_print or type_print based
4951 on the type of the symbol. Add updated FIXME comment moved from...
4952 (_initialize_symtab): ... move and update FIXME comment to above.
4953
4954 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4955
4956 * NEWS: Mention adding -q option to "info types".
4957 * symtab.c (struct info_types_options): New struct.
4958 (info_types_options_defs): New variable.
4959 (make_info_types_options_def_group): New function.
4960 (info_types_command): Use gdb::option framework to parse options.
4961 (info_types_command_completer): New function.
4962 (_initialize_symtab): Extend the help text on "info types" and
4963 register command completer.
4964
4965 2019-07-21 Christian Biesinger <cbiesinger@google.com>
4966
4967 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
4968 (lookup_symbol_in_objfile): Change int to block_enum and add a
4969 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
4970
4971 2019-07-20 Christian Biesinger <cbiesinger@google.com>
4972
4973 * MAINTAINERS (Write After Approval): Add self.
4974
4975 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
4976
4977 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
4978 instruction to the dummy code region.
4979
4980 2019-07-19 Tom Tromey <tromey@adacore.com>
4981
4982 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
4983 (ARGSUSED, PARAMS, __func__): Remove rules.
4984
4985 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4986
4987 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
4988 * features/arm/arm-with-iwmmxt.c: Remove.
4989 * features/arm/arm-with-iwmmxt.xml: Remove.
4990 * features/arm/arm-with-m-fpa-layout.c: Remove.
4991 * features/arm/arm-with-m-fpa-layout.xml: Remove.
4992 * features/arm/arm-with-m-vfp-d16.c: Remove.
4993 * features/arm/arm-with-m-vfp-d16.xml: Remove.
4994 * features/arm/arm-with-m.c: Remove.
4995 * features/arm/arm-with-m.xml: Remove.
4996 * features/arm/arm-with-neon.c: Remove.
4997 * features/arm/arm-with-neon.xml: Remove.
4998 * features/arm/arm-with-vfpv2.c: Remove.
4999 * features/arm/arm-with-vfpv2.xml: Remove.
5000 * features/arm/arm-with-vfpv3.c: Remove.
5001 * features/arm/arm-with-vfpv3.xml: Remove.
5002
5003 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5004
5005 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5006
5007 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5008
5009 * arch/aarch32.c (aarch32_create_target_description): Create
5010 target descriptions using features.
5011 * arch/arm.c (arm_create_target_description)
5012 (arm_create_mprofile_target_description): Likewise.
5013 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5014
5015 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5016
5017 * Makefile.in: Add new files.
5018 * aarch32-tdep.c: New file.
5019 * aarch32-tdep.h: New file.
5020 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5021 Call aarch32_read_description.
5022 * arch/aarch32.c: New file.
5023 * arch/aarch32.h: New file.
5024 * arch/arm.c (arm_create_target_description)
5025 (arm_create_mprofile_target_description): New function.
5026 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5027 (arm_create_target_description)
5028 (arm_create_mprofile_target_description): New declaration.
5029 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5030 read_description functions.
5031 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5032 Likewise.
5033 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5034 * arm-tdep.c (tdesc_arm_list): New variable.
5035 (arm_register_g_packet_guesses): Call create description functions.
5036 (arm_read_description) (arm_read_mprofile_description): New
5037 function.
5038 * arm-tdep.h (arm_read_description)
5039 (arm_read_mprofile_description): Add declaration.
5040 * configure.tgt: Add new files.
5041
5042 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5043
5044 * top.c (new_ui_command): Open specified terminal just once.
5045
5046 2019-07-18 Tom Tromey <tromey@adacore.com>
5047
5048 * symtab.c (main_name): Constify return type.
5049 * symfile.c (set_initial_language): Update.
5050 * symtab.h (main_name): Constify return type.
5051
5052 2019-07-17 Tom Tromey <tom@tromey.com>
5053
5054 * tui/tui-winsource.c (tui_update_source_window)
5055 (tui_update_source_window_as_is)
5056 (tui_update_source_windows_with_line): Remove return.
5057 * tui/tui-disasm.c (tui_show_disassem)
5058 (tui_show_disassem_and_update_source): Remove return.
5059 * tui/tui.c (tui_reset): Remove return.
5060 * tui/tui-wingeneral.c
5061 (tui_check_and_display_highlight_if_needed): Remove return.
5062
5063 2019-07-17 Tom Tromey <tom@tromey.com>
5064
5065 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5066
5067 2019-07-17 Tom Tromey <tom@tromey.com>
5068
5069 * tui/tui-winsource.h (struct tui_exec_info_window)
5070 (struct tui_source_window_base): Move from tui-data.h.
5071 * tui/tui-winsource.c: Move many method definitions from
5072 elsewhere. Remove "structuring" comments.
5073 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5074 (tui_source_window_base::refresh_window): Move to
5075 tui-winsource.c.
5076 * tui/tui-win.c (tui_source_window_base::refresh_all)
5077 (tui_source_window_base::update_tab_width)
5078 (tui_source_window_base::set_new_height)
5079 (tui_source_window_base::do_make_visible_with_new_height): Move to
5080 tui-winsource.c.
5081 * tui/tui-source.h: Update.
5082 * tui/tui-source.c (tui_source_window_base::reset): Move to
5083 tui-winsource.c.
5084 * tui/tui-disasm.h: Update.
5085 * tui/tui-data.h (struct tui_exec_info_window): Move to
5086 tui-winsource.h.
5087 (struct tui_source_window_base): Likewise.
5088 * tui/tui-data.c (tui_source_window_base::clear_detail)
5089 (tui_source_window_base, ~tui_source_window_base): Move to
5090 tui-winsource.c.
5091
5092 2019-07-17 Tom Tromey <tom@tromey.com>
5093
5094 * tui/tui-win.c (tui_resize_all)
5095 (tui_source_window_base::update_tab_width)
5096 (tui_adjust_win_heights): Update.
5097 (tui_win_info::make_invisible_and_set_new_height): Rename from
5098 make_invisible_and_set_new_height.
5099 * tui/tui-data.h (struct tui_win_info)
5100 <make_invisible_and_set_new_height>: New method.
5101
5102 2019-07-17 Tom Tromey <tom@tromey.com>
5103
5104 * tui/tui.c: Update.
5105 * tui/tui-source.h (struct tui_source_window): Move from
5106 tui-data.h.
5107 * tui/tui-layout.c: Update.
5108 * tui/tui-disasm.c: Update.
5109 * tui/tui-data.h (struct tui_source_window): Move to
5110 tui-source.h.
5111
5112 2019-07-17 Tom Tromey <tom@tromey.com>
5113
5114 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5115 tui-data.h.
5116 * tui/tui-data.h (struct tui_disasm_window): Move to
5117 tui-disasm.h.
5118
5119 2019-07-17 Tom Tromey <tom@tromey.com>
5120
5121 * tui/tui-regs.h (struct tui_data_item_window): Move from
5122 tui-data.h.
5123 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5124 * tui/tui-data.h (struct tui_data_item_window): Move to
5125 tui-regs.h.
5126 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5127
5128 2019-07-17 Tom Tromey <tom@tromey.com>
5129
5130 * tui/tui.c: Update.
5131 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5132 (tui_cmd_window::max_height): Move to tui-command.c.
5133 * tui/tui-layout.c: Update.
5134 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5135 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5136 tui-command.c.
5137 * tui/tui-command.h (struct tui_cmd_window): Move from
5138 tui-data.h.
5139 * tui/tui-command.c: Remove "structuring" comments.
5140 (tui_cmd_window::clear_detail)
5141 (tui_cmd_window::do_make_visible_with_new_height)
5142 (tui_cmd_window::max_height): Move from elsewhere.
5143
5144 2019-07-17 Tom Tromey <tom@tromey.com>
5145
5146 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5147 Now static.
5148 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5149 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5150
5151 2019-07-17 Tom Tromey <tom@tromey.com>
5152
5153 * tui/tui.c: Update.
5154 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5155 tui-regs.c.
5156 * tui/tui-windata.h: Remove file.
5157 * tui/tui-windata.c: Remove file.
5158 * tui/tui-win.c (tui_data_window::set_new_height)
5159 (tui_data_window::do_make_visible_with_new_height): Move to
5160 tui-regs.c.
5161 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5162 * tui/tui-regs.c: Remove "structuring" comments.
5163 (tui_data_window::first_data_item_displayed)
5164 (tui_data_window::delete_data_content_windows)
5165 (tui_data_window::erase_data_content)
5166 (tui_data_window::display_all_data)
5167 (tui_data_window::refresh_all)
5168 (tui_data_window::do_scroll_vertical)
5169 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5170 (tui_data_window::do_make_visible_with_new_height)
5171 (tui_data_window::refresh_window): Move from elsewhere.
5172 (_initialize_tui_regs): Move to end of file.
5173 * tui/tui-layout.c: Update.
5174 * tui/tui-hooks.c: Update.
5175 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5176 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5177 tui-regs.c.
5178 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5179
5180 2019-07-17 Tom Tromey <tom@tromey.com>
5181
5182 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5183 seen.
5184
5185 2019-07-17 Tom Tromey <tom@tromey.com>
5186
5187 * tui/tui-win.c (tui_source_window_base::set_new_height)
5188 (tui_source_window_base::do_make_visible_with_new_height): Use
5189 m_has_locator field directly.
5190 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5191 method.
5192 (struct tui_source_window_base) <has_locator>: Likewise.
5193
5194 2019-07-17 Tom Tromey <tom@tromey.com>
5195
5196 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5197 Don't declare.
5198 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5199 Remove.
5200 * tui/tui-win.c (tui_source_window_base::set_new_height)
5201 (tui_source_window_base::set_new_height)
5202 (make_invisible_and_set_new_height)
5203 (tui_source_window_base::do_make_visible_with_new_height)
5204 (tui_source_window_base::do_make_visible_with_new_height):
5205 Update.
5206 * tui/tui-layout.c (show_source_disasm_command, show_data)
5207 (show_source_or_disasm_and_command): Update.
5208 * tui/tui-layout.c (show_layout): Update.
5209
5210 2019-07-17 Tom Tromey <tom@tromey.com>
5211
5212 * tui/tui-layout.c (make_data_window): Remove.
5213 (show_data): Unify creation and re-initialization cases.
5214
5215 2019-07-17 Tom Tromey <tom@tromey.com>
5216
5217 * tui/tui-layout.c (make_source_window, make_disasm_window):
5218 Remove.
5219 (show_data): Unify creation and re-initialization cases.
5220
5221 2019-07-17 Tom Tromey <tom@tromey.com>
5222
5223 * tui/tui-layout.c (make_command_window): Remove.
5224 (show_source_disasm_command, show_source_or_disasm_and_command):
5225 Unify creation and re-initialization cases.
5226
5227 2019-07-17 Tom Tromey <tom@tromey.com>
5228
5229 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5230 creation and re-initialization cases.
5231
5232 2019-07-17 Tom Tromey <tom@tromey.com>
5233
5234 * tui/tui-regs.c (tui_get_register): Return void.
5235
5236 2019-07-17 Tom Tromey <tom@tromey.com>
5237
5238 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5239 Simplify.
5240
5241 2019-07-17 Tom Tromey <tom@tromey.com>
5242
5243 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5244 resetting.
5245
5246 2019-07-17 Tom Tromey <tom@tromey.com>
5247
5248 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5249 * tui/tui-regs.c (tui_reg_layout): New function.
5250 (tui_show_registers, tui_reg_command): Use it.
5251 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5252 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5253 parameters.
5254 (tui_layout_command): Remove.
5255
5256 2019-07-17 Tom Tromey <tom@tromey.com>
5257
5258 * tui/tui-layout.h (tui/tui-layout): Return void.
5259 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5260
5261 2019-07-17 Tom Tromey <tom@tromey.com>
5262
5263 * tui/tui-layout.c (show_source_disasm_command, show_data):
5264 Update.
5265 (reset_locator): Remove.
5266 (show_source_or_disasm_and_command): Update.
5267
5268 2019-07-17 Tom Tromey <tom@tromey.com>
5269
5270 * tui/tui-source.c (tui_source_window_base::reset): Remove
5271 win_type parameter.
5272 * tui/tui-layout.c (make_command_window, make_source_window)
5273 (make_disasm_window, make_data_window)
5274 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5275 (reset_locator, show_source_or_disasm_and_command): Update.
5276 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5277 win_type parameter.
5278 (struct tui_source_window_base) <reset>: Likewise.
5279
5280 2019-07-17 Tom Tromey <tom@tromey.com>
5281
5282 * tui/tui-layout.c (show_source_disasm_command): Use
5283 reset_locator.
5284 (reset_locator): New function.
5285 (init_and_make_win): Remove.
5286 (show_source_or_disasm_and_command): Use reset_locator.
5287
5288 2019-07-17 Tom Tromey <tom@tromey.com>
5289
5290 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5291 condition.
5292 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5293 Remove condition.
5294 * tui/tui-source.c (tui_source_window_base::reset): New method.
5295 * tui/tui-layout.c (make_command_window): Don't call
5296 init_and_make_win.
5297 (make_source_window, make_disasm_window): Don't call
5298 make_source_or_disasm_window.
5299 (make_data_window): Don't call init_and_make_win. Change calling
5300 convention.
5301 (show_source_disasm_command, show_data): Simplify.
5302 (make_source_or_disasm_window): Remove.
5303 (show_source_or_disasm_and_command): Simplify.
5304 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5305 (struct tui_source_window_base) <reset>: Likewise.
5306 <execution_info>: Remove initializer.
5307 * tui/tui-data.c (tui_source_window_base): Initialize
5308 execution_info.
5309
5310 2019-07-17 Tom Tromey <tom@tromey.com>
5311
5312 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5313 variable.
5314
5315 2019-07-17 Tom Tromey <tom@tromey.com>
5316
5317 * tui/tui.c (tui_rl_other_window): Update.
5318 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5319 superclass method first. Always iterate over regs_content.
5320 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5321 method.
5322 * tui/tui-win.c (tui_set_focus_command): Update.
5323
5324 2019-07-17 Tom Tromey <tom@tromey.com>
5325
5326 * tui/tui-win.c (tui_set_focus_command): Rename from
5327 tui_set_focus. Call tui_enable.
5328 (tui_set_focus_command): Remove.
5329
5330 2019-07-17 Tom Tromey <tom@tromey.com>
5331
5332 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5333 refresh_window.
5334 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5335 touchwin.
5336 (tui_data_window::refresh_window): Call refresh_window on data
5337 items. Always call superclass refresh_window.
5338 (tui_win_info::refresh): Remove.
5339 (tui_source_window_base::refresh_window): Update.
5340 (tui_refresh_all): Update.
5341 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5342 refresh_window.
5343 (show_source_or_disasm_and_command): Likewise.
5344 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5345 (struct tui_source_window_base) <refresh>: Likewise.
5346
5347 2019-07-17 Tom Tromey <tom@tromey.com>
5348
5349 * tui/tui-winsource.c (tui_clear_source_content)
5350 (tui_show_source_content): Update.
5351 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5352 whether content is empty.
5353 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5354 Remove.
5355
5356 2019-07-17 Tom Tromey <tom@tromey.com>
5357
5358 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5359 window's contents.
5360 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5361 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5362
5363 2019-07-17 Tom Tromey <tom@tromey.com>
5364
5365 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5366 (struct tui_data_item_window): Update.
5367
5368 2019-07-17 Tom Tromey <tom@tromey.com>
5369
5370 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5371 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5372 defines.
5373
5374 2019-07-17 Tom Tromey <tom@tromey.com>
5375
5376 * tui/tui-winsource.h (tui_erase_source_content)
5377 (tui_clear_source_content): Remove "display_prompt" parameter.
5378 * tui/tui-winsource.c (tui_update_source_window_as_is)
5379 (tui_update_source_windows_with_addr): Update.
5380 (tui_clear_source_content): Remove "display_prompt" parameter.
5381 (tui_erase_source_content): Likewise. Simplify.
5382 (tui_show_source_content): Update.
5383 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5384 * tui/tui-stack.c (tui_show_frame_info): Update.
5385 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5386 Remove defines.
5387
5388 2019-07-17 Tom Tromey <tom@tromey.com>
5389
5390 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5391 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5392 parameter.
5393 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5394 parameter.
5395
5396 2019-07-17 Tom Tromey <tom@tromey.com>
5397
5398 * tui/tui-winsource.c (tui_clear_source_content)
5399 (tui_show_source_content, tui_show_exec_info_content)
5400 (tui_clear_exec_info_content): Update.
5401 * tui/tui-stack.c (tui_show_locator_content): Update.
5402 (tui_show_frame_info): Update.
5403 * tui/tui-source.h (tui_source_window): Don't declare.
5404 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5405 from tui_source_is_displayed.
5406 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5407 Remove field.
5408 (struct tui_source_window_base) <content_in_use>: New field. Now
5409 bool.
5410 (struct tui_source_window) <showing_source_p>: New method.
5411 (TUI_SRC_WIN): Change cast.
5412 * tui/tui-data.c (tui_initialize_static_data): Update.
5413
5414 2019-07-17 Tom Tromey <tom@tromey.com>
5415
5416 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5417 location_matches_p.
5418 * tui/tui-source.c (tui_source_window::location_matches_p): New
5419 method.
5420 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5421 method.
5422 * tui/tui-data.h (struct tui_source_window_base)
5423 <location_matches_p>: New method.
5424 (struct tui_source_window, struct tui_disasm_window)
5425 <location_matches_p>: Likewise.
5426
5427 2019-07-17 Tom Tromey <tom@tromey.com>
5428
5429 * tui/tui-win.c (tui_set_win_height_command): Rename from
5430 tui_set_win_height.
5431 (tui_set_win_height_command): Remove.
5432
5433 2019-07-17 Tom Tromey <tom@tromey.com>
5434
5435 * tui/tui-source.c (tui_source_window): New constructor. Add
5436 observer.
5437 (~tui_source_window): New destructor.
5438 (tui_source_window::style_changed): New method.
5439 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5440 (tui_attach_detach_observers): Update.
5441 * tui/tui-data.h (struct tui_source_window): Make constructor not
5442 inline. Add destructor.
5443 (struct tui_source_window) <style_changed>: New method.
5444 <m_observable>: New member.
5445
5446 2019-07-17 Tom Tromey <tom@tromey.com>
5447
5448 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5449 * tui/tui-win.c (tui_resize_all): Fix typo.
5450
5451 2019-07-17 Tom Tromey <tom@tromey.com>
5452
5453 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5454 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5455 (tui_refresh_all): Remove "list" parameter. Use foreach.
5456 * tui/tui-win.c (window_name_completer): Use foreach.
5457 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5458 (update_tab_width): Likewise.
5459 * tui/tui-layout.c (show_layout): Update.
5460 * tui/tui-data.h (class tui_window_iterator): New.
5461 (struct all_tui_windows): New.
5462 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5463
5464 2019-07-17 Tom Tromey <tom@tromey.com>
5465
5466 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5467 parameter. Don't reference globals.
5468 (tui_reg_command): Update.
5469
5470 2019-07-17 Tom Tromey <tom@tromey.com>
5471
5472 * tui/tui-regs.c (tui_show_registers): Simplify.
5473
5474 2019-07-17 Tom Tromey <tom@tromey.com>
5475
5476 * tui/tui-regs.c (tui_show_registers): Update.
5477 (tui_show_register_group): Add win_info parameter.
5478
5479 2019-07-17 Tom Tromey <tom@tromey.com>
5480
5481 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5482 Rename from tui_display_reg_element_at_line.
5483 (tui_data_window::display_registers_from_line): Update.
5484 * tui/tui-data.h (struct tui_data_window)
5485 <display_reg_element_at_line>: New method.
5486
5487 2019-07-17 Tom Tromey <tom@tromey.com>
5488
5489 * tui/tui-regs.h (tui_display_registers_from)
5490 (tui_display_registers_from_line): Don't declare.
5491 * tui/tui-windata.c (tui_data_window::display_all_data)
5492 (tui_data_window::refresh_all)
5493 (tui_data_window::do_scroll_vertical): Update.
5494 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5495 from tui_display_registers_from.
5496 (tui_display_reg_element_at_line): Update.
5497 (tui_data_window::display_registers_from_line): Rename from
5498 tui_display_registers_from_line.
5499 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5500 display_registers_from_line>: New methods.
5501
5502 2019-07-17 Tom Tromey <tom@tromey.com>
5503
5504 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5505 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5506 from tui_erase_data_content.
5507 (tui_data_window::display_all_data)
5508 (tui_data_window::refresh_all)
5509 (tui_data_window::do_scroll_vertical): Update.
5510 * tui/tui-regs.c (tui_show_registers): Update.
5511 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5512 New method.
5513
5514 2019-07-17 Tom Tromey <tom@tromey.com>
5515
5516 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5517 declare.
5518 * tui/tui-windata.c
5519 (tui_data_window::delete_data_content_windows): Rename from
5520 tui_delete_data_content_windows.
5521 (tui_data_window::display_all_data)
5522 (tui_data_window::do_scroll_vertical): Update.
5523 * tui/tui-data.h (struct tui_data_window)
5524 <delete_data_content_windows>: New method.
5525
5526 2019-07-17 Tom Tromey <tom@tromey.com>
5527
5528 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5529 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5530
5531 2019-07-17 Tom Tromey <tom@tromey.com>
5532
5533 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5534 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5535 from tui_display_all_data.
5536 * tui/tui-win.c
5537 (tui_data_window::do_make_visible_with_new_height): Update.
5538 * tui/tui-regs.c (tui_show_registers): Update.
5539 * tui/tui-layout.c (tui_set_layout): Update.
5540 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5541 method.
5542
5543 2019-07-17 Tom Tromey <tom@tromey.com>
5544
5545 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5546 * tui/tui-windata.c (tui_display_data_from): Remove.
5547 (tui_data_window::refresh_all): Update.
5548
5549 2019-07-17 Tom Tromey <tom@tromey.com>
5550
5551 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5552 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5553 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5554 tui_display_registers_from_line.
5555 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5556 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5557 "force_display" parameter.
5558
5559 2019-07-17 Tom Tromey <tom@tromey.com>
5560
5561 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5562 declare.
5563 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5564 Rename from tui_first_reg_element_no_inline.
5565 (tui_display_reg_element_at_line)
5566 (tui_display_registers_from_line): Update.
5567 * tui/tui-data.h (struct tui_data_window)
5568 <first_reg_element_no_inline>: New method.
5569
5570 2019-07-17 Tom Tromey <tom@tromey.com>
5571
5572 * tui/tui-windata.c (tui_display_data_from)
5573 (tui_data_window::do_scroll_vertical): Update.
5574 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5575 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5576 Rename from tui_line_from_reg_element_no.
5577 (tui_display_registers_from_line): Update.
5578 * tui/tui-data.h (struct tui_data_window)
5579 <line_from_reg_element_no>: New method.
5580
5581 2019-07-17 Tom Tromey <tom@tromey.com>
5582
5583 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5584 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5585 tui_last_regs_line_no.
5586 (tui_display_reg_element_at_line)
5587 (tui_display_registers_from_line): Update.
5588 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5589 method.
5590
5591 2019-07-17 Tom Tromey <tom@tromey.com>
5592
5593 PR tui/24722:
5594 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5595 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5596 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5597 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5598 (tui_update_breakpoint_info): Likewise.
5599 * tui/tui-hooks.c (tui_event_create_breakpoint)
5600 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5601 Update.
5602
5603 2019-07-17 Tom Tromey <tom@tromey.com>
5604
5605 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5606
5607 2019-07-17 Tom Tromey <tom@tromey.com>
5608
5609 * tui/tui-winsource.c (tui_update_source_window_as_is)
5610 (tui_update_source_windows_with_addr): Update.
5611 * tui/tui-source.h (tui_set_source_content)
5612 (tui_show_symtab_source): Add "win_info" parameter.
5613 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5614 parameter.
5615 (tui_show_symtab_source): Likewise.
5616
5617 2019-07-17 Tom Tromey <tom@tromey.com>
5618
5619 * tui/tui-wingeneral.c
5620 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5621
5622 2019-07-17 Tom Tromey <tom@tromey.com>
5623
5624 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5625 (struct tui_cmd_window) <can_scroll>: New method.
5626 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5627 method.
5628
5629 2019-07-17 Tom Tromey <tromey@adacore.com>
5630
5631 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5632 do_field_signed>: Rename. Change type of "value".
5633 * ui-out.c (ui_out::field_signed): Rename from field_int.
5634 Change type of "value".
5635 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5636 type of "value".
5637 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5638 do_field_int. Change type of "value".
5639 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5640 do_field_int. Change type of "value".
5641 * tracepoint.c (trace_status_mi, tfind_1)
5642 (print_one_static_tracepoint_marker): Update.
5643 * thread.c (print_thread_info_1, print_selected_thread_frame):
5644 Update.
5645 * stack.c (print_frame, print_frame_info): Update.
5646 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5647 Update.
5648 * source.c (print_source_lines_base): Update.
5649 * skip.c (info_skip_command): Update.
5650 * record-btrace.c (btrace_ui_out_decode_error)
5651 (btrace_call_history_src_line): Update.
5652 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5653 Update.
5654 * progspace.c (print_program_space): Update.
5655 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5656 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5657 do_field_int. Change type of "value".
5658 * mi/mi-out.c (mi_ui_out::do_table_begin)
5659 (mi_ui_out::do_table_header): Update.
5660 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5661 type of "value".
5662 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5663 (mi_cmd_data_list_changed_registers, output_register)
5664 (mi_cmd_data_read_memory, mi_load_progress)
5665 (mi_cmd_trace_frame_collected): Update.
5666 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5667 Update.
5668 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5669 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5670 (mi_cmd_var_list_children, varobj_update_one): Update.
5671 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5672 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5673 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5674 * inferior.c (print_inferior): Update.
5675 * gdb_bfd.c (print_one_bfd): Update.
5676 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5677 Update.
5678 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5679 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5680 do_field_int. Change type of "value".
5681 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5682 do_field_int. Change type of "value".
5683 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5684 (print_one_breakpoint_location, print_it_catch_fork)
5685 (print_one_catch_fork, print_it_catch_vfork)
5686 (print_one_catch_vfork, print_it_catch_solib)
5687 (print_it_catch_exec, print_it_ranged_breakpoint)
5688 (print_mention_watchpoint, print_mention_masked_watchpoint)
5689 (bkpt_print_it, update_static_tracepoint): Update.
5690 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5691 * break-catch-syscall.c (print_it_catch_syscall): Update.
5692 * ada-tasks.c (print_ada_task_info): Update.
5693 * ada-lang.c (print_it_exception, print_mention_exception):
5694 Update.
5695
5696 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5697
5698 PR breakpoints/24541
5699 * gdbarch.c: Regenerate.
5700 * gdbarch.h: Regenerate.
5701 * gdbarch.sh: Adjust return type and parameter types for
5702 'stap_adjust_register'.
5703 (i386_stap_adjust_register): Adjust signature and return new
5704 register name.
5705 * stap-probe.c (stap_parse_register_operand): Adjust use of
5706 'gdbarch_stap_adjust_register'.
5707
5708 2019-07-17 Tom Tromey <tromey@adacore.com>
5709
5710 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5711 declare VEC.
5712 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5713 std::vector.
5714 (struct s390_process_info): Add initializers.
5715 (s390_add_process): Use new.
5716 (s390_linux_nat_target::low_forget_process): Use delete.
5717 (s390_linux_nat_target::low_new_fork)
5718 (s390_linux_nat_target::stopped_by_watchpoint)
5719 (s390_linux_nat_target::low_prepare_to_resume)
5720 (s390_linux_nat_target::insert_watchpoint)
5721 (s390_linux_nat_target::insert_hw_breakpoint)
5722 (s390_linux_nat_target::remove_watchpoint)
5723 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5724
5725 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5726
5727 * aarch64-fbsd-nat.c: Include regcache.h.
5728 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5729 argument.
5730 (aarch64_fbsd_nat_target::fetch_registers)
5731 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5732 variable.
5733 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5734
5735 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5736
5737 * fbsd-nat.c: Include gdbarch.h.
5738
5739 2019-07-15 Tom Tromey <tromey@adacore.com>
5740
5741 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5742
5743 2019-07-15 Tom Tromey <tromey@adacore.com>
5744
5745 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5746 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5747 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5748 * cli-out.c (cli_ui_out::do_field_int): New method.
5749 * ui-out.c (ui_out::field_unsigned): New method.
5750 * symfile.c (generic_load): Use field_unsigned.
5751 (print_transfer_performance): Likewise.
5752 * record-btrace.c (ui_out_field_uint): Remove.
5753 (btrace_call_history_insn_range, btrace_call_history): Use
5754 field_unsigned.
5755 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5756 field_unsigned.
5757 * ui-out.h (class ui_out) <field_unsigned>: New method.
5758 <do_field_unsigned>: Likewise.
5759
5760 2019-07-15 Tom Tromey <tromey@adacore.com>
5761
5762 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5763 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5764 * target.c (flash_erase_command): Use field_string.
5765 * infrun.c (print_signal_received_reason): Use field_string.
5766 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5767 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5768 field_string.
5769 * ada-tasks.c (print_ada_task_info): Use field_string.
5770
5771 2019-07-15 Tom Tromey <tromey@adacore.com>
5772
5773 * target.c (flash_erase_command): Use field_core_addr.
5774 * symfile.c (generic_load): Use field_core_addr.
5775 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5776 Use field_core_addr.
5777 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5778 field_core_addr.
5779
5780 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5781
5782 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5783 value if its desired type is smaller than a CORE_ADDR and signed.
5784
5785 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5786
5787 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5788 of changes to field names, and use new is_reference field to
5789 decide if a property is a reference or not.
5790 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5791 field.
5792 (struct dwarf2_property_baton): Update header comment, rename
5793 'referenced_type' to 'property_type' and update comments.
5794 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5795 default property type, store in property baton, update to take
5796 accound of renamed field.
5797 (read_func_scope): Update call to attr_to_dynamic_prop.
5798 (read_array_type): Likewise.
5799 (dwarf2_per_cu_addr_sized_int_type): New function.
5800 (read_subrange_index_type): Move type finding code to
5801 dwarf2_per_cu_addr_sized_int_type.
5802 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5803 (dwarf2_per_cu_addr_type): New function.
5804 (set_die_type): Update calls to attr_to_dynamic_prop.
5805
5806 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5807
5808 * dwarf2read.c (read_subrange_index_type): New function.
5809 (read_subrange_type): Move code into new function and call it.
5810 * gdbtypes.c (create_range_type): Add some asserts.
5811
5812 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5813
5814 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5815 update return statements.
5816 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5817 declaration, and update comment to match.
5818 * gdbtypes.c (resolve_dynamic_array): Update call to
5819 dwarf2_evaluate_property to match new return type.
5820
5821 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5822
5823 * valarith.c (value_subscripted_rvalue): Change lowerbound
5824 parameter type from int to LONGEST.
5825 * value.h (value_subscripted_rvalue): Likewise in declaration.
5826
5827 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5828
5829 * cli/cli-utils.c (info_print_command_completer): New function.
5830 * cli/cli-utils.h: Add 'completer.h' include, and forward
5831 declaration for 'struct cmd_list_element'.
5832 (info_print_command_completer): Declare.
5833 * stack.c (_initialize_stack): Add completer for 'info locals' and
5834 'info args'.
5835 * symtab.c (_initialize_symtab): Add completer for 'info
5836 variables' and 'info functions'.
5837 * NEWS: Mention completion for additional info commands.
5838
5839 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5840
5841 * cli/cli-utils.c (extract_info_print_args): Delete.
5842 (extract_arg_maybe_quoted): Delete.
5843 (info_print_options_defs): New variable.
5844 (make_info_print_options_def_group): New function.
5845 (extract_info_print_options): Define new function.
5846 * cli/cli-utils.h (extract_info_print_args): Delete.
5847 (struct info_print_options): New structure.
5848 (extract_info_print_options): Declare new function.
5849 * stack.c (info_locals_command): Update to use new
5850 extract_info_print_options, also add a header comment.
5851 (info_args_command): Likewise.
5852 * symtab.c (info_variables_command): Likewise.
5853 (info_functions_command): Likewise.
5854
5855 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5856
5857 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
5858 to extract string arguments.
5859 * common/common-utils.c (extract_string_maybe_quoted): New function.
5860 * common/common-utils.h (extract_string_maybe_quoted): Declare.
5861
5862 2019-07-11 Tom Tromey <tromey@adacore.com>
5863
5864 * main.c (get_init_files): Use GDBINIT, not gdbinit.
5865 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
5866 * top.h (gdbinit): Don't declare.
5867 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
5868 into...
5869 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
5870 * top.c (gdb_init): Don't call init_cli_cmds.
5871 (gdbinit): Remove.
5872 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
5873
5874 2019-07-11 Tom Tromey <tromey@adacore.com>
5875
5876 * python/py-inferior.c (add_thread_object): Don't use thread_obj
5877 after it has been moved.
5878
5879 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5880
5881 * valops.c (value_must_coerce_to_target): Change return type to
5882 bool.
5883 * value.h (value_must_coerce_to_target): Likewise.
5884
5885 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
5886
5887 * breakpoint.c (is_hardware_watchpoint): Remove
5888 forward-declaration.
5889 (is_masked_watchpoint): Change return type to bool.
5890 (is_tracepoint): Likewise.
5891 (is_breakpoint): Likewise.
5892 (is_hardware_watchpoint): Likewise.
5893 (is_watchpoint): Likewise.
5894 (is_no_memory_software_watchpoint): Likewise.
5895 (is_catchpoint): Likewise.
5896 (breakpoint_1): Make FILTER parameter's return type bool.
5897 is_masked_watchpoint): Change return type to bool.
5898 (save_breakpoints): Make FILTER parameter's return type bool.
5899 * breakpoint.h (is_breakpoint): Change return type to bool.
5900 (is_watchpoint): Likewise.
5901 (is_catchpoint): Likewise.
5902 (is_tracepoint): Likewise.
5903
5904 2019-07-10 Tom Tromey <tom@tromey.com>
5905
5906 * defs.h: Don't include gdbarch.h.
5907 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5908 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
5909 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
5910 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
5911 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
5912 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
5913 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
5914 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
5915 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
5916 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
5917 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5918 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5919 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5920 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5921 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5922 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5923 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5924 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5925 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5926 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5927 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5928 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5929 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5930 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5931 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5932 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5933 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
5934
5935 2019-07-10 Tom Tromey <tromey@adacore.com>
5936
5937 * ada-lang.h (is_ada_exception_catchpoint): Declare.
5938 * breakpoint.c (init_ada_exception_breakpoint): Register as
5939 bp_catchpoint.
5940 (print_one_breakpoint_location, print_one_breakpoint): Use
5941 is_ada_exception_catchpoint.
5942 * ada-lang.c (class ada_catchpoint_location): Pass
5943 bp_loc_software_breakpoint to bp_location constructor.
5944 (is_ada_exception_catchpoint): New function.
5945
5946 2019-07-10 Tom Tromey <tromey@adacore.com>
5947
5948 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
5949 VEC.
5950 (struct arm_exidx_entry): New method operator<.
5951 (struct arm_exidx_data) <section_maps>: Change type.
5952 (arm_exidx_data_free): Remove.
5953 (arm_exidx_data_key): Change type. Move lower.
5954 (arm_exidx_new_objfile): Update.
5955 (arm_compare_exidx_entries): Remove.
5956 (arm_find_exidx_entry, _initialize_arm_tdep)
5957
5958 2019-07-10 Tom Tromey <tromey@adacore.com>
5959
5960 * solib-spu.c (ocl_program_data_key): Change type.
5961 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
5962 Update.
5963
5964 2019-07-10 Tom Tromey <tromey@adacore.com>
5965
5966 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
5967 (struct solib_aix_inferior_data) <library_list>: Change type.
5968 (solib_aix_inferior_data_handle): Change type.
5969 (get_solib_aix_inferior_data): Update.
5970 (solib_aix_free_library_list): Remove.
5971 (library_list_start_library): Update.
5972 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
5973 return type.
5974 (solib_aix_get_library_list)
5975 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
5976 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
5977
5978 2019-07-10 Tom Tromey <tromey@adacore.com>
5979
5980 * solib-dsbt.c (struct dsbt_info): Add initializers.
5981 (solib_dsbt_pspace_data): Change type.
5982 (dsbt_pspace_data_cleanup): Remove.
5983 (get_dsbt_info, _initialize_dsbt_solib): Update.
5984
5985 2019-07-10 Tom Tromey <tromey@adacore.com>
5986
5987 * spu-tdep.c (spu_overlay_data): Change type.
5988 (spu_get_overlay_table, spu_overlay_new_objfile)
5989 (_initialize_spu_tdep): Update.
5990
5991 2019-07-10 Tom Tromey <tromey@adacore.com>
5992
5993 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
5994 destructor.
5995 (dbx_objfile_data_key): Change type and declare later.
5996 (DBX_SYMFILE_INFO): Rewrite.
5997 * dbxread.c (dbx_objfile_data_key): Change type.
5998 (dbx_symfile_init): Update.
5999 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6000 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6001 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6002
6003 2019-07-10 Tom Tromey <tromey@adacore.com>
6004
6005 * jit.c (jit_program_space_key): Change type. Move lower.
6006 (get_jit_program_space_data): Update.
6007 (jit_program_space_data_cleanup): Remove.
6008 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6009 Update.
6010 (struct jit_program_space_data): Add initializers.
6011
6012 2019-07-10 Tom Tromey <tromey@adacore.com>
6013
6014 * solib-darwin.c (struct darwin_info): Add initializers.
6015 (solib_darwin_pspace_data): Change type.
6016 (darwin_pspace_data_cleanup): Remove.
6017 (get_darwin_info, _initialize_darwin_solib): Update.
6018
6019 2019-07-10 Tom Tromey <tromey@adacore.com>
6020
6021 * remote-sim.c (struct sim_inferior_data): Add initializers,
6022 constructor, and destructor.
6023 (sim_inferior_data_key): Change type. Move lower.
6024 (check_for_duplicate_sim_descriptor): Update.
6025 (get_sim_inferior_data): Use new. Update.
6026 (~sim_inferior_data_cleanup): Rename from
6027 sim_inferior_data_cleanup. Simplify.
6028 (gdbsim_close_inferior, simulator_command)
6029 (sim_command_completer, _initialize_remote_sim): Update.
6030 (next_pid, INITIAL_PID): Move earlier.
6031
6032 2019-07-10 Tom Tromey <tromey@adacore.com>
6033
6034 * python/python-internal.h (create_thread_object): Return
6035 gdbpy_ref.
6036 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6037 * python/py-inferior.c (struct threadlist_entry): Add
6038 constructor.
6039 <thread_obj>: Now a gdbpy_ref.
6040 (thread_to_thread_object): Update.
6041 (add_thread_object): Use new.
6042 (delete_thread_object): Use delete.
6043 (infpy_threads): Update.
6044 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6045 GIL.
6046
6047 2019-07-10 Tom Tromey <tromey@adacore.com>
6048
6049 * valops.c (value_cast): Specialize error message for Ada.
6050
6051 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6052
6053 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6054
6055 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6056
6057 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6058 bpstat_should_step): Return bool, adjust comments.
6059 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6060 bpstat_should_step): Likewise.
6061
6062 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6063
6064 * features/Makefile: Use feature target descriptions for Arm.
6065 * features/arm/arm-core.c: Generate new file.
6066 * features/arm/arm-fpa.c: Likewise.
6067 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6068 * features/arm/arm-m-profile.c: Likewise.
6069 * features/arm/arm-vfpv2.c: Likewise.
6070 * features/arm/arm-vfpv3.c: Likewise.
6071 * features/arm/xscale-iwmmxt.c: Likewise.
6072 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6073
6074 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6075
6076 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6077 ptrace earlier.
6078
6079 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6080
6081 * features/aarch64-pauth.c: Regenerate.
6082
6083 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6084
6085 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6086 bool.
6087 (bpstat_what): Use false instead of 0.
6088
6089 2019-07-09 Pedro Alves <palves@redhat.com>
6090
6091 * break-catch-throw.c (is_exception_catchpoint): New.
6092 * breakpoint.c (print_one_breakpoint_location): New parameter
6093 'raw_loc'. Handle it. Use
6094 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6095 looking at the breakpoint's type.
6096 (print_one_breakpoint): If handling "maint info breakpoints", also
6097 print locations of exception catchpoints.
6098 * breakpoint.h (is_exception_catchpoint): Declare.
6099
6100 2019-07-09 Pedro Alves <palves@redhat.com>
6101
6102 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6103 "addr" field.
6104 (allocate_location_exception_catchpoint): New.
6105 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6106 (initialize_throw_catchpoint_ops): Install
6107 allocate_location_exception_catchpoint as allocate_location
6108 method.
6109 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6110 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6111 bp_loc_other.
6112 (breakpoint_address_is_meaningful): Delete.
6113 (bl_address_is_meaningful): New.
6114 (breakpoint_locations_match): Adjust comment.
6115 (bp_location_from_bp_type): New, factored out of...
6116 (bp_location::bp_location(breakpoint *)): ... this.
6117 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6118 factored out of...
6119 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6120 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6121 breakpoint_address_is_meaningful.
6122 (bp_locations_compare): Adjust comment.
6123 (update_global_location_list): Use bl_address_is_meaningful
6124 instead of breakpoint_address_is_meaningful.
6125 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6126 explicit.
6127 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6128 * python/py-breakpoint.c (bppy_get_location): No longer check
6129 whether location is null.
6130
6131 2019-07-09 Pedro Alves <palves@redhat.com>
6132
6133 PR c++/15468
6134 * breakpoint.c (print_one_breakpoint_location): Remove
6135 single-location assert.
6136
6137 2019-07-09 Tom Tromey <tom@tromey.com>
6138
6139 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6140 * configure: Rebuild.
6141 * configure.ac: Change common to gdbsupport.
6142 * gdbsupport: Rename from common.
6143 * acinclude.m4: Change common to gdbsupport.
6144 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6145 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6146 gdbsupport.
6147 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6148 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6149 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6150 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6151 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6152 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6153 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6154 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6155 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6156 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6157 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6158 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6159 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6160 coff-pe-read.c, command.h, compile/compile-c-support.c,
6161 compile/compile-c.h, compile/compile-cplus-symbols.c,
6162 compile/compile-cplus-types.c, compile/compile-cplus.h,
6163 compile/compile-loc2c.c, compile/compile.c, completer.c,
6164 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6165 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6166 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6167 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6168 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6169 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6170 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6171 features/aarch64-core.c, features/aarch64-fpu.c,
6172 features/aarch64-pauth.c, features/aarch64-sve.c,
6173 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6174 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6175 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6176 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6177 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6178 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6179 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6180 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6181 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6182 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6183 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6184 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6185 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6186 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6187 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6188 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6189 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6190 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6191 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6192 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6193 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6194 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6195 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6196 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6197 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6198 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6199 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6200 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6201 minsyms.c, mips-linux-tdep.c, namespace.h,
6202 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6203 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6204 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6205 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6206 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6207 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6208 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6209 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6210 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6211 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6212 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6213 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6214 procfs.c, producer.c, progspace.h, psymtab.h,
6215 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6216 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6217 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6218 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6219 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6220 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6221 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6222 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6223 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6224 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6225 target-memory.c, target.c, target.h, target/waitstatus.c,
6226 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6227 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6228 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6229 unittests/array-view-selftests.c,
6230 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6231 unittests/common-utils-selftests.c,
6232 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6233 unittests/format_pieces-selftests.c,
6234 unittests/function-view-selftests.c,
6235 unittests/lookup_name_info-selftests.c,
6236 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6237 unittests/mkdir-recursive-selftests.c,
6238 unittests/observable-selftests.c,
6239 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6240 unittests/parse-connection-spec-selftests.c,
6241 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6242 unittests/scoped_fd-selftests.c,
6243 unittests/scoped_mmap-selftests.c,
6244 unittests/scoped_restore-selftests.c,
6245 unittests/string_view-selftests.c, unittests/style-selftests.c,
6246 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6247 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6248 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6249 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6250 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6251 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6252
6253 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6254
6255 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6256 bool value.
6257 (decode_digits_ordinary): Set explicit_line field in sal.
6258 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6259 symtab_and_line that was set on an explicit line number in
6260 assembler code. Do always update the recorded symtab and line if
6261 we do skip the prologue.
6262
6263 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6264
6265 * breakpoint.c (set_breakpoint_location_function): Remove
6266 explicit_loc parameter.
6267 (momentary_breakpoint_from_master): Update call to
6268 set_breakpoint_location_function.
6269 (add_location_to_breakpoint): Likewise.
6270
6271 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6272
6273 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6274 required features based on default bfd type when no specific bfd
6275 is present.
6276
6277 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6278
6279 * NEWS: Mention that GDB printf and eval commands can now print
6280 C-style and Ada-style convenience var strings without
6281 calling the inferior.
6282 * printcmd.c (printf_c_string): Locally print GDB internal var
6283 instead of transiting via the inferior.
6284 (printf_wide_c_string): Likewise.
6285
6286 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6287
6288 PR breakpoints/25011
6289 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6290
6291 2019-07-04 Tom Tromey <tom@tromey.com>
6292
6293 PR tui/24724:
6294 * tui/tui-winsource.c (tui_clear_source_content): Update.
6295 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6296 (tui_update_breakpoint_info): Update.
6297 (tui_set_exec_info_content): Update.
6298 * tui/tui-source.c (tui_set_source_content_nil): Update.
6299 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6300 has_break.
6301 * tui/tui-data.h (enum tui_bp_flag): New.
6302 (tui_bp_flags): New enum flags type.
6303 (struct tui_source_element) <break_mode>: Change type. Rename
6304 from has_break.
6305 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6306 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6307 constants.
6308 * tui/tui-winsource.h: Fix comment.
6309
6310 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6311
6312 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6313 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6314 (store_fpregs_to_thread)
6315 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6316 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6317 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6318 (IWMMXT_REGS_SIZE): Add define.
6319 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6320 (fetch_vfp_regs, store_vfp_regs)
6321 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6322 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6323
6324 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6325
6326 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6327 defines.
6328 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6329 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6330 (ARM_INT_REGISTER_SIZE): ...to this.
6331 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6332 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6333 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6334 (arm_linux_collect_gregset, supply_nwfpe_register)
6335 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6336 defines.
6337 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6338 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6339 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6340 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6341 (arm_return_in_memory, arm_store_return_value)
6342 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6343 (arm_record_ld_st_multiple): Likewise.
6344 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6345 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6346
6347 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6348
6349 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6350 AARCH64_DISPLACED_MODIFIED_INSNS.
6351 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6352 (aarch64_displaced_step_copy_insn): Likewise.
6353 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6354 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6355 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6356 ARM_DISPLACED_MODIFIED_INSNS.
6357 * arm-tdep.c (arm_gdbarch_init): Likewise.
6358 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6359 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6360 (struct arm_displaced_step_closure): Use
6361 ARM_DISPLACED_MODIFIED_INSNS.
6362
6363 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6364
6365 * features/Makefile: Remove unused xml files.
6366 * features/aarch64.xml: Remove.
6367 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6368 * features/i386/amd64-avx-avx512.xml: Remove.
6369 * features/i386/amd64-avx-linux.xml: Remove.
6370 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6371 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6372 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6373 * features/i386/amd64-avx-mpx.xml: Remove.
6374 * features/i386/amd64-avx.xml: Remove.
6375 * features/i386/amd64-linux.xml: Remove.
6376 * features/i386/amd64-mpx-linux.xml: Remove.
6377 * features/i386/amd64-mpx.xml: Remove.
6378 * features/i386/amd64.xml: Remove.
6379 * features/i386/i386-avx-avx512-linux.xml: Remove.
6380 * features/i386/i386-avx-avx512.xml: Remove.
6381 * features/i386/i386-avx-linux.xml: Remove.
6382 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6383 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6384 * features/i386/i386-avx-mpx-linux.xml: Remove.
6385 * features/i386/i386-avx-mpx.xml: Remove.
6386 * features/i386/i386-avx.xml: Remove.
6387 * features/i386/i386-linux.xml: Remove.
6388 * features/i386/i386-mmx-linux.xml: Remove.
6389 * features/i386/i386-mmx.xml: Remove.
6390 * features/i386/i386-mpx-linux.xml: Remove.
6391 * features/i386/i386-mpx.xml: Remove.
6392 * features/i386/i386.xml: Remove.
6393 * features/i386/x32-avx-avx512-linux.xml: Remove.
6394 * features/i386/x32-avx-linux.xml: Remove.
6395 * features/i386/x32-linux.xml: Remove.
6396
6397 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6398
6399 * regformats/aarch64.dat: Remove.
6400 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6401 * regformats/i386/amd64-avx-linux.dat: Remove.
6402 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6403 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6404 * regformats/i386/amd64-linux.dat: Remove.
6405 * regformats/i386/amd64-mpx-linux.dat: Remove.
6406 * regformats/i386/amd64.dat: Remove.
6407 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6408 * regformats/i386/i386-avx-linux.dat: Remove.
6409 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6410 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6411 * regformats/i386/i386-linux.dat: Remove.
6412 * regformats/i386/i386-mmx-linux.dat: Remove.
6413 * regformats/i386/i386-mpx-linux.dat: Remove.
6414 * regformats/i386/i386.dat: Remove.
6415 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6416 * regformats/i386/x32-avx-linux.dat: Remove.
6417 * regformats/i386/x32-linux.dat: Remove.
6418
6419 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6420
6421 * aarch64-tdep.c: Remove xml self tests.
6422 * amd64-linux-tdep.c: Likewise.
6423 * amd64-tdep.c: Likewise.
6424 * i386-linux-tdep.c: Likewise.
6425 * i386-tdep.c: Likewise.
6426
6427 2019-07-03 Pedro Alves <palves@redhat.com>
6428
6429 PR cli/24732
6430 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6431 (pipe_cmd_option_defs): New.
6432 (make_pipe_cmd_options_def_group): New.
6433 (pipe_command): Use gdb::option::process_options.
6434 (pipe_command_completer): New function.
6435 (_initialize_cli_cmds): Install completer for "pipe" command.
6436
6437 2019-07-03 Pedro Alves <palves@redhat.com>
6438
6439 * cli/cli-option.c (union option_value) <string>: New field.
6440 (struct option_def_and_value): Add ctor, move ctor, dtor and
6441 use DISABLE_COPY_AND_ASSIGN.
6442 (option_def_and_value::clear_value): New.
6443 (parse_option, save_option_value_in_ctx, get_val_type_str)
6444 (add_setshow_cmds_for_options): Handle var_string.
6445 * cli-option.h (union option_def::var_address) <string>: New
6446 field.
6447 (struct string_option_def): New.
6448 * maint-test-options.c (struct test_options_opts): Add default
6449 ctor and use DISABLE_COPY_AND_ASSIGN.
6450 <string_opt>: New field.
6451 (test_options_opts::~test_options_opts): New.
6452 (test_options_opts::dump): Also dump "-string".
6453 (test_options_option_defs): Install "string.
6454
6455 2019-07-03 Pedro Alves <palves@redhat.com>
6456
6457 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6458 option_value with a null enumeration.
6459 (complete_options): Save the option values in the context.
6460 (save_option_value_in_ctx): New, factored out from ...
6461 (process_options): ... here.
6462 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6463 of the function.
6464 * maint-test-options.c (test_options_opts::dump): New, factored
6465 out from ...
6466 (maintenance_test_options_command_mode): ... here.
6467 (maintenance_test_options_command_completion_result): Delete.
6468 (maintenance_test_options_command_completion_text): Update
6469 comment.
6470 (maintenance_show_test_options_completion_result): Change
6471 prototype. Just print
6472 maintenance_test_options_command_completion_text.
6473 (save_completion_result): New.
6474 (maintenance_test_options_completer_mode): Pass options context to
6475 complete_options, and then save a dump.
6476 (_initialize_maint_test_options): Use add_cmd to install "maint
6477 show test-options-completion-result".
6478
6479 2019-07-03 Pedro Alves <palves@redhat.com>
6480
6481 * NEWS (New commands): Mention "with" and "maint with".
6482 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6483 (with_command, with_command_completer): New.
6484 (pipe_command): Adjust to new repeat_previous
6485 interface.
6486 (_initialize_cli_cmds): Install the "with" command and its "w"
6487 alias.
6488 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6489 declarations.
6490 * cli/cli-setshow.c (parse_cli_var_uinteger)
6491 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6492 argument strings for all var_types.
6493 (get_setshow_command_value_string): New, factored out from ...
6494 (do_show_command): ... this.
6495 * cli/cli-setshow.h: Include <string>.
6496 (get_setshow_command_value_string): Declare.
6497 * command.h (repeat_previous): Now returns const char *. Adjust
6498 comment.
6499 * maint.c: Include "cli/cli-cmds.h".
6500 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6501 (_initialize_maint_cmds): Register the "maintenance with" command.
6502 * top.c (repeat_previous): Move bits from pipe_command here:
6503 Return the saved command line, if any; error out if there's no
6504 command to relaunch.
6505
6506 2019-07-03 Pedro Alves <palves@redhat.com>
6507
6508 * NEWS (New commands): Mention "maint set/show test-settings"
6509 instead of "maint test-settings".
6510 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6511 (maintenance_test_settings_set_list): Rename to ...
6512 (maintenance_set_test_settings_list): ... this.
6513 (maintenance_test_settings_show_list): Rename to ...
6514 (maintenance_show_test_settings_list): ... this.
6515 (maintenance_test_settings_cmd): Delete.
6516 (maintenance_test_settings_set_cmd): ...
6517 (maintenance_set_test_settings_cmd): ... this.
6518 (maintenance_test_settings_show_cmd): ...
6519 (maintenance_show_test_settings_cmd): ... this.
6520 (maintenance_test_settings_show_value_cmd):
6521 (maintenance_show_test_settings_value_cmd): ... this.
6522 (_initialize_maint_test_settings): No longer install the "maint
6523 test-settings" prefix command. Rename "maint test-settings set"
6524 to "maint set test-settings", and "maint test-settings show" to
6525 "maint show test-settings". Adjust all subcommands.
6526
6527 2019-07-03 Pedro Alves <palves@redhat.com>
6528
6529 * maint-test-settings.c: Fix file's intro comment. Replace all
6530 references to "test-options" with references to "test-settings",
6531 in comments.
6532
6533 2019-07-03 Pedro Alves <palves@redhat.com>
6534
6535 * maint-test-settings.c (maintenance_test_settings_xxx)
6536 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6537 New.
6538 (maintenance_test_settings_enums): Use them.
6539 (maintenance_test_settings_enum): Default to
6540 maintenance_test_settings_xxx.
6541 (_initialize_maint_test_settings): Initialize
6542 MAINTENANCE_TEST_SETTINGS_FILENAME.
6543
6544 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6545
6546 * breakpoint.h (remove_breakpoints_inf): Change return type to
6547 void, move function documentation here.
6548 * breakpoint.c (remove_breakpoints_inf): Change return type to
6549 void, move function documentation to header.
6550
6551 2019-07-02 Pedro Alves <palves@redhat.com>
6552
6553 * NEWS (Completion improvements): Mention "info threads".
6554 * thread.c (struct info_threads_opts, info_threads_option_defs)
6555 (make_info_threads_options_def_group): New.
6556 (info_threads_command): Use gdb::option::process_options.
6557 (info_threads_command_completer): New.
6558 (_initialize_thread): Use gdb::option::build_help to build the
6559 help text for "info threads".
6560
6561 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6562
6563 * defs.h (generic_load): Move from here...
6564 * symfile.h (generic_load): ... to here. Rename name parameter
6565 to args.
6566 * symfile.c (generic_load): Add comment.
6567
6568 2019-07-01 Tom Tromey <tromey@adacore.com>
6569
6570 * dwarf2read.c
6571 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6572 declaration of without_params. Fix formatting.
6573
6574 2019-07-01 Tom Tromey <tromey@adacore.com>
6575
6576 * ada-exp.y (find_primitive_type): Update.
6577 * ada-lang.h (ada_lookup_symbol): Update.
6578 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6579 parameter.
6580 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6581
6582 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6583
6584 PR breakpoints/24541
6585 * gdbarch.c: Regenerate.
6586 * gdbarch.h: Regenerate.
6587 * gdbarch.sh: Add 'stap_adjust_register'.
6588 * i386-tdep.c: Include '<unordered_set>'.
6589 (i386_stap_adjust_register): New function.
6590 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6591 * stap-probe.c (stap_parse_register_operand): Call
6592 'gdbarch_stap_adjust_register'.
6593
6594 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6595
6596 PR python/24742
6597 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6598 * python/python.c (do_start_initialization): Use 'xmalloc'
6599 instead of 'PyMem_Malloc'.
6600
6601 2019-06-28 Tom Tromey <tromey@adacore.com>
6602
6603 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6604 for Ada.
6605
6606 2019-06-27 Tom Tromey <tromey@adacore.com>
6607
6608 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6609 objfile_key.
6610 (arm_find_mapping_symbol, arm_record_special_symbol)
6611 (_initialize_arm_tdep): Update.
6612 (arm_objfile_data_free): Remove.
6613
6614 2019-06-27 Tom Tromey <tromey@adacore.com>
6615
6616 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6617 to cp_print_static_field.
6618
6619 2019-06-26 Tom Tromey <tromey@adacore.com>
6620
6621 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6622 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6623 declare.
6624
6625 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6626
6627 * features/aarch64-core.c (create_feature_aarch64_core):
6628 Regenerate.
6629 * features/aarch64-core.xml: Add cpsr flags.
6630
6631 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6632
6633 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6634 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6635
6636 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6637
6638 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6639 field.
6640 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6641 use.
6642 (arm_record_special_symbol): Don't insert new symbol in sorted
6643 position, push it at the end.
6644
6645 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6646
6647 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6648 (arm_mapping_symbol_s): Remove.
6649 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6650 (arm_mapping_symbol_vec): New typedef.
6651 (struct arm_per_objfile): Add constructor.
6652 <section_maps>: Change type to
6653 std::unique_ptr<arm_mapping_symbol_vec[]>.
6654 (arm_compare_mapping_symbols): Remove.
6655 (arm_find_mapping_symbol): Adjust to section_maps type change.
6656 (arm_objfile_data_free): Call delete on arm_per_objfile.
6657 (arm_record_special_symbol): Adjust to section_maps type change.
6658 Allocate arm_per_objfile with new.
6659
6660 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6661
6662 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6663 with the command prefix.
6664
6665 2019-06-25 Tom Tromey <tom@tromey.com>
6666
6667 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6668 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6669
6670 2019-06-25 Tom Tromey <tom@tromey.com>
6671
6672 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6673 type.
6674 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6675 protected.
6676
6677 2019-06-25 Tom Tromey <tom@tromey.com>
6678
6679 * tui/tui-winsource.c
6680 (tui_source_window_base::set_is_exec_point_at): Add check against
6681 LOA_ADDRESS.
6682
6683 2019-06-25 Tom Tromey <tom@tromey.com>
6684
6685 * tui/tui-source.c (tui_set_source_content): Don't check before
6686 xfree.
6687 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6688
6689 2019-06-25 Tom Tromey <tom@tromey.com>
6690
6691 * tui/tui-winsource.h (tui_update_source_window_as_is)
6692 (tui_alloc_source_buffer, tui_line_is_displayed)
6693 (tui_addr_is_displayed): Change type of win_info.
6694 * tui/tui-winsource.c (tui_update_source_window_as_is)
6695 (tui_clear_source_content, tui_show_source_line)
6696 (tui_show_source_content, tui_source_window_base::refill)
6697 (tui_source_window_base::set_is_exec_point_at)
6698 (tui_source_window_base::set_is_exec_point_at)
6699 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6700 (tui_alloc_source_buffer, tui_line_is_displayed)
6701 (tui_addr_is_displayed): Change type of win_info. Update.
6702 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6703 (tui_source_window_base::do_make_visible_with_new_height):
6704 Update.
6705 * tui/tui-source.c (tui_set_source_content)
6706 (tui_set_source_content_nil)
6707 (tui_source_window::do_scroll_vertical): Update.
6708 * tui/tui-layout.c (show_layout): Update.
6709 * tui/tui-disasm.c (tui_set_disassem_content)
6710 (tui_disasm_window::do_scroll_vertical): Update.
6711 * tui/tui-data.h (tui_win_content): Remove.
6712 (struct tui_gen_win_info) <content, content_size>: Remove.
6713 (struct tui_source_element): Add initializers and destructor.
6714 (union tui_which_element, struct tui_win_element): Remove.
6715 (struct tui_source_window_base) <content>: New field.
6716 (struct tui_data_window): Remove destructor.
6717 (tui_alloc_content, tui_free_win_content)
6718 (tui_free_all_source_wins_content): Don't declare.
6719 * tui/tui-data.c (tui_initialize_static_data): Update.
6720 (init_content_element, tui_alloc_content): Remove.
6721 (~tui_gen_win_info): Update.
6722 (~tui_data_window, tui_free_all_source_wins_content)
6723 (tui_free_win_content, free_content, free_content_elements):
6724 Remove.
6725
6726 2019-06-25 Tom Tromey <tom@tromey.com>
6727
6728 * tui/tui-winsource.h (tui_clear_source_content)
6729 (tui_erase_source_content, tui_show_source_content): Change type
6730 of win_info.
6731 * tui/tui-winsource.c (tui_clear_source_content)
6732 (tui_erase_source_content, tui_show_source_content): Change type
6733 of win_info.
6734 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6735 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6736 win_info.
6737 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6738 win_info.
6739 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6740
6741 2019-06-25 Tom Tromey <tom@tromey.com>
6742
6743 * tui/tui-winsource.c (tui_clear_source_content)
6744 (tui_source_window_base::set_is_exec_point_at): Update.
6745 * tui/tui-source.c (tui_set_source_content_nil): Update.
6746 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6747 a bool.
6748 * tui/tui-data.c (init_content_element): Update.
6749
6750 2019-06-25 Tom Tromey <tom@tromey.com>
6751
6752 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6753 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6754 * tui/tui-layout.c (init_and_make_win): Update.
6755 * tui/tui.h (enum tui_win_type): Update.
6756 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6757 tui_win_is_auxillary.
6758 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6759 tui_win_is_auxillary.
6760
6761 2019-06-25 Tom Tromey <tom@tromey.com>
6762
6763 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6764 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6765 (tui_delete_data_content_windows, tui_display_all_data)
6766 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6767 Update.
6768 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6769 * tui/tui-regs.c (tui_last_regs_line_no)
6770 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6771 (tui_show_registers): Update.
6772 (tui_show_register_group): Return void. Update.
6773 (tui_display_registers_from, tui_display_reg_element_at_line)
6774 (tui_display_registers_from_line, tui_check_register_values):
6775 Update.
6776 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6777 member.
6778 (struct tui_data_window) <regs_content>: Now a std::vector.
6779 <regs_content_count>: Remove.
6780 (tui_add_content_elements, tui_free_data_content): Don't declare.
6781 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6782 (init_content_element): Remove DATA_WIN case. Add assert.
6783 (tui_add_content_elements): Remove.
6784 (tui_data_window): Update.
6785 (tui_free_data_content): Remove.
6786 (free_content_elements): Remove DATA_WIN case.
6787
6788 2019-06-25 Tom Tromey <tom@tromey.com>
6789
6790 * tui/tui-data.c (tui_data_item_window): Update.
6791 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6792 * tui/tui-windata.c (tui_display_all_data)
6793 (tui_display_data_from_line): Update.
6794 (tui_check_data_values): Remove.
6795 * tui/tui-regs.c (tui_show_register_group)
6796 (tui_display_reg_element_at_line): Update.
6797 * tui/tui-hooks.c (tui_register_changed)
6798 (tui_refresh_frame_and_register_information): Call
6799 tui_check_register_values.
6800 * tui/tui-data.h (struct tui_data_window) <data_content,
6801 data_content_count, data_type>: Remove.
6802 (enum tui_data_type): Remove.
6803
6804 * tui/tui-data.c (tui_data_window::clear_detail)
6805 (~tui_data_window): Update.
6806
6807 2019-06-25 Tom Tromey <tom@tromey.com>
6808
6809 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6810 declare.
6811 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6812 Rename from tui_first_data_item_displayed. Update.
6813 (tui_data_window::refresh_all)
6814 (tui_data_window::do_scroll_vertical): Update.
6815 * tui/tui-data.h (struct tui_data_window)
6816 <first_data_item_displayed>: Declare new method.
6817
6818 2019-06-25 Tom Tromey <tom@tromey.com>
6819
6820 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6821 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6822 contents...
6823 (tui_initialize_static_data): ...here.
6824
6825 2019-06-25 Tom Tromey <tom@tromey.com>
6826
6827 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6828 (tui_display_registers_from, tui_check_register_values): Update.
6829 (tui_display_register): Remove win_info parameter; update.
6830 (tui_get_register): Change type of parameters.
6831 * tui/tui-data.h (struct tui_data_element): Remove.
6832 (union tui_which_element) <data>: Remove.
6833 <data_window>: Change type.
6834 (struct tui_data_item_window): New.
6835 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6836 case. Add assert.
6837 (~tui_data_item_window): New destructor.
6838 (free_content_elements): Remove DATA_ITEM_WIN case.
6839
6840 2019-06-25 Tom Tromey <tom@tromey.com>
6841
6842 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
6843 Remove.
6844
6845 2019-06-25 Tom Tromey <tom@tromey.com>
6846
6847 * tui/tui-data.h (struct tui_command_element): Remove.
6848 (union tui_which_element) <command>: Remove.
6849 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
6850 assert.
6851 (free_content_elements): Remove CMD_WIN case.
6852
6853 2019-06-25 Tom Tromey <tom@tromey.com>
6854
6855 * tui/tui-layout.c (tui_set_layout): Update.
6856 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
6857 * tui/tui-data.c (layout_def): Update.
6858
6859 2019-06-25 Tom Tromey <tom@tromey.com>
6860
6861 * tui/tui-wingeneral.c (tui_refresh_all): Update.
6862 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6863 (tui_source_window_base::set_new_height): Update.
6864 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
6865 Update.
6866 (tui_set_locator_fullname, tui_set_locator_info)
6867 (tui_show_frame_info): Update.
6868 * tui/tui-source.c (tui_set_source_content)
6869 (tui_source_is_displayed): Update.
6870 * tui/tui-layout.c (show_source_disasm_command, show_data)
6871 (show_source_or_disasm_and_command): Update.
6872 * tui/tui-disasm.c (tui_set_disassem_content)
6873 (tui_get_begin_asm_address): Update.
6874 * tui/tui-data.h (struct tui_locator_element): Remove.
6875 (union tui_which_element) <locator>: Remove.
6876 (struct tui_locator_window): New.
6877 (tui_locator_win_info_ptr): Change return type.
6878 * tui/tui-data.c (_locator): Change type.
6879 (tui_locator_win_info_ptr): Change return type.
6880 (init_content_element): Remove LOCATOR_WIN case. Add assert.
6881 (tui_alloc_content): Add assert.
6882
6883 2019-06-25 Tom Tromey <tom@tromey.com>
6884
6885 * tui/tui-winsource.c
6886 (tui_exec_info_window::maybe_allocate_content): New method.
6887 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
6888 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
6889 (make_source_or_disasm_window): Add cast.
6890 * tui/tui-data.h (union tui_which_element) <simple_string>:
6891 Remove.
6892 (struct tui_source_info): New.
6893 (struct tui_source_window_base) <execution_info>: Change type.
6894 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
6895 case, and add assert.
6896 (tui_alloc_content): Add assert.
6897
6898 2019-06-25 Tom Tromey <tom@tromey.com>
6899
6900 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
6901 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
6902 * tui/tui-data.c (tui_alloc_win_info): Remove.
6903
6904 2019-06-25 Tom Tromey <tom@tromey.com>
6905
6906 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
6907 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
6908 can_highlight.
6909
6910 2019-06-25 Tom Tromey <tom@tromey.com>
6911
6912 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
6913 make_visible_with_new_height method.
6914 (tui_win_info::make_visible_with_new_height): New method.
6915 (tui_source_window_base::do_make_visible_with_new_height)
6916 (tui_data_window::do_make_visible_with_new_height)
6917 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6918 (make_visible_with_new_height): Remove.
6919 (tui_resize_all, tui_adjust_win_heights): Use
6920 make_visible_with_new_height method.
6921 * tui/tui-data.h (struct tui_win_info)
6922 <do_make_visible_with_new_height, make_visible_with_new_height>:
6923 New methods.
6924 (struct tui_source_window_base, struct tui_data_window)
6925 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6926 methods.
6927
6928 2019-06-25 Tom Tromey <tom@tromey.com>
6929
6930 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6931 method.
6932 (update_tab_width): Call update_tab_width method.
6933 * tui/tui-data.h (struct tui_win_info)
6934 (struct tui_source_window_base) <update_tab_width>: New methods.
6935
6936 2019-06-25 Tom Tromey <tom@tromey.com>
6937
6938 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
6939 parameter.
6940 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
6941 parameter.
6942 (tui_gen_win_info::make_visible): Update.
6943 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
6944 parameter.
6945 * tui/tui-data.h (enum tui_box): New enum.
6946 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
6947
6948 2019-06-25 Tom Tromey <tom@tromey.com>
6949
6950 * tui/tui-layout.c (make_source_or_disasm_window): Always use
6951 init_and_make_win for EXEC_INFO_WIN.
6952 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
6953 longer inline.
6954 (struct tui_win_info) <~tui_win_info>: Inline.
6955 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6956 Don't declare.
6957 * tui/tui-data.c (source_win, disasm_win): Remove globals.
6958 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6959 Remove.
6960 (tui_initialize_static_data): Update.
6961 (~tui_gen_win_info): Handle more cleanup here.
6962 (~tui_source_window_base): Delete "execution_info".
6963 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
6964
6965 2019-06-25 Tom Tromey <tom@tromey.com>
6966
6967 * tui/tui-layout.c (make_command_window): Don't set
6968 can_highlight.
6969 (show_source_disasm_command): Call the reset method.
6970 (show_data): Don't set can_highlight. Call the reset method.
6971 (tui_gen_win_info::reset): Rename from init_gen_win_info
6972 (init_and_make_win): Simplify. Return tui_gen_win_info.
6973 (show_source_or_disasm_and_command): Call the reset method.
6974 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
6975 (struct tui_cmd_window): Set can_highlight.
6976
6977 2019-06-25 Tom Tromey <tom@tromey.com>
6978
6979 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
6980 from make_visible.
6981 (tui_make_visible, tui_make_invisible): Rewrite.
6982 (tui_win_info::make_visible): Remove.
6983 (tui_source_window_base::make_visible): Update.
6984 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
6985 method. Moved from...
6986 (struct tui_win_info) <make_visible>: ...here.
6987
6988 2019-06-25 Tom Tromey <tom@tromey.com>
6989
6990 * tui/tui-winsource.c
6991 (tui_source_window_base::do_scroll_horizontal): Remove direction
6992 parameter.
6993 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
6994 direction parameter.
6995 * tui/tui-win.c (tui_win_info::forward_scroll)
6996 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6997 (tui_win_info::right_scroll): Update.
6998 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
6999 direction parameter.
7000 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7001 direction parameter.
7002 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7003 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7004 Remove direction parameter.
7005 (struct tui_source_window_base, struct tui_source_window)
7006 (struct tui_disasm_window, struct tui_data_window)
7007 (struct tui_cmd_window): Update.
7008
7009 2019-06-25 Tom Tromey <tom@tromey.com>
7010
7011 * tui/tui-winsource.h (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 * tui/tui-winsource.c (tui_set_exec_info_content)
7016 (tui_show_exec_info_content, tui_erase_exec_info_content)
7017 (tui_clear_exec_info_content, tui_update_exec_info): Change
7018 argument to tui_source_window_base.
7019
7020 2019-06-25 Tom Tromey <tom@tromey.com>
7021
7022 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7023 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7024
7025 2019-06-25 Tom Tromey <tom@tromey.com>
7026
7027 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7028 check.
7029
7030 2019-06-25 Tom Tromey <tom@tromey.com>
7031
7032 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7033 type to void.
7034 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7035 type to void.
7036 * tui/tui-source.c (tui_set_source_content): Update.
7037 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7038
7039 2019-06-25 Tom Tromey <tom@tromey.com>
7040
7041 * tui/tui-win.c (window_name_completer, tui_set_focus)
7042 (tui_all_windows_info): Use name method.
7043 * tui/tui-data.h (struct tui_gen_win_info)
7044 (struct tui_source_window, struct tui_disasm_window)
7045 (struct tui_data_window, struct tui_cmd_window) <name>: New
7046 method.
7047 (tui_win_name): Don't declare.
7048 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7049 (tui_win_name): Remove.
7050
7051 2019-06-25 Tom Tromey <tom@tromey.com>
7052
7053 * tui/tui-winsource.h (tui_update_source_window)
7054 (tui_update_source_window_as_is): Change parameter type.
7055 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7056 to be a tui_source_window_base.
7057 (tui_update_source_window_as_is): Likewise.
7058 * tui/tui-win.c (make_visible_with_new_height): Update.
7059
7060 2019-06-25 Tom Tromey <tom@tromey.com>
7061
7062 * tui/tui-winsource.c (tui_erase_source_content)
7063 (tui_show_source_content, tui_show_exec_info_content)
7064 (tui_erase_exec_info_content): Use refresh_window method.
7065 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7066 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7067 from tui_refresh_win.
7068 (tui_data_window::refresh_window): New method.
7069 (tui_win_info::refresh, tui_source_window_base::refresh)
7070 (tui_refresh_all): Use refresh_window method.
7071 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7072 method.
7073 * tui/tui-regs.c (tui_display_register): Call refresh_window
7074 method.
7075 * tui/tui-layout.c (show_source_disasm_command)
7076 (show_source_or_disasm_and_command): Call refresh_window method.
7077 * tui/tui-data.h (struct tui_gen_win_info)
7078 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7079 New method.
7080
7081 2019-06-25 Tom Tromey <tom@tromey.com>
7082
7083 * tui/tui.c (tui_rl_other_window, tui_enable)
7084 (tui_is_window_visible, tui_get_command_dimension): Update.
7085 * tui/tui-winsource.c (tui_update_source_window_as_is)
7086 (tui_clear_source_content, tui_erase_source_content)
7087 (tui_show_source_line, tui_source_window_base::refill)
7088 (tui_source_window_base::do_scroll_horizontal)
7089 (tui_source_window_base::set_is_exec_point_at)
7090 (tui_update_breakpoint_info, tui_set_exec_info_content)
7091 (tui_alloc_source_buffer, tui_line_is_displayed)
7092 (tui_addr_is_displayed): Update.
7093 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7094 (tui_check_and_display_highlight_if_needed)
7095 (tui_win_info::make_visible, tui_win_info::refresh)
7096 (tui_refresh_all): Update.
7097 * tui/tui-windata.c (tui_first_data_item_displayed)
7098 (tui_delete_data_content_windows, tui_erase_data_content)
7099 (tui_display_all_data, tui_data_window::refresh_all)
7100 (tui_check_data_values): Update.
7101 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7102 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7103 (tui_win_info::backward_scroll, tui_refresh_all_win)
7104 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7105 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7106 (tui_source_window_base::set_new_height)
7107 (tui_data_window::set_new_height)
7108 (make_invisible_and_set_new_height)
7109 (make_visible_with_new_height, new_height_ok)
7110 (parse_scrolling_args): Update.
7111 * tui/tui-stack.c (tui_show_frame_info): Update.
7112 * tui/tui-source.c (tui_set_source_content)
7113 (tui_set_source_content_nil, tui_source_is_displayed)
7114 (tui_source_window::do_scroll_vertical): Update.
7115 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7116 (tui_display_registers_from, tui_display_reg_element_at_line)
7117 (tui_check_register_values, tui_reg_command): Update.
7118 * tui/tui-layout.c (tui_default_win_height)
7119 (show_source_disasm_command, show_data, init_and_make_win)
7120 (show_source_or_disasm_and_command): Update.
7121 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7122 (tui_redisplay_readline, tui_mld_flush)
7123 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7124 (tui_getc): Update.
7125 * tui/tui-disasm.c (tui_set_disassem_content)
7126 (tui_disasm_window::do_scroll_vertical): Update.
7127 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7128 Now virtual.
7129 (struct tui_win_info): Derive from tui_gen_win_info.
7130 <~tui_win_info>: Mark as override.
7131 <generic>: Remove member.
7132 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7133 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7134 (~tui_data_window, ~tui_win_info)
7135 (tui_free_all_source_wins_content): Update.
7136 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7137
7138 2019-06-25 Tom Tromey <tom@tromey.com>
7139
7140 * tui/tui-layout.c (init_and_make_win): Use new.
7141 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7142 destructor, initializers.
7143 (tui_alloc_generic_win_info): Don't declare.
7144 * tui/tui-data.c (_locator): Add argument to constructor.
7145 (source_win, disasm_win): New globals.
7146 (exec_info): Remove.
7147 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7148 Update.
7149 (tui_alloc_generic_win_info): Remove.
7150 (init_content_element): Use new.
7151 (tui_win_info::tui_win_info): Update.
7152 (free_content_elements) <case DATA_WIN>: Use delete.
7153
7154 2019-06-25 Tom Tromey <tom@tromey.com>
7155
7156 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7157 * tui/tui-windata.c (tui_first_data_item_displayed)
7158 (tui_delete_data_content_windows): Update.
7159 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7160 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7161 (tui_display_registers_from, tui_check_register_values): Update.
7162 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7163 pointer.
7164 * tui/tui-data.c (init_content_element): Update. Allocate the new
7165 window.
7166 (tui_free_data_content): Update.
7167 (free_content_elements) <case DATA_WIN>: Free the window.
7168
7169 2019-06-25 Tom Tromey <tom@tromey.com>
7170
7171 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7172 Update.
7173 * tui/tui-layout.c (make_command_window)
7174 (show_source_disasm_command, show_data, init_and_make_win)
7175 (show_source_or_disasm_and_command): Update.
7176 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7177 method.
7178 <can_highight, is_highlighted>: Now bool.
7179 (tui_set_win_highlight): Don't declare.
7180 * tui/tui-data.c (tui_set_win_highlight): Remove.
7181
7182 2019-06-25 Tom Tromey <tom@tromey.com>
7183
7184 * tui/tui-wingeneral.c (make_visible): Remove check of window
7185 type.
7186
7187 2019-06-25 Tom Tromey <tom@tromey.com>
7188
7189 * tui/tui-win.c (tui_win_info::max_height)
7190 (tui_cmd_window::max_height): New methods.
7191 (new_height_ok): Call max_height.
7192 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7193 <max_height>: New method.
7194
7195 2019-06-25 Tom Tromey <tom@tromey.com>
7196
7197 * tui/tui-win.c (tui_source_window_base::set_new_height)
7198 (tui_data_window::set_new_height): New methods.
7199 (make_invisible_and_set_new_height): Call set_new_height method.
7200 * tui/tui-data.h (struct tui_win_info)
7201 (struct tui_source_window_base, struct tui_data_window)
7202 <set_new_height>: New method.
7203
7204 2019-06-25 Tom Tromey <tom@tromey.com>
7205
7206 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7207 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7208 tui_refresh_data_win.
7209 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7210 method.
7211 (tui_refresh_all_win): Call the refresh_all method.
7212 (tui_set_focus): Likewise.
7213 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7214 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7215 Likewise.
7216
7217 2019-06-25 Tom Tromey <tom@tromey.com>
7218
7219 * tui/tui-winsource.h (tui_refill_source_window)
7220 (tui_set_is_exec_point_at): Don't declare.
7221 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7222 (tui_source_window_base::refill): Rename from
7223 tui_refill_source_window.
7224 (tui_source_window_base::do_scroll_horizontal): Update.
7225 (tui_source_window_base::set_is_exec_point_at): Rename from
7226 tui_set_is_exec_point_at.
7227 (tui_update_all_breakpoint_info): Update.
7228 * tui/tui-stack.c (tui_show_frame_info): Update.
7229 * tui/tui-layout.c (show_data): Add cast.
7230 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7231 * tui/tui-data.h (struct tui_source_window_base) <refill,
7232 set_is_exec_point_at>: New methods.
7233 (tui_source_windows, tui_add_to_source_windows): Update types.
7234 (tui_add_to_source_windows): Remove redundant declaration.
7235 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7236 (tui_source_windows): Change return type.
7237 (tui_clear_source_windows_detail): Update.
7238 (tui_add_to_source_windows): Change type of parameter.
7239 (tui_free_all_source_wins_content): Update.
7240
7241 2019-06-25 Tom Tromey <tom@tromey.com>
7242
7243 * tui/tui-wingeneral.c (tui_win_info::refresh)
7244 (tui_source_window_base::refresh): New methods.
7245 (tui_refresh_all): Call the refresh method.
7246 * tui/tui-data.h (struct tui_win_info)
7247 (struct tui_source_window_base) <refresh>: New method.
7248
7249 2019-06-25 Tom Tromey <tom@tromey.com>
7250
7251 * tui/tui.h (tui_is_window_visible): Return bool.
7252 * tui/tui.c (tui_is_window_visible): Return bool.
7253 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7254 (tui_make_visible, tui_make_invisible)
7255 (tui_win_info::make_visible)
7256 (tui_source_window_base::make_visible, make_all_visible)
7257 (tui_make_all_visible, tui_make_all_invisible): Update.
7258 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7259 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7260 bool.
7261 (struct tui_win_info, struct tui_source_window_base)
7262 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7263 * tui/tui-data.c (tui_init_generic_part): Update.
7264
7265 2019-06-25 Tom Tromey <tom@tromey.com>
7266
7267 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7268 (tui_source_window_base::make_visible): New methods.
7269 (make_all_visible): Make method call.
7270 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7271 (struct tui_source_window_base, struct tui_cmd_window): Override
7272 make_visible.
7273 (tui_win_is_source_type): Don't declare.
7274 * tui/tui-data.c (tui_win_is_source_type): Remove.
7275
7276 2019-06-25 Tom Tromey <tom@tromey.com>
7277
7278 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7279 NULL check.
7280
7281 2019-06-25 Tom Tromey <tom@tromey.com>
7282
7283 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7284 Inline constructor. Add initializers for members.
7285 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7286 constructors; now inline in class.
7287
7288 2019-06-25 Tom Tromey <tom@tromey.com>
7289
7290 * tui/tui-regs.c (tui_show_registers): Update.
7291 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7292 bool.
7293 * tui/tui-data.c (tui_data_window::clear_detail)
7294 (tui_data_window): Update.
7295
7296 2019-06-25 Tom Tromey <tom@tromey.com>
7297
7298 * tui/tui-windata.c (tui_display_all_data)
7299 (tui_display_data_from_line, tui_display_data_from)
7300 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7301 Update.
7302 * tui/tui-regs.c (tui_last_regs_line_no)
7303 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7304 (tui_show_registers, tui_show_register_group)
7305 (tui_display_registers_from, tui_display_reg_element_at_line)
7306 (tui_display_registers_from_line, tui_check_register_values)
7307 (tui_reg_next, tui_reg_prev): Update.
7308 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7309 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7310 tui_data_window.
7311 (struct tui_win_info) <detail>: Remove. Add new fields from
7312 tui_data_info.
7313 (TUI_DATA_WIN): Add cast.
7314 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7315 (~tui_data_window): Simplify.
7316
7317 2019-06-25 Tom Tromey <tom@tromey.com>
7318
7319 * tui/tui-layout.c (show_source_disasm_command)
7320 (show_source_or_disasm_and_command): Update.
7321 * tui/tui-io.c (update_cmdwin_start_line)
7322 (tui_redisplay_readline): Update.
7323 * tui/tui-data.h (struct tui_command_info): Remove.
7324 (struct tui_win_info) <detail>: Remove command_info member.
7325 (struct tui_data_window) <start_line>: New member, from
7326 tui_command_info.
7327 (TUI_CMD_WIN): Add casts.
7328
7329 2019-06-25 Tom Tromey <tom@tromey.com>
7330
7331 * tui/tui-winsource.c (tui_update_source_window)
7332 (tui_refill_source_window)
7333 (tui_source_window_base::do_scroll_horizontal)
7334 (tui_update_breakpoint_info, tui_set_exec_info_content)
7335 (tui_show_exec_info_content, tui_erase_exec_info_content)
7336 (tui_clear_exec_info_content): Update.
7337 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7338 Update.
7339 * tui/tui-win.c (make_invisible_and_set_new_height)
7340 (make_visible_with_new_height): Update.
7341 * tui/tui-source.c (tui_set_source_content)
7342 (tui_show_symtab_source): Update.
7343 * tui/tui-layout.c (extract_display_start_addr)
7344 (show_source_disasm_command, show_data)
7345 (make_source_or_disasm_window)
7346 (show_source_or_disasm_and_command): Update.
7347 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7348 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7349 "gdbarch".
7350 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7351 to tui_source_window_base.
7352 (struct tui_win_info) <detail>: Remove source_info member.
7353 (struct tui_source_window_base) <has_locator>: Inline.
7354 Move contents from tui_source_info; rename has_locator member to
7355 m_has_locator.
7356 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7357 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7358 header file.
7359 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7360 Simplify.
7361 (tui_free_all_source_wins_content): Cast to
7362 tui_source_window_base.
7363
7364 2019-06-25 Tom Tromey <tom@tromey.com>
7365
7366 * tui/tui-win.c (make_invisible_and_set_new_height)
7367 (make_visible_with_new_height): Call has_locator method.
7368 * tui/tui-layout.c (show_source_disasm_command, show_data)
7369 (show_source_or_disasm_and_command): Update for bool change.
7370 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7371 (tui_win_info) <has_locator>: New method.
7372 (struct tui_source_window_base) <has_locator>: New method.
7373 (tui_win_has_locator): Don't declare.
7374 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7375 from tui_win_has_locator.
7376 (tui_source_window_base): Use false, not FALSE.
7377
7378 2019-06-25 Tom Tromey <tom@tromey.com>
7379
7380 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7381 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7382 clear_detail method directly.
7383 (tui_clear_win_detail): Remove.
7384
7385 2019-06-25 Tom Tromey <tom@tromey.com>
7386
7387 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7388 "this", not TUI_DISASM_WIN.
7389
7390 2019-06-25 Tom Tromey <tom@tromey.com>
7391
7392 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7393 declare.
7394 * tui/tui-winsource.c
7395 (tui_source_window_base::do_scroll_horizontal): Rename from
7396 tui_horizontal_source_scroll.
7397 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7398 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7399 from tui_vertical_data_scroll.
7400 * tui/tui-win.h (tui_scroll): Don't declare.
7401 * tui/tui-win.c (tui_win_info::forward_scroll)
7402 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7403 (tui_win_info::right_scroll): Rename and update.
7404 (tui_scroll_forward_command, tui_scroll_backward_command)
7405 (tui_scroll_left_command, tui_scroll_right_command): Update.
7406 (tui_scroll): Remove.
7407 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7408 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7409 from tui_vertical_source_scroll.
7410 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7411 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7412 from tui_vertical_disassem_scroll.
7413 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7414 do_scroll_horizontal>: New methods.
7415 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7416 Likewise.
7417 (struct tui_source_window_base): Add do_scroll_horizontal.
7418 (struct tui_source_window, struct tui_disasm_window): Add
7419 do_scroll_vertical.
7420 (struct tui_data_window, struct tui_cmd_window): Add
7421 do_scroll_horizontal and do_scroll_vertical.
7422 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7423
7424 2019-06-25 Tom Tromey <tom@tromey.com>
7425
7426 * tui/tui-data.h (struct tui_source_window_base): New struct.
7427 (struct tui_source_window): Derive from tui_source_window_base.
7428 (struct tui_disasm_window): New struct.
7429 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7430 from tui_source_window::clear_detail.
7431 (tui_source_window_base): Rename from tui_source_window.
7432 (~tui_source_window_base): Rename from ~tui_source_window.
7433 (tui_alloc_win_info): Create a tui_disasm_window.
7434
7435 2019-06-25 Tom Tromey <tom@tromey.com>
7436
7437 * tui/tui-data.h (struct tui_source_window)
7438 (struct tui_data_window): Declare destructors.
7439 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7440 destructors.
7441 (tui_win_info): Simplify.
7442
7443 2019-06-25 Tom Tromey <tom@tromey.com>
7444
7445 * tui/tui-winsource.c (tui_display_main)
7446 (tui_update_source_windows_with_addr)
7447 (tui_update_all_breakpoint_info): Update.
7448 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7449 (new_height_ok, parse_scrolling_args): Update.
7450 * tui/tui-stack.c (tui_show_frame_info): Update.
7451 * tui/tui-data.h (struct tui_list): Remove.
7452 (tui_source_windows): Return a reference to a std::vector.
7453 * tui/tui-data.c (source_windows): Now a std::vector.
7454 (tui_source_windows): Change return type.
7455 (tui_clear_source_windows): Rewrite.
7456 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7457 (tui_free_all_source_wins_content): Rewrite.
7458
7459 2019-06-25 Tom Tromey <tom@tromey.com>
7460
7461 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7462 (struct tui_data_window, struct tui_cmd_window): Declare
7463 clear_detail method.
7464 * tui/tui-data.c (tui_source_window::clear_detail)
7465 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7466 methods.
7467 (tui_clear_win_detail): Simplify.
7468
7469 2019-06-25 Tom Tromey <tom@tromey.com>
7470
7471 * tui/tui-layout.c (make_source_window, make_disasm_window)
7472 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7473 Return the new window.
7474 (show_source_disasm_command, show_data)
7475 (show_source_or_disasm_and_command): Update.
7476
7477 2019-06-25 Tom Tromey <tom@tromey.com>
7478
7479 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7480 parameter. Return the new window.
7481 (show_source_disasm_command): Update and remove NULL check.
7482 (show_source_or_disasm_and_command): Update.
7483
7484 2019-06-25 Tom Tromey <tom@tromey.com>
7485
7486 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7487
7488 2019-06-25 Tom Tromey <tom@tromey.com>
7489
7490 * tui/tui-data.h (struct tui_win_info): Make constructor
7491 protected. Make destructor virtual. Add initializers.
7492 (tui_source_window, tui_data_window, tui_cmd_window): New
7493 classes.
7494 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7495 constructor. Add "type" parameter.
7496 (tui_source_window, tui_data_window, tui_cmd_window): New
7497 constructors.
7498 (tui_alloc_win_info): Instantiate the appropriate subclass.
7499
7500 2019-06-25 Tom Tromey <tom@tromey.com>
7501
7502 * tui/tui-win.c (tui_resize_all): Use delete.
7503 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7504 destructor.
7505 (tui_free_window): Don't declare.
7506 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7507 Update.
7508
7509 2019-06-25 Tom Tromey <tom@tromey.com>
7510
7511 * tui/tui-data.h (struct tui_win_info): Add constructor.
7512 * tui/tui-data.c (tui_alloc_win_info): Use new.
7513 (tui_free_window): Use delete.
7514
7515 2019-06-22 Tom Tromey <tom@tromey.com>
7516
7517 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7518 declare.
7519 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7520
7521 2019-06-22 Tom Tromey <tom@tromey.com>
7522
7523 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7524 declare.
7525 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7526
7527 2019-06-22 Tom de Vries <tdevries@suse.de>
7528
7529 * dwarf2read.c (create_addrmap_from_aranges)
7530 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7531 instead of '%zu'.
7532
7533 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
7534
7535 * dwarf2read.h (dwarf2_section_info_def): Remove.
7536 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7537 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7538 std::vector<dwarf2_section_info>.
7539 (struct dwo_file) <~dwo_file>: Remove.
7540 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7541 types field.
7542 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7543 (dwarf2_read_debug_names): Likewise.
7544 (create_debug_types_hash_table): Change parameter type to
7545 array_view, adjust code accordingly.
7546 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7547 (partial_die_info::fixup): Likewise.
7548 (determine_prefix): Likewise.
7549 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7550
7551 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7552
7553 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7554 gdb_bfd_ref_ptr.
7555 <~dwo_file>: Remove call to gdb_bfd_unref.
7556 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7557 gdb_bfd_ref_ptr::get.
7558
7559 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7560
7561 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7562 type to htab_up.
7563 * dwarf2read.c (struct dwo_file): Initialize fields.
7564 <~dwo_file>: New.
7565 (free_dwo_file): Remove, move content to ~dwo_file.
7566 (struct dwo_file_deleter): Remove.
7567 (dwo_file_up>: Remove custom deleter.
7568 (free_dwo_files): Remove.
7569 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7570 dwo_files.
7571 (process_skeletonless_type_units): Call unique_ptr::get.
7572 (allocate_dwo_file_hash_table): Add deleter to created hash
7573 table. Change return type to htab_up.
7574 (lookup_dwo_file_slot): Don't memset dwo_file, call
7575 unique_ptr::get.
7576 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7577 (create_dwo_unit_in_dwp_v2): Likewise.
7578 (open_and_init_dwo_file): Likewise.
7579 (free_dwo_file_from_slot): Remove.
7580
7581 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7582
7583 * dwarf2read.h (struct dwarf2_section_info) <readin,
7584 is_virtual>: Change type to bool.
7585 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7586 true instead of 1.
7587
7588 2019-06-19 Tom Tromey <tom@tromey.com>
7589
7590 * tui/tui-data.h (tui_init_content_element): Don't declare.
7591
7592 2019-06-19 Tom Tromey <tom@tromey.com>
7593
7594 * tui/tui-data.h (tui_init_win_info): Don't declare.
7595
7596 2019-06-19 Tom de Vries <tdevries@suse.de>
7597
7598 * dwarf2read.h (abstract_to_concrete): Change type to
7599 std::unordered_map<sect_offset, std::vector<sect_offset>,
7600 gdb::hash_enum<sect_offset>>.
7601
7602 2019-06-19 Tom Tromey <tromey@adacore.com>
7603
7604 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7605 EVAL_AVOID_SIDE_EFFECTS specially.
7606
7607 2019-06-19 Tom Tromey <tromey@adacore.com>
7608
7609 * source-cache.c (highlighter): New global.
7610 (source_cache::get_source_lines): Create a highlighter on demand.
7611
7612 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7613
7614 * defs.h (deprecated_interactive_hook): Delete declaration.
7615 * interps.c (clear_interpreter_hooks): Remove use of
7616 deprecated_interactive_hook.
7617 * top.c (deprecated_interactive_hook): Delete definition.
7618 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7619
7620 2019-06-18 Tom de Vries <tdevries@suse.de>
7621
7622 PR gdb/24515
7623 * dwarf2read.h (abstract_to_concrete): Change type from
7624 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7625 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7626 * dwarf2read.c (read_variable): Update.
7627 (dwarf2_fetch_die_loc_sect_off): Update.
7628
7629 2019-06-17 Tom de Vries <tdevries@suse.de>
7630
7631 PR gdb/24617
7632 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7633 accessing parent[parent_len - 1].
7634
7635 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7636
7637 PR gdb/24364
7638 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7639 call dtrace_process_dof with NULL dof.
7640
7641 2019-06-16 Tom de Vries <tdevries@suse.de>
7642
7643 PR gdb/24445
7644 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7645
7646 2019-06-16 Tom Tromey <tom@tromey.com>
7647
7648 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7649 (make_all_visible): Use address of member.
7650
7651 2019-06-16 Tom Tromey <tom@tromey.com>
7652
7653 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7654 (tui_free_window, free_content, free_content_elements): Remove
7655 unnecessary cast.
7656 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7657 cast.
7658 * tui/tui-regs.c (tui_show_register_group)
7659 (tui_display_registers_from, tui_display_reg_element_at_line):
7660 Remove unnecessary cast.
7661
7662 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7663
7664 * linux-nat.c (normal_mask): Delete.
7665 (_initialize_linux_nat): Don't initialise normal_mask.
7666
7667 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7668
7669 PR gdb/24445
7670 * dwarf-index-write.h (write_psymtabs_to_index): Add
7671 dwz_basename parameter.
7672 * dwarf-index-write.c (write_gdbindex): Move file writing to
7673 write_gdbindex_1. Change return type void.
7674 (assert_file_size): Move up, remove filename parameter.
7675 (write_gdbindex_1): New function.
7676 (write_debug_names): Change return type to void, call
7677 assert_file_size.
7678 (struct index_wip_file): New struct.
7679 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7680 file logic to index_wip_file. Write index for dwz file if
7681 needed.
7682 (save_gdb_index_command): Pass basename of dwz file, if present.
7683 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7684 build-id of dwz file, if present.
7685 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7686 (dwarf2_get_dwz_file): Likewise.
7687 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7688 (dwarf2_get_dwz_file): Likewise.
7689
7690 2019-06-16 Tom Tromey <tom@tromey.com>
7691
7692 * coffread.c (process_coff_symbol): Use xstrdup.
7693 * value.c (create_internalvar): Use xstrdup.
7694
7695 2019-06-16 Tom Tromey <tom@tromey.com>
7696
7697 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7698 * breakpoint.c (stopin_command, stopat_command)
7699 (until_break_command, decode_location_default): Remove unnecessary
7700 cast.
7701 * utils.c (subset_compare): Remove unnecessary cast.
7702 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7703 cast.
7704 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7705 cast.
7706 * infcmd.c (path_command): Remove unnecessary cast.
7707 * coffread.c (decode_type): Remove unnecessary cast.
7708 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7709 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7710 * tui/tui-stack.c (tui_show_locator_content)
7711 (tui_show_frame_info): Remove unnecessary cast.
7712 * tui/tui-win.c (tui_scroll_forward_command)
7713 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7714 (parse_scrolling_args): Remove unnecessary cast.
7715 * tui/tui-data.c (init_win_info, tui_del_window)
7716 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7717 (free_content_elements): Remove unnecessary cast.
7718 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7719 unnecessary cast.
7720 * tui/tui-source.c (tui_set_source_content)
7721 (tui_vertical_source_scroll): Remove unnecessary cast.
7722 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7723 cast.
7724 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7725 * tui/tui-regs.c (tui_display_registers_from)
7726 (tui_display_register): Remove unnecessary cast.
7727 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7728 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7729 (make_visible): Remove unnecessary cast.
7730 * tui/tui-winsource.c (tui_erase_source_content)
7731 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7732 unnecessary cast.
7733 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7734 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7735 * stabsread.c (read_type, read_array_type, read_range_type):
7736 Remove unnecessary cast.
7737 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7738 (parse_symbol, parse_type, upgrade_type, parse_external)
7739 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7740 unnecessary cast.
7741 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7742
7743 2019-06-16 Tom Tromey <tom@tromey.com>
7744
7745 * tui/tui-data.c (tui_alloc_generic_win_info)
7746 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7747 checks.
7748
7749 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7750 Andrew Burgess <andrew.burgess@embecosm.com>
7751
7752 * f-typeprint.c (f_print_type): Don't return early for not
7753 associated or not allocated types.
7754 (f_type_print_varspec_suffix): Add print_rank parameter and print
7755 ranks of array types in case they dangling.
7756 (f_type_print_base): Add print_rank parameter.
7757
7758 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7759
7760 * NEWS: Mention new MI commands.
7761 * break-catch-throw.c (enum exception_event_kind): Move to
7762 breakpoint.h.
7763 (print_mention_exception_catchpoint): Output text as a single
7764 message.
7765 (catch_exception_command_1): Rename to...
7766 (catch_exception_event): ...this, make non-static, update header
7767 command, and change some parameter types.
7768 (catch_catch_command): Update for changes to
7769 catch_exception_command_1.
7770 (catch_throw_command): Likewise.
7771 (catch_rethrow_command): Likewise.
7772 * breakpoint.c (enum exception_event_kind): Delete.
7773 * breakpoint.h (enum exception_event_kind): Moved here from
7774 break-catch-throw.c.
7775 (catch_exception_event): Declare.
7776 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7777 (mi_cmd_catch_throw): New function.
7778 (mi_cmd_catch_rethrow): New function.
7779 (mi_cmd_catch_catch): New function.
7780 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7781 'catch-catch' entries.
7782 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7783 (mi_cmd_catch_rethrow): Declare.
7784 (mi_cmd_catch_catch): Declare.
7785
7786 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7787
7788 * annotate.c (annotate_source_line): Change return type to void,
7789 update implementation to match.
7790 * annotate.h (annotate_source_line): Change return type to void,
7791 update header comment.
7792 * stack.c (print_frame_info): Don't change what frame information
7793 is printed based on whether annotations are on or not.
7794
7795 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7796
7797 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7798 (annotate_source): Make static.
7799 (annotate_source_line): Moved from source.c and renamed from
7800 identify_source_line. Update the return type.
7801 * annotate.h (annotate_source): Delete declaration.
7802 (annotate_source_line): Declaration moved from source.h, and
7803 renamed from identify_source_line. Return type updated.
7804 * source.c (identify_source_line): Moved to annotate.c and renamed
7805 to annotate_source_line.
7806 (info_line_command): Remove check of annotation_level.
7807 * source.h (identify_source_line): Move declaration to annotate.h
7808 and rename to annotate_source_line.
7809 * stack.c: Add 'annotate.h' include.
7810 (print_frame_info): Remove check of annotation_level before
7811 calling annotate_source_line.
7812
7813 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7814
7815 * source-cache.c (source_cache::get_plain_source_lines): Use
7816 open_source_file_with_line_charpos instead of just
7817 open_source_file, remove call to find_source_lines.
7818 (source_cache::get_source_lines): Likewise.
7819 * source.c (find_source_lines): Make static.
7820 (get_filename_and_charpos): Renamed into...
7821 (open_source_file_with_line_charpos): ..this along with changes to
7822 return a scoped_fd, and some other minor clean ups.
7823 (identify_source_line): Use open_source_file_with_line_charpos.
7824 (search_command_helper): Use open_source_file_with_line_charpos
7825 instead of just open_source_file, remove call to
7826 find_source_lines.
7827 * source.h (open_source_file_with_line_charpos): Declare new
7828 function.
7829 (find_source_lines): Delete declaration.
7830
7831 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7832
7833 * source.c (get_filename_and_charpos): Remove fullname
7834 parameter.
7835 (identify_source_line): Update call to get_filename_and_charpos.
7836
7837 2019-06-14 Tom Tromey <tromey@adacore.com>
7838
7839 PR gdb/24502:
7840 * ui-style.h (skip_ansi_escape): Update comment.
7841 * ui-file.h (class no_terminal_escape_file): New class.
7842 * ui-file.c (no_terminal_escape_file::write)
7843 (no_terminal_escape_file::puts): New methods.
7844 * cli/cli-logging.c (handle_redirections): Use
7845 no_terminal_escape_file.
7846
7847 2019-06-14 Tom Tromey <tromey@adacore.com>
7848
7849 * NEWS: Move convenience variable news above Python news.
7850
7851 2019-06-14 Tom Tromey <tom@tromey.com>
7852
7853 * gnulib: Move directory to top-level.
7854 * configure.ac: Don't configure gnulib.
7855 * configure: Rebuild.
7856 * common/common-defs.h: Use new path to gnulib.
7857 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
7858 (GNULIB_H): Remove.
7859 (INCGNU): Look in new gnulib location.
7860 (HFILES_NO_SRCDIR): Remove gnulib files.
7861 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
7862 (generated_files): Remove GNULIB_H.
7863 ($(LIBGNU), all-lib): Remove targets.
7864 (distclean): Don't mention GNULIB_BUILDDIR.
7865 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
7866
7867 2019-06-14 Tom Tromey <tromey@adacore.com>
7868
7869 * symfile.c (add_symbol_file_command): Remove obsolete comment.
7870 Warn if symbol file does not provide any symbols.
7871
7872 2019-06-14 Tom Tromey <tromey@adacore.com>
7873
7874 * source.c (find_and_open_source): Respect basenames_may_differ.
7875
7876 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
7877
7878 * annotate.c (annotate_breakpoints_invalid): Make use of
7879 scoped_restore_terminal_state.
7880 (annotate_frames_invalid): Likewise.
7881
7882 2019-06-14 Tom Tromey <tromey@adacore.com>
7883
7884 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
7885 allow assignment to an internalvar.
7886
7887 2019-06-14 Tom Tromey <tromey@adacore.com>
7888
7889 * ada-lex.l: Allow "_" in attribute names.
7890
7891 2019-06-14 Tom Tromey <tromey@adacore.com>
7892
7893 PR gdb/24653:
7894 * regcache.c (registers_changed): Don't call alloca.
7895 * top.c (execute_command): Don't call alloca.
7896
7897 2019-06-13 Pedro Alves <palves@redhat.com>
7898
7899 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
7900 'expression'. When parsing an expression, error out if there's
7901 junk after "unlimited".
7902 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7903 (do_set_command): Adjust calls to is_unlimited_literal.
7904
7905 2019-06-13 Pedro Alves <palves@redhat.com>
7906
7907 * compile/compile.c (make_compile_options_def_group): Add braces
7908 around array_view initializer.
7909 * thread.c (make_thread_apply_all_options_def_group)
7910 (make_thread_apply_all_options_def_group): Likewise.
7911
7912 2019-06-13 Pedro Alves <palves@redhat.com>
7913
7914 * NEWS (New commands): Mention "maint test-options
7915 require-delimiter", "maint test-options unknown-is-error", "maint
7916 test-options unknown-is-operand" and "maint show
7917 test-options-completion-result".
7918 (New command options, command completion): New section.
7919 (Completion improvements): New section.
7920 Mention that you can abbreviate "unlimited".
7921
7922 2019-06-13 Pedro Alves <palves@redhat.com>
7923
7924 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7925 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7926 * unittests/cli-utils-selftests.c (test_parse_flags)
7927 (test_parse_flags_qcs): Delete.
7928 (test_cli_utils): Don't call deleted functions.
7929
7930 2019-06-13 Pedro Alves <palves@redhat.com>
7931
7932 * thread.c: Include "cli/cli-option.h".
7933 (tp_array_compar_ascending): Global.
7934 (tp_array_compar): Delete function.
7935 (tp_array_compar_ascending, tp_array_compar_descending): New
7936 functions.
7937 (ascending_option_def, qcs_flag_option_def)
7938 (thr_qcs_flags_option_defs)
7939 (make_thread_apply_all_options_def_group)
7940 (make_thread_apply_options_def_group): New.
7941 (thread_apply_all_command): Use gdb::option::process_options.
7942 (thread_apply_command_completer)
7943 (thread_apply_all_command_completer): New.
7944 (thread_apply_command): Use gdb::option::process_options.
7945 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
7946 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
7947 to generate help text of "thread apply". Adjust "taas"'s help.
7948 * tid-parse.c (tid_range_parser::in_thread_range): New method.
7949 * tid-parse.h (tid_range_parser::in_thread_range): New method.
7950
7951 2019-06-13 Pedro Alves <palves@redhat.com>
7952
7953 * thread.c (thread_apply_command): Check for invalid TID with
7954 isdigit instead of !isalpha.
7955
7956 2019-06-13 Pedro Alves <palves@redhat.com>
7957
7958 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
7959 (validate_flags_qcs): New.
7960 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
7961 (validate_flags_qcs): Declare.
7962 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
7963 (make_frame_apply_options_def_group): New.
7964 (frame_apply_command_count): Process options with
7965 gdb::option::process_options.
7966 (frame_apply_completer): New.
7967 (frame_apply_level_completer, frame_apply_all_completer)
7968 (frame_apply_completer): New.
7969 (_initialize_stack): Update help of "frame apply", "frame apply
7970 level", "frame apply all" and "faas" to mention supported options
7971 and install command completers.
7972 * stack.h (frame_apply_all_completer): Declare.
7973 * thread.c: Include "stack.h".
7974 (tfaas_command): Add "--".
7975 (_initialize_thread): Update help "tfaas" to mention supported
7976 options and install command completer.
7977
7978 2019-06-13 Pedro Alves <palves@redhat.com>
7979
7980 * completer.c (complete_nested_command_line): New.
7981 (gdb_completion_word_break_characters_throw): Add assertion.
7982 * completer.h (complete_nested_command_line): Declare.
7983
7984 2019-06-13 Pedro Alves <palves@redhat.com>
7985
7986 * stack.c (parse_backtrace_qualifiers): New.
7987 (backtrace_command): Use it.
7988 (backtrace_command_completer): Complete on qualifiers.
7989
7990 2019-06-13 Pedro Alves <palves@redhat.com>
7991
7992 * frame.c: Include "cli/cli-option.h.
7993 (user_set_backtrace_options): New.
7994 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
7995 Delete.
7996 (get_prev_frame): Adjust.
7997 (boolean_option_def, uinteger_option_def)
7998 (set_backtrace_option_defs): New.
7999 (_initialize_frame): Adjust and use
8000 gdb::option::add_setshow_cmds_for_options to install "set
8001 backtrace past-main" and "set backtrace past-entry".
8002 * frame.h: Include "cli/cli-option.h".
8003 (struct frame_print_options): Forward declare.
8004 (print_frame_arguments_all, print_frame_arguments_scalars)
8005 (print_frame_arguments_none): Declare.
8006 (print_entry_values): Delete declaration.
8007 (struct frame_print_options, user_frame_print_options): New.
8008 (struct set_backtrace_options): New.
8009 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8010 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8011 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8012 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8013 (list_args_or_locals): Add frame_print_options parameter.
8014 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8015 * python/py-framefilter.c (enumerate_args): Pass down
8016 USER_FRAME_PRINT_OPTIONS.
8017 * stack.c: Include "cli/cli-option.h".
8018 (print_frame_arguments_all, print_frame_arguments_scalars)
8019 (print_frame_arguments_none): Declare.
8020 (print_raw_frame_arguments, print_entry_values): Delete.
8021 (user_frame_print_options): New.
8022 (boolean_option_def, enum_option_def, frame_print_option_defs):
8023 New.
8024 (struct backtrace_cmd_options): New.
8025 (bt_flag_option_def): New.
8026 (backtrace_command_option_defs): New.
8027 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8028 (print_frame_arg, read_frame_arg, print_frame_args)
8029 (print_frame_info, print_frame): Add frame_print_options parameter
8030 and use it.
8031 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8032 (backtrace_command_1): Add frame_print_options and
8033 backtrace_cmd_options parameters and use them.
8034 (make_backtrace_options_def_group): New.
8035 (backtrace_command): Process command options with
8036 gdb::option::process_options.
8037 (backtrace_command_completer): New.
8038 (_initialize_stack): Extend "backtrace"'s help to mention
8039 supported options. Install completer for "backtrace".
8040 Install some settings commands with add_setshow_cmds_for_options.
8041
8042 2019-06-13 Pedro Alves <palves@redhat.com>
8043
8044 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8045 and that "set/show print raw frame-arguments" are now deprecated.
8046
8047 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8048 command.
8049 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8050 * stack.c (_initialize_stack): Install "set/show print
8051 raw-frame-arguments", and deprecate "set/show print raw
8052 frame-arguments".
8053 * valprint.c (_initialize_valprint): Deprecate "set/show print
8054 raw".
8055
8056 2019-06-13 Pedro Alves <palves@redhat.com>
8057
8058 * compile/compile.c (struct compile_options): New.
8059 (compile_flag_option_def, compile_command_option_defs)
8060 (make_compile_options_def_group): New.
8061 (compile_file_command): Handle options with
8062 gdb::option::process_options.
8063 (compile_file_command_completer): New function.
8064 (compile_code_command): Handle options with
8065 gdb::option::process_options.
8066 (compile_code_command_completer): New function.
8067 (_initialize_compiler): Install completers for "compile code" and
8068 "compile file". Mention available options in "compile code" and
8069 "compile code"'s help.
8070 * completer.c (advance_to_completion_word): New, factored out from
8071 ...
8072 (advance_to_expression_complete_word_point): ... this.
8073 (advance_to_filename_complete_word_point): New.
8074 * completer.h (advance_to_filename_complete_word_point): New
8075 declaration.
8076
8077 2019-06-13 Pedro Alves <palves@redhat.com>
8078
8079 * compile/compile.c: Include "cli/cli-option.h".
8080 (compile_print_value): Scope data pointer is now a
8081 value_print_options pointer; adjust.
8082 (compile_print_command): Process options. Scope data pointer is
8083 now a value_print_options pointer; adjust.
8084 (_initialize_compile): Update "compile print"'s help to include
8085 supported options. Install a completer for "compile print".
8086 * cp-valprint.c (show_vtblprint, show_objectprint)
8087 (show_static_field_print): Delete.
8088 (_initialize_cp_valprint): Don't install "set print
8089 static-members", "set print vtbl", "set print object" here.
8090 * printcmd.c: Include "cli/cli-option.h" and
8091 "common/gdb_optional.h".
8092 (print_command_parse_format): Rework to fill in a
8093 value_print_options instead of a format_data.
8094 (print_value): Change parameter type from format_data pointer to
8095 value_print_options reference. Adjust.
8096 (print_command_1): Process options. Adjust to pass down a
8097 value_print_options.
8098 (print_command_completer): New.
8099 (_initialize_printcmd): Install print_command_completer as
8100 handle_brkchars completer for the "print" command. Update
8101 "print"'s help to include supported options.
8102 * valprint.c: Include "cli/cli-option.h".
8103 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8104 here from cp-valprint.c.
8105 (boolean_option_def, uinteger_option_def)
8106 (value_print_option_defs, make_value_print_options_def_group):
8107 New. Use gdb::option::add_setshow_cmds_for_options to install
8108 "set print elements", "set print null-stop", "set print repeats",
8109 "set print pretty", "set print union", "set print array", "set
8110 print address", "set print symbol", "set print array-indexes".
8111 * valprint.h: Include <string> and "cli/cli-option.h".
8112 (make_value_print_options_def_group): Declare.
8113 (print_value): Change parameter type from format_data pointer to
8114 value_print_options reference.
8115 (print_command_completer): Declare.
8116
8117 2019-06-13 Pedro Alves <palves@redhat.com>
8118
8119 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8120 (COMMON_SFILES): Add maint-test-settings.c.
8121 * cli/cli-decode.c (boolean_enums): New global, factored out from
8122 ...
8123 (add_setshow_boolean_cmd): ... here.
8124 * cli/cli-decode.h (boolean_enums): Declare.
8125 * cli/cli-option.c: New file.
8126 * cli/cli-option.h: New file.
8127 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8128 factored out from ...
8129 (parse_cli_boolean_value(const char *)): ... this.
8130 (is_unlimited_literal): Change parameter type to pointer to
8131 pointer. Adjust and advance ARG pointer.
8132 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8133 (parse_cli_var_enum): New, factored out from ...
8134 (do_set_command): ... this. Adjust.
8135 * cli/cli-setshow.h (parse_cli_boolean_value)
8136 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8137 (parse_cli_var_enum): Declare.
8138 * cli/cli-utils.c: Include "cli/cli-option.h".
8139 (get_ulongest): New.
8140 * cli/cli-utils.h (get_ulongest): Declare.
8141 (check_for_argument): New overloads.
8142 * maint-test-options.c: New file.
8143
8144 2019-06-13 Pedro Alves <palves@redhat.com>
8145
8146 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8147 parse a range if "-" is at the end of the string.
8148
8149 2019-06-13 Pedro Alves <palves@redhat.com>
8150
8151 * cli/cli-setshow.c (parse_auto_binary_operation)
8152 (parse_cli_boolean_value): Don't allow "o".
8153
8154 2019-06-13 Pedro Alves <palves@redhat.com>
8155
8156 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8157 * NEWS: Mention maint test-settings KIND.
8158 * maint-test-settings.c: New file.
8159
8160 2019-06-13 Pedro Alves <palves@redhat.com>
8161
8162 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8163 completer.
8164 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8165 "set" completers.
8166
8167 2019-06-13 Pedro Alves <palves@redhat.com>
8168
8169 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8170 after item.
8171
8172 2019-06-13 Pedro Alves <palves@redhat.com>
8173
8174 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8175
8176 2019-06-13 Pedro Alves <palves@redhat.com>
8177
8178 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8179 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8180 call.
8181 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8182 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8183 calls.
8184 (check_for_argument): Skip spaces after argument.
8185
8186 2019-06-13 Pedro Alves <palves@redhat.com>
8187
8188 * thread.c (thread_apply_command): Adjust TID parsing.
8189 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8190 detected before end of string.
8191 (tid_is_in_list): Error out if LIST is invalid.
8192
8193 2019-06-13 Pedro Alves <palves@redhat.com>
8194
8195 * completer.c (complete_line_internal_1): Rewind completion word
8196 point.
8197 (completion_tracker::advance_custom_word_point_by): Change
8198 parameter type to int.
8199 * completer.h (completion_tracker::advance_custom_word_point_by):
8200 Likewise.
8201
8202 2019-06-13 Pedro Alves <palves@redhat.com>
8203
8204 * completer.c (advance_to_completion_word): Handle delimiters.
8205
8206 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8207
8208 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8209
8210 2019-06-11 Tom Tromey <tom@tromey.com>
8211
8212 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8213 (xmalloc_failed): Move to alloc.c.
8214 * alloc.c: New file.
8215 * Makefile.in (COMMON_SFILES): Add alloc.c.
8216
8217 2019-06-11 Tom Tromey <tom@tromey.com>
8218
8219 * nat/linux-waitpid.c: Don't include server.h.
8220 (linux_debug): Remove.
8221 (my_waitpid): Update.
8222
8223 2019-06-11 Tom Tromey <tromey@adacore.com>
8224
8225 * infcall.c (_initialize_infcall): Remove trailing newline from
8226 help.
8227 * user-regs.c (_initialize_user_regs): Remove trailing newline
8228 from help.
8229 * typeprint.c (_initialize_typeprint): Remove trailing newline
8230 from help.
8231 * reverse.c (_initialize_reverse): Remove trailing newlines from
8232 help.
8233 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8234 from help.
8235 * language.c (add_set_language_command): Remove trailing newline
8236 from help.
8237 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8238 help.
8239 * disasm.c (_initialize_disasm): Remove trailing newline from
8240 help.
8241 * top.c (init_main): Remove trailing newline from help.
8242 * interps.c (_initialize_interpreter): Remove trailing newline
8243 from help.
8244 * btrace.c (_initialize_btrace): Remove trailing newlines from
8245 help.
8246 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8247 from help.
8248 * python/python.c (_initialize_python): Remove trailing newline
8249 from help.
8250 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8251 help.
8252 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8253 from help. Reformat some text.
8254 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8255 from help.
8256 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8257 newline from help.
8258
8259 2019-06-11 Tom Tromey <tromey@adacore.com>
8260
8261 * darwin-nat.c (darwin_decode_exception_message)
8262 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8263
8264 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8265
8266 * valops.c (value_slice): Check for not allocated or not
8267 associated values.
8268
8269 2019-06-10 Tom de Vries <tdevries@suse.de>
8270
8271 PR gdb/24618
8272 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8273 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8274 invalid.
8275
8276 2019-06-10 Tom de Vries <tdevries@suse.de>
8277
8278 PR gdb/24611
8279 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8280 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8281
8282 2019-06-10 Tom de Vries <tdevries@suse.de>
8283
8284 PR symtab/24545
8285 * symtab.c (struct demangled_name_entry): Add language field.
8286 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8287 static minimal symbol". Set and use language field.
8288
8289 2019-06-10 Tom Tromey <tromey@adacore.com>
8290
8291 * ada-lang.c (_initialize_ada_language): Update help text.
8292
8293 2019-06-10 Tom Tromey <tromey@adacore.com>
8294
8295 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8296 with a newline.
8297 * guile/guile.c (handle_boot_error): Don't end warning with a
8298 newline.
8299 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8300 warning with a newline.
8301 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8302 newline.
8303 (s12z_frame_cache): Likewise.
8304 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8305 a newline.
8306 * solib-svr4.c (disable_probes_interface): Don't end warning with
8307 a newline.
8308 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8309 newline.
8310 * python/python.c (do_finish_initialization): Don't end warning
8311 with a newline.
8312
8313 2019-06-10 Tom Tromey <tom@tromey.com>
8314
8315 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8316 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8317 gdbpy_enter.
8318
8319 2019-06-10 Tom Tromey <tromey@adacore.com>
8320
8321 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8322 data.
8323 (elf_new_init): Don't call stabsread_new_init.
8324 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8325 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8326 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8327
8328 2019-06-10 Tom de Vries <tdevries@suse.de>
8329
8330 PR symtab/16264
8331 PR symtab/24517
8332 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8333
8334 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8335
8336 * source.c (find_and_open_source): Also rewrite relative file
8337 names.
8338
8339 2019-04-26 Amos Bird <amosbird@gmail.com>
8340
8341 * annotate.c (annotate_thread_exited): Add "thread-exited"
8342 annotation.
8343
8344 2019-06-06 Tom Tromey <tromey@adacore.com>
8345
8346 * maint.h (class scoped_command_stats): Use
8347 DISABLE_COPY_AND_ASSIGN.
8348 <print_time>: New method.
8349 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8350 print_time.
8351 (scoped_command_stats::print_time): New method.
8352
8353 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8354
8355 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8356 instructions of lengths 6 or 8 bytes.
8357
8358 2019-06-04 Pedro Alves <palves@redhat.com>
8359
8360 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8361
8362 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8363 * breakpoint.c (condition_completer): Likewise.
8364 * cli/cli-dump.c (scan_expression): Likewise.
8365 * common/filestuff.c (mkdir_recursive): Likewise.
8366 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8367 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8368 (gdb_abspath): Likewise.
8369 * compile/compile-cplus-types.c
8370 (compile_cplus_instance::decl_name): Likewise.
8371 * completer.c (complete_explicit_location):
8372 (signal_completer, reg_or_group_completer_1): Likewise.
8373 * cp-support.c (cp_remove_params_if_any): Likewise.
8374 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8375 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8376 * infcmd.c (strip_bg_char): Likewise.
8377 * linespec.c (copy_token_string): Likewise.
8378 * mi/mi-main.c (output_cores): Likewise.
8379 * psymtab.c (psymtab_search_name):
8380 * symfile.c (test_set_ext_lang_command): Likewise.
8381 * target.c (target_fileio_read_stralloc): Likewise.
8382 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8383 * value.c (complete_internalvar): Likewise.
8384
8385 2019-06-04 Christian Biesinger <cbiesinger@google.com>
8386
8387 Add objfile property to gdb.Type.
8388 * NEWS: Mention Python API addition.
8389 * python/py-type.c (typy_get_objfile): New method.
8390
8391 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8392
8393 * NEWS: Mention the new set|show style [title|highlight].
8394 Mention changes to "show style", "help" and "apropos".
8395
8396 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8397
8398 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8399 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8400 instead of print_help_for_command.
8401 (print_doc_of_command): New function.
8402 (help_list): Add 'apropos -v word' suggestion.
8403 (print_help_for_command): Style the command name using title style.
8404 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8405 (_initialize_cli_cmds): Describe -v in apropos_command help.
8406
8407 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8408
8409 * cli/cli-style.h (cli_style_option): Add name in constructor,
8410 add m_name class member, add constructor with intensity,
8411 add name class function.
8412 (cli_style_option::add_setshow_commands): Remove name argument.
8413 (highlight_style, title_style): New styles.
8414 * cli/cli-style.c (do_show): New function that shows a style
8415 characteristic styling the style name with itself.
8416 (set_style_name): New function.
8417 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8418 Update all callers according to the changes in cli/cli-style.h.
8419 * utils.h (fputs_highlighted): New function.
8420 * utils.c (fputs_highlighted): Likewise.
8421
8422 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8423
8424 * NEWS: Mention new pipe command and new convenience variables.
8425
8426 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8427
8428 * cli/cli-cmds.c (pipe_command): New function.
8429 (_initialize_cli_cmds): Call add_com for pipe_command.
8430 Define | as an alias for pipe.
8431 (exit_status_set_internal_vars): New function.
8432 (shell_escape): Call exit_status_set_internal_vars.
8433 cli/cli-decode.c (find_command_name_length): Recognize | as
8434 a single character command.
8435
8436 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8437
8438 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8439 top.c (execute_command_to_ui_file): New function, mostly a copy
8440 of execute_command_to_string.
8441 (execute_command_to_string): Implement by calling
8442 execute_command_to_ui_file.
8443
8444 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8445
8446 * top.h (saved_command_line): Remove declaration.
8447 * top.c (previous_saved_command_line, previous_repeat_arguments):
8448 New variables.
8449 (saved_command_line): Make static, define together with other
8450 'repeat variables'.
8451 (dont_repeat): Clear repeat_arguments.
8452 (repeat_previous, get_saved_command_line, save_command_line):
8453 New functions.
8454 (gdb_init): Initialize saved_command_line
8455 and previous_saved_command_line.
8456 * main.c (captured_main_1): Remove saved_command_line initialization.
8457 * event-top.c (handle_line_of_input): Update to use
8458 the new 'repeat' related functions instead of direct access to
8459 saved_command_line.
8460 * command.h (repeat_previous, get_saved_command_line,
8461 save_command_line): New declarations.
8462 (dont_repeat): Add comment.
8463
8464 2019-05-30 Tom Tromey <tromey@adacore.com>
8465
8466 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8467 Fix comment.
8468 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8469
8470 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8471
8472 PR cli/24587
8473 * completer.c (complete): Initialize variable word.
8474
8475 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8476
8477 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8478 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8479 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8480 'body' is NULL to the outter 'if', protecting the '!is_define'
8481 situation as well.
8482
8483 2019-05-29 Tom Tromey <tromey@adacore.com>
8484
8485 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8486 (dwarf_unknown): New function.
8487 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8488 (dwarf_type_encoding_name): Use dwarf_unknown.
8489
8490 2019-05-29 Tom Tromey <tromey@adacore.com>
8491
8492 PR c++/20020:
8493 * cp-valprint.c (cp_print_value_fields): Call
8494 cp_print_static_field inside "try".
8495
8496 2019-05-29 Tom Tromey <tromey@adacore.com>
8497
8498 * inflow.c (struct terminal_info): Add default operator=.
8499 * configure: Rebuild.
8500 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8501 -Wdeprecated-copy-dtor, -Wredundant-move.
8502
8503 2019-05-29 Tom Tromey <tromey@adacore.com>
8504
8505 * NEWS: Add entry.
8506 * infcmd.c (print_return_value_1): Handle finish_print
8507 option.
8508 (show_print_finish): New function.
8509 (_initialize_infcmd): Add "set/show print finish" commands.
8510 * valprint.c (user_print_options): Initialize new member.
8511 * valprint.h (struct value_print_options) <finish_print>: New
8512 member.
8513
8514 2019-05-28 Tom Tromey <tromey@adacore.com>
8515
8516 * ada-lang.c (ada_remove_Xbn_suffix)
8517 (find_old_style_renaming_symbol)
8518 (parse_old_style_renaming): Remove.
8519 (ada_find_renaming_symbol): Don't call
8520 find_old_style_renaming_symbol.
8521 (ada_is_renaming_symbol): Rename from
8522 ada_find_renaming_symbol. Remove "block" parameter. Return
8523 bool. Now static.
8524 (ada_read_var_value): Update and simplify.
8525 * ada-exp.y (write_var_or_type): Remove old code.
8526
8527 2019-05-28 Alan Hayward <alan.hayward@arm.com>
8528
8529 PR gdb/25010
8530 * event-top.c: Remove include comment.
8531 * inflow.c (class scoped_ignore_sigttou): Move from here...
8532 * inflow.h (class scoped_ignore_sigttou): ...to here.
8533 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8534 * top.c: Remove include comment.
8535
8536 2019-05-27 Tom Tromey <tom@tromey.com>
8537
8538 * NEWS: Fix typo.
8539
8540 2019-05-22 Tom Tromey <tromey@adacore.com>
8541
8542 * target.c (target_follow_exec): Constify parameter.
8543 * target-delegates.c: Rebuild.
8544 * remote.c (remote_target::follow_exec): Constify parameter.
8545 * infrun.c (follow_exec): Constify parameter.
8546 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8547 (target_follow_exec): Likewise.
8548
8549 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8550
8551 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8552 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8553
8554 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8555
8556 * NEWS: Add debugredirect and testsuite sections.
8557
8558 2019-05-22 Simon Cook <simon.cook@embecosm.com>
8559
8560 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8561 target descriptions using exclusively floating point register name
8562 aliases.
8563
8564 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8565
8566 PR gdb/18644:
8567 * f-lang.c (build_fortran_types): Handle the case where
8568 gdbarch_floatformat_for_type returns a nullptr.
8569
8570 2019-05-21 Tom de Vries <tdevries@suse.de>
8571
8572 PR cli/24587
8573 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8574
8575 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8576
8577 PR gdb/18644:
8578 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8579 16-byte floats.
8580 * i386-tdep.c (i386_floatformat_for_type): Use
8581 floatformats_ia64_quad for the 16-byte floating point component
8582 within a fortran 32-byte complex number.
8583
8584 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8585
8586 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8587 delete default constructor.
8588 (find_partial_die): Update to return const struct.
8589 (partial_die_parent_scope): Move variable declaration into scope
8590 of its use and change its type to auto.
8591 (guess_partial_die_structure_name): Likewise.
8592 (partial_die_info::fixup): Likewise.
8593
8594 2019-05-17 Tom Tromey <tromey@adacore.com>
8595
8596 * source.c (find_and_open_source): Remove cast.
8597
8598 2019-05-17 Tom Tromey <tromey@adacore.com>
8599
8600 * annotate.c (annotate_source): Make "filename" const.
8601 * annotate.h (annotate_source): Use const.
8602
8603 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8604
8605 * disasm.c (set_disassembler_options): Send errors to stderr.
8606
8607 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8608
8609 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8610 (cli_interp_base::set_logging): Check debug_redirect.
8611 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8612 * cli/cli-logging.c (debug_redirect): Add static variable.
8613 (pop_output_files): Add default param.
8614 (handle_redirections): Print debug setting.
8615 (show_logging_command): Likewise.
8616 (_initialize_cli_logging): Add debugredirect command.
8617 * interps.c (current_interp_set_logging): Add debug_redirect
8618 parameter.
8619 * interps.h (set_logging): Add debug_redirect parameter.
8620 (current_interp_set_logging): Likewise.
8621 * mi/mi-common.h: Likewise.
8622 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8623
8624 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8625 Tom Tromey <tromey@adacore.com>
8626
8627 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8628 directly.
8629 * cli/cli-interp.h (make_logging_output): Remove declaration.
8630 * cli/cli-logging.c (make_logging_output): Remove function.
8631 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8632 directly.
8633 * ui-file.c (tee_file::tee_file): Remove bools.
8634 (tee_file::~tee_file): Remove deletes.
8635 * ui-file.h (tee_file): Remove bools.
8636
8637 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8638
8639 * mi/mi-cmds.h (mi_cmd_complete): New function.
8640 * mi/mi-main.c (mi_cmd_complete): Likewise.
8641 * mi/mi-cmds.c: Define new MI command -complete.
8642 * NEWS: Mention new -complete command.
8643
8644 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8645
8646 * completer.h (complete): New function.
8647 * completer.c (complete): Likewise.
8648 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8649 function defined in completer.h.
8650
8651 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8652
8653 * MAINTAINERS (Write After Approval): Add myself.
8654
8655 2019-05-17 Tom de Vries <tdevries@suse.de>
8656
8657 PR gdb/24094
8658 * dwarf2read.c (struct cu_partial_die_info): New struct.
8659 (find_partial_die): Return cu_partial_die_info.
8660 (partial_die_parent_scope, guess_partial_die_structure_name)
8661 (partial_die_info::fixup): Handle new return type of find_partial_die.
8662
8663 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8664
8665 PR breakpoints/24541
8666 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8667 "std::string", simplifying the algorithm.
8668
8669 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8670
8671 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8672 (stap_static_probe_ops::get_probes): Likewise.
8673
8674 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8675
8676 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8677 '-')" and "else if".
8678 (stap_parse_single_operand): Join checks for
8679 "gdbarch_stap_parse_special_token_p" and
8680 "gdbarch_stap_parse_special_token" in the same "if" statement.
8681 Invert check when verifying for operation on register
8682 displacement.
8683
8684 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8685
8686 * stap-probe.c (stap_get_opcode): Update comment.
8687 (stap_get_expected_argument_type): Likewise.
8688 (handle_stap_probe): Likewise.
8689
8690 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8691
8692 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8693 return type to 'bool'. Adjust comment. Use 'bool' when
8694 appropriate.
8695 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8696 * stap-probe.c (stap_parse_argument_1): Likewise.
8697 (stap_is_operator): Likewise.
8698 (stap_is_generic_prefix): Likewise.
8699 (stap_is_register_prefix): Likewise.
8700 (stap_is_register_indirection_prefix): Likewise.
8701 (stap_is_integer_prefix): Likewise.
8702 (stap_generic_check_suffix): Likewise.
8703 (stap_check_integer_suffix): Likewise.
8704 (stap_check_register_suffix): Likewise.
8705 (stap_check_register_indirection_suffix): Likewise.
8706 (stap_parse_register_operand): Likewise.
8707 (stap_parse_single_operand): Likewise.
8708 (stap_parse_argument_1): Likewise.
8709 (stap_probe::get_argument_count): Likewise.
8710 (stap_is_operator): Likewise.
8711
8712 2019-05-16 Tom Tromey <tromey@adacore.com>
8713
8714 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8715 keyword to foreach.
8716
8717 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
8718
8719 * linux-thread-db.c (try_thread_db_load_1): Change return type
8720 to bool.
8721 (try_thread_db_load): Likewise.
8722 (try_thread_db_load_from_pdir_1): Likewise.
8723 (try_thread_db_load_from_pdir): Likewise.
8724 (try_thread_db_load_from_sdir): Likewise.
8725 (try_thread_db_load_from_dir): Likewise.
8726 (thread_db_load_search): Likewise.
8727 (has_libpthread): Likewise.
8728 (thread_db_load): Likewise.
8729
8730 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8731
8732 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8733 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8734 NULL, and complain/return if that's the case.
8735
8736 2019-05-15 John Darrington <john@darrington.wattle.id.au>
8737
8738 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8739 (advance, posn, abstract_read_memory): New functions.
8740 [struct mem_read_abstraction]: New struct.
8741 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8742
8743 2019-05-14 Tom Tromey <tromey@adacore.com>
8744
8745 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8746 value is not lval_memory.
8747
8748 2019-05-14 Tom Tromey <tromey@adacore.com>
8749
8750 * solib.c (info_sharedlibrary_command): Style the file name.
8751
8752 2019-05-14 Alan Hayward <alan.hayward@arm.com>
8753
8754 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8755 (aarch64_vnv_type): Likewise.
8756 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8757 * common/tdesc.c: Likewise.
8758 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8759 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8760 * features/aarch64-fpu.xml: Add ieee half view.
8761 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8762 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8763 * gdbtypes.h (struct builtin_type): Likewise.
8764 (struct objfile_type): Likewise.
8765
8766 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
8767
8768 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8769 typo.
8770 * location.h (string_to_event_location): Likewise.
8771
8772 2019-05-11 Joel Brobecker <brobecker@adacore.com>
8773
8774 GDB 8.3 released.
8775
8776 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8777
8778 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8779 New variable declaration.
8780 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8781 New variable.
8782 (print_one_breakpoint): Use ui_out::test_flags and new global
8783 variable to compute use_fixed_output.
8784 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8785 Remove.
8786 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8787 (mi_multi_location_breakpoint_output_fixed): Remove.
8788 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8789 new variable.
8790 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8791 fix_multi_location_breakpoint_output flag if version >= 3.
8792 * ui-out.h (enum ui_out_flag)
8793 <fix_multi_location_breakpoint_output>: New enumerator.
8794
8795 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8796
8797 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8798
8799 2019-05-10 Tom Tromey <tromey@adacore.com>
8800
8801 * ada-lang.c (catch_ada_completer): New function.
8802 (_initialize_ada_language): Use it.
8803
8804 2019-05-10 Tom Tromey <tromey@adacore.com>
8805
8806 * thread.c (print_thread_info): Make "requested_threads" const.
8807 * gdbthread.h (print_thread_info): Make "requested_threads"
8808 const.
8809 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8810 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8811
8812 2019-05-08 Tom Tromey <tom@tromey.com>
8813
8814 * gdbtypes.c (objfile_type_data): Change type.
8815 (objfile_type, _initialize_gdbtypes): Update.
8816
8817 2019-05-08 Tom Tromey <tom@tromey.com>
8818
8819 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8820 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8821 (_initialize_dwarf2_frame): Update.
8822
8823 2019-05-08 Tom Tromey <tom@tromey.com>
8824
8825 * objc-lang.c (objc_objfile_data): Change type.
8826 (find_methods): Update.
8827 (_initialize_objc_lang): Remove.
8828
8829 2019-05-08 Tom Tromey <tom@tromey.com>
8830
8831 * stabsread.c (rs6000_builtin_type_data): Change type.
8832 (rs6000_builtin_type, _initialize_stabsread): Update.
8833
8834 2019-05-08 Tom Tromey <tom@tromey.com>
8835
8836 * mips-tdep.c (mips_pdr_data): Remove.
8837 (_initialize_mips_tdep): Update.
8838
8839 2019-05-08 Tom Tromey <tom@tromey.com>
8840
8841 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
8842 (hppa_init_objfile_priv_data, read_unwind_info)
8843 (find_unwind_entry, _initialize_hppa_tdep): Update.
8844
8845 2019-05-08 Tom Tromey <tom@tromey.com>
8846
8847 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
8848 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
8849 on obstack.
8850 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
8851
8852 2019-05-08 Tom Tromey <tom@tromey.com>
8853
8854 * mdebugread.c (basic_type_data): Change type.
8855 (basic_type, _initialize_mdebugread): Update.
8856
8857 2019-05-08 Tom Tromey <tom@tromey.com>
8858
8859 * common/gdb_unique_ptr.h (struct noop_deleter): New.
8860
8861 2019-05-08 Tom Tromey <tom@tromey.com>
8862
8863 * nto-tdep.c (nto_inferior_data_reg): Change type.
8864 (nto_inferior_data): Update.
8865 (nto_inferior_data_cleanup, nto_new_inferior_data)
8866 (_initialize_nto_tdep): Remove.
8867 * nto-tdep.h (struct nto_inferior_data): Add initializers.
8868
8869 2019-05-08 Tom Tromey <tom@tromey.com>
8870
8871 * ada-lang.c (struct ada_inferior_data): Add initializers.
8872 (ada_inferior_data): Change type.
8873 (ada_inferior_data_cleanup): Remove.
8874 (get_ada_inferior_data, ada_inferior_exit)
8875 (struct ada_pspace_data): Add initializers, destructor.
8876 (ada_pspace_data_handle): Change type.
8877 (get_ada_pspace_data): Update.
8878 (ada_pspace_data_cleanup): Remove.
8879
8880 2019-05-08 Tom Tromey <tom@tromey.com>
8881
8882 * coffread.c (struct coff_symfile_info): Add initializers.
8883 (coff_objfile_data_key): Move lower. Change type.
8884 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
8885 Update.
8886 (coff_free_info): Remove.
8887
8888 2019-05-08 Tom Tromey <tom@tromey.com>
8889
8890 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
8891 (fbsd_pspace_data_handle): Move lower. Change type.
8892 (get_fbsd_pspace_data): Update.
8893 (fbsd_pspace_data_cleanup): Remove.
8894 (_initialize_fbsd_tdep): Update.
8895
8896 2019-05-08 Tom Tromey <tom@tromey.com>
8897
8898 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
8899 (get_ada_tasks_pspace_data): Update.
8900 (ada_tasks_pspace_data_cleanup): Remove.
8901 (_initialize_tasks): Update.
8902 (ada_tasks_inferior_data_handle): Change type.
8903 (get_ada_tasks_inferior_data): Update.
8904 (ada_tasks_inferior_data_cleanup): Remove.
8905 (struct ada_tasks_pspace_data): Add initializers.
8906
8907 2019-05-08 Tom Tromey <tom@tromey.com>
8908
8909 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
8910 * symfile-debug.c (debug_sym_get_probes): Change type.
8911 * stap-probe.c (handle_stap_probe):
8912 (stap_static_probe_ops::get_probes): Change type.
8913 * probe.h (class static_probe_ops) <get_probes>: Change type.
8914 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
8915 (parse_probes_in_pspace): Update.
8916 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
8917 Update.
8918 (any_static_probe_ops::get_probes): Change type.
8919 * elfread.c (elfread_data): New typedef.
8920 (probe_key): Change type.
8921 (elf_get_probes): Likewise. Update.
8922 (probe_key_free): Remove.
8923 (_initialize_elfread): Update.
8924 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8925 Change type.
8926 (dtrace_process_dof_probe, dtrace_process_dof)
8927 (dtrace_static_probe_ops::get_probe): Change type.
8928
8929 2019-05-08 Tom Tromey <tom@tromey.com>
8930
8931 * xcoffread.c (struct xcoff_symfile_info): Rename from
8932 coff_symfile_info. Add initializers.
8933 (xcoff_objfile_data_key): Move lower. Change type.
8934 (XCOFF_DATA): Rewrite.
8935 (xcoff_free_info): Remove.
8936 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
8937 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
8938 (xcoff_initial_scan): Update.
8939
8940 2019-05-08 Tom Tromey <tom@tromey.com>
8941
8942 * solib-svr4.c (struct svr4_info): Add initializers and
8943 destructor.
8944 <probes_table>: Now an htab_up.
8945 (solib_svr4_pspace_data): Change type.
8946 (free_probes_table): Simplify.
8947 (~svr4_info): Rename from svr4_pspace_data_cleanup.
8948 (get_svr4_info, probes_table_htab_remove_objfile_probes)
8949 (probes_table_remove_objfile_probes, register_solib_event_probe)
8950 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
8951 (_initialize_svr4_solib): Update.
8952
8953 2019-05-08 Tom Tromey <tom@tromey.com>
8954
8955 * remote.c (remote_pspace_data): Change type.
8956 (remote_pspace_data_cleanup): Remove.
8957 (get_remote_exec_file, set_pspace_remote_exec_file)
8958 (_initialize_remote): Update.
8959
8960 2019-05-08 Tom Tromey <tom@tromey.com>
8961
8962 * breakpoint.c (breakpoint_objfile_key): Change type.
8963 (get_breakpoint_objfile_data): Update.
8964 (free_breakpoint_objfile_data): Remove.
8965 (_initialize_breakpoint): Update.
8966
8967 2019-05-08 Tom Tromey <tom@tromey.com>
8968
8969 * linux-tdep.c (struct linux_info): Add initializers.
8970 (linux_inferior_data): Move. Change type.
8971 (invalidate_linux_cache_inf): Update.
8972 (linux_inferior_data_cleanup): Remove.
8973 (get_linux_inferior_data, _initialize_linux_tdep): Update.
8974
8975 2019-05-08 Tom Tromey <tom@tromey.com>
8976
8977 * auxv.c (auxv_inferior_data): Move. Change type.
8978 (auxv_inferior_data_cleanup): Remove.
8979 (invalidate_auxv_cache_inf): Rewrite.
8980 (get_auxv_inferior_data, _initialize_auxv): Update.
8981
8982 2019-05-08 Tom Tromey <tom@tromey.com>
8983
8984 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
8985 (symfile_debug_objfile_data_key): Change type.
8986 (symfile_debug_installed, debug_qf_has_symbols)
8987 (debug_qf_find_last_source_symtab)
8988 (debug_qf_forget_cached_source_info)
8989 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
8990 (debug_qf_print_stats, debug_qf_dump)
8991 (debug_qf_expand_symtabs_for_function)
8992 (debug_qf_expand_all_symtabs)
8993 (debug_qf_expand_symtabs_with_fullname)
8994 (debug_qf_map_matching_symbols)
8995 (debug_qf_expand_symtabs_matching)
8996 (debug_qf_find_pc_sect_compunit_symtab)
8997 (debug_qf_map_symbol_filenames)
8998 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
8999 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9000 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9001 (debug_sym_read_linetable, debug_sym_relocate): Update.
9002 (symfile_debug_free_objfile): Remove.
9003 (install_symfile_debug_logging, _initialize_symfile_debug):
9004 Update.
9005
9006 2019-05-08 Tom Tromey <tom@tromey.com>
9007
9008 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9009 allocate_on_obstack.
9010 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9011 (get_dwarf2_per_objfile): Update.
9012 (set_dwarf2_per_objfile): Remove.
9013 (dwarf2_has_info, dwarf2_get_section_info): Update.
9014 (dwarf2_free_objfile): Remove.
9015 (_initialize_dwarf2_read): Update.
9016
9017 2019-05-08 Tom Tromey <tom@tromey.com>
9018
9019 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9020 initializers.
9021 <unsupported_script_warning_printed,
9022 script_not_found_warning_printed>: Now bool.
9023 (auto_load_pspace_data): Change type.
9024 (~auto_load_pspace_info): Rename from
9025 auto_load_pspace_data_cleanup.
9026 (get_auto_load_pspace_data, init_loaded_scripts_info)
9027 (clear_section_scripts, maybe_print_unsupported_script_warning)
9028 (maybe_print_script_not_found_warning, _initialize_auto_load):
9029 Update.
9030
9031 2019-05-08 Tom Tromey <tom@tromey.com>
9032
9033 * objfiles.c (objfile_pspace_info): Add destructor and
9034 initializers.
9035 (objfiles_pspace_data): Change type.
9036 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9037 (get_objfile_pspace_data): Update.
9038 (objfiles_bfd_data): Change type.
9039 (get_objfile_bfd_data): Update.
9040 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9041
9042 2019-05-08 Tom Tromey <tom@tromey.com>
9043
9044 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9045 Change type.
9046 (get_catch_syscall_inferior_data): Update.
9047 (catch_syscall_inferior_data_cleanup): Remove.
9048 (_initialize_break_catch_syscall): Update.
9049
9050 2019-05-08 Tom Tromey <tom@tromey.com>
9051
9052 * inflow.c (struct terminal_info): Add destructor and
9053 initializers.
9054 (inflow_inferior_data): Change type.
9055 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9056 (get_inflow_inferior_data, inflow_inferior_exit)
9057 (swap_terminal_info, _initialize_inflow): Update.
9058
9059 2019-05-08 Tom Tromey <tom@tromey.com>
9060
9061 * target-dcache.c (target_dcache_cleanup): Remove.
9062 (target_dcache_aspace_key): Change type.
9063 (target_dcache_init_p, target_dcache_invalidate)
9064 (target_dcache_get, target_dcache_get_or_init)
9065 (_initialize_target_dcache): Update.
9066 * dcache.h (struct dcache_deleter): New.
9067
9068 2019-05-08 Tom Tromey <tom@tromey.com>
9069
9070 * symtab.c (struct symbol_cache): Add destructor and
9071 initializers.
9072 (symbol_cache_key): Move. Change type.
9073 (make_symbol_cache, free_symbol_cache): Remove.
9074 (get_symbol_cache): Update.
9075 (symbol_cache_cleanup): Remove.
9076 (ALL_PSPACES, symbol_cache_flush)
9077 (maintenance_print_symbol_cache)
9078 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9079 Update.
9080
9081 2019-05-08 Tom Tromey <tom@tromey.com>
9082
9083 * symtab.c (struct main_info): Add destructor and initializers.
9084 (main_progspace_key): Move. Change type.
9085 (get_main_info): Update.
9086 (main_info_cleanup): Remove.
9087 (_initialize_symtab): Update.
9088
9089 2019-05-08 Tom Tromey <tom@tromey.com>
9090
9091 * registry.h (DECLARE_REGISTRY): Define the _key class.
9092
9093 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9094
9095 * NEWS: Merge two 'New commands' sections.
9096
9097 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9098
9099 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9100 parameter and use Ada language definition instead.
9101 (ada_val_print_ptr): Remove unused language parameter.
9102 (ada_val_print_num): Remove language parameter and use Ada language
9103 definition instead.
9104 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9105 parameter.
9106 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9107 parameter and use Ada language definition instead.
9108 (ada_val_print_1): Update all ada_val_print_xxx calls.
9109 Remove language parameter.
9110 (ada_val_print): Update ada_val_print_1 call.
9111
9112 2019-05-08 Tom Tromey <tromey@adacore.com>
9113
9114 * remote.c (remote_hw_watchpoint_limit)
9115 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9116 Now static.
9117
9118 2019-05-08 Tom Tromey <tromey@adacore.com>
9119
9120 * maint.c (_initialize_maint_cmds): Move initialization code to
9121 remote.c.
9122 (watchdog, show_watchdog): Move to remote.c.
9123 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9124 "watchdog" static.
9125 (_initialize_remote): Move initialization code from maint.c.
9126 * defs.h (watchdog): Don't declare.
9127
9128 2019-05-08 Tom Tromey <tromey@adacore.com>
9129
9130 * tui/tui-interp.c: Include main.h.
9131 * interps.c: Include main.h.
9132 * main.h (interpreter_p): Declare.
9133 * defs.h (interpreter_p): Don't declare.
9134
9135 2019-05-08 Tom Tromey <tromey@adacore.com>
9136
9137 * dwarf2loc.c: Include dwarf2read.h.
9138 * defs.h (read_unsigned_leb128): Don't declare.
9139 * dwarf2read.h (read_unsigned_leb128): Declare.
9140
9141 2019-05-08 Tom Tromey <tromey@adacore.com>
9142
9143 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9144 method.
9145
9146 2019-05-08 Tom Tromey <tromey@adacore.com>
9147
9148 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9149 when no wrap column is set.
9150
9151 2019-05-08 Tom Tromey <tromey@adacore.com>
9152
9153 * c-lang.c (c_get_string): Handle non-C-style arrays.
9154
9155 2019-05-08 Tom Tromey <tromey@adacore.com>
9156
9157 * typeprint.c (print_offset_data::update): Print the bit offset,
9158 not the number of bits remaining.
9159
9160 2019-05-08 Tom Tromey <tromey@adacore.com>
9161
9162 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9163 padding at end of comment.
9164
9165 2019-05-08 Tom Tromey <tromey@adacore.com>
9166
9167 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9168 Compare main types.
9169
9170 2019-05-06 Tom Tromey <tom@tromey.com>
9171
9172 * common/scoped_mmap.c: Include common-defs.h.
9173 * common/scoped_mmap.h: Don't include config.h.
9174
9175 2019-05-04 Tom Tromey <tom@tromey.com>
9176
9177 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9178 (struct aarch64_call_info): Add initializers.
9179 <si>: Now a std::vector.
9180 (pass_on_stack, aarch64_push_dummy_call): Update.
9181
9182 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9183 Tom Tromey <tom@tromey.com>
9184
9185 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9186 (ppc_threads): Now a std::vector. Now static.
9187 (hwdebug_find_thread_points_by_tid)
9188 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9189 Update.
9190
9191 2019-05-04 Tom Tromey <tom@tromey.com>
9192
9193 * arc-tdep.c (arc_tdesc_init): Return bool.
9194
9195 2019-05-04 Tom Tromey <tom@tromey.com>
9196
9197 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9198 Use gdb_assert_not_reached.
9199
9200 2019-05-04 Tom Tromey <tom@tromey.com>
9201
9202 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9203 "false".
9204
9205 2019-05-04 Tom Tromey <tom@tromey.com>
9206
9207 * arc-tdep.c (arc_tdesc_init): Use bool.
9208
9209 2019-05-04 Tom Tromey <tom@tromey.com>
9210
9211 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9212
9213 2019-05-04 Tom Tromey <tom@tromey.com>
9214
9215 * cli/cli-cmds.c (valid_command_p): Return bool.
9216
9217 2019-05-04 Tom Tromey <tom@tromey.com>
9218
9219 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9220 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9221
9222 2019-05-04 Raul Tambre <raul@tambre.ee>
9223
9224 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9225 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9226 operator for comparison.
9227
9228 2019-05-04 Tom Tromey <tom@tromey.com>
9229
9230 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9231 (lookup_partial_symbol, print_partial_symbols)
9232 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9233 (psymbol_compare): Update.
9234 (add_psymbol_to_bcache): Clear the entire psymbol.
9235 (maintenance_check_psymtabs): Update.
9236 * psympriv.h (struct partial_symbol): Don't derive from
9237 general_symbol_info.
9238 <obj_section, unrelocated_address, address,
9239 set_unrelocated_address>: Update.
9240 <ginfo>: New member.
9241 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9242 (debug_names::write_psymbols): Update.
9243
9244 2019-05-04 Tom de Vries <tdevries@suse.de>
9245
9246 * contrib/cc-with-tweaks.sh: Support -n arg.
9247
9248 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9249
9250 * corelow.c (core_target::detach): Ensure frame cache and
9251 register caches are cleared.
9252 inferior.c (exit_inferior_1): Likewise.
9253
9254 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9255 Tom Tromey <tom@tromey.com>
9256
9257 * dictionary.c (collate_pending_symbols_by_language): Remove
9258 "struct" from foreach.
9259 * symtab.c (lookup_global_symbol_from_objfile)
9260 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9261 foreach.
9262 * ser-tcp.c (net_open): Remove "struct" from foreach.
9263 * objfiles.c (objfile_relocate, objfile_rebase)
9264 (objfile_has_symbols): Remove "struct" from foreach.
9265 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9266 from foreach.
9267 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9268 foreach.
9269 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9270 "struct" from foreach.
9271 * ada-lang.c (create_excep_cond_exprs)
9272 (ada_exception_catchpoint_cond_string): Remove "struct" from
9273 foreach.
9274
9275 2019-05-03 Tom Tromey <tromey@adacore.com>
9276
9277 * ada-exp.y (convert_char_literal): Check suffix of each
9278 enumerator.
9279
9280 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9281
9282 PR ada/21406:
9283 * ada-exp.y (yywrap): Don't define.
9284 * ada-lex.l (%option): Add noyywrap
9285 (yywrap): Remove.
9286
9287 2019-05-03 Eli Zaretskii <eliz@gnu.org>
9288
9289 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9290 _WIN32_WINNT to the XP level, unless already defined to a higher
9291 level.
9292
9293 * unittests/parse-connection-spec-selftests.c:
9294 * ser-tcp.c:
9295 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9296 override.
9297
9298 * symfile.c (find_separate_debug_file): Remove colon from the
9299 drive spec of DOS/Windows file names of the target, so that the
9300 file name produced from DEBUGDIR and the target's directory will
9301 be valid on DOS/Windows systems.
9302
9303 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9304
9305 * rust-lang.c (val_print_struct): Handle printing structures
9306 containing strings.
9307
9308 2019-05-02 Tom Tromey <tromey@adacore.com>
9309
9310 * valarith.c (_initialize_valarith): Remove.
9311
9312 2019-05-01 Tom Tromey <tromey@adacore.com>
9313
9314 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9315 bitfields.
9316
9317 2019-05-01 Tom Tromey <tromey@adacore.com>
9318
9319 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9320 for big-endian copies.
9321
9322 2019-04-30 Ali Tamur <tamur@google.com>
9323 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9324 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9325 (read_3_bytes): New function.
9326
9327 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9328
9329 * windows-nat.c (main_thread_id): Delete.
9330 (handle_output_debug_string): Replace main_thread_id by
9331 current_event.dwThreadId.
9332 (fake_create_process): Likewise.
9333 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9334 Do not set main_thread_id.
9335 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9336 current_event.dwThreadId.
9337 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9338
9339 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9340
9341 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9342 Use current_event.dwThreadId instead of main_thread_id.
9343
9344 2019-04-30 Tom Tromey <tromey@adacore.com>
9345
9346 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9347 (create_excep_cond_exprs): Iterate over program spaces.
9348 (ada_exception_catchpoint_cond_string): Examine all minimal
9349 symbols for exception types.
9350
9351 2019-04-30 Tom Tromey <tromey@adacore.com>
9352
9353 PR c++/24470:
9354 * dwarf2read.c (process_structure_scope): Handle case where type
9355 has template parameters but no symbol was created.
9356
9357 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9358 Chris January <chris.january@arm.com>
9359
9360 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9361 qualifier.
9362 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9363
9364 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9365
9366 * f-typeprint.c (f_print_type): Update rules for printing
9367 whitespace.
9368 (f_type_print_varspec_suffix): Likewise.
9369
9370 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9371 Chris January <chris.january@arm.com>
9372
9373 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9374 function arguments.
9375
9376 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9377
9378 * f-lang.c (build_fortran_types): Change name of void type to
9379 lower case.
9380 * f-typeprint.c (f_type_print_base): Print the name of the void
9381 type, rather than a fixed string.
9382 * f-valprint.c (f_decorations): Use lower case void string.
9383
9384 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9385 Chris January <chris.january@arm.com>
9386
9387 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9388 types for Fortran.
9389
9390 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9391 Chris January <chris.january@arm.com>
9392 David Lecomber <david.lecomber@arm.com>
9393
9394 * f-exp.y (BINOP_INTRINSIC): New token.
9395 (exp): New parser rule handling BINOP_INTRINSIC.
9396 (f77_keywords): Add new builtin procedures.
9397 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9398 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9399 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9400 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9401 (print_unop_subexp_f): New function.
9402 (print_binop_subexp_f): New function.
9403 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9404 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9405 (dump_subexp_body_f): Likewise.
9406 (operator_check_f): Likewise.
9407 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9408 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9409
9410 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9411
9412 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9413 UNOP_KIND.
9414 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9415 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9416 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9417 (operator_length_f): New fuction.
9418 (print_subexp_f): New function.
9419 (op_name_f): New function.
9420 (dump_subexp_body_f): New function.
9421 (operator_check_f): New function.
9422 (exp_descriptor_f): Replace standard expression handling functions
9423 with new functions.
9424 * gdb/fortran-operator.def: New file.
9425 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9426 * gdb/std-operator.def: Remove UNOP_KIND.
9427
9428 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9429
9430 * std-operator.def: Remove unbalanced, stray double quote
9431 character.
9432
9433 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9434 Chris January <chris.january@arm.com>
9435 Daniel Everett <daniel.everett@arm.com>
9436 Nick Forrington <nick.forrington@arm.com>
9437 Richard Bunt <richard.bunt@arm.com>
9438
9439 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9440 of depth when printing anonymous structs or unions.
9441 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9442 Don't print either the top-level value, or the children if the
9443 max-depth is exceeded.
9444 (ppscm_print_children): When printing the key of a map, allow one
9445 extra level of depth.
9446 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9447 print either the top-level value, or the children if the max-depth
9448 is exceeded.
9449 (print_children): When printing the key of a map, allow one extra
9450 level of depth.
9451 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9452 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9453 (user_print_options): Initialise max_depth field.
9454 (val_print_scalar_or_string_type_p): New function.
9455 (val_print): Check to see if the max depth has been reached.
9456 (val_print_check_max_depth): Define new function.
9457 (show_print_max_depth): New function.
9458 (_initialize_valprint): Add 'print max-depth' option.
9459 * valprint.h (struct value_print_options) <max_depth>: New field.
9460 (val_print_check_max_depth): Declare new function.
9461 * NEWS: Document new feature.
9462
9463 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9464
9465 * ada-lang.c (ada_language_defn): Initialise new field.
9466 * c-lang.c (c_is_string_type_p): New function.
9467 (c_language_defn): Initialise new field.
9468 (cplus_language_defn): Initialise new field.
9469 (asm_language_defn): Initialise new field.
9470 (minimal_language_defn): Initialise new field.
9471 * c-lang.h (c_is_string_type_p): Declare new function.
9472 * d-lang.c (d_language_defn): Initialise new field.
9473 * f-lang.c (f_is_string_type_p): New function.
9474 (f_language_defn): Initialise new field.
9475 * go-lang.c (go_is_string_type_p): New function.
9476 (go_language_defn): Initialise new field.
9477 * language.c (default_is_string_type_p): New function.
9478 (unknown_language_defn): Initialise new field.
9479 (auto_language_defn): Initialise new field.
9480 * language.h (struct language_defn) <la_is_string_type_p>: New
9481 member variable.
9482 (default_is_string_type_p): Declare new function.
9483 * m2-lang.c (m2_language_defn): Initialise new field.
9484 * objc-lang.c (objc_language_defn): Initialise new field.
9485 * opencl-lang.c (opencl_language_defn): Initialise new field.
9486 * p-lang.c (pascal_is_string_type_p): New function.
9487 (pascal_language_defn): Initialise new field.
9488 * rust-lang.c (rust_is_string_type_p): New function.
9489 (rust_language_defn): Initialise new field.
9490
9491 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9492
9493 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9494 New field.
9495 * ada-lang.c (ada_language_defn): Initialise new field.
9496 * c-lang.c (c_language_defn): Likewise.
9497 (cplus_language_defn): Likewise.
9498 (asm_language_defn): Likewise.
9499 (minimal_language_defn): Likewise.
9500 * d-lang.c (d_language_defn): Likewise.
9501 * f-lang.c (f_language_defn): Likewise.
9502 * go-lang.c (go_language_defn): Likewise.
9503 * language.c (unknown_language_defn): Likewise.
9504 (auto_language_defn): Likewise.
9505 * m2-lang.c (m2_language_defn): Likewise.
9506 * objc-lang.c (objc_language_defn): Likewise.
9507 * opencl-lang.c (opencl_language_defn): Likewise.
9508 * p-lang.c (pascal_language_defn): Likewise.
9509 * rust-lang.c (rust_language_defn): Likewise.
9510
9511 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9512
9513 * ada-lang.c (ada_is_character_type): Change return type to bool.
9514 (ada_is_string_type): Likewise.
9515 * ada-lang.h (ada_is_character_type): Update declaration
9516 (ada_is_string_type): Likewise.
9517
9518 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9519
9520 Support style in 'frame|thread apply'
9521
9522 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9523 * record.c (record_start, record_stop): Update callers of
9524 execute_command_to_string with false.
9525 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9526 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9527 methods.
9528 (class string_file): New constructor with term_out parameter.
9529 Override methods term_out and can_emit_style_escape. New member
9530 term_out.
9531 (class stdio_file): Override can_emit_style_escape.
9532 (class tee_file): Override term_out and can_emit_style_escape.
9533 * utils.h (can_emit_style_escape): Remove.
9534 * utils.c (can_emit_style_escape): Likewise.
9535 Update all callers of can_emit_style_escape (SOMESTREAM) to
9536 SOMESTREAM->can_emit_style_escape.
9537 * source-cache.c (source_cache::get_source_lines): Likewise.
9538 * stack.c (frame_apply_command_count): Call execute_command_to_string
9539 passing the term_out characteristic of the current gdb_stdout.
9540 * thread.c (thr_try_catch_cmd): Likewise.
9541 * top.c (execute_command_to_string): pass term_out parameter
9542 to construct the string_file for the command output.
9543 * ui-file.c (term_cli_styling): New function (most code moved
9544 from utils.c can_emit_style_escape).
9545 (string_file::string_file, string_file::can_emit_style_escape,
9546 stdio_file::can_emit_style_escape, tee_file::term_out,
9547 tee_file::can_emit_style_escape): New functions.
9548
9549 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9550
9551 * NEWS: Mention the new set|show may-call-functions.
9552 * infcall.c (may_call_functions_p): New variable.
9553 (show_may_call_functions_p): New function.
9554 (call_function_by_hand_dummy): Throws an error if not
9555 may-call-functions.
9556 (_initialize_infcall): Call add_setshow_boolean_cmd for
9557 may-call-functions.
9558
9559 2019-04-25 Keith Seitz <keiths@redhat.com>
9560
9561 PR c++/24367
9562 * cp-support.c (inspect_type): Don't attempt substitutions
9563 of symbol with the same name.
9564
9565 2019-04-25 Tom Tromey <tromey@adacore.com>
9566
9567 PR gdb/24475:
9568 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9569 static.
9570
9571 2019-04-25 Tom Tromey <tromey@adacore.com>
9572
9573 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9574 rvalue reference.
9575 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9576 (gdb_xml_parser::parse): Use std::move.
9577 * python/python-internal.h (gdbpy_convert_exception): Take a const
9578 reference.
9579 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9580 std::move.
9581 * python/py-utils.c (gdbpy_convert_exception): Take a const
9582 reference.
9583 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9584 Use std::move.
9585 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9586 Use std::move.
9587 * mi/mi-main.c (mi_print_exception): Take a const reference.
9588 * main.c (handle_command_errors): Take a const reference.
9589 * linespec.c (parse_linespec): Use std::move.
9590 * infcall.c (run_inferior_call): Use std::move.
9591 (call_function_by_hand_dummy): Use std::move.
9592 * exec.c (try_open_exec_file): Use std::move.
9593 * exceptions.h (exception_print, exception_fprintf)
9594 (exception_print_same): Update.
9595 * exceptions.c (print_exception, exception_print)
9596 (exception_fprintf, exception_print_same): Change parameters to
9597 const reference.
9598 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9599 * common/new-op.c: Use std::move.
9600 * common/common-exceptions.h (struct gdb_exception): Add move
9601 constructor.
9602 (struct gdb_exception_error, struct gdb_exception_quit, struct
9603 gdb_quit_bad_alloc): Change constructor to move constructor.
9604 (throw_exception): Change parameter to rvalue reference.
9605 * common/common-exceptions.c (throw_exception): Take rvalue
9606 reference.
9607 * cli/cli-interp.c (safe_execute_command): Use std::move.
9608 * breakpoint.c (insert_bp_location, location_to_sals): Use
9609 std::move.
9610
9611 2019-04-25 Tom Tromey <tromey@adacore.com>
9612
9613 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9614 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9615 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9616 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9617 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9618 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9619 guile/scm-value.c: Use unpack.
9620 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9621 gdbscm_gdb_exception.
9622 (gdbscm_throw_gdb_exception): Likewise.
9623 (struct gdbscm_gdb_exception): New.
9624 (unpack): New function.
9625 (gdbscm_wrap): Use unpack.
9626
9627 2019-04-25 Tom Tromey <tromey@adacore.com>
9628
9629 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9630 (gdb_rl_callback_handler): Use std::move.
9631 * common/common-exceptions.h (struct gdb_exception): Add move
9632 assignment operator.
9633 (throw_exception_sjlj): Change "exception" to const reference.
9634 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9635 (throw_exception_sjlj): Change "exception" to const reference.
9636
9637 2019-04-25 Tom Tromey <tromey@adacore.com>
9638
9639 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9640 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9641 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9642 Update.
9643 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9644 Update.
9645 * mi/mi-interp.c (mi_interp::exec): Update.
9646 * linespec.c (parse_linespec): Update.
9647 * infcall.c (run_inferior_call): Update.
9648 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9649 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9650 (gdbscm_lookup_global_symbol): Update.
9651 * guile/scm-param.c (gdbscm_parameter_value): Update.
9652 * guile/scm-frame.c (gdbscm_frame_read_register)
9653 (gdbscm_frame_read_var): Update.
9654 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9655 * exec.c (try_open_exec_file): Update.
9656 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9657 (gdb_rl_callback_handler): Update.
9658 * common/common-exceptions.h (exception_none): Don't declare.
9659 * common/common-exceptions.c (exception_none): Don't define.
9660 (struct catcher) <exception>: Update.
9661 * cli/cli-interp.c (safe_execute_command): Update.
9662 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9663
9664 2019-04-25 Ali Tamur <tamur@google.com>
9665
9666 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9667 (read_attribute_value): Likewise.
9668 (dwarf2_read_addr_index): Update comment.
9669 (read_str_index): Add DW_FORM_strx.
9670 (dwarf2_string_attr): Likewise.
9671 (dwarf2_const_value_attr): Likewise.
9672 (dump_die_shallow): Likewise.
9673 (dwarf2_fetch_constant_bytes): Likewise.
9674 (skip_form_bytes): Likewise.
9675 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9676
9677 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9678
9679 PR corefiles/11608
9680 PR corefiles/18187
9681 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9682 OFFSET. Verify if current mapping contains an ELF header.
9683 (linux_find_memory_regions_full): Adjust call to
9684 dump_mapping_p.
9685
9686 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9687 Kang Li <kanglictf@gmail.com>
9688
9689 PR gdb/21600
9690
9691 * dwarf2-frame.c (read_initial_length): Be consistent about using
9692 unsigned representation of length.
9693 (decode_frame_entry_1): Likewise. Check for wraparound of
9694 end pointer as well as buffer overflow.
9695
9696 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9697
9698 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9699 "vq".
9700
9701 2019-04-24 Tom Tromey <tromey@adacore.com>
9702
9703 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9704
9705 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9706
9707 * s12z-tdep.c (s12z_unwind_pc): Delete.
9708 (s12z_unwind_sp): Delete.
9709 (s12z_gdbarch_init): Don't register deleted functions with
9710 gdbarch.
9711
9712 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9713
9714 * rl78-tdep.c (rl78_unwind_sp): Delete.
9715 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9716
9717 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9718
9719 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9720 (xstormy16_unwind_pc): Delete.
9721 (xstormy16_dummy_id): Delete.
9722 (xstormy16_gdbarch_init): Don't register deleted functions with
9723 gdbarch.
9724
9725 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9726
9727 * vax-tdep.c (vax_unwind_pc): Delete.
9728 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9729
9730 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9731
9732 * v850-tdep.c (v850_unwind_sp): Delete.
9733 (v850_unwind_pc): Delete.
9734 (v850_dummy_id): Delete.
9735 (v850_gdbarch_init): Don't register deleted functions with
9736 gdbarch.
9737
9738 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9739
9740 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9741 (tilegx_unwind_pc): Delete.
9742 (tilegx_unwind_dummy_id): Delete.
9743 (tilegx_gdbarch_init): Don't register deleted functions with
9744 gdbarch.
9745
9746 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9747
9748 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9749 (tic6x_dummy_id): Delete.
9750 (tic6x_gdbarch_init): Don't register deleted functions with
9751 gdbarch.
9752
9753 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9754
9755 * sparc-tdep.c (sparc_unwind_pc): Delete.
9756 (sparc32_gdbarch_init): Don't register deleted function with
9757 gdbarch.
9758
9759 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9760
9761 * sh-tdep.c (sh_unwind_sp): Delete.
9762 (sh_unwind_pc): Delete.
9763 (sh_dummy_id): Delete.
9764 (sh_gdbarch_init): Don't register deleted functions with
9765 gdbarch.
9766
9767 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9768
9769 * score-tdep.c (score_unwind_sp): Delete.
9770 (score_unwind_pc): Delete.
9771 (score_dummy_id): Delete.
9772 (score_gdbarch_init): Don't register deleted functions with
9773 gdbarch.
9774
9775 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9776
9777 * rx-tdep.c (rx_unwind_pc): Delete.
9778 (rx_unwind_sp): Delete.
9779 (rx_dummy_id): Delete.
9780 (rx_gdbarch_init): Don't register deleted functions with
9781 gdbarch. Update comment.
9782
9783 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9784
9785 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9786 (rs6000_dummy_id): Delete.
9787 (rs6000_gdbarch_init): Don't register deleted functions with
9788 gdbarch.
9789
9790 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9791
9792 * or1k-tdep.c (or1k_dummy_id): Delete.
9793 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9794
9795 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9796
9797 * nios2-tdep.c (nios2_dummy_id): Delete.
9798 (nios2_unwind_sp): Delete.
9799 (nios2_gdbarch_init): Don't register deleted functions with
9800 gdbarch.
9801
9802 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9803
9804 * nds32-tdep.c (nds32_dummy_id): Delete.
9805 (nds32_unwind_pc): Delete.
9806 (nds32_unwind_sp): Delete.
9807 (nds32_gdbarch_init): Don't register deleted functions with
9808 gdbarch.
9809
9810 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9811
9812 * msp430-tdep.c (msp430_unwind_pc): Delete.
9813 (msp430_unwind_sp): Delete.
9814 (msp430_dummy_id): Delete.
9815 (msp430_gdbarch_init): Don't register deleted functions with
9816 gdbarch.
9817
9818 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9819
9820 * moxie-tdep.c (moxie_unwind_sp): Delete.
9821 (moxie_unwind_pc): Delete.
9822 (moxie_dummy_id): Delete.
9823 (moxie_gdbarch_init): Don't register deleted functions with
9824 gdbarch.
9825
9826 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9827
9828 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9829 (mn10300_unwind_pc): Delete.
9830 (mn10300_unwind_sp): Delete.
9831 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9832 mn10300_unwind_sp.
9833 (mn10300_frame_unwind_init): Don't register deleted functions with
9834 gdbarch.
9835
9836 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9837
9838 * mep-tdep.c (mep_unwind_pc): Delete.
9839 (mep_unwind_sp): Delete.
9840 (mep_dummy_id): Delete.
9841 (mep_gdbarch_init): Don't register deleted functions with
9842 gdbarch.
9843
9844 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9845
9846 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
9847 (m68hc11_unwind_sp): Delete.
9848 (m68hc11_gdbarch_init): Don't register deleted functions with
9849 gdbarch.
9850
9851 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9852
9853 * m32r-tdep.c (m32r_unwind_sp): Delete.
9854 (m32r_unwind_pc): Delete.
9855 (m32r_dummy_id): Delete.
9856 (m32r_gdbarch_init): Don't register deleted functions with
9857 gdbarch.
9858
9859 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9860
9861 * m32c-tdep.c (m32c_unwind_pc): Delete.
9862 (m32c_unwind_sp): Delete.
9863 (m32c_dummy_id): Delete.
9864 (m32c_gdbarch_init): Don't register deleted functions with
9865 gdbarch.
9866
9867 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9868
9869 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
9870 (lm32_unwind_pc): Delete.
9871 (lm32_dummy_id): Delete.
9872 (lm32_gdbarch_init): Don't register deleted functions with
9873 gdbarch.
9874
9875 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9876
9877 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
9878 (iq2000_unwind_pc): Delete.
9879 (iq2000_dummy_id): Delete.
9880 (iq2000_gdbarch_init): Don't register deleted functions with
9881 gdbarch.
9882
9883 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9884
9885 * nds32-tdep.c (nds32_type_align): Delete.
9886 (nds32_push_dummy_call): Use type_align instead.
9887
9888 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9889
9890 * arm-tdep.c (arm_type_align): Only handle vector override case.
9891 (arm_push_dummy_call): Use type_align.
9892 (arm_gdbarch_init): Register arm_type_align gdbarch function.
9893
9894 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9895
9896 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
9897 case.
9898 (pass_on_stack): Use type_align.
9899 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
9900 function.
9901
9902 2019-04-23 Tom Tromey <tromey@adacore.com>
9903
9904 * dwarf2read.c (line_header::file_name_at): Remove unused
9905 overload.
9906
9907 2019-04-23 Tom de Vries <tdevries@suse.de>
9908
9909 PR gdb/24438
9910 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
9911 invocation.
9912
9913
9914 2019-03-27 Ali Tamur <tamur@google.com>
9915
9916 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
9917 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9918 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9919 (dwarf_expr_context::get_addr_index): Likewise
9920 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9921 (symbol_needs_eval_context::get_addr_index): Likewise
9922 (disassemble_dwarf_expression): Add DW_OP_addrx
9923 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9924 (read_cutu_die_from_dwo): Update comment
9925 (skip_one_die): Add DW_FORM_addrx
9926 (read_attribute_value): Likewise
9927 (var_decode_location): Add DW_OP_addrx
9928 (dwarf2_const_value_attr): Add DW_FORM_addrx
9929 (dump_die_shallow): Likewise
9930 (dwarf2_fetch_constant_bytes): Likewise
9931 (decode_locdesc): Add DW_OP_addrx
9932 (skip_form_bytes): Add DW_FORM_addrx
9933
9934 2019-04-22 Ali Tamur <tamur@google.com>
9935
9936 * MAINTAINERS (Write After Approval): Add self.
9937
9938 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
9939
9940 * solib-svr4.c (get_svr4_info): Add pspace parameter.
9941 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
9942 (open_symbol_file_object): Likewise.
9943 (svr4_default_sos): Add info parameter.
9944 (svr4_read_so_list): Likewise.
9945 (svr4_current_sos_direct): Adjust functions calls to pass down
9946 info.
9947 (svr4_current_sos_1): Add info parameter.
9948 (svr4_current_sos): Call get_svr4_info, pass info down to
9949 svr4_current_sos_1.
9950 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
9951 get_svr4_info.
9952 (svr4_in_dynsym_resolve_code): Pass current_program_space to
9953 get_svr4_info.
9954 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
9955 to get_svr4_info.
9956 (probes_table_remove_objfile_probes): Likewise.
9957 (register_solib_event_probe): Add info parameter.
9958 (solist_update_incremental): Pass info parameter down to
9959 svr4_read_so_list.
9960 (disable_probes_interface): Add info parameter.
9961 (svr4_handle_solib_event): Pass current_program_space to
9962 get_svr4_info. Adjust disable_probes_interface cleanup.
9963 (svr4_create_probe_breakpoints): Add info parameter, pass it
9964 down to register_solib_event_probe.
9965 (svr4_create_solib_event_breakpoints): Add info parameter,
9966 pass it down to svr4_create_probe_breakpoints.
9967 (enable_break): Pass info down to
9968 svr4_create_solib_event_breakpoints.
9969 (svr4_solib_create_inferior_hook): Pass current_program_space to
9970 get_svr4_info.
9971 (svr4_clear_solib): Likewise.
9972
9973 2019-04-22 Pedro Alves <palves@redhat.com>
9974
9975 * solib-svr4.c (svr4_free_objfile_observer): New.
9976 (probe_and_action::objfile): New field.
9977 (probes_table_htab_remove_objfile_probes)
9978 (probes_table_remove_objfile_probes): New functions.
9979 (register_solib_event_probe): Add 'objfile' parameter. Store it
9980 in the new probe_and_action. Don't store the probe in 'lookup'.
9981 (svr4_create_probe_breakpoints): Pass objfile to
9982 register_solib_event_probe.
9983 (_initialize_svr4_solib): Register a free_objfile observer.
9984
9985 2019-04-19 Tom Tromey <tom@tromey.com>
9986
9987 * common/queue.h: Remove.
9988
9989 2019-04-19 Tom Tromey <tom@tromey.com>
9990
9991 * event-loop.c: Don't include "common/queue.h".
9992
9993 2019-04-19 Tom Tromey <tom@tromey.com>
9994
9995 * remote.c (remote_target): Use delete.
9996 * remote-notif.h: Include <list>, not "common/queue.h".
9997 (notif_client_p): Remove typedef.
9998 (remote_notif_state): Add constructor, destructor, initializer.
9999 <notif_queue>: Now a std::list.
10000 (remote_notif_state_xfree): Don't declare.
10001 * remote-notif.c (remote_notif_process, handle_notification)
10002 (remote_notif_state_allocate): Update.
10003 (~remote_notif_state): Rename from remote_notif_state_xfree.
10004
10005 2019-04-19 Tom Tromey <tom@tromey.com>
10006
10007 * symfile.c (reread_symbols): Update.
10008 * objfiles.c (objfile_register_static_link)
10009 (objfile_lookup_static_link): Update
10010 (~objfile) Don't delete static_links.
10011 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10012
10013 2019-04-19 Tom Tromey <tom@tromey.com>
10014
10015 * type-stack.h (struct type_stack) <insert>: Constify string.
10016 * type-stack.c (type_stack::insert): Constify string.
10017 * gdbtypes.h (lookup_template_type): Update.
10018 (address_space_name_to_int): Update.
10019 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10020 const.
10021 (lookup_template_type): Make name const.
10022 * c-exp.y: Update rules.
10023 (lex_one_token, classify_name, classify_inner_name)
10024 (c_print_token): Update.
10025 * p-exp.y: Update rules.
10026 (yylex): Update.
10027 * f-exp.y: Update rules.
10028 (yylex): Update.
10029 * d-exp.y: Update rules.
10030 (lex_one_token, classify_name, classify_inner_name): Update.
10031 * parse.c (write_dollar_variable, copy_name): Return std::string.
10032 * parser-defs.h (copy_name): Change return type.
10033 * m2-exp.y: Update rules.
10034 (yylex): Update.
10035 * go-exp.y (lex_one_token): Update.
10036 Update rules.
10037 (classify_unsafe_function, classify_packaged_name)
10038 (classify_name, yylex): Update.
10039
10040 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10041
10042 * configure.ac: add --enable-source-highlight switch.
10043 * configure: Regenerate.
10044 * top.c (print_gdb_version): plumb --enable-source-highlight
10045 status to "show configuration".
10046
10047 2019-04-19 Tom Tromey <tromey@adacore.com>
10048
10049 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10050 Check ADA_TYPE_P.
10051 (empty_record, ada_template_to_fixed_record_type_1)
10052 (template_to_static_fixed_type)
10053 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10054 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10055 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10056 macros.
10057
10058 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10059
10060 PR symtab/24423:
10061 * source.c (print_source_lines_base): Advance "iter" when a
10062 control character is seen.
10063
10064 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10065
10066 * inferior.h (struct infcall_suspend_state_deleter):
10067 Catch exception in destructor to avoid crash.
10068
10069 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10070
10071 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10072 close to the add_com "shell".
10073
10074 2019-04-18 Tom Tromey <tromey@adacore.com>
10075
10076 * process-stratum-target.h (class process_stratum_target)
10077 <stratum>: Add "final".
10078
10079 2019-04-17 Tom Tromey <tromey@adacore.com>
10080
10081 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10082 against nullptr before use.
10083
10084 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10085
10086 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10087
10088 2019-04-17 Jim Wilson <jimw@sifive.com>
10089 Andrew Burgess <andrew.burgess@embecosm.com>
10090
10091 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10092 code read might fail, assume 4-byte breakpoint in that case.
10093
10094 2019-04-15 Leszek Swirski <leszeks@google.com>
10095
10096 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10097 rather than a hand-rolled POD check when checking for forced MEMORY
10098 classification.
10099
10100 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10101
10102 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10103 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10104 function.
10105 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10106 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10107 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10108 declaration.
10109
10110 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10111
10112 * aarch64-linux-nat.c
10113 (aarch64_linux_nat_target::thread_architecture): Add override.
10114 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10115 each VQ.
10116
10117 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10118
10119 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10120
10121 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10122
10123 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10124 target types of size 96-bits, add some additional comments, and
10125 check that the builtin type we found was the correct size.
10126
10127 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10128
10129 * utils.c (prompt_for_continue): Don't restore the styling at the
10130 end, as applied_style has the wrong value. This fixes styling in
10131 long lists of file names that are interrupted by the "Continue?"
10132 prompt.
10133
10134 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10135
10136 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10137 * c-lang.c (c_language_defn): Likewise.
10138 (cplus_language_defn): Likewise.
10139 (asm_language_defn): Likewise.
10140 (minimal_language_defn): Likewise.
10141 * d-lang.c (d_language_defn): Likewise.
10142 * f-lang.c (f_language_defn): Likewise.
10143 * go-lang.c (go_language_defn): Likewise.
10144 * language.c (unknown_language_defn): Likewise.
10145 (auto_language_defn): Likewise.
10146 * language.h (struct language_defn): Remove la_magic field.
10147 (LANG_MAGIC): Delete.
10148 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10149 * objc-lang.c (objc_language_defn): Likewise.
10150 * opencl-lang.c (opencl_language_defn): Likewise.
10151 * p-lang.c (pascal_language_defn): Likewise.
10152 * rust-lang.c (rust_language_defn): Likewise.
10153
10154 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10155
10156 * riscv-tdep.c (riscv_type_align): New function.
10157 (riscv_type_alignment): Delete.
10158 (riscv_arg_location): Use 'type_align'.
10159 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10160
10161 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10162
10163 * gdbtypes.c (type_align): A struct with no non-static fields also
10164 has alignment of 1.
10165
10166 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10167
10168 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10169 component to 0.
10170 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10171 member.
10172 (riscv_struct_info::analyse): New implementation using new
10173 analyse_inner member function.
10174 (riscv_struct_info::field_offset): New member function.
10175 (riscv_struct_info::m_offsets): New member variable.
10176 (riscv_struct_info::analyse_inner): New private member function,
10177 takes the old implementation of riscv_struct_info::analyse but
10178 extended to track field offsets.
10179 (riscv_call_arg_struct): Update the struct folding special cases
10180 to handle cases where empty C++ structs, which are non-zero
10181 length, are found.
10182 (riscv_arg_location): Initialise the length of each location, a
10183 non-zero length now indicates the location is in use.
10184 (riscv_push_dummy_call): Allow for the first location having a
10185 non-zero offset when setting up arguments.
10186 (riscv_return_value): Likewise, but for return values.
10187
10188 2019-04-11 Tom Tromey <tromey@adacore.com>
10189
10190 * utils.c (internal_vproblem): Make "msg" const.
10191
10192 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10193
10194 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10195 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10196 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10197 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10198
10199 2019-04-10 Kevin Buettner <kevinb@redhat.com>
10200
10201 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10202 function.
10203 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10204 of amd64_collect_native_gregset.
10205 (amd64_linux_nat_target::store_registers): Likewise.
10206
10207 2019-04-10 Tom Tromey <tom@tromey.com>
10208
10209 * symtab.c (lookup_global_symbol_from_objfile)
10210 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10211 * objfiles.h (class separate_debug_iterator): New.
10212 (class separate_debug_range): New.
10213 (struct objfile) <separate_debug_objfiles>: New method.
10214 (objfile_separate_debug_iterate): Don't declare.
10215 * objfiles.c (separate_debug_iterator::operator++): Rename from
10216 objfile_separate_debug_iterate.
10217 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10218 iterator.
10219 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10220 iterator.
10221
10222 2019-04-10 Tom Tromey <tom@tromey.com>
10223
10224 * symfile.c (reread_symbols): Remove old comment.
10225 * objfiles.c (free_all_objfiles): Fix a typo.
10226
10227 2019-04-10 Tom Tromey <tom@tromey.com>
10228
10229 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10230 * minsyms.c (lookup_minimal_symbol): Use foreach.
10231 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10232 (lookup_minimal_symbol_solib_trampoline): Likewise.
10233 * symfile.c (reread_symbols): Use foreach.
10234
10235 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
10236 Tom Tromey <tromey@adacore.com>
10237
10238 PR rust/24414:
10239 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10240 (rust_lex_int_test): Change "value" to be LONGEST.
10241 (rust_lex_tests): Add test for long integer literal.
10242
10243 2019-04-09 Tom Tromey <tromey@adacore.com>
10244
10245 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10246 to bool.
10247 (extended_remote_target::attach): Update.
10248 (remote_target::remote_notice_new_inferior): Update.
10249 (remote_target::add_current_inferior_and_thread): Update.
10250 * inferior.c (exit_inferior_1): Use "false".
10251 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10252
10253 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
10254
10255 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
10256 the "start" command.
10257
10258 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10259
10260 * python/py-inferior.c (infpy_thread_from_thread_handle):
10261 Adjust comments to reflect renaming of thread_from_thread_handle
10262 to thread_from_handle. Adjust keywords. Fix type error message.
10263 (inferior_object_methods): Add thread_from_handle. Retain
10264 thread_from_thread_handle, but mark it as deprecated.
10265
10266 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10267
10268 * gdbthread.h (find_thread_by_handle): Revise declaration.
10269 * thread.c (find_thread_by_handle): Likewise. Adjust
10270 implementation too.
10271 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10272 support for buffer objects as handles.
10273
10274 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10275
10276 * python/py-infthread.c (thpy_thread_handle): New function.
10277 (thread_object_methods): Register thpy_thread_handle.
10278
10279 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10280
10281 * gdbthread.h (thread_to_thread_handle): Declare.
10282 * thread.c (gdbtypes.h): Include.
10283 (thread_to_thread_handle): New function.
10284
10285 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10286 (target_thread_info_to_thread_handle): Declare.
10287 * target.c (target_thread_info_to_thread_handle): New function.
10288 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10289 * target-delegates.c: Regenerate.
10290
10291 * linux-thread-db.c (class thread_db_target): Add method
10292 thread_info_to_thread_handle.
10293 (thread_db_target::thread_info_to_thread_handle): Define.
10294 * remote.c (class remote_target): Add new method
10295 thread_info_to_thread_handle.
10296 (remote_target::thread_info_to_thread_handle): Define.
10297
10298 2019-04-08 Pedro Alves <palves@redhat.com>
10299
10300 * common/common-exceptions.c (throw_exception): Don't create
10301 named object to throw; throw directly.
10302 (throw_it): Likewise. Don't initialize gdb_exception::message
10303 here, with new; pass FMT and AP to the ctor instead.
10304 * common/common-exceptions.h: Include <string>.
10305 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10306 const char *, va_list)): New ctor. Use std::make_shared.
10307 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10308 errors)): Delete.
10309 (gdb_exception_error::gdb_exception_error(enum errors, const char
10310 *, va_list)): New.
10311 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10312 Add assertion.
10313 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10314 errors)): Delete.
10315 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10316 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10317 Add assertion.
10318
10319 2019-04-08 Tom Tromey <tom@tromey.com>
10320
10321 * valops.c (value_rtti_indirect_type): Replace throw_exception
10322 with throw.
10323 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10324 with throw.
10325 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10326 throw.
10327 * target.c (target_translate_tls_address): Replace throw_exception
10328 with throw.
10329 * stack.c (frame_apply_command_count): Replace throw_exception
10330 with throw.
10331 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10332 throw.
10333 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10334 with throw.
10335 * rs6000-tdep.c (rs6000_frame_cache)
10336 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10337 * remote.c: Replace throw_exception with throw.
10338 * record-full.c (record_full_message, record_full_wait_1)
10339 (record_full_restore): Replace throw_exception with throw.
10340 * record-btrace.c:
10341 (get_thread_current_frame_id, record_btrace_start_replaying)
10342 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10343 (cmd_record_btrace_start): Replace throw_exception with throw.
10344 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10345 throw.
10346 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10347 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10348 * linespec.c:
10349 (find_linespec_symbols): Replace throw_exception with throw.
10350 * infrun.c (displaced_step_prepare, resume): Replace
10351 throw_exception with throw.
10352 * infcmd.c (post_create_inferior): Replace throw_exception with
10353 throw.
10354 * inf-loop.c (inferior_event_handler): Replace throw_exception
10355 with throw.
10356 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10357 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10358 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10359 (get_prev_frame_always, get_frame_pc_if_available)
10360 (get_frame_address_in_block_if_available, get_frame_language):
10361 Replace throw_exception with throw.
10362 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10363 throw_exception with throw.
10364 * eval.c (fetch_subexp_value, evaluate_var_value)
10365 (evaluate_funcall, evaluate_subexp_standard): Replace
10366 throw_exception with throw.
10367 * dwarf2loc.c (call_site_find_chain)
10368 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10369 Replace throw_exception with throw.
10370 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10371 with throw.
10372 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10373 throw.
10374 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10375 * completer.c (complete_line_internal): Replace throw_exception
10376 with throw.
10377 * compile/compile-object-run.c (compile_object_run): Replace
10378 throw_exception with throw.
10379 * cli/cli-script.c (process_next_line): Replace throw_exception
10380 with throw.
10381 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10382 (btrace_enable, btrace_maint_update_pt_packets): Replace
10383 throw_exception with throw.
10384 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10385 throw_exception with throw.
10386 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10387 throw_exception with throw.
10388 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10389 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10390 * aarch64-tdep.c (aarch64_make_prologue_cache)
10391 (aarch64_make_stub_cache): Replace throw_exception with throw.
10392
10393 2019-04-08 Tom Tromey <tom@tromey.com>
10394
10395 * common/common-exceptions.c (throw_exception): Rename from
10396 throw_exception_cxx. Remove old copy. Make argument const.
10397 (throw_it): Create and throw exception objects directly.
10398 * common/common-exceptions.h (throw_exception): Make argument
10399 const.
10400 (struct gdb_exception_error): Add constructor.
10401 (struct gdb_exception_quit): Add constructor.
10402
10403 2019-04-08 Tom Tromey <tom@tromey.com>
10404
10405 * common/common-exceptions.h (exception_rethrow): Don't declare.
10406 (TRY_SJLJ): Update comment.
10407 (TRY, CATCH, END_CATCH): Remove.
10408 * common/common-exceptions.c (exception_rethrow): Remove.
10409
10410 2019-04-08 Tom Tromey <tom@tromey.com>
10411
10412 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10413 Remove.
10414 (gdb_exception_error): Rename from
10415 gdb_exception_RETURN_MASK_ERROR.
10416 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10417 (gdb_quit_bad_alloc): Update.
10418 * aarch64-tdep.c: Update.
10419 * ada-lang.c: Update.
10420 * ada-typeprint.c: Update.
10421 * ada-valprint.c: Update.
10422 * amd64-tdep.c: Update.
10423 * arch-utils.c: Update.
10424 * break-catch-throw.c: Update.
10425 * breakpoint.c: Update.
10426 * btrace.c: Update.
10427 * c-varobj.c: Update.
10428 * cli/cli-cmds.c: Update.
10429 * cli/cli-interp.c: Update.
10430 * cli/cli-script.c: Update.
10431 * common/common-exceptions.c: Update.
10432 * common/new-op.c: Update.
10433 * common/selftest.c: Update.
10434 * compile/compile-c-symbols.c: Update.
10435 * compile/compile-cplus-symbols.c: Update.
10436 * compile/compile-object-load.c: Update.
10437 * compile/compile-object-run.c: Update.
10438 * completer.c: Update.
10439 * corelow.c: Update.
10440 * cp-abi.c: Update.
10441 * cp-support.c: Update.
10442 * cp-valprint.c: Update.
10443 * darwin-nat.c: Update.
10444 * disasm-selftests.c: Update.
10445 * dtrace-probe.c: Update.
10446 * dwarf-index-cache.c: Update.
10447 * dwarf-index-write.c: Update.
10448 * dwarf2-frame-tailcall.c: Update.
10449 * dwarf2-frame.c: Update.
10450 * dwarf2loc.c: Update.
10451 * dwarf2read.c: Update.
10452 * eval.c: Update.
10453 * event-loop.c: Update.
10454 * event-top.c: Update.
10455 * exec.c: Update.
10456 * f-valprint.c: Update.
10457 * fbsd-tdep.c: Update.
10458 * frame-unwind.c: Update.
10459 * frame.c: Update.
10460 * gdbtypes.c: Update.
10461 * gnu-v3-abi.c: Update.
10462 * guile/guile-internal.h: Update.
10463 * guile/scm-block.c: Update.
10464 * guile/scm-breakpoint.c: Update.
10465 * guile/scm-cmd.c: Update.
10466 * guile/scm-disasm.c: Update.
10467 * guile/scm-frame.c: Update.
10468 * guile/scm-lazy-string.c: Update.
10469 * guile/scm-math.c: Update.
10470 * guile/scm-param.c: Update.
10471 * guile/scm-ports.c: Update.
10472 * guile/scm-pretty-print.c: Update.
10473 * guile/scm-symbol.c: Update.
10474 * guile/scm-symtab.c: Update.
10475 * guile/scm-type.c: Update.
10476 * guile/scm-value.c: Update.
10477 * i386-linux-tdep.c: Update.
10478 * i386-tdep.c: Update.
10479 * inf-loop.c: Update.
10480 * infcall.c: Update.
10481 * infcmd.c: Update.
10482 * infrun.c: Update.
10483 * jit.c: Update.
10484 * language.c: Update.
10485 * linespec.c: Update.
10486 * linux-fork.c: Update.
10487 * linux-nat.c: Update.
10488 * linux-tdep.c: Update.
10489 * linux-thread-db.c: Update.
10490 * main.c: Update.
10491 * mi/mi-cmd-break.c: Update.
10492 * mi/mi-cmd-stack.c: Update.
10493 * mi/mi-interp.c: Update.
10494 * mi/mi-main.c: Update.
10495 * objc-lang.c: Update.
10496 * p-valprint.c: Update.
10497 * parse.c: Update.
10498 * ppc-linux-tdep.c: Update.
10499 * printcmd.c: Update.
10500 * python/py-arch.c: Update.
10501 * python/py-breakpoint.c: Update.
10502 * python/py-cmd.c: Update.
10503 * python/py-finishbreakpoint.c: Update.
10504 * python/py-frame.c: Update.
10505 * python/py-framefilter.c: Update.
10506 * python/py-gdb-readline.c: Update.
10507 * python/py-inferior.c: Update.
10508 * python/py-infthread.c: Update.
10509 * python/py-lazy-string.c: Update.
10510 * python/py-linetable.c: Update.
10511 * python/py-objfile.c: Update.
10512 * python/py-param.c: Update.
10513 * python/py-prettyprint.c: Update.
10514 * python/py-progspace.c: Update.
10515 * python/py-record-btrace.c: Update.
10516 * python/py-record.c: Update.
10517 * python/py-symbol.c: Update.
10518 * python/py-type.c: Update.
10519 * python/py-unwind.c: Update.
10520 * python/py-utils.c: Update.
10521 * python/py-value.c: Update.
10522 * python/python.c: Update.
10523 * record-btrace.c: Update.
10524 * record-full.c: Update.
10525 * remote-fileio.c: Update.
10526 * remote.c: Update.
10527 * riscv-tdep.c: Update.
10528 * rs6000-aix-tdep.c: Update.
10529 * rs6000-tdep.c: Update.
10530 * rust-exp.y: Update.
10531 * rust-lang.c: Update.
10532 * s390-tdep.c: Update.
10533 * selftest-arch.c: Update.
10534 * solib-dsbt.c: Update.
10535 * solib-frv.c: Update.
10536 * solib-spu.c: Update.
10537 * solib-svr4.c: Update.
10538 * solib.c: Update.
10539 * sparc64-linux-tdep.c: Update.
10540 * stack.c: Update.
10541 * symfile-mem.c: Update.
10542 * symmisc.c: Update.
10543 * target.c: Update.
10544 * thread.c: Update.
10545 * top.c: Update.
10546 * tracefile-tfile.c: Update.
10547 * tui/tui.c: Update.
10548 * typeprint.c: Update.
10549 * unittests/cli-utils-selftests.c: Update.
10550 * unittests/parse-connection-spec-selftests.c: Update.
10551 * valops.c: Update.
10552 * valprint.c: Update.
10553 * value.c: Update.
10554 * varobj.c: Update.
10555 * windows-nat.c: Update.
10556 * x86-linux-nat.c: Update.
10557 * xml-support.c: Update.
10558
10559 2019-04-08 Tom Tromey <tom@tromey.com>
10560
10561 * xml-support.c: Use C++ exception handling.
10562 * x86-linux-nat.c: Use C++ exception handling.
10563 * windows-nat.c: Use C++ exception handling.
10564 * varobj.c: Use C++ exception handling.
10565 * value.c: Use C++ exception handling.
10566 * valprint.c: Use C++ exception handling.
10567 * valops.c: Use C++ exception handling.
10568 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10569 handling.
10570 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10571 * typeprint.c: Use C++ exception handling.
10572 * tui/tui.c: Use C++ exception handling.
10573 * tracefile-tfile.c: Use C++ exception handling.
10574 * top.c: Use C++ exception handling.
10575 * thread.c: Use C++ exception handling.
10576 * target.c: Use C++ exception handling.
10577 * symmisc.c: Use C++ exception handling.
10578 * symfile-mem.c: Use C++ exception handling.
10579 * stack.c: Use C++ exception handling.
10580 * sparc64-linux-tdep.c: Use C++ exception handling.
10581 * solib.c: Use C++ exception handling.
10582 * solib-svr4.c: Use C++ exception handling.
10583 * solib-spu.c: Use C++ exception handling.
10584 * solib-frv.c: Use C++ exception handling.
10585 * solib-dsbt.c: Use C++ exception handling.
10586 * selftest-arch.c: Use C++ exception handling.
10587 * s390-tdep.c: Use C++ exception handling.
10588 * rust-lang.c: Use C++ exception handling.
10589 * rust-exp.y: Use C++ exception handling.
10590 * rs6000-tdep.c: Use C++ exception handling.
10591 * rs6000-aix-tdep.c: Use C++ exception handling.
10592 * riscv-tdep.c: Use C++ exception handling.
10593 * remote.c: Use C++ exception handling.
10594 * remote-fileio.c: Use C++ exception handling.
10595 * record-full.c: Use C++ exception handling.
10596 * record-btrace.c: Use C++ exception handling.
10597 * python/python.c: Use C++ exception handling.
10598 * python/py-value.c: Use C++ exception handling.
10599 * python/py-utils.c: Use C++ exception handling.
10600 * python/py-unwind.c: Use C++ exception handling.
10601 * python/py-type.c: Use C++ exception handling.
10602 * python/py-symbol.c: Use C++ exception handling.
10603 * python/py-record.c: Use C++ exception handling.
10604 * python/py-record-btrace.c: Use C++ exception handling.
10605 * python/py-progspace.c: Use C++ exception handling.
10606 * python/py-prettyprint.c: Use C++ exception handling.
10607 * python/py-param.c: Use C++ exception handling.
10608 * python/py-objfile.c: Use C++ exception handling.
10609 * python/py-linetable.c: Use C++ exception handling.
10610 * python/py-lazy-string.c: Use C++ exception handling.
10611 * python/py-infthread.c: Use C++ exception handling.
10612 * python/py-inferior.c: Use C++ exception handling.
10613 * python/py-gdb-readline.c: Use C++ exception handling.
10614 * python/py-framefilter.c: Use C++ exception handling.
10615 * python/py-frame.c: Use C++ exception handling.
10616 * python/py-finishbreakpoint.c: Use C++ exception handling.
10617 * python/py-cmd.c: Use C++ exception handling.
10618 * python/py-breakpoint.c: Use C++ exception handling.
10619 * python/py-arch.c: Use C++ exception handling.
10620 * printcmd.c: Use C++ exception handling.
10621 * ppc-linux-tdep.c: Use C++ exception handling.
10622 * parse.c: Use C++ exception handling.
10623 * p-valprint.c: Use C++ exception handling.
10624 * objc-lang.c: Use C++ exception handling.
10625 * mi/mi-main.c: Use C++ exception handling.
10626 * mi/mi-interp.c: Use C++ exception handling.
10627 * mi/mi-cmd-stack.c: Use C++ exception handling.
10628 * mi/mi-cmd-break.c: Use C++ exception handling.
10629 * main.c: Use C++ exception handling.
10630 * linux-thread-db.c: Use C++ exception handling.
10631 * linux-tdep.c: Use C++ exception handling.
10632 * linux-nat.c: Use C++ exception handling.
10633 * linux-fork.c: Use C++ exception handling.
10634 * linespec.c: Use C++ exception handling.
10635 * language.c: Use C++ exception handling.
10636 * jit.c: Use C++ exception handling.
10637 * infrun.c: Use C++ exception handling.
10638 * infcmd.c: Use C++ exception handling.
10639 * infcall.c: Use C++ exception handling.
10640 * inf-loop.c: Use C++ exception handling.
10641 * i386-tdep.c: Use C++ exception handling.
10642 * i386-linux-tdep.c: Use C++ exception handling.
10643 * guile/scm-value.c: Use C++ exception handling.
10644 * guile/scm-type.c: Use C++ exception handling.
10645 * guile/scm-symtab.c: Use C++ exception handling.
10646 * guile/scm-symbol.c: Use C++ exception handling.
10647 * guile/scm-pretty-print.c: Use C++ exception handling.
10648 * guile/scm-ports.c: Use C++ exception handling.
10649 * guile/scm-param.c: Use C++ exception handling.
10650 * guile/scm-math.c: Use C++ exception handling.
10651 * guile/scm-lazy-string.c: Use C++ exception handling.
10652 * guile/scm-frame.c: Use C++ exception handling.
10653 * guile/scm-disasm.c: Use C++ exception handling.
10654 * guile/scm-cmd.c: Use C++ exception handling.
10655 * guile/scm-breakpoint.c: Use C++ exception handling.
10656 * guile/scm-block.c: Use C++ exception handling.
10657 * guile/guile-internal.h: Use C++ exception handling.
10658 * gnu-v3-abi.c: Use C++ exception handling.
10659 * gdbtypes.c: Use C++ exception handling.
10660 * frame.c: Use C++ exception handling.
10661 * frame-unwind.c: Use C++ exception handling.
10662 * fbsd-tdep.c: Use C++ exception handling.
10663 * f-valprint.c: Use C++ exception handling.
10664 * exec.c: Use C++ exception handling.
10665 * event-top.c: Use C++ exception handling.
10666 * event-loop.c: Use C++ exception handling.
10667 * eval.c: Use C++ exception handling.
10668 * dwarf2read.c: Use C++ exception handling.
10669 * dwarf2loc.c: Use C++ exception handling.
10670 * dwarf2-frame.c: Use C++ exception handling.
10671 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10672 * dwarf-index-write.c: Use C++ exception handling.
10673 * dwarf-index-cache.c: Use C++ exception handling.
10674 * dtrace-probe.c: Use C++ exception handling.
10675 * disasm-selftests.c: Use C++ exception handling.
10676 * darwin-nat.c: Use C++ exception handling.
10677 * cp-valprint.c: Use C++ exception handling.
10678 * cp-support.c: Use C++ exception handling.
10679 * cp-abi.c: Use C++ exception handling.
10680 * corelow.c: Use C++ exception handling.
10681 * completer.c: Use C++ exception handling.
10682 * compile/compile-object-run.c: Use C++ exception handling.
10683 * compile/compile-object-load.c: Use C++ exception handling.
10684 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10685 * compile/compile-c-symbols.c: Use C++ exception handling.
10686 * common/selftest.c: Use C++ exception handling.
10687 * common/new-op.c: Use C++ exception handling.
10688 * cli/cli-script.c: Use C++ exception handling.
10689 * cli/cli-interp.c: Use C++ exception handling.
10690 * cli/cli-cmds.c: Use C++ exception handling.
10691 * c-varobj.c: Use C++ exception handling.
10692 * btrace.c: Use C++ exception handling.
10693 * breakpoint.c: Use C++ exception handling.
10694 * break-catch-throw.c: Use C++ exception handling.
10695 * arch-utils.c: Use C++ exception handling.
10696 * amd64-tdep.c: Use C++ exception handling.
10697 * ada-valprint.c: Use C++ exception handling.
10698 * ada-typeprint.c: Use C++ exception handling.
10699 * ada-lang.c: Use C++ exception handling.
10700 * aarch64-tdep.c: Use C++ exception handling.
10701
10702 2019-04-08 Tom Tromey <tom@tromey.com>
10703
10704 * xml-support.c (gdb_xml_parser::parse): Update.
10705 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10706 * value.c (show_convenience): Update.
10707 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10708 (test_parse_flags_qcs): Update.
10709 * thread.c (thr_try_catch_cmd): Update.
10710 * target.c (target_translate_tls_address): Update.
10711 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10712 (info_frame_command_core, frame_apply_command_count): Update.
10713 * rust-exp.y (rust_lex_exception_test): Update.
10714 * riscv-tdep.c (riscv_print_one_register_info): Update.
10715 * remote.c (remote_target::enable_btrace): Update.
10716 * record-btrace.c (record_btrace_enable_warn): Update.
10717 * python/py-utils.c (gdbpy_convert_exception): Update.
10718 * printcmd.c (do_one_display, print_variable_and_value): Update.
10719 * mi/mi-main.c (mi_print_exception): Update.
10720 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10721 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10722 * linux-nat.c (linux_nat_target::attach): Update.
10723 * linux-fork.c (class scoped_switch_fork_info): Update.
10724 * infrun.c (displaced_step_prepare): Update.
10725 * infcall.c (call_function_by_hand_dummy): Update.
10726 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10727 * gnu-v3-abi.c (print_one_vtable): Update.
10728 * frame.c (get_prev_frame_always): Update.
10729 * f-valprint.c (info_common_command_for_block): Update.
10730 * exec.c (try_open_exec_file): Update.
10731 * exceptions.c (print_exception, exception_print)
10732 (exception_fprintf, exception_print_same): Update.
10733 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10734 * dwarf-index-cache.c (index_cache::store)
10735 (index_cache::lookup_gdb_index): Update.
10736 * darwin-nat.c (maybe_cache_shell): Update.
10737 * cp-valprint.c (cp_print_value_fields): Update.
10738 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10739 (gcc_cplus_symbol_address): Update.
10740 * compile/compile-c-symbols.c (gcc_convert_symbol)
10741 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10742 * common/selftest.c: Update.
10743 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10744 a std::string.
10745 (exception_try_scope_entry, exception_try_scope_exit): Don't
10746 declare.
10747 (struct exception_try_scope): Remove.
10748 (TRY): Don't use exception_try_scope.
10749 (struct gdb_exception): Add constructor, operator=.
10750 <what>: New method.
10751 (struct gdb_exception_RETURN_MASK_ALL)
10752 (struct gdb_exception_RETURN_MASK_ERROR)
10753 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10754 (struct gdb_quit_bad_alloc): Update.
10755 * common/common-exceptions.c (exception_none): Change
10756 initializer.
10757 (struct catcher) <state, exception>: Initialize inline.
10758 <prev>: Remove member.
10759 (current_catcher): Remove.
10760 (catchers): New global.
10761 (exceptions_state_mc_init): Simplify.
10762 (catcher_pop): Remove.
10763 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10764 (try_scope_depth, exception_try_scope_entry)
10765 (exception_try_scope_exit): Remove.
10766 (throw_exception_sjlj): Update.
10767 (exception_messages, exception_messages_size): Remove.
10768 (throw_it): Simplify.
10769 (gdb_exception_sliced_copy): Remove.
10770 (throw_exception_cxx): Update.
10771 * cli/cli-script.c (script_from_file): Update.
10772 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10773 Update.
10774 * ada-valprint.c (ada_val_print): Update.
10775 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10776 (create_excep_cond_exprs): Update.
10777
10778 2019-04-08 Tom Tromey <tom@tromey.com>
10779
10780 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10781 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10782 (TRY, CATCH, END_CATCH): Remove some definitions.
10783 * common/common-exceptions.c: Don't use GDB_XCPT.
10784 (catcher_list_size): Remove.
10785 (throw_exception, throw_it): Simplify.
10786
10787 2019-04-05 Tom Tromey <tom@tromey.com>
10788
10789 Revert the header-sorting patch.
10790 * ft32-tdep.c: Revert.
10791 * frv-tdep.c: Revert.
10792 * frv-linux-tdep.c: Revert.
10793 * frame.c: Revert.
10794 * frame-unwind.c: Revert.
10795 * frame-base.c: Revert.
10796 * fork-child.c: Revert.
10797 * findvar.c: Revert.
10798 * findcmd.c: Revert.
10799 * filesystem.c: Revert.
10800 * filename-seen-cache.h: Revert.
10801 * filename-seen-cache.c: Revert.
10802 * fbsd-tdep.c: Revert.
10803 * fbsd-nat.h: Revert.
10804 * fbsd-nat.c: Revert.
10805 * f-valprint.c: Revert.
10806 * f-typeprint.c: Revert.
10807 * f-lang.c: Revert.
10808 * extension.h: Revert.
10809 * extension.c: Revert.
10810 * extension-priv.h: Revert.
10811 * expprint.c: Revert.
10812 * exec.h: Revert.
10813 * exec.c: Revert.
10814 * exceptions.c: Revert.
10815 * event-top.c: Revert.
10816 * event-loop.c: Revert.
10817 * eval.c: Revert.
10818 * elfread.c: Revert.
10819 * dwarf2read.h: Revert.
10820 * dwarf2read.c: Revert.
10821 * dwarf2loc.c: Revert.
10822 * dwarf2expr.h: Revert.
10823 * dwarf2expr.c: Revert.
10824 * dwarf2-frame.c: Revert.
10825 * dwarf2-frame-tailcall.c: Revert.
10826 * dwarf-index-write.h: Revert.
10827 * dwarf-index-write.c: Revert.
10828 * dwarf-index-common.c: Revert.
10829 * dwarf-index-cache.h: Revert.
10830 * dwarf-index-cache.c: Revert.
10831 * dummy-frame.c: Revert.
10832 * dtrace-probe.c: Revert.
10833 * disasm.h: Revert.
10834 * disasm.c: Revert.
10835 * disasm-selftests.c: Revert.
10836 * dictionary.c: Revert.
10837 * dicos-tdep.c: Revert.
10838 * demangle.c: Revert.
10839 * dcache.h: Revert.
10840 * dcache.c: Revert.
10841 * darwin-nat.h: Revert.
10842 * darwin-nat.c: Revert.
10843 * darwin-nat-info.c: Revert.
10844 * d-valprint.c: Revert.
10845 * d-namespace.c: Revert.
10846 * d-lang.c: Revert.
10847 * ctf.c: Revert.
10848 * csky-tdep.c: Revert.
10849 * csky-linux-tdep.c: Revert.
10850 * cris-tdep.c: Revert.
10851 * cris-linux-tdep.c: Revert.
10852 * cp-valprint.c: Revert.
10853 * cp-support.c: Revert.
10854 * cp-namespace.c: Revert.
10855 * cp-abi.c: Revert.
10856 * corelow.c: Revert.
10857 * corefile.c: Revert.
10858 * continuations.c: Revert.
10859 * completer.h: Revert.
10860 * completer.c: Revert.
10861 * complaints.c: Revert.
10862 * coffread.c: Revert.
10863 * coff-pe-read.c: Revert.
10864 * cli-out.h: Revert.
10865 * cli-out.c: Revert.
10866 * charset.c: Revert.
10867 * c-varobj.c: Revert.
10868 * c-valprint.c: Revert.
10869 * c-typeprint.c: Revert.
10870 * c-lang.c: Revert.
10871 * buildsym.c: Revert.
10872 * buildsym-legacy.c: Revert.
10873 * build-id.h: Revert.
10874 * build-id.c: Revert.
10875 * btrace.c: Revert.
10876 * bsd-uthread.c: Revert.
10877 * breakpoint.h: Revert.
10878 * breakpoint.c: Revert.
10879 * break-catch-throw.c: Revert.
10880 * break-catch-syscall.c: Revert.
10881 * break-catch-sig.c: Revert.
10882 * blockframe.c: Revert.
10883 * block.c: Revert.
10884 * bfin-tdep.c: Revert.
10885 * bfin-linux-tdep.c: Revert.
10886 * bfd-target.c: Revert.
10887 * bcache.c: Revert.
10888 * ax-general.c: Revert.
10889 * ax-gdb.h: Revert.
10890 * ax-gdb.c: Revert.
10891 * avr-tdep.c: Revert.
10892 * auxv.c: Revert.
10893 * auto-load.c: Revert.
10894 * arm-wince-tdep.c: Revert.
10895 * arm-tdep.c: Revert.
10896 * arm-symbian-tdep.c: Revert.
10897 * arm-pikeos-tdep.c: Revert.
10898 * arm-obsd-tdep.c: Revert.
10899 * arm-nbsd-tdep.c: Revert.
10900 * arm-nbsd-nat.c: Revert.
10901 * arm-linux-tdep.c: Revert.
10902 * arm-linux-nat.c: Revert.
10903 * arm-fbsd-tdep.c: Revert.
10904 * arm-fbsd-nat.c: Revert.
10905 * arm-bsd-tdep.c: Revert.
10906 * arch-utils.c: Revert.
10907 * arc-tdep.c: Revert.
10908 * arc-newlib-tdep.c: Revert.
10909 * annotate.h: Revert.
10910 * annotate.c: Revert.
10911 * amd64-windows-tdep.c: Revert.
10912 * amd64-windows-nat.c: Revert.
10913 * amd64-tdep.c: Revert.
10914 * amd64-sol2-tdep.c: Revert.
10915 * amd64-obsd-tdep.c: Revert.
10916 * amd64-obsd-nat.c: Revert.
10917 * amd64-nbsd-tdep.c: Revert.
10918 * amd64-nbsd-nat.c: Revert.
10919 * amd64-nat.c: Revert.
10920 * amd64-linux-tdep.c: Revert.
10921 * amd64-linux-nat.c: Revert.
10922 * amd64-fbsd-tdep.c: Revert.
10923 * amd64-fbsd-nat.c: Revert.
10924 * amd64-dicos-tdep.c: Revert.
10925 * amd64-darwin-tdep.c: Revert.
10926 * amd64-bsd-nat.c: Revert.
10927 * alpha-tdep.c: Revert.
10928 * alpha-obsd-tdep.c: Revert.
10929 * alpha-nbsd-tdep.c: Revert.
10930 * alpha-mdebug-tdep.c: Revert.
10931 * alpha-linux-tdep.c: Revert.
10932 * alpha-linux-nat.c: Revert.
10933 * alpha-bsd-tdep.c: Revert.
10934 * alpha-bsd-nat.c: Revert.
10935 * aix-thread.c: Revert.
10936 * agent.c: Revert.
10937 * addrmap.c: Revert.
10938 * ada-varobj.c: Revert.
10939 * ada-valprint.c: Revert.
10940 * ada-typeprint.c: Revert.
10941 * ada-tasks.c: Revert.
10942 * ada-lang.c: Revert.
10943 * aarch64-tdep.c: Revert.
10944 * aarch64-ravenscar-thread.c: Revert.
10945 * aarch64-newlib-tdep.c: Revert.
10946 * aarch64-linux-tdep.c: Revert.
10947 * aarch64-linux-nat.c: Revert.
10948 * aarch64-fbsd-tdep.c: Revert.
10949 * aarch64-fbsd-nat.c: Revert.
10950 * aarch32-linux-nat.c: Revert.
10951
10952 2019-04-05 Tom Tromey <tom@tromey.com>
10953
10954 * ft32-tdep.c: Sort headers.
10955 * frv-tdep.c: Sort headers.
10956 * frv-linux-tdep.c: Sort headers.
10957 * frame.c: Sort headers.
10958 * frame-unwind.c: Sort headers.
10959 * frame-base.c: Sort headers.
10960 * fork-child.c: Sort headers.
10961 * findvar.c: Sort headers.
10962 * findcmd.c: Sort headers.
10963 * filesystem.c: Sort headers.
10964 * filename-seen-cache.h: Sort headers.
10965 * filename-seen-cache.c: Sort headers.
10966 * fbsd-tdep.c: Sort headers.
10967 * fbsd-nat.h: Sort headers.
10968 * fbsd-nat.c: Sort headers.
10969 * f-valprint.c: Sort headers.
10970 * f-typeprint.c: Sort headers.
10971 * f-lang.c: Sort headers.
10972 * extension.h: Sort headers.
10973 * extension.c: Sort headers.
10974 * extension-priv.h: Sort headers.
10975 * expprint.c: Sort headers.
10976 * exec.h: Sort headers.
10977 * exec.c: Sort headers.
10978 * exceptions.c: Sort headers.
10979 * event-top.c: Sort headers.
10980 * event-loop.c: Sort headers.
10981 * eval.c: Sort headers.
10982 * elfread.c: Sort headers.
10983 * dwarf2read.h: Sort headers.
10984 * dwarf2read.c: Sort headers.
10985 * dwarf2loc.c: Sort headers.
10986 * dwarf2expr.h: Sort headers.
10987 * dwarf2expr.c: Sort headers.
10988 * dwarf2-frame.c: Sort headers.
10989 * dwarf2-frame-tailcall.c: Sort headers.
10990 * dwarf-index-write.h: Sort headers.
10991 * dwarf-index-write.c: Sort headers.
10992 * dwarf-index-common.c: Sort headers.
10993 * dwarf-index-cache.h: Sort headers.
10994 * dwarf-index-cache.c: Sort headers.
10995 * dummy-frame.c: Sort headers.
10996 * dtrace-probe.c: Sort headers.
10997 * disasm.h: Sort headers.
10998 * disasm.c: Sort headers.
10999 * disasm-selftests.c: Sort headers.
11000 * dictionary.c: Sort headers.
11001 * dicos-tdep.c: Sort headers.
11002 * demangle.c: Sort headers.
11003 * dcache.h: Sort headers.
11004 * dcache.c: Sort headers.
11005 * darwin-nat.h: Sort headers.
11006 * darwin-nat.c: Sort headers.
11007 * darwin-nat-info.c: Sort headers.
11008 * d-valprint.c: Sort headers.
11009 * d-namespace.c: Sort headers.
11010 * d-lang.c: Sort headers.
11011 * ctf.c: Sort headers.
11012 * csky-tdep.c: Sort headers.
11013 * csky-linux-tdep.c: Sort headers.
11014 * cris-tdep.c: Sort headers.
11015 * cris-linux-tdep.c: Sort headers.
11016 * cp-valprint.c: Sort headers.
11017 * cp-support.c: Sort headers.
11018 * cp-namespace.c: Sort headers.
11019 * cp-abi.c: Sort headers.
11020 * corelow.c: Sort headers.
11021 * corefile.c: Sort headers.
11022 * continuations.c: Sort headers.
11023 * completer.h: Sort headers.
11024 * completer.c: Sort headers.
11025 * complaints.c: Sort headers.
11026 * coffread.c: Sort headers.
11027 * coff-pe-read.c: Sort headers.
11028 * cli-out.h: Sort headers.
11029 * cli-out.c: Sort headers.
11030 * charset.c: Sort headers.
11031 * c-varobj.c: Sort headers.
11032 * c-valprint.c: Sort headers.
11033 * c-typeprint.c: Sort headers.
11034 * c-lang.c: Sort headers.
11035 * buildsym.c: Sort headers.
11036 * buildsym-legacy.c: Sort headers.
11037 * build-id.h: Sort headers.
11038 * build-id.c: Sort headers.
11039 * btrace.c: Sort headers.
11040 * bsd-uthread.c: Sort headers.
11041 * breakpoint.h: Sort headers.
11042 * breakpoint.c: Sort headers.
11043 * break-catch-throw.c: Sort headers.
11044 * break-catch-syscall.c: Sort headers.
11045 * break-catch-sig.c: Sort headers.
11046 * blockframe.c: Sort headers.
11047 * block.c: Sort headers.
11048 * bfin-tdep.c: Sort headers.
11049 * bfin-linux-tdep.c: Sort headers.
11050 * bfd-target.c: Sort headers.
11051 * bcache.c: Sort headers.
11052 * ax-general.c: Sort headers.
11053 * ax-gdb.h: Sort headers.
11054 * ax-gdb.c: Sort headers.
11055 * avr-tdep.c: Sort headers.
11056 * auxv.c: Sort headers.
11057 * auto-load.c: Sort headers.
11058 * arm-wince-tdep.c: Sort headers.
11059 * arm-tdep.c: Sort headers.
11060 * arm-symbian-tdep.c: Sort headers.
11061 * arm-pikeos-tdep.c: Sort headers.
11062 * arm-obsd-tdep.c: Sort headers.
11063 * arm-nbsd-tdep.c: Sort headers.
11064 * arm-nbsd-nat.c: Sort headers.
11065 * arm-linux-tdep.c: Sort headers.
11066 * arm-linux-nat.c: Sort headers.
11067 * arm-fbsd-tdep.c: Sort headers.
11068 * arm-fbsd-nat.c: Sort headers.
11069 * arm-bsd-tdep.c: Sort headers.
11070 * arch-utils.c: Sort headers.
11071 * arc-tdep.c: Sort headers.
11072 * arc-newlib-tdep.c: Sort headers.
11073 * annotate.h: Sort headers.
11074 * annotate.c: Sort headers.
11075 * amd64-windows-tdep.c: Sort headers.
11076 * amd64-windows-nat.c: Sort headers.
11077 * amd64-tdep.c: Sort headers.
11078 * amd64-sol2-tdep.c: Sort headers.
11079 * amd64-obsd-tdep.c: Sort headers.
11080 * amd64-obsd-nat.c: Sort headers.
11081 * amd64-nbsd-tdep.c: Sort headers.
11082 * amd64-nbsd-nat.c: Sort headers.
11083 * amd64-nat.c: Sort headers.
11084 * amd64-linux-tdep.c: Sort headers.
11085 * amd64-linux-nat.c: Sort headers.
11086 * amd64-fbsd-tdep.c: Sort headers.
11087 * amd64-fbsd-nat.c: Sort headers.
11088 * amd64-dicos-tdep.c: Sort headers.
11089 * amd64-darwin-tdep.c: Sort headers.
11090 * amd64-bsd-nat.c: Sort headers.
11091 * alpha-tdep.c: Sort headers.
11092 * alpha-obsd-tdep.c: Sort headers.
11093 * alpha-nbsd-tdep.c: Sort headers.
11094 * alpha-mdebug-tdep.c: Sort headers.
11095 * alpha-linux-tdep.c: Sort headers.
11096 * alpha-linux-nat.c: Sort headers.
11097 * alpha-bsd-tdep.c: Sort headers.
11098 * alpha-bsd-nat.c: Sort headers.
11099 * aix-thread.c: Sort headers.
11100 * agent.c: Sort headers.
11101 * addrmap.c: Sort headers.
11102 * ada-varobj.c: Sort headers.
11103 * ada-valprint.c: Sort headers.
11104 * ada-typeprint.c: Sort headers.
11105 * ada-tasks.c: Sort headers.
11106 * ada-lang.c: Sort headers.
11107 * aarch64-tdep.c: Sort headers.
11108 * aarch64-ravenscar-thread.c: Sort headers.
11109 * aarch64-newlib-tdep.c: Sort headers.
11110 * aarch64-linux-tdep.c: Sort headers.
11111 * aarch64-linux-nat.c: Sort headers.
11112 * aarch64-fbsd-tdep.c: Sort headers.
11113 * aarch64-fbsd-nat.c: Sort headers.
11114 * aarch32-linux-nat.c: Sort headers.
11115
11116 2019-04-04 Tom Tromey <tom@tromey.com>
11117
11118 * varobj.c (varobj_create): Update.
11119 * rust-exp.y (struct rust_parser) <update_innermost_block,
11120 lookup_symbol>: New methods.
11121 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11122 Rename.
11123 (rust_parser::rust_lookup_type)
11124 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11125 * printcmd.c (display_command, do_one_display): Update.
11126 * parser-defs.h (struct parser_state) <parser_state>: Add
11127 "tracker" parameter.
11128 (block_tracker): New member.
11129 (class innermost_block_tracker) <innermost_block_tracker>: Add
11130 "types" parameter.
11131 <reset>: Remove method.
11132 (innermost_block): Don't declare.
11133 (null_post_parser): Update.
11134 * parse.c (innermost_block): Remove global.
11135 (write_dollar_variable): Update.
11136 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11137 Remove "tracker_types" parameter.
11138 (parse_expression): Add "tracker" parameter.
11139 (parse_expression_for_completion): Update.
11140 (null_post_parser): Add "tracker" parameter.
11141 * p-exp.y: Update rules.
11142 * m2-exp.y: Update rules.
11143 * language.h (struct language_defn) <la_post_parser>: Add
11144 "tracker" parameter.
11145 * go-exp.y: Update rules.
11146 * f-exp.y: Update rules.
11147 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11148 parameter.
11149 * d-exp.y: Update rules.
11150 * c-exp.y: Update rules.
11151 * breakpoint.c (set_breakpoint_condition): Create an
11152 innermost_block_tracker.
11153 (watch_command_1): Likewise.
11154 * ada-lang.c (resolve): Add "tracker" parameter.
11155 (resolve_subexp): Likewise.
11156 * ada-exp.y (write_var_from_sym): Update.
11157
11158 2019-04-04 Tom Tromey <tom@tromey.com>
11159
11160 * type-stack.h: New file.
11161 * type-stack.c: New file.
11162 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11163 type-stack.h.
11164 (insert_into_type_stack, insert_type, push_type, push_type_int)
11165 (insert_type_address_space, pop_type, pop_type_int)
11166 (pop_typelist, pop_type_stack, append_type_stack)
11167 (push_type_stack, get_type_stack, push_typelist)
11168 (follow_type_instance_flags, follow_types): Don't declare.
11169 * parse.c (type_stack): Remove global.
11170 (parse_exp_in_context): Update.
11171 (insert_into_type_stack, insert_type, push_type, push_type_int)
11172 (insert_type_address_space, pop_type, pop_type_int)
11173 (pop_typelist, pop_type_stack, append_type_stack)
11174 (push_type_stack, get_type_stack, push_typelist)
11175 (follow_type_instance_flags, follow_types): Remove (moved to
11176 type-stack.c).
11177 * f-exp.y (type_stack): New global.
11178 Update rules.
11179 (push_kind_type, f_parse): Update.
11180 * d-exp.y (type_stack): New global.
11181 Update rules.
11182 (d_parse): Update.
11183 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11184 Update rules.
11185 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11186 (HFILES_NO_SRCDIR): Add type-stack.h.
11187
11188 2019-04-04 Tom Tromey <tom@tromey.com>
11189
11190 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11191 (rust_parser::convert_ast_to_expression, rust_parse)
11192 (rust_lex_test_completion, rust_lex_tests): Update.
11193 * parser-defs.h (struct expr_completion_state): New.
11194 (struct parser_state) <parser_state>: Add completion parameter.
11195 <mark_struct_expression, mark_completion_tag>: New methods.
11196 <parse_completion, m_completion_state>: New members.
11197 (prefixify_expression, null_post_parser): Update.
11198 (mark_struct_expression, mark_completion_tag): Don't declare.
11199 * parse.c (parse_completion, expout_last_struct)
11200 (expout_tag_completion_type, expout_completion_name): Remove
11201 globals.
11202 (parser_state::mark_struct_expression)
11203 (parser_state::mark_completion_tag): Now methods.
11204 (prefixify_expression): Add last_struct parameter.
11205 (prefixify_subexp): Likewise.
11206 (parse_exp_1): Update.
11207 (parse_exp_in_context): Add cstate parameter. Update.
11208 (parse_expression_for_completion): Create an
11209 expr_completion_state.
11210 (null_post_parser): Add "completion" parameter.
11211 * p-exp.y: Update rules.
11212 (yylex): Update.
11213 * language.h (struct language_defn) <la_post_parser>: Add
11214 "completing" parameter.
11215 * go-exp.y: Update rules.
11216 (lex_one_token): Update.
11217 * expression.h (parse_completion): Don't declare.
11218 * d-exp.y: Update rules.
11219 (lex_one_token): Update rules.
11220 * c-exp.y: Update rules.
11221 (lex_one_token): Update.
11222 * ada-lang.c (resolve): Add "parse_completion" parameter.
11223 (resolve_subexp): Likewise.
11224 (ada_resolve_function): Likewise.
11225
11226 2019-04-04 Tom Tromey <tom@tromey.com>
11227
11228 * parser-defs.h (struct parser_state) <start_arglist,
11229 end_arglist>: New methods.
11230 <arglist_len, m_funcall_chain>: New members.
11231 (arglist_len, start_arglist, end_arglist): Don't declare.
11232 * parse.c (arglist_len, funcall_chain): Remove global.
11233 (start_arglist, end_arglist): Remove functions.
11234 (parse_exp_in_context): Update.
11235 * p-exp.y: Update rules.
11236 * m2-exp.y: Update rules.
11237 * go-exp.y: Update rules.
11238 * f-exp.y: Update rules.
11239 * d-exp.y: Update rules.
11240 * c-exp.y: Update rules.
11241
11242 2019-04-04 Tom Tromey <tom@tromey.com>
11243
11244 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11245 lex_operator, push_back>: New methods.
11246 Update all rules.
11247 (rust_parser::lex_hex, lex_escape): Rename and update.
11248 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11249 (rust_parser::lex_operator): Rename and update.
11250 (rust_parser::lex_number, rustyylex, rustyyerror)
11251 (rust_lex_test_init, rust_lex_test_sequence)
11252 (rust_lex_test_push_back, rust_lex_tests): Update.
11253 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11254 parameter.
11255 <lexptr, prev_lexptr>: New members.
11256 (lexptr, prev_lexptr): Don't declare.
11257 * parse.c (lexptr, prev_lexptr): Remove globals.
11258 (parse_exp_in_context): Update.
11259 * p-exp.y (yylex, yyerror): Update.
11260 * m2-exp.y (parse_number, yylex, yyerror): Update.
11261 * go-exp.y (lex_one_token, yyerror): Update.
11262 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11263 * d-exp.y (lex_one_token, yyerror): Update.
11264 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11265 (lex_one_token, yyerror): Update.
11266 * ada-lex.l (YY_INPUT): Update.
11267 (rewind_to_char): Update.
11268 * ada-exp.y (yyerror): Update.
11269
11270 2019-04-04 Tom Tromey <tom@tromey.com>
11271
11272 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11273 * parser-defs.h (struct parser_state) <parser_state>: Add new
11274 parameter.
11275 <comma_terminates>: New member.
11276 (comma_terminates): Don't declare global.
11277 * parse.c (comma_terminates): Remove global.
11278 (parse_exp_in_context): Update.
11279 * p-exp.y (yylex): Update.
11280 * m2-exp.y (yylex): Update.
11281 * go-exp.y (lex_one_token): Update.
11282 * f-exp.y (yylex): Update.
11283 * d-exp.y (lex_one_token): Update.
11284 * c-exp.y (lex_one_token): Update.
11285 * ada-lex.l: Update.
11286
11287 2019-04-04 Tom Tromey <tom@tromey.com>
11288
11289 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11290 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11291 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11292 * parser-defs.h (paren_depth): Don't declare.
11293 * parse.c (paren_depth): Remove global.
11294 (parse_exp_in_context): Update.
11295 * p-exp.y (paren_depth): New global.
11296 (pascal_parse): Initialize it.
11297 * m2-exp.y (paren_depth): New global.
11298 (m2_parse): Initialize it.
11299 * go-exp.y (paren_depth): New global.
11300 (go_parse): Initialize it.
11301 * f-exp.y (paren_depth): New global.
11302 (f_parse): Initialize it.
11303 * d-exp.y (paren_depth): New global.
11304 (d_parse): Initialize it.
11305 * c-exp.y (paren_depth): New global.
11306 (c_parse): Initialize it.
11307 * ada-lex.l (paren_depth): New global.
11308 (lexer_init): Initialize it.
11309
11310 2019-04-04 Tom Tromey <tom@tromey.com>
11311
11312 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11313 (rust_parser::convert_ast_to_type)
11314 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11315 * parser-defs.h (struct parser_state) <parser_state>: Add
11316 parameters. Initialize new members.
11317 <expression_context_block, expression_context_pc>: New members.
11318 * parse.c (expression_context_block, expression_context_pc):
11319 Remove globals.
11320 (parse_exp_in_context): Update.
11321 * p-exp.y: Update all rules.
11322 (yylex): Update.
11323 * m2-exp.y: Update all rules.
11324 (yylex): Update.
11325 * go-exp.y (yylex): Update.
11326 * f-exp.y (yylex): Update.
11327 * d-exp.y: Update all rules.
11328 (yylex): Update.
11329 * c-exp.y: Update all rules.
11330 (lex_one_token, classify_name, yylex, c_parse): Update.
11331 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11332
11333 2019-04-04 Tom Tromey <tom@tromey.com>
11334
11335 * gdbarch.h, gdbarch.c: Rebuild.
11336 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11337 * stap-probe.h:
11338 (struct stap_parse_info): Replace "parser_state" with
11339 "expr_builder".
11340 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11341 (parser_state): New class.
11342 * parse.c (expr_builder): Rename.
11343 (expr_builder::release): Rename.
11344 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11345 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11346 (write_exp_elt_longcst, write_exp_elt_floatcst)
11347 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11348 (write_exp_string_vector, write_exp_bitstring)
11349 (write_exp_msymbol, mark_struct_expression)
11350 (write_dollar_variable)
11351 (insert_type_address_space, increase_expout_size): Replace
11352 "parser_state" with "expr_builder".
11353 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11354 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11355 "parser_state" with "expr_builder".
11356
11357 2019-04-04 Tom Tromey <tom@tromey.com>
11358
11359 * rust-exp.y: Replace "parse_language" with method call.
11360 * p-exp.y:
11361 (yylex): Replace "parse_language" with method call.
11362 * m2-exp.y:
11363 (yylex): Replace "parse_language" with method call.
11364 * go-exp.y (classify_name): Replace "parse_language" with method
11365 call.
11366 * f-exp.y (yylex): Replace "parse_language" with method call.
11367 * d-exp.y (lex_one_token): Replace "parse_language" with method
11368 call.
11369 * c-exp.y:
11370 (lex_one_token, classify_name, yylex): Replace "parse_language"
11371 with method call.
11372 * ada-exp.y (find_primitive_type, type_char)
11373 (type_system_address): Replace "parse_language" with method call.
11374
11375 2019-04-04 Tom Tromey <tom@tromey.com>
11376
11377 * rust-exp.y: Replace "parse_gdbarch" with method call.
11378 * parse.c (write_dollar_variable, insert_type_address_space):
11379 Replace "parse_gdbarch" with method call.
11380 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11381 call.
11382 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11383 call.
11384 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11385 "parse_gdbarch" with method call.
11386 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11387 with method call.
11388 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11389 "parse_gdbarch" with method call.
11390 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11391 "parse_gdbarch" with method call.
11392 * c-exp.y (parse_type, parse_number, classify_name): Replace
11393 "parse_gdbarch" with method call.
11394 * ada-lex.l: Replace "parse_gdbarch" with method call.
11395 * ada-exp.y (parse_type, find_primitive_type, type_char)
11396 (type_system_address): Replace "parse_gdbarch" with method call.
11397
11398 2019-04-04 Tom Tromey <tom@tromey.com>
11399
11400 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11401 * stap-probe.c (stap_parse_argument): Update.
11402 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11403 initial_size parameter.
11404 * rust-exp.y (rust_lex_tests): Update.
11405 * parse.c (parser_state): Update.
11406 (parse_exp_in_context): Update.
11407 * parser-defs.h (struct parser_state) <parser_state>: Remove
11408 "initial_size" parameter.
11409
11410 2019-04-04 Tom Tromey <tom@tromey.com>
11411
11412 * parser-defs.h (increase_expout_size): Don't declare.
11413 * parse.c (increase_expout_size): Now static.
11414
11415 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11416
11417 * gnu-nat.c (gnu_nat_target::wait): Fix
11418 target_waitstatus_to_string call.
11419
11420 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11421
11422 * eval.c (evaluate_subexp_standard): Handle internal functions
11423 during Fortran function call handling.
11424
11425 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11426
11427 * NEWS: Mention new internal functions.
11428 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11429 (read_base_type): Use dwarf2_init_complex_target_type.
11430 * value.c (creal_internal_fn): New function.
11431 (cimag_internal_fn): New function.
11432 (_initialize_values): Register new internal functions.
11433
11434 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11435
11436 * infrun.c (stop_all_threads): If debug_infrun, always
11437 trace the wait status after wait_one, using
11438 target_waitstatus_to_string and target_pid_to_str.
11439 (handle_inferior_event): Replace various trace of
11440 wait status kind by a single trace.
11441 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11442 wait status kind image by target_waitstatus_to_string.
11443 * target/waitstatus.c (target_waitstatus_to_string): Fix
11444 obsolete comment.
11445
11446 2019-04-01 Tom Tromey <tromey@adacore.com>
11447
11448 PR symtab/23331:
11449 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11450
11451 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11452 Pedro Alves <palves@redhat.com>
11453
11454 * top.c (quit_force): Call 'finalize_values'.
11455 * value.c (finalize_values): New function.
11456 * value.h (finalize_values): Declare.
11457
11458 2019-03-30 Eli Zaretskii <eliz@gnu.org>
11459
11460 * NEWS: Announce $_gdb_major and $_gdb_minor.
11461
11462 * top.c (init_gdb_version_vars): New function.
11463 (gdb_init): Call init_gdb_version_vars.
11464
11465 2019-03-29 Tom Tromey <tromey@adacore.com>
11466
11467 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11468 help text. Remove dead code.
11469
11470 2019-03-29 Keith Seitz <keiths@redhat.com>
11471
11472 From Siddhesh Poyarekar:
11473 * f-lang.h (f77_get_upperbound): Return LONGEST.
11474 (f77_get_lowerbound): Likewise.
11475 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11476 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11477 print them.
11478 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11479 plongest to format print it.
11480 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11481 (f77_get_upperbound): Likewise.
11482 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11483 LOWER_BOUND to LONGEST.
11484 (f77_create_arrayprint_offset_tbl): Likewise.
11485
11486 2019-03-29 Keith Seitz <keiths@redhat.com>
11487
11488 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11489 %s/pulongest for TYPE_LENGTH instead of %d in format
11490 strings.
11491 * ada-typerint.c (ada_print_type): Likewise.
11492 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11493 * compile/compile-c-support.c (generate_register_struct): Likewise.
11494 * gdbtypes.c (recursive_dump_type): Likewise.
11495 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11496 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11497 instead of %d in format strings.
11498 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11499 to std::min to ULONGEST.
11500 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11501 instead of %d in format strings.
11502 * tracepoint.c (info_scope_command): Likewise.
11503 * typeprint.c (print_offset_data::update)
11504 (print_offset_data::finish): Likewise.
11505 * xtensa-tdep.c (xtensa_store_return_value)
11506 (xtensa_push_dummy_call): Likewise.
11507
11508 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11509
11510 * windows-nat.c (display_selector): Fixed format specifications
11511 for 64-bit Cygwin.
11512
11513 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11514
11515 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11516
11517 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11518
11519 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11520 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11521 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11522 (nios2_linux_init_abi): Install it.
11523
11524 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11525
11526 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11527
11528 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11529
11530 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11531
11532 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11533 Tom Tromey <tromey@adacore.com>
11534
11535 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11536
11537 2019-03-26 Joel Brobecker <brobecker@adacore.com>
11538
11539 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11540 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11541 method to compute the bounds of range types. Also print "[evaluated]"
11542 if the bounds' values come from a dynamic evaluation.
11543
11544 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11545
11546 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11547 whitespace when pretty printing is on.
11548
11549 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11550
11551 * ppc-linux-nat.c: Add include.
11552
11553 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11554
11555 * NEWS: Mention AArch64 Pointer Authentication.
11556
11557 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11558
11559 * arm-linux-nat.c: Add include.
11560
11561 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11562
11563 * source-cache.c (source_cache::get_source_lines): Re-read
11564 fullname after calling open_source_file.
11565
11566 2019-03-25 John Baldwin <jhb@FreeBSD.org>
11567
11568 * NEWS: Mention TLS support for FreeBSD.
11569
11570 2019-03-25 Tom Tromey <tromey@adacore.com>
11571
11572 * minsyms.c (BUNCH_SIZE): Update comment.
11573 (~minimal_symbol_reader): Remove old comment.
11574 (compact_minimal_symbols): Update comment.
11575 (minimal_symbol_reader::install): Remove old comment. Update
11576 other comments.
11577
11578 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11579
11580 * s390-linux-nat.c: Add include.
11581
11582 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11583
11584 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11585 Call linux_get_hwcap.
11586 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11587 Likewise.
11588 (aarch64_linux_get_hwcap): Remove function.
11589 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11590 declaration.
11591 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11592 linux_get_hwcap.
11593 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11594 * linux-tdep.c (linux_get_hwcap): Add function.
11595 (linux_get_hwcap2): Likewise.
11596 * linux-tdep.h (linux_get_hwcap): Add declaration.
11597 (linux_get_hwcap2): Likewise.
11598 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11599 (ppc_linux_get_hwcap2): Likewise.
11600 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11601 linux_get_hwcap.
11602 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11603 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11604 (ppc_linux_nat_target::read_description): Likewise.
11605 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11606 * s390-linux-nat.c: Likewise.
11607 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11608
11609 2019-03-24 Tom Tromey <tom@tromey.com>
11610
11611 * ada-lang.c (standard_lookup): Simplify initialization.
11612 (ada_lookup_symbol_nonlocal): Simplify return.
11613 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11614 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11615 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11616 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11617 initialization.
11618 * solib.c (solib_global_lookup): Simplify.
11619 * symtab.c (null_block_symbol): Remove.
11620 (symbol_cache_lookup): Simplify returns.
11621 (lookup_language_this): Simplify returns.
11622 (lookup_symbol_aux): Simplify return.
11623 (lookup_local_symbol): Simplify returns.
11624 (lookup_global_symbol_from_objfile): Simplify return.
11625 (lookup_symbol_in_objfile_symtabs)
11626 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11627 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11628 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11629 * cp-namespace.c (cp_lookup_bare_symbol)
11630 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11631 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11632 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11633 (cp_lookup_symbol_via_imports): Simplify initialization.
11634 (find_symbol_in_baseclass): Likewise.
11635 * symtab.h (null_block_symbol): Remove.
11636 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11637 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11638 (d_lookup_symbol_module): Likewise.
11639 (find_symbol_in_baseclass): Simplify initialization.
11640
11641 2019-03-24 Tom Tromey <tom@tromey.com>
11642
11643 * expression.h: Don't include symtab.h.
11644 (struct block): Forward declare.
11645
11646 2019-03-24 Tom Tromey <tom@tromey.com>
11647
11648 * c-exp.y (typebase): Remove casts.
11649 * gdbtypes.c (lookup_unsigned_typename, )
11650 (lookup_signed_typename): Remove cast.
11651 * eval.c (parse_to_comma_and_eval): Remove cast.
11652 * parse.c (write_dollar_variable): Remove cast.
11653 * block.h (struct block) <superblock>: Now const.
11654 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11655 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11656 (map_block): Make "block" const.
11657 * symfile.h (struct quick_symbol_functions)
11658 <map_matching_symbols>: Constify block argument to "callback".
11659 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11660 const.
11661 (find_pc_sect_compunit_symtab): Make "b" const.
11662 (find_symbol_at_address): Likewise.
11663 (search_symbols): Likewise.
11664 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11665 (dw2_debug_names_lookup_symbol): Likewise.
11666 (dw2_map_matching_symbols): Update.
11667 * p-valprint.c (pascal_val_print): Remove "block".
11668 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11669 (aux_add_nonlocal_symbols): Make "block" const.
11670 (resolve_subexp): Remove cast.
11671 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11672 const.
11673 (iterate_over_file_blocks): Likewise.
11674 * f-exp.y (%union) <bval>: Remove.
11675 * coffread.c (patch_opaque_types): Make "b" const.
11676 * spu-tdep.c (spu_catch_start): Make "block" const.
11677 * c-valprint.c (print_unpacked_pointer): Remove "block".
11678 * symmisc.c (dump_symtab_1): Make "b" const.
11679 (block_depth): Make "block" const.
11680 * d-exp.y (%union) <bval>: Remove.
11681 * cp-support.h (cp_lookup_rtti_type): Update.
11682 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11683 * psymtab.c (psym_lookup_symbol): Make "block" const.
11684 (maintenance_check_psymtabs): Make "b" const.
11685 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11686 (enumerate_locals, enumerate_args): Update.
11687 * python/py-symtab.c (stpy_global_block): Make "block" const.
11688 (stpy_static_block): Likewise.
11689 * inline-frame.c (block_starting_point_at): Make "new_block"
11690 const.
11691 * block.c (find_block_in_blockvector): Make return type const.
11692 (blockvector_for_pc_sect): Make "b" const.
11693 (find_block_in_blockvector): Make "b" const.
11694
11695 2019-03-23 Tom Tromey <tom@tromey.com>
11696
11697 * varobj.c (varobj_create): Update.
11698 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11699 * printcmd.c (display_command, do_one_display): Don't reset
11700 innermost_block.
11701 * parser-defs.h (enum innermost_block_tracker_type): Move to
11702 expression.h.
11703 (innermost_block): Update comment.
11704 * parse.c (parse_exp_1): Add tracker_types parameter.
11705 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11706 tracker_types parameter. Reset innermost_block.
11707 (parse_exp_in_context): Remove.
11708 (parse_expression_for_completion): Update.
11709 * objfiles.c (~objfile): Don't reset expression_context_block or
11710 innermost_block.
11711 * expression.h (enum innermost_block_tracker_type): Move from
11712 parser-defs.h.
11713 (parse_exp_1): Add tracker_types parameter.
11714 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11715 reset innermost_block.
11716
11717 2019-03-23 Tom Tromey <tom@tromey.com>
11718
11719 * objfiles.h: Include bcache.h.
11720
11721 2019-03-23 Tom Tromey <tom@tromey.com>
11722
11723 * linespec.c (get_current_search_block): Use
11724 scoped_restore_current_language.
11725 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11726
11727 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11728 Jiong Wang <jiong.wang@arm.com>
11729
11730 * aarch64-linux-tdep.c
11731 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11732 section.
11733 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11734
11735 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11736 Jiong Wang <jiong.wang@arm.com>
11737
11738 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11739 instructions.
11740 (aarch64_analyze_prologue_test): Add PACIASP test.
11741 (aarch64_prologue_prev_register): Unmask PC value.
11742
11743 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11744 Jiong Wang <jiong.wang@arm.com>
11745
11746 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11747 (aarch64_dwarf2_prev_register): Unmask PC value.
11748 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11749 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11750 DW_CFA_AARCH64_negate_ra_state.
11751 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11752
11753 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11754 Jiong Wang <jiong.wang@arm.com>
11755
11756 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11757 registers.
11758 (aarch64_pseudo_register_name): Likewise.
11759 (aarch64_pseudo_register_type): Likewise.
11760 (aarch64_pseudo_register_reggroup_p): Likewise.
11761 (aarch64_gdbarch_init): Add pauth registers.
11762 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11763 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11764 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11765 (struct gdbarch_tdep): Add regnum for ra_state.
11766
11767 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11768 Jiong Wang <jiong.wang@arm.com>
11769
11770 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11771
11772 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11773 Jiong Wang <jiong.wang@arm.com>
11774
11775 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11776 function.
11777 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11778 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11779 (aarch64_gdbarch_init): Add puth registers.
11780 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11781 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11782 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11783
11784 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11785 Jiong Wang <jiong.wang@arm.com>
11786
11787 * aarch64-linux-nat.c
11788 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11789 * aarch64-linux-tdep.c
11790 (aarch64_linux_core_read_description): Likewise.
11791 (aarch64_linux_get_hwcap): New function.
11792 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11793 (aarch64_linux_get_hwcap): New declaration.
11794
11795 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11796 Jiong Wang <jiong.wang@arm.com>
11797
11798 * aarch64-linux-nat.c
11799 (aarch64_linux_nat_target::read_description): Add pauth param.
11800 * aarch64-linux-tdep.c
11801 (aarch64_linux_core_read_description): Likewise.
11802 * aarch64-tdep.c (struct target_desc): Add in pauth.
11803 (aarch64_read_description): Add pauth param.
11804 (aarch64_gdbarch_init): Likewise.
11805 * aarch64-tdep.h (aarch64_read_description): Likewise.
11806 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11807 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11808 * features/Makefile: Add new files.
11809 * features/aarch64-pauth.c: New file.
11810 * features/aarch64-pauth.xml: New file.
11811
11812 2019-03-20 Tom Tromey <tromey@adacore.com>
11813
11814 * infrun.c (handle_inferior_event): Rename from
11815 handle_inferior_event_1. Create a scoped_value_mark.
11816 (handle_inferior_event): Remove.
11817
11818 2019-03-19 Tom Tromey <tromey@adacore.com>
11819
11820 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11821 * infrun.h (print_stop_event): Add "displays" parameter.
11822 * infrun.c (print_stop_event): Add "displays" parameter.
11823
11824 2019-03-19 Pedro Alves <palves@redhat.com>
11825
11826 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11827 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11828 to -1. Fix TABs vs spaces.
11829 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11830 * tui/tui-out.h (tui_ui_out) Add intro comments.
11831 <m_line, m_start_of_line>: In-class initialize, and add describing
11832 comment.
11833
11834 2019-03-18 Alan Hayward <alan.hayward@arm.com>
11835
11836 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11837 variable names.
11838 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
11839
11840 2019-03-18 Pedro Alves <palves@redhat.com>
11841 Eli Zaretskii <eliz@gnu.org>
11842
11843 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
11844 m_line and m_start_of_line.
11845
11846 2019-03-18 Eli Zaretskii <eliz@gnu.org>
11847
11848 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
11849 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
11850 it returns a newline. This fixes a regression in TU mode, whereby
11851 the next line is output on the same screen line as the user input.
11852
11853 2019-03-18 Tom Tromey <tromey@adacore.com>
11854
11855 * minsyms.c (minimal_symbol_reader::install): Remove call to
11856 obstack_blank.
11857
11858 2019-03-18 Pedro Alves <palves@redhat.com>
11859
11860 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
11861 New globals.
11862 (apply_style): New, factored out from ...
11863 (apply_ansi_escape): ... this. Handle reverse video mode.
11864 (tui_set_reverse_mode): New function.
11865 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
11866 * tui/tui-winsource.c (tui_show_source_line): Use
11867 tui_set_reverse_mode instead of setting A_STANDOUT.
11868 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
11869 New setter methods.
11870
11871 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
11872
11873 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
11874 Handle tabs.
11875
11876 2019-03-18 Tom Tromey <tromey@adacore.com>
11877
11878 * ada-lang.c (empty_array): Add "high" parameter.
11879 (ada_evaluate_subexp): Update.
11880
11881 2019-03-17 Sergei Trofimovich <siarheit@google.com>
11882
11883 * unittests/string_view-selftests.c: Define
11884 _initialize_string_view_selftests unconditionally.
11885
11886 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11887
11888 PR gdb/24350
11889 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
11890
11891 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11892
11893 PR gdb/24351
11894 * windows-nat.c (display_selector): Fix format specifiers.
11895
11896 2019-03-17 Eli Zaretskii <eliz@gnu.org>
11897
11898 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
11899 tui_refill_source_window instead of tui_refresh_win, to update the
11900 current execution line. This fixes redisplay of the current line
11901 when stepping through the code with "next" or "step".
11902
11903 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11904
11905 * source-cache.c (source_cache::get_source_lines): Call
11906 find_source_lines to initialize s->nlines. This fixes vertical
11907 scrolling of TUI source window when the DOWN arrow is pressed.
11908
11909 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11910
11911 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
11912 linux-thread-db.c (_initialize_thread_db): Likewise.
11913
11914 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11915
11916 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
11917 wclrtoeol in tui_show_source_line". This reverts changes made in
11918 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11919
11920 2019-03-15 Tom Tromey <tom@tromey.com>
11921
11922 * symtab.h (struct minimal_symbol): Derive from
11923 general_symbol_info.
11924 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11925 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11926 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11927 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11928 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11929 (MSYMBOL_SEARCH_NAME): Update.
11930 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11931 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11932 * minsyms.c (minimal_symbol_reader::record_full): Update.
11933
11934 2019-03-15 Tom Tromey <tom@tromey.com>
11935
11936 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
11937
11938 2019-03-15 Tom Tromey <tom@tromey.com>
11939
11940 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
11941 unique_xmalloc_ptr.
11942 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
11943 Update.
11944 * minsyms.c (lookup_minimal_symbol_by_pc_section)
11945 (build_minimal_symbol_hash_tables)
11946 (minimal_symbol_reader::install): Update.
11947
11948 2019-03-15 Tom Tromey <tom@tromey.com>
11949
11950 * symtab.c (create_demangled_names_hash): Update.
11951 (symbol_set_names): Update.
11952 * objfiles.h (struct objfile_per_bfd_storage)
11953 <demangled_names_hash>: Now an htab_up.
11954 * objfiles.c (objfile_per_bfd_storage): Simplify.
11955
11956 2019-03-15 Tom Tromey <tom@tromey.com>
11957
11958 * objfiles.h (struct objfile_per_bfd_storage): Declare
11959 destructor.
11960 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
11961 New.
11962 (get_objfile_bfd_data): Use new. Don't initialize
11963 language_of_main.
11964 (free_objfile_per_bfd_storage): Remove.
11965 (objfile_bfd_data_free, objfile::~objfile): Use delete.
11966
11967 2019-03-15 Tom Tromey <tom@tromey.com>
11968
11969 * symfile.c (reread_symbols): Update.
11970 * objfiles.c (objfile::objfile): Update.
11971 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
11972 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
11973 comment.
11974 (minimal_symbol_reader::install): Update.
11975 (terminate_minimal_symbol_table): Remove.
11976 * jit.c (jit_object_close_impl): Update.
11977
11978 2019-03-15 Tom Tromey <tom@tromey.com>
11979
11980 * minsyms.c (minimal_symbol_reader::record_full): Remove some
11981 initializations.
11982
11983 2019-03-15 Tom Tromey <tom@tromey.com>
11984
11985 * objfiles.h (struct objfile_per_bfd_storage)
11986 <demangled_hash_languages>: Now a bitset.
11987 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
11988 (lookup_minimal_symbol): Update.
11989
11990 2019-03-15 Tom Tromey <tom@tromey.com>
11991
11992 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
11993 Don't return the symbol.
11994 * coffread.c (record_minimal_symbol): Use record_full.
11995
11996 2019-03-14 Eli Zaretskii <eliz@gnu.org>
11997
11998 The MS-Windows port of ncurses fails to switch to a color pair if
11999 one or both of the colors are the implicit default colors. This
12000 change records the default colors when TUI is initialized, and
12001 then specifies them explicitly when a color pair uses the default
12002 colors. This allows color styling in TUI mode on MS-Windows.
12003
12004 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12005 ncurses_norm_attr.
12006 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12007 colors in ncurses_norm_attr.
12008 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12009 "none", replace it with the default color recorded in
12010 ncurses_norm_attr.
12011
12012 2019-03-14 Tom Tromey <tromey@adacore.com>
12013
12014 * source-cache.h (class source_cache) <get_source_lines>: Return
12015 std::string.
12016 * source-cache.c (source_cache::extract_lines): Handle case where
12017 first_pos==npos. Return std::string.
12018 (source_cache::get_source_lines): Update.
12019
12020 2019-03-14 Tom Tromey <tromey@adacore.com>
12021
12022 * NEWS: Add item for "style sources" commands.
12023 * source-cache.c (source_cache::get_source_lines): Check
12024 source_styling.
12025 * cli/cli-style.c (source_styling): New global.
12026 (_initialize_cli_style): Add "style sources" commands.
12027 (show_style_sources): New function.
12028 * cli/cli-style.h (source_styling): Declare.
12029
12030 2019-03-14 Pedro Alves <palves@redhat.com>
12031 Tom Tromey <tromey@adacore.com>
12032
12033 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12034 * tui/tui-winsource.c (tui_refill_source_window): New function,
12035 from...
12036 (tui_horizontal_source_scroll): ... here. Move some logic.
12037 * cli/cli-style.c (set_style_enabled): Notify new observable.
12038 * tui/tui-hooks.c (tui_redisplay_source): New function.
12039 (tui_attach_detach_observers): Attach or detach
12040 tui_redisplay_source.
12041 * observable.h (source_styling_changed): New observable.
12042 * observable.c: Define source_styling_changed observable.
12043
12044 2019-03-13 Tom Tromey <tromey@adacore.com>
12045
12046 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12047 (i386_gnu_nat_target::store_registers): Update.
12048 * target-debug.h (target_debug_print_std_string): New macro.
12049 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12050 * windows-tdep.c (display_one_tib): Update.
12051 * tui/tui-stack.c (tui_make_status_line): Update.
12052 * top.c (print_inferior_quit_action): Update.
12053 * thread.c (thr_try_catch_cmd): Update.
12054 (add_thread_with_info): Update.
12055 (thread_target_id_str): Update.
12056 (thr_try_catch_cmd): Update.
12057 (thread_command): Update.
12058 (thread_find_command): Update.
12059 * record-btrace.c (record_btrace_target::info_record)
12060 (record_btrace_resume_thread, record_btrace_target::resume)
12061 (record_btrace_cancel_resume, record_btrace_step_thread)
12062 (record_btrace_target::wait, record_btrace_target::wait)
12063 (record_btrace_target::wait, record_btrace_target::stop): Update.
12064 * progspace.c (print_program_space): Update.
12065 * process-stratum-target.c
12066 (process_stratum_target::thread_address_space): Update.
12067 * linux-fork.c (linux_fork_mourn_inferior)
12068 (detach_checkpoint_command, info_checkpoints_command)
12069 (linux_fork_context): Update.
12070 (linux_fork_detach): Update.
12071 (class scoped_switch_fork_info): Update.
12072 (delete_checkpoint_command): Update.
12073 * infrun.c (follow_fork_inferior): Update.
12074 (follow_fork_inferior): Update.
12075 (proceed_after_vfork_done): Update.
12076 (handle_vfork_child_exec_or_exit): Update.
12077 (follow_exec): Update.
12078 (displaced_step_prepare_throw): Update.
12079 (displaced_step_restore): Update.
12080 (start_step_over): Update.
12081 (resume_1): Update.
12082 (clear_proceed_status_thread): Update.
12083 (proceed): Update.
12084 (print_target_wait_results): Update.
12085 (do_target_wait): Update.
12086 (context_switch): Update.
12087 (stop_all_threads): Update.
12088 (restart_threads): Update.
12089 (finish_step_over): Update.
12090 (handle_signal_stop): Update.
12091 (switch_back_to_stepped_thread): Update.
12092 (keep_going_pass_signal): Update.
12093 (print_exited_reason): Update.
12094 (normal_stop): Update.
12095 * inferior.c (inferior_pid_to_str): Change return type.
12096 (print_selected_inferior): Update.
12097 (add_inferior): Update.
12098 (detach_inferior): Update.
12099 * dummy-frame.c (fprint_dummy_frames): Update.
12100 * dcache.c (dcache_info_1): Update.
12101 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12102 (btrace_fetch, btrace_clear): Update.
12103 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12104 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12105 type.
12106 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12107 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12108 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12109 * gdbarch.c, gdbarch.h: Rebuild.
12110 * gdbarch.sh (core_pid_to_str): Change return type.
12111 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12112 return type.
12113 (windows_nat_target::pid_to_str): Change return type.
12114 (windows_delete_thread): Update.
12115 (windows_nat_target::attach): Update.
12116 (windows_nat_target::files_info): Update.
12117 * target-delegates.c: Rebuild.
12118 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12119 return type.
12120 (sol_thread_target::pid_to_str): Change return type.
12121 * remote.c (class remote_target) <pid_to_str>: Change return
12122 type.
12123 (remote_target::pid_to_str): Change return type.
12124 (extended_remote_target::attach, remote_target::remote_stop_ns)
12125 (remote_target::remote_notif_remove_queued_reply)
12126 (remote_target::push_stop_reply, remote_target::disable_btrace):
12127 Update.
12128 (extended_remote_target::attach): Update.
12129 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12130 type.
12131 (gdbsim_target::pid_to_str): Change return type.
12132 * ravenscar-thread.c (struct ravenscar_thread_target)
12133 <pid_to_str>: Change return type.
12134 (ravenscar_thread_target::pid_to_str): Change return type.
12135 * procfs.c (class procfs_target) <pid_to_str>: Change return
12136 type.
12137 (procfs_target::pid_to_str): Change return type.
12138 (procfs_target::attach): Update.
12139 (procfs_target::detach): Update.
12140 (procfs_target::fetch_registers): Update.
12141 (procfs_target::store_registers): Update.
12142 (procfs_target::wait): Update.
12143 (procfs_target::files_info): Update.
12144 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12145 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12146 return type.
12147 (nto_procfs_target::pid_to_str): Change return type.
12148 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12149 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12150 return type.
12151 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12152 (exit_lwp): Update.
12153 (attach_proc_task_lwp_callback, get_detach_signal)
12154 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12155 (linux_nat_target::resume, wait_lwp, stop_callback)
12156 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12157 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12158 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12159 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12160 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12161 type.
12162 (inf_ptrace_target::attach): Update.
12163 (inf_ptrace_target::files_info): Update.
12164 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12165 type.
12166 (go32_nat_target::pid_to_str): Change return type.
12167 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12168 (gnu_nat_target::wait): Update.
12169 (gnu_nat_target::wait): Update.
12170 (gnu_nat_target::resume): Update.
12171 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12172 (fbsd_nat_target::wait): Update.
12173 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12174 type.
12175 (darwin_nat_target::attach): Update.
12176 * corelow.c (class core_target) <pid_to_str>: Change return type.
12177 (core_target::pid_to_str): Change return type.
12178 * target.c (normal_pid_to_str): Change return type.
12179 (default_pid_to_str): Likewise.
12180 (target_pid_to_str): Change return type.
12181 (target_translate_tls_address): Update.
12182 (target_announce_detach): Update.
12183 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12184 return type.
12185 (bsd_uthread_target::pid_to_str): Change return type.
12186 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12187 type.
12188 (bsd_kvm_target::pid_to_str): Change return type.
12189 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12190 return type.
12191 (aix_thread_target::pid_to_str): Change return type.
12192 * target.h (struct target_ops) <pid_to_str>: Change return type.
12193 (target_pid_to_str, normal_pid_to_str): Likewise.
12194 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12195 type.
12196 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12197 type.
12198 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12199 return type.
12200 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12201 type.
12202 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12203 type.
12204 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12205 return type.
12206
12207 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12208
12209 * NEWS: Mention that the new default MI version is 3. Mention
12210 changes to the output of commands and events that deal with
12211 multi-location breakpoints.
12212 * breakpoint.c: Include "mi/mi-out.h".
12213 (print_one_breakpoint): Change output syntax if using MI version
12214 >= 3.
12215 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12216 New.
12217 (mi_multi_location_breakpoint_output_fixed): New.
12218 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12219 (mi_cmd_fix_multi_location_breakpoint_output): New.
12220 (mi_multi_location_breakpoint_output_fixed): New.
12221 * mi/mi-cmds.c (mi_cmds): Register command
12222 -fix-multi-location-breakpoint-output.
12223 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12224 interpreter "mi".
12225
12226 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12227
12228 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12229 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12230 instantiate mi_ui_out based on interpreter name.
12231 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12232 * mi/mi-main.c (mi_load_progress): Likewise.
12233
12234 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12235
12236 * NEWS: Combine separate "New targets" sections for 8.3.
12237
12238 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12239
12240 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12241 (ppcfbsd_init_abi): Install gdbarch
12242 "fetch_tls_load_module_address" and "get_thread_local_address"
12243 methods.
12244
12245 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12246
12247 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12248 (riscv_fbsd_init_abi): Install gdbarch
12249 "fetch_tls_load_module_address" and "get_thread_local_address"
12250 methods.
12251
12252 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12253
12254 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12255 (i386fbsd_init_abi): Install gdbarch
12256 "fetch_tls_load_module_address" and "get_thread_local_address"
12257 methods.
12258
12259 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12260
12261 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12262 (amd64fbsd_init_abi): Install gdbarch
12263 "fetch_tls_load_module_address" and "get_thread_local_address"
12264 methods.
12265
12266 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12267
12268 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12269 (struct fbsd_pspace_data): New type.
12270 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12271 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12272 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12273 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12274 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12275
12276 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12277
12278 * gdbtypes.c (lookup_struct_elt): New function.
12279 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12280 * gdbtypes.h (struct struct_elt): New type.
12281 (lookup_struct_elt): New prototype.
12282
12283 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12284
12285 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12286 remove disabled code block.
12287
12288 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12289
12290 * gdbarch.sh (get_thread_local_address): New method.
12291 * gdbarch.h, gdbarch.c: Regenerate.
12292 * target.c (target_translate_tls_address): Use
12293 gdbarch_get_thread_local_address if present instead of
12294 target::get_thread_local_address.
12295
12296 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12297
12298 * target.h (target::get_thread_local_address): Update comment.
12299
12300 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12301
12302 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12303 objfile->separate_debug_objfile_backlink if not NULL.
12304
12305 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12306
12307 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12308 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12309 (amd64bsd_store_inferior_registers): Likewise.
12310 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12311 Enable segment base registers.
12312 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12313 PT_GETFSBASE and PT_GETGSBASE.
12314 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12315 PT_SETGSBASE.
12316 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12317 segment base registers.
12318 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12319
12320 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12321
12322 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12323 Update calls to i386_target_description to add 'segments'
12324 parameter.
12325 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12326 add segment base registers.
12327 * arch/i386.c (i386_create_target_description): Add 'segments'
12328 parameter to enable segment base registers.
12329 * arch/i386.h (i386_create_target_description): Likewise.
12330 * features/i386/32bit-segments.xml: New file.
12331 * features/i386/32bit-segments.c: Generate.
12332 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12333 call to i386_target_description to add 'segments' parameter.
12334 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12335 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12336 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12337 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12338 if feature is present.
12339 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12340 Add 'segments' parameter to call to i386_target_description.
12341 (i386_target_description): Add 'segments' parameter to enable
12342 segment base registers.
12343 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12344 to call to i386_target_description.
12345 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12346 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12347 Define I386_NUM_REGS.
12348 (i386_target_description): Add 'segments' parameter to enable
12349 segment base registers.
12350
12351 2019-03-12 Eli Zaretskii <eliz@gnu.org>
12352
12353 PR/24325
12354 * source-cache.c: #undef open and close, to avoid unresolved
12355 externals during linking.
12356
12357 2019-03-12 Tom Tromey <tromey@adacore.com>
12358
12359 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12360 const. Add initializers.
12361 (_initialize_remote): Don't initialize ptid globals.
12362
12363 2019-03-12 Pedro Alves <palves@redhat.com>
12364
12365 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12366
12367 2019-03-12 Pedro Alves <palves@redhat.com>
12368
12369 * cp-name-parser.y (main): Remove unused 'len' variable.
12370
12371 2019-03-12 Tom Tromey <tromey@adacore.com>
12372
12373 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12374 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12375
12376 2019-03-12 Tom Tromey <tromey@adacore.com>
12377
12378 * linux-nat.c (iterate_over_lwps): Update.
12379 (stop_callback): Remove parameter.
12380 (stop_wait_callback, detach_callback, resume_set_callback)
12381 (select_singlestep_lwp_callback, set_ignore_sigint)
12382 (status_callback, resumed_callback, resume_clear_callback)
12383 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12384 data parameter.
12385 (linux_nat_target::detach, linux_nat_target::resume)
12386 (linux_stop_and_wait_all_lwps, select_event_lwp)
12387 (linux_nat_filter_event, linux_nat_wait_1)
12388 (linux_nat_target::kill, linux_nat_target::stop)
12389 (linux_nat_target::stop): Update.
12390 (linux_nat_resume_callback): Change type.
12391 (resume_stopped_resumed_lwps, count_events_callback)
12392 (select_event_lwp_callback): Likewise.
12393 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12394 * arm-linux-nat.c (struct update_registers_data): Remove.
12395 (update_registers_callback): Change type.
12396 (arm_linux_insert_hw_breakpoint1): Update.
12397 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12398 parameter.
12399 (x86_linux_dr_set_addr): Update.
12400 (x86_linux_dr_set_control): Update.
12401 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12402 (iterate_over_lwps): Use gdb::function_view.
12403 * nat/aarch64-linux-hw-point.c (struct
12404 aarch64_dr_update_callback_param): Remove.
12405 (debug_reg_change_callback): Change type.
12406 (aarch64_notify_debug_reg_change): Update.
12407 * s390-linux-nat.c (s390_refresh_per_info): Update.
12408
12409 2019-03-11 Tom Tromey <tromey@adacore.com>
12410
12411 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12412 redundant assignment to "this_cu".
12413
12414 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12415
12416 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12417
12418 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12419
12420 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12421 from...
12422 (rank_one_type): ... this.
12423
12424 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12425
12426 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12427 from...
12428 (rank_one_type): ... this.
12429
12430 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12431
12432 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12433 from...
12434 (rank_one_type): ... this.
12435
12436 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12437
12438 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12439 from...
12440 (rank_one_type): ... this.
12441
12442 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12443
12444 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12445 from...
12446 (rank_one_type): ... this.
12447
12448 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12449
12450 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12451 from...
12452 (rank_one_type): ... this.
12453
12454 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12455
12456 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12457 from...
12458 (rank_one_type): ... this.
12459
12460 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12461
12462 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12463 from...
12464 (rank_one_type): ... this.
12465
12466 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12467
12468 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12469 from...
12470 (rank_one_type): ... this.
12471
12472 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12473
12474 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12475 from...
12476 (rank_one_type): ... this.
12477
12478 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12479
12480 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12481 from...
12482 (rank_one_type): ... this.
12483
12484 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12485
12486 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12487 from...
12488 (rank_one_type): ... this.
12489
12490 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12491
12492 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12493 inferior-events' shows the example events.
12494
12495 2019-03-08 Eli Zaretskii <eliz@gnu.org>
12496
12497 Support styling on native MS-Windows console
12498
12499 PR/24315
12500 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12501 on MS-Windows if $TERM is not defined.
12502
12503 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12504
12505 * posix-hdep.c (gdb_console_fputs):
12506 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12507 functions.
12508 * ui-file.h (gdb_console_fputs): Add prototype.
12509
12510 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12511 back to fputs only if the former returns zero.
12512
12513 2019-03-07 Tom Tromey <tom@tromey.com>
12514
12515 * symmisc.c (print_symbol_bcache_statistics): Update.
12516 (print_objfile_statistics): Update.
12517 * symfile.c (allocate_symtab): Update.
12518 * stabsread.c: Don't include bcache.h.
12519 * psymtab.h (struct psymbol_bcache): Don't declare.
12520 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12521 (psymbol_bcache_init, psymbol_bcache_free)
12522 (psymbol_bcache_get_bcache): Don't declare.
12523 * psymtab.c (struct psymbol_bcache): Remove.
12524 (psymtab_storage::psymtab_storage): Update.
12525 (psymtab_storage::~psymtab_storage): Update.
12526 (psymbol_bcache_init, psymbol_bcache_free)
12527 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12528 (add_psymbol_to_bcache): Update.
12529 (allocate_psymtab): Update.
12530 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12531 macro_cache>: No longer pointers.
12532 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12533 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12534 * macrotab.c (macro_bcache): Update.
12535 * macroexp.c: Don't include bcache.h.
12536 * gdbtypes.c (check_types_worklist): Update.
12537 (types_deeply_equal): Remove TRY/CATCH. Update.
12538 * elfread.c (elf_symtab_read): Update.
12539 * dwarf2read.c: Don't include bcache.h.
12540 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12541 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12542 (print_bcache_statistics, bcache_memory_used): Don't declare.
12543 (struct bcache): Move from bcache.c. Add constructor, destructor,
12544 methods. Rename all data members.
12545 * bcache.c (struct bcache): Move to bcache.h.
12546 (bcache::expand_hash_table): Rename from expand_hash_table.
12547 (bcache): Remove.
12548 (bcache::insert): Rename from bcache_full.
12549 (bcache::compare): Rename from bcache_compare.
12550 (bcache_xmalloc): Remove.
12551 (bcache::~bcache): Rename from bcache_xfree.
12552 (bcache::print_statistics): Rename from print_bcache_statistics.
12553 (bcache::memory_used): Rename from bcache_memory_used.
12554
12555 2019-03-07 Pedro Alves <palves@redhat.com>
12556
12557 * infrun.c (normal_stop): Also check for
12558 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12559
12560 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12561
12562 * f-lang.c (value_from_host_double): Moved to...
12563 * value.c (value_from_host_double): ...here.
12564 * value.h (value_from_host_double): Declare.
12565 * guile/scm-math.c (vlscm_convert_typed_number): Use
12566 value_from_host_double.
12567 (vlscm_convert_number): Likewise.
12568 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12569 * python/py-value.c (convert_value_from_python): Likewise.
12570
12571 2019-03-06 Tom Tromey <tom@tromey.com>
12572
12573 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12574
12575 2019-03-06 Tom Tromey <tom@tromey.com>
12576
12577 * utils.h (free_current_contents): Don't declare.
12578 * utils.c (free_current_contents): Remove.
12579
12580 2019-03-06 Tom Tromey <tom@tromey.com>
12581
12582 * top.c (quit_force): Update.
12583 * main.c (captured_command_loop): Update.
12584 * common/new-op.c (operator new): Update.
12585 * common/common-exceptions.c (struct catcher)
12586 <save_cleanup_chain>: Remove member.
12587 (exceptions_state_mc_init): Update.
12588 (exception_try_scope_entry): Return nullptr.
12589 (exception_try_scope_exit, exception_rethrow)
12590 (throw_exception_sjlj, throw_exception_cxx): Update.
12591 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12592 (all_cleanups, do_cleanups, discard_cleanups)
12593 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12594 (restore_cleanups, restore_final_cleanups): Don't declare.
12595 (do_final_cleanups): Remove parameter.
12596 * common/cleanups.c (cleanup_chain, make_cleanup)
12597 (make_cleanup_dtor, all_cleanups, do_cleanups)
12598 (discard_my_cleanups, discard_cleanups)
12599 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12600 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12601 (null_cleanup): Remove.
12602 (do_final_cleanups): Remove parameter.
12603
12604 2019-03-06 Tom Tromey <tom@tromey.com>
12605
12606 * remote.c (remote_target::remote_parse_stop_reply): Use
12607 unique_xmalloc_ptr.
12608
12609 2019-03-06 Tom Tromey <tom@tromey.com>
12610
12611 * stabsread.c (struct stabs_field_info): Rename from field_info.
12612 <list, fnlist>: Add initializers.
12613 <obstack>: New member.
12614 (read_member_functions, read_struct_fields, read_baseclasses):
12615 Allocate on obstack. Don't use cleanups.
12616 (read_one_struct_field, read_member_functions, read_struct_fields)
12617 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12618 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12619 (read_struct_type): Update.
12620
12621 2019-03-06 Tom Tromey <tom@tromey.com>
12622
12623 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12624 * common/filestuff.h (make_cleanup_close): Don't declare.
12625 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12626 Remove.
12627
12628 2019-03-06 Tom Tromey <tom@tromey.com>
12629
12630 * solib-aix.c: Use make_scope_exit.
12631
12632 2019-03-06 Tom Tromey <tom@tromey.com>
12633
12634 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12635 Use make_scope_exit.
12636
12637 2019-03-06 Tom Tromey <tom@tromey.com>
12638
12639 * solib-svr4.c (disable_probes_interface): Remove parameter.
12640 (svr4_handle_solib_event): Use make_scope_exit.
12641
12642 2019-03-06 Tom Tromey <tom@tromey.com>
12643
12644 * remote.c (struct stop_reply_deleter): Remove.
12645 (stop_reply_up): Update.
12646 (struct stop_reply): Derive from notif_event. Don't typedef.
12647 <regcache>: Now a std::vector.
12648 (stop_reply_xfree): Remove.
12649 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12650 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12651 (remote_target::discard_pending_stop_replies): Use delete.
12652 (remote_target::remote_parse_stop_reply): Update.
12653 (remote_target::process_stop_reply): Update.
12654 * remote-notif.h (struct notif_event): Add virtual destructor.
12655 Remove "dtr" member.
12656 (struct notif_client) <alloc_event>: Return a unique_ptr.
12657 (notif_event_xfree): Don't declare.
12658 (notif_event_up): New typedef.
12659 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12660 (notif_event_xfree, do_notif_event_xfree): Remove.
12661 (remote_notif_state_xfree): Update.
12662
12663 2019-03-06 Tom Tromey <tom@tromey.com>
12664
12665 * infrun.c (displaced_step_clear_cleanup): Now a
12666 forward_scope_exit type.
12667 (displaced_step_prepare_throw): Update.
12668 (displaced_step_fixup): Update.
12669
12670 2019-03-06 Tom Tromey <tom@tromey.com>
12671
12672 * inferior.h (class inferior): Update comment.
12673 * gdbthread.h (class thread_info): Update comment.
12674
12675 2019-03-06 Joel Brobecker <brobecker@adacore.com>
12676 Tom Tromey <tom@tromey.com>
12677
12678 * stabsread.h (struct stab_section_list): Remove.
12679 (coffstab_build_psymtabs): Update.
12680 * dbxread.c (symbuf_sections): Now a std::vector.
12681 (sect_idx): New global.
12682 (fill_symbuf): Update.
12683 (coffstab_build_psymtabs): Change type of stabsects parameter.
12684 Update.
12685 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12686 std::vector.
12687 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12688 (coff_locate_sections): Update.
12689 (coff_symfile_read): Remove cleanups. Update.
12690 (init_stringtab): Add storage parameter.
12691 (free_stringtab, free_stringtab_cleanup): Remove.
12692 (init_lineno): Add storage parameter.
12693 (free_linetab, free_linetab_cleanup): Remove.
12694
12695 2019-03-06 Pedro Alves <palves@redhat.com>
12696
12697 * linux-fork.c (fork_info::clobber_regs): Delete.
12698 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12699 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12700 comment. Adjust.
12701 (scoped_switch_fork_info::scoped_switch_fork_info)
12702 (checkpoint_command, linux_fork_context): Adjust
12703 fork_save_infrun_state calls.
12704
12705 2019-03-06 Pedro Alves <palves@redhat.com>
12706
12707 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12708 (inf_has_multiple_threads): Return 'bool' and rewrite using
12709 inferior_info::threads().
12710
12711 2019-03-06 Pedro Alves <palves@redhat.com>
12712
12713 * linux-fork.c: Include <list>.
12714 (fork_list): Now a std::list instance.
12715 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12716 (forks_exist_p, find_last_fork): Adjust.
12717 (new_fork): Delete.
12718 (one_fork_p): New.
12719 (add_fork): Adjust.
12720 (free_fork): Delete, folded into fork_info::~fork_info().
12721 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12722 Adjust.
12723 (init_fork_list): Delete.
12724 (linux_fork_killall, linux_fork_mourn_inferior)
12725 (linux_fork_detach, info_checkpoints_command): Adjust.
12726 (_initialize_linux_fork): No longer call init_fork_list.
12727
12728 2019-03-06 Pedro Alves <palves@redhat.com>
12729
12730 * linux-fork.c (new_fork): New, split out of ...
12731 (add_fork): ... this. Return void. Move "first fork" special
12732 case from here, to ...
12733 (checkpoint_command): ... here.
12734 * linux-linux.h (add_fork): Return void.
12735
12736 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12737
12738 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12739
12740 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12741 Chris January <chris.january@arm.com>
12742 David Lecomber <david.lecomber@arm.com>
12743
12744 * f-exp.y: New token, UNOP_INTRINSIC.
12745 (exp): New pattern using UNOP_INTRINSIC token.
12746 (f77_keywords): Add 'abs' keyword.
12747 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12748 (value_from_host_double): New function.
12749 (evaluate_subexp_f): Support UNOP_ABS.
12750
12751 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12752
12753 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12754 types.
12755
12756 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12757
12758 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12759 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12760 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12761
12762 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12763
12764 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12765
12766 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12767 Chris January <chris.january@arm.com>
12768
12769 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12770 * f-exp.y: Define 'KIND' token.
12771 (exp): New pattern for KIND expressions.
12772 (ptype): Handle types with a kind extension.
12773 (direct_abs_decl): Extend to spot kind extensions.
12774 (f77_keywords): Add 'kind' to the list.
12775 (push_kind_type): New function.
12776 (convert_to_kind_type): New function.
12777 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12778 * parse.c (operator_length_standard): Likewise.
12779 * parser-defs.h (enum type_pieces): Add tp_kind.
12780 * std-operator.def: Add UNOP_KIND.
12781
12782 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12783
12784 * f-exp.y (f_parse): Set yydebug.
12785
12786 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12787
12788 * f-lang.c (evaluate_subexp_f): New function.
12789 (exp_descriptor_f): New global.
12790 (f_language_defn): Use exp_descriptor_f instead of
12791 exp_descriptor_standard.
12792
12793 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12794
12795 * f-exp.y (struct token): Add comments.
12796 (dot_ops): Remove uppercase versions and the end marker.
12797 (f77_keywords): Likewise.
12798 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12799 entries in the dot_ops array are case insensitive, and use
12800 strncasecmp to compare strings. Also some whitespace cleanup in
12801 this area. Similar for the f77_keywords array, except entries in
12802 this list might be case sensitive.
12803
12804 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12805
12806 * f-exp.y (struct f77_boolean_val): Add comments.
12807 (boolean_values): Remove uppercase versions, and end marker.
12808 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12809 and use strncasecmp to achieve case insensitivity. Additionally,
12810 perform whitespace cleanup around this code.
12811
12812 2019-03-06 Tom Tromey <tromey@adacore.com>
12813
12814 * remote-sim.c (gdbsim_target_open): Use result of
12815 gdb_argv::release.
12816
12817 2019-03-06 Richard Bunt <richard.bunt@arm.com>
12818 Dirk Schubert <dirk.schubert@arm.com>
12819 Chris January <chris.january@arm.com>
12820
12821 * eval.c (evaluate_subexp_standard): Call Fortran argument
12822 wrapping logic.
12823 * f-lang.c (struct value): A value which can be passed into a
12824 Fortran function call.
12825 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12826 where appropriate.
12827 (struct type): Value ready for a Fortran function call.
12828 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12829 is needed.
12830 * f-lang.h (fortran_argument_convert): Declaration.
12831 (fortran_preserve_arg_pointer): Declaration.
12832 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12833
12834 2019-03-05 Tom Tromey <tromey@adacore.com>
12835
12836 * python/py-prettyprint.c (print_string_repr): Remove #if.
12837 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
12838
12839 2019-03-05 Tom Tromey <tromey@adacore.com>
12840
12841 * target.c (the_dummy_target): Move later. Change type to
12842 "dummy_target".
12843 (initialize_targets): Don't initialize the_dummy_target.
12844
12845 2019-03-05 Tom Tromey <tromey@adacore.com>
12846
12847 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
12848 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
12849
12850 2019-03-05 Tom Tromey <tromey@adacore.com>
12851
12852 * windows-nat.c (windows_nat_target::attach)
12853 (windows_nat_target::detach): Don't call gdb_flush.
12854 * valprint.c (generic_val_print, val_print, val_print_string):
12855 Don't call gdb_flush.
12856 * utils.c (defaulted_query): Don't call gdb_flush.
12857 * typeprint.c (print_type_scalar): Don't call gdb_flush.
12858 * target.c (target_announce_detach): Don't call gdb_flush.
12859 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
12860 * remote.c (extended_remote_target::attach): Don't call
12861 gdb_flush.
12862 * procfs.c (procfs_target::detach): Don't call gdb_flush.
12863 * printcmd.c (do_examine): Don't call gdb_flush.
12864 (info_display_command): Don't call gdb_flush.
12865 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
12866 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
12867 * memattr.c (info_mem_command): Don't call gdb_flush.
12868 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
12869 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
12870 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
12871 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
12872 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
12873 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
12874 (gnu_nat_target::detach): Don't call gdb_flush.
12875 * f-valprint.c (f_val_print): Don't call gdb_flush.
12876 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
12877 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
12878 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
12879 gdb_flush.
12880 * c-valprint.c (c_val_print): Don't call gdb_flush.
12881 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
12882
12883 2019-03-05 Tom Tromey <tromey@adacore.com>
12884
12885 * varobj.c (update_dynamic_varobj_children): Update.
12886 (install_default_visualizer): Use reset, not release.
12887 * value.c (set_internalvar): Update.
12888 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
12889 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
12890 ATTRIBUTE_UNUSED_RESULT.
12891
12892 2019-03-05 Tom Tromey <tromey@adacore.com>
12893
12894 * remote.c (class scoped_remote_fd) <release>: Add
12895 ATTRIBUTE_UNUSED_RESULT.
12896
12897 2019-03-05 Tom Tromey <tromey@adacore.com>
12898
12899 * macroexp.c (struct macro_buffer) <release>: Add
12900 ATTRIBUTE_UNUSED_RESULT.
12901
12902 2019-03-05 Tom Tromey <tromey@adacore.com>
12903
12904 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
12905 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
12906 ATTRIBUTE_UNUSED_RESULT.
12907
12908 2019-03-05 Tom Tromey <tromey@adacore.com>
12909
12910 * common/scoped_fd.h (class scoped_fd) <release>: Add
12911 ATTRIBUTE_UNUSED_RESULT.
12912
12913 2019-03-05 Tom Tromey <tromey@adacore.com>
12914
12915 * parser-defs.h (struct parser_state) <release>: Add
12916 ATTRIBUTE_UNUSED_RESULT.
12917
12918 2019-03-05 Tom Tromey <tromey@adacore.com>
12919
12920 * utils.h (class gdb_argv) <release>: Add
12921 ATTRIBUTE_UNUSED_RESULT.
12922 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12923
12924 2019-03-02 Eli Zaretskii <eliz@gnu.org>
12925
12926 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12927 for-loop range, to avoid compiler warnings.
12928
12929 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12930 avoid compiler warnings about unused variables.
12931
12932 * NEWS: Mention end of support for native debugging on MS-Windows
12933 before XP.
12934
12935 PR gdb/24292
12936 * common/netstuff.c:
12937 * gdbserver/gdbreplay.c
12938 * gdbserver/remote-utils.c:
12939 * ser-tcp.c:
12940 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
12941 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
12942 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
12943 'getaddrinfo' and 'freeaddrinfo' were not available before
12944 Windows XP, and mingw.org's MinGW headers by default define
12945 _WIN32_WINNT to 0x500.
12946
12947 2019-03-01 Gary Benson <gbenson@redhat.com>
12948
12949 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
12950
12951 2019-02-28 Brian Vandenberg <phantall@gmail.com>
12952 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12953
12954 PR gdb/8527
12955 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
12956 set_sigint_trap, clear_sigint_trap.
12957
12958 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12959
12960 * target.c (target_detach): Clear the regcache and the
12961 frame cache.
12962
12963 2019-02-27 Pedro Alves <palves@redhat.com>
12964
12965 * utils.c (set_screen_size): When we cap the height/width sizes,
12966 tweak the corresponding command variable to show "unlimited":
12967
12968 2019-02-27 Saagar Jha <saagar@saagarjha.com>
12969 Pedro Alves <palves@redhat.com>
12970
12971 * utils.c (set_screen_size): Reduce "infinite" rows and columns
12972 before calling rl_set_screen_size.
12973
12974 2019-02-27 Tom Tromey <tromey@adacore.com>
12975
12976 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
12977 define.
12978 * python/py-value.c: Remove Python 2.4 workaround.
12979 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
12980 workaround.
12981 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
12982 Python 2.4 workaround.
12983 * python/python-internal.h: Remove Python 2.4 comment.
12984 (Py_ssize_t): Don't define.
12985 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
12986 (gdb_Py_DECREF): Remove Python 2.4 workaround.
12987 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
12988 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
12989 * python/python.c (do_start_initialization): Remove Python 2.4
12990 workaround.
12991 * python/py-prettyprint.c (class dummy_python_frame): Remove.
12992 (print_children): Remove Python 2.4 workaround.
12993 * python/py-inferior.c (buffer_procs): Remove Python 2.4
12994 workaround.
12995 (CHARBUFFERPROC_NAME): Remove.
12996 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
12997 Python 2.4 workaround.
12998
12999 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13000
13001 * NEWS: Note minimum Python version.
13002
13003 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13004
13005 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13006 code from these functions. Remove corresponding ifdefs. Use
13007 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13008 Remove gotos and target of gotos.
13009 (infpy_search_memory): Likewise.
13010
13011 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13012
13013 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13014 (hppa_gdbarch_init): Don't register deleted functions with
13015 gdbarch.
13016
13017 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13018
13019 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13020 (h8300_unwind_sp): Delete.
13021 (h8300_dummy_id): Delete.
13022 (h8300_gdbarch_init): Don't register deleted functions with
13023 gdbarch.
13024
13025 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13026
13027 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13028 (ft32_unwind_pc): Delete.
13029 (ft32_unwind_sp): Delete.
13030 (ft32_gdbarch_init): Don't register deleted functions with
13031 gdbarch.
13032
13033 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13034
13035 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13036 (frv_unwind_pc): Delete.
13037 (frv_unwind_sp): Delete.
13038 (frv_gdbarch_init): Don't register deleted functions with
13039 gdbarch.
13040
13041 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13042
13043 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13044 (riscv_unwind_pc): Delete.
13045 (riscv_unwind_sp): Delete.
13046 (riscv_gdbarch_init): Don't register deleted functions with
13047 gdbarch.
13048
13049 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13050
13051 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13052 (csky_unwind_pc): Delete.
13053 (csky_unwind_sp): Delete.
13054 (csky_gdbarch_init): Don't register deleted functions with
13055 gdbarch.
13056
13057 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13058
13059 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13060 (cris_unwind_pc): Delete.
13061 (cris_unwind_sp): Delete.
13062 (cris_gdbarch_init): Don't register deleted functions with
13063 gdbarch.
13064
13065 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13066
13067 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13068 (bfin_unwind_pc): Delete.
13069 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13070
13071 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13072
13073 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13074 (arm_unwind_pc): Delete.
13075 (arm_unwind_sp): Delete.
13076 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13077
13078 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13079
13080 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13081 (arc_unwind_pc): Delete.
13082 (arc_unwind_sp): Delete.
13083 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13084
13085 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13086
13087 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13088 (alpha_unwind_pc): Delete.
13089 (alpha_gdbarch_init): Don't register deleted functions with
13090 gdbarch.
13091
13092 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13093
13094 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13095 (aarch64_unwind_pc): Delete.
13096 (aarch64_unwind_sp): Delete.
13097 (aarch64_gdbarch_init): Don't register deleted functions with
13098 gdbarch.
13099
13100 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13101
13102 * gdbtypes.c (type_align): Don't consider static members when
13103 computing structure alignment.
13104
13105 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13106
13107 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13108 return 0 for other types.
13109 * arch-utils.c (default_type_align): Always return 0.
13110 * gdbarch.h: Regenerate.
13111 * gdbarch.sh (type_align): Extend comment.
13112 * gdbtypes.c (type_align): Add additional comments, always call
13113 gdbarch_type_align before applying the default rules.
13114 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13115 generic code will then apply a suitable default.
13116 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13117 types, return 0 for other types.
13118
13119 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13120
13121 * NEWS: Create a new section for the next release branch.
13122 Rename the section of the current branch, now that it has
13123 been cut.
13124
13125 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13126
13127 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13128 * version.in: Bump version to 8.3.50.DATE-git.
13129
13130 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13131
13132 * aix-thread.c (ptid_cmp): Remove unused variable.
13133 (get_signaled_thread): Likewise.
13134 (store_regs_user_thread): Likewise.
13135 (store_regs_kernel_thread): Likewise.
13136 (fetch_regs_kernel_thread): Remove shadowed variable.
13137
13138 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13139
13140 * features/riscv/32bit-cpu.xml: Add register numbers.
13141 * features/riscv/32bit-fpu.c: Regenerate.
13142 * features/riscv/32bit-fpu.xml: Add register numbers.
13143 * features/riscv/64bit-cpu.xml: Add register numbers.
13144 * features/riscv/64bit-fpu.c: Regenerate.
13145 * features/riscv/64bit-fpu.xml: Add register numbers.
13146
13147 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13148
13149 * NEWS: Mention two argument form of gdb.Value constructor.
13150 * python/py-value.c (convert_buffer_and_type_to_value): New
13151 function.
13152 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13153 Add support for handling an optional second argument. Call
13154 convert_buffer_and_type_to_value as appropriate.
13155 * python/python-internal.h (Py_buffer_deleter): New struct.
13156 (Py_buffer_up): New typedef.
13157
13158 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13159
13160 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13161 instead of releasing ownership.
13162
13163 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13164
13165 * dwarf2read.c (open_and_init_dwp_file): Call
13166 elf_numsections instead of bfd_count_sections to initialize
13167 dwp_file->num_sections.
13168
13169 2019-02-25 Tom Tromey <tromey@adacore.com>
13170
13171 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13172
13173 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13174
13175 * gcore.in: Add '--readnever' option when invoking GDB.
13176
13177 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13178
13179 * MAINTAINERS: Update my email address.
13180
13181 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13182
13183 * build-id.c (build_id_to_debug_bfd_1): New function.
13184 (build_id_to_debug_bfd): Look for separate debug file in
13185 sysroot.
13186
13187 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13188
13189 * gdbarch.sh: Update the copyright year range that is placed into
13190 generated files.
13191
13192 2019-02-22 Keith Seitz <keiths@redhat.com>
13193
13194 PR symtab/23853
13195 * linespec.c (create_sals_line_offset): Search for the default
13196 symtab's filename instead of its fullname.
13197
13198 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13199
13200 * NEWS: Update style defaults.
13201
13202 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13203
13204 * main.c (captured_main_1): Disable styling in batch mode.
13205
13206 2019-02-20 Tom Tromey <tom@tromey.com>
13207
13208 * symtab.c (symtab_symbol_info): Fix typos.
13209
13210 2019-02-20 Tom Tromey <tromey@adacore.com>
13211
13212 * findcmd.c (_initialize_mem_search): Use upper case for
13213 metasyntactic variables.
13214
13215 2019-02-20 Alan Hayward <alan.hayward@arm.com>
13216
13217 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13218 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13219
13220 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13221
13222 * top.h (source_file_name): Change to std::string.
13223 * top.c (source_file_name): Likewise.
13224 (command_line_input): Adjust.
13225 * cli/cli-script.c (script_from_file): Adjust.
13226
13227 2019-02-19 Tom Tromey <tromey@adacore.com>
13228
13229 * ravenscar-thread.c
13230 (ravenscar_thread_target::update_thread_list): Don't call
13231 ada_build_task_list.
13232 * ada-lang.h (ada_build_task_list): Don't declare.
13233 * ada-tasks.c (struct ada_tasks_inferior_data)
13234 <task_list_valid_p>: Now bool.
13235 (read_known_tasks, ada_task_list_changed)
13236 (ada_tasks_invalidate_inferior_data): Update.
13237 (read_known_tasks_array): Return bool.
13238 (read_known_tasks_list): Likewise.
13239 (read_known_tasks): Return void.
13240 (ada_build_task_list): Now static.
13241
13242 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13243
13244 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13245 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13246
13247 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13248
13249 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13250 variant for ada_tasks_pspace_data_handle and
13251 ada_tasks_inferior_data_handle.
13252 (ada_tasks_pspace_data_cleanup): New function.
13253 (ada_tasks_inferior_data_cleanup): New function.
13254
13255 2019-02-17 Tom Tromey <tom@tromey.com>
13256
13257 * macrotab.h (macro_source_fullname): Return a std::string.
13258 * macrotab.c (macro_include, check_for_redefinition)
13259 (macro_undef, macro_lookup_definition, foreach_macro)
13260 (foreach_macro_in_scope): Update.
13261 (macro_source_fullname): Return a std::string.
13262 * macrocmd.c (show_pp_source_pos): Update.
13263
13264 2019-02-17 Tom Tromey <tom@tromey.com>
13265
13266 * macrocmd.c (show_pp_source_pos): Style the file names.
13267
13268 2019-02-17 Tom Tromey <tom@tromey.com>
13269
13270 PR tui/24197:
13271 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13272
13273 2019-02-17 Tom Tromey <tom@tromey.com>
13274
13275 * ada-lang.c (user_select_syms): Use filtered printing.
13276 * utils.c (wrap_style): New global.
13277 (desired_style): Remove.
13278 (emit_style_escape): Add stream parameter.
13279 (set_output_style, reset_terminal_style, prompt_for_continue):
13280 Update.
13281 (flush_wrap_buffer): Only flush gdb_stdout.
13282 (wrap_here): Set wrap_style.
13283 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13284 treat escape sequences as a character. Change when wrap buffer is
13285 flushed.
13286 (fputs_styled): Do not set the output style when the default is
13287 requested.
13288 * ui-style.h (struct ui_file_style) <is_default>: New method.
13289 * source.c (print_source_lines_base): Emit escape sequences in one
13290 piece.
13291
13292 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13293
13294 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13295 integers and enumeration types.
13296
13297 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13298
13299 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13300 instead of lookup_symbol_in_language
13301 (do_exact_match): New function.
13302 (ada_get_symbol_name_matcher): Return do_exact_match when
13303 doing a verbatim match.
13304
13305 2019-02-15 Tom Tromey <tromey@adacore.com>
13306
13307 * ravenscar-thread.c (ravenscar_thread_target::resume)
13308 (ravenscar_thread_target::wait): Special case wildcard requests.
13309
13310 2019-02-15 Tom Tromey <tromey@adacore.com>
13311
13312 * ravenscar-thread.c (base_ptid): Remove.
13313 (struct ravenscar_thread_target) <close>: New method.
13314 <m_base_ptid>: New member.
13315 <update_inferior_ptid, active_task, task_is_currently_active,
13316 runtime_initialized>: Declare methods.
13317 <ravenscar_thread_target>: Add constructor.
13318 (ravenscar_thread_target::task_is_currently_active)
13319 (ravenscar_thread_target::update_inferior_ptid)
13320 (ravenscar_runtime_initialized): Rename. Now methods.
13321 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13322 (ravenscar_thread_target::update_thread_list): Update.
13323 (ravenscar_thread_target::active_task): Now method.
13324 (ravenscar_thread_target::store_registers)
13325 (ravenscar_thread_target::prepare_to_store)
13326 (ravenscar_thread_target::prepare_to_store)
13327 (ravenscar_thread_target::mourn_inferior): Update.
13328 (ravenscar_inferior_created): Use "new" to create target.
13329 (ravenscar_thread_target::get_ada_task_ptid): Update.
13330 (_initialize_ravenscar): Don't initialize base_ptid.
13331 (ravenscar_ops): Remove global.
13332
13333 2019-02-15 Tom Tromey <tromey@adacore.com>
13334
13335 * target.h (push_target): Declare new overload.
13336 * target.c (push_target): New overload, taking an rvalue reference.
13337 * remote.c (remote_target::open_1): Use push_target overload.
13338 * corelow.c (core_target_open): Use push_target overload.
13339
13340 2019-02-15 Tom Tromey <tromey@adacore.com>
13341
13342 * ravenscar-thread.c (is_ravenscar_task)
13343 (ravenscar_task_is_currently_active): Return bool.
13344 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13345 (_initialize_ravenscar): Remove "(void)".
13346 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13347 Return bool.
13348
13349 2019-02-15 Tom Tromey <tromey@adacore.com>
13350
13351 * ravenscar-thread.c (ravenscar_runtime_initializer)
13352 (has_ravenscar_runtime, get_running_thread_id)
13353 (ravenscar_thread_target::resume): Fix indentation.
13354
13355 2019-02-15 Tom Tromey <tromey@adacore.com>
13356
13357 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13358 from ravenscar_arch_ops.
13359 (sparc_ravenscar_ops::fetch_registers)
13360 (sparc_ravenscar_ops::store_registers): Now methods.
13361 (sparc_ravenscar_prepare_to_store): Remove.
13362 (sparc_ravenscar_ops): Redefine.
13363 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13364 methods and destructor. Remove members.
13365 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13366 (ravenscar_thread_target::store_registers)
13367 (ravenscar_thread_target::prepare_to_store): Update.
13368 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13369 Remove.
13370 (struct ppc_ravenscar_powerpc_ops): Derive from
13371 ravenscar_arch_ops.
13372 (ppc_ravenscar_powerpc_ops::fetch_registers)
13373 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13374 (ppc_ravenscar_powerpc_ops): Redefine.
13375 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13376 (ppc_ravenscar_e500_ops::fetch_registers)
13377 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13378 (ppc_ravenscar_e500_ops): Redefine.
13379 * aarch64-ravenscar-thread.c
13380 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13381 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13382 (aarch64_ravenscar_fetch_registers)
13383 (aarch64_ravenscar_store_registers): Now methods.
13384 (aarch64_ravenscar_ops): Redefine.
13385
13386 2019-02-15 Tom Tromey <tromey@adacore.com>
13387
13388 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13389 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13390 (ravenscar_thread_target::stopped_by_watchpoint)
13391 (ravenscar_thread_target::stopped_data_address)
13392 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13393
13394 2019-02-15 Tom Tromey <tromey@adacore.com>
13395
13396 * ravenscar-thread.c: Fix some typos.
13397
13398 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13399 Tom Tromey <tromey@adacore.com>
13400
13401 * ada-lang.c (ada_exception_sal): Change addr_string to a
13402 std::string.
13403 (create_ada_exception_catchpoint): Update.
13404
13405 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13406 Tom Tromey <tromey@adacore.com>
13407
13408 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13409 (bp_location_ops): Remove.
13410 (base_breakpoint_allocate_location): Update.
13411 (free_bp_location): Update.
13412 * ada-lang.c (class ada_catchpoint_location)
13413 <ada_catchpoint_location>: Remove ops parameter.
13414 (ada_catchpoint_location_dtor): Remove.
13415 (ada_catchpoint_location_ops): Remove.
13416 (allocate_location_exception): Update.
13417 * breakpoint.h (struct bp_location_ops): Remove.
13418 (class bp_location) <bp_location>: Remove bp_location_ops
13419 parameter.
13420 <~bp_location>: Add destructor.
13421 <ops>: Remove.
13422
13423 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13424 Pedro Alves <palves@redhat.com>
13425
13426 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13427 'PATH_MAX'.
13428
13429 2019-02-14 David Michael <fedora.dm0@gmail.com>
13430 Samuel Thibault <samuel.thibault@gnu.org>
13431 Thomas Schwinge <thomas@codesourcery.com>
13432
13433 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13434 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13435
13436 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13437
13438 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13439 (check_empty): Use "const char *".
13440
13441 * gnu-nat.c (gnu_nat_target::detach): Instead of
13442 'detach_inferior (pid)' call
13443 'detach_inferior (find_inferior_pid (pid))'.
13444
13445 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13446 'nat/fork-inferior.o'.
13447 * gnu-nat.c: #include "nat/fork-inferior.h".
13448
13449 * gnu-nat.c (gnu_nat_target::detach): Instead of
13450 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13451 * gnu-nat.h: #include "inf-child.h".
13452 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13453 'i386_gnu_nat_target::fetch_registers'.
13454 (gnu_store_registers): Rename/move to
13455 'i386_gnu_nat_target::store_registers'.
13456
13457 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13458 * gnu-nat.h (mach_thread_info): New function.
13459 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13460
13461 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13462
13463 2019-02-14 Frederic Konrad <konrad@adacore.com>
13464
13465 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13466
13467 2019-02-14 Joel Brobecker <brobecker@adacore.com>
13468
13469 * windows-nat.c (windows_add_thread): Add new parameter
13470 "main_thread_p" with default value set to false. Update
13471 function documentation as well as all callers.
13472 (windows_delete_thread): Likewise.
13473 (fake_create_process): Update call to windows_add_thread.
13474 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13475 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13476 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13477 call to windows_delete_thread.
13478
13479 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13480
13481 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13482
13483 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13484
13485 * symfile.c (find_separate_debug_file): Use canonical path of
13486 sysroot with child_path instead of gdb_sysroot if it is valid.
13487
13488 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13489
13490 * symfile.c (find_separate_debug_file): Use child_path to
13491 determine if an object file is under a sysroot.
13492
13493 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13494
13495 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13496 unittests/child-path-selftests.c.
13497 * common/pathstuff.c (child_path): New function.
13498 * common/pathstuff.h (child_path): New prototype.
13499 * unittests/child-path-selftests.c: New file.
13500
13501 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13502
13503 * symfile.c (find_separate_debug_file): Look for separate debug
13504 files in debug directories under the sysroot.
13505
13506 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13507
13508 * symtab.h (struct minimal_symbol data_p): New const method.
13509 (struct minimal_symbol text_p): Likewise.
13510 * symtab.c (output_source_filename): Use file name style
13511 to print file name.
13512 (print_symbol_info): Likewise.
13513 (print_msymbol_info): Use address style to print addresses.
13514 Use function name style to print executable text symbols.
13515 (expand_symtab_containing_pc): Use data_p.
13516 (find_pc_sect_compunit_symtab): Likewise.
13517
13518 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13519
13520 * breakpoint.c (describe_other_breakpoints): Use address style
13521 to print addresses.
13522 (say_where): Likewise.
13523
13524 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13525
13526 * ada-typeprint.c (print_func_type): Print function name
13527 style to print function name.
13528 * c-typeprint.c (c_print_type_1): Likewise.
13529
13530 2019-02-11 Alan Hayward <alan.hayward@arm.com>
13531
13532 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13533 for execve.
13534
13535 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13536
13537 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13538 type_stack.
13539
13540 2019-02-10 Joel Brobecker <brobecker@adacore.com>
13541
13542 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13543 TYPE_CODE_REF types.
13544
13545 2019-02-08 Jim Wilson <jimw@sifive.com>
13546
13547 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13548 (riscv_linux_fregset): New.
13549 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13550
13551 2019-02-07 Tom Tromey <tom@tromey.com>
13552
13553 * thread.c (thread_cancel_execution_command): Update.
13554 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13555 methods.
13556 (struct thread_fsm_ops): Remove.
13557 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13558 (thread_fsm_should_stop, thread_fsm_return_value)
13559 (thread_fsm_set_finished, thread_fsm_finished_p)
13560 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13561 Don't declare.
13562 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13563 * infrun.c (clear_proceed_status_thread)
13564 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13565 (print_stop_event): Update.
13566 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13567 Add constructor.
13568 (step_command_fsm_ops): Remove.
13569 (new_step_command_fsm): Remove.
13570 (step_1): Update.
13571 (step_command_fsm::should_stop): Rename from
13572 step_command_fsm_should_stop.
13573 (step_command_fsm::clean_up): Rename from
13574 step_command_fsm_clean_up.
13575 (step_command_fsm::do_async_reply_reason): Rename from
13576 step_command_fsm_async_reply_reason.
13577 (struct until_next_fsm): Inherit from thread_fsm. Add
13578 constructor.
13579 (until_next_fsm_ops): Remove.
13580 (new_until_next_fsm): Remove.
13581 (until_next_fsm::should_stop): Rename from
13582 until_next_fsm_should_stop.
13583 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13584 (until_next_fsm::do_async_reply_reason): Rename from
13585 until_next_fsm_async_reply_reason.
13586 (struct finish_command_fsm): Inherit from thread_fsm. Add
13587 constructor. Change type of breakpoint.
13588 (finish_command_fsm_ops): Remove.
13589 (new_finish_command_fsm): Remove.
13590 (finish_command_fsm::should_stop): Rename from
13591 finish_command_fsm_should_stop.
13592 (finish_command_fsm::clean_up): Rename from
13593 finish_command_fsm_clean_up.
13594 (finish_command_fsm::return_value): Rename from
13595 finish_command_fsm_return_value.
13596 (finish_command_fsm::do_async_reply_reason): Rename from
13597 finish_command_fsm_async_reply_reason.
13598 (finish_command): Update.
13599 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13600 Add constructor.
13601 (call_thread_fsm_ops): Remove.
13602 (call_thread_fsm::call_thread_fsm): Rename from
13603 new_call_thread_fsm.
13604 (call_thread_fsm::should_stop): Rename from
13605 call_thread_fsm_should_stop.
13606 (call_thread_fsm::should_notify_stop): Rename from
13607 call_thread_fsm_should_notify_stop.
13608 (run_inferior_call, call_function_by_hand_dummy): Update.
13609 * cli/cli-interp.c (should_print_stop_to_console): Update.
13610 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13611 Add constructor. Change type of location_breakpoint,
13612 caller_breakpoint.
13613 (until_break_fsm_ops): Remove.
13614 (new_until_break_fsm): Remove.
13615 (until_break_fsm::should_stop): Rename from
13616 until_break_fsm_should_stop.
13617 (until_break_fsm::clean_up): Rename from
13618 until_break_fsm_clean_up.
13619 (until_break_fsm::do_async_reply_reason): Rename from
13620 until_break_fsm_async_reply_reason.
13621 (until_break_command): Update.
13622 * thread-fsm.c: Remove.
13623 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13624
13625 2019-02-07 Tom Tromey <tom@tromey.com>
13626
13627 * yy-remap.h: Add include guard.
13628 * xtensa-tdep.h: Add include guard.
13629 * xcoffread.h: Rename include guard.
13630 * varobj-iter.h: Add include guard.
13631 * tui/tui.h: Rename include guard.
13632 * tui/tui-winsource.h: Rename include guard.
13633 * tui/tui-wingeneral.h: Rename include guard.
13634 * tui/tui-windata.h: Rename include guard.
13635 * tui/tui-win.h: Rename include guard.
13636 * tui/tui-stack.h: Rename include guard.
13637 * tui/tui-source.h: Rename include guard.
13638 * tui/tui-regs.h: Rename include guard.
13639 * tui/tui-out.h: Rename include guard.
13640 * tui/tui-layout.h: Rename include guard.
13641 * tui/tui-io.h: Rename include guard.
13642 * tui/tui-hooks.h: Rename include guard.
13643 * tui/tui-file.h: Rename include guard.
13644 * tui/tui-disasm.h: Rename include guard.
13645 * tui/tui-data.h: Rename include guard.
13646 * tui/tui-command.h: Rename include guard.
13647 * tic6x-tdep.h: Add include guard.
13648 * target/waitstatus.h: Rename include guard.
13649 * target/wait.h: Rename include guard.
13650 * target/target.h: Rename include guard.
13651 * target/resume.h: Rename include guard.
13652 * target-float.h: Rename include guard.
13653 * stabsread.h: Add include guard.
13654 * rs6000-tdep.h: Add include guard.
13655 * riscv-fbsd-tdep.h: Add include guard.
13656 * regformats/regdef.h: Rename include guard.
13657 * record.h: Rename include guard.
13658 * python/python.h: Rename include guard.
13659 * python/python-internal.h: Rename include guard.
13660 * python/py-stopevent.h: Rename include guard.
13661 * python/py-ref.h: Rename include guard.
13662 * python/py-record.h: Rename include guard.
13663 * python/py-record-full.h: Rename include guard.
13664 * python/py-record-btrace.h: Rename include guard.
13665 * python/py-instruction.h: Rename include guard.
13666 * python/py-events.h: Rename include guard.
13667 * python/py-event.h: Rename include guard.
13668 * procfs.h: Add include guard.
13669 * proc-utils.h: Add include guard.
13670 * p-lang.h: Add include guard.
13671 * or1k-tdep.h: Rename include guard.
13672 * observable.h: Rename include guard.
13673 * nto-tdep.h: Rename include guard.
13674 * nat/x86-linux.h: Rename include guard.
13675 * nat/x86-linux-dregs.h: Rename include guard.
13676 * nat/x86-gcc-cpuid.h: Add include guard.
13677 * nat/x86-dregs.h: Rename include guard.
13678 * nat/x86-cpuid.h: Rename include guard.
13679 * nat/ppc-linux.h: Rename include guard.
13680 * nat/mips-linux-watch.h: Rename include guard.
13681 * nat/linux-waitpid.h: Rename include guard.
13682 * nat/linux-ptrace.h: Rename include guard.
13683 * nat/linux-procfs.h: Rename include guard.
13684 * nat/linux-osdata.h: Rename include guard.
13685 * nat/linux-nat.h: Rename include guard.
13686 * nat/linux-namespaces.h: Rename include guard.
13687 * nat/linux-btrace.h: Rename include guard.
13688 * nat/glibc_thread_db.h: Rename include guard.
13689 * nat/gdb_thread_db.h: Rename include guard.
13690 * nat/gdb_ptrace.h: Rename include guard.
13691 * nat/fork-inferior.h: Rename include guard.
13692 * nat/amd64-linux-siginfo.h: Rename include guard.
13693 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13694 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13695 * nat/aarch64-linux.h: Rename include guard.
13696 * nat/aarch64-linux-hw-point.h: Rename include guard.
13697 * mn10300-tdep.h: Add include guard.
13698 * mips-linux-tdep.h: Add include guard.
13699 * mi/mi-parse.h: Rename include guard.
13700 * mi/mi-out.h: Rename include guard.
13701 * mi/mi-main.h: Rename include guard.
13702 * mi/mi-interp.h: Rename include guard.
13703 * mi/mi-getopt.h: Rename include guard.
13704 * mi/mi-console.h: Rename include guard.
13705 * mi/mi-common.h: Rename include guard.
13706 * mi/mi-cmds.h: Rename include guard.
13707 * mi/mi-cmd-break.h: Rename include guard.
13708 * m2-lang.h: Add include guard.
13709 * location.h: Rename include guard.
13710 * linux-record.h: Rename include guard.
13711 * linux-nat.h: Add include guard.
13712 * linux-fork.h: Add include guard.
13713 * i386-darwin-tdep.h: Rename include guard.
13714 * hppa-linux-offsets.h: Add include guard.
13715 * guile/guile.h: Rename include guard.
13716 * guile/guile-internal.h: Rename include guard.
13717 * gnu-nat.h: Rename include guard.
13718 * gdb-stabs.h: Rename include guard.
13719 * frv-tdep.h: Add include guard.
13720 * f-lang.h: Add include guard.
13721 * event-loop.h: Add include guard.
13722 * darwin-nat.h: Rename include guard.
13723 * cp-abi.h: Rename include guard.
13724 * config/sparc/nm-sol2.h: Rename include guard.
13725 * config/nm-nto.h: Rename include guard.
13726 * config/nm-linux.h: Add include guard.
13727 * config/i386/nm-i386gnu.h: Rename include guard.
13728 * config/djgpp/nl_types.h: Rename include guard.
13729 * config/djgpp/langinfo.h: Rename include guard.
13730 * compile/gcc-cp-plugin.h: Add include guard.
13731 * compile/gcc-c-plugin.h: Add include guard.
13732 * compile/compile.h: Rename include guard.
13733 * compile/compile-object-run.h: Rename include guard.
13734 * compile/compile-object-load.h: Rename include guard.
13735 * compile/compile-internal.h: Rename include guard.
13736 * compile/compile-cplus.h: Rename include guard.
13737 * compile/compile-c.h: Rename include guard.
13738 * common/xml-utils.h: Rename include guard.
13739 * common/x86-xstate.h: Rename include guard.
13740 * common/version.h: Rename include guard.
13741 * common/vec.h: Rename include guard.
13742 * common/tdesc.h: Rename include guard.
13743 * common/selftest.h: Rename include guard.
13744 * common/scoped_restore.h: Rename include guard.
13745 * common/scoped_mmap.h: Rename include guard.
13746 * common/scoped_fd.h: Rename include guard.
13747 * common/safe-iterator.h: Rename include guard.
13748 * common/run-time-clock.h: Rename include guard.
13749 * common/refcounted-object.h: Rename include guard.
13750 * common/queue.h: Rename include guard.
13751 * common/ptid.h: Rename include guard.
13752 * common/print-utils.h: Rename include guard.
13753 * common/preprocessor.h: Rename include guard.
13754 * common/pathstuff.h: Rename include guard.
13755 * common/observable.h: Rename include guard.
13756 * common/netstuff.h: Rename include guard.
13757 * common/job-control.h: Rename include guard.
13758 * common/host-defs.h: Rename include guard.
13759 * common/gdb_wait.h: Rename include guard.
13760 * common/gdb_vecs.h: Rename include guard.
13761 * common/gdb_unlinker.h: Rename include guard.
13762 * common/gdb_unique_ptr.h: Rename include guard.
13763 * common/gdb_tilde_expand.h: Rename include guard.
13764 * common/gdb_sys_time.h: Rename include guard.
13765 * common/gdb_string_view.h: Rename include guard.
13766 * common/gdb_splay_tree.h: Rename include guard.
13767 * common/gdb_setjmp.h: Rename include guard.
13768 * common/gdb_ref_ptr.h: Rename include guard.
13769 * common/gdb_optional.h: Rename include guard.
13770 * common/gdb_locale.h: Rename include guard.
13771 * common/gdb_assert.h: Rename include guard.
13772 * common/filtered-iterator.h: Rename include guard.
13773 * common/filestuff.h: Rename include guard.
13774 * common/fileio.h: Rename include guard.
13775 * common/environ.h: Rename include guard.
13776 * common/common-utils.h: Rename include guard.
13777 * common/common-types.h: Rename include guard.
13778 * common/common-regcache.h: Rename include guard.
13779 * common/common-inferior.h: Rename include guard.
13780 * common/common-gdbthread.h: Rename include guard.
13781 * common/common-exceptions.h: Rename include guard.
13782 * common/common-defs.h: Rename include guard.
13783 * common/common-debug.h: Rename include guard.
13784 * common/cleanups.h: Rename include guard.
13785 * common/buffer.h: Rename include guard.
13786 * common/btrace-common.h: Rename include guard.
13787 * common/break-common.h: Rename include guard.
13788 * cli/cli-utils.h: Rename include guard.
13789 * cli/cli-style.h: Rename include guard.
13790 * cli/cli-setshow.h: Rename include guard.
13791 * cli/cli-script.h: Rename include guard.
13792 * cli/cli-interp.h: Rename include guard.
13793 * cli/cli-decode.h: Rename include guard.
13794 * cli/cli-cmds.h: Rename include guard.
13795 * charset-list.h: Add include guard.
13796 * buildsym-legacy.h: Rename include guard.
13797 * bfin-tdep.h: Add include guard.
13798 * ax.h: Rename include guard.
13799 * arm-linux-tdep.h: Add include guard.
13800 * arm-fbsd-tdep.h: Add include guard.
13801 * arch/xtensa.h: Rename include guard.
13802 * arch/tic6x.h: Add include guard.
13803 * arch/i386.h: Add include guard.
13804 * arch/arm.h: Rename include guard.
13805 * arch/arm-linux.h: Rename include guard.
13806 * arch/arm-get-next-pcs.h: Rename include guard.
13807 * arch/amd64.h: Add include guard.
13808 * arch/aarch64-insn.h: Rename include guard.
13809 * arch-utils.h: Rename include guard.
13810 * annotate.h: Add include guard.
13811 * amd64-darwin-tdep.h: Rename include guard.
13812 * aarch64-linux-tdep.h: Add include guard.
13813 * aarch64-fbsd-tdep.h: Add include guard.
13814 * aarch32-linux-nat.h: Add include guard.
13815
13816 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13817
13818 * macrotab.c (macro_define_internal): New function that
13819 factorizes macro_define_object_internal and macro_define_function
13820 code.
13821 (macro_define_object_internal): Use macro_define_internal.
13822 (macro_define_function): Likewise.
13823
13824 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13825
13826 * macrocmd.c (extract_identifier): Return
13827 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13828 callers.
13829
13830 2019-02-06 John Baldwin <jhb@FreeBSD.org>
13831
13832 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13833
13834 2019-02-05 Tom Tromey <tom@tromey.com>
13835
13836 * target.c (target_stack::unpush): Move assertion earlier.
13837
13838 2019-01-30 Tom Tromey <tom@tromey.com>
13839
13840 PR python/23615:
13841 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
13842 (gdbpy_parse_and_eval): Likewise.
13843 * python/python-internal.h (gdbpy_allow_threads): New class.
13844
13845 2019-01-28 John Baldwin <jhb@FreeBSD.org>
13846
13847 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
13848 (aarch64_fbsd_fpregmap): Move earlier.
13849 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
13850 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13851 instead of individual calls to trad_frame_set_reg_addr.
13852 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
13853 earlier.
13854 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
13855 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13856 instead of individual calls to trad_frame_set_reg_addr.
13857
13858 2019-01-28 Alan Hayward <alan.hayward@arm.com>
13859
13860 * CONTRIBUTE: Replace contribution list with wiki link.
13861
13862 2019-01-25 Tom Tromey <tom@tromey.com>
13863
13864 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
13865
13866 2019-01-25 Tom Tromey <tom@tromey.com>
13867
13868 * xtensa-linux-nat.c: Fix common/ includes.
13869 * xml-support.h: Fix common/ includes.
13870 * xml-support.c: Fix common/ includes.
13871 * x86-linux-nat.c: Fix common/ includes.
13872 * windows-nat.c: Fix common/ includes.
13873 * varobj.h: Fix common/ includes.
13874 * varobj.c: Fix common/ includes.
13875 * value.c: Fix common/ includes.
13876 * valops.c: Fix common/ includes.
13877 * utils.c: Fix common/ includes.
13878 * unittests/xml-utils-selftests.c: Fix common/ includes.
13879 * unittests/utils-selftests.c: Fix common/ includes.
13880 * unittests/unpack-selftests.c: Fix common/ includes.
13881 * unittests/tracepoint-selftests.c: Fix common/ includes.
13882 * unittests/style-selftests.c: Fix common/ includes.
13883 * unittests/string_view-selftests.c: Fix common/ includes.
13884 * unittests/scoped_restore-selftests.c: Fix common/ includes.
13885 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
13886 * unittests/scoped_fd-selftests.c: Fix common/ includes.
13887 * unittests/rsp-low-selftests.c: Fix common/ includes.
13888 * unittests/parse-connection-spec-selftests.c: Fix common/
13889 includes.
13890 * unittests/optional-selftests.c: Fix common/ includes.
13891 * unittests/offset-type-selftests.c: Fix common/ includes.
13892 * unittests/observable-selftests.c: Fix common/ includes.
13893 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
13894 * unittests/memrange-selftests.c: Fix common/ includes.
13895 * unittests/memory-map-selftests.c: Fix common/ includes.
13896 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
13897 * unittests/function-view-selftests.c: Fix common/ includes.
13898 * unittests/environ-selftests.c: Fix common/ includes.
13899 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
13900 * unittests/common-utils-selftests.c: Fix common/ includes.
13901 * unittests/cli-utils-selftests.c: Fix common/ includes.
13902 * unittests/array-view-selftests.c: Fix common/ includes.
13903 * ui-file.c: Fix common/ includes.
13904 * tui/tui-io.c: Fix common/ includes.
13905 * tracepoint.h: Fix common/ includes.
13906 * tracepoint.c: Fix common/ includes.
13907 * tracefile-tfile.c: Fix common/ includes.
13908 * top.h: Fix common/ includes.
13909 * top.c: Fix common/ includes.
13910 * thread.c: Fix common/ includes.
13911 * target/waitstatus.h: Fix common/ includes.
13912 * target/waitstatus.c: Fix common/ includes.
13913 * target.h: Fix common/ includes.
13914 * target.c: Fix common/ includes.
13915 * target-memory.c: Fix common/ includes.
13916 * target-descriptions.c: Fix common/ includes.
13917 * symtab.h: Fix common/ includes.
13918 * symfile.c: Fix common/ includes.
13919 * stap-probe.c: Fix common/ includes.
13920 * spu-linux-nat.c: Fix common/ includes.
13921 * sparc-nat.c: Fix common/ includes.
13922 * source.c: Fix common/ includes.
13923 * solib.c: Fix common/ includes.
13924 * solib-target.c: Fix common/ includes.
13925 * ser-unix.c: Fix common/ includes.
13926 * ser-tcp.c: Fix common/ includes.
13927 * ser-pipe.c: Fix common/ includes.
13928 * ser-base.c: Fix common/ includes.
13929 * selftest-arch.c: Fix common/ includes.
13930 * s12z-tdep.c: Fix common/ includes.
13931 * rust-exp.y: Fix common/ includes.
13932 * rs6000-aix-tdep.c: Fix common/ includes.
13933 * riscv-tdep.c: Fix common/ includes.
13934 * remote.c: Fix common/ includes.
13935 * remote-notif.h: Fix common/ includes.
13936 * remote-fileio.h: Fix common/ includes.
13937 * remote-fileio.c: Fix common/ includes.
13938 * regcache.h: Fix common/ includes.
13939 * regcache.c: Fix common/ includes.
13940 * record-btrace.c: Fix common/ includes.
13941 * python/python.c: Fix common/ includes.
13942 * python/py-type.c: Fix common/ includes.
13943 * python/py-inferior.c: Fix common/ includes.
13944 * progspace.h: Fix common/ includes.
13945 * producer.c: Fix common/ includes.
13946 * procfs.c: Fix common/ includes.
13947 * proc-api.c: Fix common/ includes.
13948 * printcmd.c: Fix common/ includes.
13949 * ppc-linux-nat.c: Fix common/ includes.
13950 * parser-defs.h: Fix common/ includes.
13951 * osdata.c: Fix common/ includes.
13952 * obsd-nat.c: Fix common/ includes.
13953 * nat/x86-linux.c: Fix common/ includes.
13954 * nat/x86-linux-dregs.c: Fix common/ includes.
13955 * nat/x86-dregs.h: Fix common/ includes.
13956 * nat/x86-dregs.c: Fix common/ includes.
13957 * nat/ppc-linux.c: Fix common/ includes.
13958 * nat/mips-linux-watch.h: Fix common/ includes.
13959 * nat/mips-linux-watch.c: Fix common/ includes.
13960 * nat/linux-waitpid.c: Fix common/ includes.
13961 * nat/linux-ptrace.h: Fix common/ includes.
13962 * nat/linux-ptrace.c: Fix common/ includes.
13963 * nat/linux-procfs.c: Fix common/ includes.
13964 * nat/linux-personality.c: Fix common/ includes.
13965 * nat/linux-osdata.c: Fix common/ includes.
13966 * nat/linux-namespaces.c: Fix common/ includes.
13967 * nat/linux-btrace.h: Fix common/ includes.
13968 * nat/linux-btrace.c: Fix common/ includes.
13969 * nat/fork-inferior.c: Fix common/ includes.
13970 * nat/amd64-linux-siginfo.c: Fix common/ includes.
13971 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
13972 * nat/aarch64-linux.c: Fix common/ includes.
13973 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
13974 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
13975 * namespace.h: Fix common/ includes.
13976 * mips-linux-tdep.c: Fix common/ includes.
13977 * minsyms.c: Fix common/ includes.
13978 * mi/mi-parse.h: Fix common/ includes.
13979 * mi/mi-main.c: Fix common/ includes.
13980 * mi/mi-cmd-env.c: Fix common/ includes.
13981 * memrange.h: Fix common/ includes.
13982 * memattr.c: Fix common/ includes.
13983 * maint.h: Fix common/ includes.
13984 * maint.c: Fix common/ includes.
13985 * main.c: Fix common/ includes.
13986 * machoread.c: Fix common/ includes.
13987 * location.c: Fix common/ includes.
13988 * linux-thread-db.c: Fix common/ includes.
13989 * linux-nat.c: Fix common/ includes.
13990 * linux-fork.c: Fix common/ includes.
13991 * inline-frame.c: Fix common/ includes.
13992 * infrun.c: Fix common/ includes.
13993 * inflow.c: Fix common/ includes.
13994 * inferior.h: Fix common/ includes.
13995 * inferior.c: Fix common/ includes.
13996 * infcmd.c: Fix common/ includes.
13997 * inf-ptrace.c: Fix common/ includes.
13998 * inf-child.c: Fix common/ includes.
13999 * ia64-linux-nat.c: Fix common/ includes.
14000 * i387-tdep.c: Fix common/ includes.
14001 * i386-tdep.c: Fix common/ includes.
14002 * i386-linux-tdep.c: Fix common/ includes.
14003 * i386-linux-nat.c: Fix common/ includes.
14004 * i386-go32-tdep.c: Fix common/ includes.
14005 * i386-fbsd-tdep.c: Fix common/ includes.
14006 * i386-fbsd-nat.c: Fix common/ includes.
14007 * guile/scm-type.c: Fix common/ includes.
14008 * guile/guile.c: Fix common/ includes.
14009 * go32-nat.c: Fix common/ includes.
14010 * gnu-nat.c: Fix common/ includes.
14011 * gdbthread.h: Fix common/ includes.
14012 * gdbarch-selftests.c: Fix common/ includes.
14013 * gdb_usleep.c: Fix common/ includes.
14014 * gdb_select.h: Fix common/ includes.
14015 * gdb_bfd.c: Fix common/ includes.
14016 * gcore.c: Fix common/ includes.
14017 * fork-child.c: Fix common/ includes.
14018 * findvar.c: Fix common/ includes.
14019 * fbsd-nat.c: Fix common/ includes.
14020 * event-top.c: Fix common/ includes.
14021 * event-loop.c: Fix common/ includes.
14022 * dwarf2read.c: Fix common/ includes.
14023 * dwarf2loc.c: Fix common/ includes.
14024 * dwarf2-frame.c: Fix common/ includes.
14025 * dwarf-index-cache.c: Fix common/ includes.
14026 * dtrace-probe.c: Fix common/ includes.
14027 * disasm-selftests.c: Fix common/ includes.
14028 * defs.h: Fix common/ includes.
14029 * csky-tdep.c: Fix common/ includes.
14030 * cp-valprint.c: Fix common/ includes.
14031 * cp-support.h: Fix common/ includes.
14032 * cp-support.c: Fix common/ includes.
14033 * corelow.c: Fix common/ includes.
14034 * completer.h: Fix common/ includes.
14035 * completer.c: Fix common/ includes.
14036 * compile/compile.c: Fix common/ includes.
14037 * compile/compile-loc2c.c: Fix common/ includes.
14038 * compile/compile-cplus-types.c: Fix common/ includes.
14039 * compile/compile-cplus-symbols.c: Fix common/ includes.
14040 * command.h: Fix common/ includes.
14041 * cli/cli-dump.c: Fix common/ includes.
14042 * cli/cli-cmds.c: Fix common/ includes.
14043 * charset.c: Fix common/ includes.
14044 * build-id.c: Fix common/ includes.
14045 * btrace.h: Fix common/ includes.
14046 * btrace.c: Fix common/ includes.
14047 * breakpoint.h: Fix common/ includes.
14048 * breakpoint.c: Fix common/ includes.
14049 * ax.h:
14050 (enum agent_op): Fix common/ includes.
14051 * ax-general.c (struct aop_map): Fix common/ includes.
14052 * ax-gdb.c: Fix common/ includes.
14053 * auxv.c: Fix common/ includes.
14054 * auto-load.c: Fix common/ includes.
14055 * arm-tdep.c: Fix common/ includes.
14056 * arch/riscv.c: Fix common/ includes.
14057 * arch/ppc-linux-common.c: Fix common/ includes.
14058 * arch/i386.c: Fix common/ includes.
14059 * arch/arm.c: Fix common/ includes.
14060 * arch/arm-linux.c: Fix common/ includes.
14061 * arch/arm-get-next-pcs.c: Fix common/ includes.
14062 * arch/amd64.c: Fix common/ includes.
14063 * arch/aarch64.c: Fix common/ includes.
14064 * arch/aarch64-insn.c: Fix common/ includes.
14065 * arch-utils.c: Fix common/ includes.
14066 * amd64-windows-tdep.c: Fix common/ includes.
14067 * amd64-tdep.c: Fix common/ includes.
14068 * amd64-sol2-tdep.c: Fix common/ includes.
14069 * amd64-obsd-tdep.c: Fix common/ includes.
14070 * amd64-nbsd-tdep.c: Fix common/ includes.
14071 * amd64-linux-tdep.c: Fix common/ includes.
14072 * amd64-linux-nat.c: Fix common/ includes.
14073 * amd64-fbsd-tdep.c: Fix common/ includes.
14074 * amd64-fbsd-nat.c: Fix common/ includes.
14075 * amd64-dicos-tdep.c: Fix common/ includes.
14076 * amd64-darwin-tdep.c: Fix common/ includes.
14077 * agent.c: Fix common/ includes.
14078 * ada-lang.h: Fix common/ includes.
14079 * ada-lang.c: Fix common/ includes.
14080 * aarch64-tdep.c: Fix common/ includes.
14081
14082 2019-01-25 Tom Tromey <tom@tromey.com>
14083
14084 * common/create-version.sh: Use common/version.h.
14085
14086 2019-01-24 Pedro Alves <palves@redhat.com>
14087
14088 * infrun.c (signal_stop, signal_print, signal_program)
14089 (signal_catch, signal_pass): Now arrays instead of pointers.
14090 (update_signals_program_target, do_target_resume)
14091 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14092 * linux-nat.c (linux_nat_target::pass_signals)
14093 (linux_nat_target::create_inferior, linux_nat_target::attach):
14094 Adjust.
14095 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14096 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14097 * procfs.c (procfs_target::pass_signals): Adjust.
14098 * record-full.c (record_full_target::resume): Adjust.
14099 * remote.c (remote_target::pass_signals)
14100 (remote_target::program_signals): Adjust.
14101 * target-debug.h (target_debug_print_signals): Now takes a
14102 gdb::array_view as parameter. Adjust.
14103 * target.h (target_ops) <pass_signals, program_signals>: Replace
14104 pointer and length parameters with gdb::array_view.
14105 (target_pass_signals, target_program_signals): Likewise.
14106 * target-delegates.c: Regenerate.
14107
14108 2019-01-24 Pedro Alves <palves@redhat.com>
14109
14110 * common/forward-scope-exit.h
14111 (forward_scope_exit::forward_scope_exit): Pass arguments to
14112 m_bind_function directly, instead of creating a std::bind and
14113 copying that.
14114
14115 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14116
14117 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14118 for static members.
14119 (pass_in_v_vfp_candidate): Likewise.
14120
14121 2019-01-23 Tom Tromey <tom@tromey.com>
14122 Pedro Alves <palves@redhat.com>
14123
14124 * regcache.c (class regcache_invalidator): Remove.
14125 (regcache::raw_write): Use make_scope_exit.
14126
14127 2019-01-23 Tom Tromey <tom@tromey.com>
14128
14129 * ui-out.h (class ui_out_emit_type): Update comment.
14130
14131 2019-01-23 Tom Tromey <tom@tromey.com>
14132
14133 * infrun.c (fetch_inferior_event): Update comment.
14134
14135 2019-01-23 Tom Tromey <tom@tromey.com>
14136 Pedro Alves <palves@redhat.com>
14137
14138 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14139 parameter.
14140 (fetch_inferior_event): Use SCOPE_EXIT.
14141
14142
14143 2019-01-23 Tom Tromey <tom@tromey.com>
14144 Pedro Alves <palves@redhat.com>
14145
14146 * infrun.c (disable_thread_events): Delete.
14147 (stop_all_threads): Use SCOPE_EXIT.
14148
14149 2019-01-23 Tom Tromey <tom@tromey.com>
14150 Pedro Alves <palves@redhat.com>
14151
14152 * symfile.c: Include forward-scope-exit.h.
14153 (clear_symtab_users_cleanup): Replace forward declaration with
14154 a FORWARD_SCOPE_EXIT.
14155 (syms_from_objfile_1): Use the forward_scope_exit and
14156 gdb::optional instead of cleanup_function.
14157 (reread_symbols): Use the forward_scope_exit instead of
14158 cleanup_function.
14159 (clear_symtab_users_cleanup): Remove function.
14160
14161 2019-01-23 Tom Tromey <tom@tromey.com>
14162 Pedro Alves <palves@redhat.com>
14163
14164 * linux-nat.c: Include scope-exit.h.
14165 (cleanup_target_stop): Remove.
14166 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14167 SCOPE_EXIT.
14168
14169 2019-01-23 Tom Tromey <tom@tromey.com>
14170 Pedro Alves <palves@redhat.com>
14171
14172 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14173 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14174
14175 2019-01-23 Tom Tromey <tom@tromey.com>
14176 Andrew Burgess <andrew.burgess@embecosm.com>
14177 Pedro Alves <palves@redhat.com>
14178
14179 * infrun.c (fetch_inferior_event): Use scope_exit.
14180 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14181 * top.c (execute_command): Use scope_exit.
14182 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14183 * utils.c (do_bpstat_clear_actions_cleanup)
14184 (make_bpstat_clear_actions_cleanup): Remove.
14185
14186 2019-01-23 Tom Tromey <tom@tromey.com>
14187 Pedro Alves <palves@redhat.com>
14188
14189 * infrun.c: Include "common/scope-exit.h"
14190 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14191 (wait_for_inferior): Use SCOPE_EXIT.
14192 (fetch_inferior_event): Use scope_exit.
14193
14194 2019-01-23 Tom Tromey <tom@tromey.com>
14195 Pedro Alves <palves@redhat.com>
14196
14197 * breakpoint.c (create_breakpoint): Remove cleanup.
14198
14199 2019-01-23 Tom Tromey <tom@tromey.com>
14200 Andrew Burgess <andrew.burgess@embecosm.com>
14201 Pedro Alves <palves@redhat.com>
14202
14203 2019-01-23 Pedro Alves <palves@redhat.com>
14204
14205 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14206
14207 2019-01-23 Pedro Alves <palves@redhat.com>
14208 Andrew Burgess <andrew.burgess@embecosm.com>
14209
14210 * gdbthread.h: Include "common/forward-scope-exit.h".
14211 (scoped_finish_thread_state): Redefine custom class in terms of
14212 forward_scope_exit.
14213
14214 2019-01-23 Pedro Alves <palves@redhat.com>
14215 Andrew Burgess <andrew.burgess@embecosm.com>
14216
14217 * common/forward-scope-exit.h: New file.
14218
14219 2019-01-23 Pedro Alves <palves@redhat.com>
14220 Andrew Burgess <andrew.burgess@embecosm.com>
14221 Tom Tromey <tom@tromey.com>
14222
14223 * common/scope-exit.h: New file.
14224
14225 2019-01-23 Pedro Alves <palves@redhat.com>
14226
14227 * common/preprocessor.h (ESC): Rename to ...
14228 (ESC_PARENS): ... this.
14229 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14230 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14231
14232 2019-01-23 Tom Tromey <tom@tromey.com>
14233
14234 * language.h (class scoped_switch_to_sym_language_if_auto):
14235 Initialize m_lang in both cases.
14236
14237 2019-01-23 Alan Hayward <alan.hayward@arm.com>
14238
14239 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14240 with XCNEW.
14241
14242 2019-01-22 Tom Tromey <tom@tromey.com>
14243
14244 * corelow.c: Do not include sys/file.h.
14245
14246 2019-01-22 Tom Tromey <tom@tromey.com>
14247
14248 * tui/tui-wingeneral.h: Include gdb_curses.h.
14249
14250 2019-01-22 Tom Tromey <tom@tromey.com>
14251
14252 * source-cache.h (class source_cache) <get_source_lines,
14253 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14254
14255 2019-01-22 Tom Tromey <tom@tromey.com>
14256
14257 * remote-fileio.h (struct remote_target): Declare.
14258
14259 2019-01-22 Tom Tromey <tom@tromey.com>
14260
14261 * python/py-arch.c: Do not include py-ref.h.
14262 * python/py-bpevent.c: Do not include py-ref.h.
14263 * python/py-cmd.c: Do not include py-ref.h.
14264 * python/py-continueevent.c: Do not include py-ref.h.
14265 * python/py-event.h: Do not include py-ref.h.
14266 * python/py-evtregistry.c: Do not include py-ref.h.
14267 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14268 * python/py-frame.c: Do not include py-ref.h.
14269 * python/py-framefilter.c: Do not include py-ref.h.
14270 * python/py-function.c: Do not include py-ref.h.
14271 * python/py-infevents.c: Do not include py-ref.h.
14272 * python/py-linetable.c: Do not include py-ref.h.
14273 * python/py-objfile.c: Do not include py-ref.h.
14274 * python/py-param.c: Do not include py-ref.h.
14275 * python/py-prettyprint.c: Do not include py-ref.h.
14276 * python/py-progspace.c: Do not include py-ref.h.
14277 * python/py-symbol.c: Do not include py-ref.h.
14278 * python/py-symtab.c: Do not include py-ref.h.
14279 * python/py-type.c: Do not include py-ref.h.
14280 * python/py-unwind.c: Do not include py-ref.h.
14281 * python/py-utils.c: Do not include py-ref.h.
14282 * python/py-value.c: Do not include py-ref.h.
14283 * python/py-varobj.c: Do not include py-ref.h.
14284 * python/py-xmethods.c: Do not include py-ref.h.
14285 * python/python.c: Do not include py-ref.h.
14286 * varobj.c: Do not include py-ref.h.
14287
14288 2019-01-22 Tom Tromey <tom@tromey.com>
14289
14290 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14291 keyword for bcache.
14292
14293 2019-01-22 Tom Tromey <tom@tromey.com>
14294
14295 * compile/compile-cplus-types.c: Remove a comment by #include.
14296
14297 2019-01-22 Tom Tromey <tom@tromey.com>
14298
14299 * compile/gcc-c-plugin.h: Include compile-internal.h.
14300
14301 2019-01-22 Tom Tromey <tom@tromey.com>
14302
14303 * stabsread.c (EXTERN): Do not define.
14304 (symnum, next_symbol_text_func, processing_gcc_compilation)
14305 (within_function, global_sym_chain, global_stabs)
14306 (previous_stab_code, this_object_header_files)
14307 (n_this_object_header_files)
14308 (n_allocated_this_object_header_files): Define.
14309 * stabsread.h (EXTERN): Never define. Use "extern".
14310
14311 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14312
14313 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14314 history_value.
14315
14316 2019-01-21 Tom Tromey <tom@tromey.com>
14317
14318 * ui-out.c: Fix includes.
14319 * tui/tui-source.c: Fix includes.
14320 * target.c: Fix includes.
14321 * remote.c: Fix includes.
14322 * regcache.c: Fix includes.
14323 * python/py-block.c: Fix includes.
14324 * printcmd.c: Fix includes.
14325 * or1k-tdep.c: Fix includes.
14326 * mi/mi-main.c: Fix includes.
14327 * m32r-tdep.c: Fix includes.
14328 * csky-tdep.c: Fix includes.
14329 * compile/compile-cplus-types.c: Fix includes.
14330 * cli/cli-interp.c: Fix includes.
14331
14332 2019-01-21 Alan Hayward <alan.hayward@arm.com>
14333
14334 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14335 for padding.
14336
14337 2019-01-16 Tom Tromey <tom@tromey.com>
14338
14339 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14340 earlier.
14341 (struct objfile) <msymbols_range>: Move from top level.
14342 <msymbols>: New method.
14343 (class objfile_msymbols): Remove.
14344 * symtab.c (default_collect_symbol_completion_matches_break_on):
14345 Update.
14346 * symmisc.c (dump_msymbols): Update.
14347 * stabsread.c (scan_file_globals): Update.
14348 * objc-lang.c (info_selectors_command, info_classes_command)
14349 (find_methods): Update.
14350 * minsyms.c (find_solib_trampoline_target): Update.
14351 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14352 * coffread.c (coff_symfile_read): Update.
14353 * ada-lang.c (ada_lookup_simple_minsym)
14354 (ada_collect_symbol_completion_matches): Update.
14355
14356 2019-01-16 Tom Tromey <tom@tromey.com>
14357
14358 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14359 type. Remove no-argument constructor.
14360 <iterator::operator++>: Simplify.
14361 <begin>: Update.
14362 <end>: Use minimal_symbol_count.
14363
14364 2019-01-16 Tom Tromey <tom@tromey.com>
14365
14366 * objfiles.h (struct objfile) <psymtabs>: New method.
14367 (class objfile_psymtabs): Remove.
14368 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14369 typedef.
14370 <range>: New method.
14371 (require_partial_symbols): Change return type.
14372 * psymtab.c (require_partial_symbols)
14373 (psym_expand_symtabs_matching): Update.
14374 * mdebugread.c (parse_partial_symbols): Update.
14375 * dbxread.c (dbx_end_psymtab): Update.
14376
14377 2019-01-15 Tom Tromey <tom@tromey.com>
14378
14379 * symtab.c (lookup_objfile_from_block)
14380 (lookup_symbol_in_objfile_symtabs)
14381 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14382 (find_line_symtab, info_sources_command)
14383 (default_collect_symbol_completion_matches_break_on)
14384 (make_source_files_completion_list): Update.
14385 * symmisc.c (print_objfile_statistics, dump_objfile)
14386 (maintenance_print_symbols, maintenance_info_symtabs)
14387 (maintenance_check_symtabs, maintenance_info_line_tables):
14388 Update.
14389 * source.c (select_source_symtab)
14390 (forget_cached_source_info_for_objfile): Update.
14391 * objfiles.h (class objfile_compunits): Remove.
14392 (struct objfile) <compunits_range>: New typedef.
14393 (compunits): New method.
14394 * objfiles.c (objfile_relocate1): Update.
14395 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14396 * maint.c (count_symtabs_and_blocks): Update.
14397 * linespec.c (iterate_over_all_matching_symtabs): Update.
14398 * cp-support.c (add_symbol_overload_list_qualified): Update.
14399 * coffread.c (coff_symtab_read): Update.
14400 * ada-lang.c (add_nonlocal_symbols)
14401 (ada_collect_symbol_completion_matches)
14402 (ada_add_global_exceptions): Update.
14403
14404 2019-01-15 Tom Tromey <tom@tromey.com>
14405
14406 * progspace.h (program_space) <objfiles_safe_range>: New
14407 typedef.
14408 <objfiles_safe>: New method.
14409 * objfiles.h (class all_objfiles_safe): Remove.
14410 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14411 * jit.c (jit_inferior_exit_hook): Update.
14412
14413 2019-01-17 Tom Tromey <tom@tromey.com>
14414
14415 * progspace.h (program_space) <objfiles_range>: New typedef.
14416 <objfiles>: New method.
14417 <objfiles_head>: Rename from objfiles.
14418 (object_files): Update.
14419 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14420 * guile/scm-pretty-print.c
14421 (ppscm_find_pretty_printer_from_objfiles): Update.
14422 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14423 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14424 Update.
14425 * python/py-progspace.c (pspy_get_objfiles): Update.
14426 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14427 Update.
14428 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14429 (objfpy_lookup_objfile_by_build_id): Update.
14430 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14431 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14432 Update.
14433 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14434 (expand_symtab_containing_pc, lookup_objfile_from_block)
14435 (lookup_static_symbol, basic_lookup_transparent_type)
14436 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14437 (find_line_symtab, info_sources_command)
14438 (default_collect_symbol_completion_matches_break_on)
14439 (make_source_files_completion_list, find_main_name): Update.
14440 * symmisc.c (print_symbol_bcache_statistics)
14441 (print_objfile_statistics, maintenance_print_symbols)
14442 (maintenance_print_msymbols, maintenance_print_objfiles)
14443 (maintenance_info_symtabs, maintenance_check_symtabs)
14444 (maintenance_expand_symtabs, maintenance_info_line_tables):
14445 Update.
14446 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14447 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14448 (map_overlay_command, unmap_overlay_command)
14449 (simple_overlay_update, expand_symtabs_matching)
14450 (map_symbol_filenames): Update.
14451 * symfile-debug.c (set_debug_symfile): Update.
14452 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14453 Update.
14454 * source.c (select_source_symtab, forget_cached_source_info):
14455 Update.
14456 * solib.c (solib_read_symbols): Update.
14457 * solib-spu.c (append_ocl_sos): Update.
14458 * psymtab.c (maintenance_print_psymbols)
14459 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14460 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14461 * printcmd.c (info_symbol_command): Update.
14462 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14463 Update.
14464 * objfiles.h (class all_objfiles): Remove.
14465 * objfiles.c (have_partial_symbols, have_full_symbols)
14466 (have_minimal_symbols, qsort_cmp, update_section_map)
14467 (shared_objfile_contains_address_p)
14468 (default_iterate_over_objfiles_in_search_order): Update.
14469 * objc-lang.c (info_selectors_command, info_classes_command)
14470 (find_methods): Update.
14471 * minsyms.c (find_solib_trampoline_target): Update.
14472 * maint.c (maintenance_info_sections)
14473 (maintenance_translate_address, count_symtabs_and_blocks):
14474 Update.
14475 * main.c (captured_main_1): Update.
14476 * linux-thread-db.c (try_thread_db_load_from_pdir)
14477 (has_libpthread): Update.
14478 * linespec.c (iterate_over_all_matching_symtabs)
14479 (search_minsyms_for_name): Update.
14480 * jit.c (jit_find_objf_with_entry_addr): Update.
14481 * hppa-tdep.c (find_unwind_entry)
14482 (hppa_lookup_stub_minimal_symbol): Update.
14483 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14484 Update.
14485 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14486 (elf_gnu_ifunc_resolve_by_got): Update.
14487 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14488 * dwarf-index-write.c (save_gdb_index_command): Update.
14489 * cp-support.c (add_symbol_overload_list_qualified): Update.
14490 * breakpoint.c (create_overlay_event_breakpoint)
14491 (create_longjmp_master_breakpoint)
14492 (create_std_terminate_master_breakpoint)
14493 (create_exception_master_breakpoint): Update.
14494 * blockframe.c (find_pc_partial_function): Update.
14495 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14496 (ada_collect_symbol_completion_matches)
14497 (ada_add_global_exceptions): Update.
14498
14499 2019-01-17 Tom Tromey <tom@tromey.com>
14500
14501 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14502 declare VEC.
14503 (solib_target_parse_libraries): Change return type.
14504 (library_list_start_segment, library_list_start_section)
14505 (library_list_end_library, library_list_start_library); Update.
14506 (solib_target_free_library_list): Remove.
14507 (solib_target_parse_libraries): Remove cleanup. Change return
14508 type.
14509 (solib_target_current_sos): Update.
14510
14511 2019-01-17 Tom Tromey <tromey@bapiya>
14512
14513 * valprint.c: Replace "the the" with "the".
14514 * symtab.c: Replace "the the" with "the".
14515 * solib.c: Replace "the the" with "the".
14516 * solib-dsbt.c: Replace "the the" with "the".
14517 * linespec.c: Replace "the the" with "the".
14518 * dwarf2loc.h: Replace "the the" with "the".
14519 * amd64-windows-tdep.c: Replace "the the" with "the".
14520 * aarch64-tdep.c: Replace "the the" with "the".
14521
14522 2019-01-16 Keith Seitz <keiths@redhat.com>
14523
14524 PR gdb/23773
14525 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14526 <builder>: Rename to ..
14527 <m_builder>: ... this and make private.
14528 (dwarf2_cu::get_builder): New method. Change all users of
14529 `builder' to use this method.
14530 (dwarf2_start_symtab): Move to ...
14531 (dwarf2_cu::start_symtab): ... here. Update all callers
14532 (setup_type_unit_groups): Move to ...
14533 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14534 callers.
14535 (dwarf2_cu::reset_builder): New method.
14536 (process_full_compunit, process_full_type_unit): Use
14537 dwarf2_cu::reset_builder.
14538 (follow_die_offset): Record the ancestor CU if it is different
14539 from the followed DIE's CU.
14540 (follow_die_sig_1): Likewise.
14541
14542 2019-01-15 Tom Tromey <tom@tromey.com>
14543
14544 * remote.c (class remote_state) <buf>: Now a char_vector.
14545 <buf_size>: Remove.
14546 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14547 parameter.
14548 (remote_target::getpkt_or_notif_sane_1)
14549 (remote_target::getpkt_sane)
14550 (remote_target::getpkt_or_notif_sane): Likewise.
14551 (class remote_target) <putpkt>: New overload.
14552 (remote_target::read_frame): Change type of "buf_p". Remove
14553 sizeof_p parameter.
14554 (packet_ok): New overload.
14555 (packet_check_result): New overload.
14556 Update all uses.
14557
14558 2019-01-14 Tom Tromey <tom@tromey.com>
14559
14560 * remote-notif.c (handle_notification, remote_notif_ack)
14561 (remote_notif_parse): Make "buf" const.
14562 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14563 const.
14564 (remote_notif_parse, remote_notif_ack, handle_notification):
14565 Likewise.
14566 * remote.c (remote_notif_stop_parse): Make "buf" const.
14567 (remote_target::remote_parse_stop_reply): Make "buf" const.
14568 (remote_notif_stop_ack): Make "buf" const.
14569
14570 2019-01-14 Tom Tromey <tom@tromey.com>
14571
14572 * remote.c (remote_console_output): Make parameter const.
14573
14574 2019-01-14 Tom Tromey <tom@tromey.com>
14575
14576 * target-debug.h (target_debug_print_signals): Constify.
14577 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14578 * procfs.c (procfs_target::pass_signals): Update.
14579 * linux-nat.c (linux_nat_target::pass_signals): Update.
14580 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14581 * target-delegates.c: Rebuild.
14582 * remote.c (remote_target::program_signals): Update.
14583 (remote_target::pass_signals): Update.
14584 * target.c (target_pass_signals): Constify argument.
14585 (target_program_signals): Likewise.
14586 * target.h (struct target_ops) <pass_signals, program_signals>:
14587 Constify argument.
14588 (target_pass_signals, target_program_signals): Constify argument.
14589
14590 2019-01-14 Tom Tromey <tom@tromey.com>
14591
14592 PR tui/28819:
14593 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14594
14595 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14596
14597 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14598 field.
14599 * rs6000-tdep.c: Include reggroups.h.
14600 (IS_V_ALIAS_PSEUDOREG): Define.
14601 (rs6000_register_name): Return names for the "vX" aliases.
14602 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14603 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14604 aliases. Call default_register_reggroup_p for all other
14605 pseudo-registers.
14606 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14607 New functions.
14608 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14609 Handle "vX" aliases.
14610 (v_alias_pseudo_register_collect): New function.
14611 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14612 (rs6000_gdbarch_init): Initialize "vX" aliases as
14613 pseudo-registers. Restore registration of
14614 rs6000_pseudo_register_reggroup_p with
14615 set_tdesc_pseudo_register_reggroup_p.
14616
14617 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14618
14619 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14620 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14621 set_gdbarch_num_pseudo_regs.
14622
14623 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14624
14625 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14626 Remove arg prefixname, add do_set and do_show.
14627 Add member functions set_list and show_list.
14628 * cli/cli-style.c (class cli_style_option): Update accordingly.
14629 (style_set_list): Move to file scope.
14630 (style_show_list): Likewise.
14631 (set_style): Call help_list.
14632 (show_style): Call cmd_show_list.
14633 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14634 Update to use the new macro.
14635
14636 2019-10-12 Joel Brobecker <brobecker@adacore.com>
14637
14638 * ada-lang.c (_initialize_ada_language): Expand the help text
14639 for the "catch exception" command.
14640
14641 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14642
14643 * symtab.c (matching_obj_sections): Initialize obj,
14644 declare it closer to its usage.
14645
14646 2019-01-10 Tom Tromey <tom@tromey.com>
14647
14648 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14649 (basic_inf_threads_range): Remove.
14650 (inf_threads_range, inf_non_exited_threads_range)
14651 (safe_inf_threads_range): Use next_adapter.
14652
14653 2019-01-10 Keith Seitz <keiths@redhat.com>
14654
14655 PR gdb/23712
14656 PR symtab/23010
14657 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14658 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14659
14660 2019-01-10 Keith Seitz <keiths@redhat.com>
14661
14662 PR gdb/23712
14663 PR symtab/23010
14664 * dictionary.c (pending_to_vector): Remove.
14665 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14666 Remove _1 suffix, replacing functions of the same name. Update
14667 all callers.
14668 (dict_create_hashed, dict_create_hashed_expandable)
14669 (dict_create_linear, dict_create_linear_expandable, dict_free)
14670 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14671 Make functions static.
14672
14673 2019-01-10 Keith Seitz <keiths@redhat.com>
14674
14675 PR gdb/23712
14676 PR symtab/23010
14677 * dictionary.h (struct dictionary): Replace declaration with
14678 multidictionary.
14679 (dict_create_hashed, dict_create_hashed_expandable)
14680 (dict_create_linear, dict_create_linear_expandable)
14681 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14682 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14683 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14684 taking multidictionary argument.
14685 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14686 * block.h (struct block) <dict>: Change to multidictionary
14687 and rename `multidict'.
14688 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14689 symmisc.c: Update all dictionary references to multidictionary.
14690
14691 2019-01-10 Keith Seitz <keiths@redhat.com>
14692
14693 PR gdb/23712
14694 PR symtab/23010
14695 * dictionary.c: Include unordered_map.
14696 (pending_to_vector): New function.
14697 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14698 Rewrite the non-"_1" functions to take vector instead
14699 of linked list.
14700 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14701 "new" _1 versions of the same name.
14702 (multidictionary): Define.
14703 (std::hash<enum language): New definition.
14704 (collate_pending_symbols_by_language, mdict_create_hashed)
14705 (mdict_create_hashed_expandable, mdict_create_linear)
14706 (mdict_create_linear_expandable, mdict_free)
14707 (find_language_dictionary, create_new_language_dictionary)
14708 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14709 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14710 (mdict_size, mdict_empty): New functions.
14711 * dictionary.h (mdict_iterator): Define.
14712
14713 2019-01-10 Pedro Alves <palves@redhat.com>
14714
14715 * breakpoint.c (read_uploaded_action)
14716 (create_tracepoint_from_upload): Adjust to use
14717 gdb::unique_xmalloc_ptr.
14718 * ctf.c (ctf_write_uploaded_tp):
14719 (SET_ARRAY_FIELD): Use emplace_back.
14720 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14721 * tracefile-tfile.c (tfile_write_uploaded_tp):
14722 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14723 gdb::unique_xmalloc_ptr.
14724 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14725 at_string, cond_string, cmd_strings>: Replace char pointers
14726 with gdb::unique_xmalloc_ptr.
14727
14728 2019-01-10 Pedro Alves <palves@redhat.com>
14729
14730 * solib-target.c (library_list_start_library): Don't xstrdup name.
14731
14732 2019-01-10 Pedro Alves <palves@redhat.com>
14733
14734 * mdebugread.c (parse_partial_symbols): Use
14735 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14736
14737 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14738
14739 * linux-fork.c (scoped_switch_fork_info)
14740 <~scoped_switch_fork_info>: Fix incorrect variable name.
14741
14742 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14743
14744 * linux-fork.c (scoped_switch_fork_info)
14745 <scoped_switch_fork_info>: Make explicit.
14746 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14747
14748 2019-01-10 Tom Tromey <tom@tromey.com>
14749
14750 * objfiles.h (objfile::reset_psymtabs): Update.
14751 * objfiles.c (objfile::objfile): Update.
14752 * psymtab.h (psymtab_storage::obstack): Update.
14753 (psymtab_storage::m_obstack): Use gdb::optional.
14754 (class psymtab_storage): Update comment. Remove objfile
14755 parameter.
14756 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14757
14758 2019-01-10 Tom Tromey <tom@tromey.com>
14759
14760 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14761 <free_psymtabs>: Now private.
14762 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14763 (allocate_psymtab): Use new method.
14764
14765 2019-01-10 Tom Tromey <tom@tromey.com>
14766
14767 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14768 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14769 * mdebugread.c (parse_partial_symbols): Use
14770 allocate_dependencies.
14771 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14772 allocate_dependencies.
14773 (process_psymtab_comp_unit_reader)
14774 (build_type_psymtab_dependencies): Likewise.
14775 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14776
14777 2019-01-10 Tom Tromey <tom@tromey.com>
14778
14779 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14780 PSYMBOL_SET_LANGUAGE.
14781 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14782
14783 2019-01-10 Tom Tromey <tom@tromey.com>
14784
14785 * psymtab.h (psymtab_storage::obstack): New method.
14786 <m_obstack>: Rename from obstack; now private.
14787 * psymtab.c (psymtab_storage): Update.
14788 * dwarf2read.c (create_addrmap_from_index)
14789 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14790 Update.
14791
14792 2019-01-10 Tom Tromey <tom@tromey.com>
14793
14794 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14795 * objfiles.h (objfile::reset_psymtabs): New method.
14796
14797 2019-01-10 Tom Tromey <tom@tromey.com>
14798
14799 * symmisc.c (print_symbol_bcache_statistics): Update.
14800 (print_objfile_statistics): Update.
14801 * symfile.c (reread_symbols): Update.
14802 * psymtab.h (class psymtab_storage): New.
14803 * psymtab.c (psymtab_storage): New constructor.
14804 (~psymtab_storage): New destructor.
14805 (require_partial_symbols): Update.
14806 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14807 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14808 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14809 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14810 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14811 (start_psymtab_common, end_psymtab_common)
14812 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14813 (allocate_psymtab): Update.
14814 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14815 Update.
14816 (dump_psymtab_addrmap, maintenance_print_psymbols)
14817 (maintenance_check_psymtabs): Update.
14818 (class objfile_psymtabs): Move to objfiles.h.
14819 * psympriv.h (discard_psymtab): Now inline.
14820 (psymtab_discarder::psymtab_discarder): Update.
14821 (psymtab_discarder::~psymtab_discarder): Update.
14822 (ALL_OBJFILE_PSYMTABS): Rewrite.
14823 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14824 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14825 Remove fields.
14826 <partial_symtabs>: New field.
14827 (class objfile_psymtabs): Move from psymtab.h. Update.
14828 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14829 psymbol_cache.
14830 (objfile::~objfile): Don't destroy psymbol_cache.
14831 * mdebugread.c (parse_partial_symbols): Update.
14832 * dwarf2read.c (create_addrmap_from_index)
14833 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14834 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14835 (add_partial_subprogram, dwarf2_ranges_read): Update.
14836 * dwarf-index-write.c (write_address_map)
14837 (write_one_signatured_type, recursively_write_psymbols)
14838 (class debug_names, class debug_names, write_psymtabs_to_index):
14839 Update.
14840
14841 2019-01-10 Tom Tromey <tom@tromey.com>
14842
14843 * symtab.h (SYMBOL_SET_NAMES): Update.
14844 (symbol_set_names): Update.
14845 (MSYMBOL_SET_NAMES): Update.
14846 * symtab.c (symbol_set_names): Change argument to be an
14847 objfile_per_bfd_storage.
14848 * psymtab.c (add_psymbol_to_bcache): Update.
14849 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
14850
14851 2019-01-10 Tom Tromey <tom@tromey.com>
14852
14853 * symtab.c (create_demangled_names_hash): Change argument to be an
14854 objfile_per_bfd_storage.
14855 (symbol_set_names): Update.
14856
14857 2019-01-10 Tom Tromey <tom@tromey.com>
14858
14859 * xcoffread.c (xcoff_initial_scan): Unconditionally call
14860 init_psymbol_list.
14861 * psymtab.c (init_psymbol_list): Do nothing if already called.
14862 * psympriv.h (init_psymbol_list): Add comment.
14863 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
14864 init_psymbol_list.
14865 * dbxread.c (dbx_symfile_read): Unconditionally call
14866 init_psymbol_list.
14867
14868 2019-01-10 Tom Tromey <tom@tromey.com>
14869
14870 * xcoffread.c (scan_xcoff_symtab): Update.
14871 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
14872 "where".
14873 * mdebugread.c (parse_partial_symbols)
14874 (handle_psymbol_enumerators): Update.
14875 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
14876 * dbxread.c (read_dbx_symtab): Update.
14877 * psympriv.h (psymbol_placement): New enum.
14878 (add_psymbol_to_list): Update.
14879
14880 2019-01-10 Tom Tromey <tom@tromey.com>
14881
14882 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
14883 static_psymbols parameters.
14884 (scan_xcoff_symtab): Update.
14885 * psymtab.c (start_psymtab_common): Remove global_psymbols and
14886 static_psymbols parameters.
14887 * psympriv.h (start_psymtab_common): Update.
14888 * mdebugread.c (parse_partial_symbols): Update.
14889 * dwarf2read.c (create_partial_symtab): Update.
14890 * dbxread.c (read_dbx_symtab): Update.
14891 (start_psymtab): Remove global_psymbols and static_psymbols
14892 parameters.
14893
14894 2019-01-10 Tom Tromey <tom@tromey.com>
14895
14896 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
14897 * psymtab.c (allocate_psymtab): Add comment.
14898 * psympriv.h (allocate_psymtab): Add comment.
14899 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
14900 initializations.
14901 * dbxread.c (dbx_end_psymtab): Remove some initializations.
14902
14903 2019-01-10 Tom Tromey <tom@tromey.com>
14904
14905 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14906 Don't declare.
14907 * mipsread.c: Include mdebugread.h.
14908 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14909 Declare.
14910 * elfread.c: Include mdebugread.h.
14911
14912 2019-01-09 Tom Tromey <tom@tromey.com>
14913
14914 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
14915 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
14916 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
14917 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14918 (psym_lookup_symbol, psym_find_last_source_symtab)
14919 (psym_forget_cached_source_info, psym_print_stats)
14920 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14921 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14922 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14923 (psym_find_compunit_symtab_by_address)
14924 (maintenance_print_psymbols, maintenance_info_psymtabs)
14925 (maintenance_check_psymtabs): Use ranged for.
14926 * psymtab.h (class objfile_psymtabs): New.
14927 (require_partial_symbols): Return objfile_psymtabs.
14928 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14929
14930 2019-01-09 Tom Tromey <tom@tromey.com>
14931
14932 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14933 (find_pc_mapped_section, list_overlays_command)
14934 (map_overlay_command, unmap_overlay_command)
14935 (simple_overlay_update): Use all_objfiles.
14936 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
14937 * printcmd.c (info_symbol_command): Use all_objfiles.
14938 * objfiles.h (ALL_OBJSECTIONS): Remove.
14939 * maint.c (maintenance_translate_address): Use all_objfiles.
14940 * gcore.c (gcore_create_callback): Use all_objfiles.
14941 (objfile_find_memory_regions): Likewise.
14942
14943 2019-01-09 Tom Tromey <tom@tromey.com>
14944
14945 * symtab.c (find_line_symtab, info_sources_command)
14946 (make_source_files_completion_list): Use objfile_compunits.
14947 * source.c (select_source_symtab): Use objfile_compunits.
14948 * objfiles.h (struct objfile): Update comment.
14949 (ALL_OBJFILES): Remove.
14950 (ALL_FILETABS): Remove.
14951 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
14952 objfile_compunits.
14953
14954 2019-01-09 Tom Tromey <tom@tromey.com>
14955
14956 * symmisc.c (print_objfile_statistics, dump_objfile)
14957 (maintenance_print_symbols): Use compunit_filetabs.
14958 * source.c (forget_cached_source_info_for_objfile): Use
14959 compunit_filetabs.
14960 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
14961 (ALL_FILETABS): Use compunit_filetabs.
14962 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
14963 * coffread.c (coff_symtab_read): Use compunit_filetabs.
14964
14965 2019-01-09 Tom Tromey <tom@tromey.com>
14966
14967 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
14968 (compunit_filetabs): New.
14969 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
14970 compunit_filetabs.
14971 (info_sources_command, make_source_files_completion_list): Remove
14972 declaration.
14973 * symmisc.c (print_objfile_statistics, dump_objfile)
14974 (maintenance_print_symbols): Remove declaration.
14975 (maintenance_info_symtabs): Use compunit_filetabs.
14976 (maintenance_info_line_tables): Likewise.
14977 * source.c (select_source_symtab): Change local variable name.
14978 (forget_cached_source_info_for_objfile): Remove declaration.
14979 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
14980 * objfiles.c (objfile_relocate1): Remove declaration.
14981 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14982 declaration.
14983 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
14984 * coffread.c (coff_symtab_read): Remove declaration.
14985 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
14986 compunit_filetabs.
14987
14988 2019-01-09 Tom Tromey <tom@tromey.com>
14989
14990 * symtab.c (lookup_objfile_from_block)
14991 (find_pc_sect_compunit_symtab, search_symbols)
14992 (default_collect_symbol_completion_matches_break_on): Use
14993 objfile_compunits.
14994 * objfiles.h (ALL_COMPUNITS): Remove.
14995 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
14996 * cp-support.c (add_symbol_overload_list_qualified): Use
14997 objfile_compunits.
14998 * ada-lang.c (ada_collect_symbol_completion_matches)
14999 (ada_add_global_exceptions): Use objfile_compunits.
15000
15001 2019-01-09 Tom Tromey <tom@tromey.com>
15002
15003 * source.c (select_source_symtab)
15004 (forget_cached_source_info_for_objfile): Remove declaration.
15005 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15006 declaration.
15007 * maint.c (count_symtabs_and_blocks): Remove declaration.
15008 * cp-support.c (add_symbol_overload_list_qualified): Remove
15009 declaration.
15010 * coffread.c (coff_symtab_read): Remove declaration.
15011 * symtab.c (lookup_symbol_in_objfile_symtabs)
15012 (basic_lookup_transparent_type_1): Use objfile_compunits.
15013 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15014 (info_sources_command, search_symbols)
15015 (default_collect_symbol_completion_matches_break_on)
15016 (make_source_files_completion_list): Remove declaration.
15017 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15018 (ada_collect_symbol_completion_matches)
15019 (ada_add_global_exceptions): Remove declaration.
15020 * linespec.c (iterate_over_all_matching_symtabs): Use
15021 objfile_compunits.
15022 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15023 (class objfile_compunits): New.
15024 (ALL_COMPUNITS): Use objfile_compunits.
15025 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15026 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15027 objfile_compunits.
15028 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15029
15030 2019-01-09 Tom Tromey <tom@tromey.com>
15031
15032 * symtab.c (search_symbols)
15033 (default_collect_symbol_completion_matches_break_on): Use
15034 objfile_msymbols.
15035 * ada-lang.c (ada_lookup_simple_minsym)
15036 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15037 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15038 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15039 objfile_msymbols.
15040 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15041 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15042 * objc-lang.c (find_methods): Use objfile_msymbols.
15043 (info_selectors_command, info_classes_command): Likewise.
15044 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15045 * objfiles.h (class objfile_msymbols): New.
15046 (ALL_OBJFILE_MSYMBOLS): Remove.
15047 (ALL_MSYMBOLS): Remove.
15048
15049 2019-01-09 Tom Tromey <tom@tromey.com>
15050
15051 * common/next-iterator.h (next_adapter): Add Iterator template
15052 parameter.
15053 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15054 (class all_objfiles_safe): New.
15055 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15056 * objfiles.c (put_objfile_before): Update comment.
15057 (add_separate_debug_objfile): Likewise.
15058 (free_all_objfiles): Use all_objfiles_safe.
15059 (objfile_purge_solibs): Likewise.
15060
15061 2019-01-09 Tom Tromey <tom@tromey.com>
15062
15063 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15064 (expand_symtab_containing_pc, lookup_static_symbol)
15065 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15066 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15067 all_objfiles.
15068 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15069 * breakpoint.c (create_overlay_event_breakpoint)
15070 (create_longjmp_master_breakpoint)
15071 (create_std_terminate_master_breakpoint)
15072 (create_exception_master_breakpoint): Use all_objfiles.
15073 * linux-thread-db.c (try_thread_db_load_from_pdir)
15074 (has_libpthread): Use all_objfiles.
15075 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15076 * linespec.c (iterate_over_all_matching_symtabs)
15077 (search_minsyms_for_name): Use all_objfiles.
15078 * maint.c (maintenance_info_sections): Use all_objfiles.
15079 * main.c (captured_main_1): Use all_objfiles.
15080 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15081 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15082 * guile/scm-pretty-print.c
15083 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15084 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15085 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15086 (maintenance_print_msymbols): Use all_objfiles.
15087 * source.c (select_source_symtab): Use all_objfiles.
15088 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15089 * symfile.c (remove_symbol_file_command)
15090 (expand_symtabs_matching, map_symbol_filenames): Use
15091 all_objfiles.
15092 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15093 all_objfiles.
15094 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15095 * objc-lang.c (find_methods): Use all_objfiles.
15096 * objfiles.c (have_partial_symbols, have_full_symbols)
15097 (have_minimal_symbols, qsort_cmp)
15098 (default_iterate_over_objfiles_in_search_order): Use
15099 all_objfiles.
15100 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15101 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15102 (maintenance_check_psymtabs): Use all_objfiles.
15103 (ALL_PSYMTABS): Remove.
15104 * compile/compile-object-run.c (do_module_cleanup): Use
15105 all_objfiles.
15106 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15107 * cp-support.c (add_symbol_overload_list_qualified): Use
15108 all_objfiles.
15109 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15110 Use all_objfiles.
15111 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15112 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15113 all_objfiles.
15114 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15115 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15116 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15117 Uses all_objfiles.
15118 * solib.c (solib_read_symbols): Use all_objfiles
15119
15120 2019-01-09 Tom Tromey <tom@tromey.com>
15121
15122 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15123 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15124 all_objfiles.
15125 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15126 * symmisc.c (print_symbol_bcache_statistics)
15127 (print_objfile_statistics, maintenance_print_objfiles)
15128 (maintenance_info_symtabs, maintenance_check_symtabs)
15129 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15130 all_objfiles.
15131 * source.c (forget_cached_source_info): Use all_objfiles.
15132 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15133 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15134 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15135 * objfiles.c (update_section_map): Use all_objfiles.
15136 (shared_objfile_contains_address_p): Likewise.
15137 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15138 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15139
15140 2019-01-09 Tom Tromey <tom@tromey.com>
15141
15142 * common/next-iterator.h: New file.
15143 * objfiles.h (class all_objfiles): New.
15144 (struct objfile_iterator): New.
15145
15146 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15147
15148 * NEWS: Move the description of the changed "frame", "select-frame",
15149 and "info frame" commands to the Changed commands section.
15150
15151 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15152
15153 * gdbtypes.c (check_stub_method_group): Remove handling of old
15154 mangling schemes.
15155 * linespec.c (find_methods): Likewise.
15156 * stabsread.c (read_member_functions): Likewise.
15157 * valops.c (search_struct_method): Likewise.
15158 (value_struct_elt_for_reference): Likewise.
15159 * NEWS: Mention this change.
15160
15161 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15162
15163 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15164 print_source_lines.
15165 * source.c (print_source_lines_base): Update line number check.
15166 (print_source_lines): New function.
15167 (source_lines_range::source_lines_range): New function.
15168 * source.h (class source_lines_range): New class.
15169 (print_source_lines): New declaration.
15170
15171 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15172
15173 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15174
15175 2019-01-08 Tom Tromey <tom@tromey.com>
15176 Simon Marchi <simon.marchi@ericsson.com>
15177
15178 PR gdb/24060
15179 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15180 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15181 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15182 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15183 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15184 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15185
15186 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15187
15188 * source.c (select_source_symtab): Move header comment to
15189 declaration in source.h.
15190 (forget_cached_source_info_for_objfile): Likewise.
15191 (forget_cached_source_info): Likewise.
15192 (identify_source_line): Likewise.
15193 * source.h (identify_source_line): Move declaration from symtab.h
15194 and add comment from source.c
15195 (print_source_lines): Likewise.
15196 (forget_cached_source_info_for_objfile): Likewise.
15197 (forget_cached_source_info): Likewise.
15198 (select_source_symtab): Likewise.
15199 (enum print_source_lines_flag): Move definition from symtab.h.
15200 * symtab.h (identify_source_line): Move declaration to source.h.
15201 (print_source_lines): Likewise.
15202 (forget_cached_source_info_for_objfile): Likewise.
15203 (forget_cached_source_info): Likewise.
15204 (select_source_symtab): Likewise.
15205 (enum print_source_lines_flag): Move definition to source.h.
15206 * tui/tui-hooks.c: Add 'source.h' include.
15207
15208 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15209
15210 * source.c (print_source_lines_base): Handle requests to print
15211 reverse line number sequences, and guard against empty lines
15212 string.
15213
15214 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15215
15216 * source.c (print_source_lines_base): Fix skip of '\r' if next
15217 character is '\n'.
15218
15219 2019-01-06 Tom Tromey <tom@tromey.com>
15220
15221 * c-exp.y (struct c_parse_state) <macro_original_text,
15222 expansion_obstack>: New member.
15223 (macro_original_text, expansion_obstack): Remove globals.
15224 (scan_macro_expansion, scanning_macro_expansion)
15225 (finished_macro_expansion): Update.
15226 (scan_macro_cleanup): Remove.
15227 (yylex, c_parse): Update.
15228
15229 2019-01-06 Tom Tromey <tom@tromey.com>
15230
15231 * c-exp.y (struct c_parse_state) <strings>: New member.
15232 (operator_stoken): Update.
15233
15234 2019-01-06 Tom Tromey <tom@tromey.com>
15235
15236 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15237 (union type_stack_elt) <typelist_val>: Now a pointer to
15238 std::vector.
15239 (type_stack_cleanup): Don't declare.
15240 (push_typelist): Update.
15241 * parse.c (pop_typelist): Return a std::vector.
15242 (push_typelist): Take a std::vector.
15243 (follow_types): Update. Do not free args.
15244 (type_stack_cleanup): Remove.
15245 * c-exp.y (struct c_parse_state): New.
15246 (cpstate): New global.
15247 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15248 (nonempty_typelist): Update.
15249 (func_mod): Create a new vector.
15250 (c_parse): Create a c_parse_state.
15251 (check_parameter_typelist): Do not delete params.
15252 (function_method): Update. Do not delete type_list.
15253
15254 2019-01-06 Tom Tromey <tom@tromey.com>
15255
15256 PR gdb/28155:
15257 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15258 check_typedef.
15259 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15260 (print_return_value): Likewise.
15261
15262 2019-01-05 Tom Tromey <tom@tromey.com>
15263
15264 * contrib/cleanup_check.py: Remove.
15265 * contrib/gcc-with-excheck: Remove.
15266 * contrib/exsummary.py: Remove.
15267 * contrib/excheck.py: Remove.
15268
15269 2019-01-05 Joel Brobecker <brobecker@adacore.com>
15270
15271 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15272 NULL. Initialize tpprev to NULL instead of assigning it
15273 to NULL on the next statement.
15274 * windows-nat.c (windows_delete_thread): Remove check for
15275 main_thread_id before printing thread exit notifications.
15276 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15277 Remove thread ID check against main_thread_id.
15278 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15279 windows_delete_thread.
15280 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15281
15282 2019-01-04 Tom Tromey <tom@tromey.com>
15283
15284 * compile/compile.c (_initialize_compile): Use upper case for
15285 metasyntactic variables.
15286 * symmisc.c (_initialize_symmisc): Use upper case for
15287 metasyntactic variables.
15288 * psymtab.c (_initialize_psymtab): Use upper case for
15289 metasyntactic variables.
15290 * demangle.c (demangle_command): Use upper case for metasyntactic
15291 variables.
15292 (_initialize_demangler): Likewise.
15293 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15294 variables.
15295
15296 2019-01-03 Tom Tromey <tom@tromey.com>
15297
15298 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15299
15300 2019-01-03 Tom Tromey <tom@tromey.com>
15301
15302 * python/py-symtab.c (salpy_str): Update.
15303 (struct salpy_sal_object) <symtab>: Now a PyObject.
15304 (salpy_dealloc): Update.
15305 (del_objfile_sal): Use gdbpy_ref.
15306
15307 2019-01-03 Tom Tromey <tom@tromey.com>
15308
15309 * python/py-type.c (convert_field): Use new_reference. Return
15310 gdbpy_ref.
15311 (make_fielditem): Return gdbpy_ref.
15312 (typy_fields): Update.
15313 (typy_getitem): Update.
15314 (field_name): Return gdbpy_ref. Use new_reference.
15315 (typy_iterator_iternext): Update.
15316
15317 2019-01-03 Tom Tromey <tom@tromey.com>
15318
15319 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15320
15321 2019-01-03 Tom Tromey <tom@tromey.com>
15322
15323 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15324 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15325 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15326 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15327 (pspy_set_type_printers): Likewise.
15328 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15329 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15330 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15331 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15332 (objfpy_set_type_printers): Likewise.
15333
15334 2019-01-03 Tom Tromey <tom@tromey.com>
15335
15336 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15337 (gdbpy_print_stack): Use gdbpy_err_fetch.
15338 * python/python-internal.h (class gdbpy_err_fetch): New class.
15339 (class gdbpy_enter) <m_error_type, m_error_value,
15340 m_error_traceback>: Remove.
15341 <m_error>: New member.
15342 (gdbpy_exception_to_string): Don't declare.
15343 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15344 * python/py-value.c (convert_value_from_python): Use
15345 gdbpy_err_fetch.
15346 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15347 gdbpy_exception_to_string.
15348 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15349 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15350 gdbpy_err_fetch.
15351
15352 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15353
15354 * linux-nat.c (delete_lwp_cleanup): Delete.
15355 (struct lwp_deleter): New struct.
15356 (lwp_info_up): New typedef.
15357 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15358 lwp_info_up.
15359
15360 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15361
15362 * linux-fork.c (class scoped_switch_fork_info): New class.
15363 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15364
15365 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15366
15367 * valops.c (find_overload_match): Remove use of null_cleanup, and
15368 calls to do_cleanups.
15369
15370 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15371
15372 * compile/compile-cplus-types.c
15373 (compile_cplus_instance::decl_name): Handle changes to
15374 cp_func_name.
15375 * cp-support.c (cp_func_name): Update header comment, update
15376 return type.
15377 * cp-support.h (cp_func_name): Update return type in declaration.
15378 * valops.c (find_overload_match): Move temp_func local to top
15379 level of function and change its type. Use temp_func to hold and
15380 delete temporary string obtained from cp_func_name.
15381
15382 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15383
15384 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15385 gdb::char_vector, remove cleanup, and update uses of `msg`.
15386
15387 2019-01-03 Jim Wilson <jimw@sifive.com>
15388
15389 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15390
15391 2019-01-02 Tom Tromey <tom@tromey.com>
15392
15393 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15394 (tdesc_parse_xml): Remove cleanups.
15395 * target-descriptions.h (make_cleanup_free_target_description):
15396 Don't declare.
15397 (target_desc_deleter): New struct.
15398 (target_desc_up): New typedef.
15399 * target-descriptions.c (target_desc_deleter::operator()): Rename
15400 from free_target_description.
15401 (make_cleanup_free_target_description): Remove.
15402
15403 2019-01-02 Tom Tromey <tom@tromey.com>
15404
15405 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15406 constructor, destructor.
15407 (linespec_parser): Remove typedef.
15408 (~linespec_parser): Rename from linespec_parser_delete.
15409 (linespec_lex_to_end, linespec_complete_label)
15410 (linespec_complete): Update.
15411 (decode_line_full): Remove cleanups.
15412 (decode_line_1): Update.
15413
15414 2019-01-02 Tom Tromey <tom@tromey.com>
15415
15416 * python/python-internal.h (inferior_to_inferior_object): Change
15417 return type.
15418 * python/py-exitedevent.c (create_exited_event_object): Update.
15419 * python/py-inferior.c (inferior_to_inferior_object): Return
15420 gdbpy_ref.
15421 (python_new_inferior, python_inferior_deleted)
15422 (thread_to_thread_object, delete_thread_object)
15423 (build_inferior_list, gdbpy_selected_inferior): Update.
15424 * python/py-infthread.c (create_thread_object): Update. Also fail
15425 if inferior_to_inferior_object fails.
15426
15427 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15428
15429 * inferior.h (class inferior) <displaced_step_state>: New field.
15430 * infrun.h (struct displaced_step_state): Move here from
15431 infrun.c. Initialize fields, add constructor.
15432 <inf>: Remove field.
15433 <reset>: New method.
15434 * infrun.c (struct displaced_step_inferior_state): Move to
15435 infrun.h.
15436 (displaced_step_inferior_states): Remove.
15437 (get_displaced_stepping_state): Adust.
15438 (displaced_step_in_progress_any_inferior): Adjust.
15439 (displaced_step_in_progress_thread): Adjust.
15440 (displaced_step_in_progress): Adjust.
15441 (add_displaced_stepping_state): Remove.
15442 (get_displaced_step_closure_by_addr): Adjust.
15443 (remove_displaced_stepping_state): Remove.
15444 (infrun_inferior_exit): Call displaced_step_state.reset.
15445 (use_displaced_stepping): Don't check for NULL.
15446 (displaced_step_prepare_throw): Call
15447 get_displaced_stepping_state.
15448 (displaced_step_fixup): Don't check for NULL.
15449 (prepare_for_detach): Don't check for NULL.
15450
15451 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15452
15453 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15454 in case of call that did not complete.
15455
15456 2019-01-02 Andrey Utkin <autkin@undo.io>
15457
15458 * symfile.c (find_separate_debug_file): Fix search of debug files for
15459 remote debuggee.
15460
15461 2019-01-02 Tom Tromey <tom@tromey.com>
15462
15463 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15464 indentation.
15465 * python/py-frame.c (frapy_older): Remove cast.
15466 (frapy_newer): Likewise.
15467 * python/py-breakpoint.c (local_setattro): Remove cast.
15468 * python/py-arch.c (archpy_name): Remove local variable.
15469 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15470
15471 2019-01-02 Joel Brobecker <brobecker@adacore.com>
15472
15473 * unittests/basic_string_view/element_access/char/empty.cc:
15474 Fix year range in copyright header.
15475
15476 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15477
15478 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15479 Delete.
15480 <operator==>: Update with for removed field.
15481 <hash>: Likewise.
15482 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15483 <isa_features>: ...this.
15484 <abi_features>: New field.
15485 (riscv_isa_flen): Update comment.
15486 (riscv_abi_xlen): New declaration.
15487 (riscv_abi_flen): New declaration.
15488 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15489 isa_features.
15490 (riscv_abi_xlen): New function.
15491 (riscv_isa_flen): Update to get answer from isa_features.
15492 (riscv_abi_flen): New function.
15493 (riscv_has_fp_abi): Update to get answer from abi_features.
15494 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15495 xlen and flen.
15496 (riscv_call_info) <xlen, flen>: Update comment.
15497 (riscv_call_arg_struct): Remove invalid assertions
15498 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15499 is removed.
15500 (riscv_gdbarch_init): Gather isa features and abi features
15501 separately, ensure both match on the gdbarch when reusing an old
15502 gdbarch. Relax an error check to allow 32-bit abi float to run on
15503 a target with 64-bit float hardware.
15504
15505 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15506
15507 * source.c (search_command_helper): Stop reverse search
15508 when line 1 has been searched.
15509
15510 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15511
15512 * record-full.c (record_full_base_target::close): Rewrite
15513 record_full_core_buf_list free logic.
15514
15515 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15516
15517 * break-catch-syscall.c (print_one_catch_syscall): xfree
15518 the last text.
15519
15520 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15521
15522 * top.c (print_gdb_version): Update Copyright year in version
15523 message.
15524
15525 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15526
15527 Update copyright year range in all GDB files.
15528
15529 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
15530
15531 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
15532
15533 For older changes see ChangeLog-2018.
15534 \f
15535 Local Variables:
15536 mode: change-log
15537 left-margin: 8
15538 fill-column: 74
15539 version-control: never
15540 coding: utf-8
15541 End:
15542
This page took 0.41207 seconds and 5 git commands to generate.