1 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
3 * inferior.c (exit_inferior_silent): Remove.
5 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
7 * dictionary.c (dict_empty, mdict_empty): Remove.
8 * dictionary.c (mdict_empty): Remove.
10 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
12 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
13 (arc_insn_get_memory_offset): Likewise.
14 (arc_insn_dump): Likewise.
15 * cp-support.c (test_cp_symbol_name_matches): Likewise.
16 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
17 * dictionary.c (dict_iterator_next): Likewise.
18 (dict_iter_match_first): Likewise.
19 (dict_iter_match_next): Likewise.
20 * f-lang.c (evaluate_subexp_f): Likewise.
21 * hppa-tdep.c (hppa_read_pc): Likewise.
22 * i386-tdep.c (i386_floatformat_for_type): Likewise.
23 * parse.c (write_exp_elt_msym): Likewise.
24 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
25 * remote.c (remote_packet_size): Likewise.
26 (remote_notif_stop_parse): Likewise.
27 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
28 * s12z-tdep.c (s12z_disassemble_info): Likewise.
29 * source.c (prepare_path_for_appending): Likewise.
30 * sparc64-linux-tdep.c
31 (sparc64_linux_handle_segmentation_fault); Likewise.
32 * stack.c (frame_selection_by_function_completer): Likewise.
34 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
36 * completer.c (set_gdb_completion_word_break_characters):
39 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
41 * dwarf-index-write.c: Include dwarf-index-write.h.
42 * mi/mi-interp.c: Include mi/mi-interp.h.
44 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
46 * aarch32-tdep.c: Include aarch32-tdep.h.
47 * aarch32-tdep.h: Forward-declare struct target_desc.
49 2019-11-26 Christian Biesinger <cbiesinger@google.com>
51 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
53 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
54 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
56 2019-11-25 Tom de Vries <tdevries@suse.de>
58 * contrib/words.sh: Add -c option.
60 2019-11-25 Christian Biesinger <cbiesinger@google.com>
62 * solib.c (solib_find_1): Change int to bool.
63 (exec_file_find): Change int to bool.
64 (solib_find): Change int to bool.
65 (solib_read_symbols): Change int to bool.
66 (solib_used): Change int to bool.
67 (solib_add): Change int to bool.
68 (info_sharedlibrary_command): Change int to bool.
69 (solib_contains_address_p): Change int to bool.
70 (solib_keep_data_in_core): Change int to bool.
71 (in_solib_dynsym_resolve_code): Change int to bool.
72 (reload_shared_libraries_1): Change int to bool.
73 (gdb_sysroot_changed): Change int to bool.
74 * solib.h (solib_read_symbols): Change int to bool.
75 (solib_contains_address_p): Change int to bool.
76 (solib_keep_data_in_core): Change int to bool.
77 (in_solib_dynsym_resolve_code): Change int to bool.
78 (libpthread_name_p): Change int to bool.
80 2019-11-25 Luis Machado <luis.machado@linaro.org>
82 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
83 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
84 (remote_packet_max_chars): New static global.
85 (show_remote_packet_max_chars): New function.
86 (remote_target::putpkt_binary): Adjust to use new
87 remote_packet_max_chars option.
88 (remote_target::getpkt_or_notif_sane_1): Likewise.
89 (_initialize_remote): Register new remote-packet-max-chars option.
91 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
93 * m68k-linux-nat.c: Include gdbarch.h.
95 2019-11-24 Tom Tromey <tom@tromey.com>
97 * symfile.c (read_symbols): Update.
98 * psymtab.c (require_partial_symbols): Change type of "verbose" to
100 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
101 (psym_lookup_symbol, psym_find_last_source_symtab)
102 (psym_forget_cached_source_info, psym_print_stats)
103 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
104 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
105 (psym_map_matching_symbols, psym_expand_symtabs_matching)
106 (psym_find_compunit_symtab_by_address)
107 (maintenance_print_psymbols, maintenance_info_psymtabs)
108 (maintenance_check_psymtabs): Update.
109 * psymtab.h (require_partial_symbols): Change type of "verbose" to
112 2019-11-22 Tom Tromey <tom@tromey.com>
114 * observable.h: Update comments.
116 2019-11-22 Tom Tromey <tromey@adacore.com>
118 * ada-tasks.c (ada_task_is_alive): Make parameter const.
119 (print_ada_task_info): Don't try to fetch thread id if task is not
122 2019-11-22 Christian Biesinger <cbiesinger@google.com>
125 * ada-lang.c (sort_choices): Update.
126 (ada_print_symbol_signature): Update.
127 (resolve_subexp): Update.
128 (ada_parse_renaming): Update.
129 (ada_read_renaming_var_value): Update.
130 (lesseq_defined_than): Update.
131 (remove_extra_symbols): Update.
132 (remove_irrelevant_renamings): Update.
133 (ada_add_block_symbols): Update.
134 (ada_collect_symbol_completion_matches): Update.
135 (ada_is_renaming_symbol): Update.
136 (aggregate_assign_from_choices): Update.
137 (ada_evaluate_subexp): Update.
138 (ada_has_this_exception_support): Update.
139 (ada_is_non_standard_exception_sym): Update.
140 (ada_add_exceptions_from_frame): Update.
141 (ada_add_global_exceptions): Update.
142 (ada_print_subexp): Update.
143 * ax-gdb.c (gen_var_ref): Update.
144 (gen_maybe_namespace_elt): Update.
145 (gen_expr_for_cast): Update.
148 * blockframe.c (find_pc_partial_function): Update.
149 * breakpoint.c (print_breakpoint_location): Update.
150 (update_static_tracepoint): Update.
151 * btrace.c (ftrace_print_function_name): Update.
152 (ftrace_function_switched): Update.
153 * buildsym.c (find_symbol_in_list): Update.
155 * c-typeprint.c (c_print_typedef): Update.
156 (c_type_print_template_args): Update.
157 * cli/cli-cmds.c (edit_command): Update.
158 (list_command): Update.
159 (print_sal_location): Update.
160 * coffread.c (patch_opaque_types): Update.
161 (process_coff_symbol): Update.
162 (coff_read_enum_type): Update.
163 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
164 (convert_one_symbol): Update.
165 (hash_symname): Update.
166 (eq_symname): Update.
167 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
168 * compile/compile-cplus-types.c (debug_print_scope): Update.
169 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
170 * compile/compile-object-load.c (get_out_value_type): Update.
171 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
172 (search_symbol_list): Update.
173 (cp_lookup_symbol_imports_or_template): Update.
174 * cp-support.c (overload_list_add_symbol): Update.
175 * ctfread.c (psymtab_to_symtab): Update.
176 * dbxread.c (cp_set_block_scope): Update.
177 * dictionary.c (iter_match_first_hashed): Update.
178 (iter_match_next_hashed): Update.
179 (insert_symbol_hashed): Update.
180 (iter_match_next_linear): Update.
181 * dictionary.h: Update.
182 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
183 (locexpr_describe_location_piece): Update.
184 (locexpr_describe_location_1): Update.
185 (locexpr_generate_c_location): Update.
186 (loclist_describe_location): Update.
187 (loclist_generate_c_location): Update.
188 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
189 (read_func_scope): Update.
190 (process_enumeration_scope): Update.
191 (new_symbol): Update.
192 (dwarf2_const_value): Update.
193 (dwarf2_symbol_mark_computed): Update.
194 * eval.c (evaluate_funcall): Update.
195 (evaluate_subexp_standard): Update.
196 * expprint.c (print_subexp_standard): Update.
197 (dump_subexp_body_standard): Update.
198 * f-valprint.c (info_common_command_for_block): Update.
199 * findvar.c (get_hosting_frame): Update.
200 (default_read_var_value): Update.
201 * go-lang.c (go_symbol_package_name): Update.
202 * guile/scm-block.c (bkscm_print_block_smob): Update.
203 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
204 (gdbscm_symbol_name): Update.
205 (gdbscm_symbol_linkage_name): Update.
206 (gdbscm_symbol_print_name): Update.
207 * infcall.c (get_function_name): Update.
208 * infcmd.c (jump_command): Update.
209 (finish_command): Update.
210 * infrun.c (insert_exception_resume_breakpoint): Update.
211 * linespec.c (canonicalize_linespec): Update.
212 (create_sals_line_offset): Update.
213 (convert_linespec_to_sals): Update.
214 (complete_label): Update.
215 (find_label_symbols_in_block): Update.
216 * m2-typeprint.c (m2_print_typedef): Update.
217 * mdebugread.c (mdebug_reg_to_regnum): Update.
218 (parse_symbol): Update.
219 (mylookup_symbol): Update.
220 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
221 (list_args_or_locals): Update.
222 * objc-lang.c (compare_selectors): Update.
223 (info_selectors_command): Update.
224 (compare_classes): Update.
225 (info_classes_command): Update.
227 * p-typeprint.c (pascal_print_typedef): Update.
228 * printcmd.c (build_address_symbolic): Update.
229 (info_address_command): Update.
230 (print_variable_and_value): Update.
231 * python/py-framefilter.c (extract_sym): Update.
232 (py_print_single_arg): Update.
233 * python/py-symbol.c (sympy_str): Update.
234 (sympy_get_name): Update.
235 (sympy_get_linkage_name): Update.
236 * python/python.c (gdbpy_rbreak): Update.
237 * record-btrace.c (btrace_get_bfun_name): Update.
238 (btrace_call_history): Update.
239 * rust-lang.c (rust_print_typedef): Update.
240 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
241 * stabsread.c (stab_reg_to_regnum): Update.
242 (define_symbol): Update.
243 (read_enum_type): Update.
244 (common_block_end): Update.
245 (cleanup_undefined_types_1): Update.
246 (scan_file_globals): Update.
247 * stack.c (print_frame_arg): Update.
248 (print_frame_args): Update.
249 (find_frame_funname): Update.
250 (info_frame_command_core): Update.
251 (iterate_over_block_locals): Update.
252 (print_block_frame_labels): Update.
253 (do_print_variable_and_value): Update.
254 (iterate_over_block_arg_vars): Update.
255 (return_command): Update.
256 * symmisc.c (dump_symtab_1): Update.
257 (print_symbol): Update.
258 * symtab.c (eq_symbol_entry): Update.
259 (symbol_cache_dump): Update.
260 (lookup_language_this): Update.
261 (find_pc_sect_line): Update.
262 (skip_prologue_sal): Update.
263 (symbol_search::compare_search_syms): Update.
264 (treg_matches_sym_type_name): Update.
265 (search_symbols): Update.
266 (print_symbol_info): Update.
267 (rbreak_command): Update.
268 (completion_list_add_symbol): Update.
269 (find_gnu_ifunc): Update.
270 (get_symbol_address): Update.
271 (search_module_symbols): Update.
272 (info_module_subcommand): Update.
273 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
274 (SYMBOL_LINKAGE_NAME): Remove.
275 (SYMBOL_DEMANGLED_NAME): Remove.
276 (SYMBOL_PRINT_NAME): Remove.
277 (SYMBOL_SEARCH_NAME): Remove.
278 * tracepoint.c (set_traceframe_context): Update.
279 (validate_actionline): Update.
280 (collection_list::collect_symbol): Update.
281 (encode_actions_1): Update.
282 (info_scope_command): Update.
283 (print_one_static_tracepoint_marker): Update.
284 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
285 * valops.c (address_of_variable): Update.
286 (find_overload_match): Update.
287 (find_oload_champ): Update.
289 2019-11-22 Christian Biesinger <cbiesinger@google.com>
291 * ada-lang.c (ada_lookup_simple_minsym): Update.
292 (ada_collect_symbol_completion_matches): Update.
293 * ada-tasks.c (read_atcb): Update.
294 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
295 (amd64_windows_skip_trampoline_code): Update.
296 * arm-tdep.c (skip_prologue_function): Update.
297 (arm_skip_stack_protector): Update.
298 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
299 (arm_wince_skip_main_prologue): Update.
300 * ax-gdb.c (gen_expr): Update.
301 * block.c (call_site_for_pc): Update.
302 * blockframe.c (find_pc_partial_function): Update.
303 * breakpoint.c (set_breakpoint_location_function): Update.
304 * btrace.c (ftrace_print_function_name): Update.
305 (ftrace_function_switched): Update.
306 * c-valprint.c (print_unpacked_pointer): Update.
307 * coffread.c (coff_symfile_read): Update.
308 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
309 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
310 * dwarf-index-write.c (write_psymbols): Update.
311 * dwarf2loc.c (call_site_to_target_addr): Update.
312 (func_verify_no_selftailcall): Update.
313 (tailcall_dump): Update.
314 (call_site_find_chain_1): Update.
315 (dwarf_expr_reg_to_entry_parameter): Update.
316 * elfread.c (elf_gnu_ifunc_record_cache): Update.
317 * eval.c (evaluate_funcall): Update.
318 (evaluate_subexp_standard): Update.
319 (evaluate_subexp_for_sizeof): Update.
320 * expprint.c (print_subexp_standard): Update.
321 (dump_subexp_body_standard): Update.
322 * frame.c (get_prev_frame_always_1): Update.
323 * frv-tdep.c (frv_skip_main_prologue): Update.
324 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
325 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
326 (gnuv3_get_typename_from_type_info): Update.
327 (gnuv3_skip_trampoline): Update.
328 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
329 * i386-tdep.c (i386_skip_main_prologue): Update.
330 (i386_pe_skip_trampoline_code): Update.
331 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
332 * infcall.c (get_function_name): Update.
333 * linespec.c (minsym_found): Update.
334 * linux-fork.c (info_checkpoints_command): Update.
335 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
336 (m32c_m16c_pointer_to_address): Update.
337 * maint.c (maintenance_translate_address): Update.
338 * minsyms.c (add_minsym_to_hash_table): Update.
339 (add_minsym_to_demangled_hash_table): Update.
340 (lookup_minimal_symbol_mangled): Update.
341 (lookup_minimal_symbol_demangled): Update.
342 (lookup_minimal_symbol_linkage): Update.
343 (lookup_minimal_symbol_text): Update.
344 (lookup_minimal_symbol_by_pc_name): Update.
345 (minimal_symbol_is_less_than): Update.
346 (compact_minimal_symbols): Update.
347 (build_minimal_symbol_hash_tables): Update.
348 (find_solib_trampoline_target): Update.
349 * mips-tdep.c (mips_stub_frame_sniffer): Update.
350 (mips_skip_pic_trampoline_code): Update.
351 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
352 * objc-lang.c (info_selectors_command): Update.
353 (info_classes_command): Update.
354 (find_methods): Update.
356 * p-valprint.c (pascal_val_print): Update.
357 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
358 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
359 * printcmd.c (build_address_symbolic): Update.
360 (info_symbol_command): Update.
361 * psymtab.c (psymbol_name_matches): Update.
362 (match_partial_symbol): Update.
363 (lookup_partial_symbol): Update.
364 (print_partial_symbols): Update.
365 (sort_pst_symbols): Update.
366 (maintenance_check_psymtabs): Update.
367 * python/py-framefilter.c (py_print_frame): Update.
368 * python/python.c (gdbpy_rbreak): Update.
369 * record-btrace.c (btrace_get_bfun_name): Update.
370 (btrace_call_history): Update.
371 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
372 (rs6000_skip_trampoline_code): Update.
373 * sol-thread.c (info_cb): Update.
374 * stabsread.c (scan_file_globals): Update.
375 * stack.c (find_frame_funname): Update.
376 (info_frame_command_core): Update.
377 * symmisc.c (dump_msymbols): Update.
378 * symtab.c (symbol_natural_name): Rename to..,
379 (general_symbol_info::natural_name): ...this.
380 (symbol_demangled_name): Rename to...
381 (general_symbol_info::demangled_name): ...this.
382 (symbol_search_name): Rename to...
383 (general_symbol_info::search_name): ...this.
384 (symbol_matches_search_name): Update.
385 (find_pc_sect_line): Update.
386 (skip_prologue_sal): Update.
387 (search_symbols): Update.
388 (print_msymbol_info): Update.
389 (rbreak_command): Update.
390 (completion_list_add_msymbol): Update.
391 (completion_list_objc_symbol): Update.
392 (get_msymbol_address): Update.
393 * symtab.h (struct general_symbol_info): Add member functions
394 natural_name (), linkage_name (), print_name (), demangled_name (),
396 (SYMBOL_NATURAL_NAME): Update.
397 (symbol_natural_name): Move to a member function on general_symbol_info.
398 (SYMBOL_DEMANGLED_NAME): Update.
399 (symbol_demangled_name): Move to a member function on
401 (SYMBOL_SEARCH_NAME): Update.
402 (symbol_search_name): Move to a member function on general_symbol_info.
403 (MSYMBOL_NATURAL_NAME): Remove.
404 (MSYMBOL_LINKAGE_NAME): Remove.
405 (MSYMBOL_PRINT_NAME): Remove.
406 (MSYMBOL_DEMANGLED_NAME): Remove.
407 (MSYMBOL_SEARCH_NAME): Remove.
408 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
410 2019-11-22 Christian Biesinger <cbiesinger@google.com>
412 * symtab.c (create_demangled_names_hash): Use per_bfd->
413 minimal_symbol_count for computing the initial size, if greater
414 than our default size.
416 2019-11-22 Tom de Vries <tdevries@suse.de>
418 * contrib/words.sh: Improve words extraction.
420 2019-11-22 Tom de Vries <tdevries@suse.de>
422 * contrib/words.sh: Combine sed invocations.
424 2019-11-21 Christian Biesinger <cbiesinger@google.com>
426 * Makefile.in: Update.
427 * demangle.c: Rename to...
428 * gdb-demangle.c: ..this.
429 (is_cplus_marker): Change return type to bool.
430 (_initialize_demangler): Rename to...
431 (_initialize_gdb_demangle): ...this.
432 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
433 * symtab.h (demangle): Remove declaration; instead include
436 2019-11-21 Tom Tromey <tromey@adacore.com>
438 * gdbsupport/format.c (format_pieces): Parse %I64d.
439 * unittests/format_pieces-selftests.c (test_windows_formats): New
441 (run_tests): Call it.
443 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
445 Byte reverse display of variables with DW_END_big, DW_END_little
446 (DW_AT_endianity) dwarf attributes if different than the native
448 * ada-lang.c (ada_value_binop):
449 Use type_byte_order instead of gdbarch_byte_order.
450 * ada-valprint.c (printstr):
451 (ada_val_print_string):
452 * ada-lang.c (value_pointer):
454 Use type_byte_order instead of gdbarch_byte_order.
455 * c-lang.c (c_get_string):
456 Use type_byte_order instead of gdbarch_byte_order.
457 * c-valprint.c (c_val_print_array):
458 Use type_byte_order instead of gdbarch_byte_order.
459 * cp-valprint.c (cp_print_class_member):
460 Use type_byte_order instead of gdbarch_byte_order.
461 * dwarf2loc.c (rw_pieced_value):
462 Use type_byte_order instead of gdbarch_byte_order.
463 * dwarf2read.c (read_base_type): Handle DW_END_big,
465 * f-lang.c (f_get_encoding):
466 Use type_byte_order instead of gdbarch_byte_order.
467 * findvar.c (default_read_var_value):
468 Use type_byte_order instead of gdbarch_byte_order.
469 * gdbtypes.c (check_types_equal):
470 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
471 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
472 and TYPE_ENDIANITY_LITTLE if set.
473 (type_byte_order): new function.
474 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
475 (struct main_type) <flag_endianity_not_default>:
477 (type_byte_order): New function.
478 * infcmd.c (default_print_one_register_info):
479 Use type_byte_order instead of gdbarch_byte_order.
480 * p-lang.c (pascal_printstr):
481 Use type_byte_order instead of gdbarch_byte_order.
482 * p-valprint.c (pascal_val_print):
483 Use type_byte_order instead of gdbarch_byte_order.
484 * printcmd.c (print_scalar_formatted):
485 Use type_byte_order instead of gdbarch_byte_order.
486 * solib-darwin.c (darwin_current_sos):
487 Use type_byte_order instead of gdbarch_byte_order.
488 * solib-svr4.c (solib_svr4_r_ldsomap):
489 Use type_byte_order instead of gdbarch_byte_order.
490 * stap-probe.c (stap_modify_semaphore):
491 Use type_byte_order instead of gdbarch_byte_order.
492 * target-float.c (target_float_same_format_p):
493 Use type_byte_order instead of gdbarch_byte_order.
494 * valarith.c (scalar_binop):
496 Use type_byte_order instead of gdbarch_byte_order.
497 * valops.c (value_cast):
498 Use type_byte_order instead of gdbarch_byte_order.
499 * valprint.c (generic_emit_char):
502 Use type_byte_order instead of gdbarch_byte_order.
503 * value.c (unpack_long):
504 (unpack_bits_as_long):
505 (unpack_value_bitfield):
508 (pack_unsigned_long):
509 Use type_byte_order instead of gdbarch_byte_order.
510 * findvar.c (unsigned_pointer_to_address):
511 (signed_pointer_to_address):
512 (unsigned_address_to_pointer):
513 (address_to_signed_pointer):
514 (default_read_var_value):
515 (default_value_from_register):
516 Use type_byte_order instead of gdbarch_byte_order.
517 * gnu-v3-abi.c (gnuv3_make_method_ptr):
518 Use type_byte_order instead of gdbarch_byte_order.
519 * riscv-tdep.c (riscv_print_one_register_info):
520 Use type_byte_order instead of gdbarch_byte_order.
522 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
524 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
525 (current_ui_gdb_stdin_ptr): Likewise.
526 (current_ui_gdb_stderr_ptr): Likewise.
527 (current_ui_gdb_stdlog_ptr): Likewise.
528 (current_ui_current_uiout_ptr): Likewise.
529 (gen_ret_current_ui_field_ptr): Remove.
531 2019-11-21 Tom de Vries <tdevries@suse.de>
534 * cli/cli-script.c (execute_control_command): Only switch to
535 INTERP_CONSOLE's ui_out when INTERP_MI is active.
537 2019-11-19 Tom Tromey <tom@tromey.com>
539 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
540 Now static. Change type of "name".
541 (tui_set_win_height_command): Don't copy "arg".
542 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
543 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
545 2019-11-19 Ali Tamur <tamur@google.com>
547 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
548 "if (attr != nullptr)".
549 (dwarf2_find_base_address): Likewise.
550 (dwarf2_build_include_psymtabs): Likewise.
551 (read_cutu_die_from_dwo): Likewise.
552 (read_func_scope): Likewise.
553 (read_call_site_scope): Likewise.
554 (dwarf2_get_pc_bounds): Likewise.
555 (dwarf2_record_block_ranges): Likewise.
556 (dwarf2_add_field): Likewise.
557 (dwarf2_add_member_fn): Likewise.
558 (read_structure_type): Likewise.
559 (read_enumeration_type): Likewise.
560 (read_array_type): Likewise.
561 (read_array_order): Likewise.
562 (read_set_type): Likewise.
563 (read_common_block): Likewise.
564 (read_tag_reference_type): Likewise.
565 (read_tag_string_type): Likewise.
566 (read_subroutine_type): Likewise.
567 (read_base_type): Likewise.
568 (read_subrange_type): Likewise.
569 (new_symbol): Likewise.
570 (prepare_one_comp_unit): Likewise.
572 2019-11-19 Tom Tromey <tromey@adacore.com>
574 * windows-nat.c (windows_nat_target::attach): Include GetLastError
575 result in error when DebugActiveProcess fails.
577 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
578 Pedro Alves <palves@redhat.com>
580 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
581 * target.c (target_stack::push): Call 'unpush' if there's a
582 target on top of the stack.
584 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
586 * python/py-block.c (blpy_dealloc): Call tp_free.
587 (blpy_block_syms_dealloc): Likewise.
588 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
589 * python/py-inferior.c (infpy_dealloc): Likewise.
590 * python/py-lazy-string.c (stpy_dealloc): Likewise.
591 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
592 * python/py-symbol.c (sympy_dealloc): Likewise.
593 * python/py-symtab.c (stpy_dealloc): Likewise.
594 * python/py-type.c (typy_iterator_dealloc): Likewise.
596 2019-11-18 Christian Biesinger <cbiesinger@google.com>
598 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
599 constructor instead of using a class initializer.
601 2019-11-15 Christian Biesinger <cbiesinger@google.com>
603 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
604 * configure: Regenerate.
605 * configure.ac: Don't source common.host.
606 * gdbsupport/common.host: Remove.
607 * gdbsupport/mingw-strerror.c: Remove.
608 * gdbsupport/posix-strerror.c: Rename to...
609 * gdbsupport/safe-strerror.c: ...this.
611 2019-11-15 Christian Biesinger <cbiesinger@google.com>
613 * maint.c (scoped_command_stats::print_time): Use localtime_r
614 instead of localtime (provided through gnulib if necessary).
615 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
618 2019-11-15 Christian Biesinger <cbiesinger@google.com>
620 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
621 avoid compile errors.
623 2019-11-15 Christian Biesinger <cbiesinger@google.com>
625 * config.in: Regenerate.
626 * configure: Regenerate.
627 * gdbsupport/common.m4: No longer check for strerror_r.
628 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
629 POSIX version of strerror_r, now that gnulib provides it if
632 2019-11-14 Christian Biesinger <cbiesinger@google.com>
634 * README (`configure' options): Update.
636 2019-11-14 Tom Tromey <tromey@adacore.com>
638 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
639 expected type for the RHS if the LHS is a convenience variable.
641 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
643 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
644 Provide explicit default and copy constructor.
646 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
648 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
649 only call Py_INCREF (newbp) in the bppy_pending_object case.
651 2019-11-13 Tom Tromey <tromey@adacore.com>
654 * psympriv.h (partial_symbol): Remove static assert.
655 * symtab.h (general_symbol_info, symbol): Remove static assert.
657 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
659 * gdbsupport/format.c (format_pieces::format_pieces): Support
660 printf 'z' size modifier.
661 * gdbsupport/format.h (enum argclass): Add size_t_arg.
662 * printcmd.c (ui_printf): Handle size_t_arg.
663 * ui-out.c (ui_out::vmessage): Likewise.
664 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
666 (run_tests): Call test_format_int_sizes.
668 2019-11-12 Christian Biesinger <cbiesinger@google.com>
670 * ada-exp.y (write_ambiguous_var): Update.
671 * buildsym.c (add_symbol_to_list): Update.
672 * dwarf2read.c (read_variable): Update.
673 (new_symbol): Update.
674 * jit.c (finalize_symtab): Update.
675 * language.c (language_alloc_type_symbol): Update.
676 * symtab.c (fixup_symbol_section): Update.
677 (initialize_objfile_symbol_1): Move code to...
678 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
679 (allocate_symbol): Update.
680 (allocate_template_symbol): Update.
681 (get_symbol_address): Update.
682 * symtab.h (struct symbol): Inherit from general_symbol_info instead
683 of having as a field, and add a constructor.
684 (SYMBOL_VALUE): Update.
685 (SYMBOL_VALUE_ADDRESS): Update.
686 (SET_SYMBOL_VALUE_ADDRESS): Update.
687 (SYMBOL_VALUE_BYTES): Update.
688 (SYMBOL_VALUE_COMMON_BLOCK): Update.
689 (SYMBOL_BLOCK_VALUE): Update.
690 (SYMBOL_VALUE_CHAIN): Update.
691 (SYMBOL_LANGUAGE): Update.
692 (SYMBOL_SECTION): Update.
693 (SYMBOL_OBJ_SECTION): Update.
694 (SYMBOL_SET_LANGUAGE): Update.
695 (SYMBOL_SET_LINKAGE_NAME): Update.
696 (SYMBOL_SET_NAMES): Update.
697 (SYMBOL_NATURAL_NAME): Update.
698 (SYMBOL_LINKAGE_NAME): Update.
699 (SYMBOL_DEMANGLED_NAME): Update.
700 (SYMBOL_SEARCH_NAME): Update.
701 (SYMBOL_MATCHES_SEARCH_NAME): Update.
702 (struct symbol): Update.
703 (struct template_symbol): Update.
704 (struct rust_vtable_symbol): Update.
705 * xcoffread.c (SYMBOL_DUP): Update.
707 2019-11-12 Tom Tromey <tom@tromey.com>
709 * tui/tui-layout.c (show_layout): Set current_layout.
710 (show_source_disasm_command, show_data)
711 (show_source_or_disasm_and_command): Don't set current_layout.
713 2019-11-12 Tom Tromey <tom@tromey.com>
715 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
717 2019-11-12 Tom Tromey <tom@tromey.com>
719 * tui/tui-win.c (resize_message): New global.
720 (show_tui_resize_message): New function.
721 (tui_async_resize_screen): Print message if requested.
722 (_initialize_tui_win): Add tui-resize-message setting.
723 * NEWS: Add entry for new commands.
725 2019-11-11 Tom Tromey <tom@tromey.com>
727 * tui/tui.c (tui_initialize_readline): Add new bindable readline
730 2019-11-11 Christian Biesinger <cbiesinger@google.com>
732 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
734 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
736 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
738 * python/python-internal.h (gdbpy_lookup_static_symbols):
739 Declare new function.
740 * python/python.c (python_GdbMethods): Add
741 gdb.lookup_static_symbols method.
742 * NEWS: Mention gdb.lookup_static_symbols.
744 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
746 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
747 static block of current object file first. Also fix typo in
750 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
752 * stack.c (set_last_displayed_sal): Delete.
753 (last_displayed_sal_valid): Delete.
754 (last_displayed_pspace): Delete.
755 (last_displayed_addr): Delete.
756 (last_displayed_symtab): Delete.
757 (last_displayed_line): Delete.
758 (class last_displayed_symtab_info_type): New.
759 (last_displayed_symtab_info): New static global variable.
760 (print_frame_info): Call methods on last_displayed_symtab_info.
761 (clear_last_displayed_sal): Update header comment, and make use of
762 last_displayed_symtab_info.
763 (last_displayed_sal_is_valid): Likewise.
764 (get_last_displayed_pspace): Likewise.
765 (get_last_displayed_addr): Likewise.
766 (get_last_displayed_symtab): Likewise.
767 (get_last_displayed_line): Likewise.
768 (get_last_displayed_sal): Likewise.
769 * stack.h (clear_last_displayed_sal): Update header comment.
770 (last_displayed_sal_is_valid): Likewise.
771 (get_last_displayed_pspace): Likewise.
772 (get_last_displayed_addr): Likewise.
773 (get_last_displayed_symtab): Likewise.
774 (get_last_displayed_line): Likewise.
775 (get_last_displayed_sal): Likewise.
777 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
779 * stack.c (frame_show_address): Convert return type to bool.
780 * stack.h (frame_show_address): Likewise, and update header
783 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
785 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
786 * unittests/vec-utils-selftests.c: New file.
787 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
789 2019-11-10 Tom Tromey <tom@tromey.com>
791 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
792 (tui_highlight_win): Likewise.
793 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
794 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
795 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
796 Don't set can_highlight.
798 2019-11-10 Tom Tromey <tom@tromey.com>
800 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
801 Remove unused declaration.
803 2019-11-08 Tom Tromey <tromey@adacore.com>
805 * top.c (read_command_file): Update.
806 (command_line_input): Make return type const.
807 * python/py-gdb-readline.c: Update.
808 * linespec.c (decode_line_2): Update.
809 * defs.h (command_line_input): Make return type const.
810 * cli/cli-script.c (read_next_line): Make return type const.
811 * ada-lang.c (get_selections): Update.
813 2019-11-06 Christian Biesinger <cbiesinger@google.com>
815 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
816 * mi/mi-main.c (output_cores): Likewise.
817 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
818 (linux_xfer_osdata_modules): Likewise.
819 * remote.c (register_remote_support_xml): Likewise.
820 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
821 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
823 2019-11-06 Tom Tromey <tom@tromey.com>
825 * tui/tui-interp.c: Don't include readline.h.
826 * tui/tui-hooks.c: Don't include readline.h.
827 * symmisc.c: Include tilde.h, not readline.h.
828 * symfile.c: Include tilde.h, not readline.h.
829 * source.c: Include tilde.h, not readline.h.
830 * solib.c: Include tilde.h, not readline.h.
831 * psymtab.c: Include tilde.h, not readline.h.
832 * exec.c: Include tilde.h, not readline.h.
833 * corelow.c: Include tilde.h, not readline.h.
834 * cli/cli-dump.c: Include tilde.h, not readline.h.
835 * cli/cli-cmds.c: Don't include readline.h.
837 2019-11-05 Tom Tromey <tom@tromey.com>
839 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
840 (tui_disassemble): Set addr_size.
841 (tui_disasm_window::set_contents): Use addr_size.
843 2019-11-05 Tom Tromey <tom@tromey.com>
845 * rust-lang.c (rust_language_defn): Update.
846 * python/py-value.c (valpy_string): Call c_get_string.
847 * p-lang.c (pascal_language_defn): Update.
848 * opencl-lang.c (opencl_language_defn): Update.
849 * objc-lang.c (objc_language_defn): Update.
850 * m2-lang.c (m2_language_defn): Update.
851 * language.c (unknown_language_defn, auto_language_defn): Update.
852 (default_get_string): Remove.
853 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
854 * go-lang.c (go_language_defn): Update.
855 * f-lang.c (f_language_defn): Update.
856 * d-lang.c (d_language_defn): Update.
857 * c-lang.c (c_language_defn, cplus_language_defn)
858 (asm_language_defn, minimal_language_defn): Update.
859 * ada-lang.c (ada_language_defn): Update.
860 * language.h (struct language_defn) <la_get_string>: Remove.
861 (LA_GET_STRING): Remove.
862 (default_get_string): Don't declare.
864 2019-11-05 Tom Tromey <tom@tromey.com>
866 * tui/tui-source.h (struct tui_source_window): Inline
867 constructor. Remove destructor.
868 <style_changed, m_observable>: Move to superclass.
869 * tui/tui-winsource.h (tui_copy_source_line): Declare.
870 (struct tui_source_window_base): Move private members to end.
871 <style_changed, m_observable>: Move from tui_source_window.
872 * tui/tui-winsource.c (tui_copy_source_line): Move from
873 tui-source.c. Rename from copy_source_line. Add special handling
874 for negative line number.
875 (tui_source_window_base::style_changed): Move from
877 (tui_source_window_base): Register observer.
878 (~tui_source_window_base): New.
879 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
881 (tui_source_window::set_contents): Use tui_copy_source_line.
882 (tui_source_window::tui_source_window): Move to tui-source.h.
883 (tui_source_window::~tui_source_window): Remove.
884 (tui_source_window::style_changed): Move to superclass.
885 * tui/tui-disasm.c (tui_disassemble): Create string file with
886 styling, when possible. Add "addr_size" parameter.
887 (tui_disasm_window::set_contents): Use tui_copy_source_line.
888 Don't compute maximum size.
889 (len_without_escapes): New function
891 2019-11-05 Tom Tromey <tom@tromey.com>
893 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
895 * tui/tui-winsource.c (tui_show_source_line): Update.
896 * tui/tui-source.c (tui_source_window::set_contents): Update.
897 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
899 2019-11-05 Christian Biesinger <cbiesinger@google.com>
901 * symtab.h (gdb_static_assert): Put && operator at the beginning
902 of the line instead of the end.
904 2019-11-04 Christian Biesinger <cbiesinger@google.com>
906 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
908 * symtab.h: Add a static_assert for sizeof (partial_symbol).
910 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
912 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
913 * configure.host: Mark *-*-solaris2.10* obsolete.
914 * configure.tgt: Mark Solaris < 11 obsolete.
915 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
916 Update target triplet.
918 2019-11-01 Tom Tromey <tromey@adacore.com>
920 * utils.c (print_sys_errmsg): Simplify.
922 2019-11-01 Tom Tromey <tromey@adacore.com>
924 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
926 2019-11-01 Christian Biesinger <cbiesinger@google.com>
928 * configure: Regenerate.
929 * configure.ac: Remove check for strerror_r.
930 * gdbsupport/common.m4: Check for strerror_r.
932 2019-11-01 Luis Machado <luis.machado@linaro.org>
936 * arm-tdep.c (arm_per_objfile): Rename to ...
937 (arm_per_bfd): ... this.
938 (arm_objfile_data_key): Rename to ...
939 (arm_bfd_data_key): ... this.
940 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
942 (arm_record_special_symbol): Likewise.
944 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
946 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
948 * c-typeprint.c (c_print_typedef): Likewise.
949 * f-typeprint.c (f_print_typedef): Likewise.
950 * m2-typeprint.c (m2_print_typedef): Likewise.
951 * p-typeprint.c (pascal_print_typedef): Likewise.
952 * rust-lang.c (rust_print_typedef): Likewise.
953 * symtab.c (print_symbol_info): Print a newline after calling
956 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
958 * symtab.c (info_module_cmdlist): New variable.
959 (info_module_command): New function.
960 (search_module_symbols): New function.
961 (info_module_subcommand): New function.
962 (struct info_modules_var_func_options): New struct.
963 (info_modules_var_func_options_defs): New variable.
964 (make_info_modules_var_func_options_def_group): New function.
965 (info_module_functions_command): New function.
966 (info_module_variables_command): New function.
967 (info_module_var_func_command_completer): New function.
968 (_initialize_symtab): Register new 'info module functions' and
969 'info module variables' commands.
970 * symtab.h (typedef symbol_search_in_module): New typedef.
971 (search_module_symbols): Declare new function.
972 * NEWS: Mention new commands.
974 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
976 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
977 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
978 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
980 (scan_partial_symbols): Only create partial module symbols for non
982 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
984 * symtab.c (search_domain_name): Likewise.
985 (search_symbols): Likewise.
986 (print_symbol_info): Likewise.
987 (symtab_symbol_info): Likewise.
988 (info_modules_command): New function.
989 (_initialize_symtab): Register 'info modules' command.
990 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
991 * NEWS: Mention new 'info modules' command.
993 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
995 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
996 and $_gdb_maint_setting_str.
998 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1000 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1001 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1002 (str_value_from_setting, gdb_setting_str_internal_fn)
1003 (gdb_maint_setting_str_internal_fn): New functions.
1004 (_initialize_cli_cmds): Define the new convenience functions.
1005 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1006 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1008 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1010 * agent.c (set_can_use_agent): When the setting is turned on,
1011 look up agent symbols if we don't have them yet.
1012 (agent_new_objfile): Don't look up agent symbols when the agent
1015 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1017 * config.in: Regenerate.
1019 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1021 * configure: Regenerate.
1022 * configure.ac: Check for strerror_r.
1023 * gdbsupport/common-utils.h (safe_strerror): Change return value
1024 to const char * and document that this function is now threadsafe.
1025 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1026 thread_local and call strerror_r, if available.
1027 * utils.c (perror_string): Update.
1028 (print_sys_errmsg): Update.
1030 2019-10-31 Luis Machado <luis.machado@linaro.org>
1032 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1034 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1035 objfile to fetch per-bfd data.
1036 (arm_find_exidx_entry): Likewise.
1038 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1040 * gdbsupport/agent.c (debug_agent): Change type to bool.
1041 (use_agent): Likewise.
1042 (all_agent_symbols_look_up): Likewise.
1043 (agent_loaded_p): Change return value to bool.
1044 (agent_look_up_symbols): Update.
1045 (agent_capability_check): Change return value to bool.
1046 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1047 (debug_agent): Change type to bool.
1048 (use_agent): Likewise.
1049 (agent_capability_check): Change return value to bool.
1051 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1053 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1054 (build_minimal_symbol_hash_tables): Code to clear the table moved
1055 to clear_minimal_symbol_hash_tables.
1056 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1059 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1061 * infcmd.c: Remove includes.
1062 * infrun.c: Remove includes.
1064 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1066 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1067 (grow_vect): Remove declaration.
1068 (ada_type_of_array): Remove declaration.
1069 (ada_update_initial_language): Remove declaration.
1070 (ada_fold_name): Remove declaration.
1071 (ada_fill_in_ada_prototype): Remove declaration.
1072 (user_select_syms): Remove declaration.
1073 (get_selections): Remove declaration.
1074 (ada_tag_type): Remove declaration.
1075 (ada_value_tag): Remove declaration.
1076 (ada_is_others_clause): Remove declaration.
1077 (ada_in_variant): Remove declaration.
1078 (ada_value_struct_elt): Remove declaration.
1079 (ada_attribute_name): Remove declaration.
1080 (ada_system_address_type): Remove declaration.
1081 * ada-lang.c (ada_watch_location_expression): Make static.
1082 (GROW_VECT): Move here from ada-lang.h.
1083 (grow_vect): Make static.
1084 (ada_update_initial_language): Make static.
1085 (ada_fold_name): Make static.
1086 (ada_type_of_array): Make static.
1087 (encoded_ordered_before): Move up.
1088 (sort_choices): Move up.
1089 (print_signatures): Move up.
1090 (ada_print_symbol_signature): Move up.
1091 (get_selections): Move up and make static.
1092 (user_select_syms): Move up and make static.
1093 (ada_value_struct_elt): Move up and make static.
1094 (ada_tag_type): Make static.
1095 (ada_value_tag): Make static.
1096 (ada_is_others_clause): Make static.
1097 (ada_in_variant): Make static.
1098 (ada_attribute_name): Make static.
1100 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1102 * ada-lang.c: Remove includes.
1103 * ada-typeprint.c: Remove includes.
1104 * ada-valprint.c: Remove includes.
1106 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1108 * addrmap.c: Add static assertions of type size, moved from
1109 _initialize_addrmap.
1110 (_initialize_addrmap): Remove.
1112 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1114 * coffread.c (record_minimal_symbol): Update.
1115 (process_coff_symbol): Update.
1116 * dbxread.c (read_dbx_symtab): Update.
1117 * dwarf2read.c (add_partial_symbol): Update.
1118 (fixup_go_packaging): Update.
1119 (load_partial_dies): Update.
1120 (new_symbol): Update.
1121 * elfread.c (record_minimal_symbol): Change signature to use
1122 gdb::string_view instead of name+len.
1123 (elf_symtab_read): Update.
1124 (elf_rel_plt_read): Update.
1125 * mdebugread.c (parse_partial_symbols): Update.
1126 (handle_psymbol_enumerators): Update.
1127 (new_symbol): Update.
1128 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1129 to use gdb::string_view instead of name+len.
1130 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1131 * psympriv.h (add_psymbol_to_list): Likewise.
1132 * psymtab.c (add_psymbol_to_bcache): Likewise.
1133 (add_psymbol_to_list): Likewise.
1134 * stabsread.c (define_symbol): Update.
1135 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1136 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1137 (symbol_set_names): Likewise.
1138 * xcoffread.c (scan_xcoff_symtab): Update.
1140 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1142 * symtab.h (symbol_set_names): Document that copy_name must be
1143 set to true for non-nullterminated strings.
1144 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1145 linkage_name if the entry was not found and we need to demangle.
1147 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1149 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1150 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1151 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1152 * gdbsupport/gdb_binary_search.h: New file.
1154 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1156 * NEWS: Mention new --with-system-gdbinit-dir option.
1157 * config.in: Regenerate.
1158 * configure: Regenerate.
1159 * configure.ac: Add new option --with-system-gdbinit-dir.
1160 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1161 for a ".gdb" suffix.
1162 * main.c (get_init_files): Change system_gdbinit argument to
1163 a vector and return the files in SYSTEM_GDBINIT_DIR in
1164 addition to SYSTEM_GDBINIT.
1165 (captured_main_1): Update.
1166 (print_gdb_help): Update.
1167 * top.c (print_gdb_configuration): Also print the value of
1170 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1172 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1173 that takes gdb::string_view arguments.
1175 2019-10-26 Tom de Vries <tdevries@suse.de>
1177 * aarch64-linux-tdep.c: Fix typos in comments.
1178 * aarch64-tdep.c: Same.
1180 * amd64-nat.c: Same.
1182 * arch/aarch64-insn.c: Same.
1184 * breakpoint.h: Same.
1187 * cli/cli-decode.c: Same.
1188 * cli/cli-script.c: Same.
1189 * cli/cli-utils.h: Same.
1190 * coff-pe-read.c: Same.
1192 * compile/compile-cplus-symbols.c: Same.
1193 * compile/compile-object-run.c: Same.
1194 * completer.c: Same.
1196 * cp-support.c: Same.
1198 * dwarf-index-write.c: Same.
1199 * dwarf2-frame.c: Same.
1200 * dwarf2-frame.h: Same.
1202 * frame-base.h: Same.
1207 * guile/scm-objfile.c: Same.
1208 * i386-tdep.c: Same.
1209 * i386-tdep.h: Same.
1212 * linux-nat.c: Same.
1213 * m68k-tdep.c: Same.
1216 * mi/mi-cmd-disas.c: Same.
1217 * mi/mi-getopt.h: Same.
1218 * mi/mi-main.c: Same.
1220 * nat/aarch64-sve-linux-sigcontext.h: Same.
1222 * ppc-linux-nat.c: Same.
1223 * ppc-linux-tdep.c: Same.
1225 * progspace.h: Same.
1226 * prologue-value.h: Same.
1227 * python/py-evtregistry.c: Same.
1228 * python/py-instruction.h: Same.
1229 * record-btrace.c: Same.
1230 * record-full.c: Same.
1232 * rs6000-tdep.c: Same.
1234 * sol-thread.c: Same.
1235 * sparc-sol2-tdep.c: Same.
1236 * sparc64-tdep.c: Same.
1237 * stabsread.c: Same.
1241 * tracepoint.c: Same.
1242 * tui/tui-data.h: Same.
1243 * tui/tui-io.c: Same.
1244 * tui/tui-win.c: Same.
1246 * unittests/rsp-low-selftests.c: Same.
1247 * user-regs.h: Same.
1258 * xtensa-tdep.c: Same.
1260 2019-10-25 Ali Tamur <tamur@google.com>
1262 * charset.c (find_charset_names): Reflect API change.
1264 2019-10-25 Christian Biesinger <cbiesinger@google.com>
1266 * symtab.c (struct demangled_name_entry): Change demangled name
1267 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1268 part of the struct anymore.
1269 (symbol_set_names): No longer obstack allocate + copy the demangled
1270 name, just store the allocated name from bfd.
1272 2019-10-25 Tom Tromey <tromey@adacore.com>
1274 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1275 (bsearch_cie_cmp, add_cie): Remove.
1276 (find_cie): Reimplement.
1277 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1278 (dwarf2_build_frame_info): Update.
1280 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1283 * symfile.c (reread_symbols): Call forget_cached_source_info to
1284 clear the stale source cache.
1286 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1288 * configure: Regenerate.
1289 * configure.ac: Remove code that sets python_has_threads.
1291 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1293 * config.in: Regenerate.
1294 * configure: Regenerate.
1295 * configure.ac: Remove the code that uses sed to get the python
1296 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1298 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1300 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1303 2019-10-23 Tom Tromey <tom@tromey.com>
1305 * arc-tdep.c: Remove ".." from include.
1306 * frv-tdep.c: Remove ".." from include.
1307 * lm32-tdep.c: Remove ".." from include.
1308 * microblaze-tdep.c: Remove ".." from include.
1309 * or1k-tdep.h: Remove ".." from include.
1310 * s12z-tdep.c: Remove ".." from include.
1311 * Makefile.in (OPCODES_CFLAGS): Add comment.
1312 (TOP_CFLAGS): New variable.
1313 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1315 2019-10-23 Tom Tromey <tom@tromey.com>
1317 * Makefile.in (READLINE_DIR): Update.
1319 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1321 * infcall.c (call_function_by_hand_dummy): Fix the function
1322 comment. And extract out a code section into...
1323 (reserve_stack_space): ...this new function.
1325 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1327 * infcall.c (value_arg_coerce): Remove an unused parameter.
1328 (call_function_by_hand_dummy): Update the call to
1331 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1333 * infcall.c (call_function_by_hand_dummy): Refactor.
1335 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1337 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1339 2019-10-23 Tom Tromey <tom@tromey.com>
1341 * configure: Rebuild.
1342 * configure.ac: Don't check for sigprocmask.
1343 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1345 2019-10-23 Tom Tromey <tom@tromey.com>
1347 * configure: Rebuild.
1348 * acinclude.m4: Use m4_include, not sinclude.
1350 2019-10-23 Tom de Vries <tdevries@suse.de>
1352 PR breakpoints/24687
1353 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1355 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1357 * symtab.c (struct demangled_name_entry) <language>: Change from
1358 bitfield to regular variable.
1360 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1362 * symtab.c (struct demangled_name_entry): Add a constructor.
1363 (free_demangled_name_entry): New function to call the destructor
1364 for demangled_name_entry.
1365 (create_demangled_names_hash): Pass free_demangled_name_entry to
1367 (symbol_set_names): Call placement new for demangled_name_entry.
1368 * utils.c: No longer include xxhash.h here, now that fast_hash
1369 is inlined in the header.
1370 * utils.h: Instead, include it here.
1372 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1374 * Makefile.in: Link with libxxhash.
1375 * config.in: Regenerate.
1376 * configure: Regenerate.
1377 * configure.ac: Search for libxxhash.
1378 * utils.c (fast_hash): Use xxhash if present.
1380 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1382 * utils.h (fast_hash): New function.
1383 * symtab.c (hash_demangled_name_entry): Call new function
1386 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1388 * symtab.c (struct demangled_name_entry): Change type of mangled
1389 to gdb::string_view. Also adds a constructor that takes the
1391 (hash_demangled_name_entry): Update.
1392 (eq_demangled_name_entry): Update.
1393 (free_demangled_name_entry): New function to call the destructor
1394 now that this is not a POD anymore.
1395 (create_demangled_names_hash): Pass free_demangled_name_entry to
1397 (symbol_set_names): Update.
1399 2019-10-21 Ali Tamur <tamu@google.com>
1401 * dwarf2read.c (dir_index): Change type.
1402 (file_name_index): Likewise.
1403 (line_header::include_dir_at): Change comment and implementation on
1404 whether it is DWARF 5.
1405 (line_header::is_valid_file_index): New function.
1406 (line_header::file_name_at): Change comment and implementation on
1407 whether it is DWARF 5.
1408 (line_header::file_names): Change to private field renamed as
1409 m_file_names and introduce a new accessor method.
1410 (line_header::file_names_size): New method.
1411 (line_header::include_dirs): Change to private field and rename as
1413 (dw2_get_file_names_reader): Define local var at a smaller scope and
1415 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1416 (process_structure_scope): Likewise.
1417 (line_header::add_include_dir): Change message and reflect renaming.
1418 (line_header::add_file_name): Likewise.
1419 (read_formatted_entries): Handle DW_FORM_data16.
1420 (dwarf_decode_line_header): Fix line header length calculation.
1421 (psymtab_include_file_name): Change comment and API.
1422 (lnp_state_machine::m_file): Update comment and reflect type change.
1423 (lnp_state_machine::record_line): Reflect type change.
1424 (dwarf_decode_lines): Reflect API change.
1425 (file_file_name): Likewise.
1426 (file_full_name): Likewise.
1428 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1430 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1432 2019-10-21 Tom Tromey <tom@tromey.com>
1434 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1436 2019-10-21 Tom Tromey <tom@tromey.com>
1438 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1439 NM_H. Use AC_CONFIG_LINKS.
1440 * configure: Rebuild.
1441 * Makefile.in (NM_H): New variable.
1442 (generated_files): Add NM_H. Remove gcore.
1443 (nm.h, stamp-nmh): New targets.
1445 2019-10-20 Tom Tromey <tom@tromey.com>
1447 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1448 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1450 (put_objfile_before): Now static.
1452 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1454 * gdbsupport/common-utils.h (startswith): Change return type to
1457 2019-10-19 Christian Biesinger <cbiesinger@google.com>
1459 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1460 * breakpoint.c (bp_locations_compare): Rename to...
1461 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1462 (update_global_location_list): Use std::sort instead of qsort.
1463 * buildsym.c (compare_line_numbers): Rename to...
1464 (lte_is_less_than): ...this, and change to std::sort semantics.
1465 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1467 * disasm.c (compare_lines): Rename to...
1468 (line_is_less_than): ...this, and change to std::sort semantics.
1469 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1471 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1472 (fde_is_less_than): ...this, and change to std::sort semantics.
1473 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1474 * mdebugread.c (compare_blocks):
1475 (block_is_less_than): ...this, and change to std::sort semantics.
1476 (sort_blocks): Call std::sort instead of qsort.
1477 * objfiles.c (qsort_cmp): Rename to...
1478 (sort_cmp): ...this, and change to std::sort semantics.
1479 (update_section_map): Call std::sort instead of qsort.
1480 * remote.c (compare_pnums): Remove.
1481 (map_regcache_remote_table): Call std::sort instead of qsort.
1482 * utils.c (compare_positive_ints): Remove.
1483 * utils.h (compare_positive_ints): Remove.
1484 * xcoffread.c (compare_lte): Remove.
1485 (arrange_linetable): Call std::sort instead of qsort.
1487 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1489 * symfile.c (init_entry_point_info): Fix typo.
1490 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1492 2019-10-18 Tom de Vries <tdevries@suse.de>
1494 * aarch64-tdep.c: Fix typos in comments.
1496 * ada-tasks.c: Same.
1497 * alpha-tdep.c: Same.
1498 * alpha-tdep.h: Same.
1499 * amd64-nat.c: Same.
1500 * amd64-windows-tdep.c: Same.
1503 * arch-utils.c: Same.
1504 * arm-nbsd-tdep.c: Same.
1507 * blockframe.c: Same.
1510 * coff-pe-read.c: Same.
1512 * cris-tdep.c: Same.
1513 * darwin-nat.c: Same.
1517 * dtrace-probe.c: Same.
1518 * dwarf-index-write.c: Same.
1519 * dwarf2-frame-tailcall.c: Same.
1520 * dwarf2-frame.c: Same.
1521 * dwarf2read.c: Same.
1523 * exceptions.c: Same.
1524 * fbsd-tdep.c: Same.
1528 * gnu-v3-abi.c: Same.
1530 * h8300-tdep.c: Same.
1531 * hppa-tdep.c: Same.
1532 * i386-linux-tdep.c: Same.
1533 * i386-tdep.c: Same.
1534 * ia64-libunwind-tdep.c: Same.
1535 * ia64-tdep.c: Same.
1539 * linux-nat.c: Same.
1540 * linux-thread-db.c: Same.
1541 * machoread.c: Same.
1542 * mdebugread.c: Same.
1544 * mn10300-tdep.c: Same.
1545 * namespace.c: Same.
1547 * opencl-lang.c: Same.
1548 * or1k-tdep.c: Same.
1550 * ppc-linux-nat.c: Same.
1551 * ppc-linux-tdep.c: Same.
1552 * ppc-sysv-tdep.c: Same.
1555 * record-btrace.c: Same.
1556 * record-full.c: Same.
1557 * remote-fileio.c: Same.
1559 * rs6000-tdep.c: Same.
1560 * s12z-tdep.c: Same.
1561 * score-tdep.c: Same.
1565 * sol-thread.c: Same.
1566 * solib-svr4.c: Same.
1569 * sparc-nat.c: Same.
1570 * sparc-sol2-tdep.c: Same.
1571 * sparc-tdep.c: Same.
1572 * sparc64-tdep.c: Same.
1573 * stabsread.c: Same.
1577 * target-descriptions.c: Same.
1578 * target-float.c: Same.
1585 * windows-nat.c: Same.
1586 * xcoffread.c: Same.
1587 * xstormy16-tdep.c: Same.
1588 * xtensa-tdep.c: Same.
1590 2019-10-17 Tom Tromey <tromey@adacore.com>
1592 * configure: Rebuild.
1593 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1594 in AC_CONFIG_FILES invocation.
1595 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1596 new-style config.status invocation.
1598 2019-10-17 Tom de Vries <tdevries@suse.de>
1600 * arm-nbsd-nat.c: Fix typos in comments.
1602 * darwin-nat-info.c: Same.
1603 * dwarf2read.c: Same.
1605 * event-top.c: Same.
1608 * hppa-tdep.c: Same.
1609 * i386-tdep.c: Same.
1612 * mdebugread.c: Same.
1613 * moxie-tdep.c: Same.
1614 * nto-procfs.c: Same.
1616 * ppc-linux-tdep.c: Same.
1618 * riscv-tdep.c: Same.
1619 * s390-tdep.c: Same.
1621 * sparc-linux-tdep.c: Same.
1622 * sparc-nat.c: Same.
1624 * target-descriptions.c: Same.
1628 2019-10-16 Tom Tromey <tom@tromey.com>
1630 * objfiles.h (struct objfile) <original_name>: Now const.
1632 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1634 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1635 pass on to sigsetjmp's second argument.
1636 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1638 2019-10-16 Keith Seitz <keiths@redhat.com>
1641 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1642 sections whose size is greater than the file size.
1644 2019-10-16 Jim Wilson <jimw@sifive.com>
1646 * riscv-tdep.c (riscv_gcc_target_options): New.
1647 (riscv_gnu_triplet_regexp): New.
1648 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1649 set_gdbarch_gnu_triplet_regexp.
1651 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1653 * Makefile.in: Add xml-builtin.h.
1654 * features/feature_to_c.sh: Add an include for xml-builtin.h
1655 to ensure that the compiler checks that the types match.
1656 * xml-builtin.h: New file.
1657 * xml-support.c (fetch_xml_builtin): Add missing const.
1658 * xml-support.h: Remove declaration of xml_builtins.
1660 2019-10-16 Tom de Vries <tdevries@suse.de>
1663 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1664 (amd64_classify_aggregate): ... here.
1665 (amd64_classify_aggregate_field): Handled fiels of nested structs
1668 2019-10-16 Tom de Vries <tdevries@suse.de>
1671 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1672 that handles 'theclass'.
1674 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1676 * linespec.c (decode_digits_ordinary): Update comment.
1677 * make-target-delegates: No longer need to handle VEC case.
1678 * memrange.c (normalize_mem_ranges): Update comment.
1679 * namespace.c (add_using_directive): Update comment.
1680 * objc-lang.c (uniquify_strings): Update comment.
1681 * ppc-linux-nat.c (struct thread_points): Update comment.
1682 * probe.h (find_probes_in_objfile): Update comment.
1683 * target.h (enum flash_preserve_mode): Update comment.
1684 * varobj.c (varobj_restrict_range): Update comment.
1685 * varobj.h (varobj_list_children): Update comment.
1687 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1689 * Makefile.in: Remove references to vec.h and vec.c.
1690 * aarch64-tdep.c: No longer include vec.h.
1691 * ada-lang.c: Likewise.
1692 * ada-lang.h: Likewise.
1693 * arm-tdep.c: Likewise.
1695 * breakpoint.h: Likewise.
1696 * charset.c: Likewise.
1697 * cp-support.h: Likewise.
1698 * dtrace-probe.c: Likewise.
1699 * dwarf2read.c: Likewise.
1700 * extension.h: Likewise.
1701 * gdb_bfd.c: Likewise.
1702 * gdbsupport/gdb_vecs.h: Likewise.
1703 * gdbsupport/vec.c: Remove.
1704 * gdbsupport/vec.h: Remove.
1705 * gdbthread.h: Likewise.
1706 * guile/scm-type.c: Likewise.
1707 * inline-frame.c: Likewise.
1708 * machoread.c: Likewise.
1709 * memattr.c: Likewise.
1710 * memrange.h: Likewise.
1711 * namespace.h: Likewise.
1712 * nat/linux-btrace.h: Likewise.
1713 * osdata.c: Likewise.
1714 * parser-defs.h: Likewise.
1715 * progspace.h: Likewise.
1716 * python/py-type.c: Likewise.
1717 * record-btrace.c: Likewise.
1718 * rust-exp.y: Likewise.
1719 * solib-target.c: Likewise.
1720 * stap-probe.c: Likewise.
1721 * target-descriptions.c: Likewise.
1722 * target-memory.c: Likewise.
1723 * target.h: Likewise.
1724 * varobj.c: Likewise.
1725 * varobj.h: Likewise.
1726 * xml-support.h: Likewise.
1728 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1730 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1731 Update for new std::vector based implementation.
1732 (process_psymtab_comp_unit_reader): Likewise.
1733 (scan_partial_symbols): Likewise.
1734 (recursively_compute_inclusions): Likewise.
1735 (compute_compunit_symtab_includes): Likewise.
1736 (process_imported_unit_die): Likewise.
1737 (queue_and_load_dwo_tu): Likewise.
1738 (follow_die_sig_1): Likewise.
1739 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1740 (typedef dwarf2_per_cu_ptr): Remove.
1741 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1743 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1744 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1745 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1746 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1749 2019-10-15 Tom Tromey <tromey@adacore.com>
1751 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1754 2019-10-15 Tom Tromey <tromey@adacore.com>
1756 * windows-nat.c (windows_nat_target::fetch_registers)
1757 (windows_nat_target::store_registers): Rename "pid" to "tid".
1759 2019-10-15 Tom Tromey <tromey@adacore.com>
1761 * gdbarch.h, gdbarch.c: Rebuild.
1762 * gdbarch.sh (gcc_target_options): Change return type to
1764 * compile/compile.c (get_args): Update.
1765 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1766 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1768 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1770 * arch-utils.c (default_gcc_target_options): Return std::string.
1771 * arch-utils.h (default_gcc_target_options): Return std::string.
1772 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1774 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1776 * breakpoint.c (breakpoint_chain): Make static.
1777 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1778 of accessing breakpoint_chain.
1780 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1782 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1783 to a gdb::function_view and return value to bool.
1784 * breakpoint.h (iterate_over_breakpoints): Likewise.
1785 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1786 (pop_dummy_frame): Update.
1787 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1788 (gdbscm_breakpoints): Update.
1789 * python/py-breakpoint.c (build_bp_list): Update.
1790 (gdbpy_breakpoints): Update.
1791 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1793 (bpfinishpy_handle_stop): Update.
1794 (bpfinishpy_handle_exit): Update.
1795 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1796 (svr4_update_solib_event_breakpoints): Update.
1798 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1800 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1801 when unwrapping single-field structs.
1803 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1805 * dwarf2read.c: Remove includes.
1807 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1809 * ui-out.c (ui_out::call_do_message): Silence
1810 -Wformat-nonliteral warning.
1812 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1814 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1815 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1816 include: readline/tilde.h.
1818 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1820 * remote.c (remote_target::get_trace_status): Remove declaration of
1821 trace_regblock_size.
1823 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1825 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1826 (show_user): Remove declaration of cmdlist.
1827 * cli/cli-cmds.h (max_user_call_depth): Declare.
1828 * cli/cli-script.c (execute_user_command): Remove declaration
1829 of max_user_call_depth.
1831 2019-10-11 Jim Wilson <jimw@sifive.com>
1833 * gdbsupport/print-utils.h (pulongest): Fix comment.
1834 (plongest): Likewise.
1835 (phex): Add missing comment, mention leading zeros.
1836 (phex_nz): Add mention of no leading zeros to comment.
1838 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1839 plongest instead of unsigned long long cast.
1841 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1843 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1844 for external_editor_command and gdbtk_test.
1846 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1848 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1849 * varobj.c (varobjdebug): Move comment to...
1850 * varobj.h (varobjdebug): ...here, and declare.
1852 2019-10-09 Tom Tromey <tom@tromey.com>
1854 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1857 2019-10-09 Tom Tromey <tom@tromey.com>
1859 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1860 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1861 * tui/tui-command.c (tui_cmd_window::resize)
1862 (tui_refresh_cmd_win): Update.
1863 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1864 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1865 * tui/tui-data.c (~tui_gen_win_info): Remove.
1866 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1867 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1868 (tui_redisplay_readline, tui_mld_flush)
1869 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1870 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1871 (tui_data_window::erase_data_content)
1872 (tui_data_item_window::rerender)
1873 (tui_data_item_window::refresh_window): Update.
1874 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1875 (box_win, tui_gen_win_info::make_window)
1876 (tui_gen_win_info::make_visible): Update.
1877 (tui_delete_win): Remove.
1878 * tui/tui-winsource.c
1879 (tui_source_window_base::do_erase_source_content): Update.
1880 (tui_show_source_line, tui_source_window_base::update_tab_width)
1881 (tui_source_window_base::update_exec_info): Update.
1882 * tui/tui-data.h (struct curses_deleter): New.
1883 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1884 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1886 2019-10-09 Tom Tromey <tom@tromey.com>
1888 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1890 2019-10-09 Tom Tromey <tom@tromey.com>
1892 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
1893 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
1895 2019-10-09 Tom Tromey <tom@tromey.com>
1897 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
1898 window height directly.
1899 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
1901 * tui/tui-layout.c (tui_default_win_height): Remove.
1902 (tui_default_win_viewport_height): Remove.
1904 2019-10-09 Tom Tromey <tom@tromey.com>
1906 * tui/tui.h: Remove comments.
1908 2019-10-09 Tom de Vries <tdevries@suse.de>
1910 * python/lib/gdb/printer/bound_registers.py: Use
1911 '^builtin_type_bound128' as regexp argument for
1912 add_builtin_pretty_printer.
1914 2019-10-09 Christian Biesinger <cbiesinger@google.com>
1916 * guile/guile.c (guile_extension_script_ops): Remove forward
1917 declaration and mark as static.
1918 (guile_script_ops): Likewise.
1919 (extension_language_guile): Move further down in the file so
1920 it can reference the definitions for guile_{extension_,}script_ops.
1922 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
1924 * s390-tdep.c (390_process_record): Handle new arch13 instructions
1925 except SORTL, DFLTCC, and KDSA.
1927 2019-10-08 Tom Tromey <tromey@adacore.com>
1929 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
1930 (struct safe_symbol_file_add_args): Remove.
1932 2019-10-08 Tom Tromey <tromey@adacore.com>
1934 * windows-nat.c: Don't include buildsym-legacy.h.
1936 2019-10-08 Tom Tromey <tromey@adacore.com>
1938 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
1940 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1942 * gdbtypes.c (overload_debug): Move comment to header.
1943 * gdbtypes.h (overload_debug): Declare.
1944 * valops.c: Remove declaration of overload_debug, instead
1947 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1949 * language.c (show_language_command): Pass lang_frame_mismatch_warn
1951 (lang_frame_mismatch_warn): Make const, mark with N_(), and
1953 * language.h (lang_frame_mismatch_warn): ... here. Also add
1955 * top.c (lang_frame_mismatch_warn): Remove declaration.
1956 (check_frame_language_change): Pass lang_frame_mismatch_warn
1959 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1961 * c-lang.h (vtbl_ptr_name): Declare.
1962 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
1964 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
1966 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1968 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
1971 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1973 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1974 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
1975 * ctfread.c: New file.
1976 * ctfread.h: New file.
1977 * elfread.c: Include ctfread.h.
1978 (struct elfinfo text_p): New member ctfsect.
1979 (elf_locate_sections): Mark CTF section.
1980 (elf_symfile_read): Call elfctf_build_psymtabs.
1981 * Makefile.in (LIBCTF): Add.
1984 (DIST): Add ctfread.c.
1986 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1988 * ctfread.c (struct nextfield): Renamed to ...
1989 (struct ctf_nextfield): ... this.
1990 (struct field_info): Renamed to ...
1991 (strut ctf_field_info): ... this.
1992 (attach_fields_to_type): Update for renamed structures.
1993 (ctf_add_member_cb): Likewise.
1994 (ctf_add_enum_member_cb): Likewise.
1995 (process_struct_members): Likewise.
1996 (process_enum_type): Likewise.
1998 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2000 * tracectf.h: Rename, was ctf.h.
2001 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2002 * tracefile.c: Likewise.
2003 * tracepoint.c: Remove unused include ctf.h.
2004 * mi/mi-main.c: Likewise.
2005 * Makefile.in Replace ctf.c with tracectf.c.
2007 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2009 * version.in: Change version number to "9.0.50.DATE-git".
2011 2019-10-03 Tom Tromey <tom@tromey.com>
2014 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2016 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2018 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2019 cp_search_name_hash.
2020 * NEWS: Add entry about nested function support.
2022 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2023 Andrew Burgess <andrew.burgess@embecosm.com>
2025 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2026 for nested static variables when searchin VAR_DOMAIN.
2027 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2028 global scope, update comment.
2029 (add_partial_subprogram): Call add_partial_subprogram recursively
2030 for nested subroutines when processinng Fortran.
2031 (load_partial_dies): Process the child entities of a subprogram
2032 when processing Fortran.
2033 (partial_die_parent_scope): Handle building scope
2034 for Fortran nested functions.
2035 (process_die): Record that nested functions have a scope.
2036 (new_symbol): Always record Fortran subprograms on the global
2038 (determine_prefix): How to build the prefix for Fortran
2041 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2043 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2044 have just sent the thread a SIGSTOP and are waiting for it to
2047 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2049 * btrace.c (btrace_add_pc): Remove whitespace before the template
2050 parameter in 'std::vector <...>'.
2051 (parse_xml_btrace_block): Likewise.
2052 (btrace_maint_decode_pt): Likewise.
2053 (btrace_maint_update_packets): Likewise.
2054 (btrace_maint_print_packets): Likewise.
2055 * btrace.h (struct btrace_maint_info): Likewise.
2056 * dwarf2read.c (struct type_unit_group): Likewise.
2057 (build_type_psymtabs_reader): Likewise.
2058 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2059 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2060 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2062 2019-10-03 Tom de Vries <tdevries@suse.de>
2064 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2065 the first line of the help text for set/show style metadata.
2067 2019-10-02 Tom Tromey <tromey@adacore.com>
2069 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2070 * gdbsupport/common-inferior.c: New file.
2071 * infcmd.c (startup_with_shell): Don't define.
2072 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2073 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2074 * inferior.h (startup_with_shell): Don't declare.
2076 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2078 * gdbsupport/gdb_assert.h: Include errors.h.
2079 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2081 2019-10-02 Tom Tromey <tromey@adacore.com>
2083 * NEWS: Add $_ada_exception entry.
2084 * ada-lang.c (struct ada_catchpoint): Add constructor.
2085 <m_kind>: New member.
2086 (allocate_location_exception, re_set_exception): Remove
2088 (should_stop_exception): Compute $_ada_exception.
2089 (check_status_exception, print_it_exception)
2090 (print_one_exception, print_mention_exception): Remove
2092 (allocate_location_catch_exception, re_set_catch_exception)
2093 (check_status_exception, print_it_catch_exception)
2094 (print_one_catch_exception, print_mention_catch_exception)
2095 (print_recreate_catch_exception)
2096 (allocate_location_catch_exception_unhandled)
2097 (re_set_catch_exception_unhandled)
2098 (check_status_exception, print_it_catch_exception_unhandled)
2099 (print_one_catch_exception_unhandled)
2100 (print_mention_catch_exception_unhandled)
2101 (print_recreate_catch_exception_unhandled)
2102 (allocate_location_catch_assert, re_set_catch_assert)
2103 (check_status_assert, print_it_catch_assert)
2104 (print_one_catch_assert, print_mention_catch_assert)
2105 (print_recreate_catch_assert)
2106 (allocate_location_catch_handlers, re_set_catch_handlers)
2107 (check_status_handlers, print_it_catch_handlers)
2108 (print_one_catch_handlers, print_mention_catch_handlers)
2109 (print_recreate_catch_handlers): Remove.
2110 (create_ada_exception_catchpoint): Update.
2111 (initialize_ada_catchpoint_ops): Update.
2113 2019-10-02 Tom Tromey <tromey@adacore.com>
2115 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2116 (create_excep_cond_exprs): Simplify exception string computation.
2117 (ada_exception_catchpoint_cond_string): Likewise.
2119 2019-10-02 Tom Tromey <tromey@adacore.com>
2121 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2122 * ada-lang.c (lesseq_defined_than): Handle
2124 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2126 (dwarf2_has_info): Likewise.
2127 (new_symbol): Set maybe_copied on symbol when
2129 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2131 <can_copy>: New member.
2132 * elfread.c (record_minimal_symbol): Set maybe_copied
2133 on symbol when appropriate.
2134 (elf_symfile_read): Update call to dwarf2_has_info.
2135 * minsyms.c (lookup_minimal_symbol_linkage): New
2137 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2138 * symtab.c (get_symbol_address, get_msymbol_address):
2140 * symtab.h (get_symbol_address, get_msymbol_address):
2142 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2144 (struct symbol, struct minimal_symbol) <maybe_copied>:
2147 2019-10-02 Tom Tromey <tromey@adacore.com>
2149 * source.c (struct current_source_location): New.
2150 (current_source_key): New global.
2151 (current_source_symtab, current_source_line)
2152 (current_source_pspace): Remove.
2153 (get_source_location): New function.
2154 (get_current_source_symtab_and_line)
2155 (set_default_source_symtab_and_line)
2156 (set_current_source_symtab_and_line)
2157 (clear_current_source_symtab_and_line, select_source_symtab)
2158 (info_source_command, print_source_lines_base)
2159 (info_line_command, search_command_helper, _initialize_source):
2162 2019-10-02 Tom Tromey <tromey@adacore.com>
2164 * source.c (select_source_symtab): Don't call
2165 decode_line_with_current_source.
2167 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2169 * symtab.c (lookup_global_symbol): Search global block.
2171 2019-10-02 Tom Tromey <tromey@adacore.com>
2173 * coffread.c (process_coff_symbol): Update.
2174 * dwarf2read.c (var_decode_location, new_symbol): Update.
2175 * mdebugread.c (parse_symbol): Update.
2176 * objfiles.c (relocate_one_symbol): Update.
2177 * stabsread.c (define_symbol, fix_common_block)
2178 (scan_file_globals): Update.
2179 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2180 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2181 * xcoffread.c (process_xcoff_symbol): Update.
2183 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2185 * MAINTAINERS: Update my email address.
2187 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2189 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2191 (build_type_psymtabs_reader): Update for std::vector.
2192 (build_type_psymtab_dependencies): Likewise.
2193 * dwarf2read.h: Remove use of DEF_VEC_P.
2194 (typedef sig_type_ptr): Delete.
2196 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2198 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2200 (btrace_maint_decode_pt): Likewise, and move allocation of the
2201 vector outside of the loop.
2202 (btrace_maint_update_packets): Update to handle change from VEC to
2204 (btrace_maint_print_packets): Likewise.
2205 (maint_info_btrace_cmd): Likewise.
2206 * btrace.h: Remove use of DEF_VEC_O.
2207 (typedef btrace_pt_packet_s): Delete.
2208 (struct btrace_maint_info) <packets>: Change fromm VEC to
2210 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2212 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2214 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2215 make accesses into the vector constant references.
2216 (btrace_add_pc): Update for std::vector.
2217 (btrace_stitch_bts): Likewise.
2218 (parse_xml_btrace_block): Likewise.
2219 (btrace_maint_update_packets): Likewise.
2220 (btrace_maint_print_packets): Likewise.
2221 (maint_info_btrace_cmd): Likewise.
2222 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2224 (btrace_data::empty): Likewise.
2225 (btrace_data_append): Likewise.
2226 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2227 (typedef btrace_block_s): Delete.
2228 (struct btrace_block): Add constructor.
2229 (struct btrace_data_bts) <blocks>: Change to std::vector.
2230 * nat/linux-btrace.c (perf_event_read_bts): Update for
2232 (linux_read_bts): Likewise.
2234 2019-10-01 Tom Tromey <tom@tromey.com>
2236 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2238 2019-10-01 Tom Tromey <tom@tromey.com>
2240 * stack.c (print_frame, info_frame_command_core): Use
2242 * linux-thread-db.c (try_thread_db_load_1)
2243 (try_thread_db_load_from_pdir_1): Use styled_string.
2244 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2245 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2246 (maybe_print_unsupported_script_warning)
2247 (maybe_print_script_not_found_warning): Use styled_string.
2248 * ada-lang.c (user_select_syms): Use styled_string.
2250 2019-10-01 Tom Tromey <tom@tromey.com>
2252 * p-lang.c (pascal_printstr): Use metadata style.
2253 * value.c (show_convenience): Use metadata style.
2254 * valprint.c (valprint_check_validity, val_print_optimized_out)
2255 (val_print_not_saved, val_print_unavailable)
2256 (val_print_invalid_address, generic_val_print, val_print)
2257 (value_check_printable, val_print_array_elements): Use metadata
2259 * ui-out.h (class ui_out) <field_fmt>: New overload.
2260 <do_field_fmt>: Add style parameter.
2261 * ui-out.c (ui_out::field_fmt): New overload.
2262 * typeprint.c (type_print_unknown_return_type)
2263 (val_print_not_allocated, val_print_not_associated): Use metadata
2265 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2267 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2268 * tracepoint.c (tvariables_info_1): Use metadata style.
2269 * stack.c (print_frame_arg, print_frame_info, print_frame)
2270 (info_frame_command_core): Use metadata style.
2271 * skip.c (info_skip_command): Use metadata style.
2272 * rust-lang.c (rust_print_enum): Use metadata style.
2273 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2275 * python/py-framefilter.c (py_print_single_arg): Use metadata
2277 * printcmd.c (do_one_display, print_variable_and_value): Use
2279 * p-valprint.c (pascal_val_print)
2280 (pascal_object_print_value_fields): Use metadata style.
2281 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2282 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2284 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2285 * m2-valprint.c (m2_print_long_set): Use metadata style.
2286 * m2-typeprint.c (m2_print_type): Use metadata style.
2287 * infcmd.c (print_return_value_1): Use metadata style.
2288 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2289 * f-valprint.c (info_common_command_for_block): Use metadata
2291 * f-typeprint.c (f_type_print_base): Use metadata style.
2292 * expprint.c (print_subexp_standard): Use metadata style.
2293 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2294 * cli/cli-style.h (class cli_style_option): Add constructor.
2295 (metadata_style): Declare.
2296 * cli/cli-style.c (metadata_style): New global.
2297 (_initialize_cli_style): Register metadata style.
2298 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2300 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2301 * c-typeprint.c (c_type_print_base_struct_union)
2302 (c_type_print_base_1): Use metadata style.
2303 * breakpoint.c (watchpoint_value_print)
2304 (print_one_breakpoint_location): Use metadata style.
2305 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2307 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2309 * ada-valprint.c (val_print_packed_array_elements, printstr)
2310 (print_field_values, ada_val_print_ref, ada_val_print): Use
2312 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2314 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2316 * ada-lang.c (user_select_syms): Use metadata style.
2318 2019-10-01 Tom Tromey <tom@tromey.com>
2320 * cli/cli-cmds.c (pwd_command): Style output.
2322 2019-10-01 Pedro Alves <palves@redhat.com>
2323 Tom Tromey <tom@tromey.com>
2325 * symtab.c (print_symbol_info): Use %ps.
2326 (print_msymbol_info): Use %ps.
2327 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2328 * printcmd.c (print_variable_and_value): Use %ps.
2329 * macrocmd.c (show_pp_source_pos): Use %ps.
2330 * infrun.c (print_exited_reason): Use ui_out::message.
2331 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2332 (describe_other_breakpoints): Use ui_out::message and new
2334 (say_where): Use new formats.
2335 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2338 2019-10-01 Pedro Alves <palves@redhat.com>
2339 Tom Tromey <tom@tromey.com>
2341 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2342 (test_gdb_formats): New function.
2343 (run_tests): Call it.
2344 (test_format_specifier): Update.
2345 * utils.h (fputs_filtered): Update comment.
2346 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2347 (fputs_styled_unfiltered): Declare.
2348 * utils.c (fputs_styled_unfiltered): New function.
2349 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2350 (vfprintf_filtered): Update.
2351 (vfprintf_unfiltered, vprintf_filtered): Update.
2352 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2353 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2354 disallow_ui_out_field>: New constants.
2355 (enum class field_kind): New.
2356 (struct base_field_s, struct signed_field_s): New.
2357 (signed_field): New function.
2358 (struct string_field_s): New.
2359 (string_field): New function.
2360 (struct styled_string_s): New.
2361 (styled_string): New function.
2362 (class ui_out) <message>: Add comment.
2363 <vmessage, call_do_message>: New methods.
2364 <do_message>: Add style parameter.
2365 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2367 (ui_out::message): Rewrite.
2368 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2370 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2371 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2372 gdb_extensions parameter.
2373 (class format_piece): Add parameter to constructor.
2374 (n_int_args): New field.
2375 * gdbsupport/format.c (format_pieces::format_pieces): Add
2376 gdb_extensions parameter. Handle '*'.
2377 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2378 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2379 vfprintf_styled_no_gdbfmt.
2380 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2381 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2383 * ui-style.h (struct ui_file_style) <ptr>: New method.
2385 2019-10-01 Tom Tromey <tom@tromey.com>
2387 * unittests/format_pieces-selftests.c: Update. Add final format.
2388 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2389 empty literal pieces.
2391 2019-10-01 Tom Tromey <tom@tromey.com>
2393 * ui-out.h (enum class ui_out_style_kind): Remove.
2394 (class ui_out) <field_string, field_stsream, do_field_string>:
2395 Change type of "style".
2396 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2397 (ui_out::field_string): Update.
2398 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2400 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2401 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2402 * stack.c (print_frame_arg, print_frame_info, print_frame):
2404 * source.c (print_source_lines_base): Update.
2405 * solib.c (info_sharedlibrary_command): Update.
2406 * skip.c (info_skip_command): Update.
2407 * record-btrace.c (btrace_call_history_src_line)
2408 (btrace_call_history): Update.
2409 * python/py-framefilter.c (py_print_frame): Update.
2410 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2412 * mi/mi-out.c (mi_ui_out::do_table_header)
2413 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2414 (mi_ui_out::do_field_string): Update.
2415 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2417 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2419 * cli-out.c (cli_ui_out::do_table_header)
2420 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2421 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2422 (cli_ui_out::do_field_fmt): Update.
2423 * breakpoint.c (print_breakpoint_location): Update.
2424 (update_static_tracepoint): Update.
2426 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2428 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2429 conversion of gdb_datadir.
2430 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2431 remove not needed c_str ().
2433 2019-09-30 Ali Tamur <tamur@google.com>
2435 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2436 (dwarf2_string_attr): Likewise.
2438 2019-09-30 Ali Tamur <tamur@google.com>
2440 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2441 (process_full_type_unit): Likewise.
2442 (dump_die_shallow): Likewise.
2443 (cu_debug_loc_section): Likewise.
2445 2019-09-28 Christian Biesinger <cbiesinger@google.com>
2447 * minsyms.c (compare_minimal_symbols): Rename to...
2448 (minimal_symbol_is_less_than): ...this, and adjust to STL
2449 conventions (return bool, take arguments as references)
2450 (minimal_symbol_reader::install): Call std::sort instead
2453 2019-09-29 Christian Biesinger <cbiesinger@google.com>
2455 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2457 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2458 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2460 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2462 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2463 * psympriv.h (add_psymbol_to_list): Move comment here and update
2466 2019-09-29 Tom de Vries <tdevries@suse.de>
2468 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2469 Use $tmpdir/$(basename "$output_file").dwz instead of
2470 "${output_file}.dwz".
2472 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2475 * hppa-linux-nat.c: Include gdbarch.h.
2477 2019-09-26 Christian Biesinger <cbiesinger@google.com>
2479 * blockframe.c (find_pc_partial_function): Change return type to bool.
2480 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2481 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2482 (stub_gnu_ifunc_resolve_name): Likewise.
2483 * symtab.c (compare_filenames_for_search): Likewise.
2484 (compare_glob_filenames_for_search): Likewise.
2485 (matching_obj_sections): Likewise.
2486 (symbol_matches_domain): Likewise.
2487 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2488 (find_line_pc): Change return type to bool.
2489 (find_line_pc_range): Likewise.
2490 (producer_is_realview): Likewise.
2491 * symtab.h (symbol_matches_domain): Likewise.
2492 (find_pc_partial_function): Likewise.
2493 (find_pc_line_pc_range): Likewise.
2494 (in_gnu_ifunc_stub): Likewise.
2495 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2496 (find_line_pc): Likewise.
2497 (find_line_pc_range): Likewise.
2498 (matching_obj_sections): Likewise.
2499 (find_line_symtab): Change out parameter to bool.
2500 (producer_is_realview): Change return type to bool.
2501 (compare_filenames_for_search): Likewise.
2502 (compare_glob_filenames_for_search): Likewise.
2504 2019-09-26 Tom Tromey <tom@tromey.com>
2506 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2507 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2508 * gdb_usleep.h: Remove.
2509 * gdb_usleep.c: Remove.
2510 * utils.c: Don't include gdb_usleep.h.
2512 2019-09-26 Tom Tromey <tromey@adacore.com>
2514 * python/py-type.c (type_to_type_object): Call check_typedef
2517 2019-09-26 Tom Tromey <tom@tromey.com>
2519 * utils.h (initialize_utils): Don't declare.
2520 * top.c (gdb_init): Don't call initialize_utils.
2521 * utils.c (initialize_utils): Remove. Move contents...
2522 (_initialize_utils): ... here.
2524 2019-09-25 Tom Tromey <tom@tromey.com>
2526 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2527 * utils.h (make_hex_string): Don't declare.
2528 * utils.c (make_hex_string): Remove.
2530 2019-09-24 Tom de Vries <tdevries@suse.de>
2533 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2534 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2536 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2538 * NEWS: Mention new simulator port for PRU.
2540 2019-09-23 Christian Biesinger <cbiesinger@google.com>
2542 * ada-exp.y (write_object_remaining): Update.
2543 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2544 and eliminate the static buffer.
2545 (ada_decode_symbol): Update.
2546 (ada_la_decode): Update.
2547 (ada_sniff_from_mangled_name): Update.
2548 (is_valid_name_for_wild_match): Update.
2549 (ada_lookup_name_info::matches): Update and simplify.
2550 (name_matches_regex): Update.
2551 (ada_add_global_exceptions): Update.
2552 * ada-lang.h (ada_decode): Update signature.
2553 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2554 * dwarf-index-write.c (debug_names::insert): Update.
2556 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2558 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2561 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2563 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2564 Change "nonzero" to "true" in documentation.
2566 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2568 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2569 (_initialize_darwin_solib): Don't set
2570 darwin_so_ops.lookup_lib_global_symbol.
2571 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2572 set_gdbarch_iterate_over_objfiles_in_search_order.
2573 (elf_lookup_lib_symbol): Rename to...
2574 (svr4_iterate_over_objfiles_in_search_order): this, and update
2575 to iterate semantics.
2576 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2577 * solib.c (solib_global_lookup): Remove.
2578 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2579 (solib_global_lookup): Remove.
2580 * symtab.c (lookup_global_or_static_symbol): Remove call to
2581 solib_global_lookup.
2583 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2585 * NEWS: Move entries about default MI version now being
2586 version 3, and about the GDB/MI fix for multi-location
2587 breakpoints to the "since GDB 8.3" section.
2589 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2593 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2595 * NEWS: Mention that Cell/B.E. debugging support was removed.
2596 * MAINTAINERS: Remove spu target.
2598 * config/djgpp/fnchange.lst: Remove entries for removed files.
2600 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2601 spu-multiarch.o, and spu-tdep.o.
2602 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2603 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2604 spu-multiarch.c, and spu-tdep.c.
2605 * spu-linux-nat.c: Remove file.
2606 * spu-multiarch.c: Remove file.
2607 * spu-tdep.c: Remove file.
2608 * spu-tdep.h: Remove file.
2609 * solib-spu.c: Remove file.
2610 * solib-spu.h: Remove file.
2612 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2613 * configure.nat (spu-linux): Remove.
2614 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2615 solib-multiarch.o from gdb_target_obs.
2618 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2620 (ppc_linux_no_features): Update.
2621 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2623 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2624 (tdesc_powerpc_cell64l): Likewise.
2625 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2626 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2628 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2629 Do not include "features/rs6000/powerpc-cell32l.c" or
2630 "features/rs6000/powerpc-cell64l.c".
2631 (ppc_linux_spu_section): Remove.
2632 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2633 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2634 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2635 (ppc_linux_spe_context_lookup): Remove.
2636 (ppc_linux_spe_context_inferior_created): Remove.
2637 (ppc_linux_spe_context_solib_loaded): Remove.
2638 (ppc_linux_spe_context_solib_unloaded): Remove.
2639 (ppc_linux_spe_context): Remove.
2640 (struct ppu2spu_cache): Remove.
2641 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2642 (struct ppu2spu_data): Remove.
2643 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2644 ppu2spu_unwind): Remove.
2645 (ppc_linux_init_abi): Remove Cell/B.E. support.
2646 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2648 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2649 (rs6000/powerpc-cell64l-expedite): Likewise
2650 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2651 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2652 rs6000/powerpc-cell64l.xml.
2653 * features/rs6000/powerpc-cell32l.xml: Remove.
2654 * features/rs6000/powerpc-cell64l.xml: Likewise.
2655 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2656 * features/rs6000/powerpc-cell64l.c: Likewise.
2657 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2658 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2659 * regformats/reg-spu.dat: Remove.
2661 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2662 * corelow.c (struct spuid_list): Remove.
2663 (add_to_spuid_list): Remove.
2664 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2665 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2666 (remote_protocol_features): Remove associated entries.
2667 (_initialize_remote): No longer initialize them.
2668 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2669 * linux-nat.c (SPUFS_MAGIC): Remove.
2670 (linux_proc_xfer_spu): Remove.
2671 (spu_enumerate_spu_ids): Remove.
2672 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2673 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2674 (linux_make_corefile_notes): No longer call it.
2676 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2677 (cooked_write_test): Likewise.
2679 2019-09-20 Tom Tromey <tom@tromey.com>
2681 * NEWS: Mention case-sensitivity of TUI commands.
2682 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2683 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2684 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2686 2019-09-20 Tom Tromey <tom@tromey.com>
2688 * tui/tui-source.c (tui_source_window::set_contents): Use
2689 make_unique_xstrdup.
2690 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2691 make_unique_xstrdup.
2693 2019-09-20 Tom Tromey <tom@tromey.com>
2695 * tui/tui-data.c: Remove separator comments.
2696 * tui/tui-layout.c: Remove separator comments.
2697 * tui/tui-win.c: Remove separator comments.
2698 * tui/tui-wingeneral.c: Remove separator comments.
2700 2019-09-20 Tom Tromey <tom@tromey.com>
2702 * tui/tui.h (strcat_to_buf): Don't declare.
2703 * tui/tui.c (strcat_to_buf): Remove.
2705 2019-09-20 Tom Tromey <tom@tromey.com>
2707 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2709 * tui/tui-source.c (tui_source_window::set_contents)
2710 (tui_source_window::location_matches_p)
2711 (tui_source_window::maybe_update): Update.
2713 2019-09-20 Tom Tromey <tom@tromey.com>
2715 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2717 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2719 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2720 (tui_data_window::line_from_reg_element_no)
2721 (tui_data_window::first_reg_element_no_inline)
2722 (tui_data_window::show_registers)
2723 (tui_data_window::show_register_group)
2724 (tui_data_window::display_registers_from)
2725 (tui_data_window::display_registers_from_line)
2726 (tui_data_window::first_data_item_displayed)
2727 (tui_data_window::delete_data_content_windows)
2728 (tui_data_window::erase_data_content)
2729 (tui_data_window::do_scroll_vertical)
2730 (tui_data_window::refresh_window)
2731 (tui_data_window::check_register_values): Update.
2733 2019-09-20 Tom Tromey <tom@tromey.com>
2735 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2736 (struct tui_locator_window) <full_name, proc_name>: Now
2738 * tui/tui-stack.c (tui_locator_window::make_status_line)
2739 (tui_locator_window::set_locator_fullname)
2740 (tui_locator_window::set_locator_info): Update.
2741 * tui/tui-source.c (tui_source_window::set_contents)
2742 (tui_source_window::showing_source_p): Update.
2744 2019-09-20 Tom Tromey <tom@tromey.com>
2746 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2747 Don't call tui_locator_win_info_ptr.
2749 2019-09-20 Tom Tromey <tom@tromey.com>
2751 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2753 2019-09-20 Tom Tromey <tom@tromey.com>
2755 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2757 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2758 * tui/tui-layout.c (show_source_disasm_command, show_data)
2759 (show_source_or_disasm_and_command): Use 1 as height for locator.
2761 2019-09-20 Tom Tromey <tom@tromey.com>
2763 * tui/tui.c (tui_enable): Update.
2764 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2766 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2768 * tui/tui-data.c (win_resized): Now bool.
2769 (tui_win_resized): Return bool.
2770 (tui_set_win_resized_to): Accept a bool.
2772 2019-09-20 Tom Tromey <tom@tromey.com>
2774 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2775 Change type of "refresh_values_only".
2776 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2777 type of "refresh_values_only".
2779 2019-09-20 Tom Tromey <tom@tromey.com>
2781 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2783 (tui_disassemble): Add "pos" parameter.
2784 (tui_disasm_window::set_contents): Simplify.
2786 2019-09-20 Tom Tromey <tom@tromey.com>
2788 * tui/tui-winsource.h (struct tui_source_window_base)
2789 <show_source_content>: Now private.
2790 * tui/tui-winsource.c
2791 (tui_source_window_base::show_source_content): Don't handle empty
2794 2019-09-20 Tom Tromey <tom@tromey.com>
2796 * tui/tui-layout.c (show_source_disasm_command)
2797 (show_source_or_disasm_and_command): Don't call
2798 show_source_content.
2800 2019-09-20 Tom Tromey <tom@tromey.com>
2802 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2804 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2805 from tui_make_status_line.
2806 (tui_locator_window::rerender): Update.
2808 2019-09-20 Tom Tromey <tom@tromey.com>
2810 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2811 (tui_locator_window::rerender): Update.
2813 2019-09-20 Tom Tromey <tom@tromey.com>
2815 * tui/tui-winsource.h (struct tui_source_window_base)
2816 <~tui_source_window_base>: Don't declare.
2818 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2819 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2821 * tui/tui-source.c (tui_source_window::set_contents): Update.
2822 (tui_source_window::location_matches_p)
2823 (tui_source_window::maybe_update): Update.
2825 2019-09-20 Tom Tromey <tom@tromey.com>
2827 * tui/tui-winsource.h (~tui_source_element): Remove.
2828 (tui_source_element): Update.
2829 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2830 * tui/tui-winsource.c (tui_show_source_line): Update.
2831 * tui/tui-source.c (tui_source_window::set_contents): Update.
2832 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2834 2019-09-20 Tom Tromey <tom@tromey.com>
2836 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2838 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2839 tui_clear_source_windows_detail.
2840 * tui/tui-winsource.h (struct tui_source_window_base)
2841 <clear_detail>: Don't declare.
2842 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2844 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2846 2019-09-20 Tom Tromey <tromey@adacore.com>
2849 * block.c (contained_in): Fix final return value.
2851 2019-09-20 Alan Modra <amodra@gmail.com>
2853 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2854 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2855 (read_indirect_string_from_dwz): Use bfd accessor.
2856 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2857 * machoread.c (macho_symfile_read_all_oso): Likewise.
2858 * solib.c (solib_bfd_open): Likewise.
2860 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2862 * eval.c: Move declaration of overload_resolution to...
2865 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2867 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2868 * arm-linux-tdep.c: Likewise.
2869 * arm-nbsd-nat.c: Likewise.
2870 * arm-tdep.h: Declare arm_apcs_32.
2871 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2873 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2875 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2876 * dwarf2read.h: Declare dwarf_always_disassemble.
2878 2019-09-19 Tom de Vries <tdevries@suse.de>
2881 * source-cache.c (source_cache::ensure): Catch exception thrown during
2882 construction of the highlighter.
2884 2019-09-18 Alan Modra <amodra@gmail.com>
2886 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2887 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2888 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2889 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2890 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2891 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2892 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
2893 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
2894 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
2895 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
2896 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
2897 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
2898 * solib-spu.c, * solib-svr4.c, * solib-target.c,
2899 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
2900 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
2901 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
2902 * mi/mi-interp.c: Update throughout for bfd section macro and
2904 * gcore (gcore_create_callback): Use bfd_set_section_lma.
2905 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
2907 2019-09-18 Tom Tromey <tom@tromey.com>
2910 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
2912 (tui_enable): Do not call rl_initialize.
2914 2019-09-18 Christian Groessler <chris@groessler.org>
2916 * alpha-linux-nat.c: Include gdbarch.h.
2918 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2920 * ui-file.c: Include cli/cli-style.h.
2921 (term_cli_styling): Remove cli_styling declaration.
2923 2019-09-18 Alan Modra <amodra@gmail.com>
2925 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
2926 to bfd_asymbol_section.
2928 2019-09-18 Alan Modra <amodra@gmail.com>
2930 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
2931 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2932 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
2934 2019-09-18 Alan Modra <amodra@gmail.com>
2936 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
2937 * spu-linux-nat.c (spu_bfd_open): Likewise.
2939 2019-09-18 Christian Biesinger <cbiesinger@google.com>
2941 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
2942 to bool to match definition in dwarf2read.c.
2944 2019-09-17 Christian Biesinger <cbiesinger@google.com>
2946 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
2947 (print_signatures): Likewise.
2948 (trust_pad_over_xvs): Likewise.
2949 * arch/aarch64-insn.c (aarch64_debug): Likewise.
2950 * arch/aarch64-insn.h (aarch64_debug): Likewise.
2951 * arm-linux-nat.c (arm_apcs_32): Likewise.
2952 * arm-linux-tdep.c (arm_apcs_32): Likewise.
2953 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
2954 * arm-tdep.c (arm_debug): Likewise.
2955 (arm_apcs_32): Likewise.
2956 * auto-load.c (debug_auto_load): Likewise.
2957 (auto_load_gdb_scripts): Likewise.
2958 (global_auto_load): Likewise.
2959 (auto_load_local_gdbinit): Likewise.
2960 (auto_load_local_gdbinit_loaded): Likewise.
2961 * auto-load.h (global_auto_load): Likewise.
2962 (auto_load_local_gdbinit): Likewise.
2963 (auto_load_local_gdbinit_loaded): Likewise.
2964 * breakpoint.c (disconnected_dprintf): Likewise.
2965 (breakpoint_proceeded): Likewise.
2966 (automatic_hardware_breakpoints): Likewise.
2967 (always_inserted_mode): Likewise.
2968 (target_exact_watchpoints): Likewise.
2969 (_initialize_breakpoint): Update.
2970 * breakpoint.h (target_exact_watchpoints): Change to bool.
2971 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
2972 * cli/cli-cmds.c (trace_commands): Likewise.
2973 * cli/cli-cmds.h (trace_commands): Likewise.
2974 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2976 * cli/cli-logging.c (logging_overwrite): Change to bool.
2977 (logging_redirect): Likewise.
2978 (debug_redirect): Likewise.
2979 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2980 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2982 <boolean_option_def>: Update.
2983 (struct flag_option_def): Change default type of Context to bool
2985 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2986 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2987 (get_setshow_command_value_string): Likewise.
2988 * cli/cli-style.c (cli_styling): Change to bool.
2989 (source_styling): Likewise.
2990 * cli/cli-style.h (source_styling): Likewise.
2991 (cli_styling): Likewise.
2992 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
2994 * command.h (var_types): Update comment.
2995 (add_setshow_boolean_cmd): Change int* var argument to bool*.
2996 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
2998 (debug_compile_cplus_scopes): Likewise.
2999 * compile/compile-internal.h (compile_debug): Likewise.
3000 * compile/compile.c (compile_debug): Likewise.
3001 (struct compile_options) <raw>: Likewise.
3002 * cp-support.c (catch_demangler_crashes): Likewise.
3003 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3004 (usr_cmd_cris_dwarf2_cfi): Likewise.
3005 * csky-tdep.c (csky_debug): Likewise.
3006 * darwin-nat.c (enable_mach_exceptions): Likewise.
3007 * dcache.c (dcache_enabled_p): Likewise.
3008 * defs.h (info_verbose): Likewise.
3009 * demangle.c (demangle): Likewise.
3010 (asm_demangle): Likewise.
3011 * dwarf-index-cache.c (debug_index_cache): Likewise.
3012 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3013 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3014 * dwarf2read.c (check_physname): Likewise.
3015 (use_deprecated_index_sections): Likewise.
3016 (dwarf_always_disassemble): Likewise.
3017 * eval.c (overload_resolution): Likewise.
3018 * event-top.c (set_editing_cmd_var): Likewise.
3019 (exec_done_display_p): Likewise.
3020 * event-top.h (set_editing_cmd_var): Likewise.
3021 (exec_done_display_p): Likewise.
3022 * exec.c (write_files): Likewise.
3023 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3024 (debug_fbsd_nat): Likewise.
3025 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3027 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3028 <backtrace_past_entry> Likewise.
3029 * gdb-demangle.h (demangle): Likewise.
3030 (asm_demangle): Likewise.
3031 * gdb_bfd.c (bfd_sharing): Likewise.
3032 * gdbcore.h (write_files): Likewise.
3033 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3034 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3035 * gdbthread.h (print_thread_events): Likewise.
3036 * gdbtypes.c (opaque_type_resolution): Likewise.
3037 (strict_type_checking): Likewise.
3038 * gnu-nat.c (gnu_debug_flag): Likewise.
3039 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3040 * guile/scm-param.c (pascm_variable): Add boolval.
3041 (add_setshow_generic): Update.
3042 (pascm_param_value): Update.
3043 (pascm_set_param_value_x): Update.
3044 * hppa-tdep.c (hppa_debug): Change to bool..
3045 * infcall.c (may_call_functions_p): Likewise.
3046 (coerce_float_to_double_p): Likewise.
3047 (unwind_on_signal_p): Likewise.
3048 (unwind_on_terminating_exception_p): Likewise.
3049 * infcmd.c (startup_with_shell): Likewise.
3050 * inferior.c (print_inferior_events): Likewise.
3051 * inferior.h (startup_with_shell): Likewise.
3052 (print_inferior_events): Likewise.
3053 * infrun.c (step_stop_if_no_debug): Likewise.
3054 (detach_fork): Likewise.
3055 (debug_displaced): Likewise.
3056 (disable_randomization): Likewise.
3057 (non_stop): Likewise.
3058 (non_stop_1): Likewise.
3059 (observer_mode): Likewise.
3060 (observer_mode_1): Likewise.
3061 (set_observer_mode): Update.
3062 (sched_multi): Change to bool.
3063 * infrun.h (debug_displaced): Likewise.
3064 (sched_multi): Likewise.
3065 (step_stop_if_no_debug): Likewise.
3066 (non_stop): Likewise.
3067 (disable_randomization): Likewise.
3068 * linux-tdep.c (use_coredump_filter): Likewise.
3069 (dump_excluded_mappings): Likewise.
3070 * linux-thread-db.c (auto_load_thread_db): Likewise.
3071 (check_thread_db_on_load): Likewise.
3072 * main.c (captured_main_1): Update.
3073 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3074 xx2_opt, boolean_opt>: Change to bool.
3075 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3076 * maint.c (maintenance_profile_p): Likewise.
3077 (per_command_time): Likewise.
3078 (per_command_space): Likewise.
3079 (per_command_symtab): Likewise.
3080 * memattr.c (inaccessible_by_default): Likewise.
3081 * mi/mi-main.c (mi_async): Likewise.
3082 (mi_async_1): Likewise.
3083 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3084 * nat/fork-inferior.h (startup_with_shell): Likewise.
3085 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3086 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3087 * nios2-tdep.c (nios2_debug): Likewise.
3088 * or1k-tdep.c (or1k_debug): Likewise.
3089 * parse.c (parser_debug): Likewise.
3090 * parser-defs.h (parser_debug): Likewise.
3091 * printcmd.c (print_symbol_filename): Likewise.
3092 * proc-api.c (procfs_trace): Likewise.
3093 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3094 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3095 (set_parameter_value): Update.
3096 (add_setshow_generic): Update.
3097 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3099 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3101 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3102 * record-btrace.c (record_btrace_target::store_registers): Update.
3103 * record-full.c (record_full_memory_query): Change to bool.
3104 (record_full_stop_at_limit): Likewise.
3105 * record-full.h (record_full_memory_query): Likewise.
3106 * remote-notif.c (notif_debug): Likewise.
3107 * remote-notif.h (notif_debug): Likewise.
3108 * remote.c (use_range_stepping): Likewise.
3109 (interrupt_on_connect): Likewise.
3110 (remote_break): Likewise.
3111 * ser-tcp.c (tcp_auto_retry): Likewise.
3112 * ser-unix.c (serial_hwflow): Likewise.
3113 * skip.c (debug_skip): Likewise.
3114 * solib-aix.c (solib_aix_debug): Likewise.
3115 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3116 (spu_auto_flush_cache_p): Likewise.
3117 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3119 (struct info_print_options) <quiet>: Likewise.
3120 * symfile-debug.c (debug_symfile): Likewise.
3121 * symfile.c (auto_solib_add): Likewise.
3122 (separate_debug_file_debug): Likewise.
3123 * symfile.h (auto_solib_add): Likewise.
3124 (separate_debug_file_debug): Likewise.
3125 * symtab.c (basenames_may_differ): Likewise.
3126 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3127 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3128 (struct info_types_options) <quiet>: Likewise.
3129 * symtab.h (demangle): Likewise.
3130 (basenames_may_differ): Likewise.
3131 * target-dcache.c (stack_cache_enabled_1): Likewise.
3132 (code_cache_enabled_1): Likewise.
3133 * target.c (trust_readonly): Likewise.
3134 (may_write_registers): Likewise.
3135 (may_write_memory): Likewise.
3136 (may_insert_breakpoints): Likewise.
3137 (may_insert_tracepoints): Likewise.
3138 (may_insert_fast_tracepoints): Likewise.
3139 (may_stop): Likewise.
3140 (auto_connect_native_target): Likewise.
3141 (target_stop_and_wait): Update.
3142 (target_async_permitted): Change to bool.
3143 (target_async_permitted_1): Likewise.
3144 (may_write_registers_1): Likewise.
3145 (may_write_memory_1): Likewise.
3146 (may_insert_breakpoints_1): Likewise.
3147 (may_insert_tracepoints_1): Likewise.
3148 (may_insert_fast_tracepoints_1): Likewise.
3149 (may_stop_1): Likewise.
3150 * target.h (target_async_permitted): Likewise.
3151 (may_write_registers): Likewise.
3152 (may_write_memory): Likewise.
3153 (may_insert_breakpoints): Likewise.
3154 (may_insert_tracepoints): Likewise.
3155 (may_insert_fast_tracepoints): Likewise.
3156 (may_stop): Likewise.
3157 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3158 (make_thread_apply_all_options_def_group): Change argument from int*
3160 (thread_apply_all_command): Update.
3161 (print_thread_events): Change to bool.
3162 * top.c (confirm): Likewise.
3163 (command_editing_p): Likewise.
3164 (history_expansion_p): Likewise.
3165 (write_history_p): Likewise.
3166 (info_verbose): Likewise.
3167 * top.h (confirm): Likewise.
3168 (history_expansion_p): Likewise.
3169 * tracepoint.c (disconnected_tracing): Likewise.
3170 (circular_trace_buffer): Likewise.
3171 * typeprint.c (print_methods): Likewise.
3172 (print_typedefs): Likewise.
3173 * utils.c (debug_timestamp): Likewise.
3174 (sevenbit_strings): Likewise.
3175 (pagination_enabled): Likewise.
3176 * utils.h (sevenbit_strings): Likewise.
3177 (pagination_enabled): Likewise.
3178 * valops.c (overload_resolution): Likewise.
3179 * valprint.h (struct value_print_options) <prettyformat_arrays,
3180 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3181 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3182 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3184 * windows-nat.c (new_console): Likewise.
3185 (cygwin_exceptions): Likewise.
3186 (new_group): Likewise.
3187 (debug_exec): Likewise.
3188 (debug_events): Likewise.
3189 (debug_memory): Likewise.
3190 (debug_exceptions): Likewise.
3191 (useshell): Likewise.
3192 * windows-tdep.c (maint_display_all_tib): Likewise.
3193 * xml-support.c (debug_xml): Likewise.
3195 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3197 * source.c (prepare_path_for_appending): New function.
3198 (openp): Make use of new function.
3199 (find_and_open_source): Search for the compilation directory and
3200 source file as a relative path beneath the directory search path.
3202 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3204 * source-cache.c (source_cache::get_line_charpos): Catch
3205 exceptions and return false, this matches the behaviour documented
3208 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3210 * ada-tasks.c (info_task): Remove quoting of the task's name.
3212 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3214 * symfile.c (auto_solib_add): Replace comment with a reference
3217 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3219 * NEWS: Mention that gdb can now be compiled with Python 3
3222 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3224 * maint.c (maint_print_section_data::maint_print_section_data):
3225 Force use of 'float log10 (float)' by casting the argument to
3228 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3230 * maint.c: Add 'cmath' include.
3231 (struct maint_print_section_data): New structure.
3232 (print_section_index): New function.
3233 (print_bfd_section_info): Add header comment, small whitespace
3234 cleanup, and update to call new print_section_index function.
3235 (print_objfile_section_info): Likewise.
3236 (maint_obj_section_from_bfd_section): New function.
3237 (print_bfd_section_info_maybe_relocated): New function.
3238 (maintenance_info_sections): Add header comment, always use
3239 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3241 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3243 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3244 inner scope, add check that the objfile has psymtabs before
3245 checking psymtabs_addrmap.
3246 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3248 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3250 * NEWS: Announce that Ada task names are now shown at more places,
3251 and between quotes (except in info task output).
3252 * gdb/ada-tasks.c (task_to_str): New function.
3253 (display_current_task_id): Call task_to_str.
3254 (task_command_1): Likewise.
3255 (print_ada_task_info): In non-mi mode, Properly align headers and data
3256 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3258 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3260 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3261 prstatus.pr_lwp.pr_info instead of making it up.
3263 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3265 * auto-load.c (auto_load_expand_dir_vars): Update.
3266 * defs.h (gdb_datadir): Change to std::string.
3267 (python_libdir): Likewise.
3268 (relocate_gdb_directory): Change return type to std::string.
3269 * guile/guile.c (gdbscm_data_directory): Update.
3270 (initialize_scheme_side): Update.
3271 * jit.c (jit_reader_dir): Change to std::string.
3272 (jit_reader_load_command): Update.
3273 * main.c (gdb_datadir): Change to std::string.
3274 (python_libdir): Likewise.
3275 (set_gdb_data_directory): Update.
3276 (relocate_path): Change to return std::string.
3277 (relocate_gdb_directory): Change to return std::string.
3278 (relocate_gdbinit_path_maybe_in_datadir): Update.
3279 (captured_main_1): Update.
3280 * python/python.c (do_start_initialization): Update.
3281 * top.c (show_gdb_datadir): Update.
3282 * xml-syscall.c (xml_init_syscalls_info): Update.
3283 (init_syscalls_info): Update.
3285 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3287 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3288 out of get_init_files.
3289 (get_init_files): Update.
3291 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3293 * main.c (get_init_files): Change to use std::string.
3294 (captured_main_1): Update.
3295 (print_gdb_help): Update.
3297 2019-09-11 Ali Tamur <tamur@google.com>
3299 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3302 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3304 * dbxread.c (read_dbx_symtab): Update.
3305 * dwarf2read.c (load_partial_dies): Update.
3306 * mdebugread.c (parse_partial_symbols): Update.
3307 (handle_psymbol_enumerators): Update.
3308 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3309 * psymtab.c (add_psymbol_to_bcache): Likewise.
3310 (add_psymbol_to_list): Likewise.
3311 * symtab.c (symbol_set_names): Likewise.
3312 * symtab.h (symbol_set_names): Likewise.
3313 * xcoffread.c (scan_xcoff_symtab): Update.
3315 2019-09-11 Tom Tromey <tom@tromey.com>
3317 * symfile-mem.c (symbol_file_add_from_memory): Use
3319 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3320 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3322 2019-09-10 Tom Tromey <tromey@adacore.com>
3324 * dwarf-index-write.c (write_psymbols): Extend error message.
3325 (debug_names::insert): Add Ada code.
3326 (debug_names::write_psymbols): Remove Ada check.
3327 (debug_names) <m_string_obstack>: New member.
3328 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3329 (gdb_index_symbol_name_matcher::matches): Remove.
3330 (mapped_index_base::find_name_components_bounds): Add "lang"
3332 (mapped_index_base::build_name_components): Also split names
3333 according to Ada syntax.
3334 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3335 type of "match_callback".
3336 (check_match, check_find_bounds_finds)
3337 (dw2_expand_symtabs_matching): Update.
3338 (dw2_debug_names_iterator): Add new constructor.
3339 (dw2_debug_names_map_matching_symbols): New function.
3340 (dw2_debug_names_expand_symtabs_matching): Update.
3341 (dwarf2_debug_names_functions): Use
3342 dw2_debug_names_map_matching_symbols.
3344 2019-09-10 Tom Tromey <tromey@adacore.com>
3346 * dwarf2read.c (dw2_get_file_names_reader): Add the
3347 CU's file name to the results.
3349 2019-09-10 Tom Tromey <tromey@adacore.com>
3351 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3352 map_matching_symbols. Update.
3353 * dwarf2read.c (dw2_map_matching_symbols): Update.
3354 * psymtab.c (match_partial_symbol): Change type; update.
3355 (psym_map_matching_symbols): Likewise.
3356 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3358 * symfile.h (struct quick_symbol_functions)
3359 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3362 2019-09-10 Tom Tromey <tromey@adacore.com>
3364 * psymtab.c (map_block): Remove.
3365 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3366 * symtab.c (iterate_over_symbols_terminated): New function.
3367 * symtab.c (iterate_over_symbols_terminated): Declare.
3369 2019-09-10 Tom Tromey <tromey@adacore.com>
3371 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3372 * language.h (struct language_defn) <la_iterate_over_symbols>:
3374 * symtab.c (iterate_over_symbols): Return bool.
3375 * symtab.h (iterate_over_symbols): Return bool.
3377 2019-09-10 Tom Tromey <tromey@adacore.com>
3379 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3380 (add_nonlocal_symbols): Update.
3381 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3382 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3383 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3384 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3385 Change type of "callback". Remove "data".
3388 2019-09-09 Ali Tamur <tamur@google.com>
3390 * dwarf2read.c (comp_unit_head): Update comment.
3391 (dwarf2_dwo_name): New function declaration.
3392 (dwarf_unit_type_name): New function declaration.
3393 (read_comp_unit_head): Add support for new compilation units,
3394 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3395 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3396 (currently named as "signature") in their header. Also clarify error
3398 (lookup_dwo_id): New function. Returns the dwo id of the given
3400 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3401 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3403 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3404 (dwarf2_dwo_name): Get the dwo name if present.
3405 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3408 2019-09-09 Tom Tromey <tom@tromey.com>
3410 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3412 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3414 * python/python.c (do_start_initialization): Make progname_copy static,
3415 to avoid a leak report.
3417 2019-09-08 Tom Tromey <tom@tromey.com>
3419 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3421 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
3423 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3424 Change type to gdb::optional<block_enum>.
3425 (dw2_symtab_iter_init): Change block_index parameter type
3426 to gdb::optional<block_enum>.
3427 (dw2_lookup_symbol): Change block_index parameter
3428 type to block_enum.c
3429 (dw2_debug_names_lookup_symbol): Likewise.
3430 * psymtab.c (psym_lookup_symbol): Likewise.
3431 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3432 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3435 2019-09-06 Christian Biesinger <cbiesinger@google.com>
3437 * defs.h (relocate_gdb_directory): Change int to bool in
3438 signature and rename flag to relocatable.
3439 * main.c (relocate_path): Likewise.
3440 (relocate_gdb_directory): Likewise.
3442 2019-09-06 Alan Modra <amodra@gmail.com>
3444 * coffread.c (coff_symfile_read): Constify filename variable.
3445 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3446 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3447 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3448 * solib.c (reload_shared_libraries_1): Likewise.
3449 * symfile.c (reread_symbols): Likewise.
3450 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3451 * solib-darwin.c (darwin_bfd_open): Likewise.
3452 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3454 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3456 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3457 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3459 2019-09-03 Tom Tromey <tromey@adacore.com>
3461 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3463 (has_negatives): Unbias a range type bound.
3464 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3465 * gdbtypes.c (operator==): Handle new field.
3466 (create_range_type): Add "bias" parameter.
3467 (create_static_range_type, resolve_dynamic_range): Update.
3468 * gdbtypes.h (struct range_bounds) <bias>: New member.
3469 (create_range_type): Add bias parameter.
3470 * printcmd.c (print_scalar_formatted): Unbias range types.
3471 * value.c (unpack_long): Unbias range types.
3472 (pack_long): Bias range types.
3474 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3476 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3479 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3481 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3482 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3483 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3484 (compile_probe_arg): Likewise.
3485 * probe.h (get_argument_count): Likewise.
3486 * solib-svr4.c (solib_event_probe_action): Likewise.
3487 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3489 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3491 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3493 (svr4_create_solib_event_breakpoints): ...from here.
3495 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3497 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3498 suffix from warning message.
3500 2019-08-30 Tom Tromey <tom@tromey.com>
3502 * tui/tui-winsource.h (struct tui_source_window_base)
3503 <refresh_all>: Don't declare.
3504 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3506 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3507 tui_show_locator_content.
3508 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3510 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3511 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3514 2019-08-30 Tom Tromey <tom@tromey.com>
3516 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3518 2019-08-30 Tom Tromey <tom@tromey.com>
3520 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3521 Remove unnecessary forward declarations.
3523 2019-08-30 Tom Tromey <tom@tromey.com>
3525 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3527 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3528 tui_show_locator_content.
3530 2019-08-30 Tom Tromey <tom@tromey.com>
3532 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3533 (tui_locator_window::rerender): Rewrite using body of previous
3534 tui_show_locator_content.
3536 2019-08-30 Tom Tromey <tom@tromey.com>
3538 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3539 set_locator_fullname>: New methods.
3540 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3541 Rename from tui_set_locator_fullname.
3542 (tui_locator_window::set_locator_info): Rename from
3543 tui_set_locator_info. Return bool.
3544 (tui_update_locator_fullname, tui_show_frame_info): Update.
3546 2019-08-30 Tom Tromey <tom@tromey.com>
3548 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3550 2019-08-30 Tom Tromey <tom@tromey.com>
3552 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3555 2019-08-30 Tom Tromey <tom@tromey.com>
3557 * tui/tui-wingeneral.c (box_win): Assume win_info and
3558 win_info->handle cannot be NULL.
3560 2019-08-30 Tom Tromey <tom@tromey.com>
3562 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3563 refresh_window>: Declare.
3564 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3566 (tui_data_item_window::rerender): Rename from
3567 tui_display_register.
3568 (tui_data_item_window::refresh_window): New method.
3569 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3572 2019-08-30 Tom Tromey <tom@tromey.com>
3574 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3575 regs_column_count, current_group>: Move later. Now private.
3576 <get_current_group>: New method.
3577 * tui/tui-regs.c (tui_reg_command): Update.
3578 * tui/tui-layout.c (tui_set_layout): Update.
3580 2019-08-30 Tom Tromey <tom@tromey.com>
3582 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3583 (tui_data_window::rerender): Don't call
3584 check_and_display_highlight_if_needed.
3585 (tui_data_window::refresh_all): Remove call to
3588 2019-08-30 Tom Tromey <tom@tromey.com>
3590 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3591 (tui_data_window::display_registers_from)
3592 (tui_data_window::display_reg_element_at_line)
3593 (tui_data_window::display_registers_from_line): Remove checks of
3596 2019-08-30 Tom Tromey <tom@tromey.com>
3598 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3600 * tui/tui-regs.c (tui_data_window::show_registers): Call
3602 (tui_data_window::rerender): Rename from display_all_data.
3603 (tui_data_window::rerender): Remove old implementation.
3605 2019-08-30 Tom Tromey <tom@tromey.com>
3607 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3609 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3611 2019-08-29 Bernhard Wodok <barto@gmx.net>
3612 Sergio Durigan Junior <sergiodj@redhat.com>
3615 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3617 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3619 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3620 when searching for types.
3622 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3624 * f-lang.c (f_language_defn): Use f_print_typedef.
3625 * f-lang.h (f_print_typedef): Declare.
3626 * f-typeprint.c (f_print_typedef): Define.
3628 2019-08-27 Christian Biesinger <cbiesinger@google.com>
3630 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3632 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3634 * cli/cli-utils.c (info_print_options_defs): Delete.
3635 (make_info_print_options_def_group): Delete.
3636 (extract_info_print_options): Delete.
3637 (info_print_command_completer): Delete.
3638 (info_print_args_help): Add extra parameter, and optionally
3639 include text about -n flag.
3640 * cli/cli-utils.h (struct info_print_options): Delete.
3641 (extract_info_print_options): Delete declaration.
3642 (info_print_command_completer): Delete declaration.
3643 (info_print_args_help): Add extra parameter, extend header
3645 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3647 * stack.c (struct info_print_options): New type.
3648 (info_print_options_defs): New file scoped variable.
3649 (make_info_print_options_def_group): New static function.
3650 (info_print_command_completer): New static function.
3651 (info_locals_command): Update to use new local functions.
3652 (info_args_command): Likewise.
3653 (_initialize_stack): Add extra parameter to calls to
3654 info_print_args_help.
3655 * symtab.c (search_symbols): Add extra parameter, use this to
3656 possibly excluse non-debug symbols.
3657 (symtab_symbol_info): Add extra parameter, which is passed on to
3659 (struct info_print_options): New type.
3660 (info_print_options_defs): New file scoped variable.
3661 (make_info_print_options_def_group): New static function.
3662 (info_print_command_completer): New static function.
3663 (info_variables_command): Update to use local functions, and pass
3664 extra parameter through to symtab_symbol_info.
3665 (info_functions_command): Likewise.
3666 (info_types_command): Pass additional argument through to
3668 (rbreak_command): Pass extra argument to search_symbols.
3669 (_initialize_symtab): Add extra arguments for calls to
3670 info_print_args_help, and update help text for 'info variables',
3671 'whereis', and 'info functions' commands.
3672 * symtab.h (search_symbols): Add extra argument to declaration.
3673 * NEWS: Mention new flags.
3675 2019-08-26 Christian Biesinger <cbiesinger@google.com>
3677 * symtab.c (lookup_static_symbol): Call the new function (and move
3678 it down to be next to lookup_global_symbol).
3679 (struct global_sym_lookup_data): Add block_enum member and rename to...
3680 (struct global_or_static_sym_lookup_data): ...this.
3681 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3682 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3683 (lookup_symbol_global_or_static_iterator_cb): ...this.
3684 (lookup_global_or_static_symbol): New function.
3685 (lookup_global_symbol): Call new function.
3687 2019-08-26 Tom de Vries <tdevries@suse.de>
3690 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3691 when pc_probe.prob == NULL.
3693 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3695 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3696 variable symbol_linkage to symbol_linkage_.
3698 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3700 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3701 represent whether the symbol is static, dynamic, or we don't
3704 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3706 * gdb/rx-tdep.c (rx_register_names): New.
3707 (rx_register_name): Delete.
3708 (rx_psw_type): Delete.
3709 (rx_fpsw_type): Delete.
3710 (rx_register_type): Delete.
3711 (rx_gdbarch_init): Convert target-descriptions.
3712 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3713 * gdb/features/Makefile: Add rx.xml.
3714 * gdb/features/rx.xml: New.
3715 * gdb/features/rx.c: Generated.
3716 * gdb/NEWS: Mention target description support.
3718 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3720 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3723 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3725 * configure.ac: Don't check for 'dlfcn.h' (moved to
3726 gdbsupport/common.m4).
3727 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3729 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3730 * compile/compile-c-support.c: Include
3731 'gdbsupport/gdb-dlfcn.h'.
3732 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3733 * gdb-dlfcn.c: Move to...
3734 * gdbsupport/gdb-dlfcn.c: ... here.
3735 * gdb-dlfcn.h: Move to...
3736 * gdbsupport/gdb-dlfcn.h: ... here.
3738 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3740 * nios2-tdep.c (struct reg_value): Improve comments. Make
3741 the offset field signed.
3743 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3745 * python/lib/gdb/__init__.py (_execute_file): New function.
3746 * python/python.c (python_run_simple_file): Call gdb._execute_file
3749 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3751 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3752 all uses as this was never set to anything but a zero value.
3754 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3756 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3758 2019-08-21 Christian Biesinger <cbiesinger@google.com>
3760 * tui/tui-data.h (tui_gen_win_info): Add an =default
3761 move constructor, required by some GCC versions.
3763 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
3765 * go32-nat.c (go32_sysinfo): Add hygon_p.
3767 2019-08-20 Tom Tromey <tom@tromey.com>
3769 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3770 line_from_reg_element_no, first_reg_element_no_inline,
3771 display_all_data, delete_data_content_windows,
3772 erase_data_content>: Now private.
3774 2019-08-20 Tom Tromey <tom@tromey.com>
3776 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3777 (tui_unhighlight_win, tui_highlight_win)
3778 (tui_win_info::make_window): Update.
3779 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3781 2019-08-20 Tom Tromey <tom@tromey.com>
3783 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3784 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3785 (MAX_PID_WIDTH): Move to tui-stack.c.
3786 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3787 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3788 (MAX_PID_WIDTH): Move from tui-data.h.
3790 2019-08-20 Tom Tromey <tom@tromey.com>
3792 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3793 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3795 (tui_gen_win_info::make_window): Rename from tui_make_window.
3796 (tui_win_info::make_window): New method.
3797 (tui_gen_win_info::make_visible): Update.
3798 * tui/tui-source.c (tui_source_window::set_contents): Update.
3799 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3800 (tui_data_window::display_registers_from): Update.
3801 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3802 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3806 (struct tui_win_info) <make_window>: Declare.
3807 <can_box>: Now virtual.
3808 <title>: New member.
3809 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3810 * tui/tui-command.c (tui_cmd_window::resize): Update.
3812 2019-08-20 Tom Tromey <tom@tromey.com>
3814 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3815 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3816 (tui_data_window::check_register_values): Update.
3818 2019-08-20 Tom Tromey <tom@tromey.com>
3820 * tui/tui-regs.h (struct tui_data_window): Use
3821 DISABLE_COPY_AND_ASSIGN.
3822 <regs_content>: Change type, removing unique_ptr.
3823 <tui_data_window>: Add move constructor.
3824 * tui/tui-regs.c (tui_data_window::show_registers)
3825 (tui_data_window::show_register_group)
3826 (tui_data_window::display_registers_from)
3827 (tui_data_window::display_registers_from)
3828 (tui_data_window::first_data_item_displayed)
3829 (tui_data_window::delete_data_content_windows)
3830 (tui_data_window::rerender, tui_data_window::refresh_window)
3831 (tui_data_window::check_register_values): Update.
3833 2019-08-20 Tom Tromey <tom@tromey.com>
3835 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3836 show_register_group>: Declare.
3837 (tui_show_register_group): Don't declare.
3838 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3840 (tui_data_window::show_register_group): Rename from
3841 tui_show_register_group.
3842 (tui_data_window::check_register_values, tui_reg_command):
3844 * tui/tui-layout.c (tui_set_layout): Update.
3846 2019-08-20 Tom Tromey <tom@tromey.com>
3848 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3850 (tui_check_register_values): Don't declare.
3851 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3852 from tui_check_register_values.
3853 * tui/tui-hooks.c (tui_register_changed): Update.
3855 2019-08-20 Tom Tromey <tom@tromey.com>
3857 * tui/tui-regs.c (tui_reg_layout): Move later.
3858 (tui_show_registers): Don't enable TUI mode or change layout.
3860 2019-08-20 Tom Tromey <tom@tromey.com>
3862 * tui/tui-regs.h (struct tui_data_item_window)
3863 <~tui_data_item_window>: Remove.
3864 <content>: Now a unique_xmalloc_ptr.
3865 * tui/tui-regs.c (tui_register_format): Return a
3867 (tui_get_register): Update.
3868 (~tui_data_item_window): Remove.
3869 (tui_data_window::display_registers_from, tui_display_register):
3871 * tui/tui-io.h (tui_expand_tabs): Update.
3872 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3873 Remove "col" parameter.
3875 2019-08-20 Tom Tromey <tom@tromey.com>
3877 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3879 * tui/tui-regs.c (~tui_data_item_window): Update.
3881 2019-08-20 Tom Tromey <tom@tromey.com>
3883 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3886 2019-08-20 Tom Tromey <tom@tromey.com>
3888 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3890 2019-08-20 Tom Tromey <tom@tromey.com>
3892 * tui/tui-source.h (struct tui_source_window): Update.
3893 * tui/tui-regs.c (tui_show_registers): Update.
3894 * tui/tui-disasm.h (struct tui_disasm_window): Update.
3895 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
3896 (NO_REGS_STRING): Remove defines.
3898 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
3900 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
3901 unnecessary thread walk if remote doesn't support the packet.
3903 2019-08-19 Tom Tromey <tromey@adacore.com>
3905 * python/py-value.c (value_has_field): Fix indentation.
3907 2019-08-19 Tom Tromey <tromey@adacore.com>
3909 * printcmd.c (do_one_display, info_display_command): Update.
3910 * block.h (contained_in): Return bool. Add allow_nested
3912 * block.c (contained_in): Return bool. Add allow_nested
3915 2019-08-19 Tom Tromey <tom@tromey.com>
3917 * configure: Rebuild.
3918 * configure.ac: Disallow the combination of -static-libstdc++ and
3920 * source-cache.c (get_language_name): Handle rust.
3921 (source_cache::get_source_lines): Ignore highlighting exceptions.
3923 2019-08-16 Tom Tromey <tom@tromey.com>
3925 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
3926 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
3927 (struct tui_source_window_base) <make_visible, refresh_window,
3928 resize>: Remove methods.
3929 <execution_info>: Remove field.
3930 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
3931 (tui_show_source_line, tui_source_window_base)
3932 (~tui_source_window_base): Update.
3933 (tui_source_window_base::resize)
3934 (tui_source_window_base::make_visible)
3935 (tui_source_window_base::refresh_window): Remove.
3936 (tui_source_window_base::update_exec_info): Update.
3937 * tui/tui-source.c (tui_source_window::set_contents): Update.
3938 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3940 2019-08-16 Tom Tromey <tom@tromey.com>
3942 * tui/tui-hooks.c (tui_remove_hooks): Don't set
3943 deprecated_query_hook.
3945 2019-08-16 Tom Tromey <tom@tromey.com>
3947 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3948 (tui_update_source_windows_with_line): Update.
3949 * tui/tui-source.h (struct tui_source_window)
3950 <show_symtab_source>: Declare.
3951 (tui_show_symtab_source): Don't declare.
3952 * tui/tui-source.c (tui_show_symtab_source): Rename from
3953 tui_show_symtab_source.
3955 2019-08-16 Tom Tromey <tom@tromey.com>
3957 * tui/tui-winsource.h (struct tui_source_window_base)
3958 <set_contents>: Declare.
3959 * tui/tui-winsource.c
3960 (tui_source_window_base::update_source_window_as_is): Update.
3961 * tui/tui-source.h (struct tui_source_window) <set_contents>:
3963 (tui_set_source_content): Don't declare.
3964 * tui/tui-source.c (tui_source_window::set_contents): Rename from
3965 tui_set_source_content.
3966 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
3968 (tui_set_disassem_content): Don't declare.
3969 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
3970 tui_set_disassem_content.
3972 2019-08-16 Tom Tromey <tom@tromey.com>
3974 * tui/tui-winsource.h (struct tui_source_window_base)
3975 <update_breakpoint_info>: Declare.
3976 (tui_update_breakpoint_info): Don't declare.
3977 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3978 (tui_update_all_breakpoint_info): Update.
3979 (tui_source_window_base::update_breakpoint_info): Rename from
3980 tui_update_breakpoint_info.
3981 (tui_source_window_base::update_exec_info): Update.
3983 2019-08-16 Tom Tromey <tom@tromey.com>
3985 * tui/tui-winsource.h (struct tui_source_window_base)
3986 <update_source_window>: Declare.
3987 (tui_update_source_window): Don't declare.
3988 * tui/tui-winsource.c
3989 (tui_source_window_base::update_source_window): Rename from
3990 tui_update_source_window.
3991 (tui_source_window_base::rerender): Update.
3992 * tui/tui-source.c (tui_source_window::maybe_update): Update.
3993 * tui/tui-disasm.c (tui_show_disassem)
3994 (tui_show_disassem_and_update_source)
3995 (tui_disasm_window::maybe_update): Update.
3997 2019-08-16 Tom Tromey <tom@tromey.com>
3999 * tui/tui-winsource.h (struct tui_source_window_base)
4000 <update_source_window_as_is>: Declare.
4001 (tui_update_source_window_as_is): Don't declare.
4002 * tui/tui-winsource.c (tui_update_source_window): Update
4003 (tui_source_window_base::update_source_window_as_is): Rename from
4004 tui_update_source_window_as_is.
4005 (tui_source_window_base::refill): Update.
4006 * tui/tui-source.c (tui_show_symtab_source): Update.
4007 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4010 2019-08-16 Tom Tromey <tom@tromey.com>
4012 * tui/tui-winsource.h (tui_update_source_window)
4013 (tui_update_source_window_as_is): Remove "noerror" parameter.
4014 * tui/tui-winsource.c (tui_update_source_window)
4015 (tui_update_source_window_as_is): Remove "noerror" parameter.
4016 (tui_update_source_windows_with_addr)
4017 (tui_update_source_windows_with_line)
4018 (tui_source_window_base::rerender)
4019 (tui_source_window_base::refill): Update.
4020 * tui/tui-source.h (tui_set_source_content)
4021 (tui_show_symtab_source): Remove "noerror" parameter.
4022 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4024 (tui_show_symtab_source): Likewise.
4025 (tui_source_window::maybe_update): Update.
4026 * tui/tui-disasm.c (tui_show_disassem)
4027 (tui_show_disassem_and_update_source)
4028 (tui_disasm_window::do_scroll_vertical)
4029 (tui_disasm_window::maybe_update): Update.
4031 2019-08-16 Tom Tromey <tom@tromey.com>
4033 * tui/tui.c (tui_is_window_visible): Update.
4034 * tui/tui-wingeneral.c (tui_make_window)
4035 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4036 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4037 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4038 (tui_set_win_height_command, parse_scrolling_args): Update.
4039 * tui/tui-source.c (tui_source_window::style_changed): Update.
4040 * tui/tui-regs.c (tui_show_registers)
4041 (tui_data_window::first_data_item_displayed)
4042 (tui_data_window::delete_data_content_windows)
4043 (tui_check_register_values, tui_reg_command): Update.
4044 * tui/tui-disasm.c (tui_show_disassem): Update.
4045 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4047 <is_visible>: Remove field.
4048 * tui/tui-data.c (tui_next_win, tui_prev_win)
4049 (tui_delete_invisible_windows): Update.
4051 2019-08-16 Tom Tromey <tom@tromey.com>
4053 * tui/tui-winsource.h (struct tui_source_window_base)
4054 <m_has_locator>: Remove.
4055 * tui/tui-layout.c (show_source_disasm_command, show_data)
4056 (show_source_or_disasm_and_command): Update.
4058 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4060 * NEWS (Other MI changes): New subsection.
4061 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4062 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4063 * arch-utils.c (default_get_pc_address_flags): New function.
4064 * arch-utils.h (default_get_pc_address_flags): New declaration.
4065 * gdbarch.sh: Add get_pc_address_flags.
4066 * gdbarch.c: Regenerate.
4067 * gdbarch.h: Likewise.
4068 * stack.c (print_pc): New function.
4069 (print_frame_info) (print_frame): Call print_pc.
4071 2019-08-16 Tom de Vries <tdevries@suse.de>
4073 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4074 print_objfile_section_info.
4076 2019-08-15 Tom Tromey <tom@tromey.com>
4078 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4079 calling update_cmdwin_start_line.
4080 * tui/tui-winsource.h (struct tui_source_window_base)
4081 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4082 <rerender>: Declare.
4083 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4085 (tui_source_window_base::set_new_height): Remove.
4086 (tui_source_window_base::rerender): Rename from
4087 do_make_visible_with_new_height.
4088 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4090 (tui_win_info::make_invisible_and_set_new_height)
4091 (tui_win_info::make_visible_with_new_height): Remove.
4092 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4094 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4095 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4096 do_make_visible_with_new_height>: Don't declare.
4097 <rerender>: Declare.
4098 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4100 (tui_data_window::do_make_visible_with_new_height): Remove.
4101 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4102 call tui_show_locator_content.
4103 (tui_gen_win_info::resize): Call rerender.
4104 (show_source_or_disasm_and_command): Don't call
4105 tui_show_locator_content.
4106 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4108 (struct tui_win_info) <rerender>: Declare.
4109 <set_new_height, make_invisible_and_set_new_height,
4110 make_visible_with_new_height>: Don't declare.
4111 * tui/tui-data.c (tui_win_list::rerender): New method.
4112 * tui/tui-command.h (struct tui_cmd_window)
4113 <do_make_visible_with_new_height>: Don't declare.
4115 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4117 2019-08-15 Tom Tromey <tromey@adacore.com>
4119 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4120 * ada-lang.c (ada_enum_name): Likewise.
4122 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4124 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4126 (GdbOutputErrorFile): Likewise.
4127 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4129 (execute_unwinders): Rename to have a leading underscore.
4130 (auto_load_packages): Likewise.
4131 (global scope): Adjust call to auto_load_packages accordingly.
4132 (GdbSetPythonDirectory): Likewise.
4133 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4134 instead of execute_unwinders.
4136 2019-08-15 Tom Tromey <tom@tromey.com>
4138 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4139 (show_data): Don't change window visibility.
4140 (tui_gen_win_info::resize): Remove special case for command
4141 window. Use wresize, when available.
4142 (show_source_or_disasm_and_command): Don't change window
4144 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4145 <make_visible>: New method.
4146 * tui/tui-command.c (tui_cmd_window::resize): New method.
4148 2019-08-15 Tom Tromey <tom@tromey.com>
4150 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4151 (struct tui_source_windows): New.
4152 * tui/tui-winsource.c (tui_display_main): Update.
4153 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4154 (new_height_ok, parse_scrolling_args): Update.
4155 * tui/tui-layout.c (show_layout, show_data): Update.
4156 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4157 (tui_add_to_source_windows): Don't declare.
4158 * tui/tui-data.c (source_windows, tui_source_windows)
4159 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4161 2019-08-15 Tom Tromey <tom@tromey.com>
4163 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4165 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4166 * tui/tui-layout.c (show_source_disasm_command, show_data):
4168 (tui_gen_win_info::resize): Rename.
4169 (show_source_or_disasm_and_command): Update.
4170 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4173 2019-08-15 Tom Tromey <tom@tromey.com>
4175 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4176 * tui/tui-interp.c (tui_interp::init): Don't call
4177 tui_initialize_static_data.
4178 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4180 2019-08-15 Tom Tromey <tom@tromey.com>
4182 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4183 examine tui_win_list.
4185 2019-08-15 Tom Tromey <tom@tromey.com>
4187 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4188 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4189 tui_clear_source_content.
4190 (tui_clear_source_content): Remove.
4191 (tui_source_window_base::do_erase_source_content): Hoist call to
4193 * tui/tui-stack.c (tui_show_frame_info): Don't call
4194 tui_clear_source_content.
4196 2019-08-15 Tom Tromey <tom@tromey.com>
4198 * tui/tui-winsource.h (struct tui_source_window_base)
4199 <do_erase_source_content>: New method.
4200 <erase_source_content>: New method.
4201 (tui_erase_source_content): Don't declare.
4202 * tui/tui-winsource.c (tui_clear_source_content): Update.
4203 (tui_source_window_base::do_erase_source_content): Rename from
4204 tui_erase_source_content.
4205 (tui_source_window_base::show_source_content): Update.
4206 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4207 * tui/tui-source.h (struct tui_source_window)
4208 <erase_source_content>: New method.
4209 * tui/tui-disasm.h (struct tui_disasm_window)
4210 <erase_source_content>: New method.
4212 2019-08-15 Tom Tromey <tom@tromey.com>
4214 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4215 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4217 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4218 * tui/tui-source.c (tui_set_source_content): Update.
4219 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4221 2019-08-15 Tom Tromey <tom@tromey.com>
4223 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4224 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4226 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4228 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4230 (tui_source_window::maybe_update): Update.
4232 2019-08-15 Tom Tromey <tom@tromey.com>
4234 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4235 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4237 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4239 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4241 (tui_disasm_window::maybe_update): Update.
4243 2019-08-15 Tom Tromey <tom@tromey.com>
4245 * tui/tui-winsource.h (struct tui_source_window_base)
4246 <maybe_update>: Declare.
4247 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4249 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4251 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4252 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4254 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4256 2019-08-15 Tom Tromey <tom@tromey.com>
4258 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4260 2019-08-15 Tom Tromey <tom@tromey.com>
4262 * tui/tui-wingeneral.c: Include tui-stack.h.
4263 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4264 (struct tui_locator_window): Move from tui-data.h.
4265 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4266 (tui_initialize_static_data): Move from tui-data.c.
4267 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4268 (struct tui_locator_window): Move to tui-stack.c.
4269 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4270 (tui_initialize_static_data): Move to tui-stack.c.
4272 2019-08-15 Tom Tromey <tom@tromey.com>
4274 * tui/tui-layout.c (show_source_disasm_command)
4275 (show_source_or_disasm_and_command): Use make_visible method, not
4277 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4280 2019-08-15 Tom Tromey <tom@tromey.com>
4282 * tui/tui-wingeneral.h (tui_make_window): Update.
4283 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4285 (tui_gen_win_info::make_visible): Update.
4286 * tui/tui-regs.c (tui_data_window::display_registers_from):
4288 * tui/tui-layout.c (show_source_disasm_command)
4289 (show_source_or_disasm_and_command): Update.
4290 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4291 (enum tui_box): Remove.
4292 (struct tui_win_info) <can_box>: New method.
4293 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4296 2019-08-15 Tom de Vries <tdevries@suse.de>
4298 * linux-nat-trad.c: Include gdbarch.h.
4300 2019-08-14 Alan Hayward <alan.hayward@arm.com>
4302 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4305 2019-08-14 Tom Tromey <tromey@adacore.com>
4307 * darwin-nat.c: Include gdbarch.h.
4308 * darwin-nat-info.c: Include gdbarch.h.
4310 2019-08-13 Tom Tromey <tom@tromey.com>
4312 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4314 * tui/tui-data.c (tui_initialize_static_data): Update.
4316 2019-08-13 Tom Tromey <tom@tromey.com>
4318 * tui/tui-winsource.h (struct tui_exec_info_window)
4319 <~tui_exec_info_window, maybe_allocate_content, get_content,
4321 (struct tui_source_window_base) <set_exec_info_content,
4322 show_exec_info_content>: Don't declare.
4323 * tui/tui-winsource.c
4324 (tui_exec_info_window::maybe_allocate_content): Remove.
4325 (tui_source_window_base::update_exec_info): Rename from
4326 set_exec_info_content.
4327 (tui_source_window_base::show_exec_info_content)
4328 (tui_source_window_base::update_exec_info): Remove.
4330 2019-08-13 Tom Tromey <tom@tromey.com>
4332 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4334 * tui/tui-winsource.c (tui_update_source_window_as_is)
4335 (tui_update_source_windows_with_addr, tui_erase_source_content):
4337 (tui_clear_exec_info_content): Remove.
4339 2019-08-13 Tom Tromey <tom@tromey.com>
4341 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4343 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4344 call tui_erase_exec_info_content.
4345 (tui_clear_exec_info_content): Rename from
4346 tui_erase_exec_info_content.
4347 (tui_clear_exec_info_content): Delete.
4349 2019-08-13 Tom Tromey <tom@tromey.com>
4351 * tui/tui-winsource.h (struct tui_source_window_base)
4352 <show_exec_info_content>: Declare.
4353 (tui_show_exec_info_content): Don't declare.
4354 * tui/tui-winsource.c
4355 (tui_source_window_base::show_exec_info_content): Rename from
4356 tui_show_exec_info_content.
4357 (tui_source_window_base::update_exec_info): Update.
4359 2019-08-13 Tom Tromey <tom@tromey.com>
4361 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4362 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4363 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4364 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4365 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4366 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4369 2019-08-13 Tom Tromey <tom@tromey.com>
4371 * tui/tui-winsource.h (struct tui_source_window_base)
4372 <update_exec_info>: Declare.
4373 (tui_update_exec_info): Don't declare.
4374 * tui/tui-winsource.c (tui_update_source_window_as_is)
4375 (tui_source_window_base::refresh_all)
4376 (tui_update_all_breakpoint_info): Update.
4377 (tui_source_window_base::update_exec_info): Rename from
4378 tui_update_exec_info.
4379 * tui/tui-stack.c (tui_show_frame_info): Update.
4381 2019-08-13 Tom Tromey <tom@tromey.com>
4383 * tui/tui-winsource.h (struct tui_source_window_base)
4384 <set_exec_info_content>: Declare.
4385 (tui_set_exec_info_content): Don't declare.
4386 * tui/tui-winsource.c
4387 (tui_source_window_base::set_exec_info_content): Rename from
4388 tui_set_exec_info_content.
4389 (tui_update_exec_info): Update.
4391 2019-08-13 Tom Tromey <tom@tromey.com>
4393 * tui/tui-winsource.h (struct tui_source_window_base)
4394 <show_source_content>: Declare.
4395 (tui_show_source_content): Don't declare.
4396 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4397 (tui_source_window_base::show_source_content): Rename from
4398 tui_show_source_content.
4399 (tui_source_window_base::refresh_all): Update.
4400 * tui/tui-layout.c (show_source_disasm_command)
4401 (show_source_or_disasm_and_command): Update.
4403 2019-08-13 Tom Tromey <tom@tromey.com>
4405 * tui/tui-winsource.c (tui_erase_source_content)
4406 (tui_show_source_content, tui_source_window_base::refresh_all):
4408 * tui/tui-wingeneral.h
4409 (tui_check_and_display_highlight_if_needed): Don't declare.
4410 * tui/tui-wingeneral.c
4411 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4412 check_and_display_highlight_if_needed.
4413 * tui/tui-win.c (tui_rehighlight_all)
4414 (tui_win_info::make_visible_with_new_height): Update.
4415 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4416 (tui_data_window::erase_data_content)
4417 (tui_data_window::display_all_data): Update.
4418 * tui/tui-data.h (struct tui_win_info)
4419 <check_and_display_highlight_if_needed>: Declare.
4421 2019-08-13 Tom Tromey <tom@tromey.com>
4423 * tui/tui-win.c (tui_resize_all): Call
4424 tui_delete_invisible_windows.
4425 * tui/tui-layout.c (show_layout): Call
4426 tui_delete_invisible_windows.
4427 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4428 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4430 2019-08-13 Tom Tromey <tom@tromey.com>
4432 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4433 tui_add_win_to_layout.
4435 2019-08-13 Tom Tromey <tom@tromey.com>
4437 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4438 * tui/tui-layout.c (tui_default_win_height): Now static.
4440 2019-08-13 Tom Tromey <tom@tromey.com>
4442 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4444 (show_source_disasm_command, show_source_or_disasm_and_command):
4445 Don't check current layout.
4447 2019-08-13 Tom Tromey <tom@tromey.com>
4449 * tui/tui-wingeneral.c (make_all_visible): Remove.
4450 (tui_make_all_invisible): Simplify.
4451 * tui/tui-layout.c (tui_make_all_invisible): Move from
4452 tui-wingeneral.c; simplify.
4453 (show_layout): Hoist call to tui_make_all_invisible.
4454 (show_data): Don't call tui_make_all_invisible.
4456 2019-08-13 Tom Tromey <tom@tromey.com>
4458 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4459 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4461 2019-08-13 Tom Tromey <tom@tromey.com>
4463 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4465 (show_source_disasm_command, show_data)
4466 (show_source_or_disasm_and_command): Don't use
4467 tui_set_current_layout_to.
4468 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4469 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4471 (tui_set_current_layout_to): Remove.
4473 2019-08-13 Tom Tromey <tom@tromey.com>
4475 * tui/tui-layout.c (tui_set_layout): Update.
4476 * tui/tui-data.h (struct tui_layout_def): Remove.
4477 (tui_layout_def): Don't declare.
4478 * tui/tui-data.c (layout_def): Remove.
4479 (tui_layout_def): Remove.
4481 2019-08-13 Tom Tromey <tom@tromey.com>
4483 * tui/tui-winsource.h (struct tui_source_window_base)
4484 <clear_detail>: No longer "override".
4485 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4486 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4487 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4488 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4490 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4492 2019-08-13 Tom Tromey <tromey@adacore.com>
4494 * tracepoint.c: Don't include readline.h or history.h.
4496 2019-08-12 Tom Tromey <tom@tromey.com>
4498 * configure: Rebuild.
4499 * configure.ac: Check for readline 7.
4500 * NEWS: Mention readline 7 requirement.
4503 2019-08-12 Tom Tromey <tom@tromey.com>
4505 * mingw-hdep.c (gdb_select): Remove readline hack.
4507 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4509 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4510 when the function fails.
4512 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4514 * s390-tdep.c (s390_type_align): New function.
4515 (s390_gdbarch_init): Set it as type_align gdbarch method.
4517 2019-08-09 Tom de Vries <tdevries@suse.de>
4520 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4521 pc_low with relocation offset.
4523 2019-08-07 Tom Tromey <tromey@adacore.com>
4525 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4526 (print_frame_args): Update.
4527 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4529 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4530 * frame.h (struct frame_arg): Add initializers.
4531 <error>: Now a unique_xmalloc_ptr.
4533 2019-08-07 Alan Hayward <alan.hayward@arm.com>
4535 * NEWS: Expand the Pointer Authentication entry.
4536 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4537 (aarch64_frame_unmask_lr): ... to this.
4538 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4539 Call aarch64_frame_unmask_lr.
4540 * frame.c (struct frame_info): Add "masked" variable.
4541 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4542 (fprint_frame): Check for masked pc.
4543 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4545 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4546 * stack.c (print_frame): Check for masked pc.
4548 2019-08-06 Tom Tromey <tom@tromey.com>
4550 * stabsread.c (patch_block_stabs, read_one_struct_field)
4551 (read_enum_type): Use obstack_strndup.
4552 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4553 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4554 * dwarf2read.c (guess_full_die_structure_name)
4555 (anonymous_struct_prefix): Use obstack_strndup.
4556 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4557 * c-exp.y (yylex): Use obstack_strndup.
4558 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4559 (write_var_or_type): Use obstack_strndup.
4561 2019-08-06 Tom Tromey <tom@tromey.com>
4563 * symfile.c (reread_symbols): Use obstack_strdup.
4564 * stabsread.c (read_type): Use obstack_strdup.
4565 * gdb_obstack.h (obstack_strdup): New overload.
4566 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4567 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4568 (dwarf2_canonicalize_name): Use obstack_strdup.
4569 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4570 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4573 2019-08-06 Tom Tromey <tom@tromey.com>
4575 * gdb_obstack.h (obstack_strdup): Define.
4576 * gdb_obstack.c (obstack_strdup): Don't define.
4578 2019-08-06 Tom Tromey <tom@tromey.com>
4580 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4582 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4584 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4585 * stabsread.c (common_block_start): Use obstack_strdup.
4586 * objfiles.c (set_objfile_main_name, objfile): Use
4588 * namespace.c (add_using_directive): Use obstack_strdup.
4589 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4590 * jit.c (finalize_symtab): Use obstack_strdup.
4591 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4592 (guess_partial_die_structure_name, partial_die_info::fixup)
4593 (dwarf2_name): Use obstack_strdup.
4594 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4596 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4597 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4599 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4601 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4603 * unittests/help-doc-selftests.c: New file.
4604 * Makefile.in: Add the new file.
4606 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4608 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4609 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4610 the full first line, except when FOR_VALUE_PREFIX. In this case,
4611 the trailing '.' is not output, and the first character is uppercased.
4612 (print_help_for_command): Update call to print_doc_line.
4613 (print_doc_of_command): Likewise.
4614 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4615 * cli/cli-option.c (append_indented_doc): Do not append newline.
4616 (build_help_option): Append newline after first appended_indented_doc
4617 only if a second call is done.
4618 (build_help): Append 2 new lines before each option, except the first
4620 * compile/compile.c (_initialize_compile): Add new lines after
4621 %OPTIONS%, when not at the end of the help.
4622 Change help doc or code
4623 producing the help doc to respect the invariants.
4624 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4625 Also removed the new line after 'Options:', as all other commands
4626 do not put an empty line between 'Options:' and the first option.
4627 * printcmd.c (_initialize_printcmd): Likewise.
4628 * stack.c (_initialize_stack): Likewise.
4629 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4630 incorrectly telling COMMAND is optional.
4631 * ada-lang.c (_initialize_ada_language): Change help doc or code
4632 producing the help doc to respect the invariants.
4633 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4634 * breakpoint.c (_initialize_breakpoint): Likewise.
4635 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4636 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4637 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4638 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4639 _initialize_cli_style): Likewise.
4640 * corelow.c (core_target_info): Likewise.
4641 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4642 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4643 * filesystem.c (_initialize_filesystem): Likewise.
4644 * frame.c (_initialize_frame): Likewise.
4645 * gnu-nat.c (add_task_commands): Likewise.
4646 * infcall.c (_initialize_infcall): Likewise.
4647 * infcmd.c (_initialize_infcmd): Likewise.
4648 * interps.c (_initialize_interpreter): Likewise.
4649 * language.c (_initialize_language): Likewise.
4650 * linux-fork.c (_initialize_linux_fork): Likewise.
4651 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4652 * maint.c (_initialize_maint_cmds): Likewise.
4653 * memattr.c (_initialize_mem): Likewise.
4654 * printcmd.c (_initialize_printcmd): Likewise.
4655 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4657 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4658 * record-btrace.c (_initialize_record_btrace): Likewise.
4659 * record-full.c (_initialize_record_full): Likewise.
4660 * record.c (_initialize_record): Likewise.
4661 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4662 * regcache.c (_initialize_regcache): Likewise.
4663 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4664 _initialize_remote): Likewise.
4665 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4666 * serial.c (_initialize_serial): Likewise.
4667 * skip.c (_initialize_step_skip): Likewise.
4668 * source.c (_initialize_source): Likewise.
4669 * stack.c (_initialize_stack): Likewise.
4670 * symfile.c (_initialize_symfile): Likewise.
4671 * symtab.c (_initialize_symtab): Likewise.
4672 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4673 * top.c (init_main): Likewise.
4674 * tracefile-tfile.c (tfile_target_info): Likewise.
4675 * tracepoint.c (_initialize_tracepoint): Likewise.
4676 * tui/tui-win.c (_initialize_tui_win): Likewise.
4677 * utils.c (add_internal_problem_command): Likewise.
4678 * valprint.c (value_print_option_defs): Likewise.
4680 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4683 * configure.ac: Drop enable-libmcheck support.
4684 * configure, config.in: Rebuild.
4685 * libmcheck.m4: Remove.
4686 * acinclude.m4: Don't include it.
4687 * Makefile.in: Don't distribute it.
4688 * top.c (print_gdb_configuration): Don't mention it.
4690 2019-08-06 Tom Tromey <tom@tromey.com>
4692 * utils.c (set_output_style): Sometimes pass stream to
4694 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4695 * record-btrace.c (btrace_insn_history): Update.
4696 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4698 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4699 Update initializers.
4700 <m_uiout>: New field.
4702 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4703 Remove "uiout" parameter.
4704 (dump_insns): Update.
4705 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4706 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4708 2019-08-06 Christian Biesinger <cbiesinger@google.com>
4710 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4711 (error_in_psymtab_expansion): Likewise.
4712 (lookup_symbol_via_quick_fns): Likewise.
4713 (basic_lookup_transparent_type_quick): Likewise.
4714 (basic_lookup_transparent_type_1): Likewise.
4716 2019-08-06 Tom Tromey <tromey@adacore.com>
4718 * source.c (last_source_error): Now bool.
4719 (print_source_lines_base): Make "noprint" bool. Only open
4720 source file when last_source_visited changes.
4722 2019-08-06 Tom Tromey <tromey@adacore.com>
4724 * annotate.c (annotate_source_line): Use g_source_cache.
4725 * source-cache.c (source_cache::get_plain_source_lines): Change
4726 parameters. Populate m_offset_cache.
4727 (source_cache::ensure): New method.
4728 (source_cache::get_line_charpos): New method.
4729 (extract_lines): Move lower. Change parameters.
4730 (source_cache::get_source_lines): Move lower.
4731 * source-cache.h (class source_cache): Update comment.
4732 <get_line_charpos>: New method.
4733 <get_source_lines>: Update comment.
4734 <clear>: Clear m_offset_cache.
4735 <get_plain_source_lines>: Change parameters.
4736 <ensure>: New method
4737 <m_offset_cache>: New member.
4738 * source.c (forget_cached_source_info_for_objfile): Update.
4739 (info_source_command): Use g_source_cache.
4740 (find_source_lines, open_source_file_with_line_charpos): Remove.
4741 (print_source_lines_base, search_command_helper): Use g_source_cache.
4742 * source.h (open_source_file_with_line_charpos): Don't declare.
4743 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4744 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4747 2019-08-06 Tom Tromey <tromey@adacore.com>
4749 * source-cache.c (source_cache::get_plain_source_lines):
4750 Remove "first_line" and "last_line" parameters.
4751 (source_cache::get_source_lines): Cache plain text.
4752 * source-cache.h (class source_cache)
4753 <get_plain_source_lines>: Update.
4755 2019-08-06 Tom Tromey <tromey@adacore.com>
4757 * source-cache.c (extract_lines): No longer a method.
4758 Changed type of parameter. Include final newline.
4759 (selftests::extract_lines_test): New function.
4760 (_initialize_source_cache): Likewise.
4761 * source-cache.h (class source_cache)
4762 <extract_lines>: Don't declare.
4764 2019-08-06 Tom Tromey <tromey@adacore.com>
4766 * breakpoint.c (init_breakpoint_sal): Update.
4767 (breakpoint): Update.
4768 * breakpoint.h (struct breakpoint) <filter>: Now a
4771 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4773 * NEWS: Mention dictionary access on blocks.
4774 * python/py-block.c (blpy_getitem): New function.
4775 (block_object_as_mapping): New struct.
4776 (block_object_type): Use new struct for tp_as_mapping field.
4778 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4780 * objfiles.h (objfile): Add a comment describing partial symbols.
4782 2019-08-05 Tom Tromey <tromey@adacore.com>
4784 * compile/compile.c (_initialize_compile): Use _(), not N_().
4785 * thread.c (_initialize_thread): Use _(), not N_().
4786 * stack.c (_initialize_stack): Use _(), not N_().
4787 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4789 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4791 * dwarf2read.c (struct dw2_symtab_iterator):
4792 <want_specific_block>: Remove.
4793 <block_index>: Change type to gdb::optional.
4794 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4795 change type of BLOCK_INDEX parameter to gdb::optional.
4796 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4797 (dw2_lookup_symbol): Don't pass argument for
4798 WANT_SPECIFIC_BLOCK.
4799 (dw2_expand_symtabs_for_function): Don't pass argument for
4800 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4801 (class dw2_debug_names_iterator)
4802 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4803 parameter, change BLOCK_INDEX type to gdb::optional.
4804 <m_want_specific_block>: Remove.
4805 <m_block_index>: Change type to gdb::optional.
4806 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4807 gdb::optional. Re-write in function of gdb::optional.
4808 (dw2_debug_names_lookup_symbol): Don't pass argument for
4809 WANT_SPECIFIC_BLOCK.
4810 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4811 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4814 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4816 * NEWS: Mention changes to "info sources" command.
4818 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4820 * symtab.c (filename_partial_match_opts): New struct type.
4821 (struct output_source_filename_data): New members
4822 regexp, c_regexp, partial_match.
4823 (output_source_filename): Use new members to decide to print file.
4824 (info_sources_option_defs): New variable.
4825 (make_info_sources_options_def_group, print_info_sources_header,
4826 info_sources_command_completer):
4828 (info_sources_command): Read new optional arguments.
4829 (_initialize_symtab): Update info sources help.
4831 2019-08-02 Alexandre Oliva <oliva@adacore.com>
4833 * ada-lang.c (exception_support_info_v0): Renamed from...
4834 (default_exception_support_info): ... this. Create new
4836 (ada_has_this_exception_support): Look up catch_handlers_sym.
4837 (ada_exception_support_info_sniffer): Try v0 after default.
4839 2019-08-01 Tom Tromey <tromey@adacore.com>
4841 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4844 2019-08-01 Christian Biesinger <cbiesinger@google.com>
4846 * s12z-tdep.c: Fix include path for s12z-opc.h.
4848 2019-08-01 Alan Hayward <alan.hayward@arm.com>
4850 * NEWS: Require GNU make 3.82.
4852 2019-07-16 Tom Tromey <tom@tromey.com>
4854 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4857 2019-07-30 Tom Tromey <tromey@adacore.com>
4859 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4861 2019-07-30 Kevin Buettner <kevinb@redhat.com>
4863 * printcmd.c (print_address_symbolic): Print negative offsets.
4864 (build_address_symbolic): Force signed arithmetic when computing
4867 2019-07-30 Christian Biesinger <cbiesinger@google.com>
4869 PR/24474: Add a function to lookup static variables.
4870 * NEWS: Mention this new function.
4871 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4872 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4873 * python/python.c (python_GdbMethods): Add new function.
4875 2019-07-29 Christian Biesinger <cbiesinger@google.com>
4877 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4878 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4879 (objfpy_lookup_static_symbol): New function.
4880 (objfile_object_methods): Add new functions.
4882 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4884 * NEWS: Mention 'set|show print frame-info'. Mention new
4885 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4886 backtrace argument. Mention that python frame filtering code
4887 is now consistent with what 'backtrace' command prints.
4889 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4891 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4893 (print_frame_info_auto, print_frame_info_source_line,
4894 print_frame_info_location, print_frame_info_source_and_location,
4895 print_frame_info_location_and_address, print_frame_info_short_location):
4897 (struct frame_print_options): New member print_frame_info.
4898 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
4899 * stack.h (get_user_print_what_frame_info): New declaration.
4900 (frame_show_address): New declaration.
4901 * stack.c (print_frame_arguments_choices): New value 'presence'.
4902 (print_frame_info_auto, print_frame_info_source_line,
4903 print_frame_info_location, print_frame_info_source_and_location,
4904 print_frame_info_location_and_address, print_frame_info_short_location,
4905 print_frame_info_choices, print_frame_info_print_what): New definitions.
4906 (print_frame_args): Only print dots for args if print frame-arguments
4908 (frame_print_option_defs): New element for "frame-info".
4909 (get_user_print_what_frame_info): New function.
4910 (frame_show_address): Make non static. Move comment to stack.h.
4911 (print_frame_info_to_print_what): New function.
4912 (print_frame_info): Update comment. Use fp_opts.print_frame_info
4913 to decide what to print.
4914 (backtrace_command_1): Handle the new print_frame_arguments_presence
4916 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
4917 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
4918 (py_print_frame): In non-mi mode, use LOCATION as default for
4919 print_what, similarly to frame information printed directly by
4920 backtrace command. Handle frame-info user option in non MI mode.
4922 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4924 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
4925 Add case for debugging 32-bit target on 64-bit host. Revise
4928 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4930 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
4931 instead of find_function_entry_range_from_pc.
4933 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4935 * stack.c (find_frame_funname): Remove code which preferred
4936 minsym over symtab sym in "certain pathological cases".
4938 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
4939 parameter. Change type of "do_demangle" to bool.
4940 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4941 Pass suitable "prefer_sym_over_minsym" flag to
4942 build_address_symbolic(). Don't output "+" for negative offsets.
4943 * printcmd.c (print_address_symbolic): Update invocation of
4944 build_address_symbolic to include a "prefer_sym_over_minsym"
4946 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
4947 Restrict cases in which use of minimal symbol is preferred to that
4948 of a found symbol. Update comments.
4950 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
4951 for entry pc when entry pc is out of range for that FDE.
4953 2019-07-26 Brian Callahan <bcallah@openbsd.org>
4956 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
4959 2019-07-25 Christian Biesinger <cbiesinger@google.com>
4961 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4962 this function's Python signature.
4965 2019-07-24 Christian Biesinger <cbiesinger@google.com>
4967 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
4968 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4969 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4970 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
4971 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
4974 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4976 * h8300-tdep.c (h8300_register_name_common): New.
4977 h8300_register_name): Use h8300_register_name_common.
4978 (h8300s_register_name): Likewise.
4979 (h8300sx_register_name): Likewise.
4980 (h8300h_register_nam): New.
4981 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4984 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4986 * arm-tdep.c (arm_skip_cmse_entry): New function.
4987 (arm_is_sgstubs_section): New function.
4988 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
4990 2019-07-22 Tom Tromey <tom@tromey.com>
4992 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
4995 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4997 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5000 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5002 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5003 so that GDB doesn't match any msymbols when searching in the
5005 (print_symbol_info): Print using typedef_print or type_print based
5006 on the type of the symbol. Add updated FIXME comment moved from...
5007 (_initialize_symtab): ... move and update FIXME comment to above.
5009 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5011 * NEWS: Mention adding -q option to "info types".
5012 * symtab.c (struct info_types_options): New struct.
5013 (info_types_options_defs): New variable.
5014 (make_info_types_options_def_group): New function.
5015 (info_types_command): Use gdb::option framework to parse options.
5016 (info_types_command_completer): New function.
5017 (_initialize_symtab): Extend the help text on "info types" and
5018 register command completer.
5020 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5022 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5023 (lookup_symbol_in_objfile): Change int to block_enum and add a
5024 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5026 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5028 * MAINTAINERS (Write After Approval): Add self.
5030 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5032 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5033 instruction to the dummy code region.
5035 2019-07-19 Tom Tromey <tromey@adacore.com>
5037 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5038 (ARGSUSED, PARAMS, __func__): Remove rules.
5040 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5042 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5043 * features/arm/arm-with-iwmmxt.c: Remove.
5044 * features/arm/arm-with-iwmmxt.xml: Remove.
5045 * features/arm/arm-with-m-fpa-layout.c: Remove.
5046 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5047 * features/arm/arm-with-m-vfp-d16.c: Remove.
5048 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5049 * features/arm/arm-with-m.c: Remove.
5050 * features/arm/arm-with-m.xml: Remove.
5051 * features/arm/arm-with-neon.c: Remove.
5052 * features/arm/arm-with-neon.xml: Remove.
5053 * features/arm/arm-with-vfpv2.c: Remove.
5054 * features/arm/arm-with-vfpv2.xml: Remove.
5055 * features/arm/arm-with-vfpv3.c: Remove.
5056 * features/arm/arm-with-vfpv3.xml: Remove.
5058 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5060 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5062 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5064 * arch/aarch32.c (aarch32_create_target_description): Create
5065 target descriptions using features.
5066 * arch/arm.c (arm_create_target_description)
5067 (arm_create_mprofile_target_description): Likewise.
5068 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5070 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5072 * Makefile.in: Add new files.
5073 * aarch32-tdep.c: New file.
5074 * aarch32-tdep.h: New file.
5075 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5076 Call aarch32_read_description.
5077 * arch/aarch32.c: New file.
5078 * arch/aarch32.h: New file.
5079 * arch/arm.c (arm_create_target_description)
5080 (arm_create_mprofile_target_description): New function.
5081 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5082 (arm_create_target_description)
5083 (arm_create_mprofile_target_description): New declaration.
5084 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5085 read_description functions.
5086 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5088 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5089 * arm-tdep.c (tdesc_arm_list): New variable.
5090 (arm_register_g_packet_guesses): Call create description functions.
5091 (arm_read_description) (arm_read_mprofile_description): New
5093 * arm-tdep.h (arm_read_description)
5094 (arm_read_mprofile_description): Add declaration.
5095 * configure.tgt: Add new files.
5097 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5099 * top.c (new_ui_command): Open specified terminal just once.
5101 2019-07-18 Tom Tromey <tromey@adacore.com>
5103 * symtab.c (main_name): Constify return type.
5104 * symfile.c (set_initial_language): Update.
5105 * symtab.h (main_name): Constify return type.
5107 2019-07-17 Tom Tromey <tom@tromey.com>
5109 * tui/tui-winsource.c (tui_update_source_window)
5110 (tui_update_source_window_as_is)
5111 (tui_update_source_windows_with_line): Remove return.
5112 * tui/tui-disasm.c (tui_show_disassem)
5113 (tui_show_disassem_and_update_source): Remove return.
5114 * tui/tui.c (tui_reset): Remove return.
5115 * tui/tui-wingeneral.c
5116 (tui_check_and_display_highlight_if_needed): Remove return.
5118 2019-07-17 Tom Tromey <tom@tromey.com>
5120 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5122 2019-07-17 Tom Tromey <tom@tromey.com>
5124 * tui/tui-winsource.h (struct tui_exec_info_window)
5125 (struct tui_source_window_base): Move from tui-data.h.
5126 * tui/tui-winsource.c: Move many method definitions from
5127 elsewhere. Remove "structuring" comments.
5128 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5129 (tui_source_window_base::refresh_window): Move to
5131 * tui/tui-win.c (tui_source_window_base::refresh_all)
5132 (tui_source_window_base::update_tab_width)
5133 (tui_source_window_base::set_new_height)
5134 (tui_source_window_base::do_make_visible_with_new_height): Move to
5136 * tui/tui-source.h: Update.
5137 * tui/tui-source.c (tui_source_window_base::reset): Move to
5139 * tui/tui-disasm.h: Update.
5140 * tui/tui-data.h (struct tui_exec_info_window): Move to
5142 (struct tui_source_window_base): Likewise.
5143 * tui/tui-data.c (tui_source_window_base::clear_detail)
5144 (tui_source_window_base, ~tui_source_window_base): Move to
5147 2019-07-17 Tom Tromey <tom@tromey.com>
5149 * tui/tui-win.c (tui_resize_all)
5150 (tui_source_window_base::update_tab_width)
5151 (tui_adjust_win_heights): Update.
5152 (tui_win_info::make_invisible_and_set_new_height): Rename from
5153 make_invisible_and_set_new_height.
5154 * tui/tui-data.h (struct tui_win_info)
5155 <make_invisible_and_set_new_height>: New method.
5157 2019-07-17 Tom Tromey <tom@tromey.com>
5159 * tui/tui.c: Update.
5160 * tui/tui-source.h (struct tui_source_window): Move from
5162 * tui/tui-layout.c: Update.
5163 * tui/tui-disasm.c: Update.
5164 * tui/tui-data.h (struct tui_source_window): Move to
5167 2019-07-17 Tom Tromey <tom@tromey.com>
5169 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5171 * tui/tui-data.h (struct tui_disasm_window): Move to
5174 2019-07-17 Tom Tromey <tom@tromey.com>
5176 * tui/tui-regs.h (struct tui_data_item_window): Move from
5178 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5179 * tui/tui-data.h (struct tui_data_item_window): Move to
5181 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5183 2019-07-17 Tom Tromey <tom@tromey.com>
5185 * tui/tui.c: Update.
5186 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5187 (tui_cmd_window::max_height): Move to tui-command.c.
5188 * tui/tui-layout.c: Update.
5189 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5190 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5192 * tui/tui-command.h (struct tui_cmd_window): Move from
5194 * tui/tui-command.c: Remove "structuring" comments.
5195 (tui_cmd_window::clear_detail)
5196 (tui_cmd_window::do_make_visible_with_new_height)
5197 (tui_cmd_window::max_height): Move from elsewhere.
5199 2019-07-17 Tom Tromey <tom@tromey.com>
5201 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5203 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5204 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5206 2019-07-17 Tom Tromey <tom@tromey.com>
5208 * tui/tui.c: Update.
5209 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5211 * tui/tui-windata.h: Remove file.
5212 * tui/tui-windata.c: Remove file.
5213 * tui/tui-win.c (tui_data_window::set_new_height)
5214 (tui_data_window::do_make_visible_with_new_height): Move to
5216 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5217 * tui/tui-regs.c: Remove "structuring" comments.
5218 (tui_data_window::first_data_item_displayed)
5219 (tui_data_window::delete_data_content_windows)
5220 (tui_data_window::erase_data_content)
5221 (tui_data_window::display_all_data)
5222 (tui_data_window::refresh_all)
5223 (tui_data_window::do_scroll_vertical)
5224 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5225 (tui_data_window::do_make_visible_with_new_height)
5226 (tui_data_window::refresh_window): Move from elsewhere.
5227 (_initialize_tui_regs): Move to end of file.
5228 * tui/tui-layout.c: Update.
5229 * tui/tui-hooks.c: Update.
5230 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5231 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5233 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5235 2019-07-17 Tom Tromey <tom@tromey.com>
5237 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5240 2019-07-17 Tom Tromey <tom@tromey.com>
5242 * tui/tui-win.c (tui_source_window_base::set_new_height)
5243 (tui_source_window_base::do_make_visible_with_new_height): Use
5244 m_has_locator field directly.
5245 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5247 (struct tui_source_window_base) <has_locator>: Likewise.
5249 2019-07-17 Tom Tromey <tom@tromey.com>
5251 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5253 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5255 * tui/tui-win.c (tui_source_window_base::set_new_height)
5256 (tui_source_window_base::set_new_height)
5257 (make_invisible_and_set_new_height)
5258 (tui_source_window_base::do_make_visible_with_new_height)
5259 (tui_source_window_base::do_make_visible_with_new_height):
5261 * tui/tui-layout.c (show_source_disasm_command, show_data)
5262 (show_source_or_disasm_and_command): Update.
5263 * tui/tui-layout.c (show_layout): Update.
5265 2019-07-17 Tom Tromey <tom@tromey.com>
5267 * tui/tui-layout.c (make_data_window): Remove.
5268 (show_data): Unify creation and re-initialization cases.
5270 2019-07-17 Tom Tromey <tom@tromey.com>
5272 * tui/tui-layout.c (make_source_window, make_disasm_window):
5274 (show_data): Unify creation and re-initialization cases.
5276 2019-07-17 Tom Tromey <tom@tromey.com>
5278 * tui/tui-layout.c (make_command_window): Remove.
5279 (show_source_disasm_command, show_source_or_disasm_and_command):
5280 Unify creation and re-initialization cases.
5282 2019-07-17 Tom Tromey <tom@tromey.com>
5284 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5285 creation and re-initialization cases.
5287 2019-07-17 Tom Tromey <tom@tromey.com>
5289 * tui/tui-regs.c (tui_get_register): Return void.
5291 2019-07-17 Tom Tromey <tom@tromey.com>
5293 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5296 2019-07-17 Tom Tromey <tom@tromey.com>
5298 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5301 2019-07-17 Tom Tromey <tom@tromey.com>
5303 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5304 * tui/tui-regs.c (tui_reg_layout): New function.
5305 (tui_show_registers, tui_reg_command): Use it.
5306 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5307 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5309 (tui_layout_command): Remove.
5311 2019-07-17 Tom Tromey <tom@tromey.com>
5313 * tui/tui-layout.h (tui/tui-layout): Return void.
5314 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5316 2019-07-17 Tom Tromey <tom@tromey.com>
5318 * tui/tui-layout.c (show_source_disasm_command, show_data):
5320 (reset_locator): Remove.
5321 (show_source_or_disasm_and_command): Update.
5323 2019-07-17 Tom Tromey <tom@tromey.com>
5325 * tui/tui-source.c (tui_source_window_base::reset): Remove
5327 * tui/tui-layout.c (make_command_window, make_source_window)
5328 (make_disasm_window, make_data_window)
5329 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5330 (reset_locator, show_source_or_disasm_and_command): Update.
5331 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5333 (struct tui_source_window_base) <reset>: Likewise.
5335 2019-07-17 Tom Tromey <tom@tromey.com>
5337 * tui/tui-layout.c (show_source_disasm_command): Use
5339 (reset_locator): New function.
5340 (init_and_make_win): Remove.
5341 (show_source_or_disasm_and_command): Use reset_locator.
5343 2019-07-17 Tom Tromey <tom@tromey.com>
5345 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5347 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5349 * tui/tui-source.c (tui_source_window_base::reset): New method.
5350 * tui/tui-layout.c (make_command_window): Don't call
5352 (make_source_window, make_disasm_window): Don't call
5353 make_source_or_disasm_window.
5354 (make_data_window): Don't call init_and_make_win. Change calling
5356 (show_source_disasm_command, show_data): Simplify.
5357 (make_source_or_disasm_window): Remove.
5358 (show_source_or_disasm_and_command): Simplify.
5359 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5360 (struct tui_source_window_base) <reset>: Likewise.
5361 <execution_info>: Remove initializer.
5362 * tui/tui-data.c (tui_source_window_base): Initialize
5365 2019-07-17 Tom Tromey <tom@tromey.com>
5367 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5370 2019-07-17 Tom Tromey <tom@tromey.com>
5372 * tui/tui.c (tui_rl_other_window): Update.
5373 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5374 superclass method first. Always iterate over regs_content.
5375 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5377 * tui/tui-win.c (tui_set_focus_command): Update.
5379 2019-07-17 Tom Tromey <tom@tromey.com>
5381 * tui/tui-win.c (tui_set_focus_command): Rename from
5382 tui_set_focus. Call tui_enable.
5383 (tui_set_focus_command): Remove.
5385 2019-07-17 Tom Tromey <tom@tromey.com>
5387 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5389 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5391 (tui_data_window::refresh_window): Call refresh_window on data
5392 items. Always call superclass refresh_window.
5393 (tui_win_info::refresh): Remove.
5394 (tui_source_window_base::refresh_window): Update.
5395 (tui_refresh_all): Update.
5396 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5398 (show_source_or_disasm_and_command): Likewise.
5399 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5400 (struct tui_source_window_base) <refresh>: Likewise.
5402 2019-07-17 Tom Tromey <tom@tromey.com>
5404 * tui/tui-winsource.c (tui_clear_source_content)
5405 (tui_show_source_content): Update.
5406 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5407 whether content is empty.
5408 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5411 2019-07-17 Tom Tromey <tom@tromey.com>
5413 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5415 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5416 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5418 2019-07-17 Tom Tromey <tom@tromey.com>
5420 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5421 (struct tui_data_item_window): Update.
5423 2019-07-17 Tom Tromey <tom@tromey.com>
5425 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5426 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5429 2019-07-17 Tom Tromey <tom@tromey.com>
5431 * tui/tui-winsource.h (tui_erase_source_content)
5432 (tui_clear_source_content): Remove "display_prompt" parameter.
5433 * tui/tui-winsource.c (tui_update_source_window_as_is)
5434 (tui_update_source_windows_with_addr): Update.
5435 (tui_clear_source_content): Remove "display_prompt" parameter.
5436 (tui_erase_source_content): Likewise. Simplify.
5437 (tui_show_source_content): Update.
5438 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5439 * tui/tui-stack.c (tui_show_frame_info): Update.
5440 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5443 2019-07-17 Tom Tromey <tom@tromey.com>
5445 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5446 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5448 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5451 2019-07-17 Tom Tromey <tom@tromey.com>
5453 * tui/tui-winsource.c (tui_clear_source_content)
5454 (tui_show_source_content, tui_show_exec_info_content)
5455 (tui_clear_exec_info_content): Update.
5456 * tui/tui-stack.c (tui_show_locator_content): Update.
5457 (tui_show_frame_info): Update.
5458 * tui/tui-source.h (tui_source_window): Don't declare.
5459 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5460 from tui_source_is_displayed.
5461 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5463 (struct tui_source_window_base) <content_in_use>: New field. Now
5465 (struct tui_source_window) <showing_source_p>: New method.
5466 (TUI_SRC_WIN): Change cast.
5467 * tui/tui-data.c (tui_initialize_static_data): Update.
5469 2019-07-17 Tom Tromey <tom@tromey.com>
5471 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5473 * tui/tui-source.c (tui_source_window::location_matches_p): New
5475 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5477 * tui/tui-data.h (struct tui_source_window_base)
5478 <location_matches_p>: New method.
5479 (struct tui_source_window, struct tui_disasm_window)
5480 <location_matches_p>: Likewise.
5482 2019-07-17 Tom Tromey <tom@tromey.com>
5484 * tui/tui-win.c (tui_set_win_height_command): Rename from
5486 (tui_set_win_height_command): Remove.
5488 2019-07-17 Tom Tromey <tom@tromey.com>
5490 * tui/tui-source.c (tui_source_window): New constructor. Add
5492 (~tui_source_window): New destructor.
5493 (tui_source_window::style_changed): New method.
5494 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5495 (tui_attach_detach_observers): Update.
5496 * tui/tui-data.h (struct tui_source_window): Make constructor not
5497 inline. Add destructor.
5498 (struct tui_source_window) <style_changed>: New method.
5499 <m_observable>: New member.
5501 2019-07-17 Tom Tromey <tom@tromey.com>
5503 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5504 * tui/tui-win.c (tui_resize_all): Fix typo.
5506 2019-07-17 Tom Tromey <tom@tromey.com>
5508 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5509 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5510 (tui_refresh_all): Remove "list" parameter. Use foreach.
5511 * tui/tui-win.c (window_name_completer): Use foreach.
5512 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5513 (update_tab_width): Likewise.
5514 * tui/tui-layout.c (show_layout): Update.
5515 * tui/tui-data.h (class tui_window_iterator): New.
5516 (struct all_tui_windows): New.
5517 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5519 2019-07-17 Tom Tromey <tom@tromey.com>
5521 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5522 parameter. Don't reference globals.
5523 (tui_reg_command): Update.
5525 2019-07-17 Tom Tromey <tom@tromey.com>
5527 * tui/tui-regs.c (tui_show_registers): Simplify.
5529 2019-07-17 Tom Tromey <tom@tromey.com>
5531 * tui/tui-regs.c (tui_show_registers): Update.
5532 (tui_show_register_group): Add win_info parameter.
5534 2019-07-17 Tom Tromey <tom@tromey.com>
5536 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5537 Rename from tui_display_reg_element_at_line.
5538 (tui_data_window::display_registers_from_line): Update.
5539 * tui/tui-data.h (struct tui_data_window)
5540 <display_reg_element_at_line>: New method.
5542 2019-07-17 Tom Tromey <tom@tromey.com>
5544 * tui/tui-regs.h (tui_display_registers_from)
5545 (tui_display_registers_from_line): Don't declare.
5546 * tui/tui-windata.c (tui_data_window::display_all_data)
5547 (tui_data_window::refresh_all)
5548 (tui_data_window::do_scroll_vertical): Update.
5549 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5550 from tui_display_registers_from.
5551 (tui_display_reg_element_at_line): Update.
5552 (tui_data_window::display_registers_from_line): Rename from
5553 tui_display_registers_from_line.
5554 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5555 display_registers_from_line>: New methods.
5557 2019-07-17 Tom Tromey <tom@tromey.com>
5559 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5560 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5561 from tui_erase_data_content.
5562 (tui_data_window::display_all_data)
5563 (tui_data_window::refresh_all)
5564 (tui_data_window::do_scroll_vertical): Update.
5565 * tui/tui-regs.c (tui_show_registers): Update.
5566 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5569 2019-07-17 Tom Tromey <tom@tromey.com>
5571 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5574 (tui_data_window::delete_data_content_windows): Rename from
5575 tui_delete_data_content_windows.
5576 (tui_data_window::display_all_data)
5577 (tui_data_window::do_scroll_vertical): Update.
5578 * tui/tui-data.h (struct tui_data_window)
5579 <delete_data_content_windows>: New method.
5581 2019-07-17 Tom Tromey <tom@tromey.com>
5583 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5584 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5586 2019-07-17 Tom Tromey <tom@tromey.com>
5588 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5589 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5590 from tui_display_all_data.
5592 (tui_data_window::do_make_visible_with_new_height): Update.
5593 * tui/tui-regs.c (tui_show_registers): Update.
5594 * tui/tui-layout.c (tui_set_layout): Update.
5595 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5598 2019-07-17 Tom Tromey <tom@tromey.com>
5600 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5601 * tui/tui-windata.c (tui_display_data_from): Remove.
5602 (tui_data_window::refresh_all): Update.
5604 2019-07-17 Tom Tromey <tom@tromey.com>
5606 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5607 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5608 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5609 tui_display_registers_from_line.
5610 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5611 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5612 "force_display" parameter.
5614 2019-07-17 Tom Tromey <tom@tromey.com>
5616 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5618 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5619 Rename from tui_first_reg_element_no_inline.
5620 (tui_display_reg_element_at_line)
5621 (tui_display_registers_from_line): Update.
5622 * tui/tui-data.h (struct tui_data_window)
5623 <first_reg_element_no_inline>: New method.
5625 2019-07-17 Tom Tromey <tom@tromey.com>
5627 * tui/tui-windata.c (tui_display_data_from)
5628 (tui_data_window::do_scroll_vertical): Update.
5629 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5630 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5631 Rename from tui_line_from_reg_element_no.
5632 (tui_display_registers_from_line): Update.
5633 * tui/tui-data.h (struct tui_data_window)
5634 <line_from_reg_element_no>: New method.
5636 2019-07-17 Tom Tromey <tom@tromey.com>
5638 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5639 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5640 tui_last_regs_line_no.
5641 (tui_display_reg_element_at_line)
5642 (tui_display_registers_from_line): Update.
5643 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5646 2019-07-17 Tom Tromey <tom@tromey.com>
5649 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5650 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5651 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5652 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5653 (tui_update_breakpoint_info): Likewise.
5654 * tui/tui-hooks.c (tui_event_create_breakpoint)
5655 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5658 2019-07-17 Tom Tromey <tom@tromey.com>
5660 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5662 2019-07-17 Tom Tromey <tom@tromey.com>
5664 * tui/tui-winsource.c (tui_update_source_window_as_is)
5665 (tui_update_source_windows_with_addr): Update.
5666 * tui/tui-source.h (tui_set_source_content)
5667 (tui_show_symtab_source): Add "win_info" parameter.
5668 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5670 (tui_show_symtab_source): Likewise.
5672 2019-07-17 Tom Tromey <tom@tromey.com>
5674 * tui/tui-wingeneral.c
5675 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5677 2019-07-17 Tom Tromey <tom@tromey.com>
5679 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5680 (struct tui_cmd_window) <can_scroll>: New method.
5681 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5684 2019-07-17 Tom Tromey <tromey@adacore.com>
5686 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5687 do_field_signed>: Rename. Change type of "value".
5688 * ui-out.c (ui_out::field_signed): Rename from field_int.
5689 Change type of "value".
5690 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5692 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5693 do_field_int. Change type of "value".
5694 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5695 do_field_int. Change type of "value".
5696 * tracepoint.c (trace_status_mi, tfind_1)
5697 (print_one_static_tracepoint_marker): Update.
5698 * thread.c (print_thread_info_1, print_selected_thread_frame):
5700 * stack.c (print_frame, print_frame_info): Update.
5701 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5703 * source.c (print_source_lines_base): Update.
5704 * skip.c (info_skip_command): Update.
5705 * record-btrace.c (btrace_ui_out_decode_error)
5706 (btrace_call_history_src_line): Update.
5707 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5709 * progspace.c (print_program_space): Update.
5710 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5711 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5712 do_field_int. Change type of "value".
5713 * mi/mi-out.c (mi_ui_out::do_table_begin)
5714 (mi_ui_out::do_table_header): Update.
5715 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5717 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5718 (mi_cmd_data_list_changed_registers, output_register)
5719 (mi_cmd_data_read_memory, mi_load_progress)
5720 (mi_cmd_trace_frame_collected): Update.
5721 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5723 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5724 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5725 (mi_cmd_var_list_children, varobj_update_one): Update.
5726 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5727 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5728 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5729 * inferior.c (print_inferior): Update.
5730 * gdb_bfd.c (print_one_bfd): Update.
5731 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5733 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5734 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5735 do_field_int. Change type of "value".
5736 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5737 do_field_int. Change type of "value".
5738 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5739 (print_one_breakpoint_location, print_it_catch_fork)
5740 (print_one_catch_fork, print_it_catch_vfork)
5741 (print_one_catch_vfork, print_it_catch_solib)
5742 (print_it_catch_exec, print_it_ranged_breakpoint)
5743 (print_mention_watchpoint, print_mention_masked_watchpoint)
5744 (bkpt_print_it, update_static_tracepoint): Update.
5745 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5746 * break-catch-syscall.c (print_it_catch_syscall): Update.
5747 * ada-tasks.c (print_ada_task_info): Update.
5748 * ada-lang.c (print_it_exception, print_mention_exception):
5751 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5753 PR breakpoints/24541
5754 * gdbarch.c: Regenerate.
5755 * gdbarch.h: Regenerate.
5756 * gdbarch.sh: Adjust return type and parameter types for
5757 'stap_adjust_register'.
5758 (i386_stap_adjust_register): Adjust signature and return new
5760 * stap-probe.c (stap_parse_register_operand): Adjust use of
5761 'gdbarch_stap_adjust_register'.
5763 2019-07-17 Tom Tromey <tromey@adacore.com>
5765 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5767 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5769 (struct s390_process_info): Add initializers.
5770 (s390_add_process): Use new.
5771 (s390_linux_nat_target::low_forget_process): Use delete.
5772 (s390_linux_nat_target::low_new_fork)
5773 (s390_linux_nat_target::stopped_by_watchpoint)
5774 (s390_linux_nat_target::low_prepare_to_resume)
5775 (s390_linux_nat_target::insert_watchpoint)
5776 (s390_linux_nat_target::insert_hw_breakpoint)
5777 (s390_linux_nat_target::remove_watchpoint)
5778 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5780 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5782 * aarch64-fbsd-nat.c: Include regcache.h.
5783 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5785 (aarch64_fbsd_nat_target::fetch_registers)
5786 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5788 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5790 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5792 * fbsd-nat.c: Include gdbarch.h.
5794 2019-07-15 Tom Tromey <tromey@adacore.com>
5796 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5798 2019-07-15 Tom Tromey <tromey@adacore.com>
5800 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5801 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5802 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5803 * cli-out.c (cli_ui_out::do_field_int): New method.
5804 * ui-out.c (ui_out::field_unsigned): New method.
5805 * symfile.c (generic_load): Use field_unsigned.
5806 (print_transfer_performance): Likewise.
5807 * record-btrace.c (ui_out_field_uint): Remove.
5808 (btrace_call_history_insn_range, btrace_call_history): Use
5810 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5812 * ui-out.h (class ui_out) <field_unsigned>: New method.
5813 <do_field_unsigned>: Likewise.
5815 2019-07-15 Tom Tromey <tromey@adacore.com>
5817 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5818 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5819 * target.c (flash_erase_command): Use field_string.
5820 * infrun.c (print_signal_received_reason): Use field_string.
5821 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5822 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5824 * ada-tasks.c (print_ada_task_info): Use field_string.
5826 2019-07-15 Tom Tromey <tromey@adacore.com>
5828 * target.c (flash_erase_command): Use field_core_addr.
5829 * symfile.c (generic_load): Use field_core_addr.
5830 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5831 Use field_core_addr.
5832 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5835 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5837 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5838 value if its desired type is smaller than a CORE_ADDR and signed.
5840 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5842 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5843 of changes to field names, and use new is_reference field to
5844 decide if a property is a reference or not.
5845 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5847 (struct dwarf2_property_baton): Update header comment, rename
5848 'referenced_type' to 'property_type' and update comments.
5849 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5850 default property type, store in property baton, update to take
5851 accound of renamed field.
5852 (read_func_scope): Update call to attr_to_dynamic_prop.
5853 (read_array_type): Likewise.
5854 (dwarf2_per_cu_addr_sized_int_type): New function.
5855 (read_subrange_index_type): Move type finding code to
5856 dwarf2_per_cu_addr_sized_int_type.
5857 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5858 (dwarf2_per_cu_addr_type): New function.
5859 (set_die_type): Update calls to attr_to_dynamic_prop.
5861 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5863 * dwarf2read.c (read_subrange_index_type): New function.
5864 (read_subrange_type): Move code into new function and call it.
5865 * gdbtypes.c (create_range_type): Add some asserts.
5867 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5869 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5870 update return statements.
5871 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5872 declaration, and update comment to match.
5873 * gdbtypes.c (resolve_dynamic_array): Update call to
5874 dwarf2_evaluate_property to match new return type.
5876 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5878 * valarith.c (value_subscripted_rvalue): Change lowerbound
5879 parameter type from int to LONGEST.
5880 * value.h (value_subscripted_rvalue): Likewise in declaration.
5882 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5884 * cli/cli-utils.c (info_print_command_completer): New function.
5885 * cli/cli-utils.h: Add 'completer.h' include, and forward
5886 declaration for 'struct cmd_list_element'.
5887 (info_print_command_completer): Declare.
5888 * stack.c (_initialize_stack): Add completer for 'info locals' and
5890 * symtab.c (_initialize_symtab): Add completer for 'info
5891 variables' and 'info functions'.
5892 * NEWS: Mention completion for additional info commands.
5894 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5896 * cli/cli-utils.c (extract_info_print_args): Delete.
5897 (extract_arg_maybe_quoted): Delete.
5898 (info_print_options_defs): New variable.
5899 (make_info_print_options_def_group): New function.
5900 (extract_info_print_options): Define new function.
5901 * cli/cli-utils.h (extract_info_print_args): Delete.
5902 (struct info_print_options): New structure.
5903 (extract_info_print_options): Declare new function.
5904 * stack.c (info_locals_command): Update to use new
5905 extract_info_print_options, also add a header comment.
5906 (info_args_command): Likewise.
5907 * symtab.c (info_variables_command): Likewise.
5908 (info_functions_command): Likewise.
5910 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5912 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
5913 to extract string arguments.
5914 * common/common-utils.c (extract_string_maybe_quoted): New function.
5915 * common/common-utils.h (extract_string_maybe_quoted): Declare.
5917 2019-07-11 Tom Tromey <tromey@adacore.com>
5919 * main.c (get_init_files): Use GDBINIT, not gdbinit.
5920 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
5921 * top.h (gdbinit): Don't declare.
5922 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
5924 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
5925 * top.c (gdb_init): Don't call init_cli_cmds.
5927 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
5929 2019-07-11 Tom Tromey <tromey@adacore.com>
5931 * python/py-inferior.c (add_thread_object): Don't use thread_obj
5932 after it has been moved.
5934 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5936 * valops.c (value_must_coerce_to_target): Change return type to
5938 * value.h (value_must_coerce_to_target): Likewise.
5940 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
5942 * breakpoint.c (is_hardware_watchpoint): Remove
5943 forward-declaration.
5944 (is_masked_watchpoint): Change return type to bool.
5945 (is_tracepoint): Likewise.
5946 (is_breakpoint): Likewise.
5947 (is_hardware_watchpoint): Likewise.
5948 (is_watchpoint): Likewise.
5949 (is_no_memory_software_watchpoint): Likewise.
5950 (is_catchpoint): Likewise.
5951 (breakpoint_1): Make FILTER parameter's return type bool.
5952 is_masked_watchpoint): Change return type to bool.
5953 (save_breakpoints): Make FILTER parameter's return type bool.
5954 * breakpoint.h (is_breakpoint): Change return type to bool.
5955 (is_watchpoint): Likewise.
5956 (is_catchpoint): Likewise.
5957 (is_tracepoint): Likewise.
5959 2019-07-10 Tom Tromey <tom@tromey.com>
5961 * defs.h: Don't include gdbarch.h.
5962 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5963 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
5964 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
5965 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
5966 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
5967 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
5968 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
5969 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
5970 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
5971 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
5972 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5973 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5974 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5975 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5976 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5977 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5978 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5979 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5980 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5981 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5982 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5983 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5984 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5985 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5986 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5987 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5988 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
5990 2019-07-10 Tom Tromey <tromey@adacore.com>
5992 * ada-lang.h (is_ada_exception_catchpoint): Declare.
5993 * breakpoint.c (init_ada_exception_breakpoint): Register as
5995 (print_one_breakpoint_location, print_one_breakpoint): Use
5996 is_ada_exception_catchpoint.
5997 * ada-lang.c (class ada_catchpoint_location): Pass
5998 bp_loc_software_breakpoint to bp_location constructor.
5999 (is_ada_exception_catchpoint): New function.
6001 2019-07-10 Tom Tromey <tromey@adacore.com>
6003 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6005 (struct arm_exidx_entry): New method operator<.
6006 (struct arm_exidx_data) <section_maps>: Change type.
6007 (arm_exidx_data_free): Remove.
6008 (arm_exidx_data_key): Change type. Move lower.
6009 (arm_exidx_new_objfile): Update.
6010 (arm_compare_exidx_entries): Remove.
6011 (arm_find_exidx_entry, _initialize_arm_tdep)
6013 2019-07-10 Tom Tromey <tromey@adacore.com>
6015 * solib-spu.c (ocl_program_data_key): Change type.
6016 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6019 2019-07-10 Tom Tromey <tromey@adacore.com>
6021 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6022 (struct solib_aix_inferior_data) <library_list>: Change type.
6023 (solib_aix_inferior_data_handle): Change type.
6024 (get_solib_aix_inferior_data): Update.
6025 (solib_aix_free_library_list): Remove.
6026 (library_list_start_library): Update.
6027 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6029 (solib_aix_get_library_list)
6030 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6031 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6033 2019-07-10 Tom Tromey <tromey@adacore.com>
6035 * solib-dsbt.c (struct dsbt_info): Add initializers.
6036 (solib_dsbt_pspace_data): Change type.
6037 (dsbt_pspace_data_cleanup): Remove.
6038 (get_dsbt_info, _initialize_dsbt_solib): Update.
6040 2019-07-10 Tom Tromey <tromey@adacore.com>
6042 * spu-tdep.c (spu_overlay_data): Change type.
6043 (spu_get_overlay_table, spu_overlay_new_objfile)
6044 (_initialize_spu_tdep): Update.
6046 2019-07-10 Tom Tromey <tromey@adacore.com>
6048 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6050 (dbx_objfile_data_key): Change type and declare later.
6051 (DBX_SYMFILE_INFO): Rewrite.
6052 * dbxread.c (dbx_objfile_data_key): Change type.
6053 (dbx_symfile_init): Update.
6054 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6055 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6056 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6058 2019-07-10 Tom Tromey <tromey@adacore.com>
6060 * jit.c (jit_program_space_key): Change type. Move lower.
6061 (get_jit_program_space_data): Update.
6062 (jit_program_space_data_cleanup): Remove.
6063 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6065 (struct jit_program_space_data): Add initializers.
6067 2019-07-10 Tom Tromey <tromey@adacore.com>
6069 * solib-darwin.c (struct darwin_info): Add initializers.
6070 (solib_darwin_pspace_data): Change type.
6071 (darwin_pspace_data_cleanup): Remove.
6072 (get_darwin_info, _initialize_darwin_solib): Update.
6074 2019-07-10 Tom Tromey <tromey@adacore.com>
6076 * remote-sim.c (struct sim_inferior_data): Add initializers,
6077 constructor, and destructor.
6078 (sim_inferior_data_key): Change type. Move lower.
6079 (check_for_duplicate_sim_descriptor): Update.
6080 (get_sim_inferior_data): Use new. Update.
6081 (~sim_inferior_data_cleanup): Rename from
6082 sim_inferior_data_cleanup. Simplify.
6083 (gdbsim_close_inferior, simulator_command)
6084 (sim_command_completer, _initialize_remote_sim): Update.
6085 (next_pid, INITIAL_PID): Move earlier.
6087 2019-07-10 Tom Tromey <tromey@adacore.com>
6089 * python/python-internal.h (create_thread_object): Return
6091 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6092 * python/py-inferior.c (struct threadlist_entry): Add
6094 <thread_obj>: Now a gdbpy_ref.
6095 (thread_to_thread_object): Update.
6096 (add_thread_object): Use new.
6097 (delete_thread_object): Use delete.
6098 (infpy_threads): Update.
6099 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6102 2019-07-10 Tom Tromey <tromey@adacore.com>
6104 * valops.c (value_cast): Specialize error message for Ada.
6106 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6108 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6110 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6112 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6113 bpstat_should_step): Return bool, adjust comments.
6114 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6115 bpstat_should_step): Likewise.
6117 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6119 * features/Makefile: Use feature target descriptions for Arm.
6120 * features/arm/arm-core.c: Generate new file.
6121 * features/arm/arm-fpa.c: Likewise.
6122 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6123 * features/arm/arm-m-profile.c: Likewise.
6124 * features/arm/arm-vfpv2.c: Likewise.
6125 * features/arm/arm-vfpv3.c: Likewise.
6126 * features/arm/xscale-iwmmxt.c: Likewise.
6127 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6129 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6131 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6134 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6136 * features/aarch64-pauth.c: Regenerate.
6138 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6140 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6142 (bpstat_what): Use false instead of 0.
6144 2019-07-09 Pedro Alves <palves@redhat.com>
6146 * break-catch-throw.c (is_exception_catchpoint): New.
6147 * breakpoint.c (print_one_breakpoint_location): New parameter
6148 'raw_loc'. Handle it. Use
6149 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6150 looking at the breakpoint's type.
6151 (print_one_breakpoint): If handling "maint info breakpoints", also
6152 print locations of exception catchpoints.
6153 * breakpoint.h (is_exception_catchpoint): Declare.
6155 2019-07-09 Pedro Alves <palves@redhat.com>
6157 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6159 (allocate_location_exception_catchpoint): New.
6160 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6161 (initialize_throw_catchpoint_ops): Install
6162 allocate_location_exception_catchpoint as allocate_location
6164 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6165 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6167 (breakpoint_address_is_meaningful): Delete.
6168 (bl_address_is_meaningful): New.
6169 (breakpoint_locations_match): Adjust comment.
6170 (bp_location_from_bp_type): New, factored out of...
6171 (bp_location::bp_location(breakpoint *)): ... this.
6172 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6174 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6175 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6176 breakpoint_address_is_meaningful.
6177 (bp_locations_compare): Adjust comment.
6178 (update_global_location_list): Use bl_address_is_meaningful
6179 instead of breakpoint_address_is_meaningful.
6180 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6182 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6183 * python/py-breakpoint.c (bppy_get_location): No longer check
6184 whether location is null.
6186 2019-07-09 Pedro Alves <palves@redhat.com>
6189 * breakpoint.c (print_one_breakpoint_location): Remove
6190 single-location assert.
6192 2019-07-09 Tom Tromey <tom@tromey.com>
6194 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6195 * configure: Rebuild.
6196 * configure.ac: Change common to gdbsupport.
6197 * gdbsupport: Rename from common.
6198 * acinclude.m4: Change common to gdbsupport.
6199 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6200 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6202 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6203 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6204 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6205 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6206 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6207 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6208 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6209 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6210 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6211 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6212 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6213 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6214 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6215 coff-pe-read.c, command.h, compile/compile-c-support.c,
6216 compile/compile-c.h, compile/compile-cplus-symbols.c,
6217 compile/compile-cplus-types.c, compile/compile-cplus.h,
6218 compile/compile-loc2c.c, compile/compile.c, completer.c,
6219 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6220 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6221 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6222 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6223 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6224 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6225 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6226 features/aarch64-core.c, features/aarch64-fpu.c,
6227 features/aarch64-pauth.c, features/aarch64-sve.c,
6228 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6229 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6230 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6231 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6232 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6233 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6234 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6235 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6236 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6237 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6238 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6239 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6240 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6241 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6242 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6243 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6244 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6245 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6246 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6247 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6248 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6249 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6250 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6251 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6252 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6253 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6254 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6255 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6256 minsyms.c, mips-linux-tdep.c, namespace.h,
6257 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6258 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6259 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6260 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6261 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6262 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6263 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6264 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6265 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6266 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6267 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6268 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6269 procfs.c, producer.c, progspace.h, psymtab.h,
6270 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6271 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6272 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6273 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6274 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6275 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6276 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6277 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6278 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6279 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6280 target-memory.c, target.c, target.h, target/waitstatus.c,
6281 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6282 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6283 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6284 unittests/array-view-selftests.c,
6285 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6286 unittests/common-utils-selftests.c,
6287 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6288 unittests/format_pieces-selftests.c,
6289 unittests/function-view-selftests.c,
6290 unittests/lookup_name_info-selftests.c,
6291 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6292 unittests/mkdir-recursive-selftests.c,
6293 unittests/observable-selftests.c,
6294 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6295 unittests/parse-connection-spec-selftests.c,
6296 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6297 unittests/scoped_fd-selftests.c,
6298 unittests/scoped_mmap-selftests.c,
6299 unittests/scoped_restore-selftests.c,
6300 unittests/string_view-selftests.c, unittests/style-selftests.c,
6301 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6302 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6303 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6304 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6305 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6306 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6308 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6310 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6312 (decode_digits_ordinary): Set explicit_line field in sal.
6313 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6314 symtab_and_line that was set on an explicit line number in
6315 assembler code. Do always update the recorded symtab and line if
6316 we do skip the prologue.
6318 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6320 * breakpoint.c (set_breakpoint_location_function): Remove
6321 explicit_loc parameter.
6322 (momentary_breakpoint_from_master): Update call to
6323 set_breakpoint_location_function.
6324 (add_location_to_breakpoint): Likewise.
6326 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6328 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6329 required features based on default bfd type when no specific bfd
6332 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6334 * NEWS: Mention that GDB printf and eval commands can now print
6335 C-style and Ada-style convenience var strings without
6336 calling the inferior.
6337 * printcmd.c (printf_c_string): Locally print GDB internal var
6338 instead of transiting via the inferior.
6339 (printf_wide_c_string): Likewise.
6341 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6343 PR breakpoints/25011
6344 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6346 2019-07-04 Tom Tromey <tom@tromey.com>
6349 * tui/tui-winsource.c (tui_clear_source_content): Update.
6350 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6351 (tui_update_breakpoint_info): Update.
6352 (tui_set_exec_info_content): Update.
6353 * tui/tui-source.c (tui_set_source_content_nil): Update.
6354 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6356 * tui/tui-data.h (enum tui_bp_flag): New.
6357 (tui_bp_flags): New enum flags type.
6358 (struct tui_source_element) <break_mode>: Change type. Rename
6360 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6361 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6363 * tui/tui-winsource.h: Fix comment.
6365 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6367 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6368 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6369 (store_fpregs_to_thread)
6370 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6371 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6372 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6373 (IWMMXT_REGS_SIZE): Add define.
6374 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6375 (fetch_vfp_regs, store_vfp_regs)
6376 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6377 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6379 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6381 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6383 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6384 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6385 (ARM_INT_REGISTER_SIZE): ...to this.
6386 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6387 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6388 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6389 (arm_linux_collect_gregset, supply_nwfpe_register)
6390 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6392 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6393 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6394 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6395 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6396 (arm_return_in_memory, arm_store_return_value)
6397 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6398 (arm_record_ld_st_multiple): Likewise.
6399 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6400 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6402 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6404 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6405 AARCH64_DISPLACED_MODIFIED_INSNS.
6406 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6407 (aarch64_displaced_step_copy_insn): Likewise.
6408 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6409 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6410 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6411 ARM_DISPLACED_MODIFIED_INSNS.
6412 * arm-tdep.c (arm_gdbarch_init): Likewise.
6413 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6414 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6415 (struct arm_displaced_step_closure): Use
6416 ARM_DISPLACED_MODIFIED_INSNS.
6418 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6420 * features/Makefile: Remove unused xml files.
6421 * features/aarch64.xml: Remove.
6422 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6423 * features/i386/amd64-avx-avx512.xml: Remove.
6424 * features/i386/amd64-avx-linux.xml: Remove.
6425 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6426 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6427 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6428 * features/i386/amd64-avx-mpx.xml: Remove.
6429 * features/i386/amd64-avx.xml: Remove.
6430 * features/i386/amd64-linux.xml: Remove.
6431 * features/i386/amd64-mpx-linux.xml: Remove.
6432 * features/i386/amd64-mpx.xml: Remove.
6433 * features/i386/amd64.xml: Remove.
6434 * features/i386/i386-avx-avx512-linux.xml: Remove.
6435 * features/i386/i386-avx-avx512.xml: Remove.
6436 * features/i386/i386-avx-linux.xml: Remove.
6437 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6438 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6439 * features/i386/i386-avx-mpx-linux.xml: Remove.
6440 * features/i386/i386-avx-mpx.xml: Remove.
6441 * features/i386/i386-avx.xml: Remove.
6442 * features/i386/i386-linux.xml: Remove.
6443 * features/i386/i386-mmx-linux.xml: Remove.
6444 * features/i386/i386-mmx.xml: Remove.
6445 * features/i386/i386-mpx-linux.xml: Remove.
6446 * features/i386/i386-mpx.xml: Remove.
6447 * features/i386/i386.xml: Remove.
6448 * features/i386/x32-avx-avx512-linux.xml: Remove.
6449 * features/i386/x32-avx-linux.xml: Remove.
6450 * features/i386/x32-linux.xml: Remove.
6452 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6454 * regformats/aarch64.dat: Remove.
6455 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6456 * regformats/i386/amd64-avx-linux.dat: Remove.
6457 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6458 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6459 * regformats/i386/amd64-linux.dat: Remove.
6460 * regformats/i386/amd64-mpx-linux.dat: Remove.
6461 * regformats/i386/amd64.dat: Remove.
6462 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6463 * regformats/i386/i386-avx-linux.dat: Remove.
6464 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6465 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6466 * regformats/i386/i386-linux.dat: Remove.
6467 * regformats/i386/i386-mmx-linux.dat: Remove.
6468 * regformats/i386/i386-mpx-linux.dat: Remove.
6469 * regformats/i386/i386.dat: Remove.
6470 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6471 * regformats/i386/x32-avx-linux.dat: Remove.
6472 * regformats/i386/x32-linux.dat: Remove.
6474 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6476 * aarch64-tdep.c: Remove xml self tests.
6477 * amd64-linux-tdep.c: Likewise.
6478 * amd64-tdep.c: Likewise.
6479 * i386-linux-tdep.c: Likewise.
6480 * i386-tdep.c: Likewise.
6482 2019-07-03 Pedro Alves <palves@redhat.com>
6485 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6486 (pipe_cmd_option_defs): New.
6487 (make_pipe_cmd_options_def_group): New.
6488 (pipe_command): Use gdb::option::process_options.
6489 (pipe_command_completer): New function.
6490 (_initialize_cli_cmds): Install completer for "pipe" command.
6492 2019-07-03 Pedro Alves <palves@redhat.com>
6494 * cli/cli-option.c (union option_value) <string>: New field.
6495 (struct option_def_and_value): Add ctor, move ctor, dtor and
6496 use DISABLE_COPY_AND_ASSIGN.
6497 (option_def_and_value::clear_value): New.
6498 (parse_option, save_option_value_in_ctx, get_val_type_str)
6499 (add_setshow_cmds_for_options): Handle var_string.
6500 * cli-option.h (union option_def::var_address) <string>: New
6502 (struct string_option_def): New.
6503 * maint-test-options.c (struct test_options_opts): Add default
6504 ctor and use DISABLE_COPY_AND_ASSIGN.
6505 <string_opt>: New field.
6506 (test_options_opts::~test_options_opts): New.
6507 (test_options_opts::dump): Also dump "-string".
6508 (test_options_option_defs): Install "string.
6510 2019-07-03 Pedro Alves <palves@redhat.com>
6512 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6513 option_value with a null enumeration.
6514 (complete_options): Save the option values in the context.
6515 (save_option_value_in_ctx): New, factored out from ...
6516 (process_options): ... here.
6517 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6519 * maint-test-options.c (test_options_opts::dump): New, factored
6521 (maintenance_test_options_command_mode): ... here.
6522 (maintenance_test_options_command_completion_result): Delete.
6523 (maintenance_test_options_command_completion_text): Update
6525 (maintenance_show_test_options_completion_result): Change
6526 prototype. Just print
6527 maintenance_test_options_command_completion_text.
6528 (save_completion_result): New.
6529 (maintenance_test_options_completer_mode): Pass options context to
6530 complete_options, and then save a dump.
6531 (_initialize_maint_test_options): Use add_cmd to install "maint
6532 show test-options-completion-result".
6534 2019-07-03 Pedro Alves <palves@redhat.com>
6536 * NEWS (New commands): Mention "with" and "maint with".
6537 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6538 (with_command, with_command_completer): New.
6539 (pipe_command): Adjust to new repeat_previous
6541 (_initialize_cli_cmds): Install the "with" command and its "w"
6543 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6545 * cli/cli-setshow.c (parse_cli_var_uinteger)
6546 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6547 argument strings for all var_types.
6548 (get_setshow_command_value_string): New, factored out from ...
6549 (do_show_command): ... this.
6550 * cli/cli-setshow.h: Include <string>.
6551 (get_setshow_command_value_string): Declare.
6552 * command.h (repeat_previous): Now returns const char *. Adjust
6554 * maint.c: Include "cli/cli-cmds.h".
6555 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6556 (_initialize_maint_cmds): Register the "maintenance with" command.
6557 * top.c (repeat_previous): Move bits from pipe_command here:
6558 Return the saved command line, if any; error out if there's no
6559 command to relaunch.
6561 2019-07-03 Pedro Alves <palves@redhat.com>
6563 * NEWS (New commands): Mention "maint set/show test-settings"
6564 instead of "maint test-settings".
6565 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6566 (maintenance_test_settings_set_list): Rename to ...
6567 (maintenance_set_test_settings_list): ... this.
6568 (maintenance_test_settings_show_list): Rename to ...
6569 (maintenance_show_test_settings_list): ... this.
6570 (maintenance_test_settings_cmd): Delete.
6571 (maintenance_test_settings_set_cmd): ...
6572 (maintenance_set_test_settings_cmd): ... this.
6573 (maintenance_test_settings_show_cmd): ...
6574 (maintenance_show_test_settings_cmd): ... this.
6575 (maintenance_test_settings_show_value_cmd):
6576 (maintenance_show_test_settings_value_cmd): ... this.
6577 (_initialize_maint_test_settings): No longer install the "maint
6578 test-settings" prefix command. Rename "maint test-settings set"
6579 to "maint set test-settings", and "maint test-settings show" to
6580 "maint show test-settings". Adjust all subcommands.
6582 2019-07-03 Pedro Alves <palves@redhat.com>
6584 * maint-test-settings.c: Fix file's intro comment. Replace all
6585 references to "test-options" with references to "test-settings",
6588 2019-07-03 Pedro Alves <palves@redhat.com>
6590 * maint-test-settings.c (maintenance_test_settings_xxx)
6591 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6593 (maintenance_test_settings_enums): Use them.
6594 (maintenance_test_settings_enum): Default to
6595 maintenance_test_settings_xxx.
6596 (_initialize_maint_test_settings): Initialize
6597 MAINTENANCE_TEST_SETTINGS_FILENAME.
6599 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6601 * breakpoint.h (remove_breakpoints_inf): Change return type to
6602 void, move function documentation here.
6603 * breakpoint.c (remove_breakpoints_inf): Change return type to
6604 void, move function documentation to header.
6606 2019-07-02 Pedro Alves <palves@redhat.com>
6608 * NEWS (Completion improvements): Mention "info threads".
6609 * thread.c (struct info_threads_opts, info_threads_option_defs)
6610 (make_info_threads_options_def_group): New.
6611 (info_threads_command): Use gdb::option::process_options.
6612 (info_threads_command_completer): New.
6613 (_initialize_thread): Use gdb::option::build_help to build the
6614 help text for "info threads".
6616 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6618 * defs.h (generic_load): Move from here...
6619 * symfile.h (generic_load): ... to here. Rename name parameter
6621 * symfile.c (generic_load): Add comment.
6623 2019-07-01 Tom Tromey <tromey@adacore.com>
6626 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6627 declaration of without_params. Fix formatting.
6629 2019-07-01 Tom Tromey <tromey@adacore.com>
6631 * ada-exp.y (find_primitive_type): Update.
6632 * ada-lang.h (ada_lookup_symbol): Update.
6633 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6635 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6637 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6639 PR breakpoints/24541
6640 * gdbarch.c: Regenerate.
6641 * gdbarch.h: Regenerate.
6642 * gdbarch.sh: Add 'stap_adjust_register'.
6643 * i386-tdep.c: Include '<unordered_set>'.
6644 (i386_stap_adjust_register): New function.
6645 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6646 * stap-probe.c (stap_parse_register_operand): Call
6647 'gdbarch_stap_adjust_register'.
6649 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6652 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6653 * python/python.c (do_start_initialization): Use 'xmalloc'
6654 instead of 'PyMem_Malloc'.
6656 2019-06-28 Tom Tromey <tromey@adacore.com>
6658 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6661 2019-06-27 Tom Tromey <tromey@adacore.com>
6663 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6665 (arm_find_mapping_symbol, arm_record_special_symbol)
6666 (_initialize_arm_tdep): Update.
6667 (arm_objfile_data_free): Remove.
6669 2019-06-27 Tom Tromey <tromey@adacore.com>
6671 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6672 to cp_print_static_field.
6674 2019-06-26 Tom Tromey <tromey@adacore.com>
6676 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6677 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6680 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6682 * features/aarch64-core.c (create_feature_aarch64_core):
6684 * features/aarch64-core.xml: Add cpsr flags.
6686 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6688 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6689 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6691 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6693 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6695 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6697 (arm_record_special_symbol): Don't insert new symbol in sorted
6698 position, push it at the end.
6700 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6702 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6703 (arm_mapping_symbol_s): Remove.
6704 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6705 (arm_mapping_symbol_vec): New typedef.
6706 (struct arm_per_objfile): Add constructor.
6707 <section_maps>: Change type to
6708 std::unique_ptr<arm_mapping_symbol_vec[]>.
6709 (arm_compare_mapping_symbols): Remove.
6710 (arm_find_mapping_symbol): Adjust to section_maps type change.
6711 (arm_objfile_data_free): Call delete on arm_per_objfile.
6712 (arm_record_special_symbol): Adjust to section_maps type change.
6713 Allocate arm_per_objfile with new.
6715 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6717 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6718 with the command prefix.
6720 2019-06-25 Tom Tromey <tom@tromey.com>
6722 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6723 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6725 2019-06-25 Tom Tromey <tom@tromey.com>
6727 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6729 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6732 2019-06-25 Tom Tromey <tom@tromey.com>
6734 * tui/tui-winsource.c
6735 (tui_source_window_base::set_is_exec_point_at): Add check against
6738 2019-06-25 Tom Tromey <tom@tromey.com>
6740 * tui/tui-source.c (tui_set_source_content): Don't check before
6742 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6744 2019-06-25 Tom Tromey <tom@tromey.com>
6746 * tui/tui-winsource.h (tui_update_source_window_as_is)
6747 (tui_alloc_source_buffer, tui_line_is_displayed)
6748 (tui_addr_is_displayed): Change type of win_info.
6749 * tui/tui-winsource.c (tui_update_source_window_as_is)
6750 (tui_clear_source_content, tui_show_source_line)
6751 (tui_show_source_content, tui_source_window_base::refill)
6752 (tui_source_window_base::set_is_exec_point_at)
6753 (tui_source_window_base::set_is_exec_point_at)
6754 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6755 (tui_alloc_source_buffer, tui_line_is_displayed)
6756 (tui_addr_is_displayed): Change type of win_info. Update.
6757 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6758 (tui_source_window_base::do_make_visible_with_new_height):
6760 * tui/tui-source.c (tui_set_source_content)
6761 (tui_set_source_content_nil)
6762 (tui_source_window::do_scroll_vertical): Update.
6763 * tui/tui-layout.c (show_layout): Update.
6764 * tui/tui-disasm.c (tui_set_disassem_content)
6765 (tui_disasm_window::do_scroll_vertical): Update.
6766 * tui/tui-data.h (tui_win_content): Remove.
6767 (struct tui_gen_win_info) <content, content_size>: Remove.
6768 (struct tui_source_element): Add initializers and destructor.
6769 (union tui_which_element, struct tui_win_element): Remove.
6770 (struct tui_source_window_base) <content>: New field.
6771 (struct tui_data_window): Remove destructor.
6772 (tui_alloc_content, tui_free_win_content)
6773 (tui_free_all_source_wins_content): Don't declare.
6774 * tui/tui-data.c (tui_initialize_static_data): Update.
6775 (init_content_element, tui_alloc_content): Remove.
6776 (~tui_gen_win_info): Update.
6777 (~tui_data_window, tui_free_all_source_wins_content)
6778 (tui_free_win_content, free_content, free_content_elements):
6781 2019-06-25 Tom Tromey <tom@tromey.com>
6783 * tui/tui-winsource.h (tui_clear_source_content)
6784 (tui_erase_source_content, tui_show_source_content): Change type
6786 * tui/tui-winsource.c (tui_clear_source_content)
6787 (tui_erase_source_content, tui_show_source_content): Change type
6789 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6790 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6792 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6794 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6796 2019-06-25 Tom Tromey <tom@tromey.com>
6798 * tui/tui-winsource.c (tui_clear_source_content)
6799 (tui_source_window_base::set_is_exec_point_at): Update.
6800 * tui/tui-source.c (tui_set_source_content_nil): Update.
6801 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6803 * tui/tui-data.c (init_content_element): Update.
6805 2019-06-25 Tom Tromey <tom@tromey.com>
6807 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6808 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6809 * tui/tui-layout.c (init_and_make_win): Update.
6810 * tui/tui.h (enum tui_win_type): Update.
6811 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6812 tui_win_is_auxillary.
6813 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6814 tui_win_is_auxillary.
6816 2019-06-25 Tom Tromey <tom@tromey.com>
6818 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6819 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6820 (tui_delete_data_content_windows, tui_display_all_data)
6821 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6823 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6824 * tui/tui-regs.c (tui_last_regs_line_no)
6825 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6826 (tui_show_registers): Update.
6827 (tui_show_register_group): Return void. Update.
6828 (tui_display_registers_from, tui_display_reg_element_at_line)
6829 (tui_display_registers_from_line, tui_check_register_values):
6831 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6833 (struct tui_data_window) <regs_content>: Now a std::vector.
6834 <regs_content_count>: Remove.
6835 (tui_add_content_elements, tui_free_data_content): Don't declare.
6836 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6837 (init_content_element): Remove DATA_WIN case. Add assert.
6838 (tui_add_content_elements): Remove.
6839 (tui_data_window): Update.
6840 (tui_free_data_content): Remove.
6841 (free_content_elements): Remove DATA_WIN case.
6843 2019-06-25 Tom Tromey <tom@tromey.com>
6845 * tui/tui-data.c (tui_data_item_window): Update.
6846 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6847 * tui/tui-windata.c (tui_display_all_data)
6848 (tui_display_data_from_line): Update.
6849 (tui_check_data_values): Remove.
6850 * tui/tui-regs.c (tui_show_register_group)
6851 (tui_display_reg_element_at_line): Update.
6852 * tui/tui-hooks.c (tui_register_changed)
6853 (tui_refresh_frame_and_register_information): Call
6854 tui_check_register_values.
6855 * tui/tui-data.h (struct tui_data_window) <data_content,
6856 data_content_count, data_type>: Remove.
6857 (enum tui_data_type): Remove.
6859 * tui/tui-data.c (tui_data_window::clear_detail)
6860 (~tui_data_window): Update.
6862 2019-06-25 Tom Tromey <tom@tromey.com>
6864 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6866 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6867 Rename from tui_first_data_item_displayed. Update.
6868 (tui_data_window::refresh_all)
6869 (tui_data_window::do_scroll_vertical): Update.
6870 * tui/tui-data.h (struct tui_data_window)
6871 <first_data_item_displayed>: Declare new method.
6873 2019-06-25 Tom Tromey <tom@tromey.com>
6875 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6876 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6878 (tui_initialize_static_data): ...here.
6880 2019-06-25 Tom Tromey <tom@tromey.com>
6882 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6883 (tui_display_registers_from, tui_check_register_values): Update.
6884 (tui_display_register): Remove win_info parameter; update.
6885 (tui_get_register): Change type of parameters.
6886 * tui/tui-data.h (struct tui_data_element): Remove.
6887 (union tui_which_element) <data>: Remove.
6888 <data_window>: Change type.
6889 (struct tui_data_item_window): New.
6890 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6892 (~tui_data_item_window): New destructor.
6893 (free_content_elements): Remove DATA_ITEM_WIN case.
6895 2019-06-25 Tom Tromey <tom@tromey.com>
6897 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
6900 2019-06-25 Tom Tromey <tom@tromey.com>
6902 * tui/tui-data.h (struct tui_command_element): Remove.
6903 (union tui_which_element) <command>: Remove.
6904 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
6906 (free_content_elements): Remove CMD_WIN case.
6908 2019-06-25 Tom Tromey <tom@tromey.com>
6910 * tui/tui-layout.c (tui_set_layout): Update.
6911 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
6912 * tui/tui-data.c (layout_def): Update.
6914 2019-06-25 Tom Tromey <tom@tromey.com>
6916 * tui/tui-wingeneral.c (tui_refresh_all): Update.
6917 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6918 (tui_source_window_base::set_new_height): Update.
6919 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
6921 (tui_set_locator_fullname, tui_set_locator_info)
6922 (tui_show_frame_info): Update.
6923 * tui/tui-source.c (tui_set_source_content)
6924 (tui_source_is_displayed): Update.
6925 * tui/tui-layout.c (show_source_disasm_command, show_data)
6926 (show_source_or_disasm_and_command): Update.
6927 * tui/tui-disasm.c (tui_set_disassem_content)
6928 (tui_get_begin_asm_address): Update.
6929 * tui/tui-data.h (struct tui_locator_element): Remove.
6930 (union tui_which_element) <locator>: Remove.
6931 (struct tui_locator_window): New.
6932 (tui_locator_win_info_ptr): Change return type.
6933 * tui/tui-data.c (_locator): Change type.
6934 (tui_locator_win_info_ptr): Change return type.
6935 (init_content_element): Remove LOCATOR_WIN case. Add assert.
6936 (tui_alloc_content): Add assert.
6938 2019-06-25 Tom Tromey <tom@tromey.com>
6940 * tui/tui-winsource.c
6941 (tui_exec_info_window::maybe_allocate_content): New method.
6942 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
6943 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
6944 (make_source_or_disasm_window): Add cast.
6945 * tui/tui-data.h (union tui_which_element) <simple_string>:
6947 (struct tui_source_info): New.
6948 (struct tui_source_window_base) <execution_info>: Change type.
6949 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
6950 case, and add assert.
6951 (tui_alloc_content): Add assert.
6953 2019-06-25 Tom Tromey <tom@tromey.com>
6955 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
6956 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
6957 * tui/tui-data.c (tui_alloc_win_info): Remove.
6959 2019-06-25 Tom Tromey <tom@tromey.com>
6961 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
6962 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
6965 2019-06-25 Tom Tromey <tom@tromey.com>
6967 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
6968 make_visible_with_new_height method.
6969 (tui_win_info::make_visible_with_new_height): New method.
6970 (tui_source_window_base::do_make_visible_with_new_height)
6971 (tui_data_window::do_make_visible_with_new_height)
6972 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6973 (make_visible_with_new_height): Remove.
6974 (tui_resize_all, tui_adjust_win_heights): Use
6975 make_visible_with_new_height method.
6976 * tui/tui-data.h (struct tui_win_info)
6977 <do_make_visible_with_new_height, make_visible_with_new_height>:
6979 (struct tui_source_window_base, struct tui_data_window)
6980 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6983 2019-06-25 Tom Tromey <tom@tromey.com>
6985 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6987 (update_tab_width): Call update_tab_width method.
6988 * tui/tui-data.h (struct tui_win_info)
6989 (struct tui_source_window_base) <update_tab_width>: New methods.
6991 2019-06-25 Tom Tromey <tom@tromey.com>
6993 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
6995 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
6997 (tui_gen_win_info::make_visible): Update.
6998 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7000 * tui/tui-data.h (enum tui_box): New enum.
7001 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7003 2019-06-25 Tom Tromey <tom@tromey.com>
7005 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7006 init_and_make_win for EXEC_INFO_WIN.
7007 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7009 (struct tui_win_info) <~tui_win_info>: Inline.
7010 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7012 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7013 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7015 (tui_initialize_static_data): Update.
7016 (~tui_gen_win_info): Handle more cleanup here.
7017 (~tui_source_window_base): Delete "execution_info".
7018 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7020 2019-06-25 Tom Tromey <tom@tromey.com>
7022 * tui/tui-layout.c (make_command_window): Don't set
7024 (show_source_disasm_command): Call the reset method.
7025 (show_data): Don't set can_highlight. Call the reset method.
7026 (tui_gen_win_info::reset): Rename from init_gen_win_info
7027 (init_and_make_win): Simplify. Return tui_gen_win_info.
7028 (show_source_or_disasm_and_command): Call the reset method.
7029 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7030 (struct tui_cmd_window): Set can_highlight.
7032 2019-06-25 Tom Tromey <tom@tromey.com>
7034 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7036 (tui_make_visible, tui_make_invisible): Rewrite.
7037 (tui_win_info::make_visible): Remove.
7038 (tui_source_window_base::make_visible): Update.
7039 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7040 method. Moved from...
7041 (struct tui_win_info) <make_visible>: ...here.
7043 2019-06-25 Tom Tromey <tom@tromey.com>
7045 * tui/tui-winsource.c
7046 (tui_source_window_base::do_scroll_horizontal): Remove direction
7048 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7049 direction parameter.
7050 * tui/tui-win.c (tui_win_info::forward_scroll)
7051 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7052 (tui_win_info::right_scroll): Update.
7053 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7054 direction parameter.
7055 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7056 direction parameter.
7057 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7058 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7059 Remove direction parameter.
7060 (struct tui_source_window_base, struct tui_source_window)
7061 (struct tui_disasm_window, struct tui_data_window)
7062 (struct tui_cmd_window): Update.
7064 2019-06-25 Tom Tromey <tom@tromey.com>
7066 * tui/tui-winsource.h (tui_set_exec_info_content)
7067 (tui_show_exec_info_content, tui_erase_exec_info_content)
7068 (tui_clear_exec_info_content, tui_update_exec_info): Change
7069 argument to tui_source_window_base.
7070 * tui/tui-winsource.c (tui_set_exec_info_content)
7071 (tui_show_exec_info_content, tui_erase_exec_info_content)
7072 (tui_clear_exec_info_content, tui_update_exec_info): Change
7073 argument to tui_source_window_base.
7075 2019-06-25 Tom Tromey <tom@tromey.com>
7077 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7078 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7080 2019-06-25 Tom Tromey <tom@tromey.com>
7082 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7085 2019-06-25 Tom Tromey <tom@tromey.com>
7087 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7089 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7091 * tui/tui-source.c (tui_set_source_content): Update.
7092 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7094 2019-06-25 Tom Tromey <tom@tromey.com>
7096 * tui/tui-win.c (window_name_completer, tui_set_focus)
7097 (tui_all_windows_info): Use name method.
7098 * tui/tui-data.h (struct tui_gen_win_info)
7099 (struct tui_source_window, struct tui_disasm_window)
7100 (struct tui_data_window, struct tui_cmd_window) <name>: New
7102 (tui_win_name): Don't declare.
7103 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7104 (tui_win_name): Remove.
7106 2019-06-25 Tom Tromey <tom@tromey.com>
7108 * tui/tui-winsource.h (tui_update_source_window)
7109 (tui_update_source_window_as_is): Change parameter type.
7110 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7111 to be a tui_source_window_base.
7112 (tui_update_source_window_as_is): Likewise.
7113 * tui/tui-win.c (make_visible_with_new_height): Update.
7115 2019-06-25 Tom Tromey <tom@tromey.com>
7117 * tui/tui-winsource.c (tui_erase_source_content)
7118 (tui_show_source_content, tui_show_exec_info_content)
7119 (tui_erase_exec_info_content): Use refresh_window method.
7120 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7121 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7122 from tui_refresh_win.
7123 (tui_data_window::refresh_window): New method.
7124 (tui_win_info::refresh, tui_source_window_base::refresh)
7125 (tui_refresh_all): Use refresh_window method.
7126 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7128 * tui/tui-regs.c (tui_display_register): Call refresh_window
7130 * tui/tui-layout.c (show_source_disasm_command)
7131 (show_source_or_disasm_and_command): Call refresh_window method.
7132 * tui/tui-data.h (struct tui_gen_win_info)
7133 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7136 2019-06-25 Tom Tromey <tom@tromey.com>
7138 * tui/tui.c (tui_rl_other_window, tui_enable)
7139 (tui_is_window_visible, tui_get_command_dimension): Update.
7140 * tui/tui-winsource.c (tui_update_source_window_as_is)
7141 (tui_clear_source_content, tui_erase_source_content)
7142 (tui_show_source_line, tui_source_window_base::refill)
7143 (tui_source_window_base::do_scroll_horizontal)
7144 (tui_source_window_base::set_is_exec_point_at)
7145 (tui_update_breakpoint_info, tui_set_exec_info_content)
7146 (tui_alloc_source_buffer, tui_line_is_displayed)
7147 (tui_addr_is_displayed): Update.
7148 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7149 (tui_check_and_display_highlight_if_needed)
7150 (tui_win_info::make_visible, tui_win_info::refresh)
7151 (tui_refresh_all): Update.
7152 * tui/tui-windata.c (tui_first_data_item_displayed)
7153 (tui_delete_data_content_windows, tui_erase_data_content)
7154 (tui_display_all_data, tui_data_window::refresh_all)
7155 (tui_check_data_values): Update.
7156 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7157 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7158 (tui_win_info::backward_scroll, tui_refresh_all_win)
7159 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7160 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7161 (tui_source_window_base::set_new_height)
7162 (tui_data_window::set_new_height)
7163 (make_invisible_and_set_new_height)
7164 (make_visible_with_new_height, new_height_ok)
7165 (parse_scrolling_args): Update.
7166 * tui/tui-stack.c (tui_show_frame_info): Update.
7167 * tui/tui-source.c (tui_set_source_content)
7168 (tui_set_source_content_nil, tui_source_is_displayed)
7169 (tui_source_window::do_scroll_vertical): Update.
7170 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7171 (tui_display_registers_from, tui_display_reg_element_at_line)
7172 (tui_check_register_values, tui_reg_command): Update.
7173 * tui/tui-layout.c (tui_default_win_height)
7174 (show_source_disasm_command, show_data, init_and_make_win)
7175 (show_source_or_disasm_and_command): Update.
7176 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7177 (tui_redisplay_readline, tui_mld_flush)
7178 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7180 * tui/tui-disasm.c (tui_set_disassem_content)
7181 (tui_disasm_window::do_scroll_vertical): Update.
7182 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7184 (struct tui_win_info): Derive from tui_gen_win_info.
7185 <~tui_win_info>: Mark as override.
7186 <generic>: Remove member.
7187 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7188 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7189 (~tui_data_window, ~tui_win_info)
7190 (tui_free_all_source_wins_content): Update.
7191 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7193 2019-06-25 Tom Tromey <tom@tromey.com>
7195 * tui/tui-layout.c (init_and_make_win): Use new.
7196 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7197 destructor, initializers.
7198 (tui_alloc_generic_win_info): Don't declare.
7199 * tui/tui-data.c (_locator): Add argument to constructor.
7200 (source_win, disasm_win): New globals.
7201 (exec_info): Remove.
7202 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7204 (tui_alloc_generic_win_info): Remove.
7205 (init_content_element): Use new.
7206 (tui_win_info::tui_win_info): Update.
7207 (free_content_elements) <case DATA_WIN>: Use delete.
7209 2019-06-25 Tom Tromey <tom@tromey.com>
7211 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7212 * tui/tui-windata.c (tui_first_data_item_displayed)
7213 (tui_delete_data_content_windows): Update.
7214 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7215 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7216 (tui_display_registers_from, tui_check_register_values): Update.
7217 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7219 * tui/tui-data.c (init_content_element): Update. Allocate the new
7221 (tui_free_data_content): Update.
7222 (free_content_elements) <case DATA_WIN>: Free the window.
7224 2019-06-25 Tom Tromey <tom@tromey.com>
7226 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7228 * tui/tui-layout.c (make_command_window)
7229 (show_source_disasm_command, show_data, init_and_make_win)
7230 (show_source_or_disasm_and_command): Update.
7231 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7233 <can_highight, is_highlighted>: Now bool.
7234 (tui_set_win_highlight): Don't declare.
7235 * tui/tui-data.c (tui_set_win_highlight): Remove.
7237 2019-06-25 Tom Tromey <tom@tromey.com>
7239 * tui/tui-wingeneral.c (make_visible): Remove check of window
7242 2019-06-25 Tom Tromey <tom@tromey.com>
7244 * tui/tui-win.c (tui_win_info::max_height)
7245 (tui_cmd_window::max_height): New methods.
7246 (new_height_ok): Call max_height.
7247 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7248 <max_height>: New method.
7250 2019-06-25 Tom Tromey <tom@tromey.com>
7252 * tui/tui-win.c (tui_source_window_base::set_new_height)
7253 (tui_data_window::set_new_height): New methods.
7254 (make_invisible_and_set_new_height): Call set_new_height method.
7255 * tui/tui-data.h (struct tui_win_info)
7256 (struct tui_source_window_base, struct tui_data_window)
7257 <set_new_height>: New method.
7259 2019-06-25 Tom Tromey <tom@tromey.com>
7261 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7262 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7263 tui_refresh_data_win.
7264 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7266 (tui_refresh_all_win): Call the refresh_all method.
7267 (tui_set_focus): Likewise.
7268 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7269 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7272 2019-06-25 Tom Tromey <tom@tromey.com>
7274 * tui/tui-winsource.h (tui_refill_source_window)
7275 (tui_set_is_exec_point_at): Don't declare.
7276 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7277 (tui_source_window_base::refill): Rename from
7278 tui_refill_source_window.
7279 (tui_source_window_base::do_scroll_horizontal): Update.
7280 (tui_source_window_base::set_is_exec_point_at): Rename from
7281 tui_set_is_exec_point_at.
7282 (tui_update_all_breakpoint_info): Update.
7283 * tui/tui-stack.c (tui_show_frame_info): Update.
7284 * tui/tui-layout.c (show_data): Add cast.
7285 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7286 * tui/tui-data.h (struct tui_source_window_base) <refill,
7287 set_is_exec_point_at>: New methods.
7288 (tui_source_windows, tui_add_to_source_windows): Update types.
7289 (tui_add_to_source_windows): Remove redundant declaration.
7290 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7291 (tui_source_windows): Change return type.
7292 (tui_clear_source_windows_detail): Update.
7293 (tui_add_to_source_windows): Change type of parameter.
7294 (tui_free_all_source_wins_content): Update.
7296 2019-06-25 Tom Tromey <tom@tromey.com>
7298 * tui/tui-wingeneral.c (tui_win_info::refresh)
7299 (tui_source_window_base::refresh): New methods.
7300 (tui_refresh_all): Call the refresh method.
7301 * tui/tui-data.h (struct tui_win_info)
7302 (struct tui_source_window_base) <refresh>: New method.
7304 2019-06-25 Tom Tromey <tom@tromey.com>
7306 * tui/tui.h (tui_is_window_visible): Return bool.
7307 * tui/tui.c (tui_is_window_visible): Return bool.
7308 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7309 (tui_make_visible, tui_make_invisible)
7310 (tui_win_info::make_visible)
7311 (tui_source_window_base::make_visible, make_all_visible)
7312 (tui_make_all_visible, tui_make_all_invisible): Update.
7313 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7314 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7316 (struct tui_win_info, struct tui_source_window_base)
7317 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7318 * tui/tui-data.c (tui_init_generic_part): Update.
7320 2019-06-25 Tom Tromey <tom@tromey.com>
7322 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7323 (tui_source_window_base::make_visible): New methods.
7324 (make_all_visible): Make method call.
7325 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7326 (struct tui_source_window_base, struct tui_cmd_window): Override
7328 (tui_win_is_source_type): Don't declare.
7329 * tui/tui-data.c (tui_win_is_source_type): Remove.
7331 2019-06-25 Tom Tromey <tom@tromey.com>
7333 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7336 2019-06-25 Tom Tromey <tom@tromey.com>
7338 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7339 Inline constructor. Add initializers for members.
7340 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7341 constructors; now inline in class.
7343 2019-06-25 Tom Tromey <tom@tromey.com>
7345 * tui/tui-regs.c (tui_show_registers): Update.
7346 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7348 * tui/tui-data.c (tui_data_window::clear_detail)
7349 (tui_data_window): Update.
7351 2019-06-25 Tom Tromey <tom@tromey.com>
7353 * tui/tui-windata.c (tui_display_all_data)
7354 (tui_display_data_from_line, tui_display_data_from)
7355 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7357 * tui/tui-regs.c (tui_last_regs_line_no)
7358 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7359 (tui_show_registers, tui_show_register_group)
7360 (tui_display_registers_from, tui_display_reg_element_at_line)
7361 (tui_display_registers_from_line, tui_check_register_values)
7362 (tui_reg_next, tui_reg_prev): Update.
7363 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7364 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7366 (struct tui_win_info) <detail>: Remove. Add new fields from
7368 (TUI_DATA_WIN): Add cast.
7369 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7370 (~tui_data_window): Simplify.
7372 2019-06-25 Tom Tromey <tom@tromey.com>
7374 * tui/tui-layout.c (show_source_disasm_command)
7375 (show_source_or_disasm_and_command): Update.
7376 * tui/tui-io.c (update_cmdwin_start_line)
7377 (tui_redisplay_readline): Update.
7378 * tui/tui-data.h (struct tui_command_info): Remove.
7379 (struct tui_win_info) <detail>: Remove command_info member.
7380 (struct tui_data_window) <start_line>: New member, from
7382 (TUI_CMD_WIN): Add casts.
7384 2019-06-25 Tom Tromey <tom@tromey.com>
7386 * tui/tui-winsource.c (tui_update_source_window)
7387 (tui_refill_source_window)
7388 (tui_source_window_base::do_scroll_horizontal)
7389 (tui_update_breakpoint_info, tui_set_exec_info_content)
7390 (tui_show_exec_info_content, tui_erase_exec_info_content)
7391 (tui_clear_exec_info_content): Update.
7392 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7394 * tui/tui-win.c (make_invisible_and_set_new_height)
7395 (make_visible_with_new_height): Update.
7396 * tui/tui-source.c (tui_set_source_content)
7397 (tui_show_symtab_source): Update.
7398 * tui/tui-layout.c (extract_display_start_addr)
7399 (show_source_disasm_command, show_data)
7400 (make_source_or_disasm_window)
7401 (show_source_or_disasm_and_command): Update.
7402 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7403 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7405 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7406 to tui_source_window_base.
7407 (struct tui_win_info) <detail>: Remove source_info member.
7408 (struct tui_source_window_base) <has_locator>: Inline.
7409 Move contents from tui_source_info; rename has_locator member to
7411 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7412 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7414 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7416 (tui_free_all_source_wins_content): Cast to
7417 tui_source_window_base.
7419 2019-06-25 Tom Tromey <tom@tromey.com>
7421 * tui/tui-win.c (make_invisible_and_set_new_height)
7422 (make_visible_with_new_height): Call has_locator method.
7423 * tui/tui-layout.c (show_source_disasm_command, show_data)
7424 (show_source_or_disasm_and_command): Update for bool change.
7425 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7426 (tui_win_info) <has_locator>: New method.
7427 (struct tui_source_window_base) <has_locator>: New method.
7428 (tui_win_has_locator): Don't declare.
7429 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7430 from tui_win_has_locator.
7431 (tui_source_window_base): Use false, not FALSE.
7433 2019-06-25 Tom Tromey <tom@tromey.com>
7435 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7436 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7437 clear_detail method directly.
7438 (tui_clear_win_detail): Remove.
7440 2019-06-25 Tom Tromey <tom@tromey.com>
7442 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7443 "this", not TUI_DISASM_WIN.
7445 2019-06-25 Tom Tromey <tom@tromey.com>
7447 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7449 * tui/tui-winsource.c
7450 (tui_source_window_base::do_scroll_horizontal): Rename from
7451 tui_horizontal_source_scroll.
7452 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7453 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7454 from tui_vertical_data_scroll.
7455 * tui/tui-win.h (tui_scroll): Don't declare.
7456 * tui/tui-win.c (tui_win_info::forward_scroll)
7457 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7458 (tui_win_info::right_scroll): Rename and update.
7459 (tui_scroll_forward_command, tui_scroll_backward_command)
7460 (tui_scroll_left_command, tui_scroll_right_command): Update.
7461 (tui_scroll): Remove.
7462 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7463 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7464 from tui_vertical_source_scroll.
7465 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7466 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7467 from tui_vertical_disassem_scroll.
7468 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7469 do_scroll_horizontal>: New methods.
7470 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7472 (struct tui_source_window_base): Add do_scroll_horizontal.
7473 (struct tui_source_window, struct tui_disasm_window): Add
7475 (struct tui_data_window, struct tui_cmd_window): Add
7476 do_scroll_horizontal and do_scroll_vertical.
7477 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7479 2019-06-25 Tom Tromey <tom@tromey.com>
7481 * tui/tui-data.h (struct tui_source_window_base): New struct.
7482 (struct tui_source_window): Derive from tui_source_window_base.
7483 (struct tui_disasm_window): New struct.
7484 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7485 from tui_source_window::clear_detail.
7486 (tui_source_window_base): Rename from tui_source_window.
7487 (~tui_source_window_base): Rename from ~tui_source_window.
7488 (tui_alloc_win_info): Create a tui_disasm_window.
7490 2019-06-25 Tom Tromey <tom@tromey.com>
7492 * tui/tui-data.h (struct tui_source_window)
7493 (struct tui_data_window): Declare destructors.
7494 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7496 (tui_win_info): Simplify.
7498 2019-06-25 Tom Tromey <tom@tromey.com>
7500 * tui/tui-winsource.c (tui_display_main)
7501 (tui_update_source_windows_with_addr)
7502 (tui_update_all_breakpoint_info): Update.
7503 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7504 (new_height_ok, parse_scrolling_args): Update.
7505 * tui/tui-stack.c (tui_show_frame_info): Update.
7506 * tui/tui-data.h (struct tui_list): Remove.
7507 (tui_source_windows): Return a reference to a std::vector.
7508 * tui/tui-data.c (source_windows): Now a std::vector.
7509 (tui_source_windows): Change return type.
7510 (tui_clear_source_windows): Rewrite.
7511 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7512 (tui_free_all_source_wins_content): Rewrite.
7514 2019-06-25 Tom Tromey <tom@tromey.com>
7516 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7517 (struct tui_data_window, struct tui_cmd_window): Declare
7518 clear_detail method.
7519 * tui/tui-data.c (tui_source_window::clear_detail)
7520 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7522 (tui_clear_win_detail): Simplify.
7524 2019-06-25 Tom Tromey <tom@tromey.com>
7526 * tui/tui-layout.c (make_source_window, make_disasm_window)
7527 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7528 Return the new window.
7529 (show_source_disasm_command, show_data)
7530 (show_source_or_disasm_and_command): Update.
7532 2019-06-25 Tom Tromey <tom@tromey.com>
7534 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7535 parameter. Return the new window.
7536 (show_source_disasm_command): Update and remove NULL check.
7537 (show_source_or_disasm_and_command): Update.
7539 2019-06-25 Tom Tromey <tom@tromey.com>
7541 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7543 2019-06-25 Tom Tromey <tom@tromey.com>
7545 * tui/tui-data.h (struct tui_win_info): Make constructor
7546 protected. Make destructor virtual. Add initializers.
7547 (tui_source_window, tui_data_window, tui_cmd_window): New
7549 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7550 constructor. Add "type" parameter.
7551 (tui_source_window, tui_data_window, tui_cmd_window): New
7553 (tui_alloc_win_info): Instantiate the appropriate subclass.
7555 2019-06-25 Tom Tromey <tom@tromey.com>
7557 * tui/tui-win.c (tui_resize_all): Use delete.
7558 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7560 (tui_free_window): Don't declare.
7561 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7564 2019-06-25 Tom Tromey <tom@tromey.com>
7566 * tui/tui-data.h (struct tui_win_info): Add constructor.
7567 * tui/tui-data.c (tui_alloc_win_info): Use new.
7568 (tui_free_window): Use delete.
7570 2019-06-22 Tom Tromey <tom@tromey.com>
7572 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7574 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7576 2019-06-22 Tom Tromey <tom@tromey.com>
7578 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7580 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7582 2019-06-22 Tom de Vries <tdevries@suse.de>
7584 * dwarf2read.c (create_addrmap_from_aranges)
7585 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7588 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
7590 * dwarf2read.h (dwarf2_section_info_def): Remove.
7591 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7592 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7593 std::vector<dwarf2_section_info>.
7594 (struct dwo_file) <~dwo_file>: Remove.
7595 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7597 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7598 (dwarf2_read_debug_names): Likewise.
7599 (create_debug_types_hash_table): Change parameter type to
7600 array_view, adjust code accordingly.
7601 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7602 (partial_die_info::fixup): Likewise.
7603 (determine_prefix): Likewise.
7604 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7606 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7608 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7610 <~dwo_file>: Remove call to gdb_bfd_unref.
7611 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7612 gdb_bfd_ref_ptr::get.
7614 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7616 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7618 * dwarf2read.c (struct dwo_file): Initialize fields.
7620 (free_dwo_file): Remove, move content to ~dwo_file.
7621 (struct dwo_file_deleter): Remove.
7622 (dwo_file_up>: Remove custom deleter.
7623 (free_dwo_files): Remove.
7624 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7626 (process_skeletonless_type_units): Call unique_ptr::get.
7627 (allocate_dwo_file_hash_table): Add deleter to created hash
7628 table. Change return type to htab_up.
7629 (lookup_dwo_file_slot): Don't memset dwo_file, call
7631 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7632 (create_dwo_unit_in_dwp_v2): Likewise.
7633 (open_and_init_dwo_file): Likewise.
7634 (free_dwo_file_from_slot): Remove.
7636 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7638 * dwarf2read.h (struct dwarf2_section_info) <readin,
7639 is_virtual>: Change type to bool.
7640 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7643 2019-06-19 Tom Tromey <tom@tromey.com>
7645 * tui/tui-data.h (tui_init_content_element): Don't declare.
7647 2019-06-19 Tom Tromey <tom@tromey.com>
7649 * tui/tui-data.h (tui_init_win_info): Don't declare.
7651 2019-06-19 Tom de Vries <tdevries@suse.de>
7653 * dwarf2read.h (abstract_to_concrete): Change type to
7654 std::unordered_map<sect_offset, std::vector<sect_offset>,
7655 gdb::hash_enum<sect_offset>>.
7657 2019-06-19 Tom Tromey <tromey@adacore.com>
7659 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7660 EVAL_AVOID_SIDE_EFFECTS specially.
7662 2019-06-19 Tom Tromey <tromey@adacore.com>
7664 * source-cache.c (highlighter): New global.
7665 (source_cache::get_source_lines): Create a highlighter on demand.
7667 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7669 * defs.h (deprecated_interactive_hook): Delete declaration.
7670 * interps.c (clear_interpreter_hooks): Remove use of
7671 deprecated_interactive_hook.
7672 * top.c (deprecated_interactive_hook): Delete definition.
7673 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7675 2019-06-18 Tom de Vries <tdevries@suse.de>
7678 * dwarf2read.h (abstract_to_concrete): Change type from
7679 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7680 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7681 * dwarf2read.c (read_variable): Update.
7682 (dwarf2_fetch_die_loc_sect_off): Update.
7684 2019-06-17 Tom de Vries <tdevries@suse.de>
7687 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7688 accessing parent[parent_len - 1].
7690 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7693 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7694 call dtrace_process_dof with NULL dof.
7696 2019-06-16 Tom de Vries <tdevries@suse.de>
7699 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7701 2019-06-16 Tom Tromey <tom@tromey.com>
7703 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7704 (make_all_visible): Use address of member.
7706 2019-06-16 Tom Tromey <tom@tromey.com>
7708 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7709 (tui_free_window, free_content, free_content_elements): Remove
7711 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7713 * tui/tui-regs.c (tui_show_register_group)
7714 (tui_display_registers_from, tui_display_reg_element_at_line):
7715 Remove unnecessary cast.
7717 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7719 * linux-nat.c (normal_mask): Delete.
7720 (_initialize_linux_nat): Don't initialise normal_mask.
7722 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7725 * dwarf-index-write.h (write_psymtabs_to_index): Add
7726 dwz_basename parameter.
7727 * dwarf-index-write.c (write_gdbindex): Move file writing to
7728 write_gdbindex_1. Change return type void.
7729 (assert_file_size): Move up, remove filename parameter.
7730 (write_gdbindex_1): New function.
7731 (write_debug_names): Change return type to void, call
7733 (struct index_wip_file): New struct.
7734 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7735 file logic to index_wip_file. Write index for dwz file if
7737 (save_gdb_index_command): Pass basename of dwz file, if present.
7738 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7739 build-id of dwz file, if present.
7740 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7741 (dwarf2_get_dwz_file): Likewise.
7742 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7743 (dwarf2_get_dwz_file): Likewise.
7745 2019-06-16 Tom Tromey <tom@tromey.com>
7747 * coffread.c (process_coff_symbol): Use xstrdup.
7748 * value.c (create_internalvar): Use xstrdup.
7750 2019-06-16 Tom Tromey <tom@tromey.com>
7752 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7753 * breakpoint.c (stopin_command, stopat_command)
7754 (until_break_command, decode_location_default): Remove unnecessary
7756 * utils.c (subset_compare): Remove unnecessary cast.
7757 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7759 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7761 * infcmd.c (path_command): Remove unnecessary cast.
7762 * coffread.c (decode_type): Remove unnecessary cast.
7763 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7764 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7765 * tui/tui-stack.c (tui_show_locator_content)
7766 (tui_show_frame_info): Remove unnecessary cast.
7767 * tui/tui-win.c (tui_scroll_forward_command)
7768 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7769 (parse_scrolling_args): Remove unnecessary cast.
7770 * tui/tui-data.c (init_win_info, tui_del_window)
7771 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7772 (free_content_elements): Remove unnecessary cast.
7773 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7775 * tui/tui-source.c (tui_set_source_content)
7776 (tui_vertical_source_scroll): Remove unnecessary cast.
7777 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7779 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7780 * tui/tui-regs.c (tui_display_registers_from)
7781 (tui_display_register): Remove unnecessary cast.
7782 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7783 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7784 (make_visible): Remove unnecessary cast.
7785 * tui/tui-winsource.c (tui_erase_source_content)
7786 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7788 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7789 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7790 * stabsread.c (read_type, read_array_type, read_range_type):
7791 Remove unnecessary cast.
7792 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7793 (parse_symbol, parse_type, upgrade_type, parse_external)
7794 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7796 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7798 2019-06-16 Tom Tromey <tom@tromey.com>
7800 * tui/tui-data.c (tui_alloc_generic_win_info)
7801 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7804 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7805 Andrew Burgess <andrew.burgess@embecosm.com>
7807 * f-typeprint.c (f_print_type): Don't return early for not
7808 associated or not allocated types.
7809 (f_type_print_varspec_suffix): Add print_rank parameter and print
7810 ranks of array types in case they dangling.
7811 (f_type_print_base): Add print_rank parameter.
7813 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7815 * NEWS: Mention new MI commands.
7816 * break-catch-throw.c (enum exception_event_kind): Move to
7818 (print_mention_exception_catchpoint): Output text as a single
7820 (catch_exception_command_1): Rename to...
7821 (catch_exception_event): ...this, make non-static, update header
7822 command, and change some parameter types.
7823 (catch_catch_command): Update for changes to
7824 catch_exception_command_1.
7825 (catch_throw_command): Likewise.
7826 (catch_rethrow_command): Likewise.
7827 * breakpoint.c (enum exception_event_kind): Delete.
7828 * breakpoint.h (enum exception_event_kind): Moved here from
7829 break-catch-throw.c.
7830 (catch_exception_event): Declare.
7831 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7832 (mi_cmd_catch_throw): New function.
7833 (mi_cmd_catch_rethrow): New function.
7834 (mi_cmd_catch_catch): New function.
7835 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7836 'catch-catch' entries.
7837 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7838 (mi_cmd_catch_rethrow): Declare.
7839 (mi_cmd_catch_catch): Declare.
7841 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7843 * annotate.c (annotate_source_line): Change return type to void,
7844 update implementation to match.
7845 * annotate.h (annotate_source_line): Change return type to void,
7846 update header comment.
7847 * stack.c (print_frame_info): Don't change what frame information
7848 is printed based on whether annotations are on or not.
7850 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7852 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7853 (annotate_source): Make static.
7854 (annotate_source_line): Moved from source.c and renamed from
7855 identify_source_line. Update the return type.
7856 * annotate.h (annotate_source): Delete declaration.
7857 (annotate_source_line): Declaration moved from source.h, and
7858 renamed from identify_source_line. Return type updated.
7859 * source.c (identify_source_line): Moved to annotate.c and renamed
7860 to annotate_source_line.
7861 (info_line_command): Remove check of annotation_level.
7862 * source.h (identify_source_line): Move declaration to annotate.h
7863 and rename to annotate_source_line.
7864 * stack.c: Add 'annotate.h' include.
7865 (print_frame_info): Remove check of annotation_level before
7866 calling annotate_source_line.
7868 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7870 * source-cache.c (source_cache::get_plain_source_lines): Use
7871 open_source_file_with_line_charpos instead of just
7872 open_source_file, remove call to find_source_lines.
7873 (source_cache::get_source_lines): Likewise.
7874 * source.c (find_source_lines): Make static.
7875 (get_filename_and_charpos): Renamed into...
7876 (open_source_file_with_line_charpos): ..this along with changes to
7877 return a scoped_fd, and some other minor clean ups.
7878 (identify_source_line): Use open_source_file_with_line_charpos.
7879 (search_command_helper): Use open_source_file_with_line_charpos
7880 instead of just open_source_file, remove call to
7882 * source.h (open_source_file_with_line_charpos): Declare new
7884 (find_source_lines): Delete declaration.
7886 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7888 * source.c (get_filename_and_charpos): Remove fullname
7890 (identify_source_line): Update call to get_filename_and_charpos.
7892 2019-06-14 Tom Tromey <tromey@adacore.com>
7895 * ui-style.h (skip_ansi_escape): Update comment.
7896 * ui-file.h (class no_terminal_escape_file): New class.
7897 * ui-file.c (no_terminal_escape_file::write)
7898 (no_terminal_escape_file::puts): New methods.
7899 * cli/cli-logging.c (handle_redirections): Use
7900 no_terminal_escape_file.
7902 2019-06-14 Tom Tromey <tromey@adacore.com>
7904 * NEWS: Move convenience variable news above Python news.
7906 2019-06-14 Tom Tromey <tom@tromey.com>
7908 * gnulib: Move directory to top-level.
7909 * configure.ac: Don't configure gnulib.
7910 * configure: Rebuild.
7911 * common/common-defs.h: Use new path to gnulib.
7912 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
7914 (INCGNU): Look in new gnulib location.
7915 (HFILES_NO_SRCDIR): Remove gnulib files.
7916 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
7917 (generated_files): Remove GNULIB_H.
7918 ($(LIBGNU), all-lib): Remove targets.
7919 (distclean): Don't mention GNULIB_BUILDDIR.
7920 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
7922 2019-06-14 Tom Tromey <tromey@adacore.com>
7924 * symfile.c (add_symbol_file_command): Remove obsolete comment.
7925 Warn if symbol file does not provide any symbols.
7927 2019-06-14 Tom Tromey <tromey@adacore.com>
7929 * source.c (find_and_open_source): Respect basenames_may_differ.
7931 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
7933 * annotate.c (annotate_breakpoints_invalid): Make use of
7934 scoped_restore_terminal_state.
7935 (annotate_frames_invalid): Likewise.
7937 2019-06-14 Tom Tromey <tromey@adacore.com>
7939 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
7940 allow assignment to an internalvar.
7942 2019-06-14 Tom Tromey <tromey@adacore.com>
7944 * ada-lex.l: Allow "_" in attribute names.
7946 2019-06-14 Tom Tromey <tromey@adacore.com>
7949 * regcache.c (registers_changed): Don't call alloca.
7950 * top.c (execute_command): Don't call alloca.
7952 2019-06-13 Pedro Alves <palves@redhat.com>
7954 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
7955 'expression'. When parsing an expression, error out if there's
7956 junk after "unlimited".
7957 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7958 (do_set_command): Adjust calls to is_unlimited_literal.
7960 2019-06-13 Pedro Alves <palves@redhat.com>
7962 * compile/compile.c (make_compile_options_def_group): Add braces
7963 around array_view initializer.
7964 * thread.c (make_thread_apply_all_options_def_group)
7965 (make_thread_apply_all_options_def_group): Likewise.
7967 2019-06-13 Pedro Alves <palves@redhat.com>
7969 * NEWS (New commands): Mention "maint test-options
7970 require-delimiter", "maint test-options unknown-is-error", "maint
7971 test-options unknown-is-operand" and "maint show
7972 test-options-completion-result".
7973 (New command options, command completion): New section.
7974 (Completion improvements): New section.
7975 Mention that you can abbreviate "unlimited".
7977 2019-06-13 Pedro Alves <palves@redhat.com>
7979 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7980 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7981 * unittests/cli-utils-selftests.c (test_parse_flags)
7982 (test_parse_flags_qcs): Delete.
7983 (test_cli_utils): Don't call deleted functions.
7985 2019-06-13 Pedro Alves <palves@redhat.com>
7987 * thread.c: Include "cli/cli-option.h".
7988 (tp_array_compar_ascending): Global.
7989 (tp_array_compar): Delete function.
7990 (tp_array_compar_ascending, tp_array_compar_descending): New
7992 (ascending_option_def, qcs_flag_option_def)
7993 (thr_qcs_flags_option_defs)
7994 (make_thread_apply_all_options_def_group)
7995 (make_thread_apply_options_def_group): New.
7996 (thread_apply_all_command): Use gdb::option::process_options.
7997 (thread_apply_command_completer)
7998 (thread_apply_all_command_completer): New.
7999 (thread_apply_command): Use gdb::option::process_options.
8000 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8001 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8002 to generate help text of "thread apply". Adjust "taas"'s help.
8003 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8004 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8006 2019-06-13 Pedro Alves <palves@redhat.com>
8008 * thread.c (thread_apply_command): Check for invalid TID with
8009 isdigit instead of !isalpha.
8011 2019-06-13 Pedro Alves <palves@redhat.com>
8013 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8014 (validate_flags_qcs): New.
8015 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8016 (validate_flags_qcs): Declare.
8017 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8018 (make_frame_apply_options_def_group): New.
8019 (frame_apply_command_count): Process options with
8020 gdb::option::process_options.
8021 (frame_apply_completer): New.
8022 (frame_apply_level_completer, frame_apply_all_completer)
8023 (frame_apply_completer): New.
8024 (_initialize_stack): Update help of "frame apply", "frame apply
8025 level", "frame apply all" and "faas" to mention supported options
8026 and install command completers.
8027 * stack.h (frame_apply_all_completer): Declare.
8028 * thread.c: Include "stack.h".
8029 (tfaas_command): Add "--".
8030 (_initialize_thread): Update help "tfaas" to mention supported
8031 options and install command completer.
8033 2019-06-13 Pedro Alves <palves@redhat.com>
8035 * completer.c (complete_nested_command_line): New.
8036 (gdb_completion_word_break_characters_throw): Add assertion.
8037 * completer.h (complete_nested_command_line): Declare.
8039 2019-06-13 Pedro Alves <palves@redhat.com>
8041 * stack.c (parse_backtrace_qualifiers): New.
8042 (backtrace_command): Use it.
8043 (backtrace_command_completer): Complete on qualifiers.
8045 2019-06-13 Pedro Alves <palves@redhat.com>
8047 * frame.c: Include "cli/cli-option.h.
8048 (user_set_backtrace_options): New.
8049 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8051 (get_prev_frame): Adjust.
8052 (boolean_option_def, uinteger_option_def)
8053 (set_backtrace_option_defs): New.
8054 (_initialize_frame): Adjust and use
8055 gdb::option::add_setshow_cmds_for_options to install "set
8056 backtrace past-main" and "set backtrace past-entry".
8057 * frame.h: Include "cli/cli-option.h".
8058 (struct frame_print_options): Forward declare.
8059 (print_frame_arguments_all, print_frame_arguments_scalars)
8060 (print_frame_arguments_none): Declare.
8061 (print_entry_values): Delete declaration.
8062 (struct frame_print_options, user_frame_print_options): New.
8063 (struct set_backtrace_options): New.
8064 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8065 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8066 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8067 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8068 (list_args_or_locals): Add frame_print_options parameter.
8069 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8070 * python/py-framefilter.c (enumerate_args): Pass down
8071 USER_FRAME_PRINT_OPTIONS.
8072 * stack.c: Include "cli/cli-option.h".
8073 (print_frame_arguments_all, print_frame_arguments_scalars)
8074 (print_frame_arguments_none): Declare.
8075 (print_raw_frame_arguments, print_entry_values): Delete.
8076 (user_frame_print_options): New.
8077 (boolean_option_def, enum_option_def, frame_print_option_defs):
8079 (struct backtrace_cmd_options): New.
8080 (bt_flag_option_def): New.
8081 (backtrace_command_option_defs): New.
8082 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8083 (print_frame_arg, read_frame_arg, print_frame_args)
8084 (print_frame_info, print_frame): Add frame_print_options parameter
8086 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8087 (backtrace_command_1): Add frame_print_options and
8088 backtrace_cmd_options parameters and use them.
8089 (make_backtrace_options_def_group): New.
8090 (backtrace_command): Process command options with
8091 gdb::option::process_options.
8092 (backtrace_command_completer): New.
8093 (_initialize_stack): Extend "backtrace"'s help to mention
8094 supported options. Install completer for "backtrace".
8095 Install some settings commands with add_setshow_cmds_for_options.
8097 2019-06-13 Pedro Alves <palves@redhat.com>
8099 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8100 and that "set/show print raw frame-arguments" are now deprecated.
8102 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8104 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8105 * stack.c (_initialize_stack): Install "set/show print
8106 raw-frame-arguments", and deprecate "set/show print raw
8108 * valprint.c (_initialize_valprint): Deprecate "set/show print
8111 2019-06-13 Pedro Alves <palves@redhat.com>
8113 * compile/compile.c (struct compile_options): New.
8114 (compile_flag_option_def, compile_command_option_defs)
8115 (make_compile_options_def_group): New.
8116 (compile_file_command): Handle options with
8117 gdb::option::process_options.
8118 (compile_file_command_completer): New function.
8119 (compile_code_command): Handle options with
8120 gdb::option::process_options.
8121 (compile_code_command_completer): New function.
8122 (_initialize_compiler): Install completers for "compile code" and
8123 "compile file". Mention available options in "compile code" and
8124 "compile code"'s help.
8125 * completer.c (advance_to_completion_word): New, factored out from
8127 (advance_to_expression_complete_word_point): ... this.
8128 (advance_to_filename_complete_word_point): New.
8129 * completer.h (advance_to_filename_complete_word_point): New
8132 2019-06-13 Pedro Alves <palves@redhat.com>
8134 * compile/compile.c: Include "cli/cli-option.h".
8135 (compile_print_value): Scope data pointer is now a
8136 value_print_options pointer; adjust.
8137 (compile_print_command): Process options. Scope data pointer is
8138 now a value_print_options pointer; adjust.
8139 (_initialize_compile): Update "compile print"'s help to include
8140 supported options. Install a completer for "compile print".
8141 * cp-valprint.c (show_vtblprint, show_objectprint)
8142 (show_static_field_print): Delete.
8143 (_initialize_cp_valprint): Don't install "set print
8144 static-members", "set print vtbl", "set print object" here.
8145 * printcmd.c: Include "cli/cli-option.h" and
8146 "common/gdb_optional.h".
8147 (print_command_parse_format): Rework to fill in a
8148 value_print_options instead of a format_data.
8149 (print_value): Change parameter type from format_data pointer to
8150 value_print_options reference. Adjust.
8151 (print_command_1): Process options. Adjust to pass down a
8152 value_print_options.
8153 (print_command_completer): New.
8154 (_initialize_printcmd): Install print_command_completer as
8155 handle_brkchars completer for the "print" command. Update
8156 "print"'s help to include supported options.
8157 * valprint.c: Include "cli/cli-option.h".
8158 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8159 here from cp-valprint.c.
8160 (boolean_option_def, uinteger_option_def)
8161 (value_print_option_defs, make_value_print_options_def_group):
8162 New. Use gdb::option::add_setshow_cmds_for_options to install
8163 "set print elements", "set print null-stop", "set print repeats",
8164 "set print pretty", "set print union", "set print array", "set
8165 print address", "set print symbol", "set print array-indexes".
8166 * valprint.h: Include <string> and "cli/cli-option.h".
8167 (make_value_print_options_def_group): Declare.
8168 (print_value): Change parameter type from format_data pointer to
8169 value_print_options reference.
8170 (print_command_completer): Declare.
8172 2019-06-13 Pedro Alves <palves@redhat.com>
8174 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8175 (COMMON_SFILES): Add maint-test-settings.c.
8176 * cli/cli-decode.c (boolean_enums): New global, factored out from
8178 (add_setshow_boolean_cmd): ... here.
8179 * cli/cli-decode.h (boolean_enums): Declare.
8180 * cli/cli-option.c: New file.
8181 * cli/cli-option.h: New file.
8182 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8183 factored out from ...
8184 (parse_cli_boolean_value(const char *)): ... this.
8185 (is_unlimited_literal): Change parameter type to pointer to
8186 pointer. Adjust and advance ARG pointer.
8187 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8188 (parse_cli_var_enum): New, factored out from ...
8189 (do_set_command): ... this. Adjust.
8190 * cli/cli-setshow.h (parse_cli_boolean_value)
8191 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8192 (parse_cli_var_enum): Declare.
8193 * cli/cli-utils.c: Include "cli/cli-option.h".
8194 (get_ulongest): New.
8195 * cli/cli-utils.h (get_ulongest): Declare.
8196 (check_for_argument): New overloads.
8197 * maint-test-options.c: New file.
8199 2019-06-13 Pedro Alves <palves@redhat.com>
8201 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8202 parse a range if "-" is at the end of the string.
8204 2019-06-13 Pedro Alves <palves@redhat.com>
8206 * cli/cli-setshow.c (parse_auto_binary_operation)
8207 (parse_cli_boolean_value): Don't allow "o".
8209 2019-06-13 Pedro Alves <palves@redhat.com>
8211 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8212 * NEWS: Mention maint test-settings KIND.
8213 * maint-test-settings.c: New file.
8215 2019-06-13 Pedro Alves <palves@redhat.com>
8217 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8219 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8222 2019-06-13 Pedro Alves <palves@redhat.com>
8224 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8227 2019-06-13 Pedro Alves <palves@redhat.com>
8229 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8231 2019-06-13 Pedro Alves <palves@redhat.com>
8233 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8234 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8236 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8237 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8239 (check_for_argument): Skip spaces after argument.
8241 2019-06-13 Pedro Alves <palves@redhat.com>
8243 * thread.c (thread_apply_command): Adjust TID parsing.
8244 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8245 detected before end of string.
8246 (tid_is_in_list): Error out if LIST is invalid.
8248 2019-06-13 Pedro Alves <palves@redhat.com>
8250 * completer.c (complete_line_internal_1): Rewind completion word
8252 (completion_tracker::advance_custom_word_point_by): Change
8253 parameter type to int.
8254 * completer.h (completion_tracker::advance_custom_word_point_by):
8257 2019-06-13 Pedro Alves <palves@redhat.com>
8259 * completer.c (advance_to_completion_word): Handle delimiters.
8261 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8263 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8265 2019-06-11 Tom Tromey <tom@tromey.com>
8267 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8268 (xmalloc_failed): Move to alloc.c.
8269 * alloc.c: New file.
8270 * Makefile.in (COMMON_SFILES): Add alloc.c.
8272 2019-06-11 Tom Tromey <tom@tromey.com>
8274 * nat/linux-waitpid.c: Don't include server.h.
8275 (linux_debug): Remove.
8276 (my_waitpid): Update.
8278 2019-06-11 Tom Tromey <tromey@adacore.com>
8280 * infcall.c (_initialize_infcall): Remove trailing newline from
8282 * user-regs.c (_initialize_user_regs): Remove trailing newline
8284 * typeprint.c (_initialize_typeprint): Remove trailing newline
8286 * reverse.c (_initialize_reverse): Remove trailing newlines from
8288 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8290 * language.c (add_set_language_command): Remove trailing newline
8292 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8294 * disasm.c (_initialize_disasm): Remove trailing newline from
8296 * top.c (init_main): Remove trailing newline from help.
8297 * interps.c (_initialize_interpreter): Remove trailing newline
8299 * btrace.c (_initialize_btrace): Remove trailing newlines from
8301 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8303 * python/python.c (_initialize_python): Remove trailing newline
8305 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8307 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8308 from help. Reformat some text.
8309 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8311 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8314 2019-06-11 Tom Tromey <tromey@adacore.com>
8316 * darwin-nat.c (darwin_decode_exception_message)
8317 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8319 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8321 * valops.c (value_slice): Check for not allocated or not
8324 2019-06-10 Tom de Vries <tdevries@suse.de>
8327 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8328 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8331 2019-06-10 Tom de Vries <tdevries@suse.de>
8334 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8335 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8337 2019-06-10 Tom de Vries <tdevries@suse.de>
8340 * symtab.c (struct demangled_name_entry): Add language field.
8341 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8342 static minimal symbol". Set and use language field.
8344 2019-06-10 Tom Tromey <tromey@adacore.com>
8346 * ada-lang.c (_initialize_ada_language): Update help text.
8348 2019-06-10 Tom Tromey <tromey@adacore.com>
8350 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8352 * guile/guile.c (handle_boot_error): Don't end warning with a
8354 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8355 warning with a newline.
8356 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8358 (s12z_frame_cache): Likewise.
8359 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8361 * solib-svr4.c (disable_probes_interface): Don't end warning with
8363 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8365 * python/python.c (do_finish_initialization): Don't end warning
8368 2019-06-10 Tom Tromey <tom@tromey.com>
8370 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8371 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8374 2019-06-10 Tom Tromey <tromey@adacore.com>
8376 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8378 (elf_new_init): Don't call stabsread_new_init.
8379 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8380 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8381 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8383 2019-06-10 Tom de Vries <tdevries@suse.de>
8387 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8389 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8391 * source.c (find_and_open_source): Also rewrite relative file
8394 2019-04-26 Amos Bird <amosbird@gmail.com>
8396 * annotate.c (annotate_thread_exited): Add "thread-exited"
8399 2019-06-06 Tom Tromey <tromey@adacore.com>
8401 * maint.h (class scoped_command_stats): Use
8402 DISABLE_COPY_AND_ASSIGN.
8403 <print_time>: New method.
8404 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8406 (scoped_command_stats::print_time): New method.
8408 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8410 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8411 instructions of lengths 6 or 8 bytes.
8413 2019-06-04 Pedro Alves <palves@redhat.com>
8415 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8417 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8418 * breakpoint.c (condition_completer): Likewise.
8419 * cli/cli-dump.c (scan_expression): Likewise.
8420 * common/filestuff.c (mkdir_recursive): Likewise.
8421 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8422 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8423 (gdb_abspath): Likewise.
8424 * compile/compile-cplus-types.c
8425 (compile_cplus_instance::decl_name): Likewise.
8426 * completer.c (complete_explicit_location):
8427 (signal_completer, reg_or_group_completer_1): Likewise.
8428 * cp-support.c (cp_remove_params_if_any): Likewise.
8429 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8430 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8431 * infcmd.c (strip_bg_char): Likewise.
8432 * linespec.c (copy_token_string): Likewise.
8433 * mi/mi-main.c (output_cores): Likewise.
8434 * psymtab.c (psymtab_search_name):
8435 * symfile.c (test_set_ext_lang_command): Likewise.
8436 * target.c (target_fileio_read_stralloc): Likewise.
8437 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8438 * value.c (complete_internalvar): Likewise.
8440 2019-06-04 Christian Biesinger <cbiesinger@google.com>
8442 Add objfile property to gdb.Type.
8443 * NEWS: Mention Python API addition.
8444 * python/py-type.c (typy_get_objfile): New method.
8446 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8448 * NEWS: Mention the new set|show style [title|highlight].
8449 Mention changes to "show style", "help" and "apropos".
8451 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8453 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8454 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8455 instead of print_help_for_command.
8456 (print_doc_of_command): New function.
8457 (help_list): Add 'apropos -v word' suggestion.
8458 (print_help_for_command): Style the command name using title style.
8459 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8460 (_initialize_cli_cmds): Describe -v in apropos_command help.
8462 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8464 * cli/cli-style.h (cli_style_option): Add name in constructor,
8465 add m_name class member, add constructor with intensity,
8466 add name class function.
8467 (cli_style_option::add_setshow_commands): Remove name argument.
8468 (highlight_style, title_style): New styles.
8469 * cli/cli-style.c (do_show): New function that shows a style
8470 characteristic styling the style name with itself.
8471 (set_style_name): New function.
8472 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8473 Update all callers according to the changes in cli/cli-style.h.
8474 * utils.h (fputs_highlighted): New function.
8475 * utils.c (fputs_highlighted): Likewise.
8477 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8479 * NEWS: Mention new pipe command and new convenience variables.
8481 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8483 * cli/cli-cmds.c (pipe_command): New function.
8484 (_initialize_cli_cmds): Call add_com for pipe_command.
8485 Define | as an alias for pipe.
8486 (exit_status_set_internal_vars): New function.
8487 (shell_escape): Call exit_status_set_internal_vars.
8488 cli/cli-decode.c (find_command_name_length): Recognize | as
8489 a single character command.
8491 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8493 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8494 top.c (execute_command_to_ui_file): New function, mostly a copy
8495 of execute_command_to_string.
8496 (execute_command_to_string): Implement by calling
8497 execute_command_to_ui_file.
8499 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8501 * top.h (saved_command_line): Remove declaration.
8502 * top.c (previous_saved_command_line, previous_repeat_arguments):
8504 (saved_command_line): Make static, define together with other
8506 (dont_repeat): Clear repeat_arguments.
8507 (repeat_previous, get_saved_command_line, save_command_line):
8509 (gdb_init): Initialize saved_command_line
8510 and previous_saved_command_line.
8511 * main.c (captured_main_1): Remove saved_command_line initialization.
8512 * event-top.c (handle_line_of_input): Update to use
8513 the new 'repeat' related functions instead of direct access to
8515 * command.h (repeat_previous, get_saved_command_line,
8516 save_command_line): New declarations.
8517 (dont_repeat): Add comment.
8519 2019-05-30 Tom Tromey <tromey@adacore.com>
8521 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8523 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8525 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8528 * completer.c (complete): Initialize variable word.
8530 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8532 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8533 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8534 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8535 'body' is NULL to the outter 'if', protecting the '!is_define'
8538 2019-05-29 Tom Tromey <tromey@adacore.com>
8540 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8541 (dwarf_unknown): New function.
8542 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8543 (dwarf_type_encoding_name): Use dwarf_unknown.
8545 2019-05-29 Tom Tromey <tromey@adacore.com>
8548 * cp-valprint.c (cp_print_value_fields): Call
8549 cp_print_static_field inside "try".
8551 2019-05-29 Tom Tromey <tromey@adacore.com>
8553 * inflow.c (struct terminal_info): Add default operator=.
8554 * configure: Rebuild.
8555 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8556 -Wdeprecated-copy-dtor, -Wredundant-move.
8558 2019-05-29 Tom Tromey <tromey@adacore.com>
8561 * infcmd.c (print_return_value_1): Handle finish_print
8563 (show_print_finish): New function.
8564 (_initialize_infcmd): Add "set/show print finish" commands.
8565 * valprint.c (user_print_options): Initialize new member.
8566 * valprint.h (struct value_print_options) <finish_print>: New
8569 2019-05-28 Tom Tromey <tromey@adacore.com>
8571 * ada-lang.c (ada_remove_Xbn_suffix)
8572 (find_old_style_renaming_symbol)
8573 (parse_old_style_renaming): Remove.
8574 (ada_find_renaming_symbol): Don't call
8575 find_old_style_renaming_symbol.
8576 (ada_is_renaming_symbol): Rename from
8577 ada_find_renaming_symbol. Remove "block" parameter. Return
8579 (ada_read_var_value): Update and simplify.
8580 * ada-exp.y (write_var_or_type): Remove old code.
8582 2019-05-28 Alan Hayward <alan.hayward@arm.com>
8585 * event-top.c: Remove include comment.
8586 * inflow.c (class scoped_ignore_sigttou): Move from here...
8587 * inflow.h (class scoped_ignore_sigttou): ...to here.
8588 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8589 * top.c: Remove include comment.
8591 2019-05-27 Tom Tromey <tom@tromey.com>
8595 2019-05-22 Tom Tromey <tromey@adacore.com>
8597 * target.c (target_follow_exec): Constify parameter.
8598 * target-delegates.c: Rebuild.
8599 * remote.c (remote_target::follow_exec): Constify parameter.
8600 * infrun.c (follow_exec): Constify parameter.
8601 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8602 (target_follow_exec): Likewise.
8604 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8606 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8607 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8609 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8611 * NEWS: Add debugredirect and testsuite sections.
8613 2019-05-22 Simon Cook <simon.cook@embecosm.com>
8615 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8616 target descriptions using exclusively floating point register name
8619 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8622 * f-lang.c (build_fortran_types): Handle the case where
8623 gdbarch_floatformat_for_type returns a nullptr.
8625 2019-05-21 Tom de Vries <tdevries@suse.de>
8628 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8630 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8633 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8635 * i386-tdep.c (i386_floatformat_for_type): Use
8636 floatformats_ia64_quad for the 16-byte floating point component
8637 within a fortran 32-byte complex number.
8639 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8641 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8642 delete default constructor.
8643 (find_partial_die): Update to return const struct.
8644 (partial_die_parent_scope): Move variable declaration into scope
8645 of its use and change its type to auto.
8646 (guess_partial_die_structure_name): Likewise.
8647 (partial_die_info::fixup): Likewise.
8649 2019-05-17 Tom Tromey <tromey@adacore.com>
8651 * source.c (find_and_open_source): Remove cast.
8653 2019-05-17 Tom Tromey <tromey@adacore.com>
8655 * annotate.c (annotate_source): Make "filename" const.
8656 * annotate.h (annotate_source): Use const.
8658 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8660 * disasm.c (set_disassembler_options): Send errors to stderr.
8662 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8664 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8665 (cli_interp_base::set_logging): Check debug_redirect.
8666 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8667 * cli/cli-logging.c (debug_redirect): Add static variable.
8668 (pop_output_files): Add default param.
8669 (handle_redirections): Print debug setting.
8670 (show_logging_command): Likewise.
8671 (_initialize_cli_logging): Add debugredirect command.
8672 * interps.c (current_interp_set_logging): Add debug_redirect
8674 * interps.h (set_logging): Add debug_redirect parameter.
8675 (current_interp_set_logging): Likewise.
8676 * mi/mi-common.h: Likewise.
8677 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8679 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8680 Tom Tromey <tromey@adacore.com>
8682 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8684 * cli/cli-interp.h (make_logging_output): Remove declaration.
8685 * cli/cli-logging.c (make_logging_output): Remove function.
8686 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8688 * ui-file.c (tee_file::tee_file): Remove bools.
8689 (tee_file::~tee_file): Remove deletes.
8690 * ui-file.h (tee_file): Remove bools.
8692 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8694 * mi/mi-cmds.h (mi_cmd_complete): New function.
8695 * mi/mi-main.c (mi_cmd_complete): Likewise.
8696 * mi/mi-cmds.c: Define new MI command -complete.
8697 * NEWS: Mention new -complete command.
8699 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8701 * completer.h (complete): New function.
8702 * completer.c (complete): Likewise.
8703 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8704 function defined in completer.h.
8706 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8708 * MAINTAINERS (Write After Approval): Add myself.
8710 2019-05-17 Tom de Vries <tdevries@suse.de>
8713 * dwarf2read.c (struct cu_partial_die_info): New struct.
8714 (find_partial_die): Return cu_partial_die_info.
8715 (partial_die_parent_scope, guess_partial_die_structure_name)
8716 (partial_die_info::fixup): Handle new return type of find_partial_die.
8718 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8720 PR breakpoints/24541
8721 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8722 "std::string", simplifying the algorithm.
8724 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8726 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8727 (stap_static_probe_ops::get_probes): Likewise.
8729 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8731 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8732 '-')" and "else if".
8733 (stap_parse_single_operand): Join checks for
8734 "gdbarch_stap_parse_special_token_p" and
8735 "gdbarch_stap_parse_special_token" in the same "if" statement.
8736 Invert check when verifying for operation on register
8739 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8741 * stap-probe.c (stap_get_opcode): Update comment.
8742 (stap_get_expected_argument_type): Likewise.
8743 (handle_stap_probe): Likewise.
8745 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8747 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8748 return type to 'bool'. Adjust comment. Use 'bool' when
8750 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8751 * stap-probe.c (stap_parse_argument_1): Likewise.
8752 (stap_is_operator): Likewise.
8753 (stap_is_generic_prefix): Likewise.
8754 (stap_is_register_prefix): Likewise.
8755 (stap_is_register_indirection_prefix): Likewise.
8756 (stap_is_integer_prefix): Likewise.
8757 (stap_generic_check_suffix): Likewise.
8758 (stap_check_integer_suffix): Likewise.
8759 (stap_check_register_suffix): Likewise.
8760 (stap_check_register_indirection_suffix): Likewise.
8761 (stap_parse_register_operand): Likewise.
8762 (stap_parse_single_operand): Likewise.
8763 (stap_parse_argument_1): Likewise.
8764 (stap_probe::get_argument_count): Likewise.
8765 (stap_is_operator): Likewise.
8767 2019-05-16 Tom Tromey <tromey@adacore.com>
8769 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8772 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
8774 * linux-thread-db.c (try_thread_db_load_1): Change return type
8776 (try_thread_db_load): Likewise.
8777 (try_thread_db_load_from_pdir_1): Likewise.
8778 (try_thread_db_load_from_pdir): Likewise.
8779 (try_thread_db_load_from_sdir): Likewise.
8780 (try_thread_db_load_from_dir): Likewise.
8781 (thread_db_load_search): Likewise.
8782 (has_libpthread): Likewise.
8783 (thread_db_load): Likewise.
8785 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8787 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8788 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8789 NULL, and complain/return if that's the case.
8791 2019-05-15 John Darrington <john@darrington.wattle.id.au>
8793 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8794 (advance, posn, abstract_read_memory): New functions.
8795 [struct mem_read_abstraction]: New struct.
8796 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8798 2019-05-14 Tom Tromey <tromey@adacore.com>
8800 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8801 value is not lval_memory.
8803 2019-05-14 Tom Tromey <tromey@adacore.com>
8805 * solib.c (info_sharedlibrary_command): Style the file name.
8807 2019-05-14 Alan Hayward <alan.hayward@arm.com>
8809 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8810 (aarch64_vnv_type): Likewise.
8811 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8812 * common/tdesc.c: Likewise.
8813 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8814 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8815 * features/aarch64-fpu.xml: Add ieee half view.
8816 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8817 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8818 * gdbtypes.h (struct builtin_type): Likewise.
8819 (struct objfile_type): Likewise.
8821 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
8823 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8825 * location.h (string_to_event_location): Likewise.
8827 2019-05-11 Joel Brobecker <brobecker@adacore.com>
8831 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8833 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8834 New variable declaration.
8835 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8837 (print_one_breakpoint): Use ui_out::test_flags and new global
8838 variable to compute use_fixed_output.
8839 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8841 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8842 (mi_multi_location_breakpoint_output_fixed): Remove.
8843 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8845 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8846 fix_multi_location_breakpoint_output flag if version >= 3.
8847 * ui-out.h (enum ui_out_flag)
8848 <fix_multi_location_breakpoint_output>: New enumerator.
8850 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8852 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8854 2019-05-10 Tom Tromey <tromey@adacore.com>
8856 * ada-lang.c (catch_ada_completer): New function.
8857 (_initialize_ada_language): Use it.
8859 2019-05-10 Tom Tromey <tromey@adacore.com>
8861 * thread.c (print_thread_info): Make "requested_threads" const.
8862 * gdbthread.h (print_thread_info): Make "requested_threads"
8864 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8865 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8867 2019-05-08 Tom Tromey <tom@tromey.com>
8869 * gdbtypes.c (objfile_type_data): Change type.
8870 (objfile_type, _initialize_gdbtypes): Update.
8872 2019-05-08 Tom Tromey <tom@tromey.com>
8874 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8875 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8876 (_initialize_dwarf2_frame): Update.
8878 2019-05-08 Tom Tromey <tom@tromey.com>
8880 * objc-lang.c (objc_objfile_data): Change type.
8881 (find_methods): Update.
8882 (_initialize_objc_lang): Remove.
8884 2019-05-08 Tom Tromey <tom@tromey.com>
8886 * stabsread.c (rs6000_builtin_type_data): Change type.
8887 (rs6000_builtin_type, _initialize_stabsread): Update.
8889 2019-05-08 Tom Tromey <tom@tromey.com>
8891 * mips-tdep.c (mips_pdr_data): Remove.
8892 (_initialize_mips_tdep): Update.
8894 2019-05-08 Tom Tromey <tom@tromey.com>
8896 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
8897 (hppa_init_objfile_priv_data, read_unwind_info)
8898 (find_unwind_entry, _initialize_hppa_tdep): Update.
8900 2019-05-08 Tom Tromey <tom@tromey.com>
8902 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
8903 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
8905 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
8907 2019-05-08 Tom Tromey <tom@tromey.com>
8909 * mdebugread.c (basic_type_data): Change type.
8910 (basic_type, _initialize_mdebugread): Update.
8912 2019-05-08 Tom Tromey <tom@tromey.com>
8914 * common/gdb_unique_ptr.h (struct noop_deleter): New.
8916 2019-05-08 Tom Tromey <tom@tromey.com>
8918 * nto-tdep.c (nto_inferior_data_reg): Change type.
8919 (nto_inferior_data): Update.
8920 (nto_inferior_data_cleanup, nto_new_inferior_data)
8921 (_initialize_nto_tdep): Remove.
8922 * nto-tdep.h (struct nto_inferior_data): Add initializers.
8924 2019-05-08 Tom Tromey <tom@tromey.com>
8926 * ada-lang.c (struct ada_inferior_data): Add initializers.
8927 (ada_inferior_data): Change type.
8928 (ada_inferior_data_cleanup): Remove.
8929 (get_ada_inferior_data, ada_inferior_exit)
8930 (struct ada_pspace_data): Add initializers, destructor.
8931 (ada_pspace_data_handle): Change type.
8932 (get_ada_pspace_data): Update.
8933 (ada_pspace_data_cleanup): Remove.
8935 2019-05-08 Tom Tromey <tom@tromey.com>
8937 * coffread.c (struct coff_symfile_info): Add initializers.
8938 (coff_objfile_data_key): Move lower. Change type.
8939 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
8941 (coff_free_info): Remove.
8943 2019-05-08 Tom Tromey <tom@tromey.com>
8945 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
8946 (fbsd_pspace_data_handle): Move lower. Change type.
8947 (get_fbsd_pspace_data): Update.
8948 (fbsd_pspace_data_cleanup): Remove.
8949 (_initialize_fbsd_tdep): Update.
8951 2019-05-08 Tom Tromey <tom@tromey.com>
8953 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
8954 (get_ada_tasks_pspace_data): Update.
8955 (ada_tasks_pspace_data_cleanup): Remove.
8956 (_initialize_tasks): Update.
8957 (ada_tasks_inferior_data_handle): Change type.
8958 (get_ada_tasks_inferior_data): Update.
8959 (ada_tasks_inferior_data_cleanup): Remove.
8960 (struct ada_tasks_pspace_data): Add initializers.
8962 2019-05-08 Tom Tromey <tom@tromey.com>
8964 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
8965 * symfile-debug.c (debug_sym_get_probes): Change type.
8966 * stap-probe.c (handle_stap_probe):
8967 (stap_static_probe_ops::get_probes): Change type.
8968 * probe.h (class static_probe_ops) <get_probes>: Change type.
8969 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
8970 (parse_probes_in_pspace): Update.
8971 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
8973 (any_static_probe_ops::get_probes): Change type.
8974 * elfread.c (elfread_data): New typedef.
8975 (probe_key): Change type.
8976 (elf_get_probes): Likewise. Update.
8977 (probe_key_free): Remove.
8978 (_initialize_elfread): Update.
8979 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8981 (dtrace_process_dof_probe, dtrace_process_dof)
8982 (dtrace_static_probe_ops::get_probe): Change type.
8984 2019-05-08 Tom Tromey <tom@tromey.com>
8986 * xcoffread.c (struct xcoff_symfile_info): Rename from
8987 coff_symfile_info. Add initializers.
8988 (xcoff_objfile_data_key): Move lower. Change type.
8989 (XCOFF_DATA): Rewrite.
8990 (xcoff_free_info): Remove.
8991 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
8992 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
8993 (xcoff_initial_scan): Update.
8995 2019-05-08 Tom Tromey <tom@tromey.com>
8997 * solib-svr4.c (struct svr4_info): Add initializers and
8999 <probes_table>: Now an htab_up.
9000 (solib_svr4_pspace_data): Change type.
9001 (free_probes_table): Simplify.
9002 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9003 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9004 (probes_table_remove_objfile_probes, register_solib_event_probe)
9005 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9006 (_initialize_svr4_solib): Update.
9008 2019-05-08 Tom Tromey <tom@tromey.com>
9010 * remote.c (remote_pspace_data): Change type.
9011 (remote_pspace_data_cleanup): Remove.
9012 (get_remote_exec_file, set_pspace_remote_exec_file)
9013 (_initialize_remote): Update.
9015 2019-05-08 Tom Tromey <tom@tromey.com>
9017 * breakpoint.c (breakpoint_objfile_key): Change type.
9018 (get_breakpoint_objfile_data): Update.
9019 (free_breakpoint_objfile_data): Remove.
9020 (_initialize_breakpoint): Update.
9022 2019-05-08 Tom Tromey <tom@tromey.com>
9024 * linux-tdep.c (struct linux_info): Add initializers.
9025 (linux_inferior_data): Move. Change type.
9026 (invalidate_linux_cache_inf): Update.
9027 (linux_inferior_data_cleanup): Remove.
9028 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9030 2019-05-08 Tom Tromey <tom@tromey.com>
9032 * auxv.c (auxv_inferior_data): Move. Change type.
9033 (auxv_inferior_data_cleanup): Remove.
9034 (invalidate_auxv_cache_inf): Rewrite.
9035 (get_auxv_inferior_data, _initialize_auxv): Update.
9037 2019-05-08 Tom Tromey <tom@tromey.com>
9039 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9040 (symfile_debug_objfile_data_key): Change type.
9041 (symfile_debug_installed, debug_qf_has_symbols)
9042 (debug_qf_find_last_source_symtab)
9043 (debug_qf_forget_cached_source_info)
9044 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9045 (debug_qf_print_stats, debug_qf_dump)
9046 (debug_qf_expand_symtabs_for_function)
9047 (debug_qf_expand_all_symtabs)
9048 (debug_qf_expand_symtabs_with_fullname)
9049 (debug_qf_map_matching_symbols)
9050 (debug_qf_expand_symtabs_matching)
9051 (debug_qf_find_pc_sect_compunit_symtab)
9052 (debug_qf_map_symbol_filenames)
9053 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9054 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9055 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9056 (debug_sym_read_linetable, debug_sym_relocate): Update.
9057 (symfile_debug_free_objfile): Remove.
9058 (install_symfile_debug_logging, _initialize_symfile_debug):
9061 2019-05-08 Tom Tromey <tom@tromey.com>
9063 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9064 allocate_on_obstack.
9065 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9066 (get_dwarf2_per_objfile): Update.
9067 (set_dwarf2_per_objfile): Remove.
9068 (dwarf2_has_info, dwarf2_get_section_info): Update.
9069 (dwarf2_free_objfile): Remove.
9070 (_initialize_dwarf2_read): Update.
9072 2019-05-08 Tom Tromey <tom@tromey.com>
9074 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9076 <unsupported_script_warning_printed,
9077 script_not_found_warning_printed>: Now bool.
9078 (auto_load_pspace_data): Change type.
9079 (~auto_load_pspace_info): Rename from
9080 auto_load_pspace_data_cleanup.
9081 (get_auto_load_pspace_data, init_loaded_scripts_info)
9082 (clear_section_scripts, maybe_print_unsupported_script_warning)
9083 (maybe_print_script_not_found_warning, _initialize_auto_load):
9086 2019-05-08 Tom Tromey <tom@tromey.com>
9088 * objfiles.c (objfile_pspace_info): Add destructor and
9090 (objfiles_pspace_data): Change type.
9091 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9092 (get_objfile_pspace_data): Update.
9093 (objfiles_bfd_data): Change type.
9094 (get_objfile_bfd_data): Update.
9095 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9097 2019-05-08 Tom Tromey <tom@tromey.com>
9099 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9101 (get_catch_syscall_inferior_data): Update.
9102 (catch_syscall_inferior_data_cleanup): Remove.
9103 (_initialize_break_catch_syscall): Update.
9105 2019-05-08 Tom Tromey <tom@tromey.com>
9107 * inflow.c (struct terminal_info): Add destructor and
9109 (inflow_inferior_data): Change type.
9110 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9111 (get_inflow_inferior_data, inflow_inferior_exit)
9112 (swap_terminal_info, _initialize_inflow): Update.
9114 2019-05-08 Tom Tromey <tom@tromey.com>
9116 * target-dcache.c (target_dcache_cleanup): Remove.
9117 (target_dcache_aspace_key): Change type.
9118 (target_dcache_init_p, target_dcache_invalidate)
9119 (target_dcache_get, target_dcache_get_or_init)
9120 (_initialize_target_dcache): Update.
9121 * dcache.h (struct dcache_deleter): New.
9123 2019-05-08 Tom Tromey <tom@tromey.com>
9125 * symtab.c (struct symbol_cache): Add destructor and
9127 (symbol_cache_key): Move. Change type.
9128 (make_symbol_cache, free_symbol_cache): Remove.
9129 (get_symbol_cache): Update.
9130 (symbol_cache_cleanup): Remove.
9131 (ALL_PSPACES, symbol_cache_flush)
9132 (maintenance_print_symbol_cache)
9133 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9136 2019-05-08 Tom Tromey <tom@tromey.com>
9138 * symtab.c (struct main_info): Add destructor and initializers.
9139 (main_progspace_key): Move. Change type.
9140 (get_main_info): Update.
9141 (main_info_cleanup): Remove.
9142 (_initialize_symtab): Update.
9144 2019-05-08 Tom Tromey <tom@tromey.com>
9146 * registry.h (DECLARE_REGISTRY): Define the _key class.
9148 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9150 * NEWS: Merge two 'New commands' sections.
9152 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9154 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9155 parameter and use Ada language definition instead.
9156 (ada_val_print_ptr): Remove unused language parameter.
9157 (ada_val_print_num): Remove language parameter and use Ada language
9159 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9161 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9162 parameter and use Ada language definition instead.
9163 (ada_val_print_1): Update all ada_val_print_xxx calls.
9164 Remove language parameter.
9165 (ada_val_print): Update ada_val_print_1 call.
9167 2019-05-08 Tom Tromey <tromey@adacore.com>
9169 * remote.c (remote_hw_watchpoint_limit)
9170 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9173 2019-05-08 Tom Tromey <tromey@adacore.com>
9175 * maint.c (_initialize_maint_cmds): Move initialization code to
9177 (watchdog, show_watchdog): Move to remote.c.
9178 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9180 (_initialize_remote): Move initialization code from maint.c.
9181 * defs.h (watchdog): Don't declare.
9183 2019-05-08 Tom Tromey <tromey@adacore.com>
9185 * tui/tui-interp.c: Include main.h.
9186 * interps.c: Include main.h.
9187 * main.h (interpreter_p): Declare.
9188 * defs.h (interpreter_p): Don't declare.
9190 2019-05-08 Tom Tromey <tromey@adacore.com>
9192 * dwarf2loc.c: Include dwarf2read.h.
9193 * defs.h (read_unsigned_leb128): Don't declare.
9194 * dwarf2read.h (read_unsigned_leb128): Declare.
9196 2019-05-08 Tom Tromey <tromey@adacore.com>
9198 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9201 2019-05-08 Tom Tromey <tromey@adacore.com>
9203 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9204 when no wrap column is set.
9206 2019-05-08 Tom Tromey <tromey@adacore.com>
9208 * c-lang.c (c_get_string): Handle non-C-style arrays.
9210 2019-05-08 Tom Tromey <tromey@adacore.com>
9212 * typeprint.c (print_offset_data::update): Print the bit offset,
9213 not the number of bits remaining.
9215 2019-05-08 Tom Tromey <tromey@adacore.com>
9217 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9218 padding at end of comment.
9220 2019-05-08 Tom Tromey <tromey@adacore.com>
9222 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9225 2019-05-06 Tom Tromey <tom@tromey.com>
9227 * common/scoped_mmap.c: Include common-defs.h.
9228 * common/scoped_mmap.h: Don't include config.h.
9230 2019-05-04 Tom Tromey <tom@tromey.com>
9232 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9233 (struct aarch64_call_info): Add initializers.
9234 <si>: Now a std::vector.
9235 (pass_on_stack, aarch64_push_dummy_call): Update.
9237 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9238 Tom Tromey <tom@tromey.com>
9240 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9241 (ppc_threads): Now a std::vector. Now static.
9242 (hwdebug_find_thread_points_by_tid)
9243 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9246 2019-05-04 Tom Tromey <tom@tromey.com>
9248 * arc-tdep.c (arc_tdesc_init): Return bool.
9250 2019-05-04 Tom Tromey <tom@tromey.com>
9252 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9253 Use gdb_assert_not_reached.
9255 2019-05-04 Tom Tromey <tom@tromey.com>
9257 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9260 2019-05-04 Tom Tromey <tom@tromey.com>
9262 * arc-tdep.c (arc_tdesc_init): Use bool.
9264 2019-05-04 Tom Tromey <tom@tromey.com>
9266 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9268 2019-05-04 Tom Tromey <tom@tromey.com>
9270 * cli/cli-cmds.c (valid_command_p): Return bool.
9272 2019-05-04 Tom Tromey <tom@tromey.com>
9274 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9275 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9277 2019-05-04 Raul Tambre <raul@tambre.ee>
9279 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9280 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9281 operator for comparison.
9283 2019-05-04 Tom Tromey <tom@tromey.com>
9285 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9286 (lookup_partial_symbol, print_partial_symbols)
9287 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9288 (psymbol_compare): Update.
9289 (add_psymbol_to_bcache): Clear the entire psymbol.
9290 (maintenance_check_psymtabs): Update.
9291 * psympriv.h (struct partial_symbol): Don't derive from
9292 general_symbol_info.
9293 <obj_section, unrelocated_address, address,
9294 set_unrelocated_address>: Update.
9295 <ginfo>: New member.
9296 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9297 (debug_names::write_psymbols): Update.
9299 2019-05-04 Tom de Vries <tdevries@suse.de>
9301 * contrib/cc-with-tweaks.sh: Support -n arg.
9303 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9305 * corelow.c (core_target::detach): Ensure frame cache and
9306 register caches are cleared.
9307 inferior.c (exit_inferior_1): Likewise.
9309 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9310 Tom Tromey <tom@tromey.com>
9312 * dictionary.c (collate_pending_symbols_by_language): Remove
9313 "struct" from foreach.
9314 * symtab.c (lookup_global_symbol_from_objfile)
9315 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9317 * ser-tcp.c (net_open): Remove "struct" from foreach.
9318 * objfiles.c (objfile_relocate, objfile_rebase)
9319 (objfile_has_symbols): Remove "struct" from foreach.
9320 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9322 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9324 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9325 "struct" from foreach.
9326 * ada-lang.c (create_excep_cond_exprs)
9327 (ada_exception_catchpoint_cond_string): Remove "struct" from
9330 2019-05-03 Tom Tromey <tromey@adacore.com>
9332 * ada-exp.y (convert_char_literal): Check suffix of each
9335 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9338 * ada-exp.y (yywrap): Don't define.
9339 * ada-lex.l (%option): Add noyywrap
9342 2019-05-03 Eli Zaretskii <eliz@gnu.org>
9344 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9345 _WIN32_WINNT to the XP level, unless already defined to a higher
9348 * unittests/parse-connection-spec-selftests.c:
9350 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9353 * symfile.c (find_separate_debug_file): Remove colon from the
9354 drive spec of DOS/Windows file names of the target, so that the
9355 file name produced from DEBUGDIR and the target's directory will
9356 be valid on DOS/Windows systems.
9358 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9360 * rust-lang.c (val_print_struct): Handle printing structures
9363 2019-05-02 Tom Tromey <tromey@adacore.com>
9365 * valarith.c (_initialize_valarith): Remove.
9367 2019-05-01 Tom Tromey <tromey@adacore.com>
9369 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9372 2019-05-01 Tom Tromey <tromey@adacore.com>
9374 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9375 for big-endian copies.
9377 2019-04-30 Ali Tamur <tamur@google.com>
9378 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9379 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9380 (read_3_bytes): New function.
9382 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9384 * windows-nat.c (main_thread_id): Delete.
9385 (handle_output_debug_string): Replace main_thread_id by
9386 current_event.dwThreadId.
9387 (fake_create_process): Likewise.
9388 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9389 Do not set main_thread_id.
9390 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9391 current_event.dwThreadId.
9392 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9394 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9396 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9397 Use current_event.dwThreadId instead of main_thread_id.
9399 2019-04-30 Tom Tromey <tromey@adacore.com>
9401 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9402 (create_excep_cond_exprs): Iterate over program spaces.
9403 (ada_exception_catchpoint_cond_string): Examine all minimal
9404 symbols for exception types.
9406 2019-04-30 Tom Tromey <tromey@adacore.com>
9409 * dwarf2read.c (process_structure_scope): Handle case where type
9410 has template parameters but no symbol was created.
9412 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9413 Chris January <chris.january@arm.com>
9415 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9417 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9419 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9421 * f-typeprint.c (f_print_type): Update rules for printing
9423 (f_type_print_varspec_suffix): Likewise.
9425 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9426 Chris January <chris.january@arm.com>
9428 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9431 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9433 * f-lang.c (build_fortran_types): Change name of void type to
9435 * f-typeprint.c (f_type_print_base): Print the name of the void
9436 type, rather than a fixed string.
9437 * f-valprint.c (f_decorations): Use lower case void string.
9439 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9440 Chris January <chris.january@arm.com>
9442 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9445 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9446 Chris January <chris.january@arm.com>
9447 David Lecomber <david.lecomber@arm.com>
9449 * f-exp.y (BINOP_INTRINSIC): New token.
9450 (exp): New parser rule handling BINOP_INTRINSIC.
9451 (f77_keywords): Add new builtin procedures.
9452 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9453 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9454 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9455 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9456 (print_unop_subexp_f): New function.
9457 (print_binop_subexp_f): New function.
9458 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9459 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9460 (dump_subexp_body_f): Likewise.
9461 (operator_check_f): Likewise.
9462 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9463 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9465 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9467 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9469 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9470 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9471 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9472 (operator_length_f): New fuction.
9473 (print_subexp_f): New function.
9474 (op_name_f): New function.
9475 (dump_subexp_body_f): New function.
9476 (operator_check_f): New function.
9477 (exp_descriptor_f): Replace standard expression handling functions
9479 * gdb/fortran-operator.def: New file.
9480 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9481 * gdb/std-operator.def: Remove UNOP_KIND.
9483 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9485 * std-operator.def: Remove unbalanced, stray double quote
9488 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9489 Chris January <chris.january@arm.com>
9490 Daniel Everett <daniel.everett@arm.com>
9491 Nick Forrington <nick.forrington@arm.com>
9492 Richard Bunt <richard.bunt@arm.com>
9494 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9495 of depth when printing anonymous structs or unions.
9496 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9497 Don't print either the top-level value, or the children if the
9498 max-depth is exceeded.
9499 (ppscm_print_children): When printing the key of a map, allow one
9500 extra level of depth.
9501 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9502 print either the top-level value, or the children if the max-depth
9504 (print_children): When printing the key of a map, allow one extra
9506 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9507 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9508 (user_print_options): Initialise max_depth field.
9509 (val_print_scalar_or_string_type_p): New function.
9510 (val_print): Check to see if the max depth has been reached.
9511 (val_print_check_max_depth): Define new function.
9512 (show_print_max_depth): New function.
9513 (_initialize_valprint): Add 'print max-depth' option.
9514 * valprint.h (struct value_print_options) <max_depth>: New field.
9515 (val_print_check_max_depth): Declare new function.
9516 * NEWS: Document new feature.
9518 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9520 * ada-lang.c (ada_language_defn): Initialise new field.
9521 * c-lang.c (c_is_string_type_p): New function.
9522 (c_language_defn): Initialise new field.
9523 (cplus_language_defn): Initialise new field.
9524 (asm_language_defn): Initialise new field.
9525 (minimal_language_defn): Initialise new field.
9526 * c-lang.h (c_is_string_type_p): Declare new function.
9527 * d-lang.c (d_language_defn): Initialise new field.
9528 * f-lang.c (f_is_string_type_p): New function.
9529 (f_language_defn): Initialise new field.
9530 * go-lang.c (go_is_string_type_p): New function.
9531 (go_language_defn): Initialise new field.
9532 * language.c (default_is_string_type_p): New function.
9533 (unknown_language_defn): Initialise new field.
9534 (auto_language_defn): Initialise new field.
9535 * language.h (struct language_defn) <la_is_string_type_p>: New
9537 (default_is_string_type_p): Declare new function.
9538 * m2-lang.c (m2_language_defn): Initialise new field.
9539 * objc-lang.c (objc_language_defn): Initialise new field.
9540 * opencl-lang.c (opencl_language_defn): Initialise new field.
9541 * p-lang.c (pascal_is_string_type_p): New function.
9542 (pascal_language_defn): Initialise new field.
9543 * rust-lang.c (rust_is_string_type_p): New function.
9544 (rust_language_defn): Initialise new field.
9546 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9548 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9550 * ada-lang.c (ada_language_defn): Initialise new field.
9551 * c-lang.c (c_language_defn): Likewise.
9552 (cplus_language_defn): Likewise.
9553 (asm_language_defn): Likewise.
9554 (minimal_language_defn): Likewise.
9555 * d-lang.c (d_language_defn): Likewise.
9556 * f-lang.c (f_language_defn): Likewise.
9557 * go-lang.c (go_language_defn): Likewise.
9558 * language.c (unknown_language_defn): Likewise.
9559 (auto_language_defn): Likewise.
9560 * m2-lang.c (m2_language_defn): Likewise.
9561 * objc-lang.c (objc_language_defn): Likewise.
9562 * opencl-lang.c (opencl_language_defn): Likewise.
9563 * p-lang.c (pascal_language_defn): Likewise.
9564 * rust-lang.c (rust_language_defn): Likewise.
9566 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9568 * ada-lang.c (ada_is_character_type): Change return type to bool.
9569 (ada_is_string_type): Likewise.
9570 * ada-lang.h (ada_is_character_type): Update declaration
9571 (ada_is_string_type): Likewise.
9573 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9575 Support style in 'frame|thread apply'
9577 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9578 * record.c (record_start, record_stop): Update callers of
9579 execute_command_to_string with false.
9580 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9581 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9583 (class string_file): New constructor with term_out parameter.
9584 Override methods term_out and can_emit_style_escape. New member
9586 (class stdio_file): Override can_emit_style_escape.
9587 (class tee_file): Override term_out and can_emit_style_escape.
9588 * utils.h (can_emit_style_escape): Remove.
9589 * utils.c (can_emit_style_escape): Likewise.
9590 Update all callers of can_emit_style_escape (SOMESTREAM) to
9591 SOMESTREAM->can_emit_style_escape.
9592 * source-cache.c (source_cache::get_source_lines): Likewise.
9593 * stack.c (frame_apply_command_count): Call execute_command_to_string
9594 passing the term_out characteristic of the current gdb_stdout.
9595 * thread.c (thr_try_catch_cmd): Likewise.
9596 * top.c (execute_command_to_string): pass term_out parameter
9597 to construct the string_file for the command output.
9598 * ui-file.c (term_cli_styling): New function (most code moved
9599 from utils.c can_emit_style_escape).
9600 (string_file::string_file, string_file::can_emit_style_escape,
9601 stdio_file::can_emit_style_escape, tee_file::term_out,
9602 tee_file::can_emit_style_escape): New functions.
9604 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9606 * NEWS: Mention the new set|show may-call-functions.
9607 * infcall.c (may_call_functions_p): New variable.
9608 (show_may_call_functions_p): New function.
9609 (call_function_by_hand_dummy): Throws an error if not
9611 (_initialize_infcall): Call add_setshow_boolean_cmd for
9614 2019-04-25 Keith Seitz <keiths@redhat.com>
9617 * cp-support.c (inspect_type): Don't attempt substitutions
9618 of symbol with the same name.
9620 2019-04-25 Tom Tromey <tromey@adacore.com>
9623 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9626 2019-04-25 Tom Tromey <tromey@adacore.com>
9628 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9630 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9631 (gdb_xml_parser::parse): Use std::move.
9632 * python/python-internal.h (gdbpy_convert_exception): Take a const
9634 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9636 * python/py-utils.c (gdbpy_convert_exception): Take a const
9638 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9640 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9642 * mi/mi-main.c (mi_print_exception): Take a const reference.
9643 * main.c (handle_command_errors): Take a const reference.
9644 * linespec.c (parse_linespec): Use std::move.
9645 * infcall.c (run_inferior_call): Use std::move.
9646 (call_function_by_hand_dummy): Use std::move.
9647 * exec.c (try_open_exec_file): Use std::move.
9648 * exceptions.h (exception_print, exception_fprintf)
9649 (exception_print_same): Update.
9650 * exceptions.c (print_exception, exception_print)
9651 (exception_fprintf, exception_print_same): Change parameters to
9653 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9654 * common/new-op.c: Use std::move.
9655 * common/common-exceptions.h (struct gdb_exception): Add move
9657 (struct gdb_exception_error, struct gdb_exception_quit, struct
9658 gdb_quit_bad_alloc): Change constructor to move constructor.
9659 (throw_exception): Change parameter to rvalue reference.
9660 * common/common-exceptions.c (throw_exception): Take rvalue
9662 * cli/cli-interp.c (safe_execute_command): Use std::move.
9663 * breakpoint.c (insert_bp_location, location_to_sals): Use
9666 2019-04-25 Tom Tromey <tromey@adacore.com>
9668 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9669 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9670 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9671 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9672 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9673 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9674 guile/scm-value.c: Use unpack.
9675 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9676 gdbscm_gdb_exception.
9677 (gdbscm_throw_gdb_exception): Likewise.
9678 (struct gdbscm_gdb_exception): New.
9679 (unpack): New function.
9680 (gdbscm_wrap): Use unpack.
9682 2019-04-25 Tom Tromey <tromey@adacore.com>
9684 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9685 (gdb_rl_callback_handler): Use std::move.
9686 * common/common-exceptions.h (struct gdb_exception): Add move
9687 assignment operator.
9688 (throw_exception_sjlj): Change "exception" to const reference.
9689 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9690 (throw_exception_sjlj): Change "exception" to const reference.
9692 2019-04-25 Tom Tromey <tromey@adacore.com>
9694 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9695 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9696 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9698 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9700 * mi/mi-interp.c (mi_interp::exec): Update.
9701 * linespec.c (parse_linespec): Update.
9702 * infcall.c (run_inferior_call): Update.
9703 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9704 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9705 (gdbscm_lookup_global_symbol): Update.
9706 * guile/scm-param.c (gdbscm_parameter_value): Update.
9707 * guile/scm-frame.c (gdbscm_frame_read_register)
9708 (gdbscm_frame_read_var): Update.
9709 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9710 * exec.c (try_open_exec_file): Update.
9711 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9712 (gdb_rl_callback_handler): Update.
9713 * common/common-exceptions.h (exception_none): Don't declare.
9714 * common/common-exceptions.c (exception_none): Don't define.
9715 (struct catcher) <exception>: Update.
9716 * cli/cli-interp.c (safe_execute_command): Update.
9717 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9719 2019-04-25 Ali Tamur <tamur@google.com>
9721 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9722 (read_attribute_value): Likewise.
9723 (dwarf2_read_addr_index): Update comment.
9724 (read_str_index): Add DW_FORM_strx.
9725 (dwarf2_string_attr): Likewise.
9726 (dwarf2_const_value_attr): Likewise.
9727 (dump_die_shallow): Likewise.
9728 (dwarf2_fetch_constant_bytes): Likewise.
9729 (skip_form_bytes): Likewise.
9730 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9732 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9736 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9737 OFFSET. Verify if current mapping contains an ELF header.
9738 (linux_find_memory_regions_full): Adjust call to
9741 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9742 Kang Li <kanglictf@gmail.com>
9746 * dwarf2-frame.c (read_initial_length): Be consistent about using
9747 unsigned representation of length.
9748 (decode_frame_entry_1): Likewise. Check for wraparound of
9749 end pointer as well as buffer overflow.
9751 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9753 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9756 2019-04-24 Tom Tromey <tromey@adacore.com>
9758 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9760 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9762 * s12z-tdep.c (s12z_unwind_pc): Delete.
9763 (s12z_unwind_sp): Delete.
9764 (s12z_gdbarch_init): Don't register deleted functions with
9767 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9769 * rl78-tdep.c (rl78_unwind_sp): Delete.
9770 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9772 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9774 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9775 (xstormy16_unwind_pc): Delete.
9776 (xstormy16_dummy_id): Delete.
9777 (xstormy16_gdbarch_init): Don't register deleted functions with
9780 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9782 * vax-tdep.c (vax_unwind_pc): Delete.
9783 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9785 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9787 * v850-tdep.c (v850_unwind_sp): Delete.
9788 (v850_unwind_pc): Delete.
9789 (v850_dummy_id): Delete.
9790 (v850_gdbarch_init): Don't register deleted functions with
9793 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9795 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9796 (tilegx_unwind_pc): Delete.
9797 (tilegx_unwind_dummy_id): Delete.
9798 (tilegx_gdbarch_init): Don't register deleted functions with
9801 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9803 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9804 (tic6x_dummy_id): Delete.
9805 (tic6x_gdbarch_init): Don't register deleted functions with
9808 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9810 * sparc-tdep.c (sparc_unwind_pc): Delete.
9811 (sparc32_gdbarch_init): Don't register deleted function with
9814 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9816 * sh-tdep.c (sh_unwind_sp): Delete.
9817 (sh_unwind_pc): Delete.
9818 (sh_dummy_id): Delete.
9819 (sh_gdbarch_init): Don't register deleted functions with
9822 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9824 * score-tdep.c (score_unwind_sp): Delete.
9825 (score_unwind_pc): Delete.
9826 (score_dummy_id): Delete.
9827 (score_gdbarch_init): Don't register deleted functions with
9830 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9832 * rx-tdep.c (rx_unwind_pc): Delete.
9833 (rx_unwind_sp): Delete.
9834 (rx_dummy_id): Delete.
9835 (rx_gdbarch_init): Don't register deleted functions with
9836 gdbarch. Update comment.
9838 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9840 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9841 (rs6000_dummy_id): Delete.
9842 (rs6000_gdbarch_init): Don't register deleted functions with
9845 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9847 * or1k-tdep.c (or1k_dummy_id): Delete.
9848 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9850 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9852 * nios2-tdep.c (nios2_dummy_id): Delete.
9853 (nios2_unwind_sp): Delete.
9854 (nios2_gdbarch_init): Don't register deleted functions with
9857 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9859 * nds32-tdep.c (nds32_dummy_id): Delete.
9860 (nds32_unwind_pc): Delete.
9861 (nds32_unwind_sp): Delete.
9862 (nds32_gdbarch_init): Don't register deleted functions with
9865 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9867 * msp430-tdep.c (msp430_unwind_pc): Delete.
9868 (msp430_unwind_sp): Delete.
9869 (msp430_dummy_id): Delete.
9870 (msp430_gdbarch_init): Don't register deleted functions with
9873 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9875 * moxie-tdep.c (moxie_unwind_sp): Delete.
9876 (moxie_unwind_pc): Delete.
9877 (moxie_dummy_id): Delete.
9878 (moxie_gdbarch_init): Don't register deleted functions with
9881 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9883 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9884 (mn10300_unwind_pc): Delete.
9885 (mn10300_unwind_sp): Delete.
9886 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9888 (mn10300_frame_unwind_init): Don't register deleted functions with
9891 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9893 * mep-tdep.c (mep_unwind_pc): Delete.
9894 (mep_unwind_sp): Delete.
9895 (mep_dummy_id): Delete.
9896 (mep_gdbarch_init): Don't register deleted functions with
9899 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9901 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
9902 (m68hc11_unwind_sp): Delete.
9903 (m68hc11_gdbarch_init): Don't register deleted functions with
9906 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9908 * m32r-tdep.c (m32r_unwind_sp): Delete.
9909 (m32r_unwind_pc): Delete.
9910 (m32r_dummy_id): Delete.
9911 (m32r_gdbarch_init): Don't register deleted functions with
9914 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9916 * m32c-tdep.c (m32c_unwind_pc): Delete.
9917 (m32c_unwind_sp): Delete.
9918 (m32c_dummy_id): Delete.
9919 (m32c_gdbarch_init): Don't register deleted functions with
9922 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9924 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
9925 (lm32_unwind_pc): Delete.
9926 (lm32_dummy_id): Delete.
9927 (lm32_gdbarch_init): Don't register deleted functions with
9930 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9932 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
9933 (iq2000_unwind_pc): Delete.
9934 (iq2000_dummy_id): Delete.
9935 (iq2000_gdbarch_init): Don't register deleted functions with
9938 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9940 * nds32-tdep.c (nds32_type_align): Delete.
9941 (nds32_push_dummy_call): Use type_align instead.
9943 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9945 * arm-tdep.c (arm_type_align): Only handle vector override case.
9946 (arm_push_dummy_call): Use type_align.
9947 (arm_gdbarch_init): Register arm_type_align gdbarch function.
9949 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9951 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
9953 (pass_on_stack): Use type_align.
9954 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
9957 2019-04-23 Tom Tromey <tromey@adacore.com>
9959 * dwarf2read.c (line_header::file_name_at): Remove unused
9962 2019-04-23 Tom de Vries <tdevries@suse.de>
9965 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
9969 2019-03-27 Ali Tamur <tamur@google.com>
9971 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
9972 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9973 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9974 (dwarf_expr_context::get_addr_index): Likewise
9975 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9976 (symbol_needs_eval_context::get_addr_index): Likewise
9977 (disassemble_dwarf_expression): Add DW_OP_addrx
9978 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9979 (read_cutu_die_from_dwo): Update comment
9980 (skip_one_die): Add DW_FORM_addrx
9981 (read_attribute_value): Likewise
9982 (var_decode_location): Add DW_OP_addrx
9983 (dwarf2_const_value_attr): Add DW_FORM_addrx
9984 (dump_die_shallow): Likewise
9985 (dwarf2_fetch_constant_bytes): Likewise
9986 (decode_locdesc): Add DW_OP_addrx
9987 (skip_form_bytes): Add DW_FORM_addrx
9989 2019-04-22 Ali Tamur <tamur@google.com>
9991 * MAINTAINERS (Write After Approval): Add self.
9993 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
9995 * solib-svr4.c (get_svr4_info): Add pspace parameter.
9996 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
9997 (open_symbol_file_object): Likewise.
9998 (svr4_default_sos): Add info parameter.
9999 (svr4_read_so_list): Likewise.
10000 (svr4_current_sos_direct): Adjust functions calls to pass down
10002 (svr4_current_sos_1): Add info parameter.
10003 (svr4_current_sos): Call get_svr4_info, pass info down to
10004 svr4_current_sos_1.
10005 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10007 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10009 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10011 (probes_table_remove_objfile_probes): Likewise.
10012 (register_solib_event_probe): Add info parameter.
10013 (solist_update_incremental): Pass info parameter down to
10015 (disable_probes_interface): Add info parameter.
10016 (svr4_handle_solib_event): Pass current_program_space to
10017 get_svr4_info. Adjust disable_probes_interface cleanup.
10018 (svr4_create_probe_breakpoints): Add info parameter, pass it
10019 down to register_solib_event_probe.
10020 (svr4_create_solib_event_breakpoints): Add info parameter,
10021 pass it down to svr4_create_probe_breakpoints.
10022 (enable_break): Pass info down to
10023 svr4_create_solib_event_breakpoints.
10024 (svr4_solib_create_inferior_hook): Pass current_program_space to
10026 (svr4_clear_solib): Likewise.
10028 2019-04-22 Pedro Alves <palves@redhat.com>
10030 * solib-svr4.c (svr4_free_objfile_observer): New.
10031 (probe_and_action::objfile): New field.
10032 (probes_table_htab_remove_objfile_probes)
10033 (probes_table_remove_objfile_probes): New functions.
10034 (register_solib_event_probe): Add 'objfile' parameter. Store it
10035 in the new probe_and_action. Don't store the probe in 'lookup'.
10036 (svr4_create_probe_breakpoints): Pass objfile to
10037 register_solib_event_probe.
10038 (_initialize_svr4_solib): Register a free_objfile observer.
10040 2019-04-19 Tom Tromey <tom@tromey.com>
10042 * common/queue.h: Remove.
10044 2019-04-19 Tom Tromey <tom@tromey.com>
10046 * event-loop.c: Don't include "common/queue.h".
10048 2019-04-19 Tom Tromey <tom@tromey.com>
10050 * remote.c (remote_target): Use delete.
10051 * remote-notif.h: Include <list>, not "common/queue.h".
10052 (notif_client_p): Remove typedef.
10053 (remote_notif_state): Add constructor, destructor, initializer.
10054 <notif_queue>: Now a std::list.
10055 (remote_notif_state_xfree): Don't declare.
10056 * remote-notif.c (remote_notif_process, handle_notification)
10057 (remote_notif_state_allocate): Update.
10058 (~remote_notif_state): Rename from remote_notif_state_xfree.
10060 2019-04-19 Tom Tromey <tom@tromey.com>
10062 * symfile.c (reread_symbols): Update.
10063 * objfiles.c (objfile_register_static_link)
10064 (objfile_lookup_static_link): Update
10065 (~objfile) Don't delete static_links.
10066 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10068 2019-04-19 Tom Tromey <tom@tromey.com>
10070 * type-stack.h (struct type_stack) <insert>: Constify string.
10071 * type-stack.c (type_stack::insert): Constify string.
10072 * gdbtypes.h (lookup_template_type): Update.
10073 (address_space_name_to_int): Update.
10074 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10076 (lookup_template_type): Make name const.
10077 * c-exp.y: Update rules.
10078 (lex_one_token, classify_name, classify_inner_name)
10079 (c_print_token): Update.
10080 * p-exp.y: Update rules.
10082 * f-exp.y: Update rules.
10084 * d-exp.y: Update rules.
10085 (lex_one_token, classify_name, classify_inner_name): Update.
10086 * parse.c (write_dollar_variable, copy_name): Return std::string.
10087 * parser-defs.h (copy_name): Change return type.
10088 * m2-exp.y: Update rules.
10090 * go-exp.y (lex_one_token): Update.
10092 (classify_unsafe_function, classify_packaged_name)
10093 (classify_name, yylex): Update.
10095 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10097 * configure.ac: add --enable-source-highlight switch.
10098 * configure: Regenerate.
10099 * top.c (print_gdb_version): plumb --enable-source-highlight
10100 status to "show configuration".
10102 2019-04-19 Tom Tromey <tromey@adacore.com>
10104 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10106 (empty_record, ada_template_to_fixed_record_type_1)
10107 (template_to_static_fixed_type)
10108 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10109 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10110 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10113 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10116 * source.c (print_source_lines_base): Advance "iter" when a
10117 control character is seen.
10119 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10121 * inferior.h (struct infcall_suspend_state_deleter):
10122 Catch exception in destructor to avoid crash.
10124 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10126 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10127 close to the add_com "shell".
10129 2019-04-18 Tom Tromey <tromey@adacore.com>
10131 * process-stratum-target.h (class process_stratum_target)
10132 <stratum>: Add "final".
10134 2019-04-17 Tom Tromey <tromey@adacore.com>
10136 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10137 against nullptr before use.
10139 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10141 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10143 2019-04-17 Jim Wilson <jimw@sifive.com>
10144 Andrew Burgess <andrew.burgess@embecosm.com>
10146 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10147 code read might fail, assume 4-byte breakpoint in that case.
10149 2019-04-15 Leszek Swirski <leszeks@google.com>
10151 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10152 rather than a hand-rolled POD check when checking for forced MEMORY
10155 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10157 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10158 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10160 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10161 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10162 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10165 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10167 * aarch64-linux-nat.c
10168 (aarch64_linux_nat_target::thread_architecture): Add override.
10169 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10172 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10174 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10176 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10178 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10179 target types of size 96-bits, add some additional comments, and
10180 check that the builtin type we found was the correct size.
10182 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10184 * utils.c (prompt_for_continue): Don't restore the styling at the
10185 end, as applied_style has the wrong value. This fixes styling in
10186 long lists of file names that are interrupted by the "Continue?"
10189 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10191 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10192 * c-lang.c (c_language_defn): Likewise.
10193 (cplus_language_defn): Likewise.
10194 (asm_language_defn): Likewise.
10195 (minimal_language_defn): Likewise.
10196 * d-lang.c (d_language_defn): Likewise.
10197 * f-lang.c (f_language_defn): Likewise.
10198 * go-lang.c (go_language_defn): Likewise.
10199 * language.c (unknown_language_defn): Likewise.
10200 (auto_language_defn): Likewise.
10201 * language.h (struct language_defn): Remove la_magic field.
10202 (LANG_MAGIC): Delete.
10203 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10204 * objc-lang.c (objc_language_defn): Likewise.
10205 * opencl-lang.c (opencl_language_defn): Likewise.
10206 * p-lang.c (pascal_language_defn): Likewise.
10207 * rust-lang.c (rust_language_defn): Likewise.
10209 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10211 * riscv-tdep.c (riscv_type_align): New function.
10212 (riscv_type_alignment): Delete.
10213 (riscv_arg_location): Use 'type_align'.
10214 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10216 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10218 * gdbtypes.c (type_align): A struct with no non-static fields also
10219 has alignment of 1.
10221 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10223 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10225 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10227 (riscv_struct_info::analyse): New implementation using new
10228 analyse_inner member function.
10229 (riscv_struct_info::field_offset): New member function.
10230 (riscv_struct_info::m_offsets): New member variable.
10231 (riscv_struct_info::analyse_inner): New private member function,
10232 takes the old implementation of riscv_struct_info::analyse but
10233 extended to track field offsets.
10234 (riscv_call_arg_struct): Update the struct folding special cases
10235 to handle cases where empty C++ structs, which are non-zero
10237 (riscv_arg_location): Initialise the length of each location, a
10238 non-zero length now indicates the location is in use.
10239 (riscv_push_dummy_call): Allow for the first location having a
10240 non-zero offset when setting up arguments.
10241 (riscv_return_value): Likewise, but for return values.
10243 2019-04-11 Tom Tromey <tromey@adacore.com>
10245 * utils.c (internal_vproblem): Make "msg" const.
10247 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10249 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10250 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10251 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10252 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10254 2019-04-10 Kevin Buettner <kevinb@redhat.com>
10256 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10258 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10259 of amd64_collect_native_gregset.
10260 (amd64_linux_nat_target::store_registers): Likewise.
10262 2019-04-10 Tom Tromey <tom@tromey.com>
10264 * symtab.c (lookup_global_symbol_from_objfile)
10265 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10266 * objfiles.h (class separate_debug_iterator): New.
10267 (class separate_debug_range): New.
10268 (struct objfile) <separate_debug_objfiles>: New method.
10269 (objfile_separate_debug_iterate): Don't declare.
10270 * objfiles.c (separate_debug_iterator::operator++): Rename from
10271 objfile_separate_debug_iterate.
10272 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10274 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10277 2019-04-10 Tom Tromey <tom@tromey.com>
10279 * symfile.c (reread_symbols): Remove old comment.
10280 * objfiles.c (free_all_objfiles): Fix a typo.
10282 2019-04-10 Tom Tromey <tom@tromey.com>
10284 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10285 * minsyms.c (lookup_minimal_symbol): Use foreach.
10286 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10287 (lookup_minimal_symbol_solib_trampoline): Likewise.
10288 * symfile.c (reread_symbols): Use foreach.
10290 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
10291 Tom Tromey <tromey@adacore.com>
10294 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10295 (rust_lex_int_test): Change "value" to be LONGEST.
10296 (rust_lex_tests): Add test for long integer literal.
10298 2019-04-09 Tom Tromey <tromey@adacore.com>
10300 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10302 (extended_remote_target::attach): Update.
10303 (remote_target::remote_notice_new_inferior): Update.
10304 (remote_target::add_current_inferior_and_thread): Update.
10305 * inferior.c (exit_inferior_1): Use "false".
10306 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10308 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
10310 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
10311 the "start" command.
10313 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10315 * python/py-inferior.c (infpy_thread_from_thread_handle):
10316 Adjust comments to reflect renaming of thread_from_thread_handle
10317 to thread_from_handle. Adjust keywords. Fix type error message.
10318 (inferior_object_methods): Add thread_from_handle. Retain
10319 thread_from_thread_handle, but mark it as deprecated.
10321 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10323 * gdbthread.h (find_thread_by_handle): Revise declaration.
10324 * thread.c (find_thread_by_handle): Likewise. Adjust
10325 implementation too.
10326 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10327 support for buffer objects as handles.
10329 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10331 * python/py-infthread.c (thpy_thread_handle): New function.
10332 (thread_object_methods): Register thpy_thread_handle.
10334 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10336 * gdbthread.h (thread_to_thread_handle): Declare.
10337 * thread.c (gdbtypes.h): Include.
10338 (thread_to_thread_handle): New function.
10340 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10341 (target_thread_info_to_thread_handle): Declare.
10342 * target.c (target_thread_info_to_thread_handle): New function.
10343 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10344 * target-delegates.c: Regenerate.
10346 * linux-thread-db.c (class thread_db_target): Add method
10347 thread_info_to_thread_handle.
10348 (thread_db_target::thread_info_to_thread_handle): Define.
10349 * remote.c (class remote_target): Add new method
10350 thread_info_to_thread_handle.
10351 (remote_target::thread_info_to_thread_handle): Define.
10353 2019-04-08 Pedro Alves <palves@redhat.com>
10355 * common/common-exceptions.c (throw_exception): Don't create
10356 named object to throw; throw directly.
10357 (throw_it): Likewise. Don't initialize gdb_exception::message
10358 here, with new; pass FMT and AP to the ctor instead.
10359 * common/common-exceptions.h: Include <string>.
10360 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10361 const char *, va_list)): New ctor. Use std::make_shared.
10362 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10364 (gdb_exception_error::gdb_exception_error(enum errors, const char
10366 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10368 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10370 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10371 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10374 2019-04-08 Tom Tromey <tom@tromey.com>
10376 * valops.c (value_rtti_indirect_type): Replace throw_exception
10378 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10380 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10382 * target.c (target_translate_tls_address): Replace throw_exception
10384 * stack.c (frame_apply_command_count): Replace throw_exception
10386 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10388 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10390 * rs6000-tdep.c (rs6000_frame_cache)
10391 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10392 * remote.c: Replace throw_exception with throw.
10393 * record-full.c (record_full_message, record_full_wait_1)
10394 (record_full_restore): Replace throw_exception with throw.
10396 (get_thread_current_frame_id, record_btrace_start_replaying)
10397 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10398 (cmd_record_btrace_start): Replace throw_exception with throw.
10399 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10401 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10402 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10404 (find_linespec_symbols): Replace throw_exception with throw.
10405 * infrun.c (displaced_step_prepare, resume): Replace
10406 throw_exception with throw.
10407 * infcmd.c (post_create_inferior): Replace throw_exception with
10409 * inf-loop.c (inferior_event_handler): Replace throw_exception
10411 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10412 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10413 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10414 (get_prev_frame_always, get_frame_pc_if_available)
10415 (get_frame_address_in_block_if_available, get_frame_language):
10416 Replace throw_exception with throw.
10417 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10418 throw_exception with throw.
10419 * eval.c (fetch_subexp_value, evaluate_var_value)
10420 (evaluate_funcall, evaluate_subexp_standard): Replace
10421 throw_exception with throw.
10422 * dwarf2loc.c (call_site_find_chain)
10423 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10424 Replace throw_exception with throw.
10425 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10427 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10429 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10430 * completer.c (complete_line_internal): Replace throw_exception
10432 * compile/compile-object-run.c (compile_object_run): Replace
10433 throw_exception with throw.
10434 * cli/cli-script.c (process_next_line): Replace throw_exception
10436 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10437 (btrace_enable, btrace_maint_update_pt_packets): Replace
10438 throw_exception with throw.
10439 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10440 throw_exception with throw.
10441 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10442 throw_exception with throw.
10443 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10444 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10445 * aarch64-tdep.c (aarch64_make_prologue_cache)
10446 (aarch64_make_stub_cache): Replace throw_exception with throw.
10448 2019-04-08 Tom Tromey <tom@tromey.com>
10450 * common/common-exceptions.c (throw_exception): Rename from
10451 throw_exception_cxx. Remove old copy. Make argument const.
10452 (throw_it): Create and throw exception objects directly.
10453 * common/common-exceptions.h (throw_exception): Make argument
10455 (struct gdb_exception_error): Add constructor.
10456 (struct gdb_exception_quit): Add constructor.
10458 2019-04-08 Tom Tromey <tom@tromey.com>
10460 * common/common-exceptions.h (exception_rethrow): Don't declare.
10461 (TRY_SJLJ): Update comment.
10462 (TRY, CATCH, END_CATCH): Remove.
10463 * common/common-exceptions.c (exception_rethrow): Remove.
10465 2019-04-08 Tom Tromey <tom@tromey.com>
10467 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10469 (gdb_exception_error): Rename from
10470 gdb_exception_RETURN_MASK_ERROR.
10471 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10472 (gdb_quit_bad_alloc): Update.
10473 * aarch64-tdep.c: Update.
10474 * ada-lang.c: Update.
10475 * ada-typeprint.c: Update.
10476 * ada-valprint.c: Update.
10477 * amd64-tdep.c: Update.
10478 * arch-utils.c: Update.
10479 * break-catch-throw.c: Update.
10480 * breakpoint.c: Update.
10481 * btrace.c: Update.
10482 * c-varobj.c: Update.
10483 * cli/cli-cmds.c: Update.
10484 * cli/cli-interp.c: Update.
10485 * cli/cli-script.c: Update.
10486 * common/common-exceptions.c: Update.
10487 * common/new-op.c: Update.
10488 * common/selftest.c: Update.
10489 * compile/compile-c-symbols.c: Update.
10490 * compile/compile-cplus-symbols.c: Update.
10491 * compile/compile-object-load.c: Update.
10492 * compile/compile-object-run.c: Update.
10493 * completer.c: Update.
10494 * corelow.c: Update.
10495 * cp-abi.c: Update.
10496 * cp-support.c: Update.
10497 * cp-valprint.c: Update.
10498 * darwin-nat.c: Update.
10499 * disasm-selftests.c: Update.
10500 * dtrace-probe.c: Update.
10501 * dwarf-index-cache.c: Update.
10502 * dwarf-index-write.c: Update.
10503 * dwarf2-frame-tailcall.c: Update.
10504 * dwarf2-frame.c: Update.
10505 * dwarf2loc.c: Update.
10506 * dwarf2read.c: Update.
10508 * event-loop.c: Update.
10509 * event-top.c: Update.
10511 * f-valprint.c: Update.
10512 * fbsd-tdep.c: Update.
10513 * frame-unwind.c: Update.
10515 * gdbtypes.c: Update.
10516 * gnu-v3-abi.c: Update.
10517 * guile/guile-internal.h: Update.
10518 * guile/scm-block.c: Update.
10519 * guile/scm-breakpoint.c: Update.
10520 * guile/scm-cmd.c: Update.
10521 * guile/scm-disasm.c: Update.
10522 * guile/scm-frame.c: Update.
10523 * guile/scm-lazy-string.c: Update.
10524 * guile/scm-math.c: Update.
10525 * guile/scm-param.c: Update.
10526 * guile/scm-ports.c: Update.
10527 * guile/scm-pretty-print.c: Update.
10528 * guile/scm-symbol.c: Update.
10529 * guile/scm-symtab.c: Update.
10530 * guile/scm-type.c: Update.
10531 * guile/scm-value.c: Update.
10532 * i386-linux-tdep.c: Update.
10533 * i386-tdep.c: Update.
10534 * inf-loop.c: Update.
10535 * infcall.c: Update.
10536 * infcmd.c: Update.
10537 * infrun.c: Update.
10539 * language.c: Update.
10540 * linespec.c: Update.
10541 * linux-fork.c: Update.
10542 * linux-nat.c: Update.
10543 * linux-tdep.c: Update.
10544 * linux-thread-db.c: Update.
10546 * mi/mi-cmd-break.c: Update.
10547 * mi/mi-cmd-stack.c: Update.
10548 * mi/mi-interp.c: Update.
10549 * mi/mi-main.c: Update.
10550 * objc-lang.c: Update.
10551 * p-valprint.c: Update.
10553 * ppc-linux-tdep.c: Update.
10554 * printcmd.c: Update.
10555 * python/py-arch.c: Update.
10556 * python/py-breakpoint.c: Update.
10557 * python/py-cmd.c: Update.
10558 * python/py-finishbreakpoint.c: Update.
10559 * python/py-frame.c: Update.
10560 * python/py-framefilter.c: Update.
10561 * python/py-gdb-readline.c: Update.
10562 * python/py-inferior.c: Update.
10563 * python/py-infthread.c: Update.
10564 * python/py-lazy-string.c: Update.
10565 * python/py-linetable.c: Update.
10566 * python/py-objfile.c: Update.
10567 * python/py-param.c: Update.
10568 * python/py-prettyprint.c: Update.
10569 * python/py-progspace.c: Update.
10570 * python/py-record-btrace.c: Update.
10571 * python/py-record.c: Update.
10572 * python/py-symbol.c: Update.
10573 * python/py-type.c: Update.
10574 * python/py-unwind.c: Update.
10575 * python/py-utils.c: Update.
10576 * python/py-value.c: Update.
10577 * python/python.c: Update.
10578 * record-btrace.c: Update.
10579 * record-full.c: Update.
10580 * remote-fileio.c: Update.
10581 * remote.c: Update.
10582 * riscv-tdep.c: Update.
10583 * rs6000-aix-tdep.c: Update.
10584 * rs6000-tdep.c: Update.
10585 * rust-exp.y: Update.
10586 * rust-lang.c: Update.
10587 * s390-tdep.c: Update.
10588 * selftest-arch.c: Update.
10589 * solib-dsbt.c: Update.
10590 * solib-frv.c: Update.
10591 * solib-spu.c: Update.
10592 * solib-svr4.c: Update.
10594 * sparc64-linux-tdep.c: Update.
10596 * symfile-mem.c: Update.
10597 * symmisc.c: Update.
10598 * target.c: Update.
10599 * thread.c: Update.
10601 * tracefile-tfile.c: Update.
10602 * tui/tui.c: Update.
10603 * typeprint.c: Update.
10604 * unittests/cli-utils-selftests.c: Update.
10605 * unittests/parse-connection-spec-selftests.c: Update.
10606 * valops.c: Update.
10607 * valprint.c: Update.
10609 * varobj.c: Update.
10610 * windows-nat.c: Update.
10611 * x86-linux-nat.c: Update.
10612 * xml-support.c: Update.
10614 2019-04-08 Tom Tromey <tom@tromey.com>
10616 * xml-support.c: Use C++ exception handling.
10617 * x86-linux-nat.c: Use C++ exception handling.
10618 * windows-nat.c: Use C++ exception handling.
10619 * varobj.c: Use C++ exception handling.
10620 * value.c: Use C++ exception handling.
10621 * valprint.c: Use C++ exception handling.
10622 * valops.c: Use C++ exception handling.
10623 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10625 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10626 * typeprint.c: Use C++ exception handling.
10627 * tui/tui.c: Use C++ exception handling.
10628 * tracefile-tfile.c: Use C++ exception handling.
10629 * top.c: Use C++ exception handling.
10630 * thread.c: Use C++ exception handling.
10631 * target.c: Use C++ exception handling.
10632 * symmisc.c: Use C++ exception handling.
10633 * symfile-mem.c: Use C++ exception handling.
10634 * stack.c: Use C++ exception handling.
10635 * sparc64-linux-tdep.c: Use C++ exception handling.
10636 * solib.c: Use C++ exception handling.
10637 * solib-svr4.c: Use C++ exception handling.
10638 * solib-spu.c: Use C++ exception handling.
10639 * solib-frv.c: Use C++ exception handling.
10640 * solib-dsbt.c: Use C++ exception handling.
10641 * selftest-arch.c: Use C++ exception handling.
10642 * s390-tdep.c: Use C++ exception handling.
10643 * rust-lang.c: Use C++ exception handling.
10644 * rust-exp.y: Use C++ exception handling.
10645 * rs6000-tdep.c: Use C++ exception handling.
10646 * rs6000-aix-tdep.c: Use C++ exception handling.
10647 * riscv-tdep.c: Use C++ exception handling.
10648 * remote.c: Use C++ exception handling.
10649 * remote-fileio.c: Use C++ exception handling.
10650 * record-full.c: Use C++ exception handling.
10651 * record-btrace.c: Use C++ exception handling.
10652 * python/python.c: Use C++ exception handling.
10653 * python/py-value.c: Use C++ exception handling.
10654 * python/py-utils.c: Use C++ exception handling.
10655 * python/py-unwind.c: Use C++ exception handling.
10656 * python/py-type.c: Use C++ exception handling.
10657 * python/py-symbol.c: Use C++ exception handling.
10658 * python/py-record.c: Use C++ exception handling.
10659 * python/py-record-btrace.c: Use C++ exception handling.
10660 * python/py-progspace.c: Use C++ exception handling.
10661 * python/py-prettyprint.c: Use C++ exception handling.
10662 * python/py-param.c: Use C++ exception handling.
10663 * python/py-objfile.c: Use C++ exception handling.
10664 * python/py-linetable.c: Use C++ exception handling.
10665 * python/py-lazy-string.c: Use C++ exception handling.
10666 * python/py-infthread.c: Use C++ exception handling.
10667 * python/py-inferior.c: Use C++ exception handling.
10668 * python/py-gdb-readline.c: Use C++ exception handling.
10669 * python/py-framefilter.c: Use C++ exception handling.
10670 * python/py-frame.c: Use C++ exception handling.
10671 * python/py-finishbreakpoint.c: Use C++ exception handling.
10672 * python/py-cmd.c: Use C++ exception handling.
10673 * python/py-breakpoint.c: Use C++ exception handling.
10674 * python/py-arch.c: Use C++ exception handling.
10675 * printcmd.c: Use C++ exception handling.
10676 * ppc-linux-tdep.c: Use C++ exception handling.
10677 * parse.c: Use C++ exception handling.
10678 * p-valprint.c: Use C++ exception handling.
10679 * objc-lang.c: Use C++ exception handling.
10680 * mi/mi-main.c: Use C++ exception handling.
10681 * mi/mi-interp.c: Use C++ exception handling.
10682 * mi/mi-cmd-stack.c: Use C++ exception handling.
10683 * mi/mi-cmd-break.c: Use C++ exception handling.
10684 * main.c: Use C++ exception handling.
10685 * linux-thread-db.c: Use C++ exception handling.
10686 * linux-tdep.c: Use C++ exception handling.
10687 * linux-nat.c: Use C++ exception handling.
10688 * linux-fork.c: Use C++ exception handling.
10689 * linespec.c: Use C++ exception handling.
10690 * language.c: Use C++ exception handling.
10691 * jit.c: Use C++ exception handling.
10692 * infrun.c: Use C++ exception handling.
10693 * infcmd.c: Use C++ exception handling.
10694 * infcall.c: Use C++ exception handling.
10695 * inf-loop.c: Use C++ exception handling.
10696 * i386-tdep.c: Use C++ exception handling.
10697 * i386-linux-tdep.c: Use C++ exception handling.
10698 * guile/scm-value.c: Use C++ exception handling.
10699 * guile/scm-type.c: Use C++ exception handling.
10700 * guile/scm-symtab.c: Use C++ exception handling.
10701 * guile/scm-symbol.c: Use C++ exception handling.
10702 * guile/scm-pretty-print.c: Use C++ exception handling.
10703 * guile/scm-ports.c: Use C++ exception handling.
10704 * guile/scm-param.c: Use C++ exception handling.
10705 * guile/scm-math.c: Use C++ exception handling.
10706 * guile/scm-lazy-string.c: Use C++ exception handling.
10707 * guile/scm-frame.c: Use C++ exception handling.
10708 * guile/scm-disasm.c: Use C++ exception handling.
10709 * guile/scm-cmd.c: Use C++ exception handling.
10710 * guile/scm-breakpoint.c: Use C++ exception handling.
10711 * guile/scm-block.c: Use C++ exception handling.
10712 * guile/guile-internal.h: Use C++ exception handling.
10713 * gnu-v3-abi.c: Use C++ exception handling.
10714 * gdbtypes.c: Use C++ exception handling.
10715 * frame.c: Use C++ exception handling.
10716 * frame-unwind.c: Use C++ exception handling.
10717 * fbsd-tdep.c: Use C++ exception handling.
10718 * f-valprint.c: Use C++ exception handling.
10719 * exec.c: Use C++ exception handling.
10720 * event-top.c: Use C++ exception handling.
10721 * event-loop.c: Use C++ exception handling.
10722 * eval.c: Use C++ exception handling.
10723 * dwarf2read.c: Use C++ exception handling.
10724 * dwarf2loc.c: Use C++ exception handling.
10725 * dwarf2-frame.c: Use C++ exception handling.
10726 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10727 * dwarf-index-write.c: Use C++ exception handling.
10728 * dwarf-index-cache.c: Use C++ exception handling.
10729 * dtrace-probe.c: Use C++ exception handling.
10730 * disasm-selftests.c: Use C++ exception handling.
10731 * darwin-nat.c: Use C++ exception handling.
10732 * cp-valprint.c: Use C++ exception handling.
10733 * cp-support.c: Use C++ exception handling.
10734 * cp-abi.c: Use C++ exception handling.
10735 * corelow.c: Use C++ exception handling.
10736 * completer.c: Use C++ exception handling.
10737 * compile/compile-object-run.c: Use C++ exception handling.
10738 * compile/compile-object-load.c: Use C++ exception handling.
10739 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10740 * compile/compile-c-symbols.c: Use C++ exception handling.
10741 * common/selftest.c: Use C++ exception handling.
10742 * common/new-op.c: Use C++ exception handling.
10743 * cli/cli-script.c: Use C++ exception handling.
10744 * cli/cli-interp.c: Use C++ exception handling.
10745 * cli/cli-cmds.c: Use C++ exception handling.
10746 * c-varobj.c: Use C++ exception handling.
10747 * btrace.c: Use C++ exception handling.
10748 * breakpoint.c: Use C++ exception handling.
10749 * break-catch-throw.c: Use C++ exception handling.
10750 * arch-utils.c: Use C++ exception handling.
10751 * amd64-tdep.c: Use C++ exception handling.
10752 * ada-valprint.c: Use C++ exception handling.
10753 * ada-typeprint.c: Use C++ exception handling.
10754 * ada-lang.c: Use C++ exception handling.
10755 * aarch64-tdep.c: Use C++ exception handling.
10757 2019-04-08 Tom Tromey <tom@tromey.com>
10759 * xml-support.c (gdb_xml_parser::parse): Update.
10760 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10761 * value.c (show_convenience): Update.
10762 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10763 (test_parse_flags_qcs): Update.
10764 * thread.c (thr_try_catch_cmd): Update.
10765 * target.c (target_translate_tls_address): Update.
10766 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10767 (info_frame_command_core, frame_apply_command_count): Update.
10768 * rust-exp.y (rust_lex_exception_test): Update.
10769 * riscv-tdep.c (riscv_print_one_register_info): Update.
10770 * remote.c (remote_target::enable_btrace): Update.
10771 * record-btrace.c (record_btrace_enable_warn): Update.
10772 * python/py-utils.c (gdbpy_convert_exception): Update.
10773 * printcmd.c (do_one_display, print_variable_and_value): Update.
10774 * mi/mi-main.c (mi_print_exception): Update.
10775 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10776 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10777 * linux-nat.c (linux_nat_target::attach): Update.
10778 * linux-fork.c (class scoped_switch_fork_info): Update.
10779 * infrun.c (displaced_step_prepare): Update.
10780 * infcall.c (call_function_by_hand_dummy): Update.
10781 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10782 * gnu-v3-abi.c (print_one_vtable): Update.
10783 * frame.c (get_prev_frame_always): Update.
10784 * f-valprint.c (info_common_command_for_block): Update.
10785 * exec.c (try_open_exec_file): Update.
10786 * exceptions.c (print_exception, exception_print)
10787 (exception_fprintf, exception_print_same): Update.
10788 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10789 * dwarf-index-cache.c (index_cache::store)
10790 (index_cache::lookup_gdb_index): Update.
10791 * darwin-nat.c (maybe_cache_shell): Update.
10792 * cp-valprint.c (cp_print_value_fields): Update.
10793 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10794 (gcc_cplus_symbol_address): Update.
10795 * compile/compile-c-symbols.c (gcc_convert_symbol)
10796 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10797 * common/selftest.c: Update.
10798 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10800 (exception_try_scope_entry, exception_try_scope_exit): Don't
10802 (struct exception_try_scope): Remove.
10803 (TRY): Don't use exception_try_scope.
10804 (struct gdb_exception): Add constructor, operator=.
10805 <what>: New method.
10806 (struct gdb_exception_RETURN_MASK_ALL)
10807 (struct gdb_exception_RETURN_MASK_ERROR)
10808 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10809 (struct gdb_quit_bad_alloc): Update.
10810 * common/common-exceptions.c (exception_none): Change
10812 (struct catcher) <state, exception>: Initialize inline.
10813 <prev>: Remove member.
10814 (current_catcher): Remove.
10815 (catchers): New global.
10816 (exceptions_state_mc_init): Simplify.
10817 (catcher_pop): Remove.
10818 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10819 (try_scope_depth, exception_try_scope_entry)
10820 (exception_try_scope_exit): Remove.
10821 (throw_exception_sjlj): Update.
10822 (exception_messages, exception_messages_size): Remove.
10823 (throw_it): Simplify.
10824 (gdb_exception_sliced_copy): Remove.
10825 (throw_exception_cxx): Update.
10826 * cli/cli-script.c (script_from_file): Update.
10827 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10829 * ada-valprint.c (ada_val_print): Update.
10830 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10831 (create_excep_cond_exprs): Update.
10833 2019-04-08 Tom Tromey <tom@tromey.com>
10835 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10836 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10837 (TRY, CATCH, END_CATCH): Remove some definitions.
10838 * common/common-exceptions.c: Don't use GDB_XCPT.
10839 (catcher_list_size): Remove.
10840 (throw_exception, throw_it): Simplify.
10842 2019-04-05 Tom Tromey <tom@tromey.com>
10844 Revert the header-sorting patch.
10845 * ft32-tdep.c: Revert.
10846 * frv-tdep.c: Revert.
10847 * frv-linux-tdep.c: Revert.
10849 * frame-unwind.c: Revert.
10850 * frame-base.c: Revert.
10851 * fork-child.c: Revert.
10852 * findvar.c: Revert.
10853 * findcmd.c: Revert.
10854 * filesystem.c: Revert.
10855 * filename-seen-cache.h: Revert.
10856 * filename-seen-cache.c: Revert.
10857 * fbsd-tdep.c: Revert.
10858 * fbsd-nat.h: Revert.
10859 * fbsd-nat.c: Revert.
10860 * f-valprint.c: Revert.
10861 * f-typeprint.c: Revert.
10862 * f-lang.c: Revert.
10863 * extension.h: Revert.
10864 * extension.c: Revert.
10865 * extension-priv.h: Revert.
10866 * expprint.c: Revert.
10869 * exceptions.c: Revert.
10870 * event-top.c: Revert.
10871 * event-loop.c: Revert.
10873 * elfread.c: Revert.
10874 * dwarf2read.h: Revert.
10875 * dwarf2read.c: Revert.
10876 * dwarf2loc.c: Revert.
10877 * dwarf2expr.h: Revert.
10878 * dwarf2expr.c: Revert.
10879 * dwarf2-frame.c: Revert.
10880 * dwarf2-frame-tailcall.c: Revert.
10881 * dwarf-index-write.h: Revert.
10882 * dwarf-index-write.c: Revert.
10883 * dwarf-index-common.c: Revert.
10884 * dwarf-index-cache.h: Revert.
10885 * dwarf-index-cache.c: Revert.
10886 * dummy-frame.c: Revert.
10887 * dtrace-probe.c: Revert.
10888 * disasm.h: Revert.
10889 * disasm.c: Revert.
10890 * disasm-selftests.c: Revert.
10891 * dictionary.c: Revert.
10892 * dicos-tdep.c: Revert.
10893 * demangle.c: Revert.
10894 * dcache.h: Revert.
10895 * dcache.c: Revert.
10896 * darwin-nat.h: Revert.
10897 * darwin-nat.c: Revert.
10898 * darwin-nat-info.c: Revert.
10899 * d-valprint.c: Revert.
10900 * d-namespace.c: Revert.
10901 * d-lang.c: Revert.
10903 * csky-tdep.c: Revert.
10904 * csky-linux-tdep.c: Revert.
10905 * cris-tdep.c: Revert.
10906 * cris-linux-tdep.c: Revert.
10907 * cp-valprint.c: Revert.
10908 * cp-support.c: Revert.
10909 * cp-namespace.c: Revert.
10910 * cp-abi.c: Revert.
10911 * corelow.c: Revert.
10912 * corefile.c: Revert.
10913 * continuations.c: Revert.
10914 * completer.h: Revert.
10915 * completer.c: Revert.
10916 * complaints.c: Revert.
10917 * coffread.c: Revert.
10918 * coff-pe-read.c: Revert.
10919 * cli-out.h: Revert.
10920 * cli-out.c: Revert.
10921 * charset.c: Revert.
10922 * c-varobj.c: Revert.
10923 * c-valprint.c: Revert.
10924 * c-typeprint.c: Revert.
10925 * c-lang.c: Revert.
10926 * buildsym.c: Revert.
10927 * buildsym-legacy.c: Revert.
10928 * build-id.h: Revert.
10929 * build-id.c: Revert.
10930 * btrace.c: Revert.
10931 * bsd-uthread.c: Revert.
10932 * breakpoint.h: Revert.
10933 * breakpoint.c: Revert.
10934 * break-catch-throw.c: Revert.
10935 * break-catch-syscall.c: Revert.
10936 * break-catch-sig.c: Revert.
10937 * blockframe.c: Revert.
10939 * bfin-tdep.c: Revert.
10940 * bfin-linux-tdep.c: Revert.
10941 * bfd-target.c: Revert.
10942 * bcache.c: Revert.
10943 * ax-general.c: Revert.
10944 * ax-gdb.h: Revert.
10945 * ax-gdb.c: Revert.
10946 * avr-tdep.c: Revert.
10948 * auto-load.c: Revert.
10949 * arm-wince-tdep.c: Revert.
10950 * arm-tdep.c: Revert.
10951 * arm-symbian-tdep.c: Revert.
10952 * arm-pikeos-tdep.c: Revert.
10953 * arm-obsd-tdep.c: Revert.
10954 * arm-nbsd-tdep.c: Revert.
10955 * arm-nbsd-nat.c: Revert.
10956 * arm-linux-tdep.c: Revert.
10957 * arm-linux-nat.c: Revert.
10958 * arm-fbsd-tdep.c: Revert.
10959 * arm-fbsd-nat.c: Revert.
10960 * arm-bsd-tdep.c: Revert.
10961 * arch-utils.c: Revert.
10962 * arc-tdep.c: Revert.
10963 * arc-newlib-tdep.c: Revert.
10964 * annotate.h: Revert.
10965 * annotate.c: Revert.
10966 * amd64-windows-tdep.c: Revert.
10967 * amd64-windows-nat.c: Revert.
10968 * amd64-tdep.c: Revert.
10969 * amd64-sol2-tdep.c: Revert.
10970 * amd64-obsd-tdep.c: Revert.
10971 * amd64-obsd-nat.c: Revert.
10972 * amd64-nbsd-tdep.c: Revert.
10973 * amd64-nbsd-nat.c: Revert.
10974 * amd64-nat.c: Revert.
10975 * amd64-linux-tdep.c: Revert.
10976 * amd64-linux-nat.c: Revert.
10977 * amd64-fbsd-tdep.c: Revert.
10978 * amd64-fbsd-nat.c: Revert.
10979 * amd64-dicos-tdep.c: Revert.
10980 * amd64-darwin-tdep.c: Revert.
10981 * amd64-bsd-nat.c: Revert.
10982 * alpha-tdep.c: Revert.
10983 * alpha-obsd-tdep.c: Revert.
10984 * alpha-nbsd-tdep.c: Revert.
10985 * alpha-mdebug-tdep.c: Revert.
10986 * alpha-linux-tdep.c: Revert.
10987 * alpha-linux-nat.c: Revert.
10988 * alpha-bsd-tdep.c: Revert.
10989 * alpha-bsd-nat.c: Revert.
10990 * aix-thread.c: Revert.
10992 * addrmap.c: Revert.
10993 * ada-varobj.c: Revert.
10994 * ada-valprint.c: Revert.
10995 * ada-typeprint.c: Revert.
10996 * ada-tasks.c: Revert.
10997 * ada-lang.c: Revert.
10998 * aarch64-tdep.c: Revert.
10999 * aarch64-ravenscar-thread.c: Revert.
11000 * aarch64-newlib-tdep.c: Revert.
11001 * aarch64-linux-tdep.c: Revert.
11002 * aarch64-linux-nat.c: Revert.
11003 * aarch64-fbsd-tdep.c: Revert.
11004 * aarch64-fbsd-nat.c: Revert.
11005 * aarch32-linux-nat.c: Revert.
11007 2019-04-05 Tom Tromey <tom@tromey.com>
11009 * ft32-tdep.c: Sort headers.
11010 * frv-tdep.c: Sort headers.
11011 * frv-linux-tdep.c: Sort headers.
11012 * frame.c: Sort headers.
11013 * frame-unwind.c: Sort headers.
11014 * frame-base.c: Sort headers.
11015 * fork-child.c: Sort headers.
11016 * findvar.c: Sort headers.
11017 * findcmd.c: Sort headers.
11018 * filesystem.c: Sort headers.
11019 * filename-seen-cache.h: Sort headers.
11020 * filename-seen-cache.c: Sort headers.
11021 * fbsd-tdep.c: Sort headers.
11022 * fbsd-nat.h: Sort headers.
11023 * fbsd-nat.c: Sort headers.
11024 * f-valprint.c: Sort headers.
11025 * f-typeprint.c: Sort headers.
11026 * f-lang.c: Sort headers.
11027 * extension.h: Sort headers.
11028 * extension.c: Sort headers.
11029 * extension-priv.h: Sort headers.
11030 * expprint.c: Sort headers.
11031 * exec.h: Sort headers.
11032 * exec.c: Sort headers.
11033 * exceptions.c: Sort headers.
11034 * event-top.c: Sort headers.
11035 * event-loop.c: Sort headers.
11036 * eval.c: Sort headers.
11037 * elfread.c: Sort headers.
11038 * dwarf2read.h: Sort headers.
11039 * dwarf2read.c: Sort headers.
11040 * dwarf2loc.c: Sort headers.
11041 * dwarf2expr.h: Sort headers.
11042 * dwarf2expr.c: Sort headers.
11043 * dwarf2-frame.c: Sort headers.
11044 * dwarf2-frame-tailcall.c: Sort headers.
11045 * dwarf-index-write.h: Sort headers.
11046 * dwarf-index-write.c: Sort headers.
11047 * dwarf-index-common.c: Sort headers.
11048 * dwarf-index-cache.h: Sort headers.
11049 * dwarf-index-cache.c: Sort headers.
11050 * dummy-frame.c: Sort headers.
11051 * dtrace-probe.c: Sort headers.
11052 * disasm.h: Sort headers.
11053 * disasm.c: Sort headers.
11054 * disasm-selftests.c: Sort headers.
11055 * dictionary.c: Sort headers.
11056 * dicos-tdep.c: Sort headers.
11057 * demangle.c: Sort headers.
11058 * dcache.h: Sort headers.
11059 * dcache.c: Sort headers.
11060 * darwin-nat.h: Sort headers.
11061 * darwin-nat.c: Sort headers.
11062 * darwin-nat-info.c: Sort headers.
11063 * d-valprint.c: Sort headers.
11064 * d-namespace.c: Sort headers.
11065 * d-lang.c: Sort headers.
11066 * ctf.c: Sort headers.
11067 * csky-tdep.c: Sort headers.
11068 * csky-linux-tdep.c: Sort headers.
11069 * cris-tdep.c: Sort headers.
11070 * cris-linux-tdep.c: Sort headers.
11071 * cp-valprint.c: Sort headers.
11072 * cp-support.c: Sort headers.
11073 * cp-namespace.c: Sort headers.
11074 * cp-abi.c: Sort headers.
11075 * corelow.c: Sort headers.
11076 * corefile.c: Sort headers.
11077 * continuations.c: Sort headers.
11078 * completer.h: Sort headers.
11079 * completer.c: Sort headers.
11080 * complaints.c: Sort headers.
11081 * coffread.c: Sort headers.
11082 * coff-pe-read.c: Sort headers.
11083 * cli-out.h: Sort headers.
11084 * cli-out.c: Sort headers.
11085 * charset.c: Sort headers.
11086 * c-varobj.c: Sort headers.
11087 * c-valprint.c: Sort headers.
11088 * c-typeprint.c: Sort headers.
11089 * c-lang.c: Sort headers.
11090 * buildsym.c: Sort headers.
11091 * buildsym-legacy.c: Sort headers.
11092 * build-id.h: Sort headers.
11093 * build-id.c: Sort headers.
11094 * btrace.c: Sort headers.
11095 * bsd-uthread.c: Sort headers.
11096 * breakpoint.h: Sort headers.
11097 * breakpoint.c: Sort headers.
11098 * break-catch-throw.c: Sort headers.
11099 * break-catch-syscall.c: Sort headers.
11100 * break-catch-sig.c: Sort headers.
11101 * blockframe.c: Sort headers.
11102 * block.c: Sort headers.
11103 * bfin-tdep.c: Sort headers.
11104 * bfin-linux-tdep.c: Sort headers.
11105 * bfd-target.c: Sort headers.
11106 * bcache.c: Sort headers.
11107 * ax-general.c: Sort headers.
11108 * ax-gdb.h: Sort headers.
11109 * ax-gdb.c: Sort headers.
11110 * avr-tdep.c: Sort headers.
11111 * auxv.c: Sort headers.
11112 * auto-load.c: Sort headers.
11113 * arm-wince-tdep.c: Sort headers.
11114 * arm-tdep.c: Sort headers.
11115 * arm-symbian-tdep.c: Sort headers.
11116 * arm-pikeos-tdep.c: Sort headers.
11117 * arm-obsd-tdep.c: Sort headers.
11118 * arm-nbsd-tdep.c: Sort headers.
11119 * arm-nbsd-nat.c: Sort headers.
11120 * arm-linux-tdep.c: Sort headers.
11121 * arm-linux-nat.c: Sort headers.
11122 * arm-fbsd-tdep.c: Sort headers.
11123 * arm-fbsd-nat.c: Sort headers.
11124 * arm-bsd-tdep.c: Sort headers.
11125 * arch-utils.c: Sort headers.
11126 * arc-tdep.c: Sort headers.
11127 * arc-newlib-tdep.c: Sort headers.
11128 * annotate.h: Sort headers.
11129 * annotate.c: Sort headers.
11130 * amd64-windows-tdep.c: Sort headers.
11131 * amd64-windows-nat.c: Sort headers.
11132 * amd64-tdep.c: Sort headers.
11133 * amd64-sol2-tdep.c: Sort headers.
11134 * amd64-obsd-tdep.c: Sort headers.
11135 * amd64-obsd-nat.c: Sort headers.
11136 * amd64-nbsd-tdep.c: Sort headers.
11137 * amd64-nbsd-nat.c: Sort headers.
11138 * amd64-nat.c: Sort headers.
11139 * amd64-linux-tdep.c: Sort headers.
11140 * amd64-linux-nat.c: Sort headers.
11141 * amd64-fbsd-tdep.c: Sort headers.
11142 * amd64-fbsd-nat.c: Sort headers.
11143 * amd64-dicos-tdep.c: Sort headers.
11144 * amd64-darwin-tdep.c: Sort headers.
11145 * amd64-bsd-nat.c: Sort headers.
11146 * alpha-tdep.c: Sort headers.
11147 * alpha-obsd-tdep.c: Sort headers.
11148 * alpha-nbsd-tdep.c: Sort headers.
11149 * alpha-mdebug-tdep.c: Sort headers.
11150 * alpha-linux-tdep.c: Sort headers.
11151 * alpha-linux-nat.c: Sort headers.
11152 * alpha-bsd-tdep.c: Sort headers.
11153 * alpha-bsd-nat.c: Sort headers.
11154 * aix-thread.c: Sort headers.
11155 * agent.c: Sort headers.
11156 * addrmap.c: Sort headers.
11157 * ada-varobj.c: Sort headers.
11158 * ada-valprint.c: Sort headers.
11159 * ada-typeprint.c: Sort headers.
11160 * ada-tasks.c: Sort headers.
11161 * ada-lang.c: Sort headers.
11162 * aarch64-tdep.c: Sort headers.
11163 * aarch64-ravenscar-thread.c: Sort headers.
11164 * aarch64-newlib-tdep.c: Sort headers.
11165 * aarch64-linux-tdep.c: Sort headers.
11166 * aarch64-linux-nat.c: Sort headers.
11167 * aarch64-fbsd-tdep.c: Sort headers.
11168 * aarch64-fbsd-nat.c: Sort headers.
11169 * aarch32-linux-nat.c: Sort headers.
11171 2019-04-04 Tom Tromey <tom@tromey.com>
11173 * varobj.c (varobj_create): Update.
11174 * rust-exp.y (struct rust_parser) <update_innermost_block,
11175 lookup_symbol>: New methods.
11176 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11178 (rust_parser::rust_lookup_type)
11179 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11180 * printcmd.c (display_command, do_one_display): Update.
11181 * parser-defs.h (struct parser_state) <parser_state>: Add
11182 "tracker" parameter.
11183 (block_tracker): New member.
11184 (class innermost_block_tracker) <innermost_block_tracker>: Add
11186 <reset>: Remove method.
11187 (innermost_block): Don't declare.
11188 (null_post_parser): Update.
11189 * parse.c (innermost_block): Remove global.
11190 (write_dollar_variable): Update.
11191 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11192 Remove "tracker_types" parameter.
11193 (parse_expression): Add "tracker" parameter.
11194 (parse_expression_for_completion): Update.
11195 (null_post_parser): Add "tracker" parameter.
11196 * p-exp.y: Update rules.
11197 * m2-exp.y: Update rules.
11198 * language.h (struct language_defn) <la_post_parser>: Add
11199 "tracker" parameter.
11200 * go-exp.y: Update rules.
11201 * f-exp.y: Update rules.
11202 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11204 * d-exp.y: Update rules.
11205 * c-exp.y: Update rules.
11206 * breakpoint.c (set_breakpoint_condition): Create an
11207 innermost_block_tracker.
11208 (watch_command_1): Likewise.
11209 * ada-lang.c (resolve): Add "tracker" parameter.
11210 (resolve_subexp): Likewise.
11211 * ada-exp.y (write_var_from_sym): Update.
11213 2019-04-04 Tom Tromey <tom@tromey.com>
11215 * type-stack.h: New file.
11216 * type-stack.c: New file.
11217 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11219 (insert_into_type_stack, insert_type, push_type, push_type_int)
11220 (insert_type_address_space, pop_type, pop_type_int)
11221 (pop_typelist, pop_type_stack, append_type_stack)
11222 (push_type_stack, get_type_stack, push_typelist)
11223 (follow_type_instance_flags, follow_types): Don't declare.
11224 * parse.c (type_stack): Remove global.
11225 (parse_exp_in_context): Update.
11226 (insert_into_type_stack, insert_type, push_type, push_type_int)
11227 (insert_type_address_space, pop_type, pop_type_int)
11228 (pop_typelist, pop_type_stack, append_type_stack)
11229 (push_type_stack, get_type_stack, push_typelist)
11230 (follow_type_instance_flags, follow_types): Remove (moved to
11232 * f-exp.y (type_stack): New global.
11234 (push_kind_type, f_parse): Update.
11235 * d-exp.y (type_stack): New global.
11238 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11240 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11241 (HFILES_NO_SRCDIR): Add type-stack.h.
11243 2019-04-04 Tom Tromey <tom@tromey.com>
11245 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11246 (rust_parser::convert_ast_to_expression, rust_parse)
11247 (rust_lex_test_completion, rust_lex_tests): Update.
11248 * parser-defs.h (struct expr_completion_state): New.
11249 (struct parser_state) <parser_state>: Add completion parameter.
11250 <mark_struct_expression, mark_completion_tag>: New methods.
11251 <parse_completion, m_completion_state>: New members.
11252 (prefixify_expression, null_post_parser): Update.
11253 (mark_struct_expression, mark_completion_tag): Don't declare.
11254 * parse.c (parse_completion, expout_last_struct)
11255 (expout_tag_completion_type, expout_completion_name): Remove
11257 (parser_state::mark_struct_expression)
11258 (parser_state::mark_completion_tag): Now methods.
11259 (prefixify_expression): Add last_struct parameter.
11260 (prefixify_subexp): Likewise.
11261 (parse_exp_1): Update.
11262 (parse_exp_in_context): Add cstate parameter. Update.
11263 (parse_expression_for_completion): Create an
11264 expr_completion_state.
11265 (null_post_parser): Add "completion" parameter.
11266 * p-exp.y: Update rules.
11268 * language.h (struct language_defn) <la_post_parser>: Add
11269 "completing" parameter.
11270 * go-exp.y: Update rules.
11271 (lex_one_token): Update.
11272 * expression.h (parse_completion): Don't declare.
11273 * d-exp.y: Update rules.
11274 (lex_one_token): Update rules.
11275 * c-exp.y: Update rules.
11276 (lex_one_token): Update.
11277 * ada-lang.c (resolve): Add "parse_completion" parameter.
11278 (resolve_subexp): Likewise.
11279 (ada_resolve_function): Likewise.
11281 2019-04-04 Tom Tromey <tom@tromey.com>
11283 * parser-defs.h (struct parser_state) <start_arglist,
11284 end_arglist>: New methods.
11285 <arglist_len, m_funcall_chain>: New members.
11286 (arglist_len, start_arglist, end_arglist): Don't declare.
11287 * parse.c (arglist_len, funcall_chain): Remove global.
11288 (start_arglist, end_arglist): Remove functions.
11289 (parse_exp_in_context): Update.
11290 * p-exp.y: Update rules.
11291 * m2-exp.y: Update rules.
11292 * go-exp.y: Update rules.
11293 * f-exp.y: Update rules.
11294 * d-exp.y: Update rules.
11295 * c-exp.y: Update rules.
11297 2019-04-04 Tom Tromey <tom@tromey.com>
11299 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11300 lex_operator, push_back>: New methods.
11302 (rust_parser::lex_hex, lex_escape): Rename and update.
11303 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11304 (rust_parser::lex_operator): Rename and update.
11305 (rust_parser::lex_number, rustyylex, rustyyerror)
11306 (rust_lex_test_init, rust_lex_test_sequence)
11307 (rust_lex_test_push_back, rust_lex_tests): Update.
11308 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11310 <lexptr, prev_lexptr>: New members.
11311 (lexptr, prev_lexptr): Don't declare.
11312 * parse.c (lexptr, prev_lexptr): Remove globals.
11313 (parse_exp_in_context): Update.
11314 * p-exp.y (yylex, yyerror): Update.
11315 * m2-exp.y (parse_number, yylex, yyerror): Update.
11316 * go-exp.y (lex_one_token, yyerror): Update.
11317 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11318 * d-exp.y (lex_one_token, yyerror): Update.
11319 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11320 (lex_one_token, yyerror): Update.
11321 * ada-lex.l (YY_INPUT): Update.
11322 (rewind_to_char): Update.
11323 * ada-exp.y (yyerror): Update.
11325 2019-04-04 Tom Tromey <tom@tromey.com>
11327 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11328 * parser-defs.h (struct parser_state) <parser_state>: Add new
11330 <comma_terminates>: New member.
11331 (comma_terminates): Don't declare global.
11332 * parse.c (comma_terminates): Remove global.
11333 (parse_exp_in_context): Update.
11334 * p-exp.y (yylex): Update.
11335 * m2-exp.y (yylex): Update.
11336 * go-exp.y (lex_one_token): Update.
11337 * f-exp.y (yylex): Update.
11338 * d-exp.y (lex_one_token): Update.
11339 * c-exp.y (lex_one_token): Update.
11340 * ada-lex.l: Update.
11342 2019-04-04 Tom Tromey <tom@tromey.com>
11344 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11345 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11346 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11347 * parser-defs.h (paren_depth): Don't declare.
11348 * parse.c (paren_depth): Remove global.
11349 (parse_exp_in_context): Update.
11350 * p-exp.y (paren_depth): New global.
11351 (pascal_parse): Initialize it.
11352 * m2-exp.y (paren_depth): New global.
11353 (m2_parse): Initialize it.
11354 * go-exp.y (paren_depth): New global.
11355 (go_parse): Initialize it.
11356 * f-exp.y (paren_depth): New global.
11357 (f_parse): Initialize it.
11358 * d-exp.y (paren_depth): New global.
11359 (d_parse): Initialize it.
11360 * c-exp.y (paren_depth): New global.
11361 (c_parse): Initialize it.
11362 * ada-lex.l (paren_depth): New global.
11363 (lexer_init): Initialize it.
11365 2019-04-04 Tom Tromey <tom@tromey.com>
11367 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11368 (rust_parser::convert_ast_to_type)
11369 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11370 * parser-defs.h (struct parser_state) <parser_state>: Add
11371 parameters. Initialize new members.
11372 <expression_context_block, expression_context_pc>: New members.
11373 * parse.c (expression_context_block, expression_context_pc):
11375 (parse_exp_in_context): Update.
11376 * p-exp.y: Update all rules.
11378 * m2-exp.y: Update all rules.
11380 * go-exp.y (yylex): Update.
11381 * f-exp.y (yylex): Update.
11382 * d-exp.y: Update all rules.
11384 * c-exp.y: Update all rules.
11385 (lex_one_token, classify_name, yylex, c_parse): Update.
11386 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11388 2019-04-04 Tom Tromey <tom@tromey.com>
11390 * gdbarch.h, gdbarch.c: Rebuild.
11391 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11393 (struct stap_parse_info): Replace "parser_state" with
11395 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11396 (parser_state): New class.
11397 * parse.c (expr_builder): Rename.
11398 (expr_builder::release): Rename.
11399 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11400 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11401 (write_exp_elt_longcst, write_exp_elt_floatcst)
11402 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11403 (write_exp_string_vector, write_exp_bitstring)
11404 (write_exp_msymbol, mark_struct_expression)
11405 (write_dollar_variable)
11406 (insert_type_address_space, increase_expout_size): Replace
11407 "parser_state" with "expr_builder".
11408 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11409 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11410 "parser_state" with "expr_builder".
11412 2019-04-04 Tom Tromey <tom@tromey.com>
11414 * rust-exp.y: Replace "parse_language" with method call.
11416 (yylex): Replace "parse_language" with method call.
11418 (yylex): Replace "parse_language" with method call.
11419 * go-exp.y (classify_name): Replace "parse_language" with method
11421 * f-exp.y (yylex): Replace "parse_language" with method call.
11422 * d-exp.y (lex_one_token): Replace "parse_language" with method
11425 (lex_one_token, classify_name, yylex): Replace "parse_language"
11427 * ada-exp.y (find_primitive_type, type_char)
11428 (type_system_address): Replace "parse_language" with method call.
11430 2019-04-04 Tom Tromey <tom@tromey.com>
11432 * rust-exp.y: Replace "parse_gdbarch" with method call.
11433 * parse.c (write_dollar_variable, insert_type_address_space):
11434 Replace "parse_gdbarch" with method call.
11435 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11437 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11439 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11440 "parse_gdbarch" with method call.
11441 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11443 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11444 "parse_gdbarch" with method call.
11445 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11446 "parse_gdbarch" with method call.
11447 * c-exp.y (parse_type, parse_number, classify_name): Replace
11448 "parse_gdbarch" with method call.
11449 * ada-lex.l: Replace "parse_gdbarch" with method call.
11450 * ada-exp.y (parse_type, find_primitive_type, type_char)
11451 (type_system_address): Replace "parse_gdbarch" with method call.
11453 2019-04-04 Tom Tromey <tom@tromey.com>
11455 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11456 * stap-probe.c (stap_parse_argument): Update.
11457 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11458 initial_size parameter.
11459 * rust-exp.y (rust_lex_tests): Update.
11460 * parse.c (parser_state): Update.
11461 (parse_exp_in_context): Update.
11462 * parser-defs.h (struct parser_state) <parser_state>: Remove
11463 "initial_size" parameter.
11465 2019-04-04 Tom Tromey <tom@tromey.com>
11467 * parser-defs.h (increase_expout_size): Don't declare.
11468 * parse.c (increase_expout_size): Now static.
11470 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11472 * gnu-nat.c (gnu_nat_target::wait): Fix
11473 target_waitstatus_to_string call.
11475 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11477 * eval.c (evaluate_subexp_standard): Handle internal functions
11478 during Fortran function call handling.
11480 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11482 * NEWS: Mention new internal functions.
11483 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11484 (read_base_type): Use dwarf2_init_complex_target_type.
11485 * value.c (creal_internal_fn): New function.
11486 (cimag_internal_fn): New function.
11487 (_initialize_values): Register new internal functions.
11489 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11491 * infrun.c (stop_all_threads): If debug_infrun, always
11492 trace the wait status after wait_one, using
11493 target_waitstatus_to_string and target_pid_to_str.
11494 (handle_inferior_event): Replace various trace of
11495 wait status kind by a single trace.
11496 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11497 wait status kind image by target_waitstatus_to_string.
11498 * target/waitstatus.c (target_waitstatus_to_string): Fix
11501 2019-04-01 Tom Tromey <tromey@adacore.com>
11504 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11506 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11507 Pedro Alves <palves@redhat.com>
11509 * top.c (quit_force): Call 'finalize_values'.
11510 * value.c (finalize_values): New function.
11511 * value.h (finalize_values): Declare.
11513 2019-03-30 Eli Zaretskii <eliz@gnu.org>
11515 * NEWS: Announce $_gdb_major and $_gdb_minor.
11517 * top.c (init_gdb_version_vars): New function.
11518 (gdb_init): Call init_gdb_version_vars.
11520 2019-03-29 Tom Tromey <tromey@adacore.com>
11522 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11523 help text. Remove dead code.
11525 2019-03-29 Keith Seitz <keiths@redhat.com>
11527 From Siddhesh Poyarekar:
11528 * f-lang.h (f77_get_upperbound): Return LONGEST.
11529 (f77_get_lowerbound): Likewise.
11530 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11531 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11533 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11534 plongest to format print it.
11535 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11536 (f77_get_upperbound): Likewise.
11537 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11538 LOWER_BOUND to LONGEST.
11539 (f77_create_arrayprint_offset_tbl): Likewise.
11541 2019-03-29 Keith Seitz <keiths@redhat.com>
11543 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11544 %s/pulongest for TYPE_LENGTH instead of %d in format
11546 * ada-typerint.c (ada_print_type): Likewise.
11547 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11548 * compile/compile-c-support.c (generate_register_struct): Likewise.
11549 * gdbtypes.c (recursive_dump_type): Likewise.
11550 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11551 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11552 instead of %d in format strings.
11553 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11554 to std::min to ULONGEST.
11555 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11556 instead of %d in format strings.
11557 * tracepoint.c (info_scope_command): Likewise.
11558 * typeprint.c (print_offset_data::update)
11559 (print_offset_data::finish): Likewise.
11560 * xtensa-tdep.c (xtensa_store_return_value)
11561 (xtensa_push_dummy_call): Likewise.
11563 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11565 * windows-nat.c (display_selector): Fixed format specifications
11568 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11570 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11572 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11574 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11575 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11576 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11577 (nios2_linux_init_abi): Install it.
11579 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11581 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11583 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11585 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11587 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11588 Tom Tromey <tromey@adacore.com>
11590 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11592 2019-03-26 Joel Brobecker <brobecker@adacore.com>
11594 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11595 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11596 method to compute the bounds of range types. Also print "[evaluated]"
11597 if the bounds' values come from a dynamic evaluation.
11599 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11601 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11602 whitespace when pretty printing is on.
11604 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11606 * ppc-linux-nat.c: Add include.
11608 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11610 * NEWS: Mention AArch64 Pointer Authentication.
11612 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11614 * arm-linux-nat.c: Add include.
11616 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11618 * source-cache.c (source_cache::get_source_lines): Re-read
11619 fullname after calling open_source_file.
11621 2019-03-25 John Baldwin <jhb@FreeBSD.org>
11623 * NEWS: Mention TLS support for FreeBSD.
11625 2019-03-25 Tom Tromey <tromey@adacore.com>
11627 * minsyms.c (BUNCH_SIZE): Update comment.
11628 (~minimal_symbol_reader): Remove old comment.
11629 (compact_minimal_symbols): Update comment.
11630 (minimal_symbol_reader::install): Remove old comment. Update
11633 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11635 * s390-linux-nat.c: Add include.
11637 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11639 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11640 Call linux_get_hwcap.
11641 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11643 (aarch64_linux_get_hwcap): Remove function.
11644 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11646 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11648 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11649 * linux-tdep.c (linux_get_hwcap): Add function.
11650 (linux_get_hwcap2): Likewise.
11651 * linux-tdep.h (linux_get_hwcap): Add declaration.
11652 (linux_get_hwcap2): Likewise.
11653 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11654 (ppc_linux_get_hwcap2): Likewise.
11655 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11657 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11658 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11659 (ppc_linux_nat_target::read_description): Likewise.
11660 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11661 * s390-linux-nat.c: Likewise.
11662 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11664 2019-03-24 Tom Tromey <tom@tromey.com>
11666 * ada-lang.c (standard_lookup): Simplify initialization.
11667 (ada_lookup_symbol_nonlocal): Simplify return.
11668 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11669 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11670 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11671 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11673 * solib.c (solib_global_lookup): Simplify.
11674 * symtab.c (null_block_symbol): Remove.
11675 (symbol_cache_lookup): Simplify returns.
11676 (lookup_language_this): Simplify returns.
11677 (lookup_symbol_aux): Simplify return.
11678 (lookup_local_symbol): Simplify returns.
11679 (lookup_global_symbol_from_objfile): Simplify return.
11680 (lookup_symbol_in_objfile_symtabs)
11681 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11682 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11683 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11684 * cp-namespace.c (cp_lookup_bare_symbol)
11685 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11686 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11687 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11688 (cp_lookup_symbol_via_imports): Simplify initialization.
11689 (find_symbol_in_baseclass): Likewise.
11690 * symtab.h (null_block_symbol): Remove.
11691 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11692 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11693 (d_lookup_symbol_module): Likewise.
11694 (find_symbol_in_baseclass): Simplify initialization.
11696 2019-03-24 Tom Tromey <tom@tromey.com>
11698 * expression.h: Don't include symtab.h.
11699 (struct block): Forward declare.
11701 2019-03-24 Tom Tromey <tom@tromey.com>
11703 * c-exp.y (typebase): Remove casts.
11704 * gdbtypes.c (lookup_unsigned_typename, )
11705 (lookup_signed_typename): Remove cast.
11706 * eval.c (parse_to_comma_and_eval): Remove cast.
11707 * parse.c (write_dollar_variable): Remove cast.
11708 * block.h (struct block) <superblock>: Now const.
11709 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11710 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11711 (map_block): Make "block" const.
11712 * symfile.h (struct quick_symbol_functions)
11713 <map_matching_symbols>: Constify block argument to "callback".
11714 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11716 (find_pc_sect_compunit_symtab): Make "b" const.
11717 (find_symbol_at_address): Likewise.
11718 (search_symbols): Likewise.
11719 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11720 (dw2_debug_names_lookup_symbol): Likewise.
11721 (dw2_map_matching_symbols): Update.
11722 * p-valprint.c (pascal_val_print): Remove "block".
11723 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11724 (aux_add_nonlocal_symbols): Make "block" const.
11725 (resolve_subexp): Remove cast.
11726 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11728 (iterate_over_file_blocks): Likewise.
11729 * f-exp.y (%union) <bval>: Remove.
11730 * coffread.c (patch_opaque_types): Make "b" const.
11731 * spu-tdep.c (spu_catch_start): Make "block" const.
11732 * c-valprint.c (print_unpacked_pointer): Remove "block".
11733 * symmisc.c (dump_symtab_1): Make "b" const.
11734 (block_depth): Make "block" const.
11735 * d-exp.y (%union) <bval>: Remove.
11736 * cp-support.h (cp_lookup_rtti_type): Update.
11737 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11738 * psymtab.c (psym_lookup_symbol): Make "block" const.
11739 (maintenance_check_psymtabs): Make "b" const.
11740 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11741 (enumerate_locals, enumerate_args): Update.
11742 * python/py-symtab.c (stpy_global_block): Make "block" const.
11743 (stpy_static_block): Likewise.
11744 * inline-frame.c (block_starting_point_at): Make "new_block"
11746 * block.c (find_block_in_blockvector): Make return type const.
11747 (blockvector_for_pc_sect): Make "b" const.
11748 (find_block_in_blockvector): Make "b" const.
11750 2019-03-23 Tom Tromey <tom@tromey.com>
11752 * varobj.c (varobj_create): Update.
11753 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11754 * printcmd.c (display_command, do_one_display): Don't reset
11756 * parser-defs.h (enum innermost_block_tracker_type): Move to
11758 (innermost_block): Update comment.
11759 * parse.c (parse_exp_1): Add tracker_types parameter.
11760 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11761 tracker_types parameter. Reset innermost_block.
11762 (parse_exp_in_context): Remove.
11763 (parse_expression_for_completion): Update.
11764 * objfiles.c (~objfile): Don't reset expression_context_block or
11766 * expression.h (enum innermost_block_tracker_type): Move from
11768 (parse_exp_1): Add tracker_types parameter.
11769 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11770 reset innermost_block.
11772 2019-03-23 Tom Tromey <tom@tromey.com>
11774 * objfiles.h: Include bcache.h.
11776 2019-03-23 Tom Tromey <tom@tromey.com>
11778 * linespec.c (get_current_search_block): Use
11779 scoped_restore_current_language.
11780 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11782 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11783 Jiong Wang <jiong.wang@arm.com>
11785 * aarch64-linux-tdep.c
11786 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11788 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11790 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11791 Jiong Wang <jiong.wang@arm.com>
11793 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11795 (aarch64_analyze_prologue_test): Add PACIASP test.
11796 (aarch64_prologue_prev_register): Unmask PC value.
11798 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11799 Jiong Wang <jiong.wang@arm.com>
11801 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11802 (aarch64_dwarf2_prev_register): Unmask PC value.
11803 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11804 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11805 DW_CFA_AARCH64_negate_ra_state.
11806 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11808 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11809 Jiong Wang <jiong.wang@arm.com>
11811 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11813 (aarch64_pseudo_register_name): Likewise.
11814 (aarch64_pseudo_register_type): Likewise.
11815 (aarch64_pseudo_register_reggroup_p): Likewise.
11816 (aarch64_gdbarch_init): Add pauth registers.
11817 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11818 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11819 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11820 (struct gdbarch_tdep): Add regnum for ra_state.
11822 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11823 Jiong Wang <jiong.wang@arm.com>
11825 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11827 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11828 Jiong Wang <jiong.wang@arm.com>
11830 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11832 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11833 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11834 (aarch64_gdbarch_init): Add puth registers.
11835 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11836 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11837 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11839 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11840 Jiong Wang <jiong.wang@arm.com>
11842 * aarch64-linux-nat.c
11843 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11844 * aarch64-linux-tdep.c
11845 (aarch64_linux_core_read_description): Likewise.
11846 (aarch64_linux_get_hwcap): New function.
11847 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11848 (aarch64_linux_get_hwcap): New declaration.
11850 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11851 Jiong Wang <jiong.wang@arm.com>
11853 * aarch64-linux-nat.c
11854 (aarch64_linux_nat_target::read_description): Add pauth param.
11855 * aarch64-linux-tdep.c
11856 (aarch64_linux_core_read_description): Likewise.
11857 * aarch64-tdep.c (struct target_desc): Add in pauth.
11858 (aarch64_read_description): Add pauth param.
11859 (aarch64_gdbarch_init): Likewise.
11860 * aarch64-tdep.h (aarch64_read_description): Likewise.
11861 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11862 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11863 * features/Makefile: Add new files.
11864 * features/aarch64-pauth.c: New file.
11865 * features/aarch64-pauth.xml: New file.
11867 2019-03-20 Tom Tromey <tromey@adacore.com>
11869 * infrun.c (handle_inferior_event): Rename from
11870 handle_inferior_event_1. Create a scoped_value_mark.
11871 (handle_inferior_event): Remove.
11873 2019-03-19 Tom Tromey <tromey@adacore.com>
11875 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11876 * infrun.h (print_stop_event): Add "displays" parameter.
11877 * infrun.c (print_stop_event): Add "displays" parameter.
11879 2019-03-19 Pedro Alves <palves@redhat.com>
11881 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11882 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11883 to -1. Fix TABs vs spaces.
11884 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11885 * tui/tui-out.h (tui_ui_out) Add intro comments.
11886 <m_line, m_start_of_line>: In-class initialize, and add describing
11889 2019-03-18 Alan Hayward <alan.hayward@arm.com>
11891 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11893 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
11895 2019-03-18 Pedro Alves <palves@redhat.com>
11896 Eli Zaretskii <eliz@gnu.org>
11898 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
11899 m_line and m_start_of_line.
11901 2019-03-18 Eli Zaretskii <eliz@gnu.org>
11903 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
11904 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
11905 it returns a newline. This fixes a regression in TU mode, whereby
11906 the next line is output on the same screen line as the user input.
11908 2019-03-18 Tom Tromey <tromey@adacore.com>
11910 * minsyms.c (minimal_symbol_reader::install): Remove call to
11913 2019-03-18 Pedro Alves <palves@redhat.com>
11915 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
11917 (apply_style): New, factored out from ...
11918 (apply_ansi_escape): ... this. Handle reverse video mode.
11919 (tui_set_reverse_mode): New function.
11920 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
11921 * tui/tui-winsource.c (tui_show_source_line): Use
11922 tui_set_reverse_mode instead of setting A_STANDOUT.
11923 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
11924 New setter methods.
11926 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
11928 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
11931 2019-03-18 Tom Tromey <tromey@adacore.com>
11933 * ada-lang.c (empty_array): Add "high" parameter.
11934 (ada_evaluate_subexp): Update.
11936 2019-03-17 Sergei Trofimovich <siarheit@google.com>
11938 * unittests/string_view-selftests.c: Define
11939 _initialize_string_view_selftests unconditionally.
11941 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11944 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
11946 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11949 * windows-nat.c (display_selector): Fix format specifiers.
11951 2019-03-17 Eli Zaretskii <eliz@gnu.org>
11953 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
11954 tui_refill_source_window instead of tui_refresh_win, to update the
11955 current execution line. This fixes redisplay of the current line
11956 when stepping through the code with "next" or "step".
11958 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11960 * source-cache.c (source_cache::get_source_lines): Call
11961 find_source_lines to initialize s->nlines. This fixes vertical
11962 scrolling of TUI source window when the DOWN arrow is pressed.
11964 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11966 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
11967 linux-thread-db.c (_initialize_thread_db): Likewise.
11969 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11971 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
11972 wclrtoeol in tui_show_source_line". This reverts changes made in
11973 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11975 2019-03-15 Tom Tromey <tom@tromey.com>
11977 * symtab.h (struct minimal_symbol): Derive from
11978 general_symbol_info.
11979 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11980 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11981 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11982 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11983 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11984 (MSYMBOL_SEARCH_NAME): Update.
11985 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11986 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11987 * minsyms.c (minimal_symbol_reader::record_full): Update.
11989 2019-03-15 Tom Tromey <tom@tromey.com>
11991 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
11993 2019-03-15 Tom Tromey <tom@tromey.com>
11995 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
11996 unique_xmalloc_ptr.
11997 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
11999 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12000 (build_minimal_symbol_hash_tables)
12001 (minimal_symbol_reader::install): Update.
12003 2019-03-15 Tom Tromey <tom@tromey.com>
12005 * symtab.c (create_demangled_names_hash): Update.
12006 (symbol_set_names): Update.
12007 * objfiles.h (struct objfile_per_bfd_storage)
12008 <demangled_names_hash>: Now an htab_up.
12009 * objfiles.c (objfile_per_bfd_storage): Simplify.
12011 2019-03-15 Tom Tromey <tom@tromey.com>
12013 * objfiles.h (struct objfile_per_bfd_storage): Declare
12015 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12017 (get_objfile_bfd_data): Use new. Don't initialize
12019 (free_objfile_per_bfd_storage): Remove.
12020 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12022 2019-03-15 Tom Tromey <tom@tromey.com>
12024 * symfile.c (reread_symbols): Update.
12025 * objfiles.c (objfile::objfile): Update.
12026 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12027 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12029 (minimal_symbol_reader::install): Update.
12030 (terminate_minimal_symbol_table): Remove.
12031 * jit.c (jit_object_close_impl): Update.
12033 2019-03-15 Tom Tromey <tom@tromey.com>
12035 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12038 2019-03-15 Tom Tromey <tom@tromey.com>
12040 * objfiles.h (struct objfile_per_bfd_storage)
12041 <demangled_hash_languages>: Now a bitset.
12042 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12043 (lookup_minimal_symbol): Update.
12045 2019-03-15 Tom Tromey <tom@tromey.com>
12047 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12048 Don't return the symbol.
12049 * coffread.c (record_minimal_symbol): Use record_full.
12051 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12053 The MS-Windows port of ncurses fails to switch to a color pair if
12054 one or both of the colors are the implicit default colors. This
12055 change records the default colors when TUI is initialized, and
12056 then specifies them explicitly when a color pair uses the default
12057 colors. This allows color styling in TUI mode on MS-Windows.
12059 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12061 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12062 colors in ncurses_norm_attr.
12063 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12064 "none", replace it with the default color recorded in
12067 2019-03-14 Tom Tromey <tromey@adacore.com>
12069 * source-cache.h (class source_cache) <get_source_lines>: Return
12071 * source-cache.c (source_cache::extract_lines): Handle case where
12072 first_pos==npos. Return std::string.
12073 (source_cache::get_source_lines): Update.
12075 2019-03-14 Tom Tromey <tromey@adacore.com>
12077 * NEWS: Add item for "style sources" commands.
12078 * source-cache.c (source_cache::get_source_lines): Check
12080 * cli/cli-style.c (source_styling): New global.
12081 (_initialize_cli_style): Add "style sources" commands.
12082 (show_style_sources): New function.
12083 * cli/cli-style.h (source_styling): Declare.
12085 2019-03-14 Pedro Alves <palves@redhat.com>
12086 Tom Tromey <tromey@adacore.com>
12088 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12089 * tui/tui-winsource.c (tui_refill_source_window): New function,
12091 (tui_horizontal_source_scroll): ... here. Move some logic.
12092 * cli/cli-style.c (set_style_enabled): Notify new observable.
12093 * tui/tui-hooks.c (tui_redisplay_source): New function.
12094 (tui_attach_detach_observers): Attach or detach
12095 tui_redisplay_source.
12096 * observable.h (source_styling_changed): New observable.
12097 * observable.c: Define source_styling_changed observable.
12099 2019-03-13 Tom Tromey <tromey@adacore.com>
12101 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12102 (i386_gnu_nat_target::store_registers): Update.
12103 * target-debug.h (target_debug_print_std_string): New macro.
12104 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12105 * windows-tdep.c (display_one_tib): Update.
12106 * tui/tui-stack.c (tui_make_status_line): Update.
12107 * top.c (print_inferior_quit_action): Update.
12108 * thread.c (thr_try_catch_cmd): Update.
12109 (add_thread_with_info): Update.
12110 (thread_target_id_str): Update.
12111 (thr_try_catch_cmd): Update.
12112 (thread_command): Update.
12113 (thread_find_command): Update.
12114 * record-btrace.c (record_btrace_target::info_record)
12115 (record_btrace_resume_thread, record_btrace_target::resume)
12116 (record_btrace_cancel_resume, record_btrace_step_thread)
12117 (record_btrace_target::wait, record_btrace_target::wait)
12118 (record_btrace_target::wait, record_btrace_target::stop): Update.
12119 * progspace.c (print_program_space): Update.
12120 * process-stratum-target.c
12121 (process_stratum_target::thread_address_space): Update.
12122 * linux-fork.c (linux_fork_mourn_inferior)
12123 (detach_checkpoint_command, info_checkpoints_command)
12124 (linux_fork_context): Update.
12125 (linux_fork_detach): Update.
12126 (class scoped_switch_fork_info): Update.
12127 (delete_checkpoint_command): Update.
12128 * infrun.c (follow_fork_inferior): Update.
12129 (follow_fork_inferior): Update.
12130 (proceed_after_vfork_done): Update.
12131 (handle_vfork_child_exec_or_exit): Update.
12132 (follow_exec): Update.
12133 (displaced_step_prepare_throw): Update.
12134 (displaced_step_restore): Update.
12135 (start_step_over): Update.
12136 (resume_1): Update.
12137 (clear_proceed_status_thread): Update.
12139 (print_target_wait_results): Update.
12140 (do_target_wait): Update.
12141 (context_switch): Update.
12142 (stop_all_threads): Update.
12143 (restart_threads): Update.
12144 (finish_step_over): Update.
12145 (handle_signal_stop): Update.
12146 (switch_back_to_stepped_thread): Update.
12147 (keep_going_pass_signal): Update.
12148 (print_exited_reason): Update.
12149 (normal_stop): Update.
12150 * inferior.c (inferior_pid_to_str): Change return type.
12151 (print_selected_inferior): Update.
12152 (add_inferior): Update.
12153 (detach_inferior): Update.
12154 * dummy-frame.c (fprint_dummy_frames): Update.
12155 * dcache.c (dcache_info_1): Update.
12156 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12157 (btrace_fetch, btrace_clear): Update.
12158 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12159 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12161 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12162 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12163 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12164 * gdbarch.c, gdbarch.h: Rebuild.
12165 * gdbarch.sh (core_pid_to_str): Change return type.
12166 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12168 (windows_nat_target::pid_to_str): Change return type.
12169 (windows_delete_thread): Update.
12170 (windows_nat_target::attach): Update.
12171 (windows_nat_target::files_info): Update.
12172 * target-delegates.c: Rebuild.
12173 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12175 (sol_thread_target::pid_to_str): Change return type.
12176 * remote.c (class remote_target) <pid_to_str>: Change return
12178 (remote_target::pid_to_str): Change return type.
12179 (extended_remote_target::attach, remote_target::remote_stop_ns)
12180 (remote_target::remote_notif_remove_queued_reply)
12181 (remote_target::push_stop_reply, remote_target::disable_btrace):
12183 (extended_remote_target::attach): Update.
12184 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12186 (gdbsim_target::pid_to_str): Change return type.
12187 * ravenscar-thread.c (struct ravenscar_thread_target)
12188 <pid_to_str>: Change return type.
12189 (ravenscar_thread_target::pid_to_str): Change return type.
12190 * procfs.c (class procfs_target) <pid_to_str>: Change return
12192 (procfs_target::pid_to_str): Change return type.
12193 (procfs_target::attach): Update.
12194 (procfs_target::detach): Update.
12195 (procfs_target::fetch_registers): Update.
12196 (procfs_target::store_registers): Update.
12197 (procfs_target::wait): Update.
12198 (procfs_target::files_info): Update.
12199 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12200 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12202 (nto_procfs_target::pid_to_str): Change return type.
12203 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12204 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12206 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12207 (exit_lwp): Update.
12208 (attach_proc_task_lwp_callback, get_detach_signal)
12209 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12210 (linux_nat_target::resume, wait_lwp, stop_callback)
12211 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12212 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12213 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12214 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12215 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12217 (inf_ptrace_target::attach): Update.
12218 (inf_ptrace_target::files_info): Update.
12219 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12221 (go32_nat_target::pid_to_str): Change return type.
12222 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12223 (gnu_nat_target::wait): Update.
12224 (gnu_nat_target::wait): Update.
12225 (gnu_nat_target::resume): Update.
12226 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12227 (fbsd_nat_target::wait): Update.
12228 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12230 (darwin_nat_target::attach): Update.
12231 * corelow.c (class core_target) <pid_to_str>: Change return type.
12232 (core_target::pid_to_str): Change return type.
12233 * target.c (normal_pid_to_str): Change return type.
12234 (default_pid_to_str): Likewise.
12235 (target_pid_to_str): Change return type.
12236 (target_translate_tls_address): Update.
12237 (target_announce_detach): Update.
12238 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12240 (bsd_uthread_target::pid_to_str): Change return type.
12241 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12243 (bsd_kvm_target::pid_to_str): Change return type.
12244 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12246 (aix_thread_target::pid_to_str): Change return type.
12247 * target.h (struct target_ops) <pid_to_str>: Change return type.
12248 (target_pid_to_str, normal_pid_to_str): Likewise.
12249 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12251 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12253 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12255 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12257 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12259 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12262 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12264 * NEWS: Mention that the new default MI version is 3. Mention
12265 changes to the output of commands and events that deal with
12266 multi-location breakpoints.
12267 * breakpoint.c: Include "mi/mi-out.h".
12268 (print_one_breakpoint): Change output syntax if using MI version
12270 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12272 (mi_multi_location_breakpoint_output_fixed): New.
12273 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12274 (mi_cmd_fix_multi_location_breakpoint_output): New.
12275 (mi_multi_location_breakpoint_output_fixed): New.
12276 * mi/mi-cmds.c (mi_cmds): Register command
12277 -fix-multi-location-breakpoint-output.
12278 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12281 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12283 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12284 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12285 instantiate mi_ui_out based on interpreter name.
12286 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12287 * mi/mi-main.c (mi_load_progress): Likewise.
12289 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12291 * NEWS: Combine separate "New targets" sections for 8.3.
12293 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12295 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12296 (ppcfbsd_init_abi): Install gdbarch
12297 "fetch_tls_load_module_address" and "get_thread_local_address"
12300 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12302 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12303 (riscv_fbsd_init_abi): Install gdbarch
12304 "fetch_tls_load_module_address" and "get_thread_local_address"
12307 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12309 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12310 (i386fbsd_init_abi): Install gdbarch
12311 "fetch_tls_load_module_address" and "get_thread_local_address"
12314 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12316 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12317 (amd64fbsd_init_abi): Install gdbarch
12318 "fetch_tls_load_module_address" and "get_thread_local_address"
12321 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12323 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12324 (struct fbsd_pspace_data): New type.
12325 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12326 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12327 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12328 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12329 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12331 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12333 * gdbtypes.c (lookup_struct_elt): New function.
12334 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12335 * gdbtypes.h (struct struct_elt): New type.
12336 (lookup_struct_elt): New prototype.
12338 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12340 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12341 remove disabled code block.
12343 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12345 * gdbarch.sh (get_thread_local_address): New method.
12346 * gdbarch.h, gdbarch.c: Regenerate.
12347 * target.c (target_translate_tls_address): Use
12348 gdbarch_get_thread_local_address if present instead of
12349 target::get_thread_local_address.
12351 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12353 * target.h (target::get_thread_local_address): Update comment.
12355 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12357 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12358 objfile->separate_debug_objfile_backlink if not NULL.
12360 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12362 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12363 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12364 (amd64bsd_store_inferior_registers): Likewise.
12365 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12366 Enable segment base registers.
12367 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12368 PT_GETFSBASE and PT_GETGSBASE.
12369 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12371 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12372 segment base registers.
12373 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12375 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12377 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12378 Update calls to i386_target_description to add 'segments'
12380 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12381 add segment base registers.
12382 * arch/i386.c (i386_create_target_description): Add 'segments'
12383 parameter to enable segment base registers.
12384 * arch/i386.h (i386_create_target_description): Likewise.
12385 * features/i386/32bit-segments.xml: New file.
12386 * features/i386/32bit-segments.c: Generate.
12387 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12388 call to i386_target_description to add 'segments' parameter.
12389 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12390 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12391 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12392 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12393 if feature is present.
12394 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12395 Add 'segments' parameter to call to i386_target_description.
12396 (i386_target_description): Add 'segments' parameter to enable
12397 segment base registers.
12398 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12399 to call to i386_target_description.
12400 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12401 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12402 Define I386_NUM_REGS.
12403 (i386_target_description): Add 'segments' parameter to enable
12404 segment base registers.
12406 2019-03-12 Eli Zaretskii <eliz@gnu.org>
12409 * source-cache.c: #undef open and close, to avoid unresolved
12410 externals during linking.
12412 2019-03-12 Tom Tromey <tromey@adacore.com>
12414 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12415 const. Add initializers.
12416 (_initialize_remote): Don't initialize ptid globals.
12418 2019-03-12 Pedro Alves <palves@redhat.com>
12420 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12422 2019-03-12 Pedro Alves <palves@redhat.com>
12424 * cp-name-parser.y (main): Remove unused 'len' variable.
12426 2019-03-12 Tom Tromey <tromey@adacore.com>
12428 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12429 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12431 2019-03-12 Tom Tromey <tromey@adacore.com>
12433 * linux-nat.c (iterate_over_lwps): Update.
12434 (stop_callback): Remove parameter.
12435 (stop_wait_callback, detach_callback, resume_set_callback)
12436 (select_singlestep_lwp_callback, set_ignore_sigint)
12437 (status_callback, resumed_callback, resume_clear_callback)
12438 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12440 (linux_nat_target::detach, linux_nat_target::resume)
12441 (linux_stop_and_wait_all_lwps, select_event_lwp)
12442 (linux_nat_filter_event, linux_nat_wait_1)
12443 (linux_nat_target::kill, linux_nat_target::stop)
12444 (linux_nat_target::stop): Update.
12445 (linux_nat_resume_callback): Change type.
12446 (resume_stopped_resumed_lwps, count_events_callback)
12447 (select_event_lwp_callback): Likewise.
12448 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12449 * arm-linux-nat.c (struct update_registers_data): Remove.
12450 (update_registers_callback): Change type.
12451 (arm_linux_insert_hw_breakpoint1): Update.
12452 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12454 (x86_linux_dr_set_addr): Update.
12455 (x86_linux_dr_set_control): Update.
12456 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12457 (iterate_over_lwps): Use gdb::function_view.
12458 * nat/aarch64-linux-hw-point.c (struct
12459 aarch64_dr_update_callback_param): Remove.
12460 (debug_reg_change_callback): Change type.
12461 (aarch64_notify_debug_reg_change): Update.
12462 * s390-linux-nat.c (s390_refresh_per_info): Update.
12464 2019-03-11 Tom Tromey <tromey@adacore.com>
12466 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12467 redundant assignment to "this_cu".
12469 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12471 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12473 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12475 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12477 (rank_one_type): ... this.
12479 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12481 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12483 (rank_one_type): ... this.
12485 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12487 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12489 (rank_one_type): ... this.
12491 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12493 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12495 (rank_one_type): ... this.
12497 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12499 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12501 (rank_one_type): ... this.
12503 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12505 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12507 (rank_one_type): ... this.
12509 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12511 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12513 (rank_one_type): ... this.
12515 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12517 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12519 (rank_one_type): ... this.
12521 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12523 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12525 (rank_one_type): ... this.
12527 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12529 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12531 (rank_one_type): ... this.
12533 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12535 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12537 (rank_one_type): ... this.
12539 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12541 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12543 (rank_one_type): ... this.
12545 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12547 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12548 inferior-events' shows the example events.
12550 2019-03-08 Eli Zaretskii <eliz@gnu.org>
12552 Support styling on native MS-Windows console
12555 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12556 on MS-Windows if $TERM is not defined.
12558 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12560 * posix-hdep.c (gdb_console_fputs):
12561 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12563 * ui-file.h (gdb_console_fputs): Add prototype.
12565 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12566 back to fputs only if the former returns zero.
12568 2019-03-07 Tom Tromey <tom@tromey.com>
12570 * symmisc.c (print_symbol_bcache_statistics): Update.
12571 (print_objfile_statistics): Update.
12572 * symfile.c (allocate_symtab): Update.
12573 * stabsread.c: Don't include bcache.h.
12574 * psymtab.h (struct psymbol_bcache): Don't declare.
12575 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12576 (psymbol_bcache_init, psymbol_bcache_free)
12577 (psymbol_bcache_get_bcache): Don't declare.
12578 * psymtab.c (struct psymbol_bcache): Remove.
12579 (psymtab_storage::psymtab_storage): Update.
12580 (psymtab_storage::~psymtab_storage): Update.
12581 (psymbol_bcache_init, psymbol_bcache_free)
12582 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12583 (add_psymbol_to_bcache): Update.
12584 (allocate_psymtab): Update.
12585 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12586 macro_cache>: No longer pointers.
12587 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12588 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12589 * macrotab.c (macro_bcache): Update.
12590 * macroexp.c: Don't include bcache.h.
12591 * gdbtypes.c (check_types_worklist): Update.
12592 (types_deeply_equal): Remove TRY/CATCH. Update.
12593 * elfread.c (elf_symtab_read): Update.
12594 * dwarf2read.c: Don't include bcache.h.
12595 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12596 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12597 (print_bcache_statistics, bcache_memory_used): Don't declare.
12598 (struct bcache): Move from bcache.c. Add constructor, destructor,
12599 methods. Rename all data members.
12600 * bcache.c (struct bcache): Move to bcache.h.
12601 (bcache::expand_hash_table): Rename from expand_hash_table.
12603 (bcache::insert): Rename from bcache_full.
12604 (bcache::compare): Rename from bcache_compare.
12605 (bcache_xmalloc): Remove.
12606 (bcache::~bcache): Rename from bcache_xfree.
12607 (bcache::print_statistics): Rename from print_bcache_statistics.
12608 (bcache::memory_used): Rename from bcache_memory_used.
12610 2019-03-07 Pedro Alves <palves@redhat.com>
12612 * infrun.c (normal_stop): Also check for
12613 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12615 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12617 * f-lang.c (value_from_host_double): Moved to...
12618 * value.c (value_from_host_double): ...here.
12619 * value.h (value_from_host_double): Declare.
12620 * guile/scm-math.c (vlscm_convert_typed_number): Use
12621 value_from_host_double.
12622 (vlscm_convert_number): Likewise.
12623 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12624 * python/py-value.c (convert_value_from_python): Likewise.
12626 2019-03-06 Tom Tromey <tom@tromey.com>
12628 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12630 2019-03-06 Tom Tromey <tom@tromey.com>
12632 * utils.h (free_current_contents): Don't declare.
12633 * utils.c (free_current_contents): Remove.
12635 2019-03-06 Tom Tromey <tom@tromey.com>
12637 * top.c (quit_force): Update.
12638 * main.c (captured_command_loop): Update.
12639 * common/new-op.c (operator new): Update.
12640 * common/common-exceptions.c (struct catcher)
12641 <save_cleanup_chain>: Remove member.
12642 (exceptions_state_mc_init): Update.
12643 (exception_try_scope_entry): Return nullptr.
12644 (exception_try_scope_exit, exception_rethrow)
12645 (throw_exception_sjlj, throw_exception_cxx): Update.
12646 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12647 (all_cleanups, do_cleanups, discard_cleanups)
12648 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12649 (restore_cleanups, restore_final_cleanups): Don't declare.
12650 (do_final_cleanups): Remove parameter.
12651 * common/cleanups.c (cleanup_chain, make_cleanup)
12652 (make_cleanup_dtor, all_cleanups, do_cleanups)
12653 (discard_my_cleanups, discard_cleanups)
12654 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12655 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12656 (null_cleanup): Remove.
12657 (do_final_cleanups): Remove parameter.
12659 2019-03-06 Tom Tromey <tom@tromey.com>
12661 * remote.c (remote_target::remote_parse_stop_reply): Use
12662 unique_xmalloc_ptr.
12664 2019-03-06 Tom Tromey <tom@tromey.com>
12666 * stabsread.c (struct stabs_field_info): Rename from field_info.
12667 <list, fnlist>: Add initializers.
12668 <obstack>: New member.
12669 (read_member_functions, read_struct_fields, read_baseclasses):
12670 Allocate on obstack. Don't use cleanups.
12671 (read_one_struct_field, read_member_functions, read_struct_fields)
12672 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12673 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12674 (read_struct_type): Update.
12676 2019-03-06 Tom Tromey <tom@tromey.com>
12678 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12679 * common/filestuff.h (make_cleanup_close): Don't declare.
12680 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12683 2019-03-06 Tom Tromey <tom@tromey.com>
12685 * solib-aix.c: Use make_scope_exit.
12687 2019-03-06 Tom Tromey <tom@tromey.com>
12689 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12690 Use make_scope_exit.
12692 2019-03-06 Tom Tromey <tom@tromey.com>
12694 * solib-svr4.c (disable_probes_interface): Remove parameter.
12695 (svr4_handle_solib_event): Use make_scope_exit.
12697 2019-03-06 Tom Tromey <tom@tromey.com>
12699 * remote.c (struct stop_reply_deleter): Remove.
12700 (stop_reply_up): Update.
12701 (struct stop_reply): Derive from notif_event. Don't typedef.
12702 <regcache>: Now a std::vector.
12703 (stop_reply_xfree): Remove.
12704 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12705 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12706 (remote_target::discard_pending_stop_replies): Use delete.
12707 (remote_target::remote_parse_stop_reply): Update.
12708 (remote_target::process_stop_reply): Update.
12709 * remote-notif.h (struct notif_event): Add virtual destructor.
12710 Remove "dtr" member.
12711 (struct notif_client) <alloc_event>: Return a unique_ptr.
12712 (notif_event_xfree): Don't declare.
12713 (notif_event_up): New typedef.
12714 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12715 (notif_event_xfree, do_notif_event_xfree): Remove.
12716 (remote_notif_state_xfree): Update.
12718 2019-03-06 Tom Tromey <tom@tromey.com>
12720 * infrun.c (displaced_step_clear_cleanup): Now a
12721 forward_scope_exit type.
12722 (displaced_step_prepare_throw): Update.
12723 (displaced_step_fixup): Update.
12725 2019-03-06 Tom Tromey <tom@tromey.com>
12727 * inferior.h (class inferior): Update comment.
12728 * gdbthread.h (class thread_info): Update comment.
12730 2019-03-06 Joel Brobecker <brobecker@adacore.com>
12731 Tom Tromey <tom@tromey.com>
12733 * stabsread.h (struct stab_section_list): Remove.
12734 (coffstab_build_psymtabs): Update.
12735 * dbxread.c (symbuf_sections): Now a std::vector.
12736 (sect_idx): New global.
12737 (fill_symbuf): Update.
12738 (coffstab_build_psymtabs): Change type of stabsects parameter.
12740 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12742 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12743 (coff_locate_sections): Update.
12744 (coff_symfile_read): Remove cleanups. Update.
12745 (init_stringtab): Add storage parameter.
12746 (free_stringtab, free_stringtab_cleanup): Remove.
12747 (init_lineno): Add storage parameter.
12748 (free_linetab, free_linetab_cleanup): Remove.
12750 2019-03-06 Pedro Alves <palves@redhat.com>
12752 * linux-fork.c (fork_info::clobber_regs): Delete.
12753 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12754 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12756 (scoped_switch_fork_info::scoped_switch_fork_info)
12757 (checkpoint_command, linux_fork_context): Adjust
12758 fork_save_infrun_state calls.
12760 2019-03-06 Pedro Alves <palves@redhat.com>
12762 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12763 (inf_has_multiple_threads): Return 'bool' and rewrite using
12764 inferior_info::threads().
12766 2019-03-06 Pedro Alves <palves@redhat.com>
12768 * linux-fork.c: Include <list>.
12769 (fork_list): Now a std::list instance.
12770 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12771 (forks_exist_p, find_last_fork): Adjust.
12772 (new_fork): Delete.
12774 (add_fork): Adjust.
12775 (free_fork): Delete, folded into fork_info::~fork_info().
12776 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12778 (init_fork_list): Delete.
12779 (linux_fork_killall, linux_fork_mourn_inferior)
12780 (linux_fork_detach, info_checkpoints_command): Adjust.
12781 (_initialize_linux_fork): No longer call init_fork_list.
12783 2019-03-06 Pedro Alves <palves@redhat.com>
12785 * linux-fork.c (new_fork): New, split out of ...
12786 (add_fork): ... this. Return void. Move "first fork" special
12787 case from here, to ...
12788 (checkpoint_command): ... here.
12789 * linux-linux.h (add_fork): Return void.
12791 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12793 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12795 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12796 Chris January <chris.january@arm.com>
12797 David Lecomber <david.lecomber@arm.com>
12799 * f-exp.y: New token, UNOP_INTRINSIC.
12800 (exp): New pattern using UNOP_INTRINSIC token.
12801 (f77_keywords): Add 'abs' keyword.
12802 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12803 (value_from_host_double): New function.
12804 (evaluate_subexp_f): Support UNOP_ABS.
12806 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12808 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12811 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12813 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12814 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12815 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12817 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12819 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12821 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12822 Chris January <chris.january@arm.com>
12824 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12825 * f-exp.y: Define 'KIND' token.
12826 (exp): New pattern for KIND expressions.
12827 (ptype): Handle types with a kind extension.
12828 (direct_abs_decl): Extend to spot kind extensions.
12829 (f77_keywords): Add 'kind' to the list.
12830 (push_kind_type): New function.
12831 (convert_to_kind_type): New function.
12832 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12833 * parse.c (operator_length_standard): Likewise.
12834 * parser-defs.h (enum type_pieces): Add tp_kind.
12835 * std-operator.def: Add UNOP_KIND.
12837 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12839 * f-exp.y (f_parse): Set yydebug.
12841 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12843 * f-lang.c (evaluate_subexp_f): New function.
12844 (exp_descriptor_f): New global.
12845 (f_language_defn): Use exp_descriptor_f instead of
12846 exp_descriptor_standard.
12848 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12850 * f-exp.y (struct token): Add comments.
12851 (dot_ops): Remove uppercase versions and the end marker.
12852 (f77_keywords): Likewise.
12853 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12854 entries in the dot_ops array are case insensitive, and use
12855 strncasecmp to compare strings. Also some whitespace cleanup in
12856 this area. Similar for the f77_keywords array, except entries in
12857 this list might be case sensitive.
12859 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12861 * f-exp.y (struct f77_boolean_val): Add comments.
12862 (boolean_values): Remove uppercase versions, and end marker.
12863 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12864 and use strncasecmp to achieve case insensitivity. Additionally,
12865 perform whitespace cleanup around this code.
12867 2019-03-06 Tom Tromey <tromey@adacore.com>
12869 * remote-sim.c (gdbsim_target_open): Use result of
12872 2019-03-06 Richard Bunt <richard.bunt@arm.com>
12873 Dirk Schubert <dirk.schubert@arm.com>
12874 Chris January <chris.january@arm.com>
12876 * eval.c (evaluate_subexp_standard): Call Fortran argument
12878 * f-lang.c (struct value): A value which can be passed into a
12879 Fortran function call.
12880 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12882 (struct type): Value ready for a Fortran function call.
12883 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12885 * f-lang.h (fortran_argument_convert): Declaration.
12886 (fortran_preserve_arg_pointer): Declaration.
12887 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12889 2019-03-05 Tom Tromey <tromey@adacore.com>
12891 * python/py-prettyprint.c (print_string_repr): Remove #if.
12892 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
12894 2019-03-05 Tom Tromey <tromey@adacore.com>
12896 * target.c (the_dummy_target): Move later. Change type to
12898 (initialize_targets): Don't initialize the_dummy_target.
12900 2019-03-05 Tom Tromey <tromey@adacore.com>
12902 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
12903 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
12905 2019-03-05 Tom Tromey <tromey@adacore.com>
12907 * windows-nat.c (windows_nat_target::attach)
12908 (windows_nat_target::detach): Don't call gdb_flush.
12909 * valprint.c (generic_val_print, val_print, val_print_string):
12910 Don't call gdb_flush.
12911 * utils.c (defaulted_query): Don't call gdb_flush.
12912 * typeprint.c (print_type_scalar): Don't call gdb_flush.
12913 * target.c (target_announce_detach): Don't call gdb_flush.
12914 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
12915 * remote.c (extended_remote_target::attach): Don't call
12917 * procfs.c (procfs_target::detach): Don't call gdb_flush.
12918 * printcmd.c (do_examine): Don't call gdb_flush.
12919 (info_display_command): Don't call gdb_flush.
12920 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
12921 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
12922 * memattr.c (info_mem_command): Don't call gdb_flush.
12923 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
12924 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
12925 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
12926 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
12927 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
12928 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
12929 (gnu_nat_target::detach): Don't call gdb_flush.
12930 * f-valprint.c (f_val_print): Don't call gdb_flush.
12931 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
12932 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
12933 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
12935 * c-valprint.c (c_val_print): Don't call gdb_flush.
12936 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
12938 2019-03-05 Tom Tromey <tromey@adacore.com>
12940 * varobj.c (update_dynamic_varobj_children): Update.
12941 (install_default_visualizer): Use reset, not release.
12942 * value.c (set_internalvar): Update.
12943 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
12944 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
12945 ATTRIBUTE_UNUSED_RESULT.
12947 2019-03-05 Tom Tromey <tromey@adacore.com>
12949 * remote.c (class scoped_remote_fd) <release>: Add
12950 ATTRIBUTE_UNUSED_RESULT.
12952 2019-03-05 Tom Tromey <tromey@adacore.com>
12954 * macroexp.c (struct macro_buffer) <release>: Add
12955 ATTRIBUTE_UNUSED_RESULT.
12957 2019-03-05 Tom Tromey <tromey@adacore.com>
12959 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
12960 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
12961 ATTRIBUTE_UNUSED_RESULT.
12963 2019-03-05 Tom Tromey <tromey@adacore.com>
12965 * common/scoped_fd.h (class scoped_fd) <release>: Add
12966 ATTRIBUTE_UNUSED_RESULT.
12968 2019-03-05 Tom Tromey <tromey@adacore.com>
12970 * parser-defs.h (struct parser_state) <release>: Add
12971 ATTRIBUTE_UNUSED_RESULT.
12973 2019-03-05 Tom Tromey <tromey@adacore.com>
12975 * utils.h (class gdb_argv) <release>: Add
12976 ATTRIBUTE_UNUSED_RESULT.
12977 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12979 2019-03-02 Eli Zaretskii <eliz@gnu.org>
12981 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12982 for-loop range, to avoid compiler warnings.
12984 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12985 avoid compiler warnings about unused variables.
12987 * NEWS: Mention end of support for native debugging on MS-Windows
12991 * common/netstuff.c:
12992 * gdbserver/gdbreplay.c
12993 * gdbserver/remote-utils.c:
12995 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
12996 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
12997 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
12998 'getaddrinfo' and 'freeaddrinfo' were not available before
12999 Windows XP, and mingw.org's MinGW headers by default define
13000 _WIN32_WINNT to 0x500.
13002 2019-03-01 Gary Benson <gbenson@redhat.com>
13004 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13006 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13007 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13010 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13011 set_sigint_trap, clear_sigint_trap.
13013 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13015 * target.c (target_detach): Clear the regcache and the
13018 2019-02-27 Pedro Alves <palves@redhat.com>
13020 * utils.c (set_screen_size): When we cap the height/width sizes,
13021 tweak the corresponding command variable to show "unlimited":
13023 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13024 Pedro Alves <palves@redhat.com>
13026 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13027 before calling rl_set_screen_size.
13029 2019-02-27 Tom Tromey <tromey@adacore.com>
13031 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13033 * python/py-value.c: Remove Python 2.4 workaround.
13034 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13036 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13037 Python 2.4 workaround.
13038 * python/python-internal.h: Remove Python 2.4 comment.
13039 (Py_ssize_t): Don't define.
13040 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13041 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13042 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13043 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13044 * python/python.c (do_start_initialization): Remove Python 2.4
13046 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13047 (print_children): Remove Python 2.4 workaround.
13048 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13050 (CHARBUFFERPROC_NAME): Remove.
13051 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13052 Python 2.4 workaround.
13054 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13056 * NEWS: Note minimum Python version.
13058 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13060 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13061 code from these functions. Remove corresponding ifdefs. Use
13062 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13063 Remove gotos and target of gotos.
13064 (infpy_search_memory): Likewise.
13066 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13068 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13069 (hppa_gdbarch_init): Don't register deleted functions with
13072 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13074 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13075 (h8300_unwind_sp): Delete.
13076 (h8300_dummy_id): Delete.
13077 (h8300_gdbarch_init): Don't register deleted functions with
13080 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13082 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13083 (ft32_unwind_pc): Delete.
13084 (ft32_unwind_sp): Delete.
13085 (ft32_gdbarch_init): Don't register deleted functions with
13088 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13090 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13091 (frv_unwind_pc): Delete.
13092 (frv_unwind_sp): Delete.
13093 (frv_gdbarch_init): Don't register deleted functions with
13096 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13098 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13099 (riscv_unwind_pc): Delete.
13100 (riscv_unwind_sp): Delete.
13101 (riscv_gdbarch_init): Don't register deleted functions with
13104 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13106 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13107 (csky_unwind_pc): Delete.
13108 (csky_unwind_sp): Delete.
13109 (csky_gdbarch_init): Don't register deleted functions with
13112 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13114 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13115 (cris_unwind_pc): Delete.
13116 (cris_unwind_sp): Delete.
13117 (cris_gdbarch_init): Don't register deleted functions with
13120 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13122 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13123 (bfin_unwind_pc): Delete.
13124 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13126 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13128 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13129 (arm_unwind_pc): Delete.
13130 (arm_unwind_sp): Delete.
13131 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13133 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13135 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13136 (arc_unwind_pc): Delete.
13137 (arc_unwind_sp): Delete.
13138 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13140 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13142 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13143 (alpha_unwind_pc): Delete.
13144 (alpha_gdbarch_init): Don't register deleted functions with
13147 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13149 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13150 (aarch64_unwind_pc): Delete.
13151 (aarch64_unwind_sp): Delete.
13152 (aarch64_gdbarch_init): Don't register deleted functions with
13155 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13157 * gdbtypes.c (type_align): Don't consider static members when
13158 computing structure alignment.
13160 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13162 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13163 return 0 for other types.
13164 * arch-utils.c (default_type_align): Always return 0.
13165 * gdbarch.h: Regenerate.
13166 * gdbarch.sh (type_align): Extend comment.
13167 * gdbtypes.c (type_align): Add additional comments, always call
13168 gdbarch_type_align before applying the default rules.
13169 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13170 generic code will then apply a suitable default.
13171 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13172 types, return 0 for other types.
13174 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13176 * NEWS: Create a new section for the next release branch.
13177 Rename the section of the current branch, now that it has
13180 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13182 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13183 * version.in: Bump version to 8.3.50.DATE-git.
13185 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13187 * aix-thread.c (ptid_cmp): Remove unused variable.
13188 (get_signaled_thread): Likewise.
13189 (store_regs_user_thread): Likewise.
13190 (store_regs_kernel_thread): Likewise.
13191 (fetch_regs_kernel_thread): Remove shadowed variable.
13193 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13195 * features/riscv/32bit-cpu.xml: Add register numbers.
13196 * features/riscv/32bit-fpu.c: Regenerate.
13197 * features/riscv/32bit-fpu.xml: Add register numbers.
13198 * features/riscv/64bit-cpu.xml: Add register numbers.
13199 * features/riscv/64bit-fpu.c: Regenerate.
13200 * features/riscv/64bit-fpu.xml: Add register numbers.
13202 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13204 * NEWS: Mention two argument form of gdb.Value constructor.
13205 * python/py-value.c (convert_buffer_and_type_to_value): New
13207 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13208 Add support for handling an optional second argument. Call
13209 convert_buffer_and_type_to_value as appropriate.
13210 * python/python-internal.h (Py_buffer_deleter): New struct.
13211 (Py_buffer_up): New typedef.
13213 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13215 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13216 instead of releasing ownership.
13218 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13220 * dwarf2read.c (open_and_init_dwp_file): Call
13221 elf_numsections instead of bfd_count_sections to initialize
13222 dwp_file->num_sections.
13224 2019-02-25 Tom Tromey <tromey@adacore.com>
13226 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13228 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13230 * gcore.in: Add '--readnever' option when invoking GDB.
13232 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13234 * MAINTAINERS: Update my email address.
13236 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13238 * build-id.c (build_id_to_debug_bfd_1): New function.
13239 (build_id_to_debug_bfd): Look for separate debug file in
13242 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13244 * gdbarch.sh: Update the copyright year range that is placed into
13247 2019-02-22 Keith Seitz <keiths@redhat.com>
13250 * linespec.c (create_sals_line_offset): Search for the default
13251 symtab's filename instead of its fullname.
13253 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13255 * NEWS: Update style defaults.
13257 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13259 * main.c (captured_main_1): Disable styling in batch mode.
13261 2019-02-20 Tom Tromey <tom@tromey.com>
13263 * symtab.c (symtab_symbol_info): Fix typos.
13265 2019-02-20 Tom Tromey <tromey@adacore.com>
13267 * findcmd.c (_initialize_mem_search): Use upper case for
13268 metasyntactic variables.
13270 2019-02-20 Alan Hayward <alan.hayward@arm.com>
13272 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13273 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13275 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13277 * top.h (source_file_name): Change to std::string.
13278 * top.c (source_file_name): Likewise.
13279 (command_line_input): Adjust.
13280 * cli/cli-script.c (script_from_file): Adjust.
13282 2019-02-19 Tom Tromey <tromey@adacore.com>
13284 * ravenscar-thread.c
13285 (ravenscar_thread_target::update_thread_list): Don't call
13286 ada_build_task_list.
13287 * ada-lang.h (ada_build_task_list): Don't declare.
13288 * ada-tasks.c (struct ada_tasks_inferior_data)
13289 <task_list_valid_p>: Now bool.
13290 (read_known_tasks, ada_task_list_changed)
13291 (ada_tasks_invalidate_inferior_data): Update.
13292 (read_known_tasks_array): Return bool.
13293 (read_known_tasks_list): Likewise.
13294 (read_known_tasks): Return void.
13295 (ada_build_task_list): Now static.
13297 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13299 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13300 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13302 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13304 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13305 variant for ada_tasks_pspace_data_handle and
13306 ada_tasks_inferior_data_handle.
13307 (ada_tasks_pspace_data_cleanup): New function.
13308 (ada_tasks_inferior_data_cleanup): New function.
13310 2019-02-17 Tom Tromey <tom@tromey.com>
13312 * macrotab.h (macro_source_fullname): Return a std::string.
13313 * macrotab.c (macro_include, check_for_redefinition)
13314 (macro_undef, macro_lookup_definition, foreach_macro)
13315 (foreach_macro_in_scope): Update.
13316 (macro_source_fullname): Return a std::string.
13317 * macrocmd.c (show_pp_source_pos): Update.
13319 2019-02-17 Tom Tromey <tom@tromey.com>
13321 * macrocmd.c (show_pp_source_pos): Style the file names.
13323 2019-02-17 Tom Tromey <tom@tromey.com>
13326 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13328 2019-02-17 Tom Tromey <tom@tromey.com>
13330 * ada-lang.c (user_select_syms): Use filtered printing.
13331 * utils.c (wrap_style): New global.
13332 (desired_style): Remove.
13333 (emit_style_escape): Add stream parameter.
13334 (set_output_style, reset_terminal_style, prompt_for_continue):
13336 (flush_wrap_buffer): Only flush gdb_stdout.
13337 (wrap_here): Set wrap_style.
13338 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13339 treat escape sequences as a character. Change when wrap buffer is
13341 (fputs_styled): Do not set the output style when the default is
13343 * ui-style.h (struct ui_file_style) <is_default>: New method.
13344 * source.c (print_source_lines_base): Emit escape sequences in one
13347 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13349 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13350 integers and enumeration types.
13352 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13354 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13355 instead of lookup_symbol_in_language
13356 (do_exact_match): New function.
13357 (ada_get_symbol_name_matcher): Return do_exact_match when
13358 doing a verbatim match.
13360 2019-02-15 Tom Tromey <tromey@adacore.com>
13362 * ravenscar-thread.c (ravenscar_thread_target::resume)
13363 (ravenscar_thread_target::wait): Special case wildcard requests.
13365 2019-02-15 Tom Tromey <tromey@adacore.com>
13367 * ravenscar-thread.c (base_ptid): Remove.
13368 (struct ravenscar_thread_target) <close>: New method.
13369 <m_base_ptid>: New member.
13370 <update_inferior_ptid, active_task, task_is_currently_active,
13371 runtime_initialized>: Declare methods.
13372 <ravenscar_thread_target>: Add constructor.
13373 (ravenscar_thread_target::task_is_currently_active)
13374 (ravenscar_thread_target::update_inferior_ptid)
13375 (ravenscar_runtime_initialized): Rename. Now methods.
13376 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13377 (ravenscar_thread_target::update_thread_list): Update.
13378 (ravenscar_thread_target::active_task): Now method.
13379 (ravenscar_thread_target::store_registers)
13380 (ravenscar_thread_target::prepare_to_store)
13381 (ravenscar_thread_target::prepare_to_store)
13382 (ravenscar_thread_target::mourn_inferior): Update.
13383 (ravenscar_inferior_created): Use "new" to create target.
13384 (ravenscar_thread_target::get_ada_task_ptid): Update.
13385 (_initialize_ravenscar): Don't initialize base_ptid.
13386 (ravenscar_ops): Remove global.
13388 2019-02-15 Tom Tromey <tromey@adacore.com>
13390 * target.h (push_target): Declare new overload.
13391 * target.c (push_target): New overload, taking an rvalue reference.
13392 * remote.c (remote_target::open_1): Use push_target overload.
13393 * corelow.c (core_target_open): Use push_target overload.
13395 2019-02-15 Tom Tromey <tromey@adacore.com>
13397 * ravenscar-thread.c (is_ravenscar_task)
13398 (ravenscar_task_is_currently_active): Return bool.
13399 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13400 (_initialize_ravenscar): Remove "(void)".
13401 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13404 2019-02-15 Tom Tromey <tromey@adacore.com>
13406 * ravenscar-thread.c (ravenscar_runtime_initializer)
13407 (has_ravenscar_runtime, get_running_thread_id)
13408 (ravenscar_thread_target::resume): Fix indentation.
13410 2019-02-15 Tom Tromey <tromey@adacore.com>
13412 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13413 from ravenscar_arch_ops.
13414 (sparc_ravenscar_ops::fetch_registers)
13415 (sparc_ravenscar_ops::store_registers): Now methods.
13416 (sparc_ravenscar_prepare_to_store): Remove.
13417 (sparc_ravenscar_ops): Redefine.
13418 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13419 methods and destructor. Remove members.
13420 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13421 (ravenscar_thread_target::store_registers)
13422 (ravenscar_thread_target::prepare_to_store): Update.
13423 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13425 (struct ppc_ravenscar_powerpc_ops): Derive from
13426 ravenscar_arch_ops.
13427 (ppc_ravenscar_powerpc_ops::fetch_registers)
13428 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13429 (ppc_ravenscar_powerpc_ops): Redefine.
13430 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13431 (ppc_ravenscar_e500_ops::fetch_registers)
13432 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13433 (ppc_ravenscar_e500_ops): Redefine.
13434 * aarch64-ravenscar-thread.c
13435 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13436 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13437 (aarch64_ravenscar_fetch_registers)
13438 (aarch64_ravenscar_store_registers): Now methods.
13439 (aarch64_ravenscar_ops): Redefine.
13441 2019-02-15 Tom Tromey <tromey@adacore.com>
13443 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13444 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13445 (ravenscar_thread_target::stopped_by_watchpoint)
13446 (ravenscar_thread_target::stopped_data_address)
13447 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13449 2019-02-15 Tom Tromey <tromey@adacore.com>
13451 * ravenscar-thread.c: Fix some typos.
13453 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13454 Tom Tromey <tromey@adacore.com>
13456 * ada-lang.c (ada_exception_sal): Change addr_string to a
13458 (create_ada_exception_catchpoint): Update.
13460 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13461 Tom Tromey <tromey@adacore.com>
13463 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13464 (bp_location_ops): Remove.
13465 (base_breakpoint_allocate_location): Update.
13466 (free_bp_location): Update.
13467 * ada-lang.c (class ada_catchpoint_location)
13468 <ada_catchpoint_location>: Remove ops parameter.
13469 (ada_catchpoint_location_dtor): Remove.
13470 (ada_catchpoint_location_ops): Remove.
13471 (allocate_location_exception): Update.
13472 * breakpoint.h (struct bp_location_ops): Remove.
13473 (class bp_location) <bp_location>: Remove bp_location_ops
13475 <~bp_location>: Add destructor.
13478 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13479 Pedro Alves <palves@redhat.com>
13481 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13484 2019-02-14 David Michael <fedora.dm0@gmail.com>
13485 Samuel Thibault <samuel.thibault@gnu.org>
13486 Thomas Schwinge <thomas@codesourcery.com>
13488 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13489 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13491 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13493 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13494 (check_empty): Use "const char *".
13496 * gnu-nat.c (gnu_nat_target::detach): Instead of
13497 'detach_inferior (pid)' call
13498 'detach_inferior (find_inferior_pid (pid))'.
13500 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13501 'nat/fork-inferior.o'.
13502 * gnu-nat.c: #include "nat/fork-inferior.h".
13504 * gnu-nat.c (gnu_nat_target::detach): Instead of
13505 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13506 * gnu-nat.h: #include "inf-child.h".
13507 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13508 'i386_gnu_nat_target::fetch_registers'.
13509 (gnu_store_registers): Rename/move to
13510 'i386_gnu_nat_target::store_registers'.
13512 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13513 * gnu-nat.h (mach_thread_info): New function.
13514 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13516 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13518 2019-02-14 Frederic Konrad <konrad@adacore.com>
13520 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13522 2019-02-14 Joel Brobecker <brobecker@adacore.com>
13524 * windows-nat.c (windows_add_thread): Add new parameter
13525 "main_thread_p" with default value set to false. Update
13526 function documentation as well as all callers.
13527 (windows_delete_thread): Likewise.
13528 (fake_create_process): Update call to windows_add_thread.
13529 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13530 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13531 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13532 call to windows_delete_thread.
13534 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13536 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13538 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13540 * symfile.c (find_separate_debug_file): Use canonical path of
13541 sysroot with child_path instead of gdb_sysroot if it is valid.
13543 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13545 * symfile.c (find_separate_debug_file): Use child_path to
13546 determine if an object file is under a sysroot.
13548 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13550 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13551 unittests/child-path-selftests.c.
13552 * common/pathstuff.c (child_path): New function.
13553 * common/pathstuff.h (child_path): New prototype.
13554 * unittests/child-path-selftests.c: New file.
13556 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13558 * symfile.c (find_separate_debug_file): Look for separate debug
13559 files in debug directories under the sysroot.
13561 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13563 * symtab.h (struct minimal_symbol data_p): New const method.
13564 (struct minimal_symbol text_p): Likewise.
13565 * symtab.c (output_source_filename): Use file name style
13566 to print file name.
13567 (print_symbol_info): Likewise.
13568 (print_msymbol_info): Use address style to print addresses.
13569 Use function name style to print executable text symbols.
13570 (expand_symtab_containing_pc): Use data_p.
13571 (find_pc_sect_compunit_symtab): Likewise.
13573 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13575 * breakpoint.c (describe_other_breakpoints): Use address style
13576 to print addresses.
13577 (say_where): Likewise.
13579 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13581 * ada-typeprint.c (print_func_type): Print function name
13582 style to print function name.
13583 * c-typeprint.c (c_print_type_1): Likewise.
13585 2019-02-11 Alan Hayward <alan.hayward@arm.com>
13587 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13590 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13592 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13595 2019-02-10 Joel Brobecker <brobecker@adacore.com>
13597 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13598 TYPE_CODE_REF types.
13600 2019-02-08 Jim Wilson <jimw@sifive.com>
13602 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13603 (riscv_linux_fregset): New.
13604 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13606 2019-02-07 Tom Tromey <tom@tromey.com>
13608 * thread.c (thread_cancel_execution_command): Update.
13609 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13611 (struct thread_fsm_ops): Remove.
13612 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13613 (thread_fsm_should_stop, thread_fsm_return_value)
13614 (thread_fsm_set_finished, thread_fsm_finished_p)
13615 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13617 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13618 * infrun.c (clear_proceed_status_thread)
13619 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13620 (print_stop_event): Update.
13621 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13623 (step_command_fsm_ops): Remove.
13624 (new_step_command_fsm): Remove.
13626 (step_command_fsm::should_stop): Rename from
13627 step_command_fsm_should_stop.
13628 (step_command_fsm::clean_up): Rename from
13629 step_command_fsm_clean_up.
13630 (step_command_fsm::do_async_reply_reason): Rename from
13631 step_command_fsm_async_reply_reason.
13632 (struct until_next_fsm): Inherit from thread_fsm. Add
13634 (until_next_fsm_ops): Remove.
13635 (new_until_next_fsm): Remove.
13636 (until_next_fsm::should_stop): Rename from
13637 until_next_fsm_should_stop.
13638 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13639 (until_next_fsm::do_async_reply_reason): Rename from
13640 until_next_fsm_async_reply_reason.
13641 (struct finish_command_fsm): Inherit from thread_fsm. Add
13642 constructor. Change type of breakpoint.
13643 (finish_command_fsm_ops): Remove.
13644 (new_finish_command_fsm): Remove.
13645 (finish_command_fsm::should_stop): Rename from
13646 finish_command_fsm_should_stop.
13647 (finish_command_fsm::clean_up): Rename from
13648 finish_command_fsm_clean_up.
13649 (finish_command_fsm::return_value): Rename from
13650 finish_command_fsm_return_value.
13651 (finish_command_fsm::do_async_reply_reason): Rename from
13652 finish_command_fsm_async_reply_reason.
13653 (finish_command): Update.
13654 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13656 (call_thread_fsm_ops): Remove.
13657 (call_thread_fsm::call_thread_fsm): Rename from
13658 new_call_thread_fsm.
13659 (call_thread_fsm::should_stop): Rename from
13660 call_thread_fsm_should_stop.
13661 (call_thread_fsm::should_notify_stop): Rename from
13662 call_thread_fsm_should_notify_stop.
13663 (run_inferior_call, call_function_by_hand_dummy): Update.
13664 * cli/cli-interp.c (should_print_stop_to_console): Update.
13665 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13666 Add constructor. Change type of location_breakpoint,
13668 (until_break_fsm_ops): Remove.
13669 (new_until_break_fsm): Remove.
13670 (until_break_fsm::should_stop): Rename from
13671 until_break_fsm_should_stop.
13672 (until_break_fsm::clean_up): Rename from
13673 until_break_fsm_clean_up.
13674 (until_break_fsm::do_async_reply_reason): Rename from
13675 until_break_fsm_async_reply_reason.
13676 (until_break_command): Update.
13677 * thread-fsm.c: Remove.
13678 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13680 2019-02-07 Tom Tromey <tom@tromey.com>
13682 * yy-remap.h: Add include guard.
13683 * xtensa-tdep.h: Add include guard.
13684 * xcoffread.h: Rename include guard.
13685 * varobj-iter.h: Add include guard.
13686 * tui/tui.h: Rename include guard.
13687 * tui/tui-winsource.h: Rename include guard.
13688 * tui/tui-wingeneral.h: Rename include guard.
13689 * tui/tui-windata.h: Rename include guard.
13690 * tui/tui-win.h: Rename include guard.
13691 * tui/tui-stack.h: Rename include guard.
13692 * tui/tui-source.h: Rename include guard.
13693 * tui/tui-regs.h: Rename include guard.
13694 * tui/tui-out.h: Rename include guard.
13695 * tui/tui-layout.h: Rename include guard.
13696 * tui/tui-io.h: Rename include guard.
13697 * tui/tui-hooks.h: Rename include guard.
13698 * tui/tui-file.h: Rename include guard.
13699 * tui/tui-disasm.h: Rename include guard.
13700 * tui/tui-data.h: Rename include guard.
13701 * tui/tui-command.h: Rename include guard.
13702 * tic6x-tdep.h: Add include guard.
13703 * target/waitstatus.h: Rename include guard.
13704 * target/wait.h: Rename include guard.
13705 * target/target.h: Rename include guard.
13706 * target/resume.h: Rename include guard.
13707 * target-float.h: Rename include guard.
13708 * stabsread.h: Add include guard.
13709 * rs6000-tdep.h: Add include guard.
13710 * riscv-fbsd-tdep.h: Add include guard.
13711 * regformats/regdef.h: Rename include guard.
13712 * record.h: Rename include guard.
13713 * python/python.h: Rename include guard.
13714 * python/python-internal.h: Rename include guard.
13715 * python/py-stopevent.h: Rename include guard.
13716 * python/py-ref.h: Rename include guard.
13717 * python/py-record.h: Rename include guard.
13718 * python/py-record-full.h: Rename include guard.
13719 * python/py-record-btrace.h: Rename include guard.
13720 * python/py-instruction.h: Rename include guard.
13721 * python/py-events.h: Rename include guard.
13722 * python/py-event.h: Rename include guard.
13723 * procfs.h: Add include guard.
13724 * proc-utils.h: Add include guard.
13725 * p-lang.h: Add include guard.
13726 * or1k-tdep.h: Rename include guard.
13727 * observable.h: Rename include guard.
13728 * nto-tdep.h: Rename include guard.
13729 * nat/x86-linux.h: Rename include guard.
13730 * nat/x86-linux-dregs.h: Rename include guard.
13731 * nat/x86-gcc-cpuid.h: Add include guard.
13732 * nat/x86-dregs.h: Rename include guard.
13733 * nat/x86-cpuid.h: Rename include guard.
13734 * nat/ppc-linux.h: Rename include guard.
13735 * nat/mips-linux-watch.h: Rename include guard.
13736 * nat/linux-waitpid.h: Rename include guard.
13737 * nat/linux-ptrace.h: Rename include guard.
13738 * nat/linux-procfs.h: Rename include guard.
13739 * nat/linux-osdata.h: Rename include guard.
13740 * nat/linux-nat.h: Rename include guard.
13741 * nat/linux-namespaces.h: Rename include guard.
13742 * nat/linux-btrace.h: Rename include guard.
13743 * nat/glibc_thread_db.h: Rename include guard.
13744 * nat/gdb_thread_db.h: Rename include guard.
13745 * nat/gdb_ptrace.h: Rename include guard.
13746 * nat/fork-inferior.h: Rename include guard.
13747 * nat/amd64-linux-siginfo.h: Rename include guard.
13748 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13749 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13750 * nat/aarch64-linux.h: Rename include guard.
13751 * nat/aarch64-linux-hw-point.h: Rename include guard.
13752 * mn10300-tdep.h: Add include guard.
13753 * mips-linux-tdep.h: Add include guard.
13754 * mi/mi-parse.h: Rename include guard.
13755 * mi/mi-out.h: Rename include guard.
13756 * mi/mi-main.h: Rename include guard.
13757 * mi/mi-interp.h: Rename include guard.
13758 * mi/mi-getopt.h: Rename include guard.
13759 * mi/mi-console.h: Rename include guard.
13760 * mi/mi-common.h: Rename include guard.
13761 * mi/mi-cmds.h: Rename include guard.
13762 * mi/mi-cmd-break.h: Rename include guard.
13763 * m2-lang.h: Add include guard.
13764 * location.h: Rename include guard.
13765 * linux-record.h: Rename include guard.
13766 * linux-nat.h: Add include guard.
13767 * linux-fork.h: Add include guard.
13768 * i386-darwin-tdep.h: Rename include guard.
13769 * hppa-linux-offsets.h: Add include guard.
13770 * guile/guile.h: Rename include guard.
13771 * guile/guile-internal.h: Rename include guard.
13772 * gnu-nat.h: Rename include guard.
13773 * gdb-stabs.h: Rename include guard.
13774 * frv-tdep.h: Add include guard.
13775 * f-lang.h: Add include guard.
13776 * event-loop.h: Add include guard.
13777 * darwin-nat.h: Rename include guard.
13778 * cp-abi.h: Rename include guard.
13779 * config/sparc/nm-sol2.h: Rename include guard.
13780 * config/nm-nto.h: Rename include guard.
13781 * config/nm-linux.h: Add include guard.
13782 * config/i386/nm-i386gnu.h: Rename include guard.
13783 * config/djgpp/nl_types.h: Rename include guard.
13784 * config/djgpp/langinfo.h: Rename include guard.
13785 * compile/gcc-cp-plugin.h: Add include guard.
13786 * compile/gcc-c-plugin.h: Add include guard.
13787 * compile/compile.h: Rename include guard.
13788 * compile/compile-object-run.h: Rename include guard.
13789 * compile/compile-object-load.h: Rename include guard.
13790 * compile/compile-internal.h: Rename include guard.
13791 * compile/compile-cplus.h: Rename include guard.
13792 * compile/compile-c.h: Rename include guard.
13793 * common/xml-utils.h: Rename include guard.
13794 * common/x86-xstate.h: Rename include guard.
13795 * common/version.h: Rename include guard.
13796 * common/vec.h: Rename include guard.
13797 * common/tdesc.h: Rename include guard.
13798 * common/selftest.h: Rename include guard.
13799 * common/scoped_restore.h: Rename include guard.
13800 * common/scoped_mmap.h: Rename include guard.
13801 * common/scoped_fd.h: Rename include guard.
13802 * common/safe-iterator.h: Rename include guard.
13803 * common/run-time-clock.h: Rename include guard.
13804 * common/refcounted-object.h: Rename include guard.
13805 * common/queue.h: Rename include guard.
13806 * common/ptid.h: Rename include guard.
13807 * common/print-utils.h: Rename include guard.
13808 * common/preprocessor.h: Rename include guard.
13809 * common/pathstuff.h: Rename include guard.
13810 * common/observable.h: Rename include guard.
13811 * common/netstuff.h: Rename include guard.
13812 * common/job-control.h: Rename include guard.
13813 * common/host-defs.h: Rename include guard.
13814 * common/gdb_wait.h: Rename include guard.
13815 * common/gdb_vecs.h: Rename include guard.
13816 * common/gdb_unlinker.h: Rename include guard.
13817 * common/gdb_unique_ptr.h: Rename include guard.
13818 * common/gdb_tilde_expand.h: Rename include guard.
13819 * common/gdb_sys_time.h: Rename include guard.
13820 * common/gdb_string_view.h: Rename include guard.
13821 * common/gdb_splay_tree.h: Rename include guard.
13822 * common/gdb_setjmp.h: Rename include guard.
13823 * common/gdb_ref_ptr.h: Rename include guard.
13824 * common/gdb_optional.h: Rename include guard.
13825 * common/gdb_locale.h: Rename include guard.
13826 * common/gdb_assert.h: Rename include guard.
13827 * common/filtered-iterator.h: Rename include guard.
13828 * common/filestuff.h: Rename include guard.
13829 * common/fileio.h: Rename include guard.
13830 * common/environ.h: Rename include guard.
13831 * common/common-utils.h: Rename include guard.
13832 * common/common-types.h: Rename include guard.
13833 * common/common-regcache.h: Rename include guard.
13834 * common/common-inferior.h: Rename include guard.
13835 * common/common-gdbthread.h: Rename include guard.
13836 * common/common-exceptions.h: Rename include guard.
13837 * common/common-defs.h: Rename include guard.
13838 * common/common-debug.h: Rename include guard.
13839 * common/cleanups.h: Rename include guard.
13840 * common/buffer.h: Rename include guard.
13841 * common/btrace-common.h: Rename include guard.
13842 * common/break-common.h: Rename include guard.
13843 * cli/cli-utils.h: Rename include guard.
13844 * cli/cli-style.h: Rename include guard.
13845 * cli/cli-setshow.h: Rename include guard.
13846 * cli/cli-script.h: Rename include guard.
13847 * cli/cli-interp.h: Rename include guard.
13848 * cli/cli-decode.h: Rename include guard.
13849 * cli/cli-cmds.h: Rename include guard.
13850 * charset-list.h: Add include guard.
13851 * buildsym-legacy.h: Rename include guard.
13852 * bfin-tdep.h: Add include guard.
13853 * ax.h: Rename include guard.
13854 * arm-linux-tdep.h: Add include guard.
13855 * arm-fbsd-tdep.h: Add include guard.
13856 * arch/xtensa.h: Rename include guard.
13857 * arch/tic6x.h: Add include guard.
13858 * arch/i386.h: Add include guard.
13859 * arch/arm.h: Rename include guard.
13860 * arch/arm-linux.h: Rename include guard.
13861 * arch/arm-get-next-pcs.h: Rename include guard.
13862 * arch/amd64.h: Add include guard.
13863 * arch/aarch64-insn.h: Rename include guard.
13864 * arch-utils.h: Rename include guard.
13865 * annotate.h: Add include guard.
13866 * amd64-darwin-tdep.h: Rename include guard.
13867 * aarch64-linux-tdep.h: Add include guard.
13868 * aarch64-fbsd-tdep.h: Add include guard.
13869 * aarch32-linux-nat.h: Add include guard.
13871 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13873 * macrotab.c (macro_define_internal): New function that
13874 factorizes macro_define_object_internal and macro_define_function
13876 (macro_define_object_internal): Use macro_define_internal.
13877 (macro_define_function): Likewise.
13879 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13881 * macrocmd.c (extract_identifier): Return
13882 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13885 2019-02-06 John Baldwin <jhb@FreeBSD.org>
13887 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13889 2019-02-05 Tom Tromey <tom@tromey.com>
13891 * target.c (target_stack::unpush): Move assertion earlier.
13893 2019-01-30 Tom Tromey <tom@tromey.com>
13896 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
13897 (gdbpy_parse_and_eval): Likewise.
13898 * python/python-internal.h (gdbpy_allow_threads): New class.
13900 2019-01-28 John Baldwin <jhb@FreeBSD.org>
13902 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
13903 (aarch64_fbsd_fpregmap): Move earlier.
13904 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
13905 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13906 instead of individual calls to trad_frame_set_reg_addr.
13907 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
13909 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
13910 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13911 instead of individual calls to trad_frame_set_reg_addr.
13913 2019-01-28 Alan Hayward <alan.hayward@arm.com>
13915 * CONTRIBUTE: Replace contribution list with wiki link.
13917 2019-01-25 Tom Tromey <tom@tromey.com>
13919 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
13921 2019-01-25 Tom Tromey <tom@tromey.com>
13923 * xtensa-linux-nat.c: Fix common/ includes.
13924 * xml-support.h: Fix common/ includes.
13925 * xml-support.c: Fix common/ includes.
13926 * x86-linux-nat.c: Fix common/ includes.
13927 * windows-nat.c: Fix common/ includes.
13928 * varobj.h: Fix common/ includes.
13929 * varobj.c: Fix common/ includes.
13930 * value.c: Fix common/ includes.
13931 * valops.c: Fix common/ includes.
13932 * utils.c: Fix common/ includes.
13933 * unittests/xml-utils-selftests.c: Fix common/ includes.
13934 * unittests/utils-selftests.c: Fix common/ includes.
13935 * unittests/unpack-selftests.c: Fix common/ includes.
13936 * unittests/tracepoint-selftests.c: Fix common/ includes.
13937 * unittests/style-selftests.c: Fix common/ includes.
13938 * unittests/string_view-selftests.c: Fix common/ includes.
13939 * unittests/scoped_restore-selftests.c: Fix common/ includes.
13940 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
13941 * unittests/scoped_fd-selftests.c: Fix common/ includes.
13942 * unittests/rsp-low-selftests.c: Fix common/ includes.
13943 * unittests/parse-connection-spec-selftests.c: Fix common/
13945 * unittests/optional-selftests.c: Fix common/ includes.
13946 * unittests/offset-type-selftests.c: Fix common/ includes.
13947 * unittests/observable-selftests.c: Fix common/ includes.
13948 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
13949 * unittests/memrange-selftests.c: Fix common/ includes.
13950 * unittests/memory-map-selftests.c: Fix common/ includes.
13951 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
13952 * unittests/function-view-selftests.c: Fix common/ includes.
13953 * unittests/environ-selftests.c: Fix common/ includes.
13954 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
13955 * unittests/common-utils-selftests.c: Fix common/ includes.
13956 * unittests/cli-utils-selftests.c: Fix common/ includes.
13957 * unittests/array-view-selftests.c: Fix common/ includes.
13958 * ui-file.c: Fix common/ includes.
13959 * tui/tui-io.c: Fix common/ includes.
13960 * tracepoint.h: Fix common/ includes.
13961 * tracepoint.c: Fix common/ includes.
13962 * tracefile-tfile.c: Fix common/ includes.
13963 * top.h: Fix common/ includes.
13964 * top.c: Fix common/ includes.
13965 * thread.c: Fix common/ includes.
13966 * target/waitstatus.h: Fix common/ includes.
13967 * target/waitstatus.c: Fix common/ includes.
13968 * target.h: Fix common/ includes.
13969 * target.c: Fix common/ includes.
13970 * target-memory.c: Fix common/ includes.
13971 * target-descriptions.c: Fix common/ includes.
13972 * symtab.h: Fix common/ includes.
13973 * symfile.c: Fix common/ includes.
13974 * stap-probe.c: Fix common/ includes.
13975 * spu-linux-nat.c: Fix common/ includes.
13976 * sparc-nat.c: Fix common/ includes.
13977 * source.c: Fix common/ includes.
13978 * solib.c: Fix common/ includes.
13979 * solib-target.c: Fix common/ includes.
13980 * ser-unix.c: Fix common/ includes.
13981 * ser-tcp.c: Fix common/ includes.
13982 * ser-pipe.c: Fix common/ includes.
13983 * ser-base.c: Fix common/ includes.
13984 * selftest-arch.c: Fix common/ includes.
13985 * s12z-tdep.c: Fix common/ includes.
13986 * rust-exp.y: Fix common/ includes.
13987 * rs6000-aix-tdep.c: Fix common/ includes.
13988 * riscv-tdep.c: Fix common/ includes.
13989 * remote.c: Fix common/ includes.
13990 * remote-notif.h: Fix common/ includes.
13991 * remote-fileio.h: Fix common/ includes.
13992 * remote-fileio.c: Fix common/ includes.
13993 * regcache.h: Fix common/ includes.
13994 * regcache.c: Fix common/ includes.
13995 * record-btrace.c: Fix common/ includes.
13996 * python/python.c: Fix common/ includes.
13997 * python/py-type.c: Fix common/ includes.
13998 * python/py-inferior.c: Fix common/ includes.
13999 * progspace.h: Fix common/ includes.
14000 * producer.c: Fix common/ includes.
14001 * procfs.c: Fix common/ includes.
14002 * proc-api.c: Fix common/ includes.
14003 * printcmd.c: Fix common/ includes.
14004 * ppc-linux-nat.c: Fix common/ includes.
14005 * parser-defs.h: Fix common/ includes.
14006 * osdata.c: Fix common/ includes.
14007 * obsd-nat.c: Fix common/ includes.
14008 * nat/x86-linux.c: Fix common/ includes.
14009 * nat/x86-linux-dregs.c: Fix common/ includes.
14010 * nat/x86-dregs.h: Fix common/ includes.
14011 * nat/x86-dregs.c: Fix common/ includes.
14012 * nat/ppc-linux.c: Fix common/ includes.
14013 * nat/mips-linux-watch.h: Fix common/ includes.
14014 * nat/mips-linux-watch.c: Fix common/ includes.
14015 * nat/linux-waitpid.c: Fix common/ includes.
14016 * nat/linux-ptrace.h: Fix common/ includes.
14017 * nat/linux-ptrace.c: Fix common/ includes.
14018 * nat/linux-procfs.c: Fix common/ includes.
14019 * nat/linux-personality.c: Fix common/ includes.
14020 * nat/linux-osdata.c: Fix common/ includes.
14021 * nat/linux-namespaces.c: Fix common/ includes.
14022 * nat/linux-btrace.h: Fix common/ includes.
14023 * nat/linux-btrace.c: Fix common/ includes.
14024 * nat/fork-inferior.c: Fix common/ includes.
14025 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14026 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14027 * nat/aarch64-linux.c: Fix common/ includes.
14028 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14029 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14030 * namespace.h: Fix common/ includes.
14031 * mips-linux-tdep.c: Fix common/ includes.
14032 * minsyms.c: Fix common/ includes.
14033 * mi/mi-parse.h: Fix common/ includes.
14034 * mi/mi-main.c: Fix common/ includes.
14035 * mi/mi-cmd-env.c: Fix common/ includes.
14036 * memrange.h: Fix common/ includes.
14037 * memattr.c: Fix common/ includes.
14038 * maint.h: Fix common/ includes.
14039 * maint.c: Fix common/ includes.
14040 * main.c: Fix common/ includes.
14041 * machoread.c: Fix common/ includes.
14042 * location.c: Fix common/ includes.
14043 * linux-thread-db.c: Fix common/ includes.
14044 * linux-nat.c: Fix common/ includes.
14045 * linux-fork.c: Fix common/ includes.
14046 * inline-frame.c: Fix common/ includes.
14047 * infrun.c: Fix common/ includes.
14048 * inflow.c: Fix common/ includes.
14049 * inferior.h: Fix common/ includes.
14050 * inferior.c: Fix common/ includes.
14051 * infcmd.c: Fix common/ includes.
14052 * inf-ptrace.c: Fix common/ includes.
14053 * inf-child.c: Fix common/ includes.
14054 * ia64-linux-nat.c: Fix common/ includes.
14055 * i387-tdep.c: Fix common/ includes.
14056 * i386-tdep.c: Fix common/ includes.
14057 * i386-linux-tdep.c: Fix common/ includes.
14058 * i386-linux-nat.c: Fix common/ includes.
14059 * i386-go32-tdep.c: Fix common/ includes.
14060 * i386-fbsd-tdep.c: Fix common/ includes.
14061 * i386-fbsd-nat.c: Fix common/ includes.
14062 * guile/scm-type.c: Fix common/ includes.
14063 * guile/guile.c: Fix common/ includes.
14064 * go32-nat.c: Fix common/ includes.
14065 * gnu-nat.c: Fix common/ includes.
14066 * gdbthread.h: Fix common/ includes.
14067 * gdbarch-selftests.c: Fix common/ includes.
14068 * gdb_usleep.c: Fix common/ includes.
14069 * gdb_select.h: Fix common/ includes.
14070 * gdb_bfd.c: Fix common/ includes.
14071 * gcore.c: Fix common/ includes.
14072 * fork-child.c: Fix common/ includes.
14073 * findvar.c: Fix common/ includes.
14074 * fbsd-nat.c: Fix common/ includes.
14075 * event-top.c: Fix common/ includes.
14076 * event-loop.c: Fix common/ includes.
14077 * dwarf2read.c: Fix common/ includes.
14078 * dwarf2loc.c: Fix common/ includes.
14079 * dwarf2-frame.c: Fix common/ includes.
14080 * dwarf-index-cache.c: Fix common/ includes.
14081 * dtrace-probe.c: Fix common/ includes.
14082 * disasm-selftests.c: Fix common/ includes.
14083 * defs.h: Fix common/ includes.
14084 * csky-tdep.c: Fix common/ includes.
14085 * cp-valprint.c: Fix common/ includes.
14086 * cp-support.h: Fix common/ includes.
14087 * cp-support.c: Fix common/ includes.
14088 * corelow.c: Fix common/ includes.
14089 * completer.h: Fix common/ includes.
14090 * completer.c: Fix common/ includes.
14091 * compile/compile.c: Fix common/ includes.
14092 * compile/compile-loc2c.c: Fix common/ includes.
14093 * compile/compile-cplus-types.c: Fix common/ includes.
14094 * compile/compile-cplus-symbols.c: Fix common/ includes.
14095 * command.h: Fix common/ includes.
14096 * cli/cli-dump.c: Fix common/ includes.
14097 * cli/cli-cmds.c: Fix common/ includes.
14098 * charset.c: Fix common/ includes.
14099 * build-id.c: Fix common/ includes.
14100 * btrace.h: Fix common/ includes.
14101 * btrace.c: Fix common/ includes.
14102 * breakpoint.h: Fix common/ includes.
14103 * breakpoint.c: Fix common/ includes.
14105 (enum agent_op): Fix common/ includes.
14106 * ax-general.c (struct aop_map): Fix common/ includes.
14107 * ax-gdb.c: Fix common/ includes.
14108 * auxv.c: Fix common/ includes.
14109 * auto-load.c: Fix common/ includes.
14110 * arm-tdep.c: Fix common/ includes.
14111 * arch/riscv.c: Fix common/ includes.
14112 * arch/ppc-linux-common.c: Fix common/ includes.
14113 * arch/i386.c: Fix common/ includes.
14114 * arch/arm.c: Fix common/ includes.
14115 * arch/arm-linux.c: Fix common/ includes.
14116 * arch/arm-get-next-pcs.c: Fix common/ includes.
14117 * arch/amd64.c: Fix common/ includes.
14118 * arch/aarch64.c: Fix common/ includes.
14119 * arch/aarch64-insn.c: Fix common/ includes.
14120 * arch-utils.c: Fix common/ includes.
14121 * amd64-windows-tdep.c: Fix common/ includes.
14122 * amd64-tdep.c: Fix common/ includes.
14123 * amd64-sol2-tdep.c: Fix common/ includes.
14124 * amd64-obsd-tdep.c: Fix common/ includes.
14125 * amd64-nbsd-tdep.c: Fix common/ includes.
14126 * amd64-linux-tdep.c: Fix common/ includes.
14127 * amd64-linux-nat.c: Fix common/ includes.
14128 * amd64-fbsd-tdep.c: Fix common/ includes.
14129 * amd64-fbsd-nat.c: Fix common/ includes.
14130 * amd64-dicos-tdep.c: Fix common/ includes.
14131 * amd64-darwin-tdep.c: Fix common/ includes.
14132 * agent.c: Fix common/ includes.
14133 * ada-lang.h: Fix common/ includes.
14134 * ada-lang.c: Fix common/ includes.
14135 * aarch64-tdep.c: Fix common/ includes.
14137 2019-01-25 Tom Tromey <tom@tromey.com>
14139 * common/create-version.sh: Use common/version.h.
14141 2019-01-24 Pedro Alves <palves@redhat.com>
14143 * infrun.c (signal_stop, signal_print, signal_program)
14144 (signal_catch, signal_pass): Now arrays instead of pointers.
14145 (update_signals_program_target, do_target_resume)
14146 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14147 * linux-nat.c (linux_nat_target::pass_signals)
14148 (linux_nat_target::create_inferior, linux_nat_target::attach):
14150 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14151 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14152 * procfs.c (procfs_target::pass_signals): Adjust.
14153 * record-full.c (record_full_target::resume): Adjust.
14154 * remote.c (remote_target::pass_signals)
14155 (remote_target::program_signals): Adjust.
14156 * target-debug.h (target_debug_print_signals): Now takes a
14157 gdb::array_view as parameter. Adjust.
14158 * target.h (target_ops) <pass_signals, program_signals>: Replace
14159 pointer and length parameters with gdb::array_view.
14160 (target_pass_signals, target_program_signals): Likewise.
14161 * target-delegates.c: Regenerate.
14163 2019-01-24 Pedro Alves <palves@redhat.com>
14165 * common/forward-scope-exit.h
14166 (forward_scope_exit::forward_scope_exit): Pass arguments to
14167 m_bind_function directly, instead of creating a std::bind and
14170 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14172 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14173 for static members.
14174 (pass_in_v_vfp_candidate): Likewise.
14176 2019-01-23 Tom Tromey <tom@tromey.com>
14177 Pedro Alves <palves@redhat.com>
14179 * regcache.c (class regcache_invalidator): Remove.
14180 (regcache::raw_write): Use make_scope_exit.
14182 2019-01-23 Tom Tromey <tom@tromey.com>
14184 * ui-out.h (class ui_out_emit_type): Update comment.
14186 2019-01-23 Tom Tromey <tom@tromey.com>
14188 * infrun.c (fetch_inferior_event): Update comment.
14190 2019-01-23 Tom Tromey <tom@tromey.com>
14191 Pedro Alves <palves@redhat.com>
14193 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14195 (fetch_inferior_event): Use SCOPE_EXIT.
14198 2019-01-23 Tom Tromey <tom@tromey.com>
14199 Pedro Alves <palves@redhat.com>
14201 * infrun.c (disable_thread_events): Delete.
14202 (stop_all_threads): Use SCOPE_EXIT.
14204 2019-01-23 Tom Tromey <tom@tromey.com>
14205 Pedro Alves <palves@redhat.com>
14207 * symfile.c: Include forward-scope-exit.h.
14208 (clear_symtab_users_cleanup): Replace forward declaration with
14209 a FORWARD_SCOPE_EXIT.
14210 (syms_from_objfile_1): Use the forward_scope_exit and
14211 gdb::optional instead of cleanup_function.
14212 (reread_symbols): Use the forward_scope_exit instead of
14214 (clear_symtab_users_cleanup): Remove function.
14216 2019-01-23 Tom Tromey <tom@tromey.com>
14217 Pedro Alves <palves@redhat.com>
14219 * linux-nat.c: Include scope-exit.h.
14220 (cleanup_target_stop): Remove.
14221 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14224 2019-01-23 Tom Tromey <tom@tromey.com>
14225 Pedro Alves <palves@redhat.com>
14227 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14228 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14230 2019-01-23 Tom Tromey <tom@tromey.com>
14231 Andrew Burgess <andrew.burgess@embecosm.com>
14232 Pedro Alves <palves@redhat.com>
14234 * infrun.c (fetch_inferior_event): Use scope_exit.
14235 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14236 * top.c (execute_command): Use scope_exit.
14237 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14238 * utils.c (do_bpstat_clear_actions_cleanup)
14239 (make_bpstat_clear_actions_cleanup): Remove.
14241 2019-01-23 Tom Tromey <tom@tromey.com>
14242 Pedro Alves <palves@redhat.com>
14244 * infrun.c: Include "common/scope-exit.h"
14245 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14246 (wait_for_inferior): Use SCOPE_EXIT.
14247 (fetch_inferior_event): Use scope_exit.
14249 2019-01-23 Tom Tromey <tom@tromey.com>
14250 Pedro Alves <palves@redhat.com>
14252 * breakpoint.c (create_breakpoint): Remove cleanup.
14254 2019-01-23 Tom Tromey <tom@tromey.com>
14255 Andrew Burgess <andrew.burgess@embecosm.com>
14256 Pedro Alves <palves@redhat.com>
14258 2019-01-23 Pedro Alves <palves@redhat.com>
14260 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14262 2019-01-23 Pedro Alves <palves@redhat.com>
14263 Andrew Burgess <andrew.burgess@embecosm.com>
14265 * gdbthread.h: Include "common/forward-scope-exit.h".
14266 (scoped_finish_thread_state): Redefine custom class in terms of
14267 forward_scope_exit.
14269 2019-01-23 Pedro Alves <palves@redhat.com>
14270 Andrew Burgess <andrew.burgess@embecosm.com>
14272 * common/forward-scope-exit.h: New file.
14274 2019-01-23 Pedro Alves <palves@redhat.com>
14275 Andrew Burgess <andrew.burgess@embecosm.com>
14276 Tom Tromey <tom@tromey.com>
14278 * common/scope-exit.h: New file.
14280 2019-01-23 Pedro Alves <palves@redhat.com>
14282 * common/preprocessor.h (ESC): Rename to ...
14283 (ESC_PARENS): ... this.
14284 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14285 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14287 2019-01-23 Tom Tromey <tom@tromey.com>
14289 * language.h (class scoped_switch_to_sym_language_if_auto):
14290 Initialize m_lang in both cases.
14292 2019-01-23 Alan Hayward <alan.hayward@arm.com>
14294 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14297 2019-01-22 Tom Tromey <tom@tromey.com>
14299 * corelow.c: Do not include sys/file.h.
14301 2019-01-22 Tom Tromey <tom@tromey.com>
14303 * tui/tui-wingeneral.h: Include gdb_curses.h.
14305 2019-01-22 Tom Tromey <tom@tromey.com>
14307 * source-cache.h (class source_cache) <get_source_lines,
14308 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14310 2019-01-22 Tom Tromey <tom@tromey.com>
14312 * remote-fileio.h (struct remote_target): Declare.
14314 2019-01-22 Tom Tromey <tom@tromey.com>
14316 * python/py-arch.c: Do not include py-ref.h.
14317 * python/py-bpevent.c: Do not include py-ref.h.
14318 * python/py-cmd.c: Do not include py-ref.h.
14319 * python/py-continueevent.c: Do not include py-ref.h.
14320 * python/py-event.h: Do not include py-ref.h.
14321 * python/py-evtregistry.c: Do not include py-ref.h.
14322 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14323 * python/py-frame.c: Do not include py-ref.h.
14324 * python/py-framefilter.c: Do not include py-ref.h.
14325 * python/py-function.c: Do not include py-ref.h.
14326 * python/py-infevents.c: Do not include py-ref.h.
14327 * python/py-linetable.c: Do not include py-ref.h.
14328 * python/py-objfile.c: Do not include py-ref.h.
14329 * python/py-param.c: Do not include py-ref.h.
14330 * python/py-prettyprint.c: Do not include py-ref.h.
14331 * python/py-progspace.c: Do not include py-ref.h.
14332 * python/py-symbol.c: Do not include py-ref.h.
14333 * python/py-symtab.c: Do not include py-ref.h.
14334 * python/py-type.c: Do not include py-ref.h.
14335 * python/py-unwind.c: Do not include py-ref.h.
14336 * python/py-utils.c: Do not include py-ref.h.
14337 * python/py-value.c: Do not include py-ref.h.
14338 * python/py-varobj.c: Do not include py-ref.h.
14339 * python/py-xmethods.c: Do not include py-ref.h.
14340 * python/python.c: Do not include py-ref.h.
14341 * varobj.c: Do not include py-ref.h.
14343 2019-01-22 Tom Tromey <tom@tromey.com>
14345 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14346 keyword for bcache.
14348 2019-01-22 Tom Tromey <tom@tromey.com>
14350 * compile/compile-cplus-types.c: Remove a comment by #include.
14352 2019-01-22 Tom Tromey <tom@tromey.com>
14354 * compile/gcc-c-plugin.h: Include compile-internal.h.
14356 2019-01-22 Tom Tromey <tom@tromey.com>
14358 * stabsread.c (EXTERN): Do not define.
14359 (symnum, next_symbol_text_func, processing_gcc_compilation)
14360 (within_function, global_sym_chain, global_stabs)
14361 (previous_stab_code, this_object_header_files)
14362 (n_this_object_header_files)
14363 (n_allocated_this_object_header_files): Define.
14364 * stabsread.h (EXTERN): Never define. Use "extern".
14366 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14368 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14371 2019-01-21 Tom Tromey <tom@tromey.com>
14373 * ui-out.c: Fix includes.
14374 * tui/tui-source.c: Fix includes.
14375 * target.c: Fix includes.
14376 * remote.c: Fix includes.
14377 * regcache.c: Fix includes.
14378 * python/py-block.c: Fix includes.
14379 * printcmd.c: Fix includes.
14380 * or1k-tdep.c: Fix includes.
14381 * mi/mi-main.c: Fix includes.
14382 * m32r-tdep.c: Fix includes.
14383 * csky-tdep.c: Fix includes.
14384 * compile/compile-cplus-types.c: Fix includes.
14385 * cli/cli-interp.c: Fix includes.
14387 2019-01-21 Alan Hayward <alan.hayward@arm.com>
14389 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14392 2019-01-16 Tom Tromey <tom@tromey.com>
14394 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14396 (struct objfile) <msymbols_range>: Move from top level.
14397 <msymbols>: New method.
14398 (class objfile_msymbols): Remove.
14399 * symtab.c (default_collect_symbol_completion_matches_break_on):
14401 * symmisc.c (dump_msymbols): Update.
14402 * stabsread.c (scan_file_globals): Update.
14403 * objc-lang.c (info_selectors_command, info_classes_command)
14404 (find_methods): Update.
14405 * minsyms.c (find_solib_trampoline_target): Update.
14406 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14407 * coffread.c (coff_symfile_read): Update.
14408 * ada-lang.c (ada_lookup_simple_minsym)
14409 (ada_collect_symbol_completion_matches): Update.
14411 2019-01-16 Tom Tromey <tom@tromey.com>
14413 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14414 type. Remove no-argument constructor.
14415 <iterator::operator++>: Simplify.
14417 <end>: Use minimal_symbol_count.
14419 2019-01-16 Tom Tromey <tom@tromey.com>
14421 * objfiles.h (struct objfile) <psymtabs>: New method.
14422 (class objfile_psymtabs): Remove.
14423 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14425 <range>: New method.
14426 (require_partial_symbols): Change return type.
14427 * psymtab.c (require_partial_symbols)
14428 (psym_expand_symtabs_matching): Update.
14429 * mdebugread.c (parse_partial_symbols): Update.
14430 * dbxread.c (dbx_end_psymtab): Update.
14432 2019-01-15 Tom Tromey <tom@tromey.com>
14434 * symtab.c (lookup_objfile_from_block)
14435 (lookup_symbol_in_objfile_symtabs)
14436 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14437 (find_line_symtab, info_sources_command)
14438 (default_collect_symbol_completion_matches_break_on)
14439 (make_source_files_completion_list): Update.
14440 * symmisc.c (print_objfile_statistics, dump_objfile)
14441 (maintenance_print_symbols, maintenance_info_symtabs)
14442 (maintenance_check_symtabs, maintenance_info_line_tables):
14444 * source.c (select_source_symtab)
14445 (forget_cached_source_info_for_objfile): Update.
14446 * objfiles.h (class objfile_compunits): Remove.
14447 (struct objfile) <compunits_range>: New typedef.
14448 (compunits): New method.
14449 * objfiles.c (objfile_relocate1): Update.
14450 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14451 * maint.c (count_symtabs_and_blocks): Update.
14452 * linespec.c (iterate_over_all_matching_symtabs): Update.
14453 * cp-support.c (add_symbol_overload_list_qualified): Update.
14454 * coffread.c (coff_symtab_read): Update.
14455 * ada-lang.c (add_nonlocal_symbols)
14456 (ada_collect_symbol_completion_matches)
14457 (ada_add_global_exceptions): Update.
14459 2019-01-15 Tom Tromey <tom@tromey.com>
14461 * progspace.h (program_space) <objfiles_safe_range>: New
14463 <objfiles_safe>: New method.
14464 * objfiles.h (class all_objfiles_safe): Remove.
14465 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14466 * jit.c (jit_inferior_exit_hook): Update.
14468 2019-01-17 Tom Tromey <tom@tromey.com>
14470 * progspace.h (program_space) <objfiles_range>: New typedef.
14471 <objfiles>: New method.
14472 <objfiles_head>: Rename from objfiles.
14473 (object_files): Update.
14474 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14475 * guile/scm-pretty-print.c
14476 (ppscm_find_pretty_printer_from_objfiles): Update.
14477 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14478 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14480 * python/py-progspace.c (pspy_get_objfiles): Update.
14481 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14483 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14484 (objfpy_lookup_objfile_by_build_id): Update.
14485 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14486 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14488 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14489 (expand_symtab_containing_pc, lookup_objfile_from_block)
14490 (lookup_static_symbol, basic_lookup_transparent_type)
14491 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14492 (find_line_symtab, info_sources_command)
14493 (default_collect_symbol_completion_matches_break_on)
14494 (make_source_files_completion_list, find_main_name): Update.
14495 * symmisc.c (print_symbol_bcache_statistics)
14496 (print_objfile_statistics, maintenance_print_symbols)
14497 (maintenance_print_msymbols, maintenance_print_objfiles)
14498 (maintenance_info_symtabs, maintenance_check_symtabs)
14499 (maintenance_expand_symtabs, maintenance_info_line_tables):
14501 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14502 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14503 (map_overlay_command, unmap_overlay_command)
14504 (simple_overlay_update, expand_symtabs_matching)
14505 (map_symbol_filenames): Update.
14506 * symfile-debug.c (set_debug_symfile): Update.
14507 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14509 * source.c (select_source_symtab, forget_cached_source_info):
14511 * solib.c (solib_read_symbols): Update.
14512 * solib-spu.c (append_ocl_sos): Update.
14513 * psymtab.c (maintenance_print_psymbols)
14514 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14515 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14516 * printcmd.c (info_symbol_command): Update.
14517 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14519 * objfiles.h (class all_objfiles): Remove.
14520 * objfiles.c (have_partial_symbols, have_full_symbols)
14521 (have_minimal_symbols, qsort_cmp, update_section_map)
14522 (shared_objfile_contains_address_p)
14523 (default_iterate_over_objfiles_in_search_order): Update.
14524 * objc-lang.c (info_selectors_command, info_classes_command)
14525 (find_methods): Update.
14526 * minsyms.c (find_solib_trampoline_target): Update.
14527 * maint.c (maintenance_info_sections)
14528 (maintenance_translate_address, count_symtabs_and_blocks):
14530 * main.c (captured_main_1): Update.
14531 * linux-thread-db.c (try_thread_db_load_from_pdir)
14532 (has_libpthread): Update.
14533 * linespec.c (iterate_over_all_matching_symtabs)
14534 (search_minsyms_for_name): Update.
14535 * jit.c (jit_find_objf_with_entry_addr): Update.
14536 * hppa-tdep.c (find_unwind_entry)
14537 (hppa_lookup_stub_minimal_symbol): Update.
14538 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14540 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14541 (elf_gnu_ifunc_resolve_by_got): Update.
14542 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14543 * dwarf-index-write.c (save_gdb_index_command): Update.
14544 * cp-support.c (add_symbol_overload_list_qualified): Update.
14545 * breakpoint.c (create_overlay_event_breakpoint)
14546 (create_longjmp_master_breakpoint)
14547 (create_std_terminate_master_breakpoint)
14548 (create_exception_master_breakpoint): Update.
14549 * blockframe.c (find_pc_partial_function): Update.
14550 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14551 (ada_collect_symbol_completion_matches)
14552 (ada_add_global_exceptions): Update.
14554 2019-01-17 Tom Tromey <tom@tromey.com>
14556 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14558 (solib_target_parse_libraries): Change return type.
14559 (library_list_start_segment, library_list_start_section)
14560 (library_list_end_library, library_list_start_library); Update.
14561 (solib_target_free_library_list): Remove.
14562 (solib_target_parse_libraries): Remove cleanup. Change return
14564 (solib_target_current_sos): Update.
14566 2019-01-17 Tom Tromey <tromey@bapiya>
14568 * valprint.c: Replace "the the" with "the".
14569 * symtab.c: Replace "the the" with "the".
14570 * solib.c: Replace "the the" with "the".
14571 * solib-dsbt.c: Replace "the the" with "the".
14572 * linespec.c: Replace "the the" with "the".
14573 * dwarf2loc.h: Replace "the the" with "the".
14574 * amd64-windows-tdep.c: Replace "the the" with "the".
14575 * aarch64-tdep.c: Replace "the the" with "the".
14577 2019-01-16 Keith Seitz <keiths@redhat.com>
14580 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14581 <builder>: Rename to ..
14582 <m_builder>: ... this and make private.
14583 (dwarf2_cu::get_builder): New method. Change all users of
14584 `builder' to use this method.
14585 (dwarf2_start_symtab): Move to ...
14586 (dwarf2_cu::start_symtab): ... here. Update all callers
14587 (setup_type_unit_groups): Move to ...
14588 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14590 (dwarf2_cu::reset_builder): New method.
14591 (process_full_compunit, process_full_type_unit): Use
14592 dwarf2_cu::reset_builder.
14593 (follow_die_offset): Record the ancestor CU if it is different
14594 from the followed DIE's CU.
14595 (follow_die_sig_1): Likewise.
14597 2019-01-15 Tom Tromey <tom@tromey.com>
14599 * remote.c (class remote_state) <buf>: Now a char_vector.
14600 <buf_size>: Remove.
14601 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14603 (remote_target::getpkt_or_notif_sane_1)
14604 (remote_target::getpkt_sane)
14605 (remote_target::getpkt_or_notif_sane): Likewise.
14606 (class remote_target) <putpkt>: New overload.
14607 (remote_target::read_frame): Change type of "buf_p". Remove
14608 sizeof_p parameter.
14609 (packet_ok): New overload.
14610 (packet_check_result): New overload.
14613 2019-01-14 Tom Tromey <tom@tromey.com>
14615 * remote-notif.c (handle_notification, remote_notif_ack)
14616 (remote_notif_parse): Make "buf" const.
14617 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14619 (remote_notif_parse, remote_notif_ack, handle_notification):
14621 * remote.c (remote_notif_stop_parse): Make "buf" const.
14622 (remote_target::remote_parse_stop_reply): Make "buf" const.
14623 (remote_notif_stop_ack): Make "buf" const.
14625 2019-01-14 Tom Tromey <tom@tromey.com>
14627 * remote.c (remote_console_output): Make parameter const.
14629 2019-01-14 Tom Tromey <tom@tromey.com>
14631 * target-debug.h (target_debug_print_signals): Constify.
14632 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14633 * procfs.c (procfs_target::pass_signals): Update.
14634 * linux-nat.c (linux_nat_target::pass_signals): Update.
14635 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14636 * target-delegates.c: Rebuild.
14637 * remote.c (remote_target::program_signals): Update.
14638 (remote_target::pass_signals): Update.
14639 * target.c (target_pass_signals): Constify argument.
14640 (target_program_signals): Likewise.
14641 * target.h (struct target_ops) <pass_signals, program_signals>:
14643 (target_pass_signals, target_program_signals): Constify argument.
14645 2019-01-14 Tom Tromey <tom@tromey.com>
14648 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14650 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14652 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14654 * rs6000-tdep.c: Include reggroups.h.
14655 (IS_V_ALIAS_PSEUDOREG): Define.
14656 (rs6000_register_name): Return names for the "vX" aliases.
14657 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14658 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14659 aliases. Call default_register_reggroup_p for all other
14661 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14663 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14664 Handle "vX" aliases.
14665 (v_alias_pseudo_register_collect): New function.
14666 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14667 (rs6000_gdbarch_init): Initialize "vX" aliases as
14668 pseudo-registers. Restore registration of
14669 rs6000_pseudo_register_reggroup_p with
14670 set_tdesc_pseudo_register_reggroup_p.
14672 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14674 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14675 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14676 set_gdbarch_num_pseudo_regs.
14678 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14680 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14681 Remove arg prefixname, add do_set and do_show.
14682 Add member functions set_list and show_list.
14683 * cli/cli-style.c (class cli_style_option): Update accordingly.
14684 (style_set_list): Move to file scope.
14685 (style_show_list): Likewise.
14686 (set_style): Call help_list.
14687 (show_style): Call cmd_show_list.
14688 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14689 Update to use the new macro.
14691 2019-10-12 Joel Brobecker <brobecker@adacore.com>
14693 * ada-lang.c (_initialize_ada_language): Expand the help text
14694 for the "catch exception" command.
14696 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14698 * symtab.c (matching_obj_sections): Initialize obj,
14699 declare it closer to its usage.
14701 2019-01-10 Tom Tromey <tom@tromey.com>
14703 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14704 (basic_inf_threads_range): Remove.
14705 (inf_threads_range, inf_non_exited_threads_range)
14706 (safe_inf_threads_range): Use next_adapter.
14708 2019-01-10 Keith Seitz <keiths@redhat.com>
14712 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14713 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14715 2019-01-10 Keith Seitz <keiths@redhat.com>
14719 * dictionary.c (pending_to_vector): Remove.
14720 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14721 Remove _1 suffix, replacing functions of the same name. Update
14723 (dict_create_hashed, dict_create_hashed_expandable)
14724 (dict_create_linear, dict_create_linear_expandable, dict_free)
14725 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14726 Make functions static.
14728 2019-01-10 Keith Seitz <keiths@redhat.com>
14732 * dictionary.h (struct dictionary): Replace declaration with
14734 (dict_create_hashed, dict_create_hashed_expandable)
14735 (dict_create_linear, dict_create_linear_expandable)
14736 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14737 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14738 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14739 taking multidictionary argument.
14740 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14741 * block.h (struct block) <dict>: Change to multidictionary
14742 and rename `multidict'.
14743 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14744 symmisc.c: Update all dictionary references to multidictionary.
14746 2019-01-10 Keith Seitz <keiths@redhat.com>
14750 * dictionary.c: Include unordered_map.
14751 (pending_to_vector): New function.
14752 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14753 Rewrite the non-"_1" functions to take vector instead
14755 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14756 "new" _1 versions of the same name.
14757 (multidictionary): Define.
14758 (std::hash<enum language): New definition.
14759 (collate_pending_symbols_by_language, mdict_create_hashed)
14760 (mdict_create_hashed_expandable, mdict_create_linear)
14761 (mdict_create_linear_expandable, mdict_free)
14762 (find_language_dictionary, create_new_language_dictionary)
14763 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14764 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14765 (mdict_size, mdict_empty): New functions.
14766 * dictionary.h (mdict_iterator): Define.
14768 2019-01-10 Pedro Alves <palves@redhat.com>
14770 * breakpoint.c (read_uploaded_action)
14771 (create_tracepoint_from_upload): Adjust to use
14772 gdb::unique_xmalloc_ptr.
14773 * ctf.c (ctf_write_uploaded_tp):
14774 (SET_ARRAY_FIELD): Use emplace_back.
14775 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14776 * tracefile-tfile.c (tfile_write_uploaded_tp):
14777 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14778 gdb::unique_xmalloc_ptr.
14779 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14780 at_string, cond_string, cmd_strings>: Replace char pointers
14781 with gdb::unique_xmalloc_ptr.
14783 2019-01-10 Pedro Alves <palves@redhat.com>
14785 * solib-target.c (library_list_start_library): Don't xstrdup name.
14787 2019-01-10 Pedro Alves <palves@redhat.com>
14789 * mdebugread.c (parse_partial_symbols): Use
14790 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14792 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14794 * linux-fork.c (scoped_switch_fork_info)
14795 <~scoped_switch_fork_info>: Fix incorrect variable name.
14797 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14799 * linux-fork.c (scoped_switch_fork_info)
14800 <scoped_switch_fork_info>: Make explicit.
14801 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14803 2019-01-10 Tom Tromey <tom@tromey.com>
14805 * objfiles.h (objfile::reset_psymtabs): Update.
14806 * objfiles.c (objfile::objfile): Update.
14807 * psymtab.h (psymtab_storage::obstack): Update.
14808 (psymtab_storage::m_obstack): Use gdb::optional.
14809 (class psymtab_storage): Update comment. Remove objfile
14811 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14813 2019-01-10 Tom Tromey <tom@tromey.com>
14815 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14816 <free_psymtabs>: Now private.
14817 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14818 (allocate_psymtab): Use new method.
14820 2019-01-10 Tom Tromey <tom@tromey.com>
14822 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14823 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14824 * mdebugread.c (parse_partial_symbols): Use
14825 allocate_dependencies.
14826 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14827 allocate_dependencies.
14828 (process_psymtab_comp_unit_reader)
14829 (build_type_psymtab_dependencies): Likewise.
14830 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14832 2019-01-10 Tom Tromey <tom@tromey.com>
14834 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14835 PSYMBOL_SET_LANGUAGE.
14836 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14838 2019-01-10 Tom Tromey <tom@tromey.com>
14840 * psymtab.h (psymtab_storage::obstack): New method.
14841 <m_obstack>: Rename from obstack; now private.
14842 * psymtab.c (psymtab_storage): Update.
14843 * dwarf2read.c (create_addrmap_from_index)
14844 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14847 2019-01-10 Tom Tromey <tom@tromey.com>
14849 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14850 * objfiles.h (objfile::reset_psymtabs): New method.
14852 2019-01-10 Tom Tromey <tom@tromey.com>
14854 * symmisc.c (print_symbol_bcache_statistics): Update.
14855 (print_objfile_statistics): Update.
14856 * symfile.c (reread_symbols): Update.
14857 * psymtab.h (class psymtab_storage): New.
14858 * psymtab.c (psymtab_storage): New constructor.
14859 (~psymtab_storage): New destructor.
14860 (require_partial_symbols): Update.
14861 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14862 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14863 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14864 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14865 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14866 (start_psymtab_common, end_psymtab_common)
14867 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14868 (allocate_psymtab): Update.
14869 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14871 (dump_psymtab_addrmap, maintenance_print_psymbols)
14872 (maintenance_check_psymtabs): Update.
14873 (class objfile_psymtabs): Move to objfiles.h.
14874 * psympriv.h (discard_psymtab): Now inline.
14875 (psymtab_discarder::psymtab_discarder): Update.
14876 (psymtab_discarder::~psymtab_discarder): Update.
14877 (ALL_OBJFILE_PSYMTABS): Rewrite.
14878 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14879 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14881 <partial_symtabs>: New field.
14882 (class objfile_psymtabs): Move from psymtab.h. Update.
14883 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14885 (objfile::~objfile): Don't destroy psymbol_cache.
14886 * mdebugread.c (parse_partial_symbols): Update.
14887 * dwarf2read.c (create_addrmap_from_index)
14888 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14889 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14890 (add_partial_subprogram, dwarf2_ranges_read): Update.
14891 * dwarf-index-write.c (write_address_map)
14892 (write_one_signatured_type, recursively_write_psymbols)
14893 (class debug_names, class debug_names, write_psymtabs_to_index):
14896 2019-01-10 Tom Tromey <tom@tromey.com>
14898 * symtab.h (SYMBOL_SET_NAMES): Update.
14899 (symbol_set_names): Update.
14900 (MSYMBOL_SET_NAMES): Update.
14901 * symtab.c (symbol_set_names): Change argument to be an
14902 objfile_per_bfd_storage.
14903 * psymtab.c (add_psymbol_to_bcache): Update.
14904 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
14906 2019-01-10 Tom Tromey <tom@tromey.com>
14908 * symtab.c (create_demangled_names_hash): Change argument to be an
14909 objfile_per_bfd_storage.
14910 (symbol_set_names): Update.
14912 2019-01-10 Tom Tromey <tom@tromey.com>
14914 * xcoffread.c (xcoff_initial_scan): Unconditionally call
14916 * psymtab.c (init_psymbol_list): Do nothing if already called.
14917 * psympriv.h (init_psymbol_list): Add comment.
14918 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
14920 * dbxread.c (dbx_symfile_read): Unconditionally call
14923 2019-01-10 Tom Tromey <tom@tromey.com>
14925 * xcoffread.c (scan_xcoff_symtab): Update.
14926 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
14928 * mdebugread.c (parse_partial_symbols)
14929 (handle_psymbol_enumerators): Update.
14930 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
14931 * dbxread.c (read_dbx_symtab): Update.
14932 * psympriv.h (psymbol_placement): New enum.
14933 (add_psymbol_to_list): Update.
14935 2019-01-10 Tom Tromey <tom@tromey.com>
14937 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
14938 static_psymbols parameters.
14939 (scan_xcoff_symtab): Update.
14940 * psymtab.c (start_psymtab_common): Remove global_psymbols and
14941 static_psymbols parameters.
14942 * psympriv.h (start_psymtab_common): Update.
14943 * mdebugread.c (parse_partial_symbols): Update.
14944 * dwarf2read.c (create_partial_symtab): Update.
14945 * dbxread.c (read_dbx_symtab): Update.
14946 (start_psymtab): Remove global_psymbols and static_psymbols
14949 2019-01-10 Tom Tromey <tom@tromey.com>
14951 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
14952 * psymtab.c (allocate_psymtab): Add comment.
14953 * psympriv.h (allocate_psymtab): Add comment.
14954 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
14956 * dbxread.c (dbx_end_psymtab): Remove some initializations.
14958 2019-01-10 Tom Tromey <tom@tromey.com>
14960 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14962 * mipsread.c: Include mdebugread.h.
14963 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14965 * elfread.c: Include mdebugread.h.
14967 2019-01-09 Tom Tromey <tom@tromey.com>
14969 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
14970 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
14971 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
14972 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14973 (psym_lookup_symbol, psym_find_last_source_symtab)
14974 (psym_forget_cached_source_info, psym_print_stats)
14975 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14976 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14977 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14978 (psym_find_compunit_symtab_by_address)
14979 (maintenance_print_psymbols, maintenance_info_psymtabs)
14980 (maintenance_check_psymtabs): Use ranged for.
14981 * psymtab.h (class objfile_psymtabs): New.
14982 (require_partial_symbols): Return objfile_psymtabs.
14983 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14985 2019-01-09 Tom Tromey <tom@tromey.com>
14987 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14988 (find_pc_mapped_section, list_overlays_command)
14989 (map_overlay_command, unmap_overlay_command)
14990 (simple_overlay_update): Use all_objfiles.
14991 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
14992 * printcmd.c (info_symbol_command): Use all_objfiles.
14993 * objfiles.h (ALL_OBJSECTIONS): Remove.
14994 * maint.c (maintenance_translate_address): Use all_objfiles.
14995 * gcore.c (gcore_create_callback): Use all_objfiles.
14996 (objfile_find_memory_regions): Likewise.
14998 2019-01-09 Tom Tromey <tom@tromey.com>
15000 * symtab.c (find_line_symtab, info_sources_command)
15001 (make_source_files_completion_list): Use objfile_compunits.
15002 * source.c (select_source_symtab): Use objfile_compunits.
15003 * objfiles.h (struct objfile): Update comment.
15004 (ALL_OBJFILES): Remove.
15005 (ALL_FILETABS): Remove.
15006 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15009 2019-01-09 Tom Tromey <tom@tromey.com>
15011 * symmisc.c (print_objfile_statistics, dump_objfile)
15012 (maintenance_print_symbols): Use compunit_filetabs.
15013 * source.c (forget_cached_source_info_for_objfile): Use
15015 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15016 (ALL_FILETABS): Use compunit_filetabs.
15017 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15018 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15020 2019-01-09 Tom Tromey <tom@tromey.com>
15022 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15023 (compunit_filetabs): New.
15024 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15026 (info_sources_command, make_source_files_completion_list): Remove
15028 * symmisc.c (print_objfile_statistics, dump_objfile)
15029 (maintenance_print_symbols): Remove declaration.
15030 (maintenance_info_symtabs): Use compunit_filetabs.
15031 (maintenance_info_line_tables): Likewise.
15032 * source.c (select_source_symtab): Change local variable name.
15033 (forget_cached_source_info_for_objfile): Remove declaration.
15034 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15035 * objfiles.c (objfile_relocate1): Remove declaration.
15036 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15038 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15039 * coffread.c (coff_symtab_read): Remove declaration.
15040 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15043 2019-01-09 Tom Tromey <tom@tromey.com>
15045 * symtab.c (lookup_objfile_from_block)
15046 (find_pc_sect_compunit_symtab, search_symbols)
15047 (default_collect_symbol_completion_matches_break_on): Use
15049 * objfiles.h (ALL_COMPUNITS): Remove.
15050 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15051 * cp-support.c (add_symbol_overload_list_qualified): Use
15053 * ada-lang.c (ada_collect_symbol_completion_matches)
15054 (ada_add_global_exceptions): Use objfile_compunits.
15056 2019-01-09 Tom Tromey <tom@tromey.com>
15058 * source.c (select_source_symtab)
15059 (forget_cached_source_info_for_objfile): Remove declaration.
15060 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15062 * maint.c (count_symtabs_and_blocks): Remove declaration.
15063 * cp-support.c (add_symbol_overload_list_qualified): Remove
15065 * coffread.c (coff_symtab_read): Remove declaration.
15066 * symtab.c (lookup_symbol_in_objfile_symtabs)
15067 (basic_lookup_transparent_type_1): Use objfile_compunits.
15068 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15069 (info_sources_command, search_symbols)
15070 (default_collect_symbol_completion_matches_break_on)
15071 (make_source_files_completion_list): Remove declaration.
15072 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15073 (ada_collect_symbol_completion_matches)
15074 (ada_add_global_exceptions): Remove declaration.
15075 * linespec.c (iterate_over_all_matching_symtabs): Use
15077 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15078 (class objfile_compunits): New.
15079 (ALL_COMPUNITS): Use objfile_compunits.
15080 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15081 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15083 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15085 2019-01-09 Tom Tromey <tom@tromey.com>
15087 * symtab.c (search_symbols)
15088 (default_collect_symbol_completion_matches_break_on): Use
15090 * ada-lang.c (ada_lookup_simple_minsym)
15091 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15092 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15093 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15095 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15096 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15097 * objc-lang.c (find_methods): Use objfile_msymbols.
15098 (info_selectors_command, info_classes_command): Likewise.
15099 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15100 * objfiles.h (class objfile_msymbols): New.
15101 (ALL_OBJFILE_MSYMBOLS): Remove.
15102 (ALL_MSYMBOLS): Remove.
15104 2019-01-09 Tom Tromey <tom@tromey.com>
15106 * common/next-iterator.h (next_adapter): Add Iterator template
15108 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15109 (class all_objfiles_safe): New.
15110 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15111 * objfiles.c (put_objfile_before): Update comment.
15112 (add_separate_debug_objfile): Likewise.
15113 (free_all_objfiles): Use all_objfiles_safe.
15114 (objfile_purge_solibs): Likewise.
15116 2019-01-09 Tom Tromey <tom@tromey.com>
15118 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15119 (expand_symtab_containing_pc, lookup_static_symbol)
15120 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15121 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15123 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15124 * breakpoint.c (create_overlay_event_breakpoint)
15125 (create_longjmp_master_breakpoint)
15126 (create_std_terminate_master_breakpoint)
15127 (create_exception_master_breakpoint): Use all_objfiles.
15128 * linux-thread-db.c (try_thread_db_load_from_pdir)
15129 (has_libpthread): Use all_objfiles.
15130 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15131 * linespec.c (iterate_over_all_matching_symtabs)
15132 (search_minsyms_for_name): Use all_objfiles.
15133 * maint.c (maintenance_info_sections): Use all_objfiles.
15134 * main.c (captured_main_1): Use all_objfiles.
15135 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15136 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15137 * guile/scm-pretty-print.c
15138 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15139 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15140 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15141 (maintenance_print_msymbols): Use all_objfiles.
15142 * source.c (select_source_symtab): Use all_objfiles.
15143 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15144 * symfile.c (remove_symbol_file_command)
15145 (expand_symtabs_matching, map_symbol_filenames): Use
15147 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15149 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15150 * objc-lang.c (find_methods): Use all_objfiles.
15151 * objfiles.c (have_partial_symbols, have_full_symbols)
15152 (have_minimal_symbols, qsort_cmp)
15153 (default_iterate_over_objfiles_in_search_order): Use
15155 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15156 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15157 (maintenance_check_psymtabs): Use all_objfiles.
15158 (ALL_PSYMTABS): Remove.
15159 * compile/compile-object-run.c (do_module_cleanup): Use
15161 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15162 * cp-support.c (add_symbol_overload_list_qualified): Use
15164 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15166 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15167 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15169 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15170 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15171 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15173 * solib.c (solib_read_symbols): Use all_objfiles
15175 2019-01-09 Tom Tromey <tom@tromey.com>
15177 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15178 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15180 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15181 * symmisc.c (print_symbol_bcache_statistics)
15182 (print_objfile_statistics, maintenance_print_objfiles)
15183 (maintenance_info_symtabs, maintenance_check_symtabs)
15184 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15186 * source.c (forget_cached_source_info): Use all_objfiles.
15187 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15188 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15189 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15190 * objfiles.c (update_section_map): Use all_objfiles.
15191 (shared_objfile_contains_address_p): Likewise.
15192 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15193 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15195 2019-01-09 Tom Tromey <tom@tromey.com>
15197 * common/next-iterator.h: New file.
15198 * objfiles.h (class all_objfiles): New.
15199 (struct objfile_iterator): New.
15201 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15203 * NEWS: Move the description of the changed "frame", "select-frame",
15204 and "info frame" commands to the Changed commands section.
15206 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15208 * gdbtypes.c (check_stub_method_group): Remove handling of old
15210 * linespec.c (find_methods): Likewise.
15211 * stabsread.c (read_member_functions): Likewise.
15212 * valops.c (search_struct_method): Likewise.
15213 (value_struct_elt_for_reference): Likewise.
15214 * NEWS: Mention this change.
15216 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15218 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15219 print_source_lines.
15220 * source.c (print_source_lines_base): Update line number check.
15221 (print_source_lines): New function.
15222 (source_lines_range::source_lines_range): New function.
15223 * source.h (class source_lines_range): New class.
15224 (print_source_lines): New declaration.
15226 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15228 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15230 2019-01-08 Tom Tromey <tom@tromey.com>
15231 Simon Marchi <simon.marchi@ericsson.com>
15234 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15235 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15236 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15237 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15238 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15239 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15241 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15243 * source.c (select_source_symtab): Move header comment to
15244 declaration in source.h.
15245 (forget_cached_source_info_for_objfile): Likewise.
15246 (forget_cached_source_info): Likewise.
15247 (identify_source_line): Likewise.
15248 * source.h (identify_source_line): Move declaration from symtab.h
15249 and add comment from source.c
15250 (print_source_lines): Likewise.
15251 (forget_cached_source_info_for_objfile): Likewise.
15252 (forget_cached_source_info): Likewise.
15253 (select_source_symtab): Likewise.
15254 (enum print_source_lines_flag): Move definition from symtab.h.
15255 * symtab.h (identify_source_line): Move declaration to source.h.
15256 (print_source_lines): Likewise.
15257 (forget_cached_source_info_for_objfile): Likewise.
15258 (forget_cached_source_info): Likewise.
15259 (select_source_symtab): Likewise.
15260 (enum print_source_lines_flag): Move definition to source.h.
15261 * tui/tui-hooks.c: Add 'source.h' include.
15263 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15265 * source.c (print_source_lines_base): Handle requests to print
15266 reverse line number sequences, and guard against empty lines
15269 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15271 * source.c (print_source_lines_base): Fix skip of '\r' if next
15274 2019-01-06 Tom Tromey <tom@tromey.com>
15276 * c-exp.y (struct c_parse_state) <macro_original_text,
15277 expansion_obstack>: New member.
15278 (macro_original_text, expansion_obstack): Remove globals.
15279 (scan_macro_expansion, scanning_macro_expansion)
15280 (finished_macro_expansion): Update.
15281 (scan_macro_cleanup): Remove.
15282 (yylex, c_parse): Update.
15284 2019-01-06 Tom Tromey <tom@tromey.com>
15286 * c-exp.y (struct c_parse_state) <strings>: New member.
15287 (operator_stoken): Update.
15289 2019-01-06 Tom Tromey <tom@tromey.com>
15291 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15292 (union type_stack_elt) <typelist_val>: Now a pointer to
15294 (type_stack_cleanup): Don't declare.
15295 (push_typelist): Update.
15296 * parse.c (pop_typelist): Return a std::vector.
15297 (push_typelist): Take a std::vector.
15298 (follow_types): Update. Do not free args.
15299 (type_stack_cleanup): Remove.
15300 * c-exp.y (struct c_parse_state): New.
15301 (cpstate): New global.
15302 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15303 (nonempty_typelist): Update.
15304 (func_mod): Create a new vector.
15305 (c_parse): Create a c_parse_state.
15306 (check_parameter_typelist): Do not delete params.
15307 (function_method): Update. Do not delete type_list.
15309 2019-01-06 Tom Tromey <tom@tromey.com>
15312 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15314 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15315 (print_return_value): Likewise.
15317 2019-01-05 Tom Tromey <tom@tromey.com>
15319 * contrib/cleanup_check.py: Remove.
15320 * contrib/gcc-with-excheck: Remove.
15321 * contrib/exsummary.py: Remove.
15322 * contrib/excheck.py: Remove.
15324 2019-01-05 Joel Brobecker <brobecker@adacore.com>
15326 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15327 NULL. Initialize tpprev to NULL instead of assigning it
15328 to NULL on the next statement.
15329 * windows-nat.c (windows_delete_thread): Remove check for
15330 main_thread_id before printing thread exit notifications.
15331 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15332 Remove thread ID check against main_thread_id.
15333 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15334 windows_delete_thread.
15335 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15337 2019-01-04 Tom Tromey <tom@tromey.com>
15339 * compile/compile.c (_initialize_compile): Use upper case for
15340 metasyntactic variables.
15341 * symmisc.c (_initialize_symmisc): Use upper case for
15342 metasyntactic variables.
15343 * psymtab.c (_initialize_psymtab): Use upper case for
15344 metasyntactic variables.
15345 * demangle.c (demangle_command): Use upper case for metasyntactic
15347 (_initialize_demangler): Likewise.
15348 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15351 2019-01-03 Tom Tromey <tom@tromey.com>
15353 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15355 2019-01-03 Tom Tromey <tom@tromey.com>
15357 * python/py-symtab.c (salpy_str): Update.
15358 (struct salpy_sal_object) <symtab>: Now a PyObject.
15359 (salpy_dealloc): Update.
15360 (del_objfile_sal): Use gdbpy_ref.
15362 2019-01-03 Tom Tromey <tom@tromey.com>
15364 * python/py-type.c (convert_field): Use new_reference. Return
15366 (make_fielditem): Return gdbpy_ref.
15367 (typy_fields): Update.
15368 (typy_getitem): Update.
15369 (field_name): Return gdbpy_ref. Use new_reference.
15370 (typy_iterator_iternext): Update.
15372 2019-01-03 Tom Tromey <tom@tromey.com>
15374 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15376 2019-01-03 Tom Tromey <tom@tromey.com>
15378 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15379 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15380 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15381 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15382 (pspy_set_type_printers): Likewise.
15383 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15384 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15385 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15386 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15387 (objfpy_set_type_printers): Likewise.
15389 2019-01-03 Tom Tromey <tom@tromey.com>
15391 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15392 (gdbpy_print_stack): Use gdbpy_err_fetch.
15393 * python/python-internal.h (class gdbpy_err_fetch): New class.
15394 (class gdbpy_enter) <m_error_type, m_error_value,
15395 m_error_traceback>: Remove.
15396 <m_error>: New member.
15397 (gdbpy_exception_to_string): Don't declare.
15398 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15399 * python/py-value.c (convert_value_from_python): Use
15401 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15402 gdbpy_exception_to_string.
15403 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15404 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15407 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15409 * linux-nat.c (delete_lwp_cleanup): Delete.
15410 (struct lwp_deleter): New struct.
15411 (lwp_info_up): New typedef.
15412 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15415 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15417 * linux-fork.c (class scoped_switch_fork_info): New class.
15418 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15420 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15422 * valops.c (find_overload_match): Remove use of null_cleanup, and
15423 calls to do_cleanups.
15425 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15427 * compile/compile-cplus-types.c
15428 (compile_cplus_instance::decl_name): Handle changes to
15430 * cp-support.c (cp_func_name): Update header comment, update
15432 * cp-support.h (cp_func_name): Update return type in declaration.
15433 * valops.c (find_overload_match): Move temp_func local to top
15434 level of function and change its type. Use temp_func to hold and
15435 delete temporary string obtained from cp_func_name.
15437 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15439 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15440 gdb::char_vector, remove cleanup, and update uses of `msg`.
15442 2019-01-03 Jim Wilson <jimw@sifive.com>
15444 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15446 2019-01-02 Tom Tromey <tom@tromey.com>
15448 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15449 (tdesc_parse_xml): Remove cleanups.
15450 * target-descriptions.h (make_cleanup_free_target_description):
15452 (target_desc_deleter): New struct.
15453 (target_desc_up): New typedef.
15454 * target-descriptions.c (target_desc_deleter::operator()): Rename
15455 from free_target_description.
15456 (make_cleanup_free_target_description): Remove.
15458 2019-01-02 Tom Tromey <tom@tromey.com>
15460 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15461 constructor, destructor.
15462 (linespec_parser): Remove typedef.
15463 (~linespec_parser): Rename from linespec_parser_delete.
15464 (linespec_lex_to_end, linespec_complete_label)
15465 (linespec_complete): Update.
15466 (decode_line_full): Remove cleanups.
15467 (decode_line_1): Update.
15469 2019-01-02 Tom Tromey <tom@tromey.com>
15471 * python/python-internal.h (inferior_to_inferior_object): Change
15473 * python/py-exitedevent.c (create_exited_event_object): Update.
15474 * python/py-inferior.c (inferior_to_inferior_object): Return
15476 (python_new_inferior, python_inferior_deleted)
15477 (thread_to_thread_object, delete_thread_object)
15478 (build_inferior_list, gdbpy_selected_inferior): Update.
15479 * python/py-infthread.c (create_thread_object): Update. Also fail
15480 if inferior_to_inferior_object fails.
15482 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15484 * inferior.h (class inferior) <displaced_step_state>: New field.
15485 * infrun.h (struct displaced_step_state): Move here from
15486 infrun.c. Initialize fields, add constructor.
15487 <inf>: Remove field.
15488 <reset>: New method.
15489 * infrun.c (struct displaced_step_inferior_state): Move to
15491 (displaced_step_inferior_states): Remove.
15492 (get_displaced_stepping_state): Adust.
15493 (displaced_step_in_progress_any_inferior): Adjust.
15494 (displaced_step_in_progress_thread): Adjust.
15495 (displaced_step_in_progress): Adjust.
15496 (add_displaced_stepping_state): Remove.
15497 (get_displaced_step_closure_by_addr): Adjust.
15498 (remove_displaced_stepping_state): Remove.
15499 (infrun_inferior_exit): Call displaced_step_state.reset.
15500 (use_displaced_stepping): Don't check for NULL.
15501 (displaced_step_prepare_throw): Call
15502 get_displaced_stepping_state.
15503 (displaced_step_fixup): Don't check for NULL.
15504 (prepare_for_detach): Don't check for NULL.
15506 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15508 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15509 in case of call that did not complete.
15511 2019-01-02 Andrey Utkin <autkin@undo.io>
15513 * symfile.c (find_separate_debug_file): Fix search of debug files for
15516 2019-01-02 Tom Tromey <tom@tromey.com>
15518 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15520 * python/py-frame.c (frapy_older): Remove cast.
15521 (frapy_newer): Likewise.
15522 * python/py-breakpoint.c (local_setattro): Remove cast.
15523 * python/py-arch.c (archpy_name): Remove local variable.
15524 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15526 2019-01-02 Joel Brobecker <brobecker@adacore.com>
15528 * unittests/basic_string_view/element_access/char/empty.cc:
15529 Fix year range in copyright header.
15531 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15533 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15535 <operator==>: Update with for removed field.
15537 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15538 <isa_features>: ...this.
15539 <abi_features>: New field.
15540 (riscv_isa_flen): Update comment.
15541 (riscv_abi_xlen): New declaration.
15542 (riscv_abi_flen): New declaration.
15543 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15545 (riscv_abi_xlen): New function.
15546 (riscv_isa_flen): Update to get answer from isa_features.
15547 (riscv_abi_flen): New function.
15548 (riscv_has_fp_abi): Update to get answer from abi_features.
15549 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15551 (riscv_call_info) <xlen, flen>: Update comment.
15552 (riscv_call_arg_struct): Remove invalid assertions
15553 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15555 (riscv_gdbarch_init): Gather isa features and abi features
15556 separately, ensure both match on the gdbarch when reusing an old
15557 gdbarch. Relax an error check to allow 32-bit abi float to run on
15558 a target with 64-bit float hardware.
15560 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15562 * source.c (search_command_helper): Stop reverse search
15563 when line 1 has been searched.
15565 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15567 * record-full.c (record_full_base_target::close): Rewrite
15568 record_full_core_buf_list free logic.
15570 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15572 * break-catch-syscall.c (print_one_catch_syscall): xfree
15575 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15577 * top.c (print_gdb_version): Update Copyright year in version
15580 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15582 Update copyright year range in all GDB files.
15584 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
15586 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
15588 For older changes see ChangeLog-2018.
15594 version-control: never