1 2019-11-26 Christian Biesinger <cbiesinger@google.com>
3 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
5 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
6 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
8 2019-11-25 Tom de Vries <tdevries@suse.de>
10 * contrib/words.sh: Add -c option.
12 2019-11-25 Christian Biesinger <cbiesinger@google.com>
14 * solib.c (solib_find_1): Change int to bool.
15 (exec_file_find): Change int to bool.
16 (solib_find): Change int to bool.
17 (solib_read_symbols): Change int to bool.
18 (solib_used): Change int to bool.
19 (solib_add): Change int to bool.
20 (info_sharedlibrary_command): Change int to bool.
21 (solib_contains_address_p): Change int to bool.
22 (solib_keep_data_in_core): Change int to bool.
23 (in_solib_dynsym_resolve_code): Change int to bool.
24 (reload_shared_libraries_1): Change int to bool.
25 (gdb_sysroot_changed): Change int to bool.
26 * solib.h (solib_read_symbols): Change int to bool.
27 (solib_contains_address_p): Change int to bool.
28 (solib_keep_data_in_core): Change int to bool.
29 (in_solib_dynsym_resolve_code): Change int to bool.
30 (libpthread_name_p): Change int to bool.
32 2019-11-25 Luis Machado <luis.machado@linaro.org>
34 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
35 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
36 (remote_packet_max_chars): New static global.
37 (show_remote_packet_max_chars): New function.
38 (remote_target::putpkt_binary): Adjust to use new
39 remote_packet_max_chars option.
40 (remote_target::getpkt_or_notif_sane_1): Likewise.
41 (_initialize_remote): Register new remote-packet-max-chars option.
43 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
45 * m68k-linux-nat.c: Include gdbarch.h.
47 2019-11-24 Tom Tromey <tom@tromey.com>
49 * symfile.c (read_symbols): Update.
50 * psymtab.c (require_partial_symbols): Change type of "verbose" to
52 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
53 (psym_lookup_symbol, psym_find_last_source_symtab)
54 (psym_forget_cached_source_info, psym_print_stats)
55 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
56 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
57 (psym_map_matching_symbols, psym_expand_symtabs_matching)
58 (psym_find_compunit_symtab_by_address)
59 (maintenance_print_psymbols, maintenance_info_psymtabs)
60 (maintenance_check_psymtabs): Update.
61 * psymtab.h (require_partial_symbols): Change type of "verbose" to
64 2019-11-22 Tom Tromey <tom@tromey.com>
66 * observable.h: Update comments.
68 2019-11-22 Tom Tromey <tromey@adacore.com>
70 * ada-tasks.c (ada_task_is_alive): Make parameter const.
71 (print_ada_task_info): Don't try to fetch thread id if task is not
74 2019-11-22 Christian Biesinger <cbiesinger@google.com>
77 * ada-lang.c (sort_choices): Update.
78 (ada_print_symbol_signature): Update.
79 (resolve_subexp): Update.
80 (ada_parse_renaming): Update.
81 (ada_read_renaming_var_value): Update.
82 (lesseq_defined_than): Update.
83 (remove_extra_symbols): Update.
84 (remove_irrelevant_renamings): Update.
85 (ada_add_block_symbols): Update.
86 (ada_collect_symbol_completion_matches): Update.
87 (ada_is_renaming_symbol): Update.
88 (aggregate_assign_from_choices): Update.
89 (ada_evaluate_subexp): Update.
90 (ada_has_this_exception_support): Update.
91 (ada_is_non_standard_exception_sym): Update.
92 (ada_add_exceptions_from_frame): Update.
93 (ada_add_global_exceptions): Update.
94 (ada_print_subexp): Update.
95 * ax-gdb.c (gen_var_ref): Update.
96 (gen_maybe_namespace_elt): Update.
97 (gen_expr_for_cast): Update.
100 * blockframe.c (find_pc_partial_function): Update.
101 * breakpoint.c (print_breakpoint_location): Update.
102 (update_static_tracepoint): Update.
103 * btrace.c (ftrace_print_function_name): Update.
104 (ftrace_function_switched): Update.
105 * buildsym.c (find_symbol_in_list): Update.
107 * c-typeprint.c (c_print_typedef): Update.
108 (c_type_print_template_args): Update.
109 * cli/cli-cmds.c (edit_command): Update.
110 (list_command): Update.
111 (print_sal_location): Update.
112 * coffread.c (patch_opaque_types): Update.
113 (process_coff_symbol): Update.
114 (coff_read_enum_type): Update.
115 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
116 (convert_one_symbol): Update.
117 (hash_symname): Update.
118 (eq_symname): Update.
119 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
120 * compile/compile-cplus-types.c (debug_print_scope): Update.
121 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
122 * compile/compile-object-load.c (get_out_value_type): Update.
123 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
124 (search_symbol_list): Update.
125 (cp_lookup_symbol_imports_or_template): Update.
126 * cp-support.c (overload_list_add_symbol): Update.
127 * ctfread.c (psymtab_to_symtab): Update.
128 * dbxread.c (cp_set_block_scope): Update.
129 * dictionary.c (iter_match_first_hashed): Update.
130 (iter_match_next_hashed): Update.
131 (insert_symbol_hashed): Update.
132 (iter_match_next_linear): Update.
133 * dictionary.h: Update.
134 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
135 (locexpr_describe_location_piece): Update.
136 (locexpr_describe_location_1): Update.
137 (locexpr_generate_c_location): Update.
138 (loclist_describe_location): Update.
139 (loclist_generate_c_location): Update.
140 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
141 (read_func_scope): Update.
142 (process_enumeration_scope): Update.
143 (new_symbol): Update.
144 (dwarf2_const_value): Update.
145 (dwarf2_symbol_mark_computed): Update.
146 * eval.c (evaluate_funcall): Update.
147 (evaluate_subexp_standard): Update.
148 * expprint.c (print_subexp_standard): Update.
149 (dump_subexp_body_standard): Update.
150 * f-valprint.c (info_common_command_for_block): Update.
151 * findvar.c (get_hosting_frame): Update.
152 (default_read_var_value): Update.
153 * go-lang.c (go_symbol_package_name): Update.
154 * guile/scm-block.c (bkscm_print_block_smob): Update.
155 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
156 (gdbscm_symbol_name): Update.
157 (gdbscm_symbol_linkage_name): Update.
158 (gdbscm_symbol_print_name): Update.
159 * infcall.c (get_function_name): Update.
160 * infcmd.c (jump_command): Update.
161 (finish_command): Update.
162 * infrun.c (insert_exception_resume_breakpoint): Update.
163 * linespec.c (canonicalize_linespec): Update.
164 (create_sals_line_offset): Update.
165 (convert_linespec_to_sals): Update.
166 (complete_label): Update.
167 (find_label_symbols_in_block): Update.
168 * m2-typeprint.c (m2_print_typedef): Update.
169 * mdebugread.c (mdebug_reg_to_regnum): Update.
170 (parse_symbol): Update.
171 (mylookup_symbol): Update.
172 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
173 (list_args_or_locals): Update.
174 * objc-lang.c (compare_selectors): Update.
175 (info_selectors_command): Update.
176 (compare_classes): Update.
177 (info_classes_command): Update.
179 * p-typeprint.c (pascal_print_typedef): Update.
180 * printcmd.c (build_address_symbolic): Update.
181 (info_address_command): Update.
182 (print_variable_and_value): Update.
183 * python/py-framefilter.c (extract_sym): Update.
184 (py_print_single_arg): Update.
185 * python/py-symbol.c (sympy_str): Update.
186 (sympy_get_name): Update.
187 (sympy_get_linkage_name): Update.
188 * python/python.c (gdbpy_rbreak): Update.
189 * record-btrace.c (btrace_get_bfun_name): Update.
190 (btrace_call_history): Update.
191 * rust-lang.c (rust_print_typedef): Update.
192 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
193 * stabsread.c (stab_reg_to_regnum): Update.
194 (define_symbol): Update.
195 (read_enum_type): Update.
196 (common_block_end): Update.
197 (cleanup_undefined_types_1): Update.
198 (scan_file_globals): Update.
199 * stack.c (print_frame_arg): Update.
200 (print_frame_args): Update.
201 (find_frame_funname): Update.
202 (info_frame_command_core): Update.
203 (iterate_over_block_locals): Update.
204 (print_block_frame_labels): Update.
205 (do_print_variable_and_value): Update.
206 (iterate_over_block_arg_vars): Update.
207 (return_command): Update.
208 * symmisc.c (dump_symtab_1): Update.
209 (print_symbol): Update.
210 * symtab.c (eq_symbol_entry): Update.
211 (symbol_cache_dump): Update.
212 (lookup_language_this): Update.
213 (find_pc_sect_line): Update.
214 (skip_prologue_sal): Update.
215 (symbol_search::compare_search_syms): Update.
216 (treg_matches_sym_type_name): Update.
217 (search_symbols): Update.
218 (print_symbol_info): Update.
219 (rbreak_command): Update.
220 (completion_list_add_symbol): Update.
221 (find_gnu_ifunc): Update.
222 (get_symbol_address): Update.
223 (search_module_symbols): Update.
224 (info_module_subcommand): Update.
225 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
226 (SYMBOL_LINKAGE_NAME): Remove.
227 (SYMBOL_DEMANGLED_NAME): Remove.
228 (SYMBOL_PRINT_NAME): Remove.
229 (SYMBOL_SEARCH_NAME): Remove.
230 * tracepoint.c (set_traceframe_context): Update.
231 (validate_actionline): Update.
232 (collection_list::collect_symbol): Update.
233 (encode_actions_1): Update.
234 (info_scope_command): Update.
235 (print_one_static_tracepoint_marker): Update.
236 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
237 * valops.c (address_of_variable): Update.
238 (find_overload_match): Update.
239 (find_oload_champ): Update.
241 2019-11-22 Christian Biesinger <cbiesinger@google.com>
243 * ada-lang.c (ada_lookup_simple_minsym): Update.
244 (ada_collect_symbol_completion_matches): Update.
245 * ada-tasks.c (read_atcb): Update.
246 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
247 (amd64_windows_skip_trampoline_code): Update.
248 * arm-tdep.c (skip_prologue_function): Update.
249 (arm_skip_stack_protector): Update.
250 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
251 (arm_wince_skip_main_prologue): Update.
252 * ax-gdb.c (gen_expr): Update.
253 * block.c (call_site_for_pc): Update.
254 * blockframe.c (find_pc_partial_function): Update.
255 * breakpoint.c (set_breakpoint_location_function): Update.
256 * btrace.c (ftrace_print_function_name): Update.
257 (ftrace_function_switched): Update.
258 * c-valprint.c (print_unpacked_pointer): Update.
259 * coffread.c (coff_symfile_read): Update.
260 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
261 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
262 * dwarf-index-write.c (write_psymbols): Update.
263 * dwarf2loc.c (call_site_to_target_addr): Update.
264 (func_verify_no_selftailcall): Update.
265 (tailcall_dump): Update.
266 (call_site_find_chain_1): Update.
267 (dwarf_expr_reg_to_entry_parameter): Update.
268 * elfread.c (elf_gnu_ifunc_record_cache): Update.
269 * eval.c (evaluate_funcall): Update.
270 (evaluate_subexp_standard): Update.
271 (evaluate_subexp_for_sizeof): Update.
272 * expprint.c (print_subexp_standard): Update.
273 (dump_subexp_body_standard): Update.
274 * frame.c (get_prev_frame_always_1): Update.
275 * frv-tdep.c (frv_skip_main_prologue): Update.
276 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
277 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
278 (gnuv3_get_typename_from_type_info): Update.
279 (gnuv3_skip_trampoline): Update.
280 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
281 * i386-tdep.c (i386_skip_main_prologue): Update.
282 (i386_pe_skip_trampoline_code): Update.
283 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
284 * infcall.c (get_function_name): Update.
285 * linespec.c (minsym_found): Update.
286 * linux-fork.c (info_checkpoints_command): Update.
287 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
288 (m32c_m16c_pointer_to_address): Update.
289 * maint.c (maintenance_translate_address): Update.
290 * minsyms.c (add_minsym_to_hash_table): Update.
291 (add_minsym_to_demangled_hash_table): Update.
292 (lookup_minimal_symbol_mangled): Update.
293 (lookup_minimal_symbol_demangled): Update.
294 (lookup_minimal_symbol_linkage): Update.
295 (lookup_minimal_symbol_text): Update.
296 (lookup_minimal_symbol_by_pc_name): Update.
297 (minimal_symbol_is_less_than): Update.
298 (compact_minimal_symbols): Update.
299 (build_minimal_symbol_hash_tables): Update.
300 (find_solib_trampoline_target): Update.
301 * mips-tdep.c (mips_stub_frame_sniffer): Update.
302 (mips_skip_pic_trampoline_code): Update.
303 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
304 * objc-lang.c (info_selectors_command): Update.
305 (info_classes_command): Update.
306 (find_methods): Update.
308 * p-valprint.c (pascal_val_print): Update.
309 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
310 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
311 * printcmd.c (build_address_symbolic): Update.
312 (info_symbol_command): Update.
313 * psymtab.c (psymbol_name_matches): Update.
314 (match_partial_symbol): Update.
315 (lookup_partial_symbol): Update.
316 (print_partial_symbols): Update.
317 (sort_pst_symbols): Update.
318 (maintenance_check_psymtabs): Update.
319 * python/py-framefilter.c (py_print_frame): Update.
320 * python/python.c (gdbpy_rbreak): Update.
321 * record-btrace.c (btrace_get_bfun_name): Update.
322 (btrace_call_history): Update.
323 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
324 (rs6000_skip_trampoline_code): Update.
325 * sol-thread.c (info_cb): Update.
326 * stabsread.c (scan_file_globals): Update.
327 * stack.c (find_frame_funname): Update.
328 (info_frame_command_core): Update.
329 * symmisc.c (dump_msymbols): Update.
330 * symtab.c (symbol_natural_name): Rename to..,
331 (general_symbol_info::natural_name): ...this.
332 (symbol_demangled_name): Rename to...
333 (general_symbol_info::demangled_name): ...this.
334 (symbol_search_name): Rename to...
335 (general_symbol_info::search_name): ...this.
336 (symbol_matches_search_name): Update.
337 (find_pc_sect_line): Update.
338 (skip_prologue_sal): Update.
339 (search_symbols): Update.
340 (print_msymbol_info): Update.
341 (rbreak_command): Update.
342 (completion_list_add_msymbol): Update.
343 (completion_list_objc_symbol): Update.
344 (get_msymbol_address): Update.
345 * symtab.h (struct general_symbol_info): Add member functions
346 natural_name (), linkage_name (), print_name (), demangled_name (),
348 (SYMBOL_NATURAL_NAME): Update.
349 (symbol_natural_name): Move to a member function on general_symbol_info.
350 (SYMBOL_DEMANGLED_NAME): Update.
351 (symbol_demangled_name): Move to a member function on
353 (SYMBOL_SEARCH_NAME): Update.
354 (symbol_search_name): Move to a member function on general_symbol_info.
355 (MSYMBOL_NATURAL_NAME): Remove.
356 (MSYMBOL_LINKAGE_NAME): Remove.
357 (MSYMBOL_PRINT_NAME): Remove.
358 (MSYMBOL_DEMANGLED_NAME): Remove.
359 (MSYMBOL_SEARCH_NAME): Remove.
360 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
362 2019-11-22 Christian Biesinger <cbiesinger@google.com>
364 * symtab.c (create_demangled_names_hash): Use per_bfd->
365 minimal_symbol_count for computing the initial size, if greater
366 than our default size.
368 2019-11-22 Tom de Vries <tdevries@suse.de>
370 * contrib/words.sh: Improve words extraction.
372 2019-11-22 Tom de Vries <tdevries@suse.de>
374 * contrib/words.sh: Combine sed invocations.
376 2019-11-21 Christian Biesinger <cbiesinger@google.com>
378 * Makefile.in: Update.
379 * demangle.c: Rename to...
380 * gdb-demangle.c: ..this.
381 (is_cplus_marker): Change return type to bool.
382 (_initialize_demangler): Rename to...
383 (_initialize_gdb_demangle): ...this.
384 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
385 * symtab.h (demangle): Remove declaration; instead include
388 2019-11-21 Tom Tromey <tromey@adacore.com>
390 * gdbsupport/format.c (format_pieces): Parse %I64d.
391 * unittests/format_pieces-selftests.c (test_windows_formats): New
393 (run_tests): Call it.
395 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
397 Byte reverse display of variables with DW_END_big, DW_END_little
398 (DW_AT_endianity) dwarf attributes if different than the native
400 * ada-lang.c (ada_value_binop):
401 Use type_byte_order instead of gdbarch_byte_order.
402 * ada-valprint.c (printstr):
403 (ada_val_print_string):
404 * ada-lang.c (value_pointer):
406 Use type_byte_order instead of gdbarch_byte_order.
407 * c-lang.c (c_get_string):
408 Use type_byte_order instead of gdbarch_byte_order.
409 * c-valprint.c (c_val_print_array):
410 Use type_byte_order instead of gdbarch_byte_order.
411 * cp-valprint.c (cp_print_class_member):
412 Use type_byte_order instead of gdbarch_byte_order.
413 * dwarf2loc.c (rw_pieced_value):
414 Use type_byte_order instead of gdbarch_byte_order.
415 * dwarf2read.c (read_base_type): Handle DW_END_big,
417 * f-lang.c (f_get_encoding):
418 Use type_byte_order instead of gdbarch_byte_order.
419 * findvar.c (default_read_var_value):
420 Use type_byte_order instead of gdbarch_byte_order.
421 * gdbtypes.c (check_types_equal):
422 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
423 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
424 and TYPE_ENDIANITY_LITTLE if set.
425 (type_byte_order): new function.
426 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
427 (struct main_type) <flag_endianity_not_default>:
429 (type_byte_order): New function.
430 * infcmd.c (default_print_one_register_info):
431 Use type_byte_order instead of gdbarch_byte_order.
432 * p-lang.c (pascal_printstr):
433 Use type_byte_order instead of gdbarch_byte_order.
434 * p-valprint.c (pascal_val_print):
435 Use type_byte_order instead of gdbarch_byte_order.
436 * printcmd.c (print_scalar_formatted):
437 Use type_byte_order instead of gdbarch_byte_order.
438 * solib-darwin.c (darwin_current_sos):
439 Use type_byte_order instead of gdbarch_byte_order.
440 * solib-svr4.c (solib_svr4_r_ldsomap):
441 Use type_byte_order instead of gdbarch_byte_order.
442 * stap-probe.c (stap_modify_semaphore):
443 Use type_byte_order instead of gdbarch_byte_order.
444 * target-float.c (target_float_same_format_p):
445 Use type_byte_order instead of gdbarch_byte_order.
446 * valarith.c (scalar_binop):
448 Use type_byte_order instead of gdbarch_byte_order.
449 * valops.c (value_cast):
450 Use type_byte_order instead of gdbarch_byte_order.
451 * valprint.c (generic_emit_char):
454 Use type_byte_order instead of gdbarch_byte_order.
455 * value.c (unpack_long):
456 (unpack_bits_as_long):
457 (unpack_value_bitfield):
460 (pack_unsigned_long):
461 Use type_byte_order instead of gdbarch_byte_order.
462 * findvar.c (unsigned_pointer_to_address):
463 (signed_pointer_to_address):
464 (unsigned_address_to_pointer):
465 (address_to_signed_pointer):
466 (default_read_var_value):
467 (default_value_from_register):
468 Use type_byte_order instead of gdbarch_byte_order.
469 * gnu-v3-abi.c (gnuv3_make_method_ptr):
470 Use type_byte_order instead of gdbarch_byte_order.
471 * riscv-tdep.c (riscv_print_one_register_info):
472 Use type_byte_order instead of gdbarch_byte_order.
474 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
476 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
477 (current_ui_gdb_stdin_ptr): Likewise.
478 (current_ui_gdb_stderr_ptr): Likewise.
479 (current_ui_gdb_stdlog_ptr): Likewise.
480 (current_ui_current_uiout_ptr): Likewise.
481 (gen_ret_current_ui_field_ptr): Remove.
483 2019-11-21 Tom de Vries <tdevries@suse.de>
486 * cli/cli-script.c (execute_control_command): Only switch to
487 INTERP_CONSOLE's ui_out when INTERP_MI is active.
489 2019-11-19 Tom Tromey <tom@tromey.com>
491 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
492 Now static. Change type of "name".
493 (tui_set_win_height_command): Don't copy "arg".
494 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
495 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
497 2019-11-19 Ali Tamur <tamur@google.com>
499 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
500 "if (attr != nullptr)".
501 (dwarf2_find_base_address): Likewise.
502 (dwarf2_build_include_psymtabs): Likewise.
503 (read_cutu_die_from_dwo): Likewise.
504 (read_func_scope): Likewise.
505 (read_call_site_scope): Likewise.
506 (dwarf2_get_pc_bounds): Likewise.
507 (dwarf2_record_block_ranges): Likewise.
508 (dwarf2_add_field): Likewise.
509 (dwarf2_add_member_fn): Likewise.
510 (read_structure_type): Likewise.
511 (read_enumeration_type): Likewise.
512 (read_array_type): Likewise.
513 (read_array_order): Likewise.
514 (read_set_type): Likewise.
515 (read_common_block): Likewise.
516 (read_tag_reference_type): Likewise.
517 (read_tag_string_type): Likewise.
518 (read_subroutine_type): Likewise.
519 (read_base_type): Likewise.
520 (read_subrange_type): Likewise.
521 (new_symbol): Likewise.
522 (prepare_one_comp_unit): Likewise.
524 2019-11-19 Tom Tromey <tromey@adacore.com>
526 * windows-nat.c (windows_nat_target::attach): Include GetLastError
527 result in error when DebugActiveProcess fails.
529 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
530 Pedro Alves <palves@redhat.com>
532 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
533 * target.c (target_stack::push): Call 'unpush' if there's a
534 target on top of the stack.
536 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
538 * python/py-block.c (blpy_dealloc): Call tp_free.
539 (blpy_block_syms_dealloc): Likewise.
540 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
541 * python/py-inferior.c (infpy_dealloc): Likewise.
542 * python/py-lazy-string.c (stpy_dealloc): Likewise.
543 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
544 * python/py-symbol.c (sympy_dealloc): Likewise.
545 * python/py-symtab.c (stpy_dealloc): Likewise.
546 * python/py-type.c (typy_iterator_dealloc): Likewise.
548 2019-11-18 Christian Biesinger <cbiesinger@google.com>
550 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
551 constructor instead of using a class initializer.
553 2019-11-15 Christian Biesinger <cbiesinger@google.com>
555 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
556 * configure: Regenerate.
557 * configure.ac: Don't source common.host.
558 * gdbsupport/common.host: Remove.
559 * gdbsupport/mingw-strerror.c: Remove.
560 * gdbsupport/posix-strerror.c: Rename to...
561 * gdbsupport/safe-strerror.c: ...this.
563 2019-11-15 Christian Biesinger <cbiesinger@google.com>
565 * maint.c (scoped_command_stats::print_time): Use localtime_r
566 instead of localtime (provided through gnulib if necessary).
567 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
570 2019-11-15 Christian Biesinger <cbiesinger@google.com>
572 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
573 avoid compile errors.
575 2019-11-15 Christian Biesinger <cbiesinger@google.com>
577 * config.in: Regenerate.
578 * configure: Regenerate.
579 * gdbsupport/common.m4: No longer check for strerror_r.
580 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
581 POSIX version of strerror_r, now that gnulib provides it if
584 2019-11-14 Christian Biesinger <cbiesinger@google.com>
586 * README (`configure' options): Update.
588 2019-11-14 Tom Tromey <tromey@adacore.com>
590 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
591 expected type for the RHS if the LHS is a convenience variable.
593 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
595 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
596 Provide explicit default and copy constructor.
598 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
600 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
601 only call Py_INCREF (newbp) in the bppy_pending_object case.
603 2019-11-13 Tom Tromey <tromey@adacore.com>
606 * psympriv.h (partial_symbol): Remove static assert.
607 * symtab.h (general_symbol_info, symbol): Remove static assert.
609 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
611 * gdbsupport/format.c (format_pieces::format_pieces): Support
612 printf 'z' size modifier.
613 * gdbsupport/format.h (enum argclass): Add size_t_arg.
614 * printcmd.c (ui_printf): Handle size_t_arg.
615 * ui-out.c (ui_out::vmessage): Likewise.
616 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
618 (run_tests): Call test_format_int_sizes.
620 2019-11-12 Christian Biesinger <cbiesinger@google.com>
622 * ada-exp.y (write_ambiguous_var): Update.
623 * buildsym.c (add_symbol_to_list): Update.
624 * dwarf2read.c (read_variable): Update.
625 (new_symbol): Update.
626 * jit.c (finalize_symtab): Update.
627 * language.c (language_alloc_type_symbol): Update.
628 * symtab.c (fixup_symbol_section): Update.
629 (initialize_objfile_symbol_1): Move code to...
630 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
631 (allocate_symbol): Update.
632 (allocate_template_symbol): Update.
633 (get_symbol_address): Update.
634 * symtab.h (struct symbol): Inherit from general_symbol_info instead
635 of having as a field, and add a constructor.
636 (SYMBOL_VALUE): Update.
637 (SYMBOL_VALUE_ADDRESS): Update.
638 (SET_SYMBOL_VALUE_ADDRESS): Update.
639 (SYMBOL_VALUE_BYTES): Update.
640 (SYMBOL_VALUE_COMMON_BLOCK): Update.
641 (SYMBOL_BLOCK_VALUE): Update.
642 (SYMBOL_VALUE_CHAIN): Update.
643 (SYMBOL_LANGUAGE): Update.
644 (SYMBOL_SECTION): Update.
645 (SYMBOL_OBJ_SECTION): Update.
646 (SYMBOL_SET_LANGUAGE): Update.
647 (SYMBOL_SET_LINKAGE_NAME): Update.
648 (SYMBOL_SET_NAMES): Update.
649 (SYMBOL_NATURAL_NAME): Update.
650 (SYMBOL_LINKAGE_NAME): Update.
651 (SYMBOL_DEMANGLED_NAME): Update.
652 (SYMBOL_SEARCH_NAME): Update.
653 (SYMBOL_MATCHES_SEARCH_NAME): Update.
654 (struct symbol): Update.
655 (struct template_symbol): Update.
656 (struct rust_vtable_symbol): Update.
657 * xcoffread.c (SYMBOL_DUP): Update.
659 2019-11-12 Tom Tromey <tom@tromey.com>
661 * tui/tui-layout.c (show_layout): Set current_layout.
662 (show_source_disasm_command, show_data)
663 (show_source_or_disasm_and_command): Don't set current_layout.
665 2019-11-12 Tom Tromey <tom@tromey.com>
667 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
669 2019-11-12 Tom Tromey <tom@tromey.com>
671 * tui/tui-win.c (resize_message): New global.
672 (show_tui_resize_message): New function.
673 (tui_async_resize_screen): Print message if requested.
674 (_initialize_tui_win): Add tui-resize-message setting.
675 * NEWS: Add entry for new commands.
677 2019-11-11 Tom Tromey <tom@tromey.com>
679 * tui/tui.c (tui_initialize_readline): Add new bindable readline
682 2019-11-11 Christian Biesinger <cbiesinger@google.com>
684 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
686 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
688 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
690 * python/python-internal.h (gdbpy_lookup_static_symbols):
691 Declare new function.
692 * python/python.c (python_GdbMethods): Add
693 gdb.lookup_static_symbols method.
694 * NEWS: Mention gdb.lookup_static_symbols.
696 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
698 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
699 static block of current object file first. Also fix typo in
702 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
704 * stack.c (set_last_displayed_sal): Delete.
705 (last_displayed_sal_valid): Delete.
706 (last_displayed_pspace): Delete.
707 (last_displayed_addr): Delete.
708 (last_displayed_symtab): Delete.
709 (last_displayed_line): Delete.
710 (class last_displayed_symtab_info_type): New.
711 (last_displayed_symtab_info): New static global variable.
712 (print_frame_info): Call methods on last_displayed_symtab_info.
713 (clear_last_displayed_sal): Update header comment, and make use of
714 last_displayed_symtab_info.
715 (last_displayed_sal_is_valid): Likewise.
716 (get_last_displayed_pspace): Likewise.
717 (get_last_displayed_addr): Likewise.
718 (get_last_displayed_symtab): Likewise.
719 (get_last_displayed_line): Likewise.
720 (get_last_displayed_sal): Likewise.
721 * stack.h (clear_last_displayed_sal): Update header comment.
722 (last_displayed_sal_is_valid): Likewise.
723 (get_last_displayed_pspace): Likewise.
724 (get_last_displayed_addr): Likewise.
725 (get_last_displayed_symtab): Likewise.
726 (get_last_displayed_line): Likewise.
727 (get_last_displayed_sal): Likewise.
729 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
731 * stack.c (frame_show_address): Convert return type to bool.
732 * stack.h (frame_show_address): Likewise, and update header
735 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
737 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
738 * unittests/vec-utils-selftests.c: New file.
739 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
741 2019-11-10 Tom Tromey <tom@tromey.com>
743 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
744 (tui_highlight_win): Likewise.
745 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
746 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
747 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
748 Don't set can_highlight.
750 2019-11-10 Tom Tromey <tom@tromey.com>
752 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
753 Remove unused declaration.
755 2019-11-08 Tom Tromey <tromey@adacore.com>
757 * top.c (read_command_file): Update.
758 (command_line_input): Make return type const.
759 * python/py-gdb-readline.c: Update.
760 * linespec.c (decode_line_2): Update.
761 * defs.h (command_line_input): Make return type const.
762 * cli/cli-script.c (read_next_line): Make return type const.
763 * ada-lang.c (get_selections): Update.
765 2019-11-06 Christian Biesinger <cbiesinger@google.com>
767 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
768 * mi/mi-main.c (output_cores): Likewise.
769 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
770 (linux_xfer_osdata_modules): Likewise.
771 * remote.c (register_remote_support_xml): Likewise.
772 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
773 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
775 2019-11-06 Tom Tromey <tom@tromey.com>
777 * tui/tui-interp.c: Don't include readline.h.
778 * tui/tui-hooks.c: Don't include readline.h.
779 * symmisc.c: Include tilde.h, not readline.h.
780 * symfile.c: Include tilde.h, not readline.h.
781 * source.c: Include tilde.h, not readline.h.
782 * solib.c: Include tilde.h, not readline.h.
783 * psymtab.c: Include tilde.h, not readline.h.
784 * exec.c: Include tilde.h, not readline.h.
785 * corelow.c: Include tilde.h, not readline.h.
786 * cli/cli-dump.c: Include tilde.h, not readline.h.
787 * cli/cli-cmds.c: Don't include readline.h.
789 2019-11-05 Tom Tromey <tom@tromey.com>
791 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
792 (tui_disassemble): Set addr_size.
793 (tui_disasm_window::set_contents): Use addr_size.
795 2019-11-05 Tom Tromey <tom@tromey.com>
797 * rust-lang.c (rust_language_defn): Update.
798 * python/py-value.c (valpy_string): Call c_get_string.
799 * p-lang.c (pascal_language_defn): Update.
800 * opencl-lang.c (opencl_language_defn): Update.
801 * objc-lang.c (objc_language_defn): Update.
802 * m2-lang.c (m2_language_defn): Update.
803 * language.c (unknown_language_defn, auto_language_defn): Update.
804 (default_get_string): Remove.
805 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
806 * go-lang.c (go_language_defn): Update.
807 * f-lang.c (f_language_defn): Update.
808 * d-lang.c (d_language_defn): Update.
809 * c-lang.c (c_language_defn, cplus_language_defn)
810 (asm_language_defn, minimal_language_defn): Update.
811 * ada-lang.c (ada_language_defn): Update.
812 * language.h (struct language_defn) <la_get_string>: Remove.
813 (LA_GET_STRING): Remove.
814 (default_get_string): Don't declare.
816 2019-11-05 Tom Tromey <tom@tromey.com>
818 * tui/tui-source.h (struct tui_source_window): Inline
819 constructor. Remove destructor.
820 <style_changed, m_observable>: Move to superclass.
821 * tui/tui-winsource.h (tui_copy_source_line): Declare.
822 (struct tui_source_window_base): Move private members to end.
823 <style_changed, m_observable>: Move from tui_source_window.
824 * tui/tui-winsource.c (tui_copy_source_line): Move from
825 tui-source.c. Rename from copy_source_line. Add special handling
826 for negative line number.
827 (tui_source_window_base::style_changed): Move from
829 (tui_source_window_base): Register observer.
830 (~tui_source_window_base): New.
831 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
833 (tui_source_window::set_contents): Use tui_copy_source_line.
834 (tui_source_window::tui_source_window): Move to tui-source.h.
835 (tui_source_window::~tui_source_window): Remove.
836 (tui_source_window::style_changed): Move to superclass.
837 * tui/tui-disasm.c (tui_disassemble): Create string file with
838 styling, when possible. Add "addr_size" parameter.
839 (tui_disasm_window::set_contents): Use tui_copy_source_line.
840 Don't compute maximum size.
841 (len_without_escapes): New function
843 2019-11-05 Tom Tromey <tom@tromey.com>
845 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
847 * tui/tui-winsource.c (tui_show_source_line): Update.
848 * tui/tui-source.c (tui_source_window::set_contents): Update.
849 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
851 2019-11-05 Christian Biesinger <cbiesinger@google.com>
853 * symtab.h (gdb_static_assert): Put && operator at the beginning
854 of the line instead of the end.
856 2019-11-04 Christian Biesinger <cbiesinger@google.com>
858 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
860 * symtab.h: Add a static_assert for sizeof (partial_symbol).
862 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
864 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
865 * configure.host: Mark *-*-solaris2.10* obsolete.
866 * configure.tgt: Mark Solaris < 11 obsolete.
867 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
868 Update target triplet.
870 2019-11-01 Tom Tromey <tromey@adacore.com>
872 * utils.c (print_sys_errmsg): Simplify.
874 2019-11-01 Tom Tromey <tromey@adacore.com>
876 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
878 2019-11-01 Christian Biesinger <cbiesinger@google.com>
880 * configure: Regenerate.
881 * configure.ac: Remove check for strerror_r.
882 * gdbsupport/common.m4: Check for strerror_r.
884 2019-11-01 Luis Machado <luis.machado@linaro.org>
888 * arm-tdep.c (arm_per_objfile): Rename to ...
889 (arm_per_bfd): ... this.
890 (arm_objfile_data_key): Rename to ...
891 (arm_bfd_data_key): ... this.
892 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
894 (arm_record_special_symbol): Likewise.
896 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
898 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
900 * c-typeprint.c (c_print_typedef): Likewise.
901 * f-typeprint.c (f_print_typedef): Likewise.
902 * m2-typeprint.c (m2_print_typedef): Likewise.
903 * p-typeprint.c (pascal_print_typedef): Likewise.
904 * rust-lang.c (rust_print_typedef): Likewise.
905 * symtab.c (print_symbol_info): Print a newline after calling
908 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
910 * symtab.c (info_module_cmdlist): New variable.
911 (info_module_command): New function.
912 (search_module_symbols): New function.
913 (info_module_subcommand): New function.
914 (struct info_modules_var_func_options): New struct.
915 (info_modules_var_func_options_defs): New variable.
916 (make_info_modules_var_func_options_def_group): New function.
917 (info_module_functions_command): New function.
918 (info_module_variables_command): New function.
919 (info_module_var_func_command_completer): New function.
920 (_initialize_symtab): Register new 'info module functions' and
921 'info module variables' commands.
922 * symtab.h (typedef symbol_search_in_module): New typedef.
923 (search_module_symbols): Declare new function.
924 * NEWS: Mention new commands.
926 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
928 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
929 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
930 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
932 (scan_partial_symbols): Only create partial module symbols for non
934 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
936 * symtab.c (search_domain_name): Likewise.
937 (search_symbols): Likewise.
938 (print_symbol_info): Likewise.
939 (symtab_symbol_info): Likewise.
940 (info_modules_command): New function.
941 (_initialize_symtab): Register 'info modules' command.
942 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
943 * NEWS: Mention new 'info modules' command.
945 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
947 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
948 and $_gdb_maint_setting_str.
950 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
952 * cli/cli-cmds.c (setting_cmd, value_from_setting)
953 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
954 (str_value_from_setting, gdb_setting_str_internal_fn)
955 (gdb_maint_setting_str_internal_fn): New functions.
956 (_initialize_cli_cmds): Define the new convenience functions.
957 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
958 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
960 2019-10-31 Christian Biesinger <cbiesinger@google.com>
962 * agent.c (set_can_use_agent): When the setting is turned on,
963 look up agent symbols if we don't have them yet.
964 (agent_new_objfile): Don't look up agent symbols when the agent
967 2019-10-31 Christian Biesinger <cbiesinger@google.com>
969 * config.in: Regenerate.
971 2019-10-31 Christian Biesinger <cbiesinger@google.com>
973 * configure: Regenerate.
974 * configure.ac: Check for strerror_r.
975 * gdbsupport/common-utils.h (safe_strerror): Change return value
976 to const char * and document that this function is now threadsafe.
977 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
978 thread_local and call strerror_r, if available.
979 * utils.c (perror_string): Update.
980 (print_sys_errmsg): Update.
982 2019-10-31 Luis Machado <luis.machado@linaro.org>
984 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
986 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
987 objfile to fetch per-bfd data.
988 (arm_find_exidx_entry): Likewise.
990 2019-10-31 Christian Biesinger <cbiesinger@google.com>
992 * gdbsupport/agent.c (debug_agent): Change type to bool.
993 (use_agent): Likewise.
994 (all_agent_symbols_look_up): Likewise.
995 (agent_loaded_p): Change return value to bool.
996 (agent_look_up_symbols): Update.
997 (agent_capability_check): Change return value to bool.
998 * gdbsupport/agent.h (agent_loaded_p): Likewise.
999 (debug_agent): Change type to bool.
1000 (use_agent): Likewise.
1001 (agent_capability_check): Change return value to bool.
1003 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1005 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1006 (build_minimal_symbol_hash_tables): Code to clear the table moved
1007 to clear_minimal_symbol_hash_tables.
1008 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1011 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1013 * infcmd.c: Remove includes.
1014 * infrun.c: Remove includes.
1016 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1018 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1019 (grow_vect): Remove declaration.
1020 (ada_type_of_array): Remove declaration.
1021 (ada_update_initial_language): Remove declaration.
1022 (ada_fold_name): Remove declaration.
1023 (ada_fill_in_ada_prototype): Remove declaration.
1024 (user_select_syms): Remove declaration.
1025 (get_selections): Remove declaration.
1026 (ada_tag_type): Remove declaration.
1027 (ada_value_tag): Remove declaration.
1028 (ada_is_others_clause): Remove declaration.
1029 (ada_in_variant): Remove declaration.
1030 (ada_value_struct_elt): Remove declaration.
1031 (ada_attribute_name): Remove declaration.
1032 (ada_system_address_type): Remove declaration.
1033 * ada-lang.c (ada_watch_location_expression): Make static.
1034 (GROW_VECT): Move here from ada-lang.h.
1035 (grow_vect): Make static.
1036 (ada_update_initial_language): Make static.
1037 (ada_fold_name): Make static.
1038 (ada_type_of_array): Make static.
1039 (encoded_ordered_before): Move up.
1040 (sort_choices): Move up.
1041 (print_signatures): Move up.
1042 (ada_print_symbol_signature): Move up.
1043 (get_selections): Move up and make static.
1044 (user_select_syms): Move up and make static.
1045 (ada_value_struct_elt): Move up and make static.
1046 (ada_tag_type): Make static.
1047 (ada_value_tag): Make static.
1048 (ada_is_others_clause): Make static.
1049 (ada_in_variant): Make static.
1050 (ada_attribute_name): Make static.
1052 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1054 * ada-lang.c: Remove includes.
1055 * ada-typeprint.c: Remove includes.
1056 * ada-valprint.c: Remove includes.
1058 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1060 * addrmap.c: Add static assertions of type size, moved from
1061 _initialize_addrmap.
1062 (_initialize_addrmap): Remove.
1064 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1066 * coffread.c (record_minimal_symbol): Update.
1067 (process_coff_symbol): Update.
1068 * dbxread.c (read_dbx_symtab): Update.
1069 * dwarf2read.c (add_partial_symbol): Update.
1070 (fixup_go_packaging): Update.
1071 (load_partial_dies): Update.
1072 (new_symbol): Update.
1073 * elfread.c (record_minimal_symbol): Change signature to use
1074 gdb::string_view instead of name+len.
1075 (elf_symtab_read): Update.
1076 (elf_rel_plt_read): Update.
1077 * mdebugread.c (parse_partial_symbols): Update.
1078 (handle_psymbol_enumerators): Update.
1079 (new_symbol): Update.
1080 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1081 to use gdb::string_view instead of name+len.
1082 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1083 * psympriv.h (add_psymbol_to_list): Likewise.
1084 * psymtab.c (add_psymbol_to_bcache): Likewise.
1085 (add_psymbol_to_list): Likewise.
1086 * stabsread.c (define_symbol): Update.
1087 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1088 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1089 (symbol_set_names): Likewise.
1090 * xcoffread.c (scan_xcoff_symtab): Update.
1092 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1094 * symtab.h (symbol_set_names): Document that copy_name must be
1095 set to true for non-nullterminated strings.
1096 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1097 linkage_name if the entry was not found and we need to demangle.
1099 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1101 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1102 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1103 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1104 * gdbsupport/gdb_binary_search.h: New file.
1106 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1108 * NEWS: Mention new --with-system-gdbinit-dir option.
1109 * config.in: Regenerate.
1110 * configure: Regenerate.
1111 * configure.ac: Add new option --with-system-gdbinit-dir.
1112 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1113 for a ".gdb" suffix.
1114 * main.c (get_init_files): Change system_gdbinit argument to
1115 a vector and return the files in SYSTEM_GDBINIT_DIR in
1116 addition to SYSTEM_GDBINIT.
1117 (captured_main_1): Update.
1118 (print_gdb_help): Update.
1119 * top.c (print_gdb_configuration): Also print the value of
1122 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1124 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1125 that takes gdb::string_view arguments.
1127 2019-10-26 Tom de Vries <tdevries@suse.de>
1129 * aarch64-linux-tdep.c: Fix typos in comments.
1130 * aarch64-tdep.c: Same.
1132 * amd64-nat.c: Same.
1134 * arch/aarch64-insn.c: Same.
1136 * breakpoint.h: Same.
1139 * cli/cli-decode.c: Same.
1140 * cli/cli-script.c: Same.
1141 * cli/cli-utils.h: Same.
1142 * coff-pe-read.c: Same.
1144 * compile/compile-cplus-symbols.c: Same.
1145 * compile/compile-object-run.c: Same.
1146 * completer.c: Same.
1148 * cp-support.c: Same.
1150 * dwarf-index-write.c: Same.
1151 * dwarf2-frame.c: Same.
1152 * dwarf2-frame.h: Same.
1154 * frame-base.h: Same.
1159 * guile/scm-objfile.c: Same.
1160 * i386-tdep.c: Same.
1161 * i386-tdep.h: Same.
1164 * linux-nat.c: Same.
1165 * m68k-tdep.c: Same.
1168 * mi/mi-cmd-disas.c: Same.
1169 * mi/mi-getopt.h: Same.
1170 * mi/mi-main.c: Same.
1172 * nat/aarch64-sve-linux-sigcontext.h: Same.
1174 * ppc-linux-nat.c: Same.
1175 * ppc-linux-tdep.c: Same.
1177 * progspace.h: Same.
1178 * prologue-value.h: Same.
1179 * python/py-evtregistry.c: Same.
1180 * python/py-instruction.h: Same.
1181 * record-btrace.c: Same.
1182 * record-full.c: Same.
1184 * rs6000-tdep.c: Same.
1186 * sol-thread.c: Same.
1187 * sparc-sol2-tdep.c: Same.
1188 * sparc64-tdep.c: Same.
1189 * stabsread.c: Same.
1193 * tracepoint.c: Same.
1194 * tui/tui-data.h: Same.
1195 * tui/tui-io.c: Same.
1196 * tui/tui-win.c: Same.
1198 * unittests/rsp-low-selftests.c: Same.
1199 * user-regs.h: Same.
1210 * xtensa-tdep.c: Same.
1212 2019-10-25 Ali Tamur <tamur@google.com>
1214 * charset.c (find_charset_names): Reflect API change.
1216 2019-10-25 Christian Biesinger <cbiesinger@google.com>
1218 * symtab.c (struct demangled_name_entry): Change demangled name
1219 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1220 part of the struct anymore.
1221 (symbol_set_names): No longer obstack allocate + copy the demangled
1222 name, just store the allocated name from bfd.
1224 2019-10-25 Tom Tromey <tromey@adacore.com>
1226 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1227 (bsearch_cie_cmp, add_cie): Remove.
1228 (find_cie): Reimplement.
1229 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1230 (dwarf2_build_frame_info): Update.
1232 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1235 * symfile.c (reread_symbols): Call forget_cached_source_info to
1236 clear the stale source cache.
1238 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1240 * configure: Regenerate.
1241 * configure.ac: Remove code that sets python_has_threads.
1243 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1245 * config.in: Regenerate.
1246 * configure: Regenerate.
1247 * configure.ac: Remove the code that uses sed to get the python
1248 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1250 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1252 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1255 2019-10-23 Tom Tromey <tom@tromey.com>
1257 * arc-tdep.c: Remove ".." from include.
1258 * frv-tdep.c: Remove ".." from include.
1259 * lm32-tdep.c: Remove ".." from include.
1260 * microblaze-tdep.c: Remove ".." from include.
1261 * or1k-tdep.h: Remove ".." from include.
1262 * s12z-tdep.c: Remove ".." from include.
1263 * Makefile.in (OPCODES_CFLAGS): Add comment.
1264 (TOP_CFLAGS): New variable.
1265 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1267 2019-10-23 Tom Tromey <tom@tromey.com>
1269 * Makefile.in (READLINE_DIR): Update.
1271 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1273 * infcall.c (call_function_by_hand_dummy): Fix the function
1274 comment. And extract out a code section into...
1275 (reserve_stack_space): ...this new function.
1277 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1279 * infcall.c (value_arg_coerce): Remove an unused parameter.
1280 (call_function_by_hand_dummy): Update the call to
1283 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1285 * infcall.c (call_function_by_hand_dummy): Refactor.
1287 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1289 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1291 2019-10-23 Tom Tromey <tom@tromey.com>
1293 * configure: Rebuild.
1294 * configure.ac: Don't check for sigprocmask.
1295 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1297 2019-10-23 Tom Tromey <tom@tromey.com>
1299 * configure: Rebuild.
1300 * acinclude.m4: Use m4_include, not sinclude.
1302 2019-10-23 Tom de Vries <tdevries@suse.de>
1304 PR breakpoints/24687
1305 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1307 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1309 * symtab.c (struct demangled_name_entry) <language>: Change from
1310 bitfield to regular variable.
1312 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1314 * symtab.c (struct demangled_name_entry): Add a constructor.
1315 (free_demangled_name_entry): New function to call the destructor
1316 for demangled_name_entry.
1317 (create_demangled_names_hash): Pass free_demangled_name_entry to
1319 (symbol_set_names): Call placement new for demangled_name_entry.
1320 * utils.c: No longer include xxhash.h here, now that fast_hash
1321 is inlined in the header.
1322 * utils.h: Instead, include it here.
1324 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1326 * Makefile.in: Link with libxxhash.
1327 * config.in: Regenerate.
1328 * configure: Regenerate.
1329 * configure.ac: Search for libxxhash.
1330 * utils.c (fast_hash): Use xxhash if present.
1332 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1334 * utils.h (fast_hash): New function.
1335 * symtab.c (hash_demangled_name_entry): Call new function
1338 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1340 * symtab.c (struct demangled_name_entry): Change type of mangled
1341 to gdb::string_view. Also adds a constructor that takes the
1343 (hash_demangled_name_entry): Update.
1344 (eq_demangled_name_entry): Update.
1345 (free_demangled_name_entry): New function to call the destructor
1346 now that this is not a POD anymore.
1347 (create_demangled_names_hash): Pass free_demangled_name_entry to
1349 (symbol_set_names): Update.
1351 2019-10-21 Ali Tamur <tamu@google.com>
1353 * dwarf2read.c (dir_index): Change type.
1354 (file_name_index): Likewise.
1355 (line_header::include_dir_at): Change comment and implementation on
1356 whether it is DWARF 5.
1357 (line_header::is_valid_file_index): New function.
1358 (line_header::file_name_at): Change comment and implementation on
1359 whether it is DWARF 5.
1360 (line_header::file_names): Change to private field renamed as
1361 m_file_names and introduce a new accessor method.
1362 (line_header::file_names_size): New method.
1363 (line_header::include_dirs): Change to private field and rename as
1365 (dw2_get_file_names_reader): Define local var at a smaller scope and
1367 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1368 (process_structure_scope): Likewise.
1369 (line_header::add_include_dir): Change message and reflect renaming.
1370 (line_header::add_file_name): Likewise.
1371 (read_formatted_entries): Handle DW_FORM_data16.
1372 (dwarf_decode_line_header): Fix line header length calculation.
1373 (psymtab_include_file_name): Change comment and API.
1374 (lnp_state_machine::m_file): Update comment and reflect type change.
1375 (lnp_state_machine::record_line): Reflect type change.
1376 (dwarf_decode_lines): Reflect API change.
1377 (file_file_name): Likewise.
1378 (file_full_name): Likewise.
1380 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1382 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1384 2019-10-21 Tom Tromey <tom@tromey.com>
1386 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1388 2019-10-21 Tom Tromey <tom@tromey.com>
1390 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1391 NM_H. Use AC_CONFIG_LINKS.
1392 * configure: Rebuild.
1393 * Makefile.in (NM_H): New variable.
1394 (generated_files): Add NM_H. Remove gcore.
1395 (nm.h, stamp-nmh): New targets.
1397 2019-10-20 Tom Tromey <tom@tromey.com>
1399 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1400 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1402 (put_objfile_before): Now static.
1404 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1406 * gdbsupport/common-utils.h (startswith): Change return type to
1409 2019-10-19 Christian Biesinger <cbiesinger@google.com>
1411 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1412 * breakpoint.c (bp_locations_compare): Rename to...
1413 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1414 (update_global_location_list): Use std::sort instead of qsort.
1415 * buildsym.c (compare_line_numbers): Rename to...
1416 (lte_is_less_than): ...this, and change to std::sort semantics.
1417 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1419 * disasm.c (compare_lines): Rename to...
1420 (line_is_less_than): ...this, and change to std::sort semantics.
1421 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1423 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1424 (fde_is_less_than): ...this, and change to std::sort semantics.
1425 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1426 * mdebugread.c (compare_blocks):
1427 (block_is_less_than): ...this, and change to std::sort semantics.
1428 (sort_blocks): Call std::sort instead of qsort.
1429 * objfiles.c (qsort_cmp): Rename to...
1430 (sort_cmp): ...this, and change to std::sort semantics.
1431 (update_section_map): Call std::sort instead of qsort.
1432 * remote.c (compare_pnums): Remove.
1433 (map_regcache_remote_table): Call std::sort instead of qsort.
1434 * utils.c (compare_positive_ints): Remove.
1435 * utils.h (compare_positive_ints): Remove.
1436 * xcoffread.c (compare_lte): Remove.
1437 (arrange_linetable): Call std::sort instead of qsort.
1439 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1441 * symfile.c (init_entry_point_info): Fix typo.
1442 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1444 2019-10-18 Tom de Vries <tdevries@suse.de>
1446 * aarch64-tdep.c: Fix typos in comments.
1448 * ada-tasks.c: Same.
1449 * alpha-tdep.c: Same.
1450 * alpha-tdep.h: Same.
1451 * amd64-nat.c: Same.
1452 * amd64-windows-tdep.c: Same.
1455 * arch-utils.c: Same.
1456 * arm-nbsd-tdep.c: Same.
1459 * blockframe.c: Same.
1462 * coff-pe-read.c: Same.
1464 * cris-tdep.c: Same.
1465 * darwin-nat.c: Same.
1469 * dtrace-probe.c: Same.
1470 * dwarf-index-write.c: Same.
1471 * dwarf2-frame-tailcall.c: Same.
1472 * dwarf2-frame.c: Same.
1473 * dwarf2read.c: Same.
1475 * exceptions.c: Same.
1476 * fbsd-tdep.c: Same.
1480 * gnu-v3-abi.c: Same.
1482 * h8300-tdep.c: Same.
1483 * hppa-tdep.c: Same.
1484 * i386-linux-tdep.c: Same.
1485 * i386-tdep.c: Same.
1486 * ia64-libunwind-tdep.c: Same.
1487 * ia64-tdep.c: Same.
1491 * linux-nat.c: Same.
1492 * linux-thread-db.c: Same.
1493 * machoread.c: Same.
1494 * mdebugread.c: Same.
1496 * mn10300-tdep.c: Same.
1497 * namespace.c: Same.
1499 * opencl-lang.c: Same.
1500 * or1k-tdep.c: Same.
1502 * ppc-linux-nat.c: Same.
1503 * ppc-linux-tdep.c: Same.
1504 * ppc-sysv-tdep.c: Same.
1507 * record-btrace.c: Same.
1508 * record-full.c: Same.
1509 * remote-fileio.c: Same.
1511 * rs6000-tdep.c: Same.
1512 * s12z-tdep.c: Same.
1513 * score-tdep.c: Same.
1517 * sol-thread.c: Same.
1518 * solib-svr4.c: Same.
1521 * sparc-nat.c: Same.
1522 * sparc-sol2-tdep.c: Same.
1523 * sparc-tdep.c: Same.
1524 * sparc64-tdep.c: Same.
1525 * stabsread.c: Same.
1529 * target-descriptions.c: Same.
1530 * target-float.c: Same.
1537 * windows-nat.c: Same.
1538 * xcoffread.c: Same.
1539 * xstormy16-tdep.c: Same.
1540 * xtensa-tdep.c: Same.
1542 2019-10-17 Tom Tromey <tromey@adacore.com>
1544 * configure: Rebuild.
1545 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1546 in AC_CONFIG_FILES invocation.
1547 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1548 new-style config.status invocation.
1550 2019-10-17 Tom de Vries <tdevries@suse.de>
1552 * arm-nbsd-nat.c: Fix typos in comments.
1554 * darwin-nat-info.c: Same.
1555 * dwarf2read.c: Same.
1557 * event-top.c: Same.
1560 * hppa-tdep.c: Same.
1561 * i386-tdep.c: Same.
1564 * mdebugread.c: Same.
1565 * moxie-tdep.c: Same.
1566 * nto-procfs.c: Same.
1568 * ppc-linux-tdep.c: Same.
1570 * riscv-tdep.c: Same.
1571 * s390-tdep.c: Same.
1573 * sparc-linux-tdep.c: Same.
1574 * sparc-nat.c: Same.
1576 * target-descriptions.c: Same.
1580 2019-10-16 Tom Tromey <tom@tromey.com>
1582 * objfiles.h (struct objfile) <original_name>: Now const.
1584 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1586 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1587 pass on to sigsetjmp's second argument.
1588 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1590 2019-10-16 Keith Seitz <keiths@redhat.com>
1593 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1594 sections whose size is greater than the file size.
1596 2019-10-16 Jim Wilson <jimw@sifive.com>
1598 * riscv-tdep.c (riscv_gcc_target_options): New.
1599 (riscv_gnu_triplet_regexp): New.
1600 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1601 set_gdbarch_gnu_triplet_regexp.
1603 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1605 * Makefile.in: Add xml-builtin.h.
1606 * features/feature_to_c.sh: Add an include for xml-builtin.h
1607 to ensure that the compiler checks that the types match.
1608 * xml-builtin.h: New file.
1609 * xml-support.c (fetch_xml_builtin): Add missing const.
1610 * xml-support.h: Remove declaration of xml_builtins.
1612 2019-10-16 Tom de Vries <tdevries@suse.de>
1615 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1616 (amd64_classify_aggregate): ... here.
1617 (amd64_classify_aggregate_field): Handled fiels of nested structs
1620 2019-10-16 Tom de Vries <tdevries@suse.de>
1623 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1624 that handles 'theclass'.
1626 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1628 * linespec.c (decode_digits_ordinary): Update comment.
1629 * make-target-delegates: No longer need to handle VEC case.
1630 * memrange.c (normalize_mem_ranges): Update comment.
1631 * namespace.c (add_using_directive): Update comment.
1632 * objc-lang.c (uniquify_strings): Update comment.
1633 * ppc-linux-nat.c (struct thread_points): Update comment.
1634 * probe.h (find_probes_in_objfile): Update comment.
1635 * target.h (enum flash_preserve_mode): Update comment.
1636 * varobj.c (varobj_restrict_range): Update comment.
1637 * varobj.h (varobj_list_children): Update comment.
1639 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1641 * Makefile.in: Remove references to vec.h and vec.c.
1642 * aarch64-tdep.c: No longer include vec.h.
1643 * ada-lang.c: Likewise.
1644 * ada-lang.h: Likewise.
1645 * arm-tdep.c: Likewise.
1647 * breakpoint.h: Likewise.
1648 * charset.c: Likewise.
1649 * cp-support.h: Likewise.
1650 * dtrace-probe.c: Likewise.
1651 * dwarf2read.c: Likewise.
1652 * extension.h: Likewise.
1653 * gdb_bfd.c: Likewise.
1654 * gdbsupport/gdb_vecs.h: Likewise.
1655 * gdbsupport/vec.c: Remove.
1656 * gdbsupport/vec.h: Remove.
1657 * gdbthread.h: Likewise.
1658 * guile/scm-type.c: Likewise.
1659 * inline-frame.c: Likewise.
1660 * machoread.c: Likewise.
1661 * memattr.c: Likewise.
1662 * memrange.h: Likewise.
1663 * namespace.h: Likewise.
1664 * nat/linux-btrace.h: Likewise.
1665 * osdata.c: Likewise.
1666 * parser-defs.h: Likewise.
1667 * progspace.h: Likewise.
1668 * python/py-type.c: Likewise.
1669 * record-btrace.c: Likewise.
1670 * rust-exp.y: Likewise.
1671 * solib-target.c: Likewise.
1672 * stap-probe.c: Likewise.
1673 * target-descriptions.c: Likewise.
1674 * target-memory.c: Likewise.
1675 * target.h: Likewise.
1676 * varobj.c: Likewise.
1677 * varobj.h: Likewise.
1678 * xml-support.h: Likewise.
1680 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1682 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1683 Update for new std::vector based implementation.
1684 (process_psymtab_comp_unit_reader): Likewise.
1685 (scan_partial_symbols): Likewise.
1686 (recursively_compute_inclusions): Likewise.
1687 (compute_compunit_symtab_includes): Likewise.
1688 (process_imported_unit_die): Likewise.
1689 (queue_and_load_dwo_tu): Likewise.
1690 (follow_die_sig_1): Likewise.
1691 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1692 (typedef dwarf2_per_cu_ptr): Remove.
1693 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1695 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1696 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1697 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1698 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1701 2019-10-15 Tom Tromey <tromey@adacore.com>
1703 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1706 2019-10-15 Tom Tromey <tromey@adacore.com>
1708 * windows-nat.c (windows_nat_target::fetch_registers)
1709 (windows_nat_target::store_registers): Rename "pid" to "tid".
1711 2019-10-15 Tom Tromey <tromey@adacore.com>
1713 * gdbarch.h, gdbarch.c: Rebuild.
1714 * gdbarch.sh (gcc_target_options): Change return type to
1716 * compile/compile.c (get_args): Update.
1717 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1718 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1720 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1722 * arch-utils.c (default_gcc_target_options): Return std::string.
1723 * arch-utils.h (default_gcc_target_options): Return std::string.
1724 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1726 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1728 * breakpoint.c (breakpoint_chain): Make static.
1729 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1730 of accessing breakpoint_chain.
1732 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1734 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1735 to a gdb::function_view and return value to bool.
1736 * breakpoint.h (iterate_over_breakpoints): Likewise.
1737 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1738 (pop_dummy_frame): Update.
1739 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1740 (gdbscm_breakpoints): Update.
1741 * python/py-breakpoint.c (build_bp_list): Update.
1742 (gdbpy_breakpoints): Update.
1743 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1745 (bpfinishpy_handle_stop): Update.
1746 (bpfinishpy_handle_exit): Update.
1747 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1748 (svr4_update_solib_event_breakpoints): Update.
1750 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1752 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1753 when unwrapping single-field structs.
1755 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1757 * dwarf2read.c: Remove includes.
1759 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1761 * ui-out.c (ui_out::call_do_message): Silence
1762 -Wformat-nonliteral warning.
1764 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1766 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1767 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1768 include: readline/tilde.h.
1770 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1772 * remote.c (remote_target::get_trace_status): Remove declaration of
1773 trace_regblock_size.
1775 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1777 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1778 (show_user): Remove declaration of cmdlist.
1779 * cli/cli-cmds.h (max_user_call_depth): Declare.
1780 * cli/cli-script.c (execute_user_command): Remove declaration
1781 of max_user_call_depth.
1783 2019-10-11 Jim Wilson <jimw@sifive.com>
1785 * gdbsupport/print-utils.h (pulongest): Fix comment.
1786 (plongest): Likewise.
1787 (phex): Add missing comment, mention leading zeros.
1788 (phex_nz): Add mention of no leading zeros to comment.
1790 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1791 plongest instead of unsigned long long cast.
1793 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1795 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1796 for external_editor_command and gdbtk_test.
1798 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1800 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1801 * varobj.c (varobjdebug): Move comment to...
1802 * varobj.h (varobjdebug): ...here, and declare.
1804 2019-10-09 Tom Tromey <tom@tromey.com>
1806 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1809 2019-10-09 Tom Tromey <tom@tromey.com>
1811 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1812 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1813 * tui/tui-command.c (tui_cmd_window::resize)
1814 (tui_refresh_cmd_win): Update.
1815 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1816 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1817 * tui/tui-data.c (~tui_gen_win_info): Remove.
1818 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1819 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1820 (tui_redisplay_readline, tui_mld_flush)
1821 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1822 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1823 (tui_data_window::erase_data_content)
1824 (tui_data_item_window::rerender)
1825 (tui_data_item_window::refresh_window): Update.
1826 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1827 (box_win, tui_gen_win_info::make_window)
1828 (tui_gen_win_info::make_visible): Update.
1829 (tui_delete_win): Remove.
1830 * tui/tui-winsource.c
1831 (tui_source_window_base::do_erase_source_content): Update.
1832 (tui_show_source_line, tui_source_window_base::update_tab_width)
1833 (tui_source_window_base::update_exec_info): Update.
1834 * tui/tui-data.h (struct curses_deleter): New.
1835 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1836 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1838 2019-10-09 Tom Tromey <tom@tromey.com>
1840 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
1842 2019-10-09 Tom Tromey <tom@tromey.com>
1844 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
1845 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
1847 2019-10-09 Tom Tromey <tom@tromey.com>
1849 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
1850 window height directly.
1851 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
1853 * tui/tui-layout.c (tui_default_win_height): Remove.
1854 (tui_default_win_viewport_height): Remove.
1856 2019-10-09 Tom Tromey <tom@tromey.com>
1858 * tui/tui.h: Remove comments.
1860 2019-10-09 Tom de Vries <tdevries@suse.de>
1862 * python/lib/gdb/printer/bound_registers.py: Use
1863 '^builtin_type_bound128' as regexp argument for
1864 add_builtin_pretty_printer.
1866 2019-10-09 Christian Biesinger <cbiesinger@google.com>
1868 * guile/guile.c (guile_extension_script_ops): Remove forward
1869 declaration and mark as static.
1870 (guile_script_ops): Likewise.
1871 (extension_language_guile): Move further down in the file so
1872 it can reference the definitions for guile_{extension_,}script_ops.
1874 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
1876 * s390-tdep.c (390_process_record): Handle new arch13 instructions
1877 except SORTL, DFLTCC, and KDSA.
1879 2019-10-08 Tom Tromey <tromey@adacore.com>
1881 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
1882 (struct safe_symbol_file_add_args): Remove.
1884 2019-10-08 Tom Tromey <tromey@adacore.com>
1886 * windows-nat.c: Don't include buildsym-legacy.h.
1888 2019-10-08 Tom Tromey <tromey@adacore.com>
1890 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
1892 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1894 * gdbtypes.c (overload_debug): Move comment to header.
1895 * gdbtypes.h (overload_debug): Declare.
1896 * valops.c: Remove declaration of overload_debug, instead
1899 2019-10-08 Christian Biesinger <cbiesinger@google.com>
1901 * language.c (show_language_command): Pass lang_frame_mismatch_warn
1903 (lang_frame_mismatch_warn): Make const, mark with N_(), and
1905 * language.h (lang_frame_mismatch_warn): ... here. Also add
1907 * top.c (lang_frame_mismatch_warn): Remove declaration.
1908 (check_frame_language_change): Pass lang_frame_mismatch_warn
1911 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1913 * c-lang.h (vtbl_ptr_name): Declare.
1914 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
1916 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
1918 2019-10-07 Christian Biesinger <cbiesinger@google.com>
1920 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
1923 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1925 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
1926 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
1927 * ctfread.c: New file.
1928 * ctfread.h: New file.
1929 * elfread.c: Include ctfread.h.
1930 (struct elfinfo text_p): New member ctfsect.
1931 (elf_locate_sections): Mark CTF section.
1932 (elf_symfile_read): Call elfctf_build_psymtabs.
1933 * Makefile.in (LIBCTF): Add.
1936 (DIST): Add ctfread.c.
1938 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
1940 * ctfread.c (struct nextfield): Renamed to ...
1941 (struct ctf_nextfield): ... this.
1942 (struct field_info): Renamed to ...
1943 (strut ctf_field_info): ... this.
1944 (attach_fields_to_type): Update for renamed structures.
1945 (ctf_add_member_cb): Likewise.
1946 (ctf_add_enum_member_cb): Likewise.
1947 (process_struct_members): Likewise.
1948 (process_enum_type): Likewise.
1950 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
1952 * tracectf.h: Rename, was ctf.h.
1953 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
1954 * tracefile.c: Likewise.
1955 * tracepoint.c: Remove unused include ctf.h.
1956 * mi/mi-main.c: Likewise.
1957 * Makefile.in Replace ctf.c with tracectf.c.
1959 2019-10-06 Joel Brobecker <brobecker@adacore.com>
1961 * version.in: Change version number to "9.0.50.DATE-git".
1963 2019-10-03 Tom Tromey <tom@tromey.com>
1966 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
1968 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1970 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
1971 cp_search_name_hash.
1972 * NEWS: Add entry about nested function support.
1974 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
1975 Andrew Burgess <andrew.burgess@embecosm.com>
1977 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
1978 for nested static variables when searchin VAR_DOMAIN.
1979 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
1980 global scope, update comment.
1981 (add_partial_subprogram): Call add_partial_subprogram recursively
1982 for nested subroutines when processinng Fortran.
1983 (load_partial_dies): Process the child entities of a subprogram
1984 when processing Fortran.
1985 (partial_die_parent_scope): Handle building scope
1986 for Fortran nested functions.
1987 (process_die): Record that nested functions have a scope.
1988 (new_symbol): Always record Fortran subprograms on the global
1990 (determine_prefix): How to build the prefix for Fortran
1993 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
1995 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
1996 have just sent the thread a SIGSTOP and are waiting for it to
1999 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2001 * btrace.c (btrace_add_pc): Remove whitespace before the template
2002 parameter in 'std::vector <...>'.
2003 (parse_xml_btrace_block): Likewise.
2004 (btrace_maint_decode_pt): Likewise.
2005 (btrace_maint_update_packets): Likewise.
2006 (btrace_maint_print_packets): Likewise.
2007 * btrace.h (struct btrace_maint_info): Likewise.
2008 * dwarf2read.c (struct type_unit_group): Likewise.
2009 (build_type_psymtabs_reader): Likewise.
2010 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2011 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2012 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2014 2019-10-03 Tom de Vries <tdevries@suse.de>
2016 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2017 the first line of the help text for set/show style metadata.
2019 2019-10-02 Tom Tromey <tromey@adacore.com>
2021 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2022 * gdbsupport/common-inferior.c: New file.
2023 * infcmd.c (startup_with_shell): Don't define.
2024 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2025 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2026 * inferior.h (startup_with_shell): Don't declare.
2028 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2030 * gdbsupport/gdb_assert.h: Include errors.h.
2031 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2033 2019-10-02 Tom Tromey <tromey@adacore.com>
2035 * NEWS: Add $_ada_exception entry.
2036 * ada-lang.c (struct ada_catchpoint): Add constructor.
2037 <m_kind>: New member.
2038 (allocate_location_exception, re_set_exception): Remove
2040 (should_stop_exception): Compute $_ada_exception.
2041 (check_status_exception, print_it_exception)
2042 (print_one_exception, print_mention_exception): Remove
2044 (allocate_location_catch_exception, re_set_catch_exception)
2045 (check_status_exception, print_it_catch_exception)
2046 (print_one_catch_exception, print_mention_catch_exception)
2047 (print_recreate_catch_exception)
2048 (allocate_location_catch_exception_unhandled)
2049 (re_set_catch_exception_unhandled)
2050 (check_status_exception, print_it_catch_exception_unhandled)
2051 (print_one_catch_exception_unhandled)
2052 (print_mention_catch_exception_unhandled)
2053 (print_recreate_catch_exception_unhandled)
2054 (allocate_location_catch_assert, re_set_catch_assert)
2055 (check_status_assert, print_it_catch_assert)
2056 (print_one_catch_assert, print_mention_catch_assert)
2057 (print_recreate_catch_assert)
2058 (allocate_location_catch_handlers, re_set_catch_handlers)
2059 (check_status_handlers, print_it_catch_handlers)
2060 (print_one_catch_handlers, print_mention_catch_handlers)
2061 (print_recreate_catch_handlers): Remove.
2062 (create_ada_exception_catchpoint): Update.
2063 (initialize_ada_catchpoint_ops): Update.
2065 2019-10-02 Tom Tromey <tromey@adacore.com>
2067 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2068 (create_excep_cond_exprs): Simplify exception string computation.
2069 (ada_exception_catchpoint_cond_string): Likewise.
2071 2019-10-02 Tom Tromey <tromey@adacore.com>
2073 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2074 * ada-lang.c (lesseq_defined_than): Handle
2076 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2078 (dwarf2_has_info): Likewise.
2079 (new_symbol): Set maybe_copied on symbol when
2081 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2083 <can_copy>: New member.
2084 * elfread.c (record_minimal_symbol): Set maybe_copied
2085 on symbol when appropriate.
2086 (elf_symfile_read): Update call to dwarf2_has_info.
2087 * minsyms.c (lookup_minimal_symbol_linkage): New
2089 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2090 * symtab.c (get_symbol_address, get_msymbol_address):
2092 * symtab.h (get_symbol_address, get_msymbol_address):
2094 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2096 (struct symbol, struct minimal_symbol) <maybe_copied>:
2099 2019-10-02 Tom Tromey <tromey@adacore.com>
2101 * source.c (struct current_source_location): New.
2102 (current_source_key): New global.
2103 (current_source_symtab, current_source_line)
2104 (current_source_pspace): Remove.
2105 (get_source_location): New function.
2106 (get_current_source_symtab_and_line)
2107 (set_default_source_symtab_and_line)
2108 (set_current_source_symtab_and_line)
2109 (clear_current_source_symtab_and_line, select_source_symtab)
2110 (info_source_command, print_source_lines_base)
2111 (info_line_command, search_command_helper, _initialize_source):
2114 2019-10-02 Tom Tromey <tromey@adacore.com>
2116 * source.c (select_source_symtab): Don't call
2117 decode_line_with_current_source.
2119 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2121 * symtab.c (lookup_global_symbol): Search global block.
2123 2019-10-02 Tom Tromey <tromey@adacore.com>
2125 * coffread.c (process_coff_symbol): Update.
2126 * dwarf2read.c (var_decode_location, new_symbol): Update.
2127 * mdebugread.c (parse_symbol): Update.
2128 * objfiles.c (relocate_one_symbol): Update.
2129 * stabsread.c (define_symbol, fix_common_block)
2130 (scan_file_globals): Update.
2131 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2132 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2133 * xcoffread.c (process_xcoff_symbol): Update.
2135 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2137 * MAINTAINERS: Update my email address.
2139 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2141 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2143 (build_type_psymtabs_reader): Update for std::vector.
2144 (build_type_psymtab_dependencies): Likewise.
2145 * dwarf2read.h: Remove use of DEF_VEC_P.
2146 (typedef sig_type_ptr): Delete.
2148 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2150 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2152 (btrace_maint_decode_pt): Likewise, and move allocation of the
2153 vector outside of the loop.
2154 (btrace_maint_update_packets): Update to handle change from VEC to
2156 (btrace_maint_print_packets): Likewise.
2157 (maint_info_btrace_cmd): Likewise.
2158 * btrace.h: Remove use of DEF_VEC_O.
2159 (typedef btrace_pt_packet_s): Delete.
2160 (struct btrace_maint_info) <packets>: Change fromm VEC to
2162 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2164 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2166 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2167 make accesses into the vector constant references.
2168 (btrace_add_pc): Update for std::vector.
2169 (btrace_stitch_bts): Likewise.
2170 (parse_xml_btrace_block): Likewise.
2171 (btrace_maint_update_packets): Likewise.
2172 (btrace_maint_print_packets): Likewise.
2173 (maint_info_btrace_cmd): Likewise.
2174 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2176 (btrace_data::empty): Likewise.
2177 (btrace_data_append): Likewise.
2178 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2179 (typedef btrace_block_s): Delete.
2180 (struct btrace_block): Add constructor.
2181 (struct btrace_data_bts) <blocks>: Change to std::vector.
2182 * nat/linux-btrace.c (perf_event_read_bts): Update for
2184 (linux_read_bts): Likewise.
2186 2019-10-01 Tom Tromey <tom@tromey.com>
2188 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2190 2019-10-01 Tom Tromey <tom@tromey.com>
2192 * stack.c (print_frame, info_frame_command_core): Use
2194 * linux-thread-db.c (try_thread_db_load_1)
2195 (try_thread_db_load_from_pdir_1): Use styled_string.
2196 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2197 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2198 (maybe_print_unsupported_script_warning)
2199 (maybe_print_script_not_found_warning): Use styled_string.
2200 * ada-lang.c (user_select_syms): Use styled_string.
2202 2019-10-01 Tom Tromey <tom@tromey.com>
2204 * p-lang.c (pascal_printstr): Use metadata style.
2205 * value.c (show_convenience): Use metadata style.
2206 * valprint.c (valprint_check_validity, val_print_optimized_out)
2207 (val_print_not_saved, val_print_unavailable)
2208 (val_print_invalid_address, generic_val_print, val_print)
2209 (value_check_printable, val_print_array_elements): Use metadata
2211 * ui-out.h (class ui_out) <field_fmt>: New overload.
2212 <do_field_fmt>: Add style parameter.
2213 * ui-out.c (ui_out::field_fmt): New overload.
2214 * typeprint.c (type_print_unknown_return_type)
2215 (val_print_not_allocated, val_print_not_associated): Use metadata
2217 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2219 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2220 * tracepoint.c (tvariables_info_1): Use metadata style.
2221 * stack.c (print_frame_arg, print_frame_info, print_frame)
2222 (info_frame_command_core): Use metadata style.
2223 * skip.c (info_skip_command): Use metadata style.
2224 * rust-lang.c (rust_print_enum): Use metadata style.
2225 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2227 * python/py-framefilter.c (py_print_single_arg): Use metadata
2229 * printcmd.c (do_one_display, print_variable_and_value): Use
2231 * p-valprint.c (pascal_val_print)
2232 (pascal_object_print_value_fields): Use metadata style.
2233 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2234 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2236 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2237 * m2-valprint.c (m2_print_long_set): Use metadata style.
2238 * m2-typeprint.c (m2_print_type): Use metadata style.
2239 * infcmd.c (print_return_value_1): Use metadata style.
2240 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2241 * f-valprint.c (info_common_command_for_block): Use metadata
2243 * f-typeprint.c (f_type_print_base): Use metadata style.
2244 * expprint.c (print_subexp_standard): Use metadata style.
2245 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2246 * cli/cli-style.h (class cli_style_option): Add constructor.
2247 (metadata_style): Declare.
2248 * cli/cli-style.c (metadata_style): New global.
2249 (_initialize_cli_style): Register metadata style.
2250 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2252 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2253 * c-typeprint.c (c_type_print_base_struct_union)
2254 (c_type_print_base_1): Use metadata style.
2255 * breakpoint.c (watchpoint_value_print)
2256 (print_one_breakpoint_location): Use metadata style.
2257 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2259 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2261 * ada-valprint.c (val_print_packed_array_elements, printstr)
2262 (print_field_values, ada_val_print_ref, ada_val_print): Use
2264 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2266 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2268 * ada-lang.c (user_select_syms): Use metadata style.
2270 2019-10-01 Tom Tromey <tom@tromey.com>
2272 * cli/cli-cmds.c (pwd_command): Style output.
2274 2019-10-01 Pedro Alves <palves@redhat.com>
2275 Tom Tromey <tom@tromey.com>
2277 * symtab.c (print_symbol_info): Use %ps.
2278 (print_msymbol_info): Use %ps.
2279 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2280 * printcmd.c (print_variable_and_value): Use %ps.
2281 * macrocmd.c (show_pp_source_pos): Use %ps.
2282 * infrun.c (print_exited_reason): Use ui_out::message.
2283 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2284 (describe_other_breakpoints): Use ui_out::message and new
2286 (say_where): Use new formats.
2287 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2290 2019-10-01 Pedro Alves <palves@redhat.com>
2291 Tom Tromey <tom@tromey.com>
2293 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2294 (test_gdb_formats): New function.
2295 (run_tests): Call it.
2296 (test_format_specifier): Update.
2297 * utils.h (fputs_filtered): Update comment.
2298 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2299 (fputs_styled_unfiltered): Declare.
2300 * utils.c (fputs_styled_unfiltered): New function.
2301 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2302 (vfprintf_filtered): Update.
2303 (vfprintf_unfiltered, vprintf_filtered): Update.
2304 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2305 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2306 disallow_ui_out_field>: New constants.
2307 (enum class field_kind): New.
2308 (struct base_field_s, struct signed_field_s): New.
2309 (signed_field): New function.
2310 (struct string_field_s): New.
2311 (string_field): New function.
2312 (struct styled_string_s): New.
2313 (styled_string): New function.
2314 (class ui_out) <message>: Add comment.
2315 <vmessage, call_do_message>: New methods.
2316 <do_message>: Add style parameter.
2317 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2319 (ui_out::message): Rewrite.
2320 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2322 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2323 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2324 gdb_extensions parameter.
2325 (class format_piece): Add parameter to constructor.
2326 (n_int_args): New field.
2327 * gdbsupport/format.c (format_pieces::format_pieces): Add
2328 gdb_extensions parameter. Handle '*'.
2329 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2330 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2331 vfprintf_styled_no_gdbfmt.
2332 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2333 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2335 * ui-style.h (struct ui_file_style) <ptr>: New method.
2337 2019-10-01 Tom Tromey <tom@tromey.com>
2339 * unittests/format_pieces-selftests.c: Update. Add final format.
2340 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2341 empty literal pieces.
2343 2019-10-01 Tom Tromey <tom@tromey.com>
2345 * ui-out.h (enum class ui_out_style_kind): Remove.
2346 (class ui_out) <field_string, field_stsream, do_field_string>:
2347 Change type of "style".
2348 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2349 (ui_out::field_string): Update.
2350 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2352 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2353 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2354 * stack.c (print_frame_arg, print_frame_info, print_frame):
2356 * source.c (print_source_lines_base): Update.
2357 * solib.c (info_sharedlibrary_command): Update.
2358 * skip.c (info_skip_command): Update.
2359 * record-btrace.c (btrace_call_history_src_line)
2360 (btrace_call_history): Update.
2361 * python/py-framefilter.c (py_print_frame): Update.
2362 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2364 * mi/mi-out.c (mi_ui_out::do_table_header)
2365 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2366 (mi_ui_out::do_field_string): Update.
2367 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2369 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2371 * cli-out.c (cli_ui_out::do_table_header)
2372 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2373 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2374 (cli_ui_out::do_field_fmt): Update.
2375 * breakpoint.c (print_breakpoint_location): Update.
2376 (update_static_tracepoint): Update.
2378 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2380 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2381 conversion of gdb_datadir.
2382 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2383 remove not needed c_str ().
2385 2019-09-30 Ali Tamur <tamur@google.com>
2387 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2388 (dwarf2_string_attr): Likewise.
2390 2019-09-30 Ali Tamur <tamur@google.com>
2392 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2393 (process_full_type_unit): Likewise.
2394 (dump_die_shallow): Likewise.
2395 (cu_debug_loc_section): Likewise.
2397 2019-09-28 Christian Biesinger <cbiesinger@google.com>
2399 * minsyms.c (compare_minimal_symbols): Rename to...
2400 (minimal_symbol_is_less_than): ...this, and adjust to STL
2401 conventions (return bool, take arguments as references)
2402 (minimal_symbol_reader::install): Call std::sort instead
2405 2019-09-29 Christian Biesinger <cbiesinger@google.com>
2407 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2409 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2410 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2412 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2414 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2415 * psympriv.h (add_psymbol_to_list): Move comment here and update
2418 2019-09-29 Tom de Vries <tdevries@suse.de>
2420 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2421 Use $tmpdir/$(basename "$output_file").dwz instead of
2422 "${output_file}.dwz".
2424 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2427 * hppa-linux-nat.c: Include gdbarch.h.
2429 2019-09-26 Christian Biesinger <cbiesinger@google.com>
2431 * blockframe.c (find_pc_partial_function): Change return type to bool.
2432 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2433 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2434 (stub_gnu_ifunc_resolve_name): Likewise.
2435 * symtab.c (compare_filenames_for_search): Likewise.
2436 (compare_glob_filenames_for_search): Likewise.
2437 (matching_obj_sections): Likewise.
2438 (symbol_matches_domain): Likewise.
2439 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2440 (find_line_pc): Change return type to bool.
2441 (find_line_pc_range): Likewise.
2442 (producer_is_realview): Likewise.
2443 * symtab.h (symbol_matches_domain): Likewise.
2444 (find_pc_partial_function): Likewise.
2445 (find_pc_line_pc_range): Likewise.
2446 (in_gnu_ifunc_stub): Likewise.
2447 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2448 (find_line_pc): Likewise.
2449 (find_line_pc_range): Likewise.
2450 (matching_obj_sections): Likewise.
2451 (find_line_symtab): Change out parameter to bool.
2452 (producer_is_realview): Change return type to bool.
2453 (compare_filenames_for_search): Likewise.
2454 (compare_glob_filenames_for_search): Likewise.
2456 2019-09-26 Tom Tromey <tom@tromey.com>
2458 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2459 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2460 * gdb_usleep.h: Remove.
2461 * gdb_usleep.c: Remove.
2462 * utils.c: Don't include gdb_usleep.h.
2464 2019-09-26 Tom Tromey <tromey@adacore.com>
2466 * python/py-type.c (type_to_type_object): Call check_typedef
2469 2019-09-26 Tom Tromey <tom@tromey.com>
2471 * utils.h (initialize_utils): Don't declare.
2472 * top.c (gdb_init): Don't call initialize_utils.
2473 * utils.c (initialize_utils): Remove. Move contents...
2474 (_initialize_utils): ... here.
2476 2019-09-25 Tom Tromey <tom@tromey.com>
2478 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2479 * utils.h (make_hex_string): Don't declare.
2480 * utils.c (make_hex_string): Remove.
2482 2019-09-24 Tom de Vries <tdevries@suse.de>
2485 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2486 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2488 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2490 * NEWS: Mention new simulator port for PRU.
2492 2019-09-23 Christian Biesinger <cbiesinger@google.com>
2494 * ada-exp.y (write_object_remaining): Update.
2495 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2496 and eliminate the static buffer.
2497 (ada_decode_symbol): Update.
2498 (ada_la_decode): Update.
2499 (ada_sniff_from_mangled_name): Update.
2500 (is_valid_name_for_wild_match): Update.
2501 (ada_lookup_name_info::matches): Update and simplify.
2502 (name_matches_regex): Update.
2503 (ada_add_global_exceptions): Update.
2504 * ada-lang.h (ada_decode): Update signature.
2505 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2506 * dwarf-index-write.c (debug_names::insert): Update.
2508 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2510 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2513 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2515 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2516 Change "nonzero" to "true" in documentation.
2518 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2520 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2521 (_initialize_darwin_solib): Don't set
2522 darwin_so_ops.lookup_lib_global_symbol.
2523 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2524 set_gdbarch_iterate_over_objfiles_in_search_order.
2525 (elf_lookup_lib_symbol): Rename to...
2526 (svr4_iterate_over_objfiles_in_search_order): this, and update
2527 to iterate semantics.
2528 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2529 * solib.c (solib_global_lookup): Remove.
2530 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2531 (solib_global_lookup): Remove.
2532 * symtab.c (lookup_global_or_static_symbol): Remove call to
2533 solib_global_lookup.
2535 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2537 * NEWS: Move entries about default MI version now being
2538 version 3, and about the GDB/MI fix for multi-location
2539 breakpoints to the "since GDB 8.3" section.
2541 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2545 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2547 * NEWS: Mention that Cell/B.E. debugging support was removed.
2548 * MAINTAINERS: Remove spu target.
2550 * config/djgpp/fnchange.lst: Remove entries for removed files.
2552 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2553 spu-multiarch.o, and spu-tdep.o.
2554 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2555 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2556 spu-multiarch.c, and spu-tdep.c.
2557 * spu-linux-nat.c: Remove file.
2558 * spu-multiarch.c: Remove file.
2559 * spu-tdep.c: Remove file.
2560 * spu-tdep.h: Remove file.
2561 * solib-spu.c: Remove file.
2562 * solib-spu.h: Remove file.
2564 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2565 * configure.nat (spu-linux): Remove.
2566 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2567 solib-multiarch.o from gdb_target_obs.
2570 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2572 (ppc_linux_no_features): Update.
2573 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2575 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2576 (tdesc_powerpc_cell64l): Likewise.
2577 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2578 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2580 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2581 Do not include "features/rs6000/powerpc-cell32l.c" or
2582 "features/rs6000/powerpc-cell64l.c".
2583 (ppc_linux_spu_section): Remove.
2584 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2585 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2586 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2587 (ppc_linux_spe_context_lookup): Remove.
2588 (ppc_linux_spe_context_inferior_created): Remove.
2589 (ppc_linux_spe_context_solib_loaded): Remove.
2590 (ppc_linux_spe_context_solib_unloaded): Remove.
2591 (ppc_linux_spe_context): Remove.
2592 (struct ppu2spu_cache): Remove.
2593 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2594 (struct ppu2spu_data): Remove.
2595 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2596 ppu2spu_unwind): Remove.
2597 (ppc_linux_init_abi): Remove Cell/B.E. support.
2598 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2600 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2601 (rs6000/powerpc-cell64l-expedite): Likewise
2602 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2603 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2604 rs6000/powerpc-cell64l.xml.
2605 * features/rs6000/powerpc-cell32l.xml: Remove.
2606 * features/rs6000/powerpc-cell64l.xml: Likewise.
2607 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2608 * features/rs6000/powerpc-cell64l.c: Likewise.
2609 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2610 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2611 * regformats/reg-spu.dat: Remove.
2613 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2614 * corelow.c (struct spuid_list): Remove.
2615 (add_to_spuid_list): Remove.
2616 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2617 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2618 (remote_protocol_features): Remove associated entries.
2619 (_initialize_remote): No longer initialize them.
2620 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2621 * linux-nat.c (SPUFS_MAGIC): Remove.
2622 (linux_proc_xfer_spu): Remove.
2623 (spu_enumerate_spu_ids): Remove.
2624 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2625 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2626 (linux_make_corefile_notes): No longer call it.
2628 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2629 (cooked_write_test): Likewise.
2631 2019-09-20 Tom Tromey <tom@tromey.com>
2633 * NEWS: Mention case-sensitivity of TUI commands.
2634 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2635 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2636 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2638 2019-09-20 Tom Tromey <tom@tromey.com>
2640 * tui/tui-source.c (tui_source_window::set_contents): Use
2641 make_unique_xstrdup.
2642 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2643 make_unique_xstrdup.
2645 2019-09-20 Tom Tromey <tom@tromey.com>
2647 * tui/tui-data.c: Remove separator comments.
2648 * tui/tui-layout.c: Remove separator comments.
2649 * tui/tui-win.c: Remove separator comments.
2650 * tui/tui-wingeneral.c: Remove separator comments.
2652 2019-09-20 Tom Tromey <tom@tromey.com>
2654 * tui/tui.h (strcat_to_buf): Don't declare.
2655 * tui/tui.c (strcat_to_buf): Remove.
2657 2019-09-20 Tom Tromey <tom@tromey.com>
2659 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2661 * tui/tui-source.c (tui_source_window::set_contents)
2662 (tui_source_window::location_matches_p)
2663 (tui_source_window::maybe_update): Update.
2665 2019-09-20 Tom Tromey <tom@tromey.com>
2667 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2669 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2671 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2672 (tui_data_window::line_from_reg_element_no)
2673 (tui_data_window::first_reg_element_no_inline)
2674 (tui_data_window::show_registers)
2675 (tui_data_window::show_register_group)
2676 (tui_data_window::display_registers_from)
2677 (tui_data_window::display_registers_from_line)
2678 (tui_data_window::first_data_item_displayed)
2679 (tui_data_window::delete_data_content_windows)
2680 (tui_data_window::erase_data_content)
2681 (tui_data_window::do_scroll_vertical)
2682 (tui_data_window::refresh_window)
2683 (tui_data_window::check_register_values): Update.
2685 2019-09-20 Tom Tromey <tom@tromey.com>
2687 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2688 (struct tui_locator_window) <full_name, proc_name>: Now
2690 * tui/tui-stack.c (tui_locator_window::make_status_line)
2691 (tui_locator_window::set_locator_fullname)
2692 (tui_locator_window::set_locator_info): Update.
2693 * tui/tui-source.c (tui_source_window::set_contents)
2694 (tui_source_window::showing_source_p): Update.
2696 2019-09-20 Tom Tromey <tom@tromey.com>
2698 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2699 Don't call tui_locator_win_info_ptr.
2701 2019-09-20 Tom Tromey <tom@tromey.com>
2703 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2705 2019-09-20 Tom Tromey <tom@tromey.com>
2707 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2709 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2710 * tui/tui-layout.c (show_source_disasm_command, show_data)
2711 (show_source_or_disasm_and_command): Use 1 as height for locator.
2713 2019-09-20 Tom Tromey <tom@tromey.com>
2715 * tui/tui.c (tui_enable): Update.
2716 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2718 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2720 * tui/tui-data.c (win_resized): Now bool.
2721 (tui_win_resized): Return bool.
2722 (tui_set_win_resized_to): Accept a bool.
2724 2019-09-20 Tom Tromey <tom@tromey.com>
2726 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2727 Change type of "refresh_values_only".
2728 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2729 type of "refresh_values_only".
2731 2019-09-20 Tom Tromey <tom@tromey.com>
2733 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2735 (tui_disassemble): Add "pos" parameter.
2736 (tui_disasm_window::set_contents): Simplify.
2738 2019-09-20 Tom Tromey <tom@tromey.com>
2740 * tui/tui-winsource.h (struct tui_source_window_base)
2741 <show_source_content>: Now private.
2742 * tui/tui-winsource.c
2743 (tui_source_window_base::show_source_content): Don't handle empty
2746 2019-09-20 Tom Tromey <tom@tromey.com>
2748 * tui/tui-layout.c (show_source_disasm_command)
2749 (show_source_or_disasm_and_command): Don't call
2750 show_source_content.
2752 2019-09-20 Tom Tromey <tom@tromey.com>
2754 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2756 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2757 from tui_make_status_line.
2758 (tui_locator_window::rerender): Update.
2760 2019-09-20 Tom Tromey <tom@tromey.com>
2762 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2763 (tui_locator_window::rerender): Update.
2765 2019-09-20 Tom Tromey <tom@tromey.com>
2767 * tui/tui-winsource.h (struct tui_source_window_base)
2768 <~tui_source_window_base>: Don't declare.
2770 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2771 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2773 * tui/tui-source.c (tui_source_window::set_contents): Update.
2774 (tui_source_window::location_matches_p)
2775 (tui_source_window::maybe_update): Update.
2777 2019-09-20 Tom Tromey <tom@tromey.com>
2779 * tui/tui-winsource.h (~tui_source_element): Remove.
2780 (tui_source_element): Update.
2781 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2782 * tui/tui-winsource.c (tui_show_source_line): Update.
2783 * tui/tui-source.c (tui_source_window::set_contents): Update.
2784 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2786 2019-09-20 Tom Tromey <tom@tromey.com>
2788 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2790 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2791 tui_clear_source_windows_detail.
2792 * tui/tui-winsource.h (struct tui_source_window_base)
2793 <clear_detail>: Don't declare.
2794 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2796 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2798 2019-09-20 Tom Tromey <tromey@adacore.com>
2801 * block.c (contained_in): Fix final return value.
2803 2019-09-20 Alan Modra <amodra@gmail.com>
2805 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2806 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2807 (read_indirect_string_from_dwz): Use bfd accessor.
2808 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2809 * machoread.c (macho_symfile_read_all_oso): Likewise.
2810 * solib.c (solib_bfd_open): Likewise.
2812 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2814 * eval.c: Move declaration of overload_resolution to...
2817 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2819 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2820 * arm-linux-tdep.c: Likewise.
2821 * arm-nbsd-nat.c: Likewise.
2822 * arm-tdep.h: Declare arm_apcs_32.
2823 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2825 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2827 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2828 * dwarf2read.h: Declare dwarf_always_disassemble.
2830 2019-09-19 Tom de Vries <tdevries@suse.de>
2833 * source-cache.c (source_cache::ensure): Catch exception thrown during
2834 construction of the highlighter.
2836 2019-09-18 Alan Modra <amodra@gmail.com>
2838 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
2839 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
2840 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
2841 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
2842 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
2843 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
2844 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
2845 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
2846 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
2847 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
2848 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
2849 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
2850 * solib-spu.c, * solib-svr4.c, * solib-target.c,
2851 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
2852 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
2853 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
2854 * mi/mi-interp.c: Update throughout for bfd section macro and
2856 * gcore (gcore_create_callback): Use bfd_set_section_lma.
2857 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
2859 2019-09-18 Tom Tromey <tom@tromey.com>
2862 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
2864 (tui_enable): Do not call rl_initialize.
2866 2019-09-18 Christian Groessler <chris@groessler.org>
2868 * alpha-linux-nat.c: Include gdbarch.h.
2870 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
2872 * ui-file.c: Include cli/cli-style.h.
2873 (term_cli_styling): Remove cli_styling declaration.
2875 2019-09-18 Alan Modra <amodra@gmail.com>
2877 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
2878 to bfd_asymbol_section.
2880 2019-09-18 Alan Modra <amodra@gmail.com>
2882 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
2883 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2884 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
2886 2019-09-18 Alan Modra <amodra@gmail.com>
2888 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
2889 * spu-linux-nat.c (spu_bfd_open): Likewise.
2891 2019-09-18 Christian Biesinger <cbiesinger@google.com>
2893 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
2894 to bool to match definition in dwarf2read.c.
2896 2019-09-17 Christian Biesinger <cbiesinger@google.com>
2898 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
2899 (print_signatures): Likewise.
2900 (trust_pad_over_xvs): Likewise.
2901 * arch/aarch64-insn.c (aarch64_debug): Likewise.
2902 * arch/aarch64-insn.h (aarch64_debug): Likewise.
2903 * arm-linux-nat.c (arm_apcs_32): Likewise.
2904 * arm-linux-tdep.c (arm_apcs_32): Likewise.
2905 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
2906 * arm-tdep.c (arm_debug): Likewise.
2907 (arm_apcs_32): Likewise.
2908 * auto-load.c (debug_auto_load): Likewise.
2909 (auto_load_gdb_scripts): Likewise.
2910 (global_auto_load): Likewise.
2911 (auto_load_local_gdbinit): Likewise.
2912 (auto_load_local_gdbinit_loaded): Likewise.
2913 * auto-load.h (global_auto_load): Likewise.
2914 (auto_load_local_gdbinit): Likewise.
2915 (auto_load_local_gdbinit_loaded): Likewise.
2916 * breakpoint.c (disconnected_dprintf): Likewise.
2917 (breakpoint_proceeded): Likewise.
2918 (automatic_hardware_breakpoints): Likewise.
2919 (always_inserted_mode): Likewise.
2920 (target_exact_watchpoints): Likewise.
2921 (_initialize_breakpoint): Update.
2922 * breakpoint.h (target_exact_watchpoints): Change to bool.
2923 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
2924 * cli/cli-cmds.c (trace_commands): Likewise.
2925 * cli/cli-cmds.h (trace_commands): Likewise.
2926 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
2928 * cli/cli-logging.c (logging_overwrite): Change to bool.
2929 (logging_redirect): Likewise.
2930 (debug_redirect): Likewise.
2931 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
2932 (struct boolean_option_def) <get_var_address_cb_>: Change return type
2934 <boolean_option_def>: Update.
2935 (struct flag_option_def): Change default type of Context to bool
2937 <flag_option_def>: Change return type of var_address_cb_ to bool*.
2938 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
2939 (get_setshow_command_value_string): Likewise.
2940 * cli/cli-style.c (cli_styling): Change to bool.
2941 (source_styling): Likewise.
2942 * cli/cli-style.h (source_styling): Likewise.
2943 (cli_styling): Likewise.
2944 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
2946 * command.h (var_types): Update comment.
2947 (add_setshow_boolean_cmd): Change int* var argument to bool*.
2948 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
2950 (debug_compile_cplus_scopes): Likewise.
2951 * compile/compile-internal.h (compile_debug): Likewise.
2952 * compile/compile.c (compile_debug): Likewise.
2953 (struct compile_options) <raw>: Likewise.
2954 * cp-support.c (catch_demangler_crashes): Likewise.
2955 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
2956 (usr_cmd_cris_dwarf2_cfi): Likewise.
2957 * csky-tdep.c (csky_debug): Likewise.
2958 * darwin-nat.c (enable_mach_exceptions): Likewise.
2959 * dcache.c (dcache_enabled_p): Likewise.
2960 * defs.h (info_verbose): Likewise.
2961 * demangle.c (demangle): Likewise.
2962 (asm_demangle): Likewise.
2963 * dwarf-index-cache.c (debug_index_cache): Likewise.
2964 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
2965 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
2966 * dwarf2read.c (check_physname): Likewise.
2967 (use_deprecated_index_sections): Likewise.
2968 (dwarf_always_disassemble): Likewise.
2969 * eval.c (overload_resolution): Likewise.
2970 * event-top.c (set_editing_cmd_var): Likewise.
2971 (exec_done_display_p): Likewise.
2972 * event-top.h (set_editing_cmd_var): Likewise.
2973 (exec_done_display_p): Likewise.
2974 * exec.c (write_files): Likewise.
2975 * fbsd-nat.c (debug_fbsd_lwp): Likewise
2976 (debug_fbsd_nat): Likewise.
2977 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
2979 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
2980 <backtrace_past_entry> Likewise.
2981 * gdb-demangle.h (demangle): Likewise.
2982 (asm_demangle): Likewise.
2983 * gdb_bfd.c (bfd_sharing): Likewise.
2984 * gdbcore.h (write_files): Likewise.
2985 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
2986 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
2987 * gdbthread.h (print_thread_events): Likewise.
2988 * gdbtypes.c (opaque_type_resolution): Likewise.
2989 (strict_type_checking): Likewise.
2990 * gnu-nat.c (gnu_debug_flag): Likewise.
2991 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
2992 * guile/scm-param.c (pascm_variable): Add boolval.
2993 (add_setshow_generic): Update.
2994 (pascm_param_value): Update.
2995 (pascm_set_param_value_x): Update.
2996 * hppa-tdep.c (hppa_debug): Change to bool..
2997 * infcall.c (may_call_functions_p): Likewise.
2998 (coerce_float_to_double_p): Likewise.
2999 (unwind_on_signal_p): Likewise.
3000 (unwind_on_terminating_exception_p): Likewise.
3001 * infcmd.c (startup_with_shell): Likewise.
3002 * inferior.c (print_inferior_events): Likewise.
3003 * inferior.h (startup_with_shell): Likewise.
3004 (print_inferior_events): Likewise.
3005 * infrun.c (step_stop_if_no_debug): Likewise.
3006 (detach_fork): Likewise.
3007 (debug_displaced): Likewise.
3008 (disable_randomization): Likewise.
3009 (non_stop): Likewise.
3010 (non_stop_1): Likewise.
3011 (observer_mode): Likewise.
3012 (observer_mode_1): Likewise.
3013 (set_observer_mode): Update.
3014 (sched_multi): Change to bool.
3015 * infrun.h (debug_displaced): Likewise.
3016 (sched_multi): Likewise.
3017 (step_stop_if_no_debug): Likewise.
3018 (non_stop): Likewise.
3019 (disable_randomization): Likewise.
3020 * linux-tdep.c (use_coredump_filter): Likewise.
3021 (dump_excluded_mappings): Likewise.
3022 * linux-thread-db.c (auto_load_thread_db): Likewise.
3023 (check_thread_db_on_load): Likewise.
3024 * main.c (captured_main_1): Update.
3025 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3026 xx2_opt, boolean_opt>: Change to bool.
3027 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3028 * maint.c (maintenance_profile_p): Likewise.
3029 (per_command_time): Likewise.
3030 (per_command_space): Likewise.
3031 (per_command_symtab): Likewise.
3032 * memattr.c (inaccessible_by_default): Likewise.
3033 * mi/mi-main.c (mi_async): Likewise.
3034 (mi_async_1): Likewise.
3035 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3036 * nat/fork-inferior.h (startup_with_shell): Likewise.
3037 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3038 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3039 * nios2-tdep.c (nios2_debug): Likewise.
3040 * or1k-tdep.c (or1k_debug): Likewise.
3041 * parse.c (parser_debug): Likewise.
3042 * parser-defs.h (parser_debug): Likewise.
3043 * printcmd.c (print_symbol_filename): Likewise.
3044 * proc-api.c (procfs_trace): Likewise.
3045 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3046 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3047 (set_parameter_value): Update.
3048 (add_setshow_generic): Update.
3049 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3051 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3053 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3054 * record-btrace.c (record_btrace_target::store_registers): Update.
3055 * record-full.c (record_full_memory_query): Change to bool.
3056 (record_full_stop_at_limit): Likewise.
3057 * record-full.h (record_full_memory_query): Likewise.
3058 * remote-notif.c (notif_debug): Likewise.
3059 * remote-notif.h (notif_debug): Likewise.
3060 * remote.c (use_range_stepping): Likewise.
3061 (interrupt_on_connect): Likewise.
3062 (remote_break): Likewise.
3063 * ser-tcp.c (tcp_auto_retry): Likewise.
3064 * ser-unix.c (serial_hwflow): Likewise.
3065 * skip.c (debug_skip): Likewise.
3066 * solib-aix.c (solib_aix_debug): Likewise.
3067 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3068 (spu_auto_flush_cache_p): Likewise.
3069 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3071 (struct info_print_options) <quiet>: Likewise.
3072 * symfile-debug.c (debug_symfile): Likewise.
3073 * symfile.c (auto_solib_add): Likewise.
3074 (separate_debug_file_debug): Likewise.
3075 * symfile.h (auto_solib_add): Likewise.
3076 (separate_debug_file_debug): Likewise.
3077 * symtab.c (basenames_may_differ): Likewise.
3078 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3079 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3080 (struct info_types_options) <quiet>: Likewise.
3081 * symtab.h (demangle): Likewise.
3082 (basenames_may_differ): Likewise.
3083 * target-dcache.c (stack_cache_enabled_1): Likewise.
3084 (code_cache_enabled_1): Likewise.
3085 * target.c (trust_readonly): Likewise.
3086 (may_write_registers): Likewise.
3087 (may_write_memory): Likewise.
3088 (may_insert_breakpoints): Likewise.
3089 (may_insert_tracepoints): Likewise.
3090 (may_insert_fast_tracepoints): Likewise.
3091 (may_stop): Likewise.
3092 (auto_connect_native_target): Likewise.
3093 (target_stop_and_wait): Update.
3094 (target_async_permitted): Change to bool.
3095 (target_async_permitted_1): Likewise.
3096 (may_write_registers_1): Likewise.
3097 (may_write_memory_1): Likewise.
3098 (may_insert_breakpoints_1): Likewise.
3099 (may_insert_tracepoints_1): Likewise.
3100 (may_insert_fast_tracepoints_1): Likewise.
3101 (may_stop_1): Likewise.
3102 * target.h (target_async_permitted): Likewise.
3103 (may_write_registers): Likewise.
3104 (may_write_memory): Likewise.
3105 (may_insert_breakpoints): Likewise.
3106 (may_insert_tracepoints): Likewise.
3107 (may_insert_fast_tracepoints): Likewise.
3108 (may_stop): Likewise.
3109 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3110 (make_thread_apply_all_options_def_group): Change argument from int*
3112 (thread_apply_all_command): Update.
3113 (print_thread_events): Change to bool.
3114 * top.c (confirm): Likewise.
3115 (command_editing_p): Likewise.
3116 (history_expansion_p): Likewise.
3117 (write_history_p): Likewise.
3118 (info_verbose): Likewise.
3119 * top.h (confirm): Likewise.
3120 (history_expansion_p): Likewise.
3121 * tracepoint.c (disconnected_tracing): Likewise.
3122 (circular_trace_buffer): Likewise.
3123 * typeprint.c (print_methods): Likewise.
3124 (print_typedefs): Likewise.
3125 * utils.c (debug_timestamp): Likewise.
3126 (sevenbit_strings): Likewise.
3127 (pagination_enabled): Likewise.
3128 * utils.h (sevenbit_strings): Likewise.
3129 (pagination_enabled): Likewise.
3130 * valops.c (overload_resolution): Likewise.
3131 * valprint.h (struct value_print_options) <prettyformat_arrays,
3132 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3133 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3134 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3136 * windows-nat.c (new_console): Likewise.
3137 (cygwin_exceptions): Likewise.
3138 (new_group): Likewise.
3139 (debug_exec): Likewise.
3140 (debug_events): Likewise.
3141 (debug_memory): Likewise.
3142 (debug_exceptions): Likewise.
3143 (useshell): Likewise.
3144 * windows-tdep.c (maint_display_all_tib): Likewise.
3145 * xml-support.c (debug_xml): Likewise.
3147 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3149 * source.c (prepare_path_for_appending): New function.
3150 (openp): Make use of new function.
3151 (find_and_open_source): Search for the compilation directory and
3152 source file as a relative path beneath the directory search path.
3154 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3156 * source-cache.c (source_cache::get_line_charpos): Catch
3157 exceptions and return false, this matches the behaviour documented
3160 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3162 * ada-tasks.c (info_task): Remove quoting of the task's name.
3164 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3166 * symfile.c (auto_solib_add): Replace comment with a reference
3169 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3171 * NEWS: Mention that gdb can now be compiled with Python 3
3174 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3176 * maint.c (maint_print_section_data::maint_print_section_data):
3177 Force use of 'float log10 (float)' by casting the argument to
3180 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3182 * maint.c: Add 'cmath' include.
3183 (struct maint_print_section_data): New structure.
3184 (print_section_index): New function.
3185 (print_bfd_section_info): Add header comment, small whitespace
3186 cleanup, and update to call new print_section_index function.
3187 (print_objfile_section_info): Likewise.
3188 (maint_obj_section_from_bfd_section): New function.
3189 (print_bfd_section_info_maybe_relocated): New function.
3190 (maintenance_info_sections): Add header comment, always use
3191 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3193 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3195 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3196 inner scope, add check that the objfile has psymtabs before
3197 checking psymtabs_addrmap.
3198 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3200 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3202 * NEWS: Announce that Ada task names are now shown at more places,
3203 and between quotes (except in info task output).
3204 * gdb/ada-tasks.c (task_to_str): New function.
3205 (display_current_task_id): Call task_to_str.
3206 (task_command_1): Likewise.
3207 (print_ada_task_info): In non-mi mode, Properly align headers and data
3208 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3210 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3212 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3213 prstatus.pr_lwp.pr_info instead of making it up.
3215 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3217 * auto-load.c (auto_load_expand_dir_vars): Update.
3218 * defs.h (gdb_datadir): Change to std::string.
3219 (python_libdir): Likewise.
3220 (relocate_gdb_directory): Change return type to std::string.
3221 * guile/guile.c (gdbscm_data_directory): Update.
3222 (initialize_scheme_side): Update.
3223 * jit.c (jit_reader_dir): Change to std::string.
3224 (jit_reader_load_command): Update.
3225 * main.c (gdb_datadir): Change to std::string.
3226 (python_libdir): Likewise.
3227 (set_gdb_data_directory): Update.
3228 (relocate_path): Change to return std::string.
3229 (relocate_gdb_directory): Change to return std::string.
3230 (relocate_gdbinit_path_maybe_in_datadir): Update.
3231 (captured_main_1): Update.
3232 * python/python.c (do_start_initialization): Update.
3233 * top.c (show_gdb_datadir): Update.
3234 * xml-syscall.c (xml_init_syscalls_info): Update.
3235 (init_syscalls_info): Update.
3237 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3239 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3240 out of get_init_files.
3241 (get_init_files): Update.
3243 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3245 * main.c (get_init_files): Change to use std::string.
3246 (captured_main_1): Update.
3247 (print_gdb_help): Update.
3249 2019-09-11 Ali Tamur <tamur@google.com>
3251 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3254 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3256 * dbxread.c (read_dbx_symtab): Update.
3257 * dwarf2read.c (load_partial_dies): Update.
3258 * mdebugread.c (parse_partial_symbols): Update.
3259 (handle_psymbol_enumerators): Update.
3260 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3261 * psymtab.c (add_psymbol_to_bcache): Likewise.
3262 (add_psymbol_to_list): Likewise.
3263 * symtab.c (symbol_set_names): Likewise.
3264 * symtab.h (symbol_set_names): Likewise.
3265 * xcoffread.c (scan_xcoff_symtab): Update.
3267 2019-09-11 Tom Tromey <tom@tromey.com>
3269 * symfile-mem.c (symbol_file_add_from_memory): Use
3271 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3272 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3274 2019-09-10 Tom Tromey <tromey@adacore.com>
3276 * dwarf-index-write.c (write_psymbols): Extend error message.
3277 (debug_names::insert): Add Ada code.
3278 (debug_names::write_psymbols): Remove Ada check.
3279 (debug_names) <m_string_obstack>: New member.
3280 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3281 (gdb_index_symbol_name_matcher::matches): Remove.
3282 (mapped_index_base::find_name_components_bounds): Add "lang"
3284 (mapped_index_base::build_name_components): Also split names
3285 according to Ada syntax.
3286 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3287 type of "match_callback".
3288 (check_match, check_find_bounds_finds)
3289 (dw2_expand_symtabs_matching): Update.
3290 (dw2_debug_names_iterator): Add new constructor.
3291 (dw2_debug_names_map_matching_symbols): New function.
3292 (dw2_debug_names_expand_symtabs_matching): Update.
3293 (dwarf2_debug_names_functions): Use
3294 dw2_debug_names_map_matching_symbols.
3296 2019-09-10 Tom Tromey <tromey@adacore.com>
3298 * dwarf2read.c (dw2_get_file_names_reader): Add the
3299 CU's file name to the results.
3301 2019-09-10 Tom Tromey <tromey@adacore.com>
3303 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3304 map_matching_symbols. Update.
3305 * dwarf2read.c (dw2_map_matching_symbols): Update.
3306 * psymtab.c (match_partial_symbol): Change type; update.
3307 (psym_map_matching_symbols): Likewise.
3308 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3310 * symfile.h (struct quick_symbol_functions)
3311 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3314 2019-09-10 Tom Tromey <tromey@adacore.com>
3316 * psymtab.c (map_block): Remove.
3317 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3318 * symtab.c (iterate_over_symbols_terminated): New function.
3319 * symtab.c (iterate_over_symbols_terminated): Declare.
3321 2019-09-10 Tom Tromey <tromey@adacore.com>
3323 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3324 * language.h (struct language_defn) <la_iterate_over_symbols>:
3326 * symtab.c (iterate_over_symbols): Return bool.
3327 * symtab.h (iterate_over_symbols): Return bool.
3329 2019-09-10 Tom Tromey <tromey@adacore.com>
3331 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3332 (add_nonlocal_symbols): Update.
3333 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3334 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3335 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3336 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3337 Change type of "callback". Remove "data".
3340 2019-09-09 Ali Tamur <tamur@google.com>
3342 * dwarf2read.c (comp_unit_head): Update comment.
3343 (dwarf2_dwo_name): New function declaration.
3344 (dwarf_unit_type_name): New function declaration.
3345 (read_comp_unit_head): Add support for new compilation units,
3346 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3347 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3348 (currently named as "signature") in their header. Also clarify error
3350 (lookup_dwo_id): New function. Returns the dwo id of the given
3352 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3353 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3355 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3356 (dwarf2_dwo_name): Get the dwo name if present.
3357 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3360 2019-09-09 Tom Tromey <tom@tromey.com>
3362 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3364 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3366 * python/python.c (do_start_initialization): Make progname_copy static,
3367 to avoid a leak report.
3369 2019-09-08 Tom Tromey <tom@tromey.com>
3371 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3373 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
3375 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3376 Change type to gdb::optional<block_enum>.
3377 (dw2_symtab_iter_init): Change block_index parameter type
3378 to gdb::optional<block_enum>.
3379 (dw2_lookup_symbol): Change block_index parameter
3380 type to block_enum.c
3381 (dw2_debug_names_lookup_symbol): Likewise.
3382 * psymtab.c (psym_lookup_symbol): Likewise.
3383 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3384 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3387 2019-09-06 Christian Biesinger <cbiesinger@google.com>
3389 * defs.h (relocate_gdb_directory): Change int to bool in
3390 signature and rename flag to relocatable.
3391 * main.c (relocate_path): Likewise.
3392 (relocate_gdb_directory): Likewise.
3394 2019-09-06 Alan Modra <amodra@gmail.com>
3396 * coffread.c (coff_symfile_read): Constify filename variable.
3397 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3398 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3399 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3400 * solib.c (reload_shared_libraries_1): Likewise.
3401 * symfile.c (reread_symbols): Likewise.
3402 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3403 * solib-darwin.c (darwin_bfd_open): Likewise.
3404 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3406 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3408 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3409 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3411 2019-09-03 Tom Tromey <tromey@adacore.com>
3413 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3415 (has_negatives): Unbias a range type bound.
3416 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3417 * gdbtypes.c (operator==): Handle new field.
3418 (create_range_type): Add "bias" parameter.
3419 (create_static_range_type, resolve_dynamic_range): Update.
3420 * gdbtypes.h (struct range_bounds) <bias>: New member.
3421 (create_range_type): Add bias parameter.
3422 * printcmd.c (print_scalar_formatted): Unbias range types.
3423 * value.c (unpack_long): Unbias range types.
3424 (pack_long): Bias range types.
3426 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3428 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3431 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3433 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3434 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3435 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3436 (compile_probe_arg): Likewise.
3437 * probe.h (get_argument_count): Likewise.
3438 * solib-svr4.c (solib_event_probe_action): Likewise.
3439 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3441 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3443 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3445 (svr4_create_solib_event_breakpoints): ...from here.
3447 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3449 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3450 suffix from warning message.
3452 2019-08-30 Tom Tromey <tom@tromey.com>
3454 * tui/tui-winsource.h (struct tui_source_window_base)
3455 <refresh_all>: Don't declare.
3456 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3458 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3459 tui_show_locator_content.
3460 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3462 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3463 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3466 2019-08-30 Tom Tromey <tom@tromey.com>
3468 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3470 2019-08-30 Tom Tromey <tom@tromey.com>
3472 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3473 Remove unnecessary forward declarations.
3475 2019-08-30 Tom Tromey <tom@tromey.com>
3477 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3479 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3480 tui_show_locator_content.
3482 2019-08-30 Tom Tromey <tom@tromey.com>
3484 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3485 (tui_locator_window::rerender): Rewrite using body of previous
3486 tui_show_locator_content.
3488 2019-08-30 Tom Tromey <tom@tromey.com>
3490 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3491 set_locator_fullname>: New methods.
3492 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3493 Rename from tui_set_locator_fullname.
3494 (tui_locator_window::set_locator_info): Rename from
3495 tui_set_locator_info. Return bool.
3496 (tui_update_locator_fullname, tui_show_frame_info): Update.
3498 2019-08-30 Tom Tromey <tom@tromey.com>
3500 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3502 2019-08-30 Tom Tromey <tom@tromey.com>
3504 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3507 2019-08-30 Tom Tromey <tom@tromey.com>
3509 * tui/tui-wingeneral.c (box_win): Assume win_info and
3510 win_info->handle cannot be NULL.
3512 2019-08-30 Tom Tromey <tom@tromey.com>
3514 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3515 refresh_window>: Declare.
3516 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3518 (tui_data_item_window::rerender): Rename from
3519 tui_display_register.
3520 (tui_data_item_window::refresh_window): New method.
3521 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3524 2019-08-30 Tom Tromey <tom@tromey.com>
3526 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3527 regs_column_count, current_group>: Move later. Now private.
3528 <get_current_group>: New method.
3529 * tui/tui-regs.c (tui_reg_command): Update.
3530 * tui/tui-layout.c (tui_set_layout): Update.
3532 2019-08-30 Tom Tromey <tom@tromey.com>
3534 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3535 (tui_data_window::rerender): Don't call
3536 check_and_display_highlight_if_needed.
3537 (tui_data_window::refresh_all): Remove call to
3540 2019-08-30 Tom Tromey <tom@tromey.com>
3542 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3543 (tui_data_window::display_registers_from)
3544 (tui_data_window::display_reg_element_at_line)
3545 (tui_data_window::display_registers_from_line): Remove checks of
3548 2019-08-30 Tom Tromey <tom@tromey.com>
3550 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3552 * tui/tui-regs.c (tui_data_window::show_registers): Call
3554 (tui_data_window::rerender): Rename from display_all_data.
3555 (tui_data_window::rerender): Remove old implementation.
3557 2019-08-30 Tom Tromey <tom@tromey.com>
3559 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3561 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3563 2019-08-29 Bernhard Wodok <barto@gmx.net>
3564 Sergio Durigan Junior <sergiodj@redhat.com>
3567 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3569 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3571 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3572 when searching for types.
3574 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3576 * f-lang.c (f_language_defn): Use f_print_typedef.
3577 * f-lang.h (f_print_typedef): Declare.
3578 * f-typeprint.c (f_print_typedef): Define.
3580 2019-08-27 Christian Biesinger <cbiesinger@google.com>
3582 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3584 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3586 * cli/cli-utils.c (info_print_options_defs): Delete.
3587 (make_info_print_options_def_group): Delete.
3588 (extract_info_print_options): Delete.
3589 (info_print_command_completer): Delete.
3590 (info_print_args_help): Add extra parameter, and optionally
3591 include text about -n flag.
3592 * cli/cli-utils.h (struct info_print_options): Delete.
3593 (extract_info_print_options): Delete declaration.
3594 (info_print_command_completer): Delete declaration.
3595 (info_print_args_help): Add extra parameter, extend header
3597 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3599 * stack.c (struct info_print_options): New type.
3600 (info_print_options_defs): New file scoped variable.
3601 (make_info_print_options_def_group): New static function.
3602 (info_print_command_completer): New static function.
3603 (info_locals_command): Update to use new local functions.
3604 (info_args_command): Likewise.
3605 (_initialize_stack): Add extra parameter to calls to
3606 info_print_args_help.
3607 * symtab.c (search_symbols): Add extra parameter, use this to
3608 possibly excluse non-debug symbols.
3609 (symtab_symbol_info): Add extra parameter, which is passed on to
3611 (struct info_print_options): New type.
3612 (info_print_options_defs): New file scoped variable.
3613 (make_info_print_options_def_group): New static function.
3614 (info_print_command_completer): New static function.
3615 (info_variables_command): Update to use local functions, and pass
3616 extra parameter through to symtab_symbol_info.
3617 (info_functions_command): Likewise.
3618 (info_types_command): Pass additional argument through to
3620 (rbreak_command): Pass extra argument to search_symbols.
3621 (_initialize_symtab): Add extra arguments for calls to
3622 info_print_args_help, and update help text for 'info variables',
3623 'whereis', and 'info functions' commands.
3624 * symtab.h (search_symbols): Add extra argument to declaration.
3625 * NEWS: Mention new flags.
3627 2019-08-26 Christian Biesinger <cbiesinger@google.com>
3629 * symtab.c (lookup_static_symbol): Call the new function (and move
3630 it down to be next to lookup_global_symbol).
3631 (struct global_sym_lookup_data): Add block_enum member and rename to...
3632 (struct global_or_static_sym_lookup_data): ...this.
3633 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3634 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3635 (lookup_symbol_global_or_static_iterator_cb): ...this.
3636 (lookup_global_or_static_symbol): New function.
3637 (lookup_global_symbol): Call new function.
3639 2019-08-26 Tom de Vries <tdevries@suse.de>
3642 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3643 when pc_probe.prob == NULL.
3645 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3647 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3648 variable symbol_linkage to symbol_linkage_.
3650 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3652 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3653 represent whether the symbol is static, dynamic, or we don't
3656 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3658 * gdb/rx-tdep.c (rx_register_names): New.
3659 (rx_register_name): Delete.
3660 (rx_psw_type): Delete.
3661 (rx_fpsw_type): Delete.
3662 (rx_register_type): Delete.
3663 (rx_gdbarch_init): Convert target-descriptions.
3664 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3665 * gdb/features/Makefile: Add rx.xml.
3666 * gdb/features/rx.xml: New.
3667 * gdb/features/rx.c: Generated.
3668 * gdb/NEWS: Mention target description support.
3670 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3672 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3675 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3677 * configure.ac: Don't check for 'dlfcn.h' (moved to
3678 gdbsupport/common.m4).
3679 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3681 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3682 * compile/compile-c-support.c: Include
3683 'gdbsupport/gdb-dlfcn.h'.
3684 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3685 * gdb-dlfcn.c: Move to...
3686 * gdbsupport/gdb-dlfcn.c: ... here.
3687 * gdb-dlfcn.h: Move to...
3688 * gdbsupport/gdb-dlfcn.h: ... here.
3690 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3692 * nios2-tdep.c (struct reg_value): Improve comments. Make
3693 the offset field signed.
3695 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3697 * python/lib/gdb/__init__.py (_execute_file): New function.
3698 * python/python.c (python_run_simple_file): Call gdb._execute_file
3701 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3703 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3704 all uses as this was never set to anything but a zero value.
3706 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3708 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3710 2019-08-21 Christian Biesinger <cbiesinger@google.com>
3712 * tui/tui-data.h (tui_gen_win_info): Add an =default
3713 move constructor, required by some GCC versions.
3715 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
3717 * go32-nat.c (go32_sysinfo): Add hygon_p.
3719 2019-08-20 Tom Tromey <tom@tromey.com>
3721 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3722 line_from_reg_element_no, first_reg_element_no_inline,
3723 display_all_data, delete_data_content_windows,
3724 erase_data_content>: Now private.
3726 2019-08-20 Tom Tromey <tom@tromey.com>
3728 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3729 (tui_unhighlight_win, tui_highlight_win)
3730 (tui_win_info::make_window): Update.
3731 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3733 2019-08-20 Tom Tromey <tom@tromey.com>
3735 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3736 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3737 (MAX_PID_WIDTH): Move to tui-stack.c.
3738 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3739 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3740 (MAX_PID_WIDTH): Move from tui-data.h.
3742 2019-08-20 Tom Tromey <tom@tromey.com>
3744 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3745 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3747 (tui_gen_win_info::make_window): Rename from tui_make_window.
3748 (tui_win_info::make_window): New method.
3749 (tui_gen_win_info::make_visible): Update.
3750 * tui/tui-source.c (tui_source_window::set_contents): Update.
3751 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3752 (tui_data_window::display_registers_from): Update.
3753 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3754 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3758 (struct tui_win_info) <make_window>: Declare.
3759 <can_box>: Now virtual.
3760 <title>: New member.
3761 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3762 * tui/tui-command.c (tui_cmd_window::resize): Update.
3764 2019-08-20 Tom Tromey <tom@tromey.com>
3766 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3767 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3768 (tui_data_window::check_register_values): Update.
3770 2019-08-20 Tom Tromey <tom@tromey.com>
3772 * tui/tui-regs.h (struct tui_data_window): Use
3773 DISABLE_COPY_AND_ASSIGN.
3774 <regs_content>: Change type, removing unique_ptr.
3775 <tui_data_window>: Add move constructor.
3776 * tui/tui-regs.c (tui_data_window::show_registers)
3777 (tui_data_window::show_register_group)
3778 (tui_data_window::display_registers_from)
3779 (tui_data_window::display_registers_from)
3780 (tui_data_window::first_data_item_displayed)
3781 (tui_data_window::delete_data_content_windows)
3782 (tui_data_window::rerender, tui_data_window::refresh_window)
3783 (tui_data_window::check_register_values): Update.
3785 2019-08-20 Tom Tromey <tom@tromey.com>
3787 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3788 show_register_group>: Declare.
3789 (tui_show_register_group): Don't declare.
3790 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3792 (tui_data_window::show_register_group): Rename from
3793 tui_show_register_group.
3794 (tui_data_window::check_register_values, tui_reg_command):
3796 * tui/tui-layout.c (tui_set_layout): Update.
3798 2019-08-20 Tom Tromey <tom@tromey.com>
3800 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3802 (tui_check_register_values): Don't declare.
3803 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3804 from tui_check_register_values.
3805 * tui/tui-hooks.c (tui_register_changed): Update.
3807 2019-08-20 Tom Tromey <tom@tromey.com>
3809 * tui/tui-regs.c (tui_reg_layout): Move later.
3810 (tui_show_registers): Don't enable TUI mode or change layout.
3812 2019-08-20 Tom Tromey <tom@tromey.com>
3814 * tui/tui-regs.h (struct tui_data_item_window)
3815 <~tui_data_item_window>: Remove.
3816 <content>: Now a unique_xmalloc_ptr.
3817 * tui/tui-regs.c (tui_register_format): Return a
3819 (tui_get_register): Update.
3820 (~tui_data_item_window): Remove.
3821 (tui_data_window::display_registers_from, tui_display_register):
3823 * tui/tui-io.h (tui_expand_tabs): Update.
3824 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3825 Remove "col" parameter.
3827 2019-08-20 Tom Tromey <tom@tromey.com>
3829 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3831 * tui/tui-regs.c (~tui_data_item_window): Update.
3833 2019-08-20 Tom Tromey <tom@tromey.com>
3835 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3838 2019-08-20 Tom Tromey <tom@tromey.com>
3840 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
3842 2019-08-20 Tom Tromey <tom@tromey.com>
3844 * tui/tui-source.h (struct tui_source_window): Update.
3845 * tui/tui-regs.c (tui_show_registers): Update.
3846 * tui/tui-disasm.h (struct tui_disasm_window): Update.
3847 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
3848 (NO_REGS_STRING): Remove defines.
3850 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
3852 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
3853 unnecessary thread walk if remote doesn't support the packet.
3855 2019-08-19 Tom Tromey <tromey@adacore.com>
3857 * python/py-value.c (value_has_field): Fix indentation.
3859 2019-08-19 Tom Tromey <tromey@adacore.com>
3861 * printcmd.c (do_one_display, info_display_command): Update.
3862 * block.h (contained_in): Return bool. Add allow_nested
3864 * block.c (contained_in): Return bool. Add allow_nested
3867 2019-08-19 Tom Tromey <tom@tromey.com>
3869 * configure: Rebuild.
3870 * configure.ac: Disallow the combination of -static-libstdc++ and
3872 * source-cache.c (get_language_name): Handle rust.
3873 (source_cache::get_source_lines): Ignore highlighting exceptions.
3875 2019-08-16 Tom Tromey <tom@tromey.com>
3877 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
3878 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
3879 (struct tui_source_window_base) <make_visible, refresh_window,
3880 resize>: Remove methods.
3881 <execution_info>: Remove field.
3882 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
3883 (tui_show_source_line, tui_source_window_base)
3884 (~tui_source_window_base): Update.
3885 (tui_source_window_base::resize)
3886 (tui_source_window_base::make_visible)
3887 (tui_source_window_base::refresh_window): Remove.
3888 (tui_source_window_base::update_exec_info): Update.
3889 * tui/tui-source.c (tui_source_window::set_contents): Update.
3890 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3892 2019-08-16 Tom Tromey <tom@tromey.com>
3894 * tui/tui-hooks.c (tui_remove_hooks): Don't set
3895 deprecated_query_hook.
3897 2019-08-16 Tom Tromey <tom@tromey.com>
3899 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
3900 (tui_update_source_windows_with_line): Update.
3901 * tui/tui-source.h (struct tui_source_window)
3902 <show_symtab_source>: Declare.
3903 (tui_show_symtab_source): Don't declare.
3904 * tui/tui-source.c (tui_show_symtab_source): Rename from
3905 tui_show_symtab_source.
3907 2019-08-16 Tom Tromey <tom@tromey.com>
3909 * tui/tui-winsource.h (struct tui_source_window_base)
3910 <set_contents>: Declare.
3911 * tui/tui-winsource.c
3912 (tui_source_window_base::update_source_window_as_is): Update.
3913 * tui/tui-source.h (struct tui_source_window) <set_contents>:
3915 (tui_set_source_content): Don't declare.
3916 * tui/tui-source.c (tui_source_window::set_contents): Rename from
3917 tui_set_source_content.
3918 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
3920 (tui_set_disassem_content): Don't declare.
3921 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
3922 tui_set_disassem_content.
3924 2019-08-16 Tom Tromey <tom@tromey.com>
3926 * tui/tui-winsource.h (struct tui_source_window_base)
3927 <update_breakpoint_info>: Declare.
3928 (tui_update_breakpoint_info): Don't declare.
3929 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
3930 (tui_update_all_breakpoint_info): Update.
3931 (tui_source_window_base::update_breakpoint_info): Rename from
3932 tui_update_breakpoint_info.
3933 (tui_source_window_base::update_exec_info): Update.
3935 2019-08-16 Tom Tromey <tom@tromey.com>
3937 * tui/tui-winsource.h (struct tui_source_window_base)
3938 <update_source_window>: Declare.
3939 (tui_update_source_window): Don't declare.
3940 * tui/tui-winsource.c
3941 (tui_source_window_base::update_source_window): Rename from
3942 tui_update_source_window.
3943 (tui_source_window_base::rerender): Update.
3944 * tui/tui-source.c (tui_source_window::maybe_update): Update.
3945 * tui/tui-disasm.c (tui_show_disassem)
3946 (tui_show_disassem_and_update_source)
3947 (tui_disasm_window::maybe_update): Update.
3949 2019-08-16 Tom Tromey <tom@tromey.com>
3951 * tui/tui-winsource.h (struct tui_source_window_base)
3952 <update_source_window_as_is>: Declare.
3953 (tui_update_source_window_as_is): Don't declare.
3954 * tui/tui-winsource.c (tui_update_source_window): Update
3955 (tui_source_window_base::update_source_window_as_is): Rename from
3956 tui_update_source_window_as_is.
3957 (tui_source_window_base::refill): Update.
3958 * tui/tui-source.c (tui_show_symtab_source): Update.
3959 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
3962 2019-08-16 Tom Tromey <tom@tromey.com>
3964 * tui/tui-winsource.h (tui_update_source_window)
3965 (tui_update_source_window_as_is): Remove "noerror" parameter.
3966 * tui/tui-winsource.c (tui_update_source_window)
3967 (tui_update_source_window_as_is): Remove "noerror" parameter.
3968 (tui_update_source_windows_with_addr)
3969 (tui_update_source_windows_with_line)
3970 (tui_source_window_base::rerender)
3971 (tui_source_window_base::refill): Update.
3972 * tui/tui-source.h (tui_set_source_content)
3973 (tui_show_symtab_source): Remove "noerror" parameter.
3974 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
3976 (tui_show_symtab_source): Likewise.
3977 (tui_source_window::maybe_update): Update.
3978 * tui/tui-disasm.c (tui_show_disassem)
3979 (tui_show_disassem_and_update_source)
3980 (tui_disasm_window::do_scroll_vertical)
3981 (tui_disasm_window::maybe_update): Update.
3983 2019-08-16 Tom Tromey <tom@tromey.com>
3985 * tui/tui.c (tui_is_window_visible): Update.
3986 * tui/tui-wingeneral.c (tui_make_window)
3987 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
3988 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
3989 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
3990 (tui_set_win_height_command, parse_scrolling_args): Update.
3991 * tui/tui-source.c (tui_source_window::style_changed): Update.
3992 * tui/tui-regs.c (tui_show_registers)
3993 (tui_data_window::first_data_item_displayed)
3994 (tui_data_window::delete_data_content_windows)
3995 (tui_check_register_values, tui_reg_command): Update.
3996 * tui/tui-disasm.c (tui_show_disassem): Update.
3997 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
3999 <is_visible>: Remove field.
4000 * tui/tui-data.c (tui_next_win, tui_prev_win)
4001 (tui_delete_invisible_windows): Update.
4003 2019-08-16 Tom Tromey <tom@tromey.com>
4005 * tui/tui-winsource.h (struct tui_source_window_base)
4006 <m_has_locator>: Remove.
4007 * tui/tui-layout.c (show_source_disasm_command, show_data)
4008 (show_source_or_disasm_and_command): Update.
4010 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4012 * NEWS (Other MI changes): New subsection.
4013 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4014 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4015 * arch-utils.c (default_get_pc_address_flags): New function.
4016 * arch-utils.h (default_get_pc_address_flags): New declaration.
4017 * gdbarch.sh: Add get_pc_address_flags.
4018 * gdbarch.c: Regenerate.
4019 * gdbarch.h: Likewise.
4020 * stack.c (print_pc): New function.
4021 (print_frame_info) (print_frame): Call print_pc.
4023 2019-08-16 Tom de Vries <tdevries@suse.de>
4025 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4026 print_objfile_section_info.
4028 2019-08-15 Tom Tromey <tom@tromey.com>
4030 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4031 calling update_cmdwin_start_line.
4032 * tui/tui-winsource.h (struct tui_source_window_base)
4033 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4034 <rerender>: Declare.
4035 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4037 (tui_source_window_base::set_new_height): Remove.
4038 (tui_source_window_base::rerender): Rename from
4039 do_make_visible_with_new_height.
4040 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4042 (tui_win_info::make_invisible_and_set_new_height)
4043 (tui_win_info::make_visible_with_new_height): Remove.
4044 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4046 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4047 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4048 do_make_visible_with_new_height>: Don't declare.
4049 <rerender>: Declare.
4050 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4052 (tui_data_window::do_make_visible_with_new_height): Remove.
4053 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4054 call tui_show_locator_content.
4055 (tui_gen_win_info::resize): Call rerender.
4056 (show_source_or_disasm_and_command): Don't call
4057 tui_show_locator_content.
4058 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4060 (struct tui_win_info) <rerender>: Declare.
4061 <set_new_height, make_invisible_and_set_new_height,
4062 make_visible_with_new_height>: Don't declare.
4063 * tui/tui-data.c (tui_win_list::rerender): New method.
4064 * tui/tui-command.h (struct tui_cmd_window)
4065 <do_make_visible_with_new_height>: Don't declare.
4067 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4069 2019-08-15 Tom Tromey <tromey@adacore.com>
4071 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4072 * ada-lang.c (ada_enum_name): Likewise.
4074 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4076 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4078 (GdbOutputErrorFile): Likewise.
4079 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4081 (execute_unwinders): Rename to have a leading underscore.
4082 (auto_load_packages): Likewise.
4083 (global scope): Adjust call to auto_load_packages accordingly.
4084 (GdbSetPythonDirectory): Likewise.
4085 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4086 instead of execute_unwinders.
4088 2019-08-15 Tom Tromey <tom@tromey.com>
4090 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4091 (show_data): Don't change window visibility.
4092 (tui_gen_win_info::resize): Remove special case for command
4093 window. Use wresize, when available.
4094 (show_source_or_disasm_and_command): Don't change window
4096 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4097 <make_visible>: New method.
4098 * tui/tui-command.c (tui_cmd_window::resize): New method.
4100 2019-08-15 Tom Tromey <tom@tromey.com>
4102 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4103 (struct tui_source_windows): New.
4104 * tui/tui-winsource.c (tui_display_main): Update.
4105 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4106 (new_height_ok, parse_scrolling_args): Update.
4107 * tui/tui-layout.c (show_layout, show_data): Update.
4108 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4109 (tui_add_to_source_windows): Don't declare.
4110 * tui/tui-data.c (source_windows, tui_source_windows)
4111 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4113 2019-08-15 Tom Tromey <tom@tromey.com>
4115 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4117 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4118 * tui/tui-layout.c (show_source_disasm_command, show_data):
4120 (tui_gen_win_info::resize): Rename.
4121 (show_source_or_disasm_and_command): Update.
4122 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4125 2019-08-15 Tom Tromey <tom@tromey.com>
4127 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4128 * tui/tui-interp.c (tui_interp::init): Don't call
4129 tui_initialize_static_data.
4130 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4132 2019-08-15 Tom Tromey <tom@tromey.com>
4134 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4135 examine tui_win_list.
4137 2019-08-15 Tom Tromey <tom@tromey.com>
4139 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4140 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4141 tui_clear_source_content.
4142 (tui_clear_source_content): Remove.
4143 (tui_source_window_base::do_erase_source_content): Hoist call to
4145 * tui/tui-stack.c (tui_show_frame_info): Don't call
4146 tui_clear_source_content.
4148 2019-08-15 Tom Tromey <tom@tromey.com>
4150 * tui/tui-winsource.h (struct tui_source_window_base)
4151 <do_erase_source_content>: New method.
4152 <erase_source_content>: New method.
4153 (tui_erase_source_content): Don't declare.
4154 * tui/tui-winsource.c (tui_clear_source_content): Update.
4155 (tui_source_window_base::do_erase_source_content): Rename from
4156 tui_erase_source_content.
4157 (tui_source_window_base::show_source_content): Update.
4158 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4159 * tui/tui-source.h (struct tui_source_window)
4160 <erase_source_content>: New method.
4161 * tui/tui-disasm.h (struct tui_disasm_window)
4162 <erase_source_content>: New method.
4164 2019-08-15 Tom Tromey <tom@tromey.com>
4166 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4167 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4169 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4170 * tui/tui-source.c (tui_set_source_content): Update.
4171 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4173 2019-08-15 Tom Tromey <tom@tromey.com>
4175 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4176 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4178 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4180 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4182 (tui_source_window::maybe_update): Update.
4184 2019-08-15 Tom Tromey <tom@tromey.com>
4186 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4187 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4189 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4191 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4193 (tui_disasm_window::maybe_update): Update.
4195 2019-08-15 Tom Tromey <tom@tromey.com>
4197 * tui/tui-winsource.h (struct tui_source_window_base)
4198 <maybe_update>: Declare.
4199 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4201 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4203 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4204 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4206 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4208 2019-08-15 Tom Tromey <tom@tromey.com>
4210 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4212 2019-08-15 Tom Tromey <tom@tromey.com>
4214 * tui/tui-wingeneral.c: Include tui-stack.h.
4215 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4216 (struct tui_locator_window): Move from tui-data.h.
4217 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4218 (tui_initialize_static_data): Move from tui-data.c.
4219 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4220 (struct tui_locator_window): Move to tui-stack.c.
4221 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4222 (tui_initialize_static_data): Move to tui-stack.c.
4224 2019-08-15 Tom Tromey <tom@tromey.com>
4226 * tui/tui-layout.c (show_source_disasm_command)
4227 (show_source_or_disasm_and_command): Use make_visible method, not
4229 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4232 2019-08-15 Tom Tromey <tom@tromey.com>
4234 * tui/tui-wingeneral.h (tui_make_window): Update.
4235 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4237 (tui_gen_win_info::make_visible): Update.
4238 * tui/tui-regs.c (tui_data_window::display_registers_from):
4240 * tui/tui-layout.c (show_source_disasm_command)
4241 (show_source_or_disasm_and_command): Update.
4242 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4243 (enum tui_box): Remove.
4244 (struct tui_win_info) <can_box>: New method.
4245 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4248 2019-08-15 Tom de Vries <tdevries@suse.de>
4250 * linux-nat-trad.c: Include gdbarch.h.
4252 2019-08-14 Alan Hayward <alan.hayward@arm.com>
4254 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4257 2019-08-14 Tom Tromey <tromey@adacore.com>
4259 * darwin-nat.c: Include gdbarch.h.
4260 * darwin-nat-info.c: Include gdbarch.h.
4262 2019-08-13 Tom Tromey <tom@tromey.com>
4264 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4266 * tui/tui-data.c (tui_initialize_static_data): Update.
4268 2019-08-13 Tom Tromey <tom@tromey.com>
4270 * tui/tui-winsource.h (struct tui_exec_info_window)
4271 <~tui_exec_info_window, maybe_allocate_content, get_content,
4273 (struct tui_source_window_base) <set_exec_info_content,
4274 show_exec_info_content>: Don't declare.
4275 * tui/tui-winsource.c
4276 (tui_exec_info_window::maybe_allocate_content): Remove.
4277 (tui_source_window_base::update_exec_info): Rename from
4278 set_exec_info_content.
4279 (tui_source_window_base::show_exec_info_content)
4280 (tui_source_window_base::update_exec_info): Remove.
4282 2019-08-13 Tom Tromey <tom@tromey.com>
4284 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4286 * tui/tui-winsource.c (tui_update_source_window_as_is)
4287 (tui_update_source_windows_with_addr, tui_erase_source_content):
4289 (tui_clear_exec_info_content): Remove.
4291 2019-08-13 Tom Tromey <tom@tromey.com>
4293 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4295 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4296 call tui_erase_exec_info_content.
4297 (tui_clear_exec_info_content): Rename from
4298 tui_erase_exec_info_content.
4299 (tui_clear_exec_info_content): Delete.
4301 2019-08-13 Tom Tromey <tom@tromey.com>
4303 * tui/tui-winsource.h (struct tui_source_window_base)
4304 <show_exec_info_content>: Declare.
4305 (tui_show_exec_info_content): Don't declare.
4306 * tui/tui-winsource.c
4307 (tui_source_window_base::show_exec_info_content): Rename from
4308 tui_show_exec_info_content.
4309 (tui_source_window_base::update_exec_info): Update.
4311 2019-08-13 Tom Tromey <tom@tromey.com>
4313 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4314 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4315 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4316 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4317 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4318 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4321 2019-08-13 Tom Tromey <tom@tromey.com>
4323 * tui/tui-winsource.h (struct tui_source_window_base)
4324 <update_exec_info>: Declare.
4325 (tui_update_exec_info): Don't declare.
4326 * tui/tui-winsource.c (tui_update_source_window_as_is)
4327 (tui_source_window_base::refresh_all)
4328 (tui_update_all_breakpoint_info): Update.
4329 (tui_source_window_base::update_exec_info): Rename from
4330 tui_update_exec_info.
4331 * tui/tui-stack.c (tui_show_frame_info): Update.
4333 2019-08-13 Tom Tromey <tom@tromey.com>
4335 * tui/tui-winsource.h (struct tui_source_window_base)
4336 <set_exec_info_content>: Declare.
4337 (tui_set_exec_info_content): Don't declare.
4338 * tui/tui-winsource.c
4339 (tui_source_window_base::set_exec_info_content): Rename from
4340 tui_set_exec_info_content.
4341 (tui_update_exec_info): Update.
4343 2019-08-13 Tom Tromey <tom@tromey.com>
4345 * tui/tui-winsource.h (struct tui_source_window_base)
4346 <show_source_content>: Declare.
4347 (tui_show_source_content): Don't declare.
4348 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4349 (tui_source_window_base::show_source_content): Rename from
4350 tui_show_source_content.
4351 (tui_source_window_base::refresh_all): Update.
4352 * tui/tui-layout.c (show_source_disasm_command)
4353 (show_source_or_disasm_and_command): Update.
4355 2019-08-13 Tom Tromey <tom@tromey.com>
4357 * tui/tui-winsource.c (tui_erase_source_content)
4358 (tui_show_source_content, tui_source_window_base::refresh_all):
4360 * tui/tui-wingeneral.h
4361 (tui_check_and_display_highlight_if_needed): Don't declare.
4362 * tui/tui-wingeneral.c
4363 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4364 check_and_display_highlight_if_needed.
4365 * tui/tui-win.c (tui_rehighlight_all)
4366 (tui_win_info::make_visible_with_new_height): Update.
4367 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4368 (tui_data_window::erase_data_content)
4369 (tui_data_window::display_all_data): Update.
4370 * tui/tui-data.h (struct tui_win_info)
4371 <check_and_display_highlight_if_needed>: Declare.
4373 2019-08-13 Tom Tromey <tom@tromey.com>
4375 * tui/tui-win.c (tui_resize_all): Call
4376 tui_delete_invisible_windows.
4377 * tui/tui-layout.c (show_layout): Call
4378 tui_delete_invisible_windows.
4379 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4380 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4382 2019-08-13 Tom Tromey <tom@tromey.com>
4384 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4385 tui_add_win_to_layout.
4387 2019-08-13 Tom Tromey <tom@tromey.com>
4389 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4390 * tui/tui-layout.c (tui_default_win_height): Now static.
4392 2019-08-13 Tom Tromey <tom@tromey.com>
4394 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4396 (show_source_disasm_command, show_source_or_disasm_and_command):
4397 Don't check current layout.
4399 2019-08-13 Tom Tromey <tom@tromey.com>
4401 * tui/tui-wingeneral.c (make_all_visible): Remove.
4402 (tui_make_all_invisible): Simplify.
4403 * tui/tui-layout.c (tui_make_all_invisible): Move from
4404 tui-wingeneral.c; simplify.
4405 (show_layout): Hoist call to tui_make_all_invisible.
4406 (show_data): Don't call tui_make_all_invisible.
4408 2019-08-13 Tom Tromey <tom@tromey.com>
4410 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4411 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4413 2019-08-13 Tom Tromey <tom@tromey.com>
4415 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4417 (show_source_disasm_command, show_data)
4418 (show_source_or_disasm_and_command): Don't use
4419 tui_set_current_layout_to.
4420 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4421 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4423 (tui_set_current_layout_to): Remove.
4425 2019-08-13 Tom Tromey <tom@tromey.com>
4427 * tui/tui-layout.c (tui_set_layout): Update.
4428 * tui/tui-data.h (struct tui_layout_def): Remove.
4429 (tui_layout_def): Don't declare.
4430 * tui/tui-data.c (layout_def): Remove.
4431 (tui_layout_def): Remove.
4433 2019-08-13 Tom Tromey <tom@tromey.com>
4435 * tui/tui-winsource.h (struct tui_source_window_base)
4436 <clear_detail>: No longer "override".
4437 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4438 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4439 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4440 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4442 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4444 2019-08-13 Tom Tromey <tromey@adacore.com>
4446 * tracepoint.c: Don't include readline.h or history.h.
4448 2019-08-12 Tom Tromey <tom@tromey.com>
4450 * configure: Rebuild.
4451 * configure.ac: Check for readline 7.
4452 * NEWS: Mention readline 7 requirement.
4455 2019-08-12 Tom Tromey <tom@tromey.com>
4457 * mingw-hdep.c (gdb_select): Remove readline hack.
4459 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4461 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4462 when the function fails.
4464 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4466 * s390-tdep.c (s390_type_align): New function.
4467 (s390_gdbarch_init): Set it as type_align gdbarch method.
4469 2019-08-09 Tom de Vries <tdevries@suse.de>
4472 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4473 pc_low with relocation offset.
4475 2019-08-07 Tom Tromey <tromey@adacore.com>
4477 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4478 (print_frame_args): Update.
4479 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4481 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4482 * frame.h (struct frame_arg): Add initializers.
4483 <error>: Now a unique_xmalloc_ptr.
4485 2019-08-07 Alan Hayward <alan.hayward@arm.com>
4487 * NEWS: Expand the Pointer Authentication entry.
4488 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4489 (aarch64_frame_unmask_lr): ... to this.
4490 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4491 Call aarch64_frame_unmask_lr.
4492 * frame.c (struct frame_info): Add "masked" variable.
4493 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4494 (fprint_frame): Check for masked pc.
4495 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4497 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4498 * stack.c (print_frame): Check for masked pc.
4500 2019-08-06 Tom Tromey <tom@tromey.com>
4502 * stabsread.c (patch_block_stabs, read_one_struct_field)
4503 (read_enum_type): Use obstack_strndup.
4504 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4505 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4506 * dwarf2read.c (guess_full_die_structure_name)
4507 (anonymous_struct_prefix): Use obstack_strndup.
4508 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4509 * c-exp.y (yylex): Use obstack_strndup.
4510 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4511 (write_var_or_type): Use obstack_strndup.
4513 2019-08-06 Tom Tromey <tom@tromey.com>
4515 * symfile.c (reread_symbols): Use obstack_strdup.
4516 * stabsread.c (read_type): Use obstack_strdup.
4517 * gdb_obstack.h (obstack_strdup): New overload.
4518 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4519 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4520 (dwarf2_canonicalize_name): Use obstack_strdup.
4521 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4522 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4525 2019-08-06 Tom Tromey <tom@tromey.com>
4527 * gdb_obstack.h (obstack_strdup): Define.
4528 * gdb_obstack.c (obstack_strdup): Don't define.
4530 2019-08-06 Tom Tromey <tom@tromey.com>
4532 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4534 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4536 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4537 * stabsread.c (common_block_start): Use obstack_strdup.
4538 * objfiles.c (set_objfile_main_name, objfile): Use
4540 * namespace.c (add_using_directive): Use obstack_strdup.
4541 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4542 * jit.c (finalize_symtab): Use obstack_strdup.
4543 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4544 (guess_partial_die_structure_name, partial_die_info::fixup)
4545 (dwarf2_name): Use obstack_strdup.
4546 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4548 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4549 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4551 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4553 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4555 * unittests/help-doc-selftests.c: New file.
4556 * Makefile.in: Add the new file.
4558 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4560 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4561 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4562 the full first line, except when FOR_VALUE_PREFIX. In this case,
4563 the trailing '.' is not output, and the first character is uppercased.
4564 (print_help_for_command): Update call to print_doc_line.
4565 (print_doc_of_command): Likewise.
4566 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4567 * cli/cli-option.c (append_indented_doc): Do not append newline.
4568 (build_help_option): Append newline after first appended_indented_doc
4569 only if a second call is done.
4570 (build_help): Append 2 new lines before each option, except the first
4572 * compile/compile.c (_initialize_compile): Add new lines after
4573 %OPTIONS%, when not at the end of the help.
4574 Change help doc or code
4575 producing the help doc to respect the invariants.
4576 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4577 Also removed the new line after 'Options:', as all other commands
4578 do not put an empty line between 'Options:' and the first option.
4579 * printcmd.c (_initialize_printcmd): Likewise.
4580 * stack.c (_initialize_stack): Likewise.
4581 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4582 incorrectly telling COMMAND is optional.
4583 * ada-lang.c (_initialize_ada_language): Change help doc or code
4584 producing the help doc to respect the invariants.
4585 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4586 * breakpoint.c (_initialize_breakpoint): Likewise.
4587 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4588 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4589 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4590 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4591 _initialize_cli_style): Likewise.
4592 * corelow.c (core_target_info): Likewise.
4593 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4594 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4595 * filesystem.c (_initialize_filesystem): Likewise.
4596 * frame.c (_initialize_frame): Likewise.
4597 * gnu-nat.c (add_task_commands): Likewise.
4598 * infcall.c (_initialize_infcall): Likewise.
4599 * infcmd.c (_initialize_infcmd): Likewise.
4600 * interps.c (_initialize_interpreter): Likewise.
4601 * language.c (_initialize_language): Likewise.
4602 * linux-fork.c (_initialize_linux_fork): Likewise.
4603 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4604 * maint.c (_initialize_maint_cmds): Likewise.
4605 * memattr.c (_initialize_mem): Likewise.
4606 * printcmd.c (_initialize_printcmd): Likewise.
4607 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4609 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4610 * record-btrace.c (_initialize_record_btrace): Likewise.
4611 * record-full.c (_initialize_record_full): Likewise.
4612 * record.c (_initialize_record): Likewise.
4613 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4614 * regcache.c (_initialize_regcache): Likewise.
4615 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4616 _initialize_remote): Likewise.
4617 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4618 * serial.c (_initialize_serial): Likewise.
4619 * skip.c (_initialize_step_skip): Likewise.
4620 * source.c (_initialize_source): Likewise.
4621 * stack.c (_initialize_stack): Likewise.
4622 * symfile.c (_initialize_symfile): Likewise.
4623 * symtab.c (_initialize_symtab): Likewise.
4624 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4625 * top.c (init_main): Likewise.
4626 * tracefile-tfile.c (tfile_target_info): Likewise.
4627 * tracepoint.c (_initialize_tracepoint): Likewise.
4628 * tui/tui-win.c (_initialize_tui_win): Likewise.
4629 * utils.c (add_internal_problem_command): Likewise.
4630 * valprint.c (value_print_option_defs): Likewise.
4632 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4635 * configure.ac: Drop enable-libmcheck support.
4636 * configure, config.in: Rebuild.
4637 * libmcheck.m4: Remove.
4638 * acinclude.m4: Don't include it.
4639 * Makefile.in: Don't distribute it.
4640 * top.c (print_gdb_configuration): Don't mention it.
4642 2019-08-06 Tom Tromey <tom@tromey.com>
4644 * utils.c (set_output_style): Sometimes pass stream to
4646 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4647 * record-btrace.c (btrace_insn_history): Update.
4648 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4650 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4651 Update initializers.
4652 <m_uiout>: New field.
4654 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4655 Remove "uiout" parameter.
4656 (dump_insns): Update.
4657 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4658 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4660 2019-08-06 Christian Biesinger <cbiesinger@google.com>
4662 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4663 (error_in_psymtab_expansion): Likewise.
4664 (lookup_symbol_via_quick_fns): Likewise.
4665 (basic_lookup_transparent_type_quick): Likewise.
4666 (basic_lookup_transparent_type_1): Likewise.
4668 2019-08-06 Tom Tromey <tromey@adacore.com>
4670 * source.c (last_source_error): Now bool.
4671 (print_source_lines_base): Make "noprint" bool. Only open
4672 source file when last_source_visited changes.
4674 2019-08-06 Tom Tromey <tromey@adacore.com>
4676 * annotate.c (annotate_source_line): Use g_source_cache.
4677 * source-cache.c (source_cache::get_plain_source_lines): Change
4678 parameters. Populate m_offset_cache.
4679 (source_cache::ensure): New method.
4680 (source_cache::get_line_charpos): New method.
4681 (extract_lines): Move lower. Change parameters.
4682 (source_cache::get_source_lines): Move lower.
4683 * source-cache.h (class source_cache): Update comment.
4684 <get_line_charpos>: New method.
4685 <get_source_lines>: Update comment.
4686 <clear>: Clear m_offset_cache.
4687 <get_plain_source_lines>: Change parameters.
4688 <ensure>: New method
4689 <m_offset_cache>: New member.
4690 * source.c (forget_cached_source_info_for_objfile): Update.
4691 (info_source_command): Use g_source_cache.
4692 (find_source_lines, open_source_file_with_line_charpos): Remove.
4693 (print_source_lines_base, search_command_helper): Use g_source_cache.
4694 * source.h (open_source_file_with_line_charpos): Don't declare.
4695 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4696 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4699 2019-08-06 Tom Tromey <tromey@adacore.com>
4701 * source-cache.c (source_cache::get_plain_source_lines):
4702 Remove "first_line" and "last_line" parameters.
4703 (source_cache::get_source_lines): Cache plain text.
4704 * source-cache.h (class source_cache)
4705 <get_plain_source_lines>: Update.
4707 2019-08-06 Tom Tromey <tromey@adacore.com>
4709 * source-cache.c (extract_lines): No longer a method.
4710 Changed type of parameter. Include final newline.
4711 (selftests::extract_lines_test): New function.
4712 (_initialize_source_cache): Likewise.
4713 * source-cache.h (class source_cache)
4714 <extract_lines>: Don't declare.
4716 2019-08-06 Tom Tromey <tromey@adacore.com>
4718 * breakpoint.c (init_breakpoint_sal): Update.
4719 (breakpoint): Update.
4720 * breakpoint.h (struct breakpoint) <filter>: Now a
4723 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4725 * NEWS: Mention dictionary access on blocks.
4726 * python/py-block.c (blpy_getitem): New function.
4727 (block_object_as_mapping): New struct.
4728 (block_object_type): Use new struct for tp_as_mapping field.
4730 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4732 * objfiles.h (objfile): Add a comment describing partial symbols.
4734 2019-08-05 Tom Tromey <tromey@adacore.com>
4736 * compile/compile.c (_initialize_compile): Use _(), not N_().
4737 * thread.c (_initialize_thread): Use _(), not N_().
4738 * stack.c (_initialize_stack): Use _(), not N_().
4739 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4741 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4743 * dwarf2read.c (struct dw2_symtab_iterator):
4744 <want_specific_block>: Remove.
4745 <block_index>: Change type to gdb::optional.
4746 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4747 change type of BLOCK_INDEX parameter to gdb::optional.
4748 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4749 (dw2_lookup_symbol): Don't pass argument for
4750 WANT_SPECIFIC_BLOCK.
4751 (dw2_expand_symtabs_for_function): Don't pass argument for
4752 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4753 (class dw2_debug_names_iterator)
4754 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4755 parameter, change BLOCK_INDEX type to gdb::optional.
4756 <m_want_specific_block>: Remove.
4757 <m_block_index>: Change type to gdb::optional.
4758 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4759 gdb::optional. Re-write in function of gdb::optional.
4760 (dw2_debug_names_lookup_symbol): Don't pass argument for
4761 WANT_SPECIFIC_BLOCK.
4762 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4763 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4766 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4768 * NEWS: Mention changes to "info sources" command.
4770 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4772 * symtab.c (filename_partial_match_opts): New struct type.
4773 (struct output_source_filename_data): New members
4774 regexp, c_regexp, partial_match.
4775 (output_source_filename): Use new members to decide to print file.
4776 (info_sources_option_defs): New variable.
4777 (make_info_sources_options_def_group, print_info_sources_header,
4778 info_sources_command_completer):
4780 (info_sources_command): Read new optional arguments.
4781 (_initialize_symtab): Update info sources help.
4783 2019-08-02 Alexandre Oliva <oliva@adacore.com>
4785 * ada-lang.c (exception_support_info_v0): Renamed from...
4786 (default_exception_support_info): ... this. Create new
4788 (ada_has_this_exception_support): Look up catch_handlers_sym.
4789 (ada_exception_support_info_sniffer): Try v0 after default.
4791 2019-08-01 Tom Tromey <tromey@adacore.com>
4793 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4796 2019-08-01 Christian Biesinger <cbiesinger@google.com>
4798 * s12z-tdep.c: Fix include path for s12z-opc.h.
4800 2019-08-01 Alan Hayward <alan.hayward@arm.com>
4802 * NEWS: Require GNU make 3.82.
4804 2019-07-16 Tom Tromey <tom@tromey.com>
4806 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4809 2019-07-30 Tom Tromey <tromey@adacore.com>
4811 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4813 2019-07-30 Kevin Buettner <kevinb@redhat.com>
4815 * printcmd.c (print_address_symbolic): Print negative offsets.
4816 (build_address_symbolic): Force signed arithmetic when computing
4819 2019-07-30 Christian Biesinger <cbiesinger@google.com>
4821 PR/24474: Add a function to lookup static variables.
4822 * NEWS: Mention this new function.
4823 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4824 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4825 * python/python.c (python_GdbMethods): Add new function.
4827 2019-07-29 Christian Biesinger <cbiesinger@google.com>
4829 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4830 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4831 (objfpy_lookup_static_symbol): New function.
4832 (objfile_object_methods): Add new functions.
4834 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4836 * NEWS: Mention 'set|show print frame-info'. Mention new
4837 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4838 backtrace argument. Mention that python frame filtering code
4839 is now consistent with what 'backtrace' command prints.
4841 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4843 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
4845 (print_frame_info_auto, print_frame_info_source_line,
4846 print_frame_info_location, print_frame_info_source_and_location,
4847 print_frame_info_location_and_address, print_frame_info_short_location):
4849 (struct frame_print_options): New member print_frame_info.
4850 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
4851 * stack.h (get_user_print_what_frame_info): New declaration.
4852 (frame_show_address): New declaration.
4853 * stack.c (print_frame_arguments_choices): New value 'presence'.
4854 (print_frame_info_auto, print_frame_info_source_line,
4855 print_frame_info_location, print_frame_info_source_and_location,
4856 print_frame_info_location_and_address, print_frame_info_short_location,
4857 print_frame_info_choices, print_frame_info_print_what): New definitions.
4858 (print_frame_args): Only print dots for args if print frame-arguments
4860 (frame_print_option_defs): New element for "frame-info".
4861 (get_user_print_what_frame_info): New function.
4862 (frame_show_address): Make non static. Move comment to stack.h.
4863 (print_frame_info_to_print_what): New function.
4864 (print_frame_info): Update comment. Use fp_opts.print_frame_info
4865 to decide what to print.
4866 (backtrace_command_1): Handle the new print_frame_arguments_presence
4868 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
4869 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
4870 (py_print_frame): In non-mi mode, use LOCATION as default for
4871 print_what, similarly to frame information printed directly by
4872 backtrace command. Handle frame-info user option in non MI mode.
4874 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4876 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
4877 Add case for debugging 32-bit target on 64-bit host. Revise
4880 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4882 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
4883 instead of find_function_entry_range_from_pc.
4885 2019-07-27 Kevin Buettner <kevinb@redhat.com>
4887 * stack.c (find_frame_funname): Remove code which preferred
4888 minsym over symtab sym in "certain pathological cases".
4890 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
4891 parameter. Change type of "do_demangle" to bool.
4892 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4893 Pass suitable "prefer_sym_over_minsym" flag to
4894 build_address_symbolic(). Don't output "+" for negative offsets.
4895 * printcmd.c (print_address_symbolic): Update invocation of
4896 build_address_symbolic to include a "prefer_sym_over_minsym"
4898 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
4899 Restrict cases in which use of minimal symbol is preferred to that
4900 of a found symbol. Update comments.
4902 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
4903 for entry pc when entry pc is out of range for that FDE.
4905 2019-07-26 Brian Callahan <bcallah@openbsd.org>
4908 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
4911 2019-07-25 Christian Biesinger <cbiesinger@google.com>
4913 * python/py-objfile.c (add_separate_debug_file): Fix comment about
4914 this function's Python signature.
4917 2019-07-24 Christian Biesinger <cbiesinger@google.com>
4919 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
4920 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4921 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
4922 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
4923 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
4926 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
4928 * h8300-tdep.c (h8300_register_name_common): New.
4929 h8300_register_name): Use h8300_register_name_common.
4930 (h8300s_register_name): Likewise.
4931 (h8300sx_register_name): Likewise.
4932 (h8300h_register_nam): New.
4933 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
4936 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4938 * arm-tdep.c (arm_skip_cmse_entry): New function.
4939 (arm_is_sgstubs_section): New function.
4940 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
4942 2019-07-22 Tom Tromey <tom@tromey.com>
4944 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
4947 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4949 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
4952 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4954 * symtab.c (search_symbols): Adjust msymbol matching type arrays
4955 so that GDB doesn't match any msymbols when searching in the
4957 (print_symbol_info): Print using typedef_print or type_print based
4958 on the type of the symbol. Add updated FIXME comment moved from...
4959 (_initialize_symtab): ... move and update FIXME comment to above.
4961 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4963 * NEWS: Mention adding -q option to "info types".
4964 * symtab.c (struct info_types_options): New struct.
4965 (info_types_options_defs): New variable.
4966 (make_info_types_options_def_group): New function.
4967 (info_types_command): Use gdb::option framework to parse options.
4968 (info_types_command_completer): New function.
4969 (_initialize_symtab): Extend the help text on "info types" and
4970 register command completer.
4972 2019-07-21 Christian Biesinger <cbiesinger@google.com>
4974 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
4975 (lookup_symbol_in_objfile): Change int to block_enum and add a
4976 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
4978 2019-07-20 Christian Biesinger <cbiesinger@google.com>
4980 * MAINTAINERS (Write After Approval): Add self.
4982 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
4984 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
4985 instruction to the dummy code region.
4987 2019-07-19 Tom Tromey <tromey@adacore.com>
4989 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
4990 (ARGSUSED, PARAMS, __func__): Remove rules.
4992 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4994 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
4995 * features/arm/arm-with-iwmmxt.c: Remove.
4996 * features/arm/arm-with-iwmmxt.xml: Remove.
4997 * features/arm/arm-with-m-fpa-layout.c: Remove.
4998 * features/arm/arm-with-m-fpa-layout.xml: Remove.
4999 * features/arm/arm-with-m-vfp-d16.c: Remove.
5000 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5001 * features/arm/arm-with-m.c: Remove.
5002 * features/arm/arm-with-m.xml: Remove.
5003 * features/arm/arm-with-neon.c: Remove.
5004 * features/arm/arm-with-neon.xml: Remove.
5005 * features/arm/arm-with-vfpv2.c: Remove.
5006 * features/arm/arm-with-vfpv2.xml: Remove.
5007 * features/arm/arm-with-vfpv3.c: Remove.
5008 * features/arm/arm-with-vfpv3.xml: Remove.
5010 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5012 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5014 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5016 * arch/aarch32.c (aarch32_create_target_description): Create
5017 target descriptions using features.
5018 * arch/arm.c (arm_create_target_description)
5019 (arm_create_mprofile_target_description): Likewise.
5020 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5022 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5024 * Makefile.in: Add new files.
5025 * aarch32-tdep.c: New file.
5026 * aarch32-tdep.h: New file.
5027 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5028 Call aarch32_read_description.
5029 * arch/aarch32.c: New file.
5030 * arch/aarch32.h: New file.
5031 * arch/arm.c (arm_create_target_description)
5032 (arm_create_mprofile_target_description): New function.
5033 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5034 (arm_create_target_description)
5035 (arm_create_mprofile_target_description): New declaration.
5036 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5037 read_description functions.
5038 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5040 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5041 * arm-tdep.c (tdesc_arm_list): New variable.
5042 (arm_register_g_packet_guesses): Call create description functions.
5043 (arm_read_description) (arm_read_mprofile_description): New
5045 * arm-tdep.h (arm_read_description)
5046 (arm_read_mprofile_description): Add declaration.
5047 * configure.tgt: Add new files.
5049 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5051 * top.c (new_ui_command): Open specified terminal just once.
5053 2019-07-18 Tom Tromey <tromey@adacore.com>
5055 * symtab.c (main_name): Constify return type.
5056 * symfile.c (set_initial_language): Update.
5057 * symtab.h (main_name): Constify return type.
5059 2019-07-17 Tom Tromey <tom@tromey.com>
5061 * tui/tui-winsource.c (tui_update_source_window)
5062 (tui_update_source_window_as_is)
5063 (tui_update_source_windows_with_line): Remove return.
5064 * tui/tui-disasm.c (tui_show_disassem)
5065 (tui_show_disassem_and_update_source): Remove return.
5066 * tui/tui.c (tui_reset): Remove return.
5067 * tui/tui-wingeneral.c
5068 (tui_check_and_display_highlight_if_needed): Remove return.
5070 2019-07-17 Tom Tromey <tom@tromey.com>
5072 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5074 2019-07-17 Tom Tromey <tom@tromey.com>
5076 * tui/tui-winsource.h (struct tui_exec_info_window)
5077 (struct tui_source_window_base): Move from tui-data.h.
5078 * tui/tui-winsource.c: Move many method definitions from
5079 elsewhere. Remove "structuring" comments.
5080 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5081 (tui_source_window_base::refresh_window): Move to
5083 * tui/tui-win.c (tui_source_window_base::refresh_all)
5084 (tui_source_window_base::update_tab_width)
5085 (tui_source_window_base::set_new_height)
5086 (tui_source_window_base::do_make_visible_with_new_height): Move to
5088 * tui/tui-source.h: Update.
5089 * tui/tui-source.c (tui_source_window_base::reset): Move to
5091 * tui/tui-disasm.h: Update.
5092 * tui/tui-data.h (struct tui_exec_info_window): Move to
5094 (struct tui_source_window_base): Likewise.
5095 * tui/tui-data.c (tui_source_window_base::clear_detail)
5096 (tui_source_window_base, ~tui_source_window_base): Move to
5099 2019-07-17 Tom Tromey <tom@tromey.com>
5101 * tui/tui-win.c (tui_resize_all)
5102 (tui_source_window_base::update_tab_width)
5103 (tui_adjust_win_heights): Update.
5104 (tui_win_info::make_invisible_and_set_new_height): Rename from
5105 make_invisible_and_set_new_height.
5106 * tui/tui-data.h (struct tui_win_info)
5107 <make_invisible_and_set_new_height>: New method.
5109 2019-07-17 Tom Tromey <tom@tromey.com>
5111 * tui/tui.c: Update.
5112 * tui/tui-source.h (struct tui_source_window): Move from
5114 * tui/tui-layout.c: Update.
5115 * tui/tui-disasm.c: Update.
5116 * tui/tui-data.h (struct tui_source_window): Move to
5119 2019-07-17 Tom Tromey <tom@tromey.com>
5121 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5123 * tui/tui-data.h (struct tui_disasm_window): Move to
5126 2019-07-17 Tom Tromey <tom@tromey.com>
5128 * tui/tui-regs.h (struct tui_data_item_window): Move from
5130 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5131 * tui/tui-data.h (struct tui_data_item_window): Move to
5133 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5135 2019-07-17 Tom Tromey <tom@tromey.com>
5137 * tui/tui.c: Update.
5138 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5139 (tui_cmd_window::max_height): Move to tui-command.c.
5140 * tui/tui-layout.c: Update.
5141 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5142 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5144 * tui/tui-command.h (struct tui_cmd_window): Move from
5146 * tui/tui-command.c: Remove "structuring" comments.
5147 (tui_cmd_window::clear_detail)
5148 (tui_cmd_window::do_make_visible_with_new_height)
5149 (tui_cmd_window::max_height): Move from elsewhere.
5151 2019-07-17 Tom Tromey <tom@tromey.com>
5153 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5155 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5156 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5158 2019-07-17 Tom Tromey <tom@tromey.com>
5160 * tui/tui.c: Update.
5161 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5163 * tui/tui-windata.h: Remove file.
5164 * tui/tui-windata.c: Remove file.
5165 * tui/tui-win.c (tui_data_window::set_new_height)
5166 (tui_data_window::do_make_visible_with_new_height): Move to
5168 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5169 * tui/tui-regs.c: Remove "structuring" comments.
5170 (tui_data_window::first_data_item_displayed)
5171 (tui_data_window::delete_data_content_windows)
5172 (tui_data_window::erase_data_content)
5173 (tui_data_window::display_all_data)
5174 (tui_data_window::refresh_all)
5175 (tui_data_window::do_scroll_vertical)
5176 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5177 (tui_data_window::do_make_visible_with_new_height)
5178 (tui_data_window::refresh_window): Move from elsewhere.
5179 (_initialize_tui_regs): Move to end of file.
5180 * tui/tui-layout.c: Update.
5181 * tui/tui-hooks.c: Update.
5182 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5183 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5185 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5187 2019-07-17 Tom Tromey <tom@tromey.com>
5189 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5192 2019-07-17 Tom Tromey <tom@tromey.com>
5194 * tui/tui-win.c (tui_source_window_base::set_new_height)
5195 (tui_source_window_base::do_make_visible_with_new_height): Use
5196 m_has_locator field directly.
5197 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5199 (struct tui_source_window_base) <has_locator>: Likewise.
5201 2019-07-17 Tom Tromey <tom@tromey.com>
5203 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5205 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5207 * tui/tui-win.c (tui_source_window_base::set_new_height)
5208 (tui_source_window_base::set_new_height)
5209 (make_invisible_and_set_new_height)
5210 (tui_source_window_base::do_make_visible_with_new_height)
5211 (tui_source_window_base::do_make_visible_with_new_height):
5213 * tui/tui-layout.c (show_source_disasm_command, show_data)
5214 (show_source_or_disasm_and_command): Update.
5215 * tui/tui-layout.c (show_layout): Update.
5217 2019-07-17 Tom Tromey <tom@tromey.com>
5219 * tui/tui-layout.c (make_data_window): Remove.
5220 (show_data): Unify creation and re-initialization cases.
5222 2019-07-17 Tom Tromey <tom@tromey.com>
5224 * tui/tui-layout.c (make_source_window, make_disasm_window):
5226 (show_data): Unify creation and re-initialization cases.
5228 2019-07-17 Tom Tromey <tom@tromey.com>
5230 * tui/tui-layout.c (make_command_window): Remove.
5231 (show_source_disasm_command, show_source_or_disasm_and_command):
5232 Unify creation and re-initialization cases.
5234 2019-07-17 Tom Tromey <tom@tromey.com>
5236 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5237 creation and re-initialization cases.
5239 2019-07-17 Tom Tromey <tom@tromey.com>
5241 * tui/tui-regs.c (tui_get_register): Return void.
5243 2019-07-17 Tom Tromey <tom@tromey.com>
5245 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5248 2019-07-17 Tom Tromey <tom@tromey.com>
5250 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5253 2019-07-17 Tom Tromey <tom@tromey.com>
5255 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5256 * tui/tui-regs.c (tui_reg_layout): New function.
5257 (tui_show_registers, tui_reg_command): Use it.
5258 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5259 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5261 (tui_layout_command): Remove.
5263 2019-07-17 Tom Tromey <tom@tromey.com>
5265 * tui/tui-layout.h (tui/tui-layout): Return void.
5266 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5268 2019-07-17 Tom Tromey <tom@tromey.com>
5270 * tui/tui-layout.c (show_source_disasm_command, show_data):
5272 (reset_locator): Remove.
5273 (show_source_or_disasm_and_command): Update.
5275 2019-07-17 Tom Tromey <tom@tromey.com>
5277 * tui/tui-source.c (tui_source_window_base::reset): Remove
5279 * tui/tui-layout.c (make_command_window, make_source_window)
5280 (make_disasm_window, make_data_window)
5281 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5282 (reset_locator, show_source_or_disasm_and_command): Update.
5283 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5285 (struct tui_source_window_base) <reset>: Likewise.
5287 2019-07-17 Tom Tromey <tom@tromey.com>
5289 * tui/tui-layout.c (show_source_disasm_command): Use
5291 (reset_locator): New function.
5292 (init_and_make_win): Remove.
5293 (show_source_or_disasm_and_command): Use reset_locator.
5295 2019-07-17 Tom Tromey <tom@tromey.com>
5297 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5299 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5301 * tui/tui-source.c (tui_source_window_base::reset): New method.
5302 * tui/tui-layout.c (make_command_window): Don't call
5304 (make_source_window, make_disasm_window): Don't call
5305 make_source_or_disasm_window.
5306 (make_data_window): Don't call init_and_make_win. Change calling
5308 (show_source_disasm_command, show_data): Simplify.
5309 (make_source_or_disasm_window): Remove.
5310 (show_source_or_disasm_and_command): Simplify.
5311 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5312 (struct tui_source_window_base) <reset>: Likewise.
5313 <execution_info>: Remove initializer.
5314 * tui/tui-data.c (tui_source_window_base): Initialize
5317 2019-07-17 Tom Tromey <tom@tromey.com>
5319 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5322 2019-07-17 Tom Tromey <tom@tromey.com>
5324 * tui/tui.c (tui_rl_other_window): Update.
5325 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5326 superclass method first. Always iterate over regs_content.
5327 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5329 * tui/tui-win.c (tui_set_focus_command): Update.
5331 2019-07-17 Tom Tromey <tom@tromey.com>
5333 * tui/tui-win.c (tui_set_focus_command): Rename from
5334 tui_set_focus. Call tui_enable.
5335 (tui_set_focus_command): Remove.
5337 2019-07-17 Tom Tromey <tom@tromey.com>
5339 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5341 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5343 (tui_data_window::refresh_window): Call refresh_window on data
5344 items. Always call superclass refresh_window.
5345 (tui_win_info::refresh): Remove.
5346 (tui_source_window_base::refresh_window): Update.
5347 (tui_refresh_all): Update.
5348 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5350 (show_source_or_disasm_and_command): Likewise.
5351 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5352 (struct tui_source_window_base) <refresh>: Likewise.
5354 2019-07-17 Tom Tromey <tom@tromey.com>
5356 * tui/tui-winsource.c (tui_clear_source_content)
5357 (tui_show_source_content): Update.
5358 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5359 whether content is empty.
5360 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5363 2019-07-17 Tom Tromey <tom@tromey.com>
5365 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5367 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5368 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5370 2019-07-17 Tom Tromey <tom@tromey.com>
5372 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5373 (struct tui_data_item_window): Update.
5375 2019-07-17 Tom Tromey <tom@tromey.com>
5377 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5378 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5381 2019-07-17 Tom Tromey <tom@tromey.com>
5383 * tui/tui-winsource.h (tui_erase_source_content)
5384 (tui_clear_source_content): Remove "display_prompt" parameter.
5385 * tui/tui-winsource.c (tui_update_source_window_as_is)
5386 (tui_update_source_windows_with_addr): Update.
5387 (tui_clear_source_content): Remove "display_prompt" parameter.
5388 (tui_erase_source_content): Likewise. Simplify.
5389 (tui_show_source_content): Update.
5390 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5391 * tui/tui-stack.c (tui_show_frame_info): Update.
5392 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5395 2019-07-17 Tom Tromey <tom@tromey.com>
5397 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5398 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5400 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5403 2019-07-17 Tom Tromey <tom@tromey.com>
5405 * tui/tui-winsource.c (tui_clear_source_content)
5406 (tui_show_source_content, tui_show_exec_info_content)
5407 (tui_clear_exec_info_content): Update.
5408 * tui/tui-stack.c (tui_show_locator_content): Update.
5409 (tui_show_frame_info): Update.
5410 * tui/tui-source.h (tui_source_window): Don't declare.
5411 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5412 from tui_source_is_displayed.
5413 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5415 (struct tui_source_window_base) <content_in_use>: New field. Now
5417 (struct tui_source_window) <showing_source_p>: New method.
5418 (TUI_SRC_WIN): Change cast.
5419 * tui/tui-data.c (tui_initialize_static_data): Update.
5421 2019-07-17 Tom Tromey <tom@tromey.com>
5423 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5425 * tui/tui-source.c (tui_source_window::location_matches_p): New
5427 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5429 * tui/tui-data.h (struct tui_source_window_base)
5430 <location_matches_p>: New method.
5431 (struct tui_source_window, struct tui_disasm_window)
5432 <location_matches_p>: Likewise.
5434 2019-07-17 Tom Tromey <tom@tromey.com>
5436 * tui/tui-win.c (tui_set_win_height_command): Rename from
5438 (tui_set_win_height_command): Remove.
5440 2019-07-17 Tom Tromey <tom@tromey.com>
5442 * tui/tui-source.c (tui_source_window): New constructor. Add
5444 (~tui_source_window): New destructor.
5445 (tui_source_window::style_changed): New method.
5446 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5447 (tui_attach_detach_observers): Update.
5448 * tui/tui-data.h (struct tui_source_window): Make constructor not
5449 inline. Add destructor.
5450 (struct tui_source_window) <style_changed>: New method.
5451 <m_observable>: New member.
5453 2019-07-17 Tom Tromey <tom@tromey.com>
5455 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5456 * tui/tui-win.c (tui_resize_all): Fix typo.
5458 2019-07-17 Tom Tromey <tom@tromey.com>
5460 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5461 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5462 (tui_refresh_all): Remove "list" parameter. Use foreach.
5463 * tui/tui-win.c (window_name_completer): Use foreach.
5464 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5465 (update_tab_width): Likewise.
5466 * tui/tui-layout.c (show_layout): Update.
5467 * tui/tui-data.h (class tui_window_iterator): New.
5468 (struct all_tui_windows): New.
5469 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5471 2019-07-17 Tom Tromey <tom@tromey.com>
5473 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5474 parameter. Don't reference globals.
5475 (tui_reg_command): Update.
5477 2019-07-17 Tom Tromey <tom@tromey.com>
5479 * tui/tui-regs.c (tui_show_registers): Simplify.
5481 2019-07-17 Tom Tromey <tom@tromey.com>
5483 * tui/tui-regs.c (tui_show_registers): Update.
5484 (tui_show_register_group): Add win_info parameter.
5486 2019-07-17 Tom Tromey <tom@tromey.com>
5488 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5489 Rename from tui_display_reg_element_at_line.
5490 (tui_data_window::display_registers_from_line): Update.
5491 * tui/tui-data.h (struct tui_data_window)
5492 <display_reg_element_at_line>: New method.
5494 2019-07-17 Tom Tromey <tom@tromey.com>
5496 * tui/tui-regs.h (tui_display_registers_from)
5497 (tui_display_registers_from_line): Don't declare.
5498 * tui/tui-windata.c (tui_data_window::display_all_data)
5499 (tui_data_window::refresh_all)
5500 (tui_data_window::do_scroll_vertical): Update.
5501 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5502 from tui_display_registers_from.
5503 (tui_display_reg_element_at_line): Update.
5504 (tui_data_window::display_registers_from_line): Rename from
5505 tui_display_registers_from_line.
5506 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5507 display_registers_from_line>: New methods.
5509 2019-07-17 Tom Tromey <tom@tromey.com>
5511 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5512 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5513 from tui_erase_data_content.
5514 (tui_data_window::display_all_data)
5515 (tui_data_window::refresh_all)
5516 (tui_data_window::do_scroll_vertical): Update.
5517 * tui/tui-regs.c (tui_show_registers): Update.
5518 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5521 2019-07-17 Tom Tromey <tom@tromey.com>
5523 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5526 (tui_data_window::delete_data_content_windows): Rename from
5527 tui_delete_data_content_windows.
5528 (tui_data_window::display_all_data)
5529 (tui_data_window::do_scroll_vertical): Update.
5530 * tui/tui-data.h (struct tui_data_window)
5531 <delete_data_content_windows>: New method.
5533 2019-07-17 Tom Tromey <tom@tromey.com>
5535 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5536 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5538 2019-07-17 Tom Tromey <tom@tromey.com>
5540 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5541 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5542 from tui_display_all_data.
5544 (tui_data_window::do_make_visible_with_new_height): Update.
5545 * tui/tui-regs.c (tui_show_registers): Update.
5546 * tui/tui-layout.c (tui_set_layout): Update.
5547 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5550 2019-07-17 Tom Tromey <tom@tromey.com>
5552 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5553 * tui/tui-windata.c (tui_display_data_from): Remove.
5554 (tui_data_window::refresh_all): Update.
5556 2019-07-17 Tom Tromey <tom@tromey.com>
5558 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5559 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5560 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5561 tui_display_registers_from_line.
5562 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5563 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5564 "force_display" parameter.
5566 2019-07-17 Tom Tromey <tom@tromey.com>
5568 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5570 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5571 Rename from tui_first_reg_element_no_inline.
5572 (tui_display_reg_element_at_line)
5573 (tui_display_registers_from_line): Update.
5574 * tui/tui-data.h (struct tui_data_window)
5575 <first_reg_element_no_inline>: New method.
5577 2019-07-17 Tom Tromey <tom@tromey.com>
5579 * tui/tui-windata.c (tui_display_data_from)
5580 (tui_data_window::do_scroll_vertical): Update.
5581 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5582 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5583 Rename from tui_line_from_reg_element_no.
5584 (tui_display_registers_from_line): Update.
5585 * tui/tui-data.h (struct tui_data_window)
5586 <line_from_reg_element_no>: New method.
5588 2019-07-17 Tom Tromey <tom@tromey.com>
5590 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5591 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5592 tui_last_regs_line_no.
5593 (tui_display_reg_element_at_line)
5594 (tui_display_registers_from_line): Update.
5595 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5598 2019-07-17 Tom Tromey <tom@tromey.com>
5601 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5602 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5603 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5604 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5605 (tui_update_breakpoint_info): Likewise.
5606 * tui/tui-hooks.c (tui_event_create_breakpoint)
5607 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5610 2019-07-17 Tom Tromey <tom@tromey.com>
5612 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5614 2019-07-17 Tom Tromey <tom@tromey.com>
5616 * tui/tui-winsource.c (tui_update_source_window_as_is)
5617 (tui_update_source_windows_with_addr): Update.
5618 * tui/tui-source.h (tui_set_source_content)
5619 (tui_show_symtab_source): Add "win_info" parameter.
5620 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5622 (tui_show_symtab_source): Likewise.
5624 2019-07-17 Tom Tromey <tom@tromey.com>
5626 * tui/tui-wingeneral.c
5627 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5629 2019-07-17 Tom Tromey <tom@tromey.com>
5631 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5632 (struct tui_cmd_window) <can_scroll>: New method.
5633 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5636 2019-07-17 Tom Tromey <tromey@adacore.com>
5638 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5639 do_field_signed>: Rename. Change type of "value".
5640 * ui-out.c (ui_out::field_signed): Rename from field_int.
5641 Change type of "value".
5642 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5644 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5645 do_field_int. Change type of "value".
5646 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5647 do_field_int. Change type of "value".
5648 * tracepoint.c (trace_status_mi, tfind_1)
5649 (print_one_static_tracepoint_marker): Update.
5650 * thread.c (print_thread_info_1, print_selected_thread_frame):
5652 * stack.c (print_frame, print_frame_info): Update.
5653 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5655 * source.c (print_source_lines_base): Update.
5656 * skip.c (info_skip_command): Update.
5657 * record-btrace.c (btrace_ui_out_decode_error)
5658 (btrace_call_history_src_line): Update.
5659 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5661 * progspace.c (print_program_space): Update.
5662 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5663 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5664 do_field_int. Change type of "value".
5665 * mi/mi-out.c (mi_ui_out::do_table_begin)
5666 (mi_ui_out::do_table_header): Update.
5667 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5669 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5670 (mi_cmd_data_list_changed_registers, output_register)
5671 (mi_cmd_data_read_memory, mi_load_progress)
5672 (mi_cmd_trace_frame_collected): Update.
5673 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5675 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5676 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5677 (mi_cmd_var_list_children, varobj_update_one): Update.
5678 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5679 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5680 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5681 * inferior.c (print_inferior): Update.
5682 * gdb_bfd.c (print_one_bfd): Update.
5683 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5685 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5686 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5687 do_field_int. Change type of "value".
5688 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5689 do_field_int. Change type of "value".
5690 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5691 (print_one_breakpoint_location, print_it_catch_fork)
5692 (print_one_catch_fork, print_it_catch_vfork)
5693 (print_one_catch_vfork, print_it_catch_solib)
5694 (print_it_catch_exec, print_it_ranged_breakpoint)
5695 (print_mention_watchpoint, print_mention_masked_watchpoint)
5696 (bkpt_print_it, update_static_tracepoint): Update.
5697 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5698 * break-catch-syscall.c (print_it_catch_syscall): Update.
5699 * ada-tasks.c (print_ada_task_info): Update.
5700 * ada-lang.c (print_it_exception, print_mention_exception):
5703 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5705 PR breakpoints/24541
5706 * gdbarch.c: Regenerate.
5707 * gdbarch.h: Regenerate.
5708 * gdbarch.sh: Adjust return type and parameter types for
5709 'stap_adjust_register'.
5710 (i386_stap_adjust_register): Adjust signature and return new
5712 * stap-probe.c (stap_parse_register_operand): Adjust use of
5713 'gdbarch_stap_adjust_register'.
5715 2019-07-17 Tom Tromey <tromey@adacore.com>
5717 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5719 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5721 (struct s390_process_info): Add initializers.
5722 (s390_add_process): Use new.
5723 (s390_linux_nat_target::low_forget_process): Use delete.
5724 (s390_linux_nat_target::low_new_fork)
5725 (s390_linux_nat_target::stopped_by_watchpoint)
5726 (s390_linux_nat_target::low_prepare_to_resume)
5727 (s390_linux_nat_target::insert_watchpoint)
5728 (s390_linux_nat_target::insert_hw_breakpoint)
5729 (s390_linux_nat_target::remove_watchpoint)
5730 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5732 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5734 * aarch64-fbsd-nat.c: Include regcache.h.
5735 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5737 (aarch64_fbsd_nat_target::fetch_registers)
5738 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5740 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5742 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5744 * fbsd-nat.c: Include gdbarch.h.
5746 2019-07-15 Tom Tromey <tromey@adacore.com>
5748 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5750 2019-07-15 Tom Tromey <tromey@adacore.com>
5752 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5753 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5754 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5755 * cli-out.c (cli_ui_out::do_field_int): New method.
5756 * ui-out.c (ui_out::field_unsigned): New method.
5757 * symfile.c (generic_load): Use field_unsigned.
5758 (print_transfer_performance): Likewise.
5759 * record-btrace.c (ui_out_field_uint): Remove.
5760 (btrace_call_history_insn_range, btrace_call_history): Use
5762 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5764 * ui-out.h (class ui_out) <field_unsigned>: New method.
5765 <do_field_unsigned>: Likewise.
5767 2019-07-15 Tom Tromey <tromey@adacore.com>
5769 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5770 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5771 * target.c (flash_erase_command): Use field_string.
5772 * infrun.c (print_signal_received_reason): Use field_string.
5773 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5774 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5776 * ada-tasks.c (print_ada_task_info): Use field_string.
5778 2019-07-15 Tom Tromey <tromey@adacore.com>
5780 * target.c (flash_erase_command): Use field_core_addr.
5781 * symfile.c (generic_load): Use field_core_addr.
5782 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5783 Use field_core_addr.
5784 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5787 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5789 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5790 value if its desired type is smaller than a CORE_ADDR and signed.
5792 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5794 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5795 of changes to field names, and use new is_reference field to
5796 decide if a property is a reference or not.
5797 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5799 (struct dwarf2_property_baton): Update header comment, rename
5800 'referenced_type' to 'property_type' and update comments.
5801 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5802 default property type, store in property baton, update to take
5803 accound of renamed field.
5804 (read_func_scope): Update call to attr_to_dynamic_prop.
5805 (read_array_type): Likewise.
5806 (dwarf2_per_cu_addr_sized_int_type): New function.
5807 (read_subrange_index_type): Move type finding code to
5808 dwarf2_per_cu_addr_sized_int_type.
5809 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5810 (dwarf2_per_cu_addr_type): New function.
5811 (set_die_type): Update calls to attr_to_dynamic_prop.
5813 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5815 * dwarf2read.c (read_subrange_index_type): New function.
5816 (read_subrange_type): Move code into new function and call it.
5817 * gdbtypes.c (create_range_type): Add some asserts.
5819 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5821 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5822 update return statements.
5823 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5824 declaration, and update comment to match.
5825 * gdbtypes.c (resolve_dynamic_array): Update call to
5826 dwarf2_evaluate_property to match new return type.
5828 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5830 * valarith.c (value_subscripted_rvalue): Change lowerbound
5831 parameter type from int to LONGEST.
5832 * value.h (value_subscripted_rvalue): Likewise in declaration.
5834 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5836 * cli/cli-utils.c (info_print_command_completer): New function.
5837 * cli/cli-utils.h: Add 'completer.h' include, and forward
5838 declaration for 'struct cmd_list_element'.
5839 (info_print_command_completer): Declare.
5840 * stack.c (_initialize_stack): Add completer for 'info locals' and
5842 * symtab.c (_initialize_symtab): Add completer for 'info
5843 variables' and 'info functions'.
5844 * NEWS: Mention completion for additional info commands.
5846 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5848 * cli/cli-utils.c (extract_info_print_args): Delete.
5849 (extract_arg_maybe_quoted): Delete.
5850 (info_print_options_defs): New variable.
5851 (make_info_print_options_def_group): New function.
5852 (extract_info_print_options): Define new function.
5853 * cli/cli-utils.h (extract_info_print_args): Delete.
5854 (struct info_print_options): New structure.
5855 (extract_info_print_options): Declare new function.
5856 * stack.c (info_locals_command): Update to use new
5857 extract_info_print_options, also add a header comment.
5858 (info_args_command): Likewise.
5859 * symtab.c (info_variables_command): Likewise.
5860 (info_functions_command): Likewise.
5862 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5864 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
5865 to extract string arguments.
5866 * common/common-utils.c (extract_string_maybe_quoted): New function.
5867 * common/common-utils.h (extract_string_maybe_quoted): Declare.
5869 2019-07-11 Tom Tromey <tromey@adacore.com>
5871 * main.c (get_init_files): Use GDBINIT, not gdbinit.
5872 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
5873 * top.h (gdbinit): Don't declare.
5874 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
5876 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
5877 * top.c (gdb_init): Don't call init_cli_cmds.
5879 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
5881 2019-07-11 Tom Tromey <tromey@adacore.com>
5883 * python/py-inferior.c (add_thread_object): Don't use thread_obj
5884 after it has been moved.
5886 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
5888 * valops.c (value_must_coerce_to_target): Change return type to
5890 * value.h (value_must_coerce_to_target): Likewise.
5892 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
5894 * breakpoint.c (is_hardware_watchpoint): Remove
5895 forward-declaration.
5896 (is_masked_watchpoint): Change return type to bool.
5897 (is_tracepoint): Likewise.
5898 (is_breakpoint): Likewise.
5899 (is_hardware_watchpoint): Likewise.
5900 (is_watchpoint): Likewise.
5901 (is_no_memory_software_watchpoint): Likewise.
5902 (is_catchpoint): Likewise.
5903 (breakpoint_1): Make FILTER parameter's return type bool.
5904 is_masked_watchpoint): Change return type to bool.
5905 (save_breakpoints): Make FILTER parameter's return type bool.
5906 * breakpoint.h (is_breakpoint): Change return type to bool.
5907 (is_watchpoint): Likewise.
5908 (is_catchpoint): Likewise.
5909 (is_tracepoint): Likewise.
5911 2019-07-10 Tom Tromey <tom@tromey.com>
5913 * defs.h: Don't include gdbarch.h.
5914 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
5915 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
5916 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
5917 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
5918 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
5919 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
5920 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
5921 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
5922 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
5923 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
5924 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
5925 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
5926 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
5927 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
5928 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
5929 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
5930 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
5931 record-btrace.c, record.h, regcache-dump.c, regcache.h,
5932 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
5933 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
5934 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
5935 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
5936 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
5937 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
5938 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
5939 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
5940 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
5942 2019-07-10 Tom Tromey <tromey@adacore.com>
5944 * ada-lang.h (is_ada_exception_catchpoint): Declare.
5945 * breakpoint.c (init_ada_exception_breakpoint): Register as
5947 (print_one_breakpoint_location, print_one_breakpoint): Use
5948 is_ada_exception_catchpoint.
5949 * ada-lang.c (class ada_catchpoint_location): Pass
5950 bp_loc_software_breakpoint to bp_location constructor.
5951 (is_ada_exception_catchpoint): New function.
5953 2019-07-10 Tom Tromey <tromey@adacore.com>
5955 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
5957 (struct arm_exidx_entry): New method operator<.
5958 (struct arm_exidx_data) <section_maps>: Change type.
5959 (arm_exidx_data_free): Remove.
5960 (arm_exidx_data_key): Change type. Move lower.
5961 (arm_exidx_new_objfile): Update.
5962 (arm_compare_exidx_entries): Remove.
5963 (arm_find_exidx_entry, _initialize_arm_tdep)
5965 2019-07-10 Tom Tromey <tromey@adacore.com>
5967 * solib-spu.c (ocl_program_data_key): Change type.
5968 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
5971 2019-07-10 Tom Tromey <tromey@adacore.com>
5973 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
5974 (struct solib_aix_inferior_data) <library_list>: Change type.
5975 (solib_aix_inferior_data_handle): Change type.
5976 (get_solib_aix_inferior_data): Update.
5977 (solib_aix_free_library_list): Remove.
5978 (library_list_start_library): Update.
5979 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
5981 (solib_aix_get_library_list)
5982 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
5983 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
5985 2019-07-10 Tom Tromey <tromey@adacore.com>
5987 * solib-dsbt.c (struct dsbt_info): Add initializers.
5988 (solib_dsbt_pspace_data): Change type.
5989 (dsbt_pspace_data_cleanup): Remove.
5990 (get_dsbt_info, _initialize_dsbt_solib): Update.
5992 2019-07-10 Tom Tromey <tromey@adacore.com>
5994 * spu-tdep.c (spu_overlay_data): Change type.
5995 (spu_get_overlay_table, spu_overlay_new_objfile)
5996 (_initialize_spu_tdep): Update.
5998 2019-07-10 Tom Tromey <tromey@adacore.com>
6000 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6002 (dbx_objfile_data_key): Change type and declare later.
6003 (DBX_SYMFILE_INFO): Rewrite.
6004 * dbxread.c (dbx_objfile_data_key): Change type.
6005 (dbx_symfile_init): Update.
6006 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6007 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6008 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6010 2019-07-10 Tom Tromey <tromey@adacore.com>
6012 * jit.c (jit_program_space_key): Change type. Move lower.
6013 (get_jit_program_space_data): Update.
6014 (jit_program_space_data_cleanup): Remove.
6015 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6017 (struct jit_program_space_data): Add initializers.
6019 2019-07-10 Tom Tromey <tromey@adacore.com>
6021 * solib-darwin.c (struct darwin_info): Add initializers.
6022 (solib_darwin_pspace_data): Change type.
6023 (darwin_pspace_data_cleanup): Remove.
6024 (get_darwin_info, _initialize_darwin_solib): Update.
6026 2019-07-10 Tom Tromey <tromey@adacore.com>
6028 * remote-sim.c (struct sim_inferior_data): Add initializers,
6029 constructor, and destructor.
6030 (sim_inferior_data_key): Change type. Move lower.
6031 (check_for_duplicate_sim_descriptor): Update.
6032 (get_sim_inferior_data): Use new. Update.
6033 (~sim_inferior_data_cleanup): Rename from
6034 sim_inferior_data_cleanup. Simplify.
6035 (gdbsim_close_inferior, simulator_command)
6036 (sim_command_completer, _initialize_remote_sim): Update.
6037 (next_pid, INITIAL_PID): Move earlier.
6039 2019-07-10 Tom Tromey <tromey@adacore.com>
6041 * python/python-internal.h (create_thread_object): Return
6043 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6044 * python/py-inferior.c (struct threadlist_entry): Add
6046 <thread_obj>: Now a gdbpy_ref.
6047 (thread_to_thread_object): Update.
6048 (add_thread_object): Use new.
6049 (delete_thread_object): Use delete.
6050 (infpy_threads): Update.
6051 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6054 2019-07-10 Tom Tromey <tromey@adacore.com>
6056 * valops.c (value_cast): Specialize error message for Ada.
6058 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6060 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6062 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6064 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6065 bpstat_should_step): Return bool, adjust comments.
6066 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6067 bpstat_should_step): Likewise.
6069 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6071 * features/Makefile: Use feature target descriptions for Arm.
6072 * features/arm/arm-core.c: Generate new file.
6073 * features/arm/arm-fpa.c: Likewise.
6074 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6075 * features/arm/arm-m-profile.c: Likewise.
6076 * features/arm/arm-vfpv2.c: Likewise.
6077 * features/arm/arm-vfpv3.c: Likewise.
6078 * features/arm/xscale-iwmmxt.c: Likewise.
6079 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6081 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6083 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6086 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6088 * features/aarch64-pauth.c: Regenerate.
6090 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6092 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6094 (bpstat_what): Use false instead of 0.
6096 2019-07-09 Pedro Alves <palves@redhat.com>
6098 * break-catch-throw.c (is_exception_catchpoint): New.
6099 * breakpoint.c (print_one_breakpoint_location): New parameter
6100 'raw_loc'. Handle it. Use
6101 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6102 looking at the breakpoint's type.
6103 (print_one_breakpoint): If handling "maint info breakpoints", also
6104 print locations of exception catchpoints.
6105 * breakpoint.h (is_exception_catchpoint): Declare.
6107 2019-07-09 Pedro Alves <palves@redhat.com>
6109 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6111 (allocate_location_exception_catchpoint): New.
6112 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6113 (initialize_throw_catchpoint_ops): Install
6114 allocate_location_exception_catchpoint as allocate_location
6116 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6117 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6119 (breakpoint_address_is_meaningful): Delete.
6120 (bl_address_is_meaningful): New.
6121 (breakpoint_locations_match): Adjust comment.
6122 (bp_location_from_bp_type): New, factored out of...
6123 (bp_location::bp_location(breakpoint *)): ... this.
6124 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6126 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6127 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6128 breakpoint_address_is_meaningful.
6129 (bp_locations_compare): Adjust comment.
6130 (update_global_location_list): Use bl_address_is_meaningful
6131 instead of breakpoint_address_is_meaningful.
6132 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6134 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6135 * python/py-breakpoint.c (bppy_get_location): No longer check
6136 whether location is null.
6138 2019-07-09 Pedro Alves <palves@redhat.com>
6141 * breakpoint.c (print_one_breakpoint_location): Remove
6142 single-location assert.
6144 2019-07-09 Tom Tromey <tom@tromey.com>
6146 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6147 * configure: Rebuild.
6148 * configure.ac: Change common to gdbsupport.
6149 * gdbsupport: Rename from common.
6150 * acinclude.m4: Change common to gdbsupport.
6151 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6152 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6154 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6155 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6156 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6157 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6158 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6159 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6160 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6161 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6162 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6163 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6164 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6165 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6166 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6167 coff-pe-read.c, command.h, compile/compile-c-support.c,
6168 compile/compile-c.h, compile/compile-cplus-symbols.c,
6169 compile/compile-cplus-types.c, compile/compile-cplus.h,
6170 compile/compile-loc2c.c, compile/compile.c, completer.c,
6171 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6172 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6173 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6174 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6175 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6176 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6177 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6178 features/aarch64-core.c, features/aarch64-fpu.c,
6179 features/aarch64-pauth.c, features/aarch64-sve.c,
6180 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6181 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6182 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6183 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6184 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6185 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6186 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6187 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6188 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6189 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6190 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6191 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6192 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6193 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6194 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6195 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6196 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6197 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6198 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6199 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6200 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6201 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6202 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6203 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6204 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6205 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6206 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6207 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6208 minsyms.c, mips-linux-tdep.c, namespace.h,
6209 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6210 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6211 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6212 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6213 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6214 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6215 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6216 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6217 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6218 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6219 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6220 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6221 procfs.c, producer.c, progspace.h, psymtab.h,
6222 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6223 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6224 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6225 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6226 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6227 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6228 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6229 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6230 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6231 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6232 target-memory.c, target.c, target.h, target/waitstatus.c,
6233 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6234 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6235 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6236 unittests/array-view-selftests.c,
6237 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6238 unittests/common-utils-selftests.c,
6239 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6240 unittests/format_pieces-selftests.c,
6241 unittests/function-view-selftests.c,
6242 unittests/lookup_name_info-selftests.c,
6243 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6244 unittests/mkdir-recursive-selftests.c,
6245 unittests/observable-selftests.c,
6246 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6247 unittests/parse-connection-spec-selftests.c,
6248 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6249 unittests/scoped_fd-selftests.c,
6250 unittests/scoped_mmap-selftests.c,
6251 unittests/scoped_restore-selftests.c,
6252 unittests/string_view-selftests.c, unittests/style-selftests.c,
6253 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6254 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6255 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6256 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6257 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6258 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6260 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6262 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6264 (decode_digits_ordinary): Set explicit_line field in sal.
6265 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6266 symtab_and_line that was set on an explicit line number in
6267 assembler code. Do always update the recorded symtab and line if
6268 we do skip the prologue.
6270 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6272 * breakpoint.c (set_breakpoint_location_function): Remove
6273 explicit_loc parameter.
6274 (momentary_breakpoint_from_master): Update call to
6275 set_breakpoint_location_function.
6276 (add_location_to_breakpoint): Likewise.
6278 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6280 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6281 required features based on default bfd type when no specific bfd
6284 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6286 * NEWS: Mention that GDB printf and eval commands can now print
6287 C-style and Ada-style convenience var strings without
6288 calling the inferior.
6289 * printcmd.c (printf_c_string): Locally print GDB internal var
6290 instead of transiting via the inferior.
6291 (printf_wide_c_string): Likewise.
6293 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6295 PR breakpoints/25011
6296 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6298 2019-07-04 Tom Tromey <tom@tromey.com>
6301 * tui/tui-winsource.c (tui_clear_source_content): Update.
6302 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6303 (tui_update_breakpoint_info): Update.
6304 (tui_set_exec_info_content): Update.
6305 * tui/tui-source.c (tui_set_source_content_nil): Update.
6306 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6308 * tui/tui-data.h (enum tui_bp_flag): New.
6309 (tui_bp_flags): New enum flags type.
6310 (struct tui_source_element) <break_mode>: Change type. Rename
6312 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6313 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6315 * tui/tui-winsource.h: Fix comment.
6317 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6319 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6320 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6321 (store_fpregs_to_thread)
6322 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6323 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6324 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6325 (IWMMXT_REGS_SIZE): Add define.
6326 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6327 (fetch_vfp_regs, store_vfp_regs)
6328 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6329 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6331 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6333 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6335 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6336 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6337 (ARM_INT_REGISTER_SIZE): ...to this.
6338 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6339 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6340 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6341 (arm_linux_collect_gregset, supply_nwfpe_register)
6342 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6344 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6345 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6346 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6347 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6348 (arm_return_in_memory, arm_store_return_value)
6349 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6350 (arm_record_ld_st_multiple): Likewise.
6351 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6352 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6354 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6356 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6357 AARCH64_DISPLACED_MODIFIED_INSNS.
6358 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6359 (aarch64_displaced_step_copy_insn): Likewise.
6360 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6361 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6362 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6363 ARM_DISPLACED_MODIFIED_INSNS.
6364 * arm-tdep.c (arm_gdbarch_init): Likewise.
6365 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6366 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6367 (struct arm_displaced_step_closure): Use
6368 ARM_DISPLACED_MODIFIED_INSNS.
6370 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6372 * features/Makefile: Remove unused xml files.
6373 * features/aarch64.xml: Remove.
6374 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6375 * features/i386/amd64-avx-avx512.xml: Remove.
6376 * features/i386/amd64-avx-linux.xml: Remove.
6377 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6378 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6379 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6380 * features/i386/amd64-avx-mpx.xml: Remove.
6381 * features/i386/amd64-avx.xml: Remove.
6382 * features/i386/amd64-linux.xml: Remove.
6383 * features/i386/amd64-mpx-linux.xml: Remove.
6384 * features/i386/amd64-mpx.xml: Remove.
6385 * features/i386/amd64.xml: Remove.
6386 * features/i386/i386-avx-avx512-linux.xml: Remove.
6387 * features/i386/i386-avx-avx512.xml: Remove.
6388 * features/i386/i386-avx-linux.xml: Remove.
6389 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6390 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6391 * features/i386/i386-avx-mpx-linux.xml: Remove.
6392 * features/i386/i386-avx-mpx.xml: Remove.
6393 * features/i386/i386-avx.xml: Remove.
6394 * features/i386/i386-linux.xml: Remove.
6395 * features/i386/i386-mmx-linux.xml: Remove.
6396 * features/i386/i386-mmx.xml: Remove.
6397 * features/i386/i386-mpx-linux.xml: Remove.
6398 * features/i386/i386-mpx.xml: Remove.
6399 * features/i386/i386.xml: Remove.
6400 * features/i386/x32-avx-avx512-linux.xml: Remove.
6401 * features/i386/x32-avx-linux.xml: Remove.
6402 * features/i386/x32-linux.xml: Remove.
6404 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6406 * regformats/aarch64.dat: Remove.
6407 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6408 * regformats/i386/amd64-avx-linux.dat: Remove.
6409 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6410 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6411 * regformats/i386/amd64-linux.dat: Remove.
6412 * regformats/i386/amd64-mpx-linux.dat: Remove.
6413 * regformats/i386/amd64.dat: Remove.
6414 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6415 * regformats/i386/i386-avx-linux.dat: Remove.
6416 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6417 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6418 * regformats/i386/i386-linux.dat: Remove.
6419 * regformats/i386/i386-mmx-linux.dat: Remove.
6420 * regformats/i386/i386-mpx-linux.dat: Remove.
6421 * regformats/i386/i386.dat: Remove.
6422 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6423 * regformats/i386/x32-avx-linux.dat: Remove.
6424 * regformats/i386/x32-linux.dat: Remove.
6426 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6428 * aarch64-tdep.c: Remove xml self tests.
6429 * amd64-linux-tdep.c: Likewise.
6430 * amd64-tdep.c: Likewise.
6431 * i386-linux-tdep.c: Likewise.
6432 * i386-tdep.c: Likewise.
6434 2019-07-03 Pedro Alves <palves@redhat.com>
6437 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6438 (pipe_cmd_option_defs): New.
6439 (make_pipe_cmd_options_def_group): New.
6440 (pipe_command): Use gdb::option::process_options.
6441 (pipe_command_completer): New function.
6442 (_initialize_cli_cmds): Install completer for "pipe" command.
6444 2019-07-03 Pedro Alves <palves@redhat.com>
6446 * cli/cli-option.c (union option_value) <string>: New field.
6447 (struct option_def_and_value): Add ctor, move ctor, dtor and
6448 use DISABLE_COPY_AND_ASSIGN.
6449 (option_def_and_value::clear_value): New.
6450 (parse_option, save_option_value_in_ctx, get_val_type_str)
6451 (add_setshow_cmds_for_options): Handle var_string.
6452 * cli-option.h (union option_def::var_address) <string>: New
6454 (struct string_option_def): New.
6455 * maint-test-options.c (struct test_options_opts): Add default
6456 ctor and use DISABLE_COPY_AND_ASSIGN.
6457 <string_opt>: New field.
6458 (test_options_opts::~test_options_opts): New.
6459 (test_options_opts::dump): Also dump "-string".
6460 (test_options_option_defs): Install "string.
6462 2019-07-03 Pedro Alves <palves@redhat.com>
6464 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6465 option_value with a null enumeration.
6466 (complete_options): Save the option values in the context.
6467 (save_option_value_in_ctx): New, factored out from ...
6468 (process_options): ... here.
6469 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6471 * maint-test-options.c (test_options_opts::dump): New, factored
6473 (maintenance_test_options_command_mode): ... here.
6474 (maintenance_test_options_command_completion_result): Delete.
6475 (maintenance_test_options_command_completion_text): Update
6477 (maintenance_show_test_options_completion_result): Change
6478 prototype. Just print
6479 maintenance_test_options_command_completion_text.
6480 (save_completion_result): New.
6481 (maintenance_test_options_completer_mode): Pass options context to
6482 complete_options, and then save a dump.
6483 (_initialize_maint_test_options): Use add_cmd to install "maint
6484 show test-options-completion-result".
6486 2019-07-03 Pedro Alves <palves@redhat.com>
6488 * NEWS (New commands): Mention "with" and "maint with".
6489 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6490 (with_command, with_command_completer): New.
6491 (pipe_command): Adjust to new repeat_previous
6493 (_initialize_cli_cmds): Install the "with" command and its "w"
6495 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6497 * cli/cli-setshow.c (parse_cli_var_uinteger)
6498 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6499 argument strings for all var_types.
6500 (get_setshow_command_value_string): New, factored out from ...
6501 (do_show_command): ... this.
6502 * cli/cli-setshow.h: Include <string>.
6503 (get_setshow_command_value_string): Declare.
6504 * command.h (repeat_previous): Now returns const char *. Adjust
6506 * maint.c: Include "cli/cli-cmds.h".
6507 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6508 (_initialize_maint_cmds): Register the "maintenance with" command.
6509 * top.c (repeat_previous): Move bits from pipe_command here:
6510 Return the saved command line, if any; error out if there's no
6511 command to relaunch.
6513 2019-07-03 Pedro Alves <palves@redhat.com>
6515 * NEWS (New commands): Mention "maint set/show test-settings"
6516 instead of "maint test-settings".
6517 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6518 (maintenance_test_settings_set_list): Rename to ...
6519 (maintenance_set_test_settings_list): ... this.
6520 (maintenance_test_settings_show_list): Rename to ...
6521 (maintenance_show_test_settings_list): ... this.
6522 (maintenance_test_settings_cmd): Delete.
6523 (maintenance_test_settings_set_cmd): ...
6524 (maintenance_set_test_settings_cmd): ... this.
6525 (maintenance_test_settings_show_cmd): ...
6526 (maintenance_show_test_settings_cmd): ... this.
6527 (maintenance_test_settings_show_value_cmd):
6528 (maintenance_show_test_settings_value_cmd): ... this.
6529 (_initialize_maint_test_settings): No longer install the "maint
6530 test-settings" prefix command. Rename "maint test-settings set"
6531 to "maint set test-settings", and "maint test-settings show" to
6532 "maint show test-settings". Adjust all subcommands.
6534 2019-07-03 Pedro Alves <palves@redhat.com>
6536 * maint-test-settings.c: Fix file's intro comment. Replace all
6537 references to "test-options" with references to "test-settings",
6540 2019-07-03 Pedro Alves <palves@redhat.com>
6542 * maint-test-settings.c (maintenance_test_settings_xxx)
6543 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6545 (maintenance_test_settings_enums): Use them.
6546 (maintenance_test_settings_enum): Default to
6547 maintenance_test_settings_xxx.
6548 (_initialize_maint_test_settings): Initialize
6549 MAINTENANCE_TEST_SETTINGS_FILENAME.
6551 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6553 * breakpoint.h (remove_breakpoints_inf): Change return type to
6554 void, move function documentation here.
6555 * breakpoint.c (remove_breakpoints_inf): Change return type to
6556 void, move function documentation to header.
6558 2019-07-02 Pedro Alves <palves@redhat.com>
6560 * NEWS (Completion improvements): Mention "info threads".
6561 * thread.c (struct info_threads_opts, info_threads_option_defs)
6562 (make_info_threads_options_def_group): New.
6563 (info_threads_command): Use gdb::option::process_options.
6564 (info_threads_command_completer): New.
6565 (_initialize_thread): Use gdb::option::build_help to build the
6566 help text for "info threads".
6568 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6570 * defs.h (generic_load): Move from here...
6571 * symfile.h (generic_load): ... to here. Rename name parameter
6573 * symfile.c (generic_load): Add comment.
6575 2019-07-01 Tom Tromey <tromey@adacore.com>
6578 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6579 declaration of without_params. Fix formatting.
6581 2019-07-01 Tom Tromey <tromey@adacore.com>
6583 * ada-exp.y (find_primitive_type): Update.
6584 * ada-lang.h (ada_lookup_symbol): Update.
6585 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6587 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6589 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6591 PR breakpoints/24541
6592 * gdbarch.c: Regenerate.
6593 * gdbarch.h: Regenerate.
6594 * gdbarch.sh: Add 'stap_adjust_register'.
6595 * i386-tdep.c: Include '<unordered_set>'.
6596 (i386_stap_adjust_register): New function.
6597 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6598 * stap-probe.c (stap_parse_register_operand): Call
6599 'gdbarch_stap_adjust_register'.
6601 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6604 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6605 * python/python.c (do_start_initialization): Use 'xmalloc'
6606 instead of 'PyMem_Malloc'.
6608 2019-06-28 Tom Tromey <tromey@adacore.com>
6610 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6613 2019-06-27 Tom Tromey <tromey@adacore.com>
6615 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6617 (arm_find_mapping_symbol, arm_record_special_symbol)
6618 (_initialize_arm_tdep): Update.
6619 (arm_objfile_data_free): Remove.
6621 2019-06-27 Tom Tromey <tromey@adacore.com>
6623 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6624 to cp_print_static_field.
6626 2019-06-26 Tom Tromey <tromey@adacore.com>
6628 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6629 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6632 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6634 * features/aarch64-core.c (create_feature_aarch64_core):
6636 * features/aarch64-core.xml: Add cpsr flags.
6638 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6640 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6641 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6643 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6645 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6647 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6649 (arm_record_special_symbol): Don't insert new symbol in sorted
6650 position, push it at the end.
6652 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6654 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6655 (arm_mapping_symbol_s): Remove.
6656 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6657 (arm_mapping_symbol_vec): New typedef.
6658 (struct arm_per_objfile): Add constructor.
6659 <section_maps>: Change type to
6660 std::unique_ptr<arm_mapping_symbol_vec[]>.
6661 (arm_compare_mapping_symbols): Remove.
6662 (arm_find_mapping_symbol): Adjust to section_maps type change.
6663 (arm_objfile_data_free): Call delete on arm_per_objfile.
6664 (arm_record_special_symbol): Adjust to section_maps type change.
6665 Allocate arm_per_objfile with new.
6667 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6669 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6670 with the command prefix.
6672 2019-06-25 Tom Tromey <tom@tromey.com>
6674 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6675 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6677 2019-06-25 Tom Tromey <tom@tromey.com>
6679 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6681 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6684 2019-06-25 Tom Tromey <tom@tromey.com>
6686 * tui/tui-winsource.c
6687 (tui_source_window_base::set_is_exec_point_at): Add check against
6690 2019-06-25 Tom Tromey <tom@tromey.com>
6692 * tui/tui-source.c (tui_set_source_content): Don't check before
6694 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6696 2019-06-25 Tom Tromey <tom@tromey.com>
6698 * tui/tui-winsource.h (tui_update_source_window_as_is)
6699 (tui_alloc_source_buffer, tui_line_is_displayed)
6700 (tui_addr_is_displayed): Change type of win_info.
6701 * tui/tui-winsource.c (tui_update_source_window_as_is)
6702 (tui_clear_source_content, tui_show_source_line)
6703 (tui_show_source_content, tui_source_window_base::refill)
6704 (tui_source_window_base::set_is_exec_point_at)
6705 (tui_source_window_base::set_is_exec_point_at)
6706 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6707 (tui_alloc_source_buffer, tui_line_is_displayed)
6708 (tui_addr_is_displayed): Change type of win_info. Update.
6709 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6710 (tui_source_window_base::do_make_visible_with_new_height):
6712 * tui/tui-source.c (tui_set_source_content)
6713 (tui_set_source_content_nil)
6714 (tui_source_window::do_scroll_vertical): Update.
6715 * tui/tui-layout.c (show_layout): Update.
6716 * tui/tui-disasm.c (tui_set_disassem_content)
6717 (tui_disasm_window::do_scroll_vertical): Update.
6718 * tui/tui-data.h (tui_win_content): Remove.
6719 (struct tui_gen_win_info) <content, content_size>: Remove.
6720 (struct tui_source_element): Add initializers and destructor.
6721 (union tui_which_element, struct tui_win_element): Remove.
6722 (struct tui_source_window_base) <content>: New field.
6723 (struct tui_data_window): Remove destructor.
6724 (tui_alloc_content, tui_free_win_content)
6725 (tui_free_all_source_wins_content): Don't declare.
6726 * tui/tui-data.c (tui_initialize_static_data): Update.
6727 (init_content_element, tui_alloc_content): Remove.
6728 (~tui_gen_win_info): Update.
6729 (~tui_data_window, tui_free_all_source_wins_content)
6730 (tui_free_win_content, free_content, free_content_elements):
6733 2019-06-25 Tom Tromey <tom@tromey.com>
6735 * tui/tui-winsource.h (tui_clear_source_content)
6736 (tui_erase_source_content, tui_show_source_content): Change type
6738 * tui/tui-winsource.c (tui_clear_source_content)
6739 (tui_erase_source_content, tui_show_source_content): Change type
6741 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6742 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6744 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6746 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6748 2019-06-25 Tom Tromey <tom@tromey.com>
6750 * tui/tui-winsource.c (tui_clear_source_content)
6751 (tui_source_window_base::set_is_exec_point_at): Update.
6752 * tui/tui-source.c (tui_set_source_content_nil): Update.
6753 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6755 * tui/tui-data.c (init_content_element): Update.
6757 2019-06-25 Tom Tromey <tom@tromey.com>
6759 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6760 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6761 * tui/tui-layout.c (init_and_make_win): Update.
6762 * tui/tui.h (enum tui_win_type): Update.
6763 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6764 tui_win_is_auxillary.
6765 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6766 tui_win_is_auxillary.
6768 2019-06-25 Tom Tromey <tom@tromey.com>
6770 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6771 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6772 (tui_delete_data_content_windows, tui_display_all_data)
6773 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6775 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6776 * tui/tui-regs.c (tui_last_regs_line_no)
6777 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6778 (tui_show_registers): Update.
6779 (tui_show_register_group): Return void. Update.
6780 (tui_display_registers_from, tui_display_reg_element_at_line)
6781 (tui_display_registers_from_line, tui_check_register_values):
6783 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6785 (struct tui_data_window) <regs_content>: Now a std::vector.
6786 <regs_content_count>: Remove.
6787 (tui_add_content_elements, tui_free_data_content): Don't declare.
6788 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6789 (init_content_element): Remove DATA_WIN case. Add assert.
6790 (tui_add_content_elements): Remove.
6791 (tui_data_window): Update.
6792 (tui_free_data_content): Remove.
6793 (free_content_elements): Remove DATA_WIN case.
6795 2019-06-25 Tom Tromey <tom@tromey.com>
6797 * tui/tui-data.c (tui_data_item_window): Update.
6798 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6799 * tui/tui-windata.c (tui_display_all_data)
6800 (tui_display_data_from_line): Update.
6801 (tui_check_data_values): Remove.
6802 * tui/tui-regs.c (tui_show_register_group)
6803 (tui_display_reg_element_at_line): Update.
6804 * tui/tui-hooks.c (tui_register_changed)
6805 (tui_refresh_frame_and_register_information): Call
6806 tui_check_register_values.
6807 * tui/tui-data.h (struct tui_data_window) <data_content,
6808 data_content_count, data_type>: Remove.
6809 (enum tui_data_type): Remove.
6811 * tui/tui-data.c (tui_data_window::clear_detail)
6812 (~tui_data_window): Update.
6814 2019-06-25 Tom Tromey <tom@tromey.com>
6816 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6818 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6819 Rename from tui_first_data_item_displayed. Update.
6820 (tui_data_window::refresh_all)
6821 (tui_data_window::do_scroll_vertical): Update.
6822 * tui/tui-data.h (struct tui_data_window)
6823 <first_data_item_displayed>: Declare new method.
6825 2019-06-25 Tom Tromey <tom@tromey.com>
6827 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6828 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6830 (tui_initialize_static_data): ...here.
6832 2019-06-25 Tom Tromey <tom@tromey.com>
6834 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6835 (tui_display_registers_from, tui_check_register_values): Update.
6836 (tui_display_register): Remove win_info parameter; update.
6837 (tui_get_register): Change type of parameters.
6838 * tui/tui-data.h (struct tui_data_element): Remove.
6839 (union tui_which_element) <data>: Remove.
6840 <data_window>: Change type.
6841 (struct tui_data_item_window): New.
6842 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
6844 (~tui_data_item_window): New destructor.
6845 (free_content_elements): Remove DATA_ITEM_WIN case.
6847 2019-06-25 Tom Tromey <tom@tromey.com>
6849 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
6852 2019-06-25 Tom Tromey <tom@tromey.com>
6854 * tui/tui-data.h (struct tui_command_element): Remove.
6855 (union tui_which_element) <command>: Remove.
6856 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
6858 (free_content_elements): Remove CMD_WIN case.
6860 2019-06-25 Tom Tromey <tom@tromey.com>
6862 * tui/tui-layout.c (tui_set_layout): Update.
6863 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
6864 * tui/tui-data.c (layout_def): Update.
6866 2019-06-25 Tom Tromey <tom@tromey.com>
6868 * tui/tui-wingeneral.c (tui_refresh_all): Update.
6869 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6870 (tui_source_window_base::set_new_height): Update.
6871 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
6873 (tui_set_locator_fullname, tui_set_locator_info)
6874 (tui_show_frame_info): Update.
6875 * tui/tui-source.c (tui_set_source_content)
6876 (tui_source_is_displayed): Update.
6877 * tui/tui-layout.c (show_source_disasm_command, show_data)
6878 (show_source_or_disasm_and_command): Update.
6879 * tui/tui-disasm.c (tui_set_disassem_content)
6880 (tui_get_begin_asm_address): Update.
6881 * tui/tui-data.h (struct tui_locator_element): Remove.
6882 (union tui_which_element) <locator>: Remove.
6883 (struct tui_locator_window): New.
6884 (tui_locator_win_info_ptr): Change return type.
6885 * tui/tui-data.c (_locator): Change type.
6886 (tui_locator_win_info_ptr): Change return type.
6887 (init_content_element): Remove LOCATOR_WIN case. Add assert.
6888 (tui_alloc_content): Add assert.
6890 2019-06-25 Tom Tromey <tom@tromey.com>
6892 * tui/tui-winsource.c
6893 (tui_exec_info_window::maybe_allocate_content): New method.
6894 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
6895 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
6896 (make_source_or_disasm_window): Add cast.
6897 * tui/tui-data.h (union tui_which_element) <simple_string>:
6899 (struct tui_source_info): New.
6900 (struct tui_source_window_base) <execution_info>: Change type.
6901 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
6902 case, and add assert.
6903 (tui_alloc_content): Add assert.
6905 2019-06-25 Tom Tromey <tom@tromey.com>
6907 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
6908 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
6909 * tui/tui-data.c (tui_alloc_win_info): Remove.
6911 2019-06-25 Tom Tromey <tom@tromey.com>
6913 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
6914 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
6917 2019-06-25 Tom Tromey <tom@tromey.com>
6919 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
6920 make_visible_with_new_height method.
6921 (tui_win_info::make_visible_with_new_height): New method.
6922 (tui_source_window_base::do_make_visible_with_new_height)
6923 (tui_data_window::do_make_visible_with_new_height)
6924 (tui_cmd_window::do_make_visible_with_new_height): New methods.
6925 (make_visible_with_new_height): Remove.
6926 (tui_resize_all, tui_adjust_win_heights): Use
6927 make_visible_with_new_height method.
6928 * tui/tui-data.h (struct tui_win_info)
6929 <do_make_visible_with_new_height, make_visible_with_new_height>:
6931 (struct tui_source_window_base, struct tui_data_window)
6932 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
6935 2019-06-25 Tom Tromey <tom@tromey.com>
6937 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
6939 (update_tab_width): Call update_tab_width method.
6940 * tui/tui-data.h (struct tui_win_info)
6941 (struct tui_source_window_base) <update_tab_width>: New methods.
6943 2019-06-25 Tom Tromey <tom@tromey.com>
6945 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
6947 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
6949 (tui_gen_win_info::make_visible): Update.
6950 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
6952 * tui/tui-data.h (enum tui_box): New enum.
6953 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
6955 2019-06-25 Tom Tromey <tom@tromey.com>
6957 * tui/tui-layout.c (make_source_or_disasm_window): Always use
6958 init_and_make_win for EXEC_INFO_WIN.
6959 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
6961 (struct tui_win_info) <~tui_win_info>: Inline.
6962 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6964 * tui/tui-data.c (source_win, disasm_win): Remove globals.
6965 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6967 (tui_initialize_static_data): Update.
6968 (~tui_gen_win_info): Handle more cleanup here.
6969 (~tui_source_window_base): Delete "execution_info".
6970 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
6972 2019-06-25 Tom Tromey <tom@tromey.com>
6974 * tui/tui-layout.c (make_command_window): Don't set
6976 (show_source_disasm_command): Call the reset method.
6977 (show_data): Don't set can_highlight. Call the reset method.
6978 (tui_gen_win_info::reset): Rename from init_gen_win_info
6979 (init_and_make_win): Simplify. Return tui_gen_win_info.
6980 (show_source_or_disasm_and_command): Call the reset method.
6981 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
6982 (struct tui_cmd_window): Set can_highlight.
6984 2019-06-25 Tom Tromey <tom@tromey.com>
6986 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
6988 (tui_make_visible, tui_make_invisible): Rewrite.
6989 (tui_win_info::make_visible): Remove.
6990 (tui_source_window_base::make_visible): Update.
6991 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
6992 method. Moved from...
6993 (struct tui_win_info) <make_visible>: ...here.
6995 2019-06-25 Tom Tromey <tom@tromey.com>
6997 * tui/tui-winsource.c
6998 (tui_source_window_base::do_scroll_horizontal): Remove direction
7000 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7001 direction parameter.
7002 * tui/tui-win.c (tui_win_info::forward_scroll)
7003 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7004 (tui_win_info::right_scroll): Update.
7005 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7006 direction parameter.
7007 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7008 direction parameter.
7009 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7010 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7011 Remove direction parameter.
7012 (struct tui_source_window_base, struct tui_source_window)
7013 (struct tui_disasm_window, struct tui_data_window)
7014 (struct tui_cmd_window): Update.
7016 2019-06-25 Tom Tromey <tom@tromey.com>
7018 * tui/tui-winsource.h (tui_set_exec_info_content)
7019 (tui_show_exec_info_content, tui_erase_exec_info_content)
7020 (tui_clear_exec_info_content, tui_update_exec_info): Change
7021 argument to tui_source_window_base.
7022 * tui/tui-winsource.c (tui_set_exec_info_content)
7023 (tui_show_exec_info_content, tui_erase_exec_info_content)
7024 (tui_clear_exec_info_content, tui_update_exec_info): Change
7025 argument to tui_source_window_base.
7027 2019-06-25 Tom Tromey <tom@tromey.com>
7029 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7030 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7032 2019-06-25 Tom Tromey <tom@tromey.com>
7034 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7037 2019-06-25 Tom Tromey <tom@tromey.com>
7039 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7041 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7043 * tui/tui-source.c (tui_set_source_content): Update.
7044 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7046 2019-06-25 Tom Tromey <tom@tromey.com>
7048 * tui/tui-win.c (window_name_completer, tui_set_focus)
7049 (tui_all_windows_info): Use name method.
7050 * tui/tui-data.h (struct tui_gen_win_info)
7051 (struct tui_source_window, struct tui_disasm_window)
7052 (struct tui_data_window, struct tui_cmd_window) <name>: New
7054 (tui_win_name): Don't declare.
7055 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7056 (tui_win_name): Remove.
7058 2019-06-25 Tom Tromey <tom@tromey.com>
7060 * tui/tui-winsource.h (tui_update_source_window)
7061 (tui_update_source_window_as_is): Change parameter type.
7062 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7063 to be a tui_source_window_base.
7064 (tui_update_source_window_as_is): Likewise.
7065 * tui/tui-win.c (make_visible_with_new_height): Update.
7067 2019-06-25 Tom Tromey <tom@tromey.com>
7069 * tui/tui-winsource.c (tui_erase_source_content)
7070 (tui_show_source_content, tui_show_exec_info_content)
7071 (tui_erase_exec_info_content): Use refresh_window method.
7072 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7073 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7074 from tui_refresh_win.
7075 (tui_data_window::refresh_window): New method.
7076 (tui_win_info::refresh, tui_source_window_base::refresh)
7077 (tui_refresh_all): Use refresh_window method.
7078 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7080 * tui/tui-regs.c (tui_display_register): Call refresh_window
7082 * tui/tui-layout.c (show_source_disasm_command)
7083 (show_source_or_disasm_and_command): Call refresh_window method.
7084 * tui/tui-data.h (struct tui_gen_win_info)
7085 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7088 2019-06-25 Tom Tromey <tom@tromey.com>
7090 * tui/tui.c (tui_rl_other_window, tui_enable)
7091 (tui_is_window_visible, tui_get_command_dimension): Update.
7092 * tui/tui-winsource.c (tui_update_source_window_as_is)
7093 (tui_clear_source_content, tui_erase_source_content)
7094 (tui_show_source_line, tui_source_window_base::refill)
7095 (tui_source_window_base::do_scroll_horizontal)
7096 (tui_source_window_base::set_is_exec_point_at)
7097 (tui_update_breakpoint_info, tui_set_exec_info_content)
7098 (tui_alloc_source_buffer, tui_line_is_displayed)
7099 (tui_addr_is_displayed): Update.
7100 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7101 (tui_check_and_display_highlight_if_needed)
7102 (tui_win_info::make_visible, tui_win_info::refresh)
7103 (tui_refresh_all): Update.
7104 * tui/tui-windata.c (tui_first_data_item_displayed)
7105 (tui_delete_data_content_windows, tui_erase_data_content)
7106 (tui_display_all_data, tui_data_window::refresh_all)
7107 (tui_check_data_values): Update.
7108 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7109 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7110 (tui_win_info::backward_scroll, tui_refresh_all_win)
7111 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7112 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7113 (tui_source_window_base::set_new_height)
7114 (tui_data_window::set_new_height)
7115 (make_invisible_and_set_new_height)
7116 (make_visible_with_new_height, new_height_ok)
7117 (parse_scrolling_args): Update.
7118 * tui/tui-stack.c (tui_show_frame_info): Update.
7119 * tui/tui-source.c (tui_set_source_content)
7120 (tui_set_source_content_nil, tui_source_is_displayed)
7121 (tui_source_window::do_scroll_vertical): Update.
7122 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7123 (tui_display_registers_from, tui_display_reg_element_at_line)
7124 (tui_check_register_values, tui_reg_command): Update.
7125 * tui/tui-layout.c (tui_default_win_height)
7126 (show_source_disasm_command, show_data, init_and_make_win)
7127 (show_source_or_disasm_and_command): Update.
7128 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7129 (tui_redisplay_readline, tui_mld_flush)
7130 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7132 * tui/tui-disasm.c (tui_set_disassem_content)
7133 (tui_disasm_window::do_scroll_vertical): Update.
7134 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7136 (struct tui_win_info): Derive from tui_gen_win_info.
7137 <~tui_win_info>: Mark as override.
7138 <generic>: Remove member.
7139 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7140 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7141 (~tui_data_window, ~tui_win_info)
7142 (tui_free_all_source_wins_content): Update.
7143 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7145 2019-06-25 Tom Tromey <tom@tromey.com>
7147 * tui/tui-layout.c (init_and_make_win): Use new.
7148 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7149 destructor, initializers.
7150 (tui_alloc_generic_win_info): Don't declare.
7151 * tui/tui-data.c (_locator): Add argument to constructor.
7152 (source_win, disasm_win): New globals.
7153 (exec_info): Remove.
7154 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7156 (tui_alloc_generic_win_info): Remove.
7157 (init_content_element): Use new.
7158 (tui_win_info::tui_win_info): Update.
7159 (free_content_elements) <case DATA_WIN>: Use delete.
7161 2019-06-25 Tom Tromey <tom@tromey.com>
7163 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7164 * tui/tui-windata.c (tui_first_data_item_displayed)
7165 (tui_delete_data_content_windows): Update.
7166 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7167 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7168 (tui_display_registers_from, tui_check_register_values): Update.
7169 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7171 * tui/tui-data.c (init_content_element): Update. Allocate the new
7173 (tui_free_data_content): Update.
7174 (free_content_elements) <case DATA_WIN>: Free the window.
7176 2019-06-25 Tom Tromey <tom@tromey.com>
7178 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7180 * tui/tui-layout.c (make_command_window)
7181 (show_source_disasm_command, show_data, init_and_make_win)
7182 (show_source_or_disasm_and_command): Update.
7183 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7185 <can_highight, is_highlighted>: Now bool.
7186 (tui_set_win_highlight): Don't declare.
7187 * tui/tui-data.c (tui_set_win_highlight): Remove.
7189 2019-06-25 Tom Tromey <tom@tromey.com>
7191 * tui/tui-wingeneral.c (make_visible): Remove check of window
7194 2019-06-25 Tom Tromey <tom@tromey.com>
7196 * tui/tui-win.c (tui_win_info::max_height)
7197 (tui_cmd_window::max_height): New methods.
7198 (new_height_ok): Call max_height.
7199 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7200 <max_height>: New method.
7202 2019-06-25 Tom Tromey <tom@tromey.com>
7204 * tui/tui-win.c (tui_source_window_base::set_new_height)
7205 (tui_data_window::set_new_height): New methods.
7206 (make_invisible_and_set_new_height): Call set_new_height method.
7207 * tui/tui-data.h (struct tui_win_info)
7208 (struct tui_source_window_base, struct tui_data_window)
7209 <set_new_height>: New method.
7211 2019-06-25 Tom Tromey <tom@tromey.com>
7213 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7214 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7215 tui_refresh_data_win.
7216 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7218 (tui_refresh_all_win): Call the refresh_all method.
7219 (tui_set_focus): Likewise.
7220 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7221 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7224 2019-06-25 Tom Tromey <tom@tromey.com>
7226 * tui/tui-winsource.h (tui_refill_source_window)
7227 (tui_set_is_exec_point_at): Don't declare.
7228 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7229 (tui_source_window_base::refill): Rename from
7230 tui_refill_source_window.
7231 (tui_source_window_base::do_scroll_horizontal): Update.
7232 (tui_source_window_base::set_is_exec_point_at): Rename from
7233 tui_set_is_exec_point_at.
7234 (tui_update_all_breakpoint_info): Update.
7235 * tui/tui-stack.c (tui_show_frame_info): Update.
7236 * tui/tui-layout.c (show_data): Add cast.
7237 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7238 * tui/tui-data.h (struct tui_source_window_base) <refill,
7239 set_is_exec_point_at>: New methods.
7240 (tui_source_windows, tui_add_to_source_windows): Update types.
7241 (tui_add_to_source_windows): Remove redundant declaration.
7242 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7243 (tui_source_windows): Change return type.
7244 (tui_clear_source_windows_detail): Update.
7245 (tui_add_to_source_windows): Change type of parameter.
7246 (tui_free_all_source_wins_content): Update.
7248 2019-06-25 Tom Tromey <tom@tromey.com>
7250 * tui/tui-wingeneral.c (tui_win_info::refresh)
7251 (tui_source_window_base::refresh): New methods.
7252 (tui_refresh_all): Call the refresh method.
7253 * tui/tui-data.h (struct tui_win_info)
7254 (struct tui_source_window_base) <refresh>: New method.
7256 2019-06-25 Tom Tromey <tom@tromey.com>
7258 * tui/tui.h (tui_is_window_visible): Return bool.
7259 * tui/tui.c (tui_is_window_visible): Return bool.
7260 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7261 (tui_make_visible, tui_make_invisible)
7262 (tui_win_info::make_visible)
7263 (tui_source_window_base::make_visible, make_all_visible)
7264 (tui_make_all_visible, tui_make_all_invisible): Update.
7265 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7266 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7268 (struct tui_win_info, struct tui_source_window_base)
7269 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7270 * tui/tui-data.c (tui_init_generic_part): Update.
7272 2019-06-25 Tom Tromey <tom@tromey.com>
7274 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7275 (tui_source_window_base::make_visible): New methods.
7276 (make_all_visible): Make method call.
7277 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7278 (struct tui_source_window_base, struct tui_cmd_window): Override
7280 (tui_win_is_source_type): Don't declare.
7281 * tui/tui-data.c (tui_win_is_source_type): Remove.
7283 2019-06-25 Tom Tromey <tom@tromey.com>
7285 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7288 2019-06-25 Tom Tromey <tom@tromey.com>
7290 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7291 Inline constructor. Add initializers for members.
7292 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7293 constructors; now inline in class.
7295 2019-06-25 Tom Tromey <tom@tromey.com>
7297 * tui/tui-regs.c (tui_show_registers): Update.
7298 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7300 * tui/tui-data.c (tui_data_window::clear_detail)
7301 (tui_data_window): Update.
7303 2019-06-25 Tom Tromey <tom@tromey.com>
7305 * tui/tui-windata.c (tui_display_all_data)
7306 (tui_display_data_from_line, tui_display_data_from)
7307 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7309 * tui/tui-regs.c (tui_last_regs_line_no)
7310 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7311 (tui_show_registers, tui_show_register_group)
7312 (tui_display_registers_from, tui_display_reg_element_at_line)
7313 (tui_display_registers_from_line, tui_check_register_values)
7314 (tui_reg_next, tui_reg_prev): Update.
7315 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7316 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7318 (struct tui_win_info) <detail>: Remove. Add new fields from
7320 (TUI_DATA_WIN): Add cast.
7321 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7322 (~tui_data_window): Simplify.
7324 2019-06-25 Tom Tromey <tom@tromey.com>
7326 * tui/tui-layout.c (show_source_disasm_command)
7327 (show_source_or_disasm_and_command): Update.
7328 * tui/tui-io.c (update_cmdwin_start_line)
7329 (tui_redisplay_readline): Update.
7330 * tui/tui-data.h (struct tui_command_info): Remove.
7331 (struct tui_win_info) <detail>: Remove command_info member.
7332 (struct tui_data_window) <start_line>: New member, from
7334 (TUI_CMD_WIN): Add casts.
7336 2019-06-25 Tom Tromey <tom@tromey.com>
7338 * tui/tui-winsource.c (tui_update_source_window)
7339 (tui_refill_source_window)
7340 (tui_source_window_base::do_scroll_horizontal)
7341 (tui_update_breakpoint_info, tui_set_exec_info_content)
7342 (tui_show_exec_info_content, tui_erase_exec_info_content)
7343 (tui_clear_exec_info_content): Update.
7344 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7346 * tui/tui-win.c (make_invisible_and_set_new_height)
7347 (make_visible_with_new_height): Update.
7348 * tui/tui-source.c (tui_set_source_content)
7349 (tui_show_symtab_source): Update.
7350 * tui/tui-layout.c (extract_display_start_addr)
7351 (show_source_disasm_command, show_data)
7352 (make_source_or_disasm_window)
7353 (show_source_or_disasm_and_command): Update.
7354 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7355 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7357 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7358 to tui_source_window_base.
7359 (struct tui_win_info) <detail>: Remove source_info member.
7360 (struct tui_source_window_base) <has_locator>: Inline.
7361 Move contents from tui_source_info; rename has_locator member to
7363 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7364 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7366 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7368 (tui_free_all_source_wins_content): Cast to
7369 tui_source_window_base.
7371 2019-06-25 Tom Tromey <tom@tromey.com>
7373 * tui/tui-win.c (make_invisible_and_set_new_height)
7374 (make_visible_with_new_height): Call has_locator method.
7375 * tui/tui-layout.c (show_source_disasm_command, show_data)
7376 (show_source_or_disasm_and_command): Update for bool change.
7377 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7378 (tui_win_info) <has_locator>: New method.
7379 (struct tui_source_window_base) <has_locator>: New method.
7380 (tui_win_has_locator): Don't declare.
7381 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7382 from tui_win_has_locator.
7383 (tui_source_window_base): Use false, not FALSE.
7385 2019-06-25 Tom Tromey <tom@tromey.com>
7387 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7388 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7389 clear_detail method directly.
7390 (tui_clear_win_detail): Remove.
7392 2019-06-25 Tom Tromey <tom@tromey.com>
7394 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7395 "this", not TUI_DISASM_WIN.
7397 2019-06-25 Tom Tromey <tom@tromey.com>
7399 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7401 * tui/tui-winsource.c
7402 (tui_source_window_base::do_scroll_horizontal): Rename from
7403 tui_horizontal_source_scroll.
7404 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7405 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7406 from tui_vertical_data_scroll.
7407 * tui/tui-win.h (tui_scroll): Don't declare.
7408 * tui/tui-win.c (tui_win_info::forward_scroll)
7409 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7410 (tui_win_info::right_scroll): Rename and update.
7411 (tui_scroll_forward_command, tui_scroll_backward_command)
7412 (tui_scroll_left_command, tui_scroll_right_command): Update.
7413 (tui_scroll): Remove.
7414 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7415 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7416 from tui_vertical_source_scroll.
7417 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7418 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7419 from tui_vertical_disassem_scroll.
7420 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7421 do_scroll_horizontal>: New methods.
7422 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7424 (struct tui_source_window_base): Add do_scroll_horizontal.
7425 (struct tui_source_window, struct tui_disasm_window): Add
7427 (struct tui_data_window, struct tui_cmd_window): Add
7428 do_scroll_horizontal and do_scroll_vertical.
7429 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7431 2019-06-25 Tom Tromey <tom@tromey.com>
7433 * tui/tui-data.h (struct tui_source_window_base): New struct.
7434 (struct tui_source_window): Derive from tui_source_window_base.
7435 (struct tui_disasm_window): New struct.
7436 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7437 from tui_source_window::clear_detail.
7438 (tui_source_window_base): Rename from tui_source_window.
7439 (~tui_source_window_base): Rename from ~tui_source_window.
7440 (tui_alloc_win_info): Create a tui_disasm_window.
7442 2019-06-25 Tom Tromey <tom@tromey.com>
7444 * tui/tui-data.h (struct tui_source_window)
7445 (struct tui_data_window): Declare destructors.
7446 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7448 (tui_win_info): Simplify.
7450 2019-06-25 Tom Tromey <tom@tromey.com>
7452 * tui/tui-winsource.c (tui_display_main)
7453 (tui_update_source_windows_with_addr)
7454 (tui_update_all_breakpoint_info): Update.
7455 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7456 (new_height_ok, parse_scrolling_args): Update.
7457 * tui/tui-stack.c (tui_show_frame_info): Update.
7458 * tui/tui-data.h (struct tui_list): Remove.
7459 (tui_source_windows): Return a reference to a std::vector.
7460 * tui/tui-data.c (source_windows): Now a std::vector.
7461 (tui_source_windows): Change return type.
7462 (tui_clear_source_windows): Rewrite.
7463 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7464 (tui_free_all_source_wins_content): Rewrite.
7466 2019-06-25 Tom Tromey <tom@tromey.com>
7468 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7469 (struct tui_data_window, struct tui_cmd_window): Declare
7470 clear_detail method.
7471 * tui/tui-data.c (tui_source_window::clear_detail)
7472 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7474 (tui_clear_win_detail): Simplify.
7476 2019-06-25 Tom Tromey <tom@tromey.com>
7478 * tui/tui-layout.c (make_source_window, make_disasm_window)
7479 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7480 Return the new window.
7481 (show_source_disasm_command, show_data)
7482 (show_source_or_disasm_and_command): Update.
7484 2019-06-25 Tom Tromey <tom@tromey.com>
7486 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7487 parameter. Return the new window.
7488 (show_source_disasm_command): Update and remove NULL check.
7489 (show_source_or_disasm_and_command): Update.
7491 2019-06-25 Tom Tromey <tom@tromey.com>
7493 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7495 2019-06-25 Tom Tromey <tom@tromey.com>
7497 * tui/tui-data.h (struct tui_win_info): Make constructor
7498 protected. Make destructor virtual. Add initializers.
7499 (tui_source_window, tui_data_window, tui_cmd_window): New
7501 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7502 constructor. Add "type" parameter.
7503 (tui_source_window, tui_data_window, tui_cmd_window): New
7505 (tui_alloc_win_info): Instantiate the appropriate subclass.
7507 2019-06-25 Tom Tromey <tom@tromey.com>
7509 * tui/tui-win.c (tui_resize_all): Use delete.
7510 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7512 (tui_free_window): Don't declare.
7513 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7516 2019-06-25 Tom Tromey <tom@tromey.com>
7518 * tui/tui-data.h (struct tui_win_info): Add constructor.
7519 * tui/tui-data.c (tui_alloc_win_info): Use new.
7520 (tui_free_window): Use delete.
7522 2019-06-22 Tom Tromey <tom@tromey.com>
7524 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7526 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7528 2019-06-22 Tom Tromey <tom@tromey.com>
7530 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7532 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7534 2019-06-22 Tom de Vries <tdevries@suse.de>
7536 * dwarf2read.c (create_addrmap_from_aranges)
7537 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7540 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
7542 * dwarf2read.h (dwarf2_section_info_def): Remove.
7543 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7544 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7545 std::vector<dwarf2_section_info>.
7546 (struct dwo_file) <~dwo_file>: Remove.
7547 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7549 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7550 (dwarf2_read_debug_names): Likewise.
7551 (create_debug_types_hash_table): Change parameter type to
7552 array_view, adjust code accordingly.
7553 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7554 (partial_die_info::fixup): Likewise.
7555 (determine_prefix): Likewise.
7556 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7558 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7560 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7562 <~dwo_file>: Remove call to gdb_bfd_unref.
7563 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7564 gdb_bfd_ref_ptr::get.
7566 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7568 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7570 * dwarf2read.c (struct dwo_file): Initialize fields.
7572 (free_dwo_file): Remove, move content to ~dwo_file.
7573 (struct dwo_file_deleter): Remove.
7574 (dwo_file_up>: Remove custom deleter.
7575 (free_dwo_files): Remove.
7576 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7578 (process_skeletonless_type_units): Call unique_ptr::get.
7579 (allocate_dwo_file_hash_table): Add deleter to created hash
7580 table. Change return type to htab_up.
7581 (lookup_dwo_file_slot): Don't memset dwo_file, call
7583 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7584 (create_dwo_unit_in_dwp_v2): Likewise.
7585 (open_and_init_dwo_file): Likewise.
7586 (free_dwo_file_from_slot): Remove.
7588 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7590 * dwarf2read.h (struct dwarf2_section_info) <readin,
7591 is_virtual>: Change type to bool.
7592 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7595 2019-06-19 Tom Tromey <tom@tromey.com>
7597 * tui/tui-data.h (tui_init_content_element): Don't declare.
7599 2019-06-19 Tom Tromey <tom@tromey.com>
7601 * tui/tui-data.h (tui_init_win_info): Don't declare.
7603 2019-06-19 Tom de Vries <tdevries@suse.de>
7605 * dwarf2read.h (abstract_to_concrete): Change type to
7606 std::unordered_map<sect_offset, std::vector<sect_offset>,
7607 gdb::hash_enum<sect_offset>>.
7609 2019-06-19 Tom Tromey <tromey@adacore.com>
7611 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7612 EVAL_AVOID_SIDE_EFFECTS specially.
7614 2019-06-19 Tom Tromey <tromey@adacore.com>
7616 * source-cache.c (highlighter): New global.
7617 (source_cache::get_source_lines): Create a highlighter on demand.
7619 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7621 * defs.h (deprecated_interactive_hook): Delete declaration.
7622 * interps.c (clear_interpreter_hooks): Remove use of
7623 deprecated_interactive_hook.
7624 * top.c (deprecated_interactive_hook): Delete definition.
7625 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7627 2019-06-18 Tom de Vries <tdevries@suse.de>
7630 * dwarf2read.h (abstract_to_concrete): Change type from
7631 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7632 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7633 * dwarf2read.c (read_variable): Update.
7634 (dwarf2_fetch_die_loc_sect_off): Update.
7636 2019-06-17 Tom de Vries <tdevries@suse.de>
7639 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7640 accessing parent[parent_len - 1].
7642 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7645 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7646 call dtrace_process_dof with NULL dof.
7648 2019-06-16 Tom de Vries <tdevries@suse.de>
7651 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7653 2019-06-16 Tom Tromey <tom@tromey.com>
7655 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7656 (make_all_visible): Use address of member.
7658 2019-06-16 Tom Tromey <tom@tromey.com>
7660 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7661 (tui_free_window, free_content, free_content_elements): Remove
7663 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7665 * tui/tui-regs.c (tui_show_register_group)
7666 (tui_display_registers_from, tui_display_reg_element_at_line):
7667 Remove unnecessary cast.
7669 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7671 * linux-nat.c (normal_mask): Delete.
7672 (_initialize_linux_nat): Don't initialise normal_mask.
7674 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7677 * dwarf-index-write.h (write_psymtabs_to_index): Add
7678 dwz_basename parameter.
7679 * dwarf-index-write.c (write_gdbindex): Move file writing to
7680 write_gdbindex_1. Change return type void.
7681 (assert_file_size): Move up, remove filename parameter.
7682 (write_gdbindex_1): New function.
7683 (write_debug_names): Change return type to void, call
7685 (struct index_wip_file): New struct.
7686 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7687 file logic to index_wip_file. Write index for dwz file if
7689 (save_gdb_index_command): Pass basename of dwz file, if present.
7690 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7691 build-id of dwz file, if present.
7692 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7693 (dwarf2_get_dwz_file): Likewise.
7694 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7695 (dwarf2_get_dwz_file): Likewise.
7697 2019-06-16 Tom Tromey <tom@tromey.com>
7699 * coffread.c (process_coff_symbol): Use xstrdup.
7700 * value.c (create_internalvar): Use xstrdup.
7702 2019-06-16 Tom Tromey <tom@tromey.com>
7704 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7705 * breakpoint.c (stopin_command, stopat_command)
7706 (until_break_command, decode_location_default): Remove unnecessary
7708 * utils.c (subset_compare): Remove unnecessary cast.
7709 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7711 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7713 * infcmd.c (path_command): Remove unnecessary cast.
7714 * coffread.c (decode_type): Remove unnecessary cast.
7715 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7716 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7717 * tui/tui-stack.c (tui_show_locator_content)
7718 (tui_show_frame_info): Remove unnecessary cast.
7719 * tui/tui-win.c (tui_scroll_forward_command)
7720 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7721 (parse_scrolling_args): Remove unnecessary cast.
7722 * tui/tui-data.c (init_win_info, tui_del_window)
7723 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7724 (free_content_elements): Remove unnecessary cast.
7725 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7727 * tui/tui-source.c (tui_set_source_content)
7728 (tui_vertical_source_scroll): Remove unnecessary cast.
7729 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7731 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7732 * tui/tui-regs.c (tui_display_registers_from)
7733 (tui_display_register): Remove unnecessary cast.
7734 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7735 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7736 (make_visible): Remove unnecessary cast.
7737 * tui/tui-winsource.c (tui_erase_source_content)
7738 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7740 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7741 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7742 * stabsread.c (read_type, read_array_type, read_range_type):
7743 Remove unnecessary cast.
7744 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7745 (parse_symbol, parse_type, upgrade_type, parse_external)
7746 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7748 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7750 2019-06-16 Tom Tromey <tom@tromey.com>
7752 * tui/tui-data.c (tui_alloc_generic_win_info)
7753 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7756 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7757 Andrew Burgess <andrew.burgess@embecosm.com>
7759 * f-typeprint.c (f_print_type): Don't return early for not
7760 associated or not allocated types.
7761 (f_type_print_varspec_suffix): Add print_rank parameter and print
7762 ranks of array types in case they dangling.
7763 (f_type_print_base): Add print_rank parameter.
7765 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7767 * NEWS: Mention new MI commands.
7768 * break-catch-throw.c (enum exception_event_kind): Move to
7770 (print_mention_exception_catchpoint): Output text as a single
7772 (catch_exception_command_1): Rename to...
7773 (catch_exception_event): ...this, make non-static, update header
7774 command, and change some parameter types.
7775 (catch_catch_command): Update for changes to
7776 catch_exception_command_1.
7777 (catch_throw_command): Likewise.
7778 (catch_rethrow_command): Likewise.
7779 * breakpoint.c (enum exception_event_kind): Delete.
7780 * breakpoint.h (enum exception_event_kind): Moved here from
7781 break-catch-throw.c.
7782 (catch_exception_event): Declare.
7783 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7784 (mi_cmd_catch_throw): New function.
7785 (mi_cmd_catch_rethrow): New function.
7786 (mi_cmd_catch_catch): New function.
7787 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7788 'catch-catch' entries.
7789 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7790 (mi_cmd_catch_rethrow): Declare.
7791 (mi_cmd_catch_catch): Declare.
7793 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7795 * annotate.c (annotate_source_line): Change return type to void,
7796 update implementation to match.
7797 * annotate.h (annotate_source_line): Change return type to void,
7798 update header comment.
7799 * stack.c (print_frame_info): Don't change what frame information
7800 is printed based on whether annotations are on or not.
7802 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7804 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7805 (annotate_source): Make static.
7806 (annotate_source_line): Moved from source.c and renamed from
7807 identify_source_line. Update the return type.
7808 * annotate.h (annotate_source): Delete declaration.
7809 (annotate_source_line): Declaration moved from source.h, and
7810 renamed from identify_source_line. Return type updated.
7811 * source.c (identify_source_line): Moved to annotate.c and renamed
7812 to annotate_source_line.
7813 (info_line_command): Remove check of annotation_level.
7814 * source.h (identify_source_line): Move declaration to annotate.h
7815 and rename to annotate_source_line.
7816 * stack.c: Add 'annotate.h' include.
7817 (print_frame_info): Remove check of annotation_level before
7818 calling annotate_source_line.
7820 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7822 * source-cache.c (source_cache::get_plain_source_lines): Use
7823 open_source_file_with_line_charpos instead of just
7824 open_source_file, remove call to find_source_lines.
7825 (source_cache::get_source_lines): Likewise.
7826 * source.c (find_source_lines): Make static.
7827 (get_filename_and_charpos): Renamed into...
7828 (open_source_file_with_line_charpos): ..this along with changes to
7829 return a scoped_fd, and some other minor clean ups.
7830 (identify_source_line): Use open_source_file_with_line_charpos.
7831 (search_command_helper): Use open_source_file_with_line_charpos
7832 instead of just open_source_file, remove call to
7834 * source.h (open_source_file_with_line_charpos): Declare new
7836 (find_source_lines): Delete declaration.
7838 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7840 * source.c (get_filename_and_charpos): Remove fullname
7842 (identify_source_line): Update call to get_filename_and_charpos.
7844 2019-06-14 Tom Tromey <tromey@adacore.com>
7847 * ui-style.h (skip_ansi_escape): Update comment.
7848 * ui-file.h (class no_terminal_escape_file): New class.
7849 * ui-file.c (no_terminal_escape_file::write)
7850 (no_terminal_escape_file::puts): New methods.
7851 * cli/cli-logging.c (handle_redirections): Use
7852 no_terminal_escape_file.
7854 2019-06-14 Tom Tromey <tromey@adacore.com>
7856 * NEWS: Move convenience variable news above Python news.
7858 2019-06-14 Tom Tromey <tom@tromey.com>
7860 * gnulib: Move directory to top-level.
7861 * configure.ac: Don't configure gnulib.
7862 * configure: Rebuild.
7863 * common/common-defs.h: Use new path to gnulib.
7864 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
7866 (INCGNU): Look in new gnulib location.
7867 (HFILES_NO_SRCDIR): Remove gnulib files.
7868 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
7869 (generated_files): Remove GNULIB_H.
7870 ($(LIBGNU), all-lib): Remove targets.
7871 (distclean): Don't mention GNULIB_BUILDDIR.
7872 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
7874 2019-06-14 Tom Tromey <tromey@adacore.com>
7876 * symfile.c (add_symbol_file_command): Remove obsolete comment.
7877 Warn if symbol file does not provide any symbols.
7879 2019-06-14 Tom Tromey <tromey@adacore.com>
7881 * source.c (find_and_open_source): Respect basenames_may_differ.
7883 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
7885 * annotate.c (annotate_breakpoints_invalid): Make use of
7886 scoped_restore_terminal_state.
7887 (annotate_frames_invalid): Likewise.
7889 2019-06-14 Tom Tromey <tromey@adacore.com>
7891 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
7892 allow assignment to an internalvar.
7894 2019-06-14 Tom Tromey <tromey@adacore.com>
7896 * ada-lex.l: Allow "_" in attribute names.
7898 2019-06-14 Tom Tromey <tromey@adacore.com>
7901 * regcache.c (registers_changed): Don't call alloca.
7902 * top.c (execute_command): Don't call alloca.
7904 2019-06-13 Pedro Alves <palves@redhat.com>
7906 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
7907 'expression'. When parsing an expression, error out if there's
7908 junk after "unlimited".
7909 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7910 (do_set_command): Adjust calls to is_unlimited_literal.
7912 2019-06-13 Pedro Alves <palves@redhat.com>
7914 * compile/compile.c (make_compile_options_def_group): Add braces
7915 around array_view initializer.
7916 * thread.c (make_thread_apply_all_options_def_group)
7917 (make_thread_apply_all_options_def_group): Likewise.
7919 2019-06-13 Pedro Alves <palves@redhat.com>
7921 * NEWS (New commands): Mention "maint test-options
7922 require-delimiter", "maint test-options unknown-is-error", "maint
7923 test-options unknown-is-operand" and "maint show
7924 test-options-completion-result".
7925 (New command options, command completion): New section.
7926 (Completion improvements): New section.
7927 Mention that you can abbreviate "unlimited".
7929 2019-06-13 Pedro Alves <palves@redhat.com>
7931 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
7932 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
7933 * unittests/cli-utils-selftests.c (test_parse_flags)
7934 (test_parse_flags_qcs): Delete.
7935 (test_cli_utils): Don't call deleted functions.
7937 2019-06-13 Pedro Alves <palves@redhat.com>
7939 * thread.c: Include "cli/cli-option.h".
7940 (tp_array_compar_ascending): Global.
7941 (tp_array_compar): Delete function.
7942 (tp_array_compar_ascending, tp_array_compar_descending): New
7944 (ascending_option_def, qcs_flag_option_def)
7945 (thr_qcs_flags_option_defs)
7946 (make_thread_apply_all_options_def_group)
7947 (make_thread_apply_options_def_group): New.
7948 (thread_apply_all_command): Use gdb::option::process_options.
7949 (thread_apply_command_completer)
7950 (thread_apply_all_command_completer): New.
7951 (thread_apply_command): Use gdb::option::process_options.
7952 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
7953 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
7954 to generate help text of "thread apply". Adjust "taas"'s help.
7955 * tid-parse.c (tid_range_parser::in_thread_range): New method.
7956 * tid-parse.h (tid_range_parser::in_thread_range): New method.
7958 2019-06-13 Pedro Alves <palves@redhat.com>
7960 * thread.c (thread_apply_command): Check for invalid TID with
7961 isdigit instead of !isalpha.
7963 2019-06-13 Pedro Alves <palves@redhat.com>
7965 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
7966 (validate_flags_qcs): New.
7967 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
7968 (validate_flags_qcs): Declare.
7969 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
7970 (make_frame_apply_options_def_group): New.
7971 (frame_apply_command_count): Process options with
7972 gdb::option::process_options.
7973 (frame_apply_completer): New.
7974 (frame_apply_level_completer, frame_apply_all_completer)
7975 (frame_apply_completer): New.
7976 (_initialize_stack): Update help of "frame apply", "frame apply
7977 level", "frame apply all" and "faas" to mention supported options
7978 and install command completers.
7979 * stack.h (frame_apply_all_completer): Declare.
7980 * thread.c: Include "stack.h".
7981 (tfaas_command): Add "--".
7982 (_initialize_thread): Update help "tfaas" to mention supported
7983 options and install command completer.
7985 2019-06-13 Pedro Alves <palves@redhat.com>
7987 * completer.c (complete_nested_command_line): New.
7988 (gdb_completion_word_break_characters_throw): Add assertion.
7989 * completer.h (complete_nested_command_line): Declare.
7991 2019-06-13 Pedro Alves <palves@redhat.com>
7993 * stack.c (parse_backtrace_qualifiers): New.
7994 (backtrace_command): Use it.
7995 (backtrace_command_completer): Complete on qualifiers.
7997 2019-06-13 Pedro Alves <palves@redhat.com>
7999 * frame.c: Include "cli/cli-option.h.
8000 (user_set_backtrace_options): New.
8001 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8003 (get_prev_frame): Adjust.
8004 (boolean_option_def, uinteger_option_def)
8005 (set_backtrace_option_defs): New.
8006 (_initialize_frame): Adjust and use
8007 gdb::option::add_setshow_cmds_for_options to install "set
8008 backtrace past-main" and "set backtrace past-entry".
8009 * frame.h: Include "cli/cli-option.h".
8010 (struct frame_print_options): Forward declare.
8011 (print_frame_arguments_all, print_frame_arguments_scalars)
8012 (print_frame_arguments_none): Declare.
8013 (print_entry_values): Delete declaration.
8014 (struct frame_print_options, user_frame_print_options): New.
8015 (struct set_backtrace_options): New.
8016 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8017 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8018 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8019 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8020 (list_args_or_locals): Add frame_print_options parameter.
8021 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8022 * python/py-framefilter.c (enumerate_args): Pass down
8023 USER_FRAME_PRINT_OPTIONS.
8024 * stack.c: Include "cli/cli-option.h".
8025 (print_frame_arguments_all, print_frame_arguments_scalars)
8026 (print_frame_arguments_none): Declare.
8027 (print_raw_frame_arguments, print_entry_values): Delete.
8028 (user_frame_print_options): New.
8029 (boolean_option_def, enum_option_def, frame_print_option_defs):
8031 (struct backtrace_cmd_options): New.
8032 (bt_flag_option_def): New.
8033 (backtrace_command_option_defs): New.
8034 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8035 (print_frame_arg, read_frame_arg, print_frame_args)
8036 (print_frame_info, print_frame): Add frame_print_options parameter
8038 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8039 (backtrace_command_1): Add frame_print_options and
8040 backtrace_cmd_options parameters and use them.
8041 (make_backtrace_options_def_group): New.
8042 (backtrace_command): Process command options with
8043 gdb::option::process_options.
8044 (backtrace_command_completer): New.
8045 (_initialize_stack): Extend "backtrace"'s help to mention
8046 supported options. Install completer for "backtrace".
8047 Install some settings commands with add_setshow_cmds_for_options.
8049 2019-06-13 Pedro Alves <palves@redhat.com>
8051 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8052 and that "set/show print raw frame-arguments" are now deprecated.
8054 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8056 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8057 * stack.c (_initialize_stack): Install "set/show print
8058 raw-frame-arguments", and deprecate "set/show print raw
8060 * valprint.c (_initialize_valprint): Deprecate "set/show print
8063 2019-06-13 Pedro Alves <palves@redhat.com>
8065 * compile/compile.c (struct compile_options): New.
8066 (compile_flag_option_def, compile_command_option_defs)
8067 (make_compile_options_def_group): New.
8068 (compile_file_command): Handle options with
8069 gdb::option::process_options.
8070 (compile_file_command_completer): New function.
8071 (compile_code_command): Handle options with
8072 gdb::option::process_options.
8073 (compile_code_command_completer): New function.
8074 (_initialize_compiler): Install completers for "compile code" and
8075 "compile file". Mention available options in "compile code" and
8076 "compile code"'s help.
8077 * completer.c (advance_to_completion_word): New, factored out from
8079 (advance_to_expression_complete_word_point): ... this.
8080 (advance_to_filename_complete_word_point): New.
8081 * completer.h (advance_to_filename_complete_word_point): New
8084 2019-06-13 Pedro Alves <palves@redhat.com>
8086 * compile/compile.c: Include "cli/cli-option.h".
8087 (compile_print_value): Scope data pointer is now a
8088 value_print_options pointer; adjust.
8089 (compile_print_command): Process options. Scope data pointer is
8090 now a value_print_options pointer; adjust.
8091 (_initialize_compile): Update "compile print"'s help to include
8092 supported options. Install a completer for "compile print".
8093 * cp-valprint.c (show_vtblprint, show_objectprint)
8094 (show_static_field_print): Delete.
8095 (_initialize_cp_valprint): Don't install "set print
8096 static-members", "set print vtbl", "set print object" here.
8097 * printcmd.c: Include "cli/cli-option.h" and
8098 "common/gdb_optional.h".
8099 (print_command_parse_format): Rework to fill in a
8100 value_print_options instead of a format_data.
8101 (print_value): Change parameter type from format_data pointer to
8102 value_print_options reference. Adjust.
8103 (print_command_1): Process options. Adjust to pass down a
8104 value_print_options.
8105 (print_command_completer): New.
8106 (_initialize_printcmd): Install print_command_completer as
8107 handle_brkchars completer for the "print" command. Update
8108 "print"'s help to include supported options.
8109 * valprint.c: Include "cli/cli-option.h".
8110 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8111 here from cp-valprint.c.
8112 (boolean_option_def, uinteger_option_def)
8113 (value_print_option_defs, make_value_print_options_def_group):
8114 New. Use gdb::option::add_setshow_cmds_for_options to install
8115 "set print elements", "set print null-stop", "set print repeats",
8116 "set print pretty", "set print union", "set print array", "set
8117 print address", "set print symbol", "set print array-indexes".
8118 * valprint.h: Include <string> and "cli/cli-option.h".
8119 (make_value_print_options_def_group): Declare.
8120 (print_value): Change parameter type from format_data pointer to
8121 value_print_options reference.
8122 (print_command_completer): Declare.
8124 2019-06-13 Pedro Alves <palves@redhat.com>
8126 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8127 (COMMON_SFILES): Add maint-test-settings.c.
8128 * cli/cli-decode.c (boolean_enums): New global, factored out from
8130 (add_setshow_boolean_cmd): ... here.
8131 * cli/cli-decode.h (boolean_enums): Declare.
8132 * cli/cli-option.c: New file.
8133 * cli/cli-option.h: New file.
8134 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8135 factored out from ...
8136 (parse_cli_boolean_value(const char *)): ... this.
8137 (is_unlimited_literal): Change parameter type to pointer to
8138 pointer. Adjust and advance ARG pointer.
8139 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8140 (parse_cli_var_enum): New, factored out from ...
8141 (do_set_command): ... this. Adjust.
8142 * cli/cli-setshow.h (parse_cli_boolean_value)
8143 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8144 (parse_cli_var_enum): Declare.
8145 * cli/cli-utils.c: Include "cli/cli-option.h".
8146 (get_ulongest): New.
8147 * cli/cli-utils.h (get_ulongest): Declare.
8148 (check_for_argument): New overloads.
8149 * maint-test-options.c: New file.
8151 2019-06-13 Pedro Alves <palves@redhat.com>
8153 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8154 parse a range if "-" is at the end of the string.
8156 2019-06-13 Pedro Alves <palves@redhat.com>
8158 * cli/cli-setshow.c (parse_auto_binary_operation)
8159 (parse_cli_boolean_value): Don't allow "o".
8161 2019-06-13 Pedro Alves <palves@redhat.com>
8163 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8164 * NEWS: Mention maint test-settings KIND.
8165 * maint-test-settings.c: New file.
8167 2019-06-13 Pedro Alves <palves@redhat.com>
8169 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8171 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8174 2019-06-13 Pedro Alves <palves@redhat.com>
8176 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8179 2019-06-13 Pedro Alves <palves@redhat.com>
8181 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8183 2019-06-13 Pedro Alves <palves@redhat.com>
8185 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8186 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8188 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8189 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8191 (check_for_argument): Skip spaces after argument.
8193 2019-06-13 Pedro Alves <palves@redhat.com>
8195 * thread.c (thread_apply_command): Adjust TID parsing.
8196 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8197 detected before end of string.
8198 (tid_is_in_list): Error out if LIST is invalid.
8200 2019-06-13 Pedro Alves <palves@redhat.com>
8202 * completer.c (complete_line_internal_1): Rewind completion word
8204 (completion_tracker::advance_custom_word_point_by): Change
8205 parameter type to int.
8206 * completer.h (completion_tracker::advance_custom_word_point_by):
8209 2019-06-13 Pedro Alves <palves@redhat.com>
8211 * completer.c (advance_to_completion_word): Handle delimiters.
8213 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8215 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8217 2019-06-11 Tom Tromey <tom@tromey.com>
8219 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8220 (xmalloc_failed): Move to alloc.c.
8221 * alloc.c: New file.
8222 * Makefile.in (COMMON_SFILES): Add alloc.c.
8224 2019-06-11 Tom Tromey <tom@tromey.com>
8226 * nat/linux-waitpid.c: Don't include server.h.
8227 (linux_debug): Remove.
8228 (my_waitpid): Update.
8230 2019-06-11 Tom Tromey <tromey@adacore.com>
8232 * infcall.c (_initialize_infcall): Remove trailing newline from
8234 * user-regs.c (_initialize_user_regs): Remove trailing newline
8236 * typeprint.c (_initialize_typeprint): Remove trailing newline
8238 * reverse.c (_initialize_reverse): Remove trailing newlines from
8240 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8242 * language.c (add_set_language_command): Remove trailing newline
8244 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8246 * disasm.c (_initialize_disasm): Remove trailing newline from
8248 * top.c (init_main): Remove trailing newline from help.
8249 * interps.c (_initialize_interpreter): Remove trailing newline
8251 * btrace.c (_initialize_btrace): Remove trailing newlines from
8253 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8255 * python/python.c (_initialize_python): Remove trailing newline
8257 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8259 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8260 from help. Reformat some text.
8261 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8263 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8266 2019-06-11 Tom Tromey <tromey@adacore.com>
8268 * darwin-nat.c (darwin_decode_exception_message)
8269 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8271 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8273 * valops.c (value_slice): Check for not allocated or not
8276 2019-06-10 Tom de Vries <tdevries@suse.de>
8279 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8280 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8283 2019-06-10 Tom de Vries <tdevries@suse.de>
8286 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8287 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8289 2019-06-10 Tom de Vries <tdevries@suse.de>
8292 * symtab.c (struct demangled_name_entry): Add language field.
8293 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8294 static minimal symbol". Set and use language field.
8296 2019-06-10 Tom Tromey <tromey@adacore.com>
8298 * ada-lang.c (_initialize_ada_language): Update help text.
8300 2019-06-10 Tom Tromey <tromey@adacore.com>
8302 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8304 * guile/guile.c (handle_boot_error): Don't end warning with a
8306 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8307 warning with a newline.
8308 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8310 (s12z_frame_cache): Likewise.
8311 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8313 * solib-svr4.c (disable_probes_interface): Don't end warning with
8315 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8317 * python/python.c (do_finish_initialization): Don't end warning
8320 2019-06-10 Tom Tromey <tom@tromey.com>
8322 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8323 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8326 2019-06-10 Tom Tromey <tromey@adacore.com>
8328 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8330 (elf_new_init): Don't call stabsread_new_init.
8331 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8332 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8333 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8335 2019-06-10 Tom de Vries <tdevries@suse.de>
8339 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8341 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8343 * source.c (find_and_open_source): Also rewrite relative file
8346 2019-04-26 Amos Bird <amosbird@gmail.com>
8348 * annotate.c (annotate_thread_exited): Add "thread-exited"
8351 2019-06-06 Tom Tromey <tromey@adacore.com>
8353 * maint.h (class scoped_command_stats): Use
8354 DISABLE_COPY_AND_ASSIGN.
8355 <print_time>: New method.
8356 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8358 (scoped_command_stats::print_time): New method.
8360 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8362 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8363 instructions of lengths 6 or 8 bytes.
8365 2019-06-04 Pedro Alves <palves@redhat.com>
8367 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8369 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8370 * breakpoint.c (condition_completer): Likewise.
8371 * cli/cli-dump.c (scan_expression): Likewise.
8372 * common/filestuff.c (mkdir_recursive): Likewise.
8373 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8374 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8375 (gdb_abspath): Likewise.
8376 * compile/compile-cplus-types.c
8377 (compile_cplus_instance::decl_name): Likewise.
8378 * completer.c (complete_explicit_location):
8379 (signal_completer, reg_or_group_completer_1): Likewise.
8380 * cp-support.c (cp_remove_params_if_any): Likewise.
8381 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8382 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8383 * infcmd.c (strip_bg_char): Likewise.
8384 * linespec.c (copy_token_string): Likewise.
8385 * mi/mi-main.c (output_cores): Likewise.
8386 * psymtab.c (psymtab_search_name):
8387 * symfile.c (test_set_ext_lang_command): Likewise.
8388 * target.c (target_fileio_read_stralloc): Likewise.
8389 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8390 * value.c (complete_internalvar): Likewise.
8392 2019-06-04 Christian Biesinger <cbiesinger@google.com>
8394 Add objfile property to gdb.Type.
8395 * NEWS: Mention Python API addition.
8396 * python/py-type.c (typy_get_objfile): New method.
8398 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8400 * NEWS: Mention the new set|show style [title|highlight].
8401 Mention changes to "show style", "help" and "apropos".
8403 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8405 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8406 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8407 instead of print_help_for_command.
8408 (print_doc_of_command): New function.
8409 (help_list): Add 'apropos -v word' suggestion.
8410 (print_help_for_command): Style the command name using title style.
8411 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8412 (_initialize_cli_cmds): Describe -v in apropos_command help.
8414 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8416 * cli/cli-style.h (cli_style_option): Add name in constructor,
8417 add m_name class member, add constructor with intensity,
8418 add name class function.
8419 (cli_style_option::add_setshow_commands): Remove name argument.
8420 (highlight_style, title_style): New styles.
8421 * cli/cli-style.c (do_show): New function that shows a style
8422 characteristic styling the style name with itself.
8423 (set_style_name): New function.
8424 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8425 Update all callers according to the changes in cli/cli-style.h.
8426 * utils.h (fputs_highlighted): New function.
8427 * utils.c (fputs_highlighted): Likewise.
8429 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8431 * NEWS: Mention new pipe command and new convenience variables.
8433 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8435 * cli/cli-cmds.c (pipe_command): New function.
8436 (_initialize_cli_cmds): Call add_com for pipe_command.
8437 Define | as an alias for pipe.
8438 (exit_status_set_internal_vars): New function.
8439 (shell_escape): Call exit_status_set_internal_vars.
8440 cli/cli-decode.c (find_command_name_length): Recognize | as
8441 a single character command.
8443 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8445 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8446 top.c (execute_command_to_ui_file): New function, mostly a copy
8447 of execute_command_to_string.
8448 (execute_command_to_string): Implement by calling
8449 execute_command_to_ui_file.
8451 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8453 * top.h (saved_command_line): Remove declaration.
8454 * top.c (previous_saved_command_line, previous_repeat_arguments):
8456 (saved_command_line): Make static, define together with other
8458 (dont_repeat): Clear repeat_arguments.
8459 (repeat_previous, get_saved_command_line, save_command_line):
8461 (gdb_init): Initialize saved_command_line
8462 and previous_saved_command_line.
8463 * main.c (captured_main_1): Remove saved_command_line initialization.
8464 * event-top.c (handle_line_of_input): Update to use
8465 the new 'repeat' related functions instead of direct access to
8467 * command.h (repeat_previous, get_saved_command_line,
8468 save_command_line): New declarations.
8469 (dont_repeat): Add comment.
8471 2019-05-30 Tom Tromey <tromey@adacore.com>
8473 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8475 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8477 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8480 * completer.c (complete): Initialize variable word.
8482 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8484 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8485 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8486 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8487 'body' is NULL to the outter 'if', protecting the '!is_define'
8490 2019-05-29 Tom Tromey <tromey@adacore.com>
8492 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8493 (dwarf_unknown): New function.
8494 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8495 (dwarf_type_encoding_name): Use dwarf_unknown.
8497 2019-05-29 Tom Tromey <tromey@adacore.com>
8500 * cp-valprint.c (cp_print_value_fields): Call
8501 cp_print_static_field inside "try".
8503 2019-05-29 Tom Tromey <tromey@adacore.com>
8505 * inflow.c (struct terminal_info): Add default operator=.
8506 * configure: Rebuild.
8507 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8508 -Wdeprecated-copy-dtor, -Wredundant-move.
8510 2019-05-29 Tom Tromey <tromey@adacore.com>
8513 * infcmd.c (print_return_value_1): Handle finish_print
8515 (show_print_finish): New function.
8516 (_initialize_infcmd): Add "set/show print finish" commands.
8517 * valprint.c (user_print_options): Initialize new member.
8518 * valprint.h (struct value_print_options) <finish_print>: New
8521 2019-05-28 Tom Tromey <tromey@adacore.com>
8523 * ada-lang.c (ada_remove_Xbn_suffix)
8524 (find_old_style_renaming_symbol)
8525 (parse_old_style_renaming): Remove.
8526 (ada_find_renaming_symbol): Don't call
8527 find_old_style_renaming_symbol.
8528 (ada_is_renaming_symbol): Rename from
8529 ada_find_renaming_symbol. Remove "block" parameter. Return
8531 (ada_read_var_value): Update and simplify.
8532 * ada-exp.y (write_var_or_type): Remove old code.
8534 2019-05-28 Alan Hayward <alan.hayward@arm.com>
8537 * event-top.c: Remove include comment.
8538 * inflow.c (class scoped_ignore_sigttou): Move from here...
8539 * inflow.h (class scoped_ignore_sigttou): ...to here.
8540 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8541 * top.c: Remove include comment.
8543 2019-05-27 Tom Tromey <tom@tromey.com>
8547 2019-05-22 Tom Tromey <tromey@adacore.com>
8549 * target.c (target_follow_exec): Constify parameter.
8550 * target-delegates.c: Rebuild.
8551 * remote.c (remote_target::follow_exec): Constify parameter.
8552 * infrun.c (follow_exec): Constify parameter.
8553 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8554 (target_follow_exec): Likewise.
8556 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8558 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8559 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8561 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8563 * NEWS: Add debugredirect and testsuite sections.
8565 2019-05-22 Simon Cook <simon.cook@embecosm.com>
8567 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8568 target descriptions using exclusively floating point register name
8571 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8574 * f-lang.c (build_fortran_types): Handle the case where
8575 gdbarch_floatformat_for_type returns a nullptr.
8577 2019-05-21 Tom de Vries <tdevries@suse.de>
8580 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8582 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8585 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8587 * i386-tdep.c (i386_floatformat_for_type): Use
8588 floatformats_ia64_quad for the 16-byte floating point component
8589 within a fortran 32-byte complex number.
8591 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8593 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8594 delete default constructor.
8595 (find_partial_die): Update to return const struct.
8596 (partial_die_parent_scope): Move variable declaration into scope
8597 of its use and change its type to auto.
8598 (guess_partial_die_structure_name): Likewise.
8599 (partial_die_info::fixup): Likewise.
8601 2019-05-17 Tom Tromey <tromey@adacore.com>
8603 * source.c (find_and_open_source): Remove cast.
8605 2019-05-17 Tom Tromey <tromey@adacore.com>
8607 * annotate.c (annotate_source): Make "filename" const.
8608 * annotate.h (annotate_source): Use const.
8610 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8612 * disasm.c (set_disassembler_options): Send errors to stderr.
8614 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8616 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8617 (cli_interp_base::set_logging): Check debug_redirect.
8618 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8619 * cli/cli-logging.c (debug_redirect): Add static variable.
8620 (pop_output_files): Add default param.
8621 (handle_redirections): Print debug setting.
8622 (show_logging_command): Likewise.
8623 (_initialize_cli_logging): Add debugredirect command.
8624 * interps.c (current_interp_set_logging): Add debug_redirect
8626 * interps.h (set_logging): Add debug_redirect parameter.
8627 (current_interp_set_logging): Likewise.
8628 * mi/mi-common.h: Likewise.
8629 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8631 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8632 Tom Tromey <tromey@adacore.com>
8634 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8636 * cli/cli-interp.h (make_logging_output): Remove declaration.
8637 * cli/cli-logging.c (make_logging_output): Remove function.
8638 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8640 * ui-file.c (tee_file::tee_file): Remove bools.
8641 (tee_file::~tee_file): Remove deletes.
8642 * ui-file.h (tee_file): Remove bools.
8644 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8646 * mi/mi-cmds.h (mi_cmd_complete): New function.
8647 * mi/mi-main.c (mi_cmd_complete): Likewise.
8648 * mi/mi-cmds.c: Define new MI command -complete.
8649 * NEWS: Mention new -complete command.
8651 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8653 * completer.h (complete): New function.
8654 * completer.c (complete): Likewise.
8655 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8656 function defined in completer.h.
8658 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8660 * MAINTAINERS (Write After Approval): Add myself.
8662 2019-05-17 Tom de Vries <tdevries@suse.de>
8665 * dwarf2read.c (struct cu_partial_die_info): New struct.
8666 (find_partial_die): Return cu_partial_die_info.
8667 (partial_die_parent_scope, guess_partial_die_structure_name)
8668 (partial_die_info::fixup): Handle new return type of find_partial_die.
8670 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8672 PR breakpoints/24541
8673 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8674 "std::string", simplifying the algorithm.
8676 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8678 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8679 (stap_static_probe_ops::get_probes): Likewise.
8681 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8683 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8684 '-')" and "else if".
8685 (stap_parse_single_operand): Join checks for
8686 "gdbarch_stap_parse_special_token_p" and
8687 "gdbarch_stap_parse_special_token" in the same "if" statement.
8688 Invert check when verifying for operation on register
8691 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8693 * stap-probe.c (stap_get_opcode): Update comment.
8694 (stap_get_expected_argument_type): Likewise.
8695 (handle_stap_probe): Likewise.
8697 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8699 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8700 return type to 'bool'. Adjust comment. Use 'bool' when
8702 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8703 * stap-probe.c (stap_parse_argument_1): Likewise.
8704 (stap_is_operator): Likewise.
8705 (stap_is_generic_prefix): Likewise.
8706 (stap_is_register_prefix): Likewise.
8707 (stap_is_register_indirection_prefix): Likewise.
8708 (stap_is_integer_prefix): Likewise.
8709 (stap_generic_check_suffix): Likewise.
8710 (stap_check_integer_suffix): Likewise.
8711 (stap_check_register_suffix): Likewise.
8712 (stap_check_register_indirection_suffix): Likewise.
8713 (stap_parse_register_operand): Likewise.
8714 (stap_parse_single_operand): Likewise.
8715 (stap_parse_argument_1): Likewise.
8716 (stap_probe::get_argument_count): Likewise.
8717 (stap_is_operator): Likewise.
8719 2019-05-16 Tom Tromey <tromey@adacore.com>
8721 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8724 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
8726 * linux-thread-db.c (try_thread_db_load_1): Change return type
8728 (try_thread_db_load): Likewise.
8729 (try_thread_db_load_from_pdir_1): Likewise.
8730 (try_thread_db_load_from_pdir): Likewise.
8731 (try_thread_db_load_from_sdir): Likewise.
8732 (try_thread_db_load_from_dir): Likewise.
8733 (thread_db_load_search): Likewise.
8734 (has_libpthread): Likewise.
8735 (thread_db_load): Likewise.
8737 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8739 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8740 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8741 NULL, and complain/return if that's the case.
8743 2019-05-15 John Darrington <john@darrington.wattle.id.au>
8745 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8746 (advance, posn, abstract_read_memory): New functions.
8747 [struct mem_read_abstraction]: New struct.
8748 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8750 2019-05-14 Tom Tromey <tromey@adacore.com>
8752 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8753 value is not lval_memory.
8755 2019-05-14 Tom Tromey <tromey@adacore.com>
8757 * solib.c (info_sharedlibrary_command): Style the file name.
8759 2019-05-14 Alan Hayward <alan.hayward@arm.com>
8761 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8762 (aarch64_vnv_type): Likewise.
8763 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8764 * common/tdesc.c: Likewise.
8765 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8766 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8767 * features/aarch64-fpu.xml: Add ieee half view.
8768 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8769 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8770 * gdbtypes.h (struct builtin_type): Likewise.
8771 (struct objfile_type): Likewise.
8773 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
8775 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8777 * location.h (string_to_event_location): Likewise.
8779 2019-05-11 Joel Brobecker <brobecker@adacore.com>
8783 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8785 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8786 New variable declaration.
8787 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8789 (print_one_breakpoint): Use ui_out::test_flags and new global
8790 variable to compute use_fixed_output.
8791 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8793 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8794 (mi_multi_location_breakpoint_output_fixed): Remove.
8795 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8797 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8798 fix_multi_location_breakpoint_output flag if version >= 3.
8799 * ui-out.h (enum ui_out_flag)
8800 <fix_multi_location_breakpoint_output>: New enumerator.
8802 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8804 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8806 2019-05-10 Tom Tromey <tromey@adacore.com>
8808 * ada-lang.c (catch_ada_completer): New function.
8809 (_initialize_ada_language): Use it.
8811 2019-05-10 Tom Tromey <tromey@adacore.com>
8813 * thread.c (print_thread_info): Make "requested_threads" const.
8814 * gdbthread.h (print_thread_info): Make "requested_threads"
8816 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8817 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8819 2019-05-08 Tom Tromey <tom@tromey.com>
8821 * gdbtypes.c (objfile_type_data): Change type.
8822 (objfile_type, _initialize_gdbtypes): Update.
8824 2019-05-08 Tom Tromey <tom@tromey.com>
8826 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8827 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8828 (_initialize_dwarf2_frame): Update.
8830 2019-05-08 Tom Tromey <tom@tromey.com>
8832 * objc-lang.c (objc_objfile_data): Change type.
8833 (find_methods): Update.
8834 (_initialize_objc_lang): Remove.
8836 2019-05-08 Tom Tromey <tom@tromey.com>
8838 * stabsread.c (rs6000_builtin_type_data): Change type.
8839 (rs6000_builtin_type, _initialize_stabsread): Update.
8841 2019-05-08 Tom Tromey <tom@tromey.com>
8843 * mips-tdep.c (mips_pdr_data): Remove.
8844 (_initialize_mips_tdep): Update.
8846 2019-05-08 Tom Tromey <tom@tromey.com>
8848 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
8849 (hppa_init_objfile_priv_data, read_unwind_info)
8850 (find_unwind_entry, _initialize_hppa_tdep): Update.
8852 2019-05-08 Tom Tromey <tom@tromey.com>
8854 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
8855 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
8857 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
8859 2019-05-08 Tom Tromey <tom@tromey.com>
8861 * mdebugread.c (basic_type_data): Change type.
8862 (basic_type, _initialize_mdebugread): Update.
8864 2019-05-08 Tom Tromey <tom@tromey.com>
8866 * common/gdb_unique_ptr.h (struct noop_deleter): New.
8868 2019-05-08 Tom Tromey <tom@tromey.com>
8870 * nto-tdep.c (nto_inferior_data_reg): Change type.
8871 (nto_inferior_data): Update.
8872 (nto_inferior_data_cleanup, nto_new_inferior_data)
8873 (_initialize_nto_tdep): Remove.
8874 * nto-tdep.h (struct nto_inferior_data): Add initializers.
8876 2019-05-08 Tom Tromey <tom@tromey.com>
8878 * ada-lang.c (struct ada_inferior_data): Add initializers.
8879 (ada_inferior_data): Change type.
8880 (ada_inferior_data_cleanup): Remove.
8881 (get_ada_inferior_data, ada_inferior_exit)
8882 (struct ada_pspace_data): Add initializers, destructor.
8883 (ada_pspace_data_handle): Change type.
8884 (get_ada_pspace_data): Update.
8885 (ada_pspace_data_cleanup): Remove.
8887 2019-05-08 Tom Tromey <tom@tromey.com>
8889 * coffread.c (struct coff_symfile_info): Add initializers.
8890 (coff_objfile_data_key): Move lower. Change type.
8891 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
8893 (coff_free_info): Remove.
8895 2019-05-08 Tom Tromey <tom@tromey.com>
8897 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
8898 (fbsd_pspace_data_handle): Move lower. Change type.
8899 (get_fbsd_pspace_data): Update.
8900 (fbsd_pspace_data_cleanup): Remove.
8901 (_initialize_fbsd_tdep): Update.
8903 2019-05-08 Tom Tromey <tom@tromey.com>
8905 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
8906 (get_ada_tasks_pspace_data): Update.
8907 (ada_tasks_pspace_data_cleanup): Remove.
8908 (_initialize_tasks): Update.
8909 (ada_tasks_inferior_data_handle): Change type.
8910 (get_ada_tasks_inferior_data): Update.
8911 (ada_tasks_inferior_data_cleanup): Remove.
8912 (struct ada_tasks_pspace_data): Add initializers.
8914 2019-05-08 Tom Tromey <tom@tromey.com>
8916 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
8917 * symfile-debug.c (debug_sym_get_probes): Change type.
8918 * stap-probe.c (handle_stap_probe):
8919 (stap_static_probe_ops::get_probes): Change type.
8920 * probe.h (class static_probe_ops) <get_probes>: Change type.
8921 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
8922 (parse_probes_in_pspace): Update.
8923 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
8925 (any_static_probe_ops::get_probes): Change type.
8926 * elfread.c (elfread_data): New typedef.
8927 (probe_key): Change type.
8928 (elf_get_probes): Likewise. Update.
8929 (probe_key_free): Remove.
8930 (_initialize_elfread): Update.
8931 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
8933 (dtrace_process_dof_probe, dtrace_process_dof)
8934 (dtrace_static_probe_ops::get_probe): Change type.
8936 2019-05-08 Tom Tromey <tom@tromey.com>
8938 * xcoffread.c (struct xcoff_symfile_info): Rename from
8939 coff_symfile_info. Add initializers.
8940 (xcoff_objfile_data_key): Move lower. Change type.
8941 (XCOFF_DATA): Rewrite.
8942 (xcoff_free_info): Remove.
8943 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
8944 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
8945 (xcoff_initial_scan): Update.
8947 2019-05-08 Tom Tromey <tom@tromey.com>
8949 * solib-svr4.c (struct svr4_info): Add initializers and
8951 <probes_table>: Now an htab_up.
8952 (solib_svr4_pspace_data): Change type.
8953 (free_probes_table): Simplify.
8954 (~svr4_info): Rename from svr4_pspace_data_cleanup.
8955 (get_svr4_info, probes_table_htab_remove_objfile_probes)
8956 (probes_table_remove_objfile_probes, register_solib_event_probe)
8957 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
8958 (_initialize_svr4_solib): Update.
8960 2019-05-08 Tom Tromey <tom@tromey.com>
8962 * remote.c (remote_pspace_data): Change type.
8963 (remote_pspace_data_cleanup): Remove.
8964 (get_remote_exec_file, set_pspace_remote_exec_file)
8965 (_initialize_remote): Update.
8967 2019-05-08 Tom Tromey <tom@tromey.com>
8969 * breakpoint.c (breakpoint_objfile_key): Change type.
8970 (get_breakpoint_objfile_data): Update.
8971 (free_breakpoint_objfile_data): Remove.
8972 (_initialize_breakpoint): Update.
8974 2019-05-08 Tom Tromey <tom@tromey.com>
8976 * linux-tdep.c (struct linux_info): Add initializers.
8977 (linux_inferior_data): Move. Change type.
8978 (invalidate_linux_cache_inf): Update.
8979 (linux_inferior_data_cleanup): Remove.
8980 (get_linux_inferior_data, _initialize_linux_tdep): Update.
8982 2019-05-08 Tom Tromey <tom@tromey.com>
8984 * auxv.c (auxv_inferior_data): Move. Change type.
8985 (auxv_inferior_data_cleanup): Remove.
8986 (invalidate_auxv_cache_inf): Rewrite.
8987 (get_auxv_inferior_data, _initialize_auxv): Update.
8989 2019-05-08 Tom Tromey <tom@tromey.com>
8991 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
8992 (symfile_debug_objfile_data_key): Change type.
8993 (symfile_debug_installed, debug_qf_has_symbols)
8994 (debug_qf_find_last_source_symtab)
8995 (debug_qf_forget_cached_source_info)
8996 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
8997 (debug_qf_print_stats, debug_qf_dump)
8998 (debug_qf_expand_symtabs_for_function)
8999 (debug_qf_expand_all_symtabs)
9000 (debug_qf_expand_symtabs_with_fullname)
9001 (debug_qf_map_matching_symbols)
9002 (debug_qf_expand_symtabs_matching)
9003 (debug_qf_find_pc_sect_compunit_symtab)
9004 (debug_qf_map_symbol_filenames)
9005 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9006 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9007 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9008 (debug_sym_read_linetable, debug_sym_relocate): Update.
9009 (symfile_debug_free_objfile): Remove.
9010 (install_symfile_debug_logging, _initialize_symfile_debug):
9013 2019-05-08 Tom Tromey <tom@tromey.com>
9015 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9016 allocate_on_obstack.
9017 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9018 (get_dwarf2_per_objfile): Update.
9019 (set_dwarf2_per_objfile): Remove.
9020 (dwarf2_has_info, dwarf2_get_section_info): Update.
9021 (dwarf2_free_objfile): Remove.
9022 (_initialize_dwarf2_read): Update.
9024 2019-05-08 Tom Tromey <tom@tromey.com>
9026 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9028 <unsupported_script_warning_printed,
9029 script_not_found_warning_printed>: Now bool.
9030 (auto_load_pspace_data): Change type.
9031 (~auto_load_pspace_info): Rename from
9032 auto_load_pspace_data_cleanup.
9033 (get_auto_load_pspace_data, init_loaded_scripts_info)
9034 (clear_section_scripts, maybe_print_unsupported_script_warning)
9035 (maybe_print_script_not_found_warning, _initialize_auto_load):
9038 2019-05-08 Tom Tromey <tom@tromey.com>
9040 * objfiles.c (objfile_pspace_info): Add destructor and
9042 (objfiles_pspace_data): Change type.
9043 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9044 (get_objfile_pspace_data): Update.
9045 (objfiles_bfd_data): Change type.
9046 (get_objfile_bfd_data): Update.
9047 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9049 2019-05-08 Tom Tromey <tom@tromey.com>
9051 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9053 (get_catch_syscall_inferior_data): Update.
9054 (catch_syscall_inferior_data_cleanup): Remove.
9055 (_initialize_break_catch_syscall): Update.
9057 2019-05-08 Tom Tromey <tom@tromey.com>
9059 * inflow.c (struct terminal_info): Add destructor and
9061 (inflow_inferior_data): Change type.
9062 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9063 (get_inflow_inferior_data, inflow_inferior_exit)
9064 (swap_terminal_info, _initialize_inflow): Update.
9066 2019-05-08 Tom Tromey <tom@tromey.com>
9068 * target-dcache.c (target_dcache_cleanup): Remove.
9069 (target_dcache_aspace_key): Change type.
9070 (target_dcache_init_p, target_dcache_invalidate)
9071 (target_dcache_get, target_dcache_get_or_init)
9072 (_initialize_target_dcache): Update.
9073 * dcache.h (struct dcache_deleter): New.
9075 2019-05-08 Tom Tromey <tom@tromey.com>
9077 * symtab.c (struct symbol_cache): Add destructor and
9079 (symbol_cache_key): Move. Change type.
9080 (make_symbol_cache, free_symbol_cache): Remove.
9081 (get_symbol_cache): Update.
9082 (symbol_cache_cleanup): Remove.
9083 (ALL_PSPACES, symbol_cache_flush)
9084 (maintenance_print_symbol_cache)
9085 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9088 2019-05-08 Tom Tromey <tom@tromey.com>
9090 * symtab.c (struct main_info): Add destructor and initializers.
9091 (main_progspace_key): Move. Change type.
9092 (get_main_info): Update.
9093 (main_info_cleanup): Remove.
9094 (_initialize_symtab): Update.
9096 2019-05-08 Tom Tromey <tom@tromey.com>
9098 * registry.h (DECLARE_REGISTRY): Define the _key class.
9100 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9102 * NEWS: Merge two 'New commands' sections.
9104 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9106 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9107 parameter and use Ada language definition instead.
9108 (ada_val_print_ptr): Remove unused language parameter.
9109 (ada_val_print_num): Remove language parameter and use Ada language
9111 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9113 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9114 parameter and use Ada language definition instead.
9115 (ada_val_print_1): Update all ada_val_print_xxx calls.
9116 Remove language parameter.
9117 (ada_val_print): Update ada_val_print_1 call.
9119 2019-05-08 Tom Tromey <tromey@adacore.com>
9121 * remote.c (remote_hw_watchpoint_limit)
9122 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9125 2019-05-08 Tom Tromey <tromey@adacore.com>
9127 * maint.c (_initialize_maint_cmds): Move initialization code to
9129 (watchdog, show_watchdog): Move to remote.c.
9130 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9132 (_initialize_remote): Move initialization code from maint.c.
9133 * defs.h (watchdog): Don't declare.
9135 2019-05-08 Tom Tromey <tromey@adacore.com>
9137 * tui/tui-interp.c: Include main.h.
9138 * interps.c: Include main.h.
9139 * main.h (interpreter_p): Declare.
9140 * defs.h (interpreter_p): Don't declare.
9142 2019-05-08 Tom Tromey <tromey@adacore.com>
9144 * dwarf2loc.c: Include dwarf2read.h.
9145 * defs.h (read_unsigned_leb128): Don't declare.
9146 * dwarf2read.h (read_unsigned_leb128): Declare.
9148 2019-05-08 Tom Tromey <tromey@adacore.com>
9150 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9153 2019-05-08 Tom Tromey <tromey@adacore.com>
9155 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9156 when no wrap column is set.
9158 2019-05-08 Tom Tromey <tromey@adacore.com>
9160 * c-lang.c (c_get_string): Handle non-C-style arrays.
9162 2019-05-08 Tom Tromey <tromey@adacore.com>
9164 * typeprint.c (print_offset_data::update): Print the bit offset,
9165 not the number of bits remaining.
9167 2019-05-08 Tom Tromey <tromey@adacore.com>
9169 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9170 padding at end of comment.
9172 2019-05-08 Tom Tromey <tromey@adacore.com>
9174 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9177 2019-05-06 Tom Tromey <tom@tromey.com>
9179 * common/scoped_mmap.c: Include common-defs.h.
9180 * common/scoped_mmap.h: Don't include config.h.
9182 2019-05-04 Tom Tromey <tom@tromey.com>
9184 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9185 (struct aarch64_call_info): Add initializers.
9186 <si>: Now a std::vector.
9187 (pass_on_stack, aarch64_push_dummy_call): Update.
9189 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9190 Tom Tromey <tom@tromey.com>
9192 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9193 (ppc_threads): Now a std::vector. Now static.
9194 (hwdebug_find_thread_points_by_tid)
9195 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9198 2019-05-04 Tom Tromey <tom@tromey.com>
9200 * arc-tdep.c (arc_tdesc_init): Return bool.
9202 2019-05-04 Tom Tromey <tom@tromey.com>
9204 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9205 Use gdb_assert_not_reached.
9207 2019-05-04 Tom Tromey <tom@tromey.com>
9209 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9212 2019-05-04 Tom Tromey <tom@tromey.com>
9214 * arc-tdep.c (arc_tdesc_init): Use bool.
9216 2019-05-04 Tom Tromey <tom@tromey.com>
9218 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9220 2019-05-04 Tom Tromey <tom@tromey.com>
9222 * cli/cli-cmds.c (valid_command_p): Return bool.
9224 2019-05-04 Tom Tromey <tom@tromey.com>
9226 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9227 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9229 2019-05-04 Raul Tambre <raul@tambre.ee>
9231 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9232 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9233 operator for comparison.
9235 2019-05-04 Tom Tromey <tom@tromey.com>
9237 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9238 (lookup_partial_symbol, print_partial_symbols)
9239 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9240 (psymbol_compare): Update.
9241 (add_psymbol_to_bcache): Clear the entire psymbol.
9242 (maintenance_check_psymtabs): Update.
9243 * psympriv.h (struct partial_symbol): Don't derive from
9244 general_symbol_info.
9245 <obj_section, unrelocated_address, address,
9246 set_unrelocated_address>: Update.
9247 <ginfo>: New member.
9248 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9249 (debug_names::write_psymbols): Update.
9251 2019-05-04 Tom de Vries <tdevries@suse.de>
9253 * contrib/cc-with-tweaks.sh: Support -n arg.
9255 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9257 * corelow.c (core_target::detach): Ensure frame cache and
9258 register caches are cleared.
9259 inferior.c (exit_inferior_1): Likewise.
9261 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9262 Tom Tromey <tom@tromey.com>
9264 * dictionary.c (collate_pending_symbols_by_language): Remove
9265 "struct" from foreach.
9266 * symtab.c (lookup_global_symbol_from_objfile)
9267 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9269 * ser-tcp.c (net_open): Remove "struct" from foreach.
9270 * objfiles.c (objfile_relocate, objfile_rebase)
9271 (objfile_has_symbols): Remove "struct" from foreach.
9272 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9274 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9276 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9277 "struct" from foreach.
9278 * ada-lang.c (create_excep_cond_exprs)
9279 (ada_exception_catchpoint_cond_string): Remove "struct" from
9282 2019-05-03 Tom Tromey <tromey@adacore.com>
9284 * ada-exp.y (convert_char_literal): Check suffix of each
9287 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9290 * ada-exp.y (yywrap): Don't define.
9291 * ada-lex.l (%option): Add noyywrap
9294 2019-05-03 Eli Zaretskii <eliz@gnu.org>
9296 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9297 _WIN32_WINNT to the XP level, unless already defined to a higher
9300 * unittests/parse-connection-spec-selftests.c:
9302 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9305 * symfile.c (find_separate_debug_file): Remove colon from the
9306 drive spec of DOS/Windows file names of the target, so that the
9307 file name produced from DEBUGDIR and the target's directory will
9308 be valid on DOS/Windows systems.
9310 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9312 * rust-lang.c (val_print_struct): Handle printing structures
9315 2019-05-02 Tom Tromey <tromey@adacore.com>
9317 * valarith.c (_initialize_valarith): Remove.
9319 2019-05-01 Tom Tromey <tromey@adacore.com>
9321 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9324 2019-05-01 Tom Tromey <tromey@adacore.com>
9326 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9327 for big-endian copies.
9329 2019-04-30 Ali Tamur <tamur@google.com>
9330 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9331 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9332 (read_3_bytes): New function.
9334 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9336 * windows-nat.c (main_thread_id): Delete.
9337 (handle_output_debug_string): Replace main_thread_id by
9338 current_event.dwThreadId.
9339 (fake_create_process): Likewise.
9340 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9341 Do not set main_thread_id.
9342 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9343 current_event.dwThreadId.
9344 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9346 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9348 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9349 Use current_event.dwThreadId instead of main_thread_id.
9351 2019-04-30 Tom Tromey <tromey@adacore.com>
9353 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9354 (create_excep_cond_exprs): Iterate over program spaces.
9355 (ada_exception_catchpoint_cond_string): Examine all minimal
9356 symbols for exception types.
9358 2019-04-30 Tom Tromey <tromey@adacore.com>
9361 * dwarf2read.c (process_structure_scope): Handle case where type
9362 has template parameters but no symbol was created.
9364 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9365 Chris January <chris.january@arm.com>
9367 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9369 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9371 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9373 * f-typeprint.c (f_print_type): Update rules for printing
9375 (f_type_print_varspec_suffix): Likewise.
9377 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9378 Chris January <chris.january@arm.com>
9380 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9383 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9385 * f-lang.c (build_fortran_types): Change name of void type to
9387 * f-typeprint.c (f_type_print_base): Print the name of the void
9388 type, rather than a fixed string.
9389 * f-valprint.c (f_decorations): Use lower case void string.
9391 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9392 Chris January <chris.january@arm.com>
9394 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9397 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9398 Chris January <chris.january@arm.com>
9399 David Lecomber <david.lecomber@arm.com>
9401 * f-exp.y (BINOP_INTRINSIC): New token.
9402 (exp): New parser rule handling BINOP_INTRINSIC.
9403 (f77_keywords): Add new builtin procedures.
9404 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9405 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9406 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9407 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9408 (print_unop_subexp_f): New function.
9409 (print_binop_subexp_f): New function.
9410 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9411 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9412 (dump_subexp_body_f): Likewise.
9413 (operator_check_f): Likewise.
9414 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9415 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9417 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9419 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9421 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9422 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9423 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9424 (operator_length_f): New fuction.
9425 (print_subexp_f): New function.
9426 (op_name_f): New function.
9427 (dump_subexp_body_f): New function.
9428 (operator_check_f): New function.
9429 (exp_descriptor_f): Replace standard expression handling functions
9431 * gdb/fortran-operator.def: New file.
9432 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9433 * gdb/std-operator.def: Remove UNOP_KIND.
9435 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9437 * std-operator.def: Remove unbalanced, stray double quote
9440 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9441 Chris January <chris.january@arm.com>
9442 Daniel Everett <daniel.everett@arm.com>
9443 Nick Forrington <nick.forrington@arm.com>
9444 Richard Bunt <richard.bunt@arm.com>
9446 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9447 of depth when printing anonymous structs or unions.
9448 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9449 Don't print either the top-level value, or the children if the
9450 max-depth is exceeded.
9451 (ppscm_print_children): When printing the key of a map, allow one
9452 extra level of depth.
9453 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9454 print either the top-level value, or the children if the max-depth
9456 (print_children): When printing the key of a map, allow one extra
9458 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9459 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9460 (user_print_options): Initialise max_depth field.
9461 (val_print_scalar_or_string_type_p): New function.
9462 (val_print): Check to see if the max depth has been reached.
9463 (val_print_check_max_depth): Define new function.
9464 (show_print_max_depth): New function.
9465 (_initialize_valprint): Add 'print max-depth' option.
9466 * valprint.h (struct value_print_options) <max_depth>: New field.
9467 (val_print_check_max_depth): Declare new function.
9468 * NEWS: Document new feature.
9470 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9472 * ada-lang.c (ada_language_defn): Initialise new field.
9473 * c-lang.c (c_is_string_type_p): New function.
9474 (c_language_defn): Initialise new field.
9475 (cplus_language_defn): Initialise new field.
9476 (asm_language_defn): Initialise new field.
9477 (minimal_language_defn): Initialise new field.
9478 * c-lang.h (c_is_string_type_p): Declare new function.
9479 * d-lang.c (d_language_defn): Initialise new field.
9480 * f-lang.c (f_is_string_type_p): New function.
9481 (f_language_defn): Initialise new field.
9482 * go-lang.c (go_is_string_type_p): New function.
9483 (go_language_defn): Initialise new field.
9484 * language.c (default_is_string_type_p): New function.
9485 (unknown_language_defn): Initialise new field.
9486 (auto_language_defn): Initialise new field.
9487 * language.h (struct language_defn) <la_is_string_type_p>: New
9489 (default_is_string_type_p): Declare new function.
9490 * m2-lang.c (m2_language_defn): Initialise new field.
9491 * objc-lang.c (objc_language_defn): Initialise new field.
9492 * opencl-lang.c (opencl_language_defn): Initialise new field.
9493 * p-lang.c (pascal_is_string_type_p): New function.
9494 (pascal_language_defn): Initialise new field.
9495 * rust-lang.c (rust_is_string_type_p): New function.
9496 (rust_language_defn): Initialise new field.
9498 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9500 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9502 * ada-lang.c (ada_language_defn): Initialise new field.
9503 * c-lang.c (c_language_defn): Likewise.
9504 (cplus_language_defn): Likewise.
9505 (asm_language_defn): Likewise.
9506 (minimal_language_defn): Likewise.
9507 * d-lang.c (d_language_defn): Likewise.
9508 * f-lang.c (f_language_defn): Likewise.
9509 * go-lang.c (go_language_defn): Likewise.
9510 * language.c (unknown_language_defn): Likewise.
9511 (auto_language_defn): Likewise.
9512 * m2-lang.c (m2_language_defn): Likewise.
9513 * objc-lang.c (objc_language_defn): Likewise.
9514 * opencl-lang.c (opencl_language_defn): Likewise.
9515 * p-lang.c (pascal_language_defn): Likewise.
9516 * rust-lang.c (rust_language_defn): Likewise.
9518 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9520 * ada-lang.c (ada_is_character_type): Change return type to bool.
9521 (ada_is_string_type): Likewise.
9522 * ada-lang.h (ada_is_character_type): Update declaration
9523 (ada_is_string_type): Likewise.
9525 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9527 Support style in 'frame|thread apply'
9529 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9530 * record.c (record_start, record_stop): Update callers of
9531 execute_command_to_string with false.
9532 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9533 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9535 (class string_file): New constructor with term_out parameter.
9536 Override methods term_out and can_emit_style_escape. New member
9538 (class stdio_file): Override can_emit_style_escape.
9539 (class tee_file): Override term_out and can_emit_style_escape.
9540 * utils.h (can_emit_style_escape): Remove.
9541 * utils.c (can_emit_style_escape): Likewise.
9542 Update all callers of can_emit_style_escape (SOMESTREAM) to
9543 SOMESTREAM->can_emit_style_escape.
9544 * source-cache.c (source_cache::get_source_lines): Likewise.
9545 * stack.c (frame_apply_command_count): Call execute_command_to_string
9546 passing the term_out characteristic of the current gdb_stdout.
9547 * thread.c (thr_try_catch_cmd): Likewise.
9548 * top.c (execute_command_to_string): pass term_out parameter
9549 to construct the string_file for the command output.
9550 * ui-file.c (term_cli_styling): New function (most code moved
9551 from utils.c can_emit_style_escape).
9552 (string_file::string_file, string_file::can_emit_style_escape,
9553 stdio_file::can_emit_style_escape, tee_file::term_out,
9554 tee_file::can_emit_style_escape): New functions.
9556 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9558 * NEWS: Mention the new set|show may-call-functions.
9559 * infcall.c (may_call_functions_p): New variable.
9560 (show_may_call_functions_p): New function.
9561 (call_function_by_hand_dummy): Throws an error if not
9563 (_initialize_infcall): Call add_setshow_boolean_cmd for
9566 2019-04-25 Keith Seitz <keiths@redhat.com>
9569 * cp-support.c (inspect_type): Don't attempt substitutions
9570 of symbol with the same name.
9572 2019-04-25 Tom Tromey <tromey@adacore.com>
9575 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9578 2019-04-25 Tom Tromey <tromey@adacore.com>
9580 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9582 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9583 (gdb_xml_parser::parse): Use std::move.
9584 * python/python-internal.h (gdbpy_convert_exception): Take a const
9586 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9588 * python/py-utils.c (gdbpy_convert_exception): Take a const
9590 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9592 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9594 * mi/mi-main.c (mi_print_exception): Take a const reference.
9595 * main.c (handle_command_errors): Take a const reference.
9596 * linespec.c (parse_linespec): Use std::move.
9597 * infcall.c (run_inferior_call): Use std::move.
9598 (call_function_by_hand_dummy): Use std::move.
9599 * exec.c (try_open_exec_file): Use std::move.
9600 * exceptions.h (exception_print, exception_fprintf)
9601 (exception_print_same): Update.
9602 * exceptions.c (print_exception, exception_print)
9603 (exception_fprintf, exception_print_same): Change parameters to
9605 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9606 * common/new-op.c: Use std::move.
9607 * common/common-exceptions.h (struct gdb_exception): Add move
9609 (struct gdb_exception_error, struct gdb_exception_quit, struct
9610 gdb_quit_bad_alloc): Change constructor to move constructor.
9611 (throw_exception): Change parameter to rvalue reference.
9612 * common/common-exceptions.c (throw_exception): Take rvalue
9614 * cli/cli-interp.c (safe_execute_command): Use std::move.
9615 * breakpoint.c (insert_bp_location, location_to_sals): Use
9618 2019-04-25 Tom Tromey <tromey@adacore.com>
9620 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9621 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9622 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9623 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9624 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9625 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9626 guile/scm-value.c: Use unpack.
9627 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9628 gdbscm_gdb_exception.
9629 (gdbscm_throw_gdb_exception): Likewise.
9630 (struct gdbscm_gdb_exception): New.
9631 (unpack): New function.
9632 (gdbscm_wrap): Use unpack.
9634 2019-04-25 Tom Tromey <tromey@adacore.com>
9636 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9637 (gdb_rl_callback_handler): Use std::move.
9638 * common/common-exceptions.h (struct gdb_exception): Add move
9639 assignment operator.
9640 (throw_exception_sjlj): Change "exception" to const reference.
9641 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9642 (throw_exception_sjlj): Change "exception" to const reference.
9644 2019-04-25 Tom Tromey <tromey@adacore.com>
9646 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9647 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9648 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9650 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9652 * mi/mi-interp.c (mi_interp::exec): Update.
9653 * linespec.c (parse_linespec): Update.
9654 * infcall.c (run_inferior_call): Update.
9655 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9656 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9657 (gdbscm_lookup_global_symbol): Update.
9658 * guile/scm-param.c (gdbscm_parameter_value): Update.
9659 * guile/scm-frame.c (gdbscm_frame_read_register)
9660 (gdbscm_frame_read_var): Update.
9661 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9662 * exec.c (try_open_exec_file): Update.
9663 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9664 (gdb_rl_callback_handler): Update.
9665 * common/common-exceptions.h (exception_none): Don't declare.
9666 * common/common-exceptions.c (exception_none): Don't define.
9667 (struct catcher) <exception>: Update.
9668 * cli/cli-interp.c (safe_execute_command): Update.
9669 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9671 2019-04-25 Ali Tamur <tamur@google.com>
9673 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9674 (read_attribute_value): Likewise.
9675 (dwarf2_read_addr_index): Update comment.
9676 (read_str_index): Add DW_FORM_strx.
9677 (dwarf2_string_attr): Likewise.
9678 (dwarf2_const_value_attr): Likewise.
9679 (dump_die_shallow): Likewise.
9680 (dwarf2_fetch_constant_bytes): Likewise.
9681 (skip_form_bytes): Likewise.
9682 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9684 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9688 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9689 OFFSET. Verify if current mapping contains an ELF header.
9690 (linux_find_memory_regions_full): Adjust call to
9693 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9694 Kang Li <kanglictf@gmail.com>
9698 * dwarf2-frame.c (read_initial_length): Be consistent about using
9699 unsigned representation of length.
9700 (decode_frame_entry_1): Likewise. Check for wraparound of
9701 end pointer as well as buffer overflow.
9703 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9705 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9708 2019-04-24 Tom Tromey <tromey@adacore.com>
9710 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9712 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9714 * s12z-tdep.c (s12z_unwind_pc): Delete.
9715 (s12z_unwind_sp): Delete.
9716 (s12z_gdbarch_init): Don't register deleted functions with
9719 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9721 * rl78-tdep.c (rl78_unwind_sp): Delete.
9722 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9724 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9726 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9727 (xstormy16_unwind_pc): Delete.
9728 (xstormy16_dummy_id): Delete.
9729 (xstormy16_gdbarch_init): Don't register deleted functions with
9732 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9734 * vax-tdep.c (vax_unwind_pc): Delete.
9735 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9737 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9739 * v850-tdep.c (v850_unwind_sp): Delete.
9740 (v850_unwind_pc): Delete.
9741 (v850_dummy_id): Delete.
9742 (v850_gdbarch_init): Don't register deleted functions with
9745 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9747 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9748 (tilegx_unwind_pc): Delete.
9749 (tilegx_unwind_dummy_id): Delete.
9750 (tilegx_gdbarch_init): Don't register deleted functions with
9753 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9755 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9756 (tic6x_dummy_id): Delete.
9757 (tic6x_gdbarch_init): Don't register deleted functions with
9760 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9762 * sparc-tdep.c (sparc_unwind_pc): Delete.
9763 (sparc32_gdbarch_init): Don't register deleted function with
9766 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9768 * sh-tdep.c (sh_unwind_sp): Delete.
9769 (sh_unwind_pc): Delete.
9770 (sh_dummy_id): Delete.
9771 (sh_gdbarch_init): Don't register deleted functions with
9774 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9776 * score-tdep.c (score_unwind_sp): Delete.
9777 (score_unwind_pc): Delete.
9778 (score_dummy_id): Delete.
9779 (score_gdbarch_init): Don't register deleted functions with
9782 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9784 * rx-tdep.c (rx_unwind_pc): Delete.
9785 (rx_unwind_sp): Delete.
9786 (rx_dummy_id): Delete.
9787 (rx_gdbarch_init): Don't register deleted functions with
9788 gdbarch. Update comment.
9790 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9792 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9793 (rs6000_dummy_id): Delete.
9794 (rs6000_gdbarch_init): Don't register deleted functions with
9797 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9799 * or1k-tdep.c (or1k_dummy_id): Delete.
9800 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9802 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9804 * nios2-tdep.c (nios2_dummy_id): Delete.
9805 (nios2_unwind_sp): Delete.
9806 (nios2_gdbarch_init): Don't register deleted functions with
9809 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9811 * nds32-tdep.c (nds32_dummy_id): Delete.
9812 (nds32_unwind_pc): Delete.
9813 (nds32_unwind_sp): Delete.
9814 (nds32_gdbarch_init): Don't register deleted functions with
9817 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9819 * msp430-tdep.c (msp430_unwind_pc): Delete.
9820 (msp430_unwind_sp): Delete.
9821 (msp430_dummy_id): Delete.
9822 (msp430_gdbarch_init): Don't register deleted functions with
9825 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9827 * moxie-tdep.c (moxie_unwind_sp): Delete.
9828 (moxie_unwind_pc): Delete.
9829 (moxie_dummy_id): Delete.
9830 (moxie_gdbarch_init): Don't register deleted functions with
9833 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9835 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9836 (mn10300_unwind_pc): Delete.
9837 (mn10300_unwind_sp): Delete.
9838 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
9840 (mn10300_frame_unwind_init): Don't register deleted functions with
9843 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9845 * mep-tdep.c (mep_unwind_pc): Delete.
9846 (mep_unwind_sp): Delete.
9847 (mep_dummy_id): Delete.
9848 (mep_gdbarch_init): Don't register deleted functions with
9851 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9853 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
9854 (m68hc11_unwind_sp): Delete.
9855 (m68hc11_gdbarch_init): Don't register deleted functions with
9858 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9860 * m32r-tdep.c (m32r_unwind_sp): Delete.
9861 (m32r_unwind_pc): Delete.
9862 (m32r_dummy_id): Delete.
9863 (m32r_gdbarch_init): Don't register deleted functions with
9866 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9868 * m32c-tdep.c (m32c_unwind_pc): Delete.
9869 (m32c_unwind_sp): Delete.
9870 (m32c_dummy_id): Delete.
9871 (m32c_gdbarch_init): Don't register deleted functions with
9874 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9876 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
9877 (lm32_unwind_pc): Delete.
9878 (lm32_dummy_id): Delete.
9879 (lm32_gdbarch_init): Don't register deleted functions with
9882 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9884 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
9885 (iq2000_unwind_pc): Delete.
9886 (iq2000_dummy_id): Delete.
9887 (iq2000_gdbarch_init): Don't register deleted functions with
9890 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9892 * nds32-tdep.c (nds32_type_align): Delete.
9893 (nds32_push_dummy_call): Use type_align instead.
9895 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9897 * arm-tdep.c (arm_type_align): Only handle vector override case.
9898 (arm_push_dummy_call): Use type_align.
9899 (arm_gdbarch_init): Register arm_type_align gdbarch function.
9901 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9903 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
9905 (pass_on_stack): Use type_align.
9906 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
9909 2019-04-23 Tom Tromey <tromey@adacore.com>
9911 * dwarf2read.c (line_header::file_name_at): Remove unused
9914 2019-04-23 Tom de Vries <tdevries@suse.de>
9917 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
9921 2019-03-27 Ali Tamur <tamur@google.com>
9923 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
9924 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
9925 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
9926 (dwarf_expr_context::get_addr_index): Likewise
9927 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
9928 (symbol_needs_eval_context::get_addr_index): Likewise
9929 (disassemble_dwarf_expression): Add DW_OP_addrx
9930 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
9931 (read_cutu_die_from_dwo): Update comment
9932 (skip_one_die): Add DW_FORM_addrx
9933 (read_attribute_value): Likewise
9934 (var_decode_location): Add DW_OP_addrx
9935 (dwarf2_const_value_attr): Add DW_FORM_addrx
9936 (dump_die_shallow): Likewise
9937 (dwarf2_fetch_constant_bytes): Likewise
9938 (decode_locdesc): Add DW_OP_addrx
9939 (skip_form_bytes): Add DW_FORM_addrx
9941 2019-04-22 Ali Tamur <tamur@google.com>
9943 * MAINTAINERS (Write After Approval): Add self.
9945 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
9947 * solib-svr4.c (get_svr4_info): Add pspace parameter.
9948 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
9949 (open_symbol_file_object): Likewise.
9950 (svr4_default_sos): Add info parameter.
9951 (svr4_read_so_list): Likewise.
9952 (svr4_current_sos_direct): Adjust functions calls to pass down
9954 (svr4_current_sos_1): Add info parameter.
9955 (svr4_current_sos): Call get_svr4_info, pass info down to
9957 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
9959 (svr4_in_dynsym_resolve_code): Pass current_program_space to
9961 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
9963 (probes_table_remove_objfile_probes): Likewise.
9964 (register_solib_event_probe): Add info parameter.
9965 (solist_update_incremental): Pass info parameter down to
9967 (disable_probes_interface): Add info parameter.
9968 (svr4_handle_solib_event): Pass current_program_space to
9969 get_svr4_info. Adjust disable_probes_interface cleanup.
9970 (svr4_create_probe_breakpoints): Add info parameter, pass it
9971 down to register_solib_event_probe.
9972 (svr4_create_solib_event_breakpoints): Add info parameter,
9973 pass it down to svr4_create_probe_breakpoints.
9974 (enable_break): Pass info down to
9975 svr4_create_solib_event_breakpoints.
9976 (svr4_solib_create_inferior_hook): Pass current_program_space to
9978 (svr4_clear_solib): Likewise.
9980 2019-04-22 Pedro Alves <palves@redhat.com>
9982 * solib-svr4.c (svr4_free_objfile_observer): New.
9983 (probe_and_action::objfile): New field.
9984 (probes_table_htab_remove_objfile_probes)
9985 (probes_table_remove_objfile_probes): New functions.
9986 (register_solib_event_probe): Add 'objfile' parameter. Store it
9987 in the new probe_and_action. Don't store the probe in 'lookup'.
9988 (svr4_create_probe_breakpoints): Pass objfile to
9989 register_solib_event_probe.
9990 (_initialize_svr4_solib): Register a free_objfile observer.
9992 2019-04-19 Tom Tromey <tom@tromey.com>
9994 * common/queue.h: Remove.
9996 2019-04-19 Tom Tromey <tom@tromey.com>
9998 * event-loop.c: Don't include "common/queue.h".
10000 2019-04-19 Tom Tromey <tom@tromey.com>
10002 * remote.c (remote_target): Use delete.
10003 * remote-notif.h: Include <list>, not "common/queue.h".
10004 (notif_client_p): Remove typedef.
10005 (remote_notif_state): Add constructor, destructor, initializer.
10006 <notif_queue>: Now a std::list.
10007 (remote_notif_state_xfree): Don't declare.
10008 * remote-notif.c (remote_notif_process, handle_notification)
10009 (remote_notif_state_allocate): Update.
10010 (~remote_notif_state): Rename from remote_notif_state_xfree.
10012 2019-04-19 Tom Tromey <tom@tromey.com>
10014 * symfile.c (reread_symbols): Update.
10015 * objfiles.c (objfile_register_static_link)
10016 (objfile_lookup_static_link): Update
10017 (~objfile) Don't delete static_links.
10018 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10020 2019-04-19 Tom Tromey <tom@tromey.com>
10022 * type-stack.h (struct type_stack) <insert>: Constify string.
10023 * type-stack.c (type_stack::insert): Constify string.
10024 * gdbtypes.h (lookup_template_type): Update.
10025 (address_space_name_to_int): Update.
10026 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10028 (lookup_template_type): Make name const.
10029 * c-exp.y: Update rules.
10030 (lex_one_token, classify_name, classify_inner_name)
10031 (c_print_token): Update.
10032 * p-exp.y: Update rules.
10034 * f-exp.y: Update rules.
10036 * d-exp.y: Update rules.
10037 (lex_one_token, classify_name, classify_inner_name): Update.
10038 * parse.c (write_dollar_variable, copy_name): Return std::string.
10039 * parser-defs.h (copy_name): Change return type.
10040 * m2-exp.y: Update rules.
10042 * go-exp.y (lex_one_token): Update.
10044 (classify_unsafe_function, classify_packaged_name)
10045 (classify_name, yylex): Update.
10047 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10049 * configure.ac: add --enable-source-highlight switch.
10050 * configure: Regenerate.
10051 * top.c (print_gdb_version): plumb --enable-source-highlight
10052 status to "show configuration".
10054 2019-04-19 Tom Tromey <tromey@adacore.com>
10056 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10058 (empty_record, ada_template_to_fixed_record_type_1)
10059 (template_to_static_fixed_type)
10060 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10061 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10062 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10065 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10068 * source.c (print_source_lines_base): Advance "iter" when a
10069 control character is seen.
10071 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10073 * inferior.h (struct infcall_suspend_state_deleter):
10074 Catch exception in destructor to avoid crash.
10076 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10078 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10079 close to the add_com "shell".
10081 2019-04-18 Tom Tromey <tromey@adacore.com>
10083 * process-stratum-target.h (class process_stratum_target)
10084 <stratum>: Add "final".
10086 2019-04-17 Tom Tromey <tromey@adacore.com>
10088 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10089 against nullptr before use.
10091 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10093 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10095 2019-04-17 Jim Wilson <jimw@sifive.com>
10096 Andrew Burgess <andrew.burgess@embecosm.com>
10098 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10099 code read might fail, assume 4-byte breakpoint in that case.
10101 2019-04-15 Leszek Swirski <leszeks@google.com>
10103 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10104 rather than a hand-rolled POD check when checking for forced MEMORY
10107 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10109 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10110 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10112 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10113 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10114 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10117 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10119 * aarch64-linux-nat.c
10120 (aarch64_linux_nat_target::thread_architecture): Add override.
10121 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10124 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10126 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10128 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10130 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10131 target types of size 96-bits, add some additional comments, and
10132 check that the builtin type we found was the correct size.
10134 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10136 * utils.c (prompt_for_continue): Don't restore the styling at the
10137 end, as applied_style has the wrong value. This fixes styling in
10138 long lists of file names that are interrupted by the "Continue?"
10141 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10143 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10144 * c-lang.c (c_language_defn): Likewise.
10145 (cplus_language_defn): Likewise.
10146 (asm_language_defn): Likewise.
10147 (minimal_language_defn): Likewise.
10148 * d-lang.c (d_language_defn): Likewise.
10149 * f-lang.c (f_language_defn): Likewise.
10150 * go-lang.c (go_language_defn): Likewise.
10151 * language.c (unknown_language_defn): Likewise.
10152 (auto_language_defn): Likewise.
10153 * language.h (struct language_defn): Remove la_magic field.
10154 (LANG_MAGIC): Delete.
10155 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10156 * objc-lang.c (objc_language_defn): Likewise.
10157 * opencl-lang.c (opencl_language_defn): Likewise.
10158 * p-lang.c (pascal_language_defn): Likewise.
10159 * rust-lang.c (rust_language_defn): Likewise.
10161 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10163 * riscv-tdep.c (riscv_type_align): New function.
10164 (riscv_type_alignment): Delete.
10165 (riscv_arg_location): Use 'type_align'.
10166 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10168 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10170 * gdbtypes.c (type_align): A struct with no non-static fields also
10171 has alignment of 1.
10173 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10175 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10177 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10179 (riscv_struct_info::analyse): New implementation using new
10180 analyse_inner member function.
10181 (riscv_struct_info::field_offset): New member function.
10182 (riscv_struct_info::m_offsets): New member variable.
10183 (riscv_struct_info::analyse_inner): New private member function,
10184 takes the old implementation of riscv_struct_info::analyse but
10185 extended to track field offsets.
10186 (riscv_call_arg_struct): Update the struct folding special cases
10187 to handle cases where empty C++ structs, which are non-zero
10189 (riscv_arg_location): Initialise the length of each location, a
10190 non-zero length now indicates the location is in use.
10191 (riscv_push_dummy_call): Allow for the first location having a
10192 non-zero offset when setting up arguments.
10193 (riscv_return_value): Likewise, but for return values.
10195 2019-04-11 Tom Tromey <tromey@adacore.com>
10197 * utils.c (internal_vproblem): Make "msg" const.
10199 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10201 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10202 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10203 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10204 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10206 2019-04-10 Kevin Buettner <kevinb@redhat.com>
10208 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10210 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10211 of amd64_collect_native_gregset.
10212 (amd64_linux_nat_target::store_registers): Likewise.
10214 2019-04-10 Tom Tromey <tom@tromey.com>
10216 * symtab.c (lookup_global_symbol_from_objfile)
10217 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10218 * objfiles.h (class separate_debug_iterator): New.
10219 (class separate_debug_range): New.
10220 (struct objfile) <separate_debug_objfiles>: New method.
10221 (objfile_separate_debug_iterate): Don't declare.
10222 * objfiles.c (separate_debug_iterator::operator++): Rename from
10223 objfile_separate_debug_iterate.
10224 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10226 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10229 2019-04-10 Tom Tromey <tom@tromey.com>
10231 * symfile.c (reread_symbols): Remove old comment.
10232 * objfiles.c (free_all_objfiles): Fix a typo.
10234 2019-04-10 Tom Tromey <tom@tromey.com>
10236 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10237 * minsyms.c (lookup_minimal_symbol): Use foreach.
10238 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10239 (lookup_minimal_symbol_solib_trampoline): Likewise.
10240 * symfile.c (reread_symbols): Use foreach.
10242 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
10243 Tom Tromey <tromey@adacore.com>
10246 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10247 (rust_lex_int_test): Change "value" to be LONGEST.
10248 (rust_lex_tests): Add test for long integer literal.
10250 2019-04-09 Tom Tromey <tromey@adacore.com>
10252 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10254 (extended_remote_target::attach): Update.
10255 (remote_target::remote_notice_new_inferior): Update.
10256 (remote_target::add_current_inferior_and_thread): Update.
10257 * inferior.c (exit_inferior_1): Use "false".
10258 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10260 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
10262 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
10263 the "start" command.
10265 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10267 * python/py-inferior.c (infpy_thread_from_thread_handle):
10268 Adjust comments to reflect renaming of thread_from_thread_handle
10269 to thread_from_handle. Adjust keywords. Fix type error message.
10270 (inferior_object_methods): Add thread_from_handle. Retain
10271 thread_from_thread_handle, but mark it as deprecated.
10273 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10275 * gdbthread.h (find_thread_by_handle): Revise declaration.
10276 * thread.c (find_thread_by_handle): Likewise. Adjust
10277 implementation too.
10278 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10279 support for buffer objects as handles.
10281 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10283 * python/py-infthread.c (thpy_thread_handle): New function.
10284 (thread_object_methods): Register thpy_thread_handle.
10286 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10288 * gdbthread.h (thread_to_thread_handle): Declare.
10289 * thread.c (gdbtypes.h): Include.
10290 (thread_to_thread_handle): New function.
10292 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10293 (target_thread_info_to_thread_handle): Declare.
10294 * target.c (target_thread_info_to_thread_handle): New function.
10295 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10296 * target-delegates.c: Regenerate.
10298 * linux-thread-db.c (class thread_db_target): Add method
10299 thread_info_to_thread_handle.
10300 (thread_db_target::thread_info_to_thread_handle): Define.
10301 * remote.c (class remote_target): Add new method
10302 thread_info_to_thread_handle.
10303 (remote_target::thread_info_to_thread_handle): Define.
10305 2019-04-08 Pedro Alves <palves@redhat.com>
10307 * common/common-exceptions.c (throw_exception): Don't create
10308 named object to throw; throw directly.
10309 (throw_it): Likewise. Don't initialize gdb_exception::message
10310 here, with new; pass FMT and AP to the ctor instead.
10311 * common/common-exceptions.h: Include <string>.
10312 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10313 const char *, va_list)): New ctor. Use std::make_shared.
10314 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10316 (gdb_exception_error::gdb_exception_error(enum errors, const char
10318 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10320 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10322 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10323 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10326 2019-04-08 Tom Tromey <tom@tromey.com>
10328 * valops.c (value_rtti_indirect_type): Replace throw_exception
10330 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10332 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10334 * target.c (target_translate_tls_address): Replace throw_exception
10336 * stack.c (frame_apply_command_count): Replace throw_exception
10338 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10340 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10342 * rs6000-tdep.c (rs6000_frame_cache)
10343 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10344 * remote.c: Replace throw_exception with throw.
10345 * record-full.c (record_full_message, record_full_wait_1)
10346 (record_full_restore): Replace throw_exception with throw.
10348 (get_thread_current_frame_id, record_btrace_start_replaying)
10349 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10350 (cmd_record_btrace_start): Replace throw_exception with throw.
10351 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10353 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10354 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10356 (find_linespec_symbols): Replace throw_exception with throw.
10357 * infrun.c (displaced_step_prepare, resume): Replace
10358 throw_exception with throw.
10359 * infcmd.c (post_create_inferior): Replace throw_exception with
10361 * inf-loop.c (inferior_event_handler): Replace throw_exception
10363 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10364 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10365 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10366 (get_prev_frame_always, get_frame_pc_if_available)
10367 (get_frame_address_in_block_if_available, get_frame_language):
10368 Replace throw_exception with throw.
10369 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10370 throw_exception with throw.
10371 * eval.c (fetch_subexp_value, evaluate_var_value)
10372 (evaluate_funcall, evaluate_subexp_standard): Replace
10373 throw_exception with throw.
10374 * dwarf2loc.c (call_site_find_chain)
10375 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10376 Replace throw_exception with throw.
10377 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10379 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10381 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10382 * completer.c (complete_line_internal): Replace throw_exception
10384 * compile/compile-object-run.c (compile_object_run): Replace
10385 throw_exception with throw.
10386 * cli/cli-script.c (process_next_line): Replace throw_exception
10388 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10389 (btrace_enable, btrace_maint_update_pt_packets): Replace
10390 throw_exception with throw.
10391 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10392 throw_exception with throw.
10393 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10394 throw_exception with throw.
10395 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10396 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10397 * aarch64-tdep.c (aarch64_make_prologue_cache)
10398 (aarch64_make_stub_cache): Replace throw_exception with throw.
10400 2019-04-08 Tom Tromey <tom@tromey.com>
10402 * common/common-exceptions.c (throw_exception): Rename from
10403 throw_exception_cxx. Remove old copy. Make argument const.
10404 (throw_it): Create and throw exception objects directly.
10405 * common/common-exceptions.h (throw_exception): Make argument
10407 (struct gdb_exception_error): Add constructor.
10408 (struct gdb_exception_quit): Add constructor.
10410 2019-04-08 Tom Tromey <tom@tromey.com>
10412 * common/common-exceptions.h (exception_rethrow): Don't declare.
10413 (TRY_SJLJ): Update comment.
10414 (TRY, CATCH, END_CATCH): Remove.
10415 * common/common-exceptions.c (exception_rethrow): Remove.
10417 2019-04-08 Tom Tromey <tom@tromey.com>
10419 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10421 (gdb_exception_error): Rename from
10422 gdb_exception_RETURN_MASK_ERROR.
10423 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10424 (gdb_quit_bad_alloc): Update.
10425 * aarch64-tdep.c: Update.
10426 * ada-lang.c: Update.
10427 * ada-typeprint.c: Update.
10428 * ada-valprint.c: Update.
10429 * amd64-tdep.c: Update.
10430 * arch-utils.c: Update.
10431 * break-catch-throw.c: Update.
10432 * breakpoint.c: Update.
10433 * btrace.c: Update.
10434 * c-varobj.c: Update.
10435 * cli/cli-cmds.c: Update.
10436 * cli/cli-interp.c: Update.
10437 * cli/cli-script.c: Update.
10438 * common/common-exceptions.c: Update.
10439 * common/new-op.c: Update.
10440 * common/selftest.c: Update.
10441 * compile/compile-c-symbols.c: Update.
10442 * compile/compile-cplus-symbols.c: Update.
10443 * compile/compile-object-load.c: Update.
10444 * compile/compile-object-run.c: Update.
10445 * completer.c: Update.
10446 * corelow.c: Update.
10447 * cp-abi.c: Update.
10448 * cp-support.c: Update.
10449 * cp-valprint.c: Update.
10450 * darwin-nat.c: Update.
10451 * disasm-selftests.c: Update.
10452 * dtrace-probe.c: Update.
10453 * dwarf-index-cache.c: Update.
10454 * dwarf-index-write.c: Update.
10455 * dwarf2-frame-tailcall.c: Update.
10456 * dwarf2-frame.c: Update.
10457 * dwarf2loc.c: Update.
10458 * dwarf2read.c: Update.
10460 * event-loop.c: Update.
10461 * event-top.c: Update.
10463 * f-valprint.c: Update.
10464 * fbsd-tdep.c: Update.
10465 * frame-unwind.c: Update.
10467 * gdbtypes.c: Update.
10468 * gnu-v3-abi.c: Update.
10469 * guile/guile-internal.h: Update.
10470 * guile/scm-block.c: Update.
10471 * guile/scm-breakpoint.c: Update.
10472 * guile/scm-cmd.c: Update.
10473 * guile/scm-disasm.c: Update.
10474 * guile/scm-frame.c: Update.
10475 * guile/scm-lazy-string.c: Update.
10476 * guile/scm-math.c: Update.
10477 * guile/scm-param.c: Update.
10478 * guile/scm-ports.c: Update.
10479 * guile/scm-pretty-print.c: Update.
10480 * guile/scm-symbol.c: Update.
10481 * guile/scm-symtab.c: Update.
10482 * guile/scm-type.c: Update.
10483 * guile/scm-value.c: Update.
10484 * i386-linux-tdep.c: Update.
10485 * i386-tdep.c: Update.
10486 * inf-loop.c: Update.
10487 * infcall.c: Update.
10488 * infcmd.c: Update.
10489 * infrun.c: Update.
10491 * language.c: Update.
10492 * linespec.c: Update.
10493 * linux-fork.c: Update.
10494 * linux-nat.c: Update.
10495 * linux-tdep.c: Update.
10496 * linux-thread-db.c: Update.
10498 * mi/mi-cmd-break.c: Update.
10499 * mi/mi-cmd-stack.c: Update.
10500 * mi/mi-interp.c: Update.
10501 * mi/mi-main.c: Update.
10502 * objc-lang.c: Update.
10503 * p-valprint.c: Update.
10505 * ppc-linux-tdep.c: Update.
10506 * printcmd.c: Update.
10507 * python/py-arch.c: Update.
10508 * python/py-breakpoint.c: Update.
10509 * python/py-cmd.c: Update.
10510 * python/py-finishbreakpoint.c: Update.
10511 * python/py-frame.c: Update.
10512 * python/py-framefilter.c: Update.
10513 * python/py-gdb-readline.c: Update.
10514 * python/py-inferior.c: Update.
10515 * python/py-infthread.c: Update.
10516 * python/py-lazy-string.c: Update.
10517 * python/py-linetable.c: Update.
10518 * python/py-objfile.c: Update.
10519 * python/py-param.c: Update.
10520 * python/py-prettyprint.c: Update.
10521 * python/py-progspace.c: Update.
10522 * python/py-record-btrace.c: Update.
10523 * python/py-record.c: Update.
10524 * python/py-symbol.c: Update.
10525 * python/py-type.c: Update.
10526 * python/py-unwind.c: Update.
10527 * python/py-utils.c: Update.
10528 * python/py-value.c: Update.
10529 * python/python.c: Update.
10530 * record-btrace.c: Update.
10531 * record-full.c: Update.
10532 * remote-fileio.c: Update.
10533 * remote.c: Update.
10534 * riscv-tdep.c: Update.
10535 * rs6000-aix-tdep.c: Update.
10536 * rs6000-tdep.c: Update.
10537 * rust-exp.y: Update.
10538 * rust-lang.c: Update.
10539 * s390-tdep.c: Update.
10540 * selftest-arch.c: Update.
10541 * solib-dsbt.c: Update.
10542 * solib-frv.c: Update.
10543 * solib-spu.c: Update.
10544 * solib-svr4.c: Update.
10546 * sparc64-linux-tdep.c: Update.
10548 * symfile-mem.c: Update.
10549 * symmisc.c: Update.
10550 * target.c: Update.
10551 * thread.c: Update.
10553 * tracefile-tfile.c: Update.
10554 * tui/tui.c: Update.
10555 * typeprint.c: Update.
10556 * unittests/cli-utils-selftests.c: Update.
10557 * unittests/parse-connection-spec-selftests.c: Update.
10558 * valops.c: Update.
10559 * valprint.c: Update.
10561 * varobj.c: Update.
10562 * windows-nat.c: Update.
10563 * x86-linux-nat.c: Update.
10564 * xml-support.c: Update.
10566 2019-04-08 Tom Tromey <tom@tromey.com>
10568 * xml-support.c: Use C++ exception handling.
10569 * x86-linux-nat.c: Use C++ exception handling.
10570 * windows-nat.c: Use C++ exception handling.
10571 * varobj.c: Use C++ exception handling.
10572 * value.c: Use C++ exception handling.
10573 * valprint.c: Use C++ exception handling.
10574 * valops.c: Use C++ exception handling.
10575 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10577 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10578 * typeprint.c: Use C++ exception handling.
10579 * tui/tui.c: Use C++ exception handling.
10580 * tracefile-tfile.c: Use C++ exception handling.
10581 * top.c: Use C++ exception handling.
10582 * thread.c: Use C++ exception handling.
10583 * target.c: Use C++ exception handling.
10584 * symmisc.c: Use C++ exception handling.
10585 * symfile-mem.c: Use C++ exception handling.
10586 * stack.c: Use C++ exception handling.
10587 * sparc64-linux-tdep.c: Use C++ exception handling.
10588 * solib.c: Use C++ exception handling.
10589 * solib-svr4.c: Use C++ exception handling.
10590 * solib-spu.c: Use C++ exception handling.
10591 * solib-frv.c: Use C++ exception handling.
10592 * solib-dsbt.c: Use C++ exception handling.
10593 * selftest-arch.c: Use C++ exception handling.
10594 * s390-tdep.c: Use C++ exception handling.
10595 * rust-lang.c: Use C++ exception handling.
10596 * rust-exp.y: Use C++ exception handling.
10597 * rs6000-tdep.c: Use C++ exception handling.
10598 * rs6000-aix-tdep.c: Use C++ exception handling.
10599 * riscv-tdep.c: Use C++ exception handling.
10600 * remote.c: Use C++ exception handling.
10601 * remote-fileio.c: Use C++ exception handling.
10602 * record-full.c: Use C++ exception handling.
10603 * record-btrace.c: Use C++ exception handling.
10604 * python/python.c: Use C++ exception handling.
10605 * python/py-value.c: Use C++ exception handling.
10606 * python/py-utils.c: Use C++ exception handling.
10607 * python/py-unwind.c: Use C++ exception handling.
10608 * python/py-type.c: Use C++ exception handling.
10609 * python/py-symbol.c: Use C++ exception handling.
10610 * python/py-record.c: Use C++ exception handling.
10611 * python/py-record-btrace.c: Use C++ exception handling.
10612 * python/py-progspace.c: Use C++ exception handling.
10613 * python/py-prettyprint.c: Use C++ exception handling.
10614 * python/py-param.c: Use C++ exception handling.
10615 * python/py-objfile.c: Use C++ exception handling.
10616 * python/py-linetable.c: Use C++ exception handling.
10617 * python/py-lazy-string.c: Use C++ exception handling.
10618 * python/py-infthread.c: Use C++ exception handling.
10619 * python/py-inferior.c: Use C++ exception handling.
10620 * python/py-gdb-readline.c: Use C++ exception handling.
10621 * python/py-framefilter.c: Use C++ exception handling.
10622 * python/py-frame.c: Use C++ exception handling.
10623 * python/py-finishbreakpoint.c: Use C++ exception handling.
10624 * python/py-cmd.c: Use C++ exception handling.
10625 * python/py-breakpoint.c: Use C++ exception handling.
10626 * python/py-arch.c: Use C++ exception handling.
10627 * printcmd.c: Use C++ exception handling.
10628 * ppc-linux-tdep.c: Use C++ exception handling.
10629 * parse.c: Use C++ exception handling.
10630 * p-valprint.c: Use C++ exception handling.
10631 * objc-lang.c: Use C++ exception handling.
10632 * mi/mi-main.c: Use C++ exception handling.
10633 * mi/mi-interp.c: Use C++ exception handling.
10634 * mi/mi-cmd-stack.c: Use C++ exception handling.
10635 * mi/mi-cmd-break.c: Use C++ exception handling.
10636 * main.c: Use C++ exception handling.
10637 * linux-thread-db.c: Use C++ exception handling.
10638 * linux-tdep.c: Use C++ exception handling.
10639 * linux-nat.c: Use C++ exception handling.
10640 * linux-fork.c: Use C++ exception handling.
10641 * linespec.c: Use C++ exception handling.
10642 * language.c: Use C++ exception handling.
10643 * jit.c: Use C++ exception handling.
10644 * infrun.c: Use C++ exception handling.
10645 * infcmd.c: Use C++ exception handling.
10646 * infcall.c: Use C++ exception handling.
10647 * inf-loop.c: Use C++ exception handling.
10648 * i386-tdep.c: Use C++ exception handling.
10649 * i386-linux-tdep.c: Use C++ exception handling.
10650 * guile/scm-value.c: Use C++ exception handling.
10651 * guile/scm-type.c: Use C++ exception handling.
10652 * guile/scm-symtab.c: Use C++ exception handling.
10653 * guile/scm-symbol.c: Use C++ exception handling.
10654 * guile/scm-pretty-print.c: Use C++ exception handling.
10655 * guile/scm-ports.c: Use C++ exception handling.
10656 * guile/scm-param.c: Use C++ exception handling.
10657 * guile/scm-math.c: Use C++ exception handling.
10658 * guile/scm-lazy-string.c: Use C++ exception handling.
10659 * guile/scm-frame.c: Use C++ exception handling.
10660 * guile/scm-disasm.c: Use C++ exception handling.
10661 * guile/scm-cmd.c: Use C++ exception handling.
10662 * guile/scm-breakpoint.c: Use C++ exception handling.
10663 * guile/scm-block.c: Use C++ exception handling.
10664 * guile/guile-internal.h: Use C++ exception handling.
10665 * gnu-v3-abi.c: Use C++ exception handling.
10666 * gdbtypes.c: Use C++ exception handling.
10667 * frame.c: Use C++ exception handling.
10668 * frame-unwind.c: Use C++ exception handling.
10669 * fbsd-tdep.c: Use C++ exception handling.
10670 * f-valprint.c: Use C++ exception handling.
10671 * exec.c: Use C++ exception handling.
10672 * event-top.c: Use C++ exception handling.
10673 * event-loop.c: Use C++ exception handling.
10674 * eval.c: Use C++ exception handling.
10675 * dwarf2read.c: Use C++ exception handling.
10676 * dwarf2loc.c: Use C++ exception handling.
10677 * dwarf2-frame.c: Use C++ exception handling.
10678 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10679 * dwarf-index-write.c: Use C++ exception handling.
10680 * dwarf-index-cache.c: Use C++ exception handling.
10681 * dtrace-probe.c: Use C++ exception handling.
10682 * disasm-selftests.c: Use C++ exception handling.
10683 * darwin-nat.c: Use C++ exception handling.
10684 * cp-valprint.c: Use C++ exception handling.
10685 * cp-support.c: Use C++ exception handling.
10686 * cp-abi.c: Use C++ exception handling.
10687 * corelow.c: Use C++ exception handling.
10688 * completer.c: Use C++ exception handling.
10689 * compile/compile-object-run.c: Use C++ exception handling.
10690 * compile/compile-object-load.c: Use C++ exception handling.
10691 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10692 * compile/compile-c-symbols.c: Use C++ exception handling.
10693 * common/selftest.c: Use C++ exception handling.
10694 * common/new-op.c: Use C++ exception handling.
10695 * cli/cli-script.c: Use C++ exception handling.
10696 * cli/cli-interp.c: Use C++ exception handling.
10697 * cli/cli-cmds.c: Use C++ exception handling.
10698 * c-varobj.c: Use C++ exception handling.
10699 * btrace.c: Use C++ exception handling.
10700 * breakpoint.c: Use C++ exception handling.
10701 * break-catch-throw.c: Use C++ exception handling.
10702 * arch-utils.c: Use C++ exception handling.
10703 * amd64-tdep.c: Use C++ exception handling.
10704 * ada-valprint.c: Use C++ exception handling.
10705 * ada-typeprint.c: Use C++ exception handling.
10706 * ada-lang.c: Use C++ exception handling.
10707 * aarch64-tdep.c: Use C++ exception handling.
10709 2019-04-08 Tom Tromey <tom@tromey.com>
10711 * xml-support.c (gdb_xml_parser::parse): Update.
10712 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10713 * value.c (show_convenience): Update.
10714 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10715 (test_parse_flags_qcs): Update.
10716 * thread.c (thr_try_catch_cmd): Update.
10717 * target.c (target_translate_tls_address): Update.
10718 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10719 (info_frame_command_core, frame_apply_command_count): Update.
10720 * rust-exp.y (rust_lex_exception_test): Update.
10721 * riscv-tdep.c (riscv_print_one_register_info): Update.
10722 * remote.c (remote_target::enable_btrace): Update.
10723 * record-btrace.c (record_btrace_enable_warn): Update.
10724 * python/py-utils.c (gdbpy_convert_exception): Update.
10725 * printcmd.c (do_one_display, print_variable_and_value): Update.
10726 * mi/mi-main.c (mi_print_exception): Update.
10727 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10728 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10729 * linux-nat.c (linux_nat_target::attach): Update.
10730 * linux-fork.c (class scoped_switch_fork_info): Update.
10731 * infrun.c (displaced_step_prepare): Update.
10732 * infcall.c (call_function_by_hand_dummy): Update.
10733 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10734 * gnu-v3-abi.c (print_one_vtable): Update.
10735 * frame.c (get_prev_frame_always): Update.
10736 * f-valprint.c (info_common_command_for_block): Update.
10737 * exec.c (try_open_exec_file): Update.
10738 * exceptions.c (print_exception, exception_print)
10739 (exception_fprintf, exception_print_same): Update.
10740 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10741 * dwarf-index-cache.c (index_cache::store)
10742 (index_cache::lookup_gdb_index): Update.
10743 * darwin-nat.c (maybe_cache_shell): Update.
10744 * cp-valprint.c (cp_print_value_fields): Update.
10745 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10746 (gcc_cplus_symbol_address): Update.
10747 * compile/compile-c-symbols.c (gcc_convert_symbol)
10748 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10749 * common/selftest.c: Update.
10750 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10752 (exception_try_scope_entry, exception_try_scope_exit): Don't
10754 (struct exception_try_scope): Remove.
10755 (TRY): Don't use exception_try_scope.
10756 (struct gdb_exception): Add constructor, operator=.
10757 <what>: New method.
10758 (struct gdb_exception_RETURN_MASK_ALL)
10759 (struct gdb_exception_RETURN_MASK_ERROR)
10760 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10761 (struct gdb_quit_bad_alloc): Update.
10762 * common/common-exceptions.c (exception_none): Change
10764 (struct catcher) <state, exception>: Initialize inline.
10765 <prev>: Remove member.
10766 (current_catcher): Remove.
10767 (catchers): New global.
10768 (exceptions_state_mc_init): Simplify.
10769 (catcher_pop): Remove.
10770 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10771 (try_scope_depth, exception_try_scope_entry)
10772 (exception_try_scope_exit): Remove.
10773 (throw_exception_sjlj): Update.
10774 (exception_messages, exception_messages_size): Remove.
10775 (throw_it): Simplify.
10776 (gdb_exception_sliced_copy): Remove.
10777 (throw_exception_cxx): Update.
10778 * cli/cli-script.c (script_from_file): Update.
10779 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10781 * ada-valprint.c (ada_val_print): Update.
10782 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10783 (create_excep_cond_exprs): Update.
10785 2019-04-08 Tom Tromey <tom@tromey.com>
10787 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10788 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10789 (TRY, CATCH, END_CATCH): Remove some definitions.
10790 * common/common-exceptions.c: Don't use GDB_XCPT.
10791 (catcher_list_size): Remove.
10792 (throw_exception, throw_it): Simplify.
10794 2019-04-05 Tom Tromey <tom@tromey.com>
10796 Revert the header-sorting patch.
10797 * ft32-tdep.c: Revert.
10798 * frv-tdep.c: Revert.
10799 * frv-linux-tdep.c: Revert.
10801 * frame-unwind.c: Revert.
10802 * frame-base.c: Revert.
10803 * fork-child.c: Revert.
10804 * findvar.c: Revert.
10805 * findcmd.c: Revert.
10806 * filesystem.c: Revert.
10807 * filename-seen-cache.h: Revert.
10808 * filename-seen-cache.c: Revert.
10809 * fbsd-tdep.c: Revert.
10810 * fbsd-nat.h: Revert.
10811 * fbsd-nat.c: Revert.
10812 * f-valprint.c: Revert.
10813 * f-typeprint.c: Revert.
10814 * f-lang.c: Revert.
10815 * extension.h: Revert.
10816 * extension.c: Revert.
10817 * extension-priv.h: Revert.
10818 * expprint.c: Revert.
10821 * exceptions.c: Revert.
10822 * event-top.c: Revert.
10823 * event-loop.c: Revert.
10825 * elfread.c: Revert.
10826 * dwarf2read.h: Revert.
10827 * dwarf2read.c: Revert.
10828 * dwarf2loc.c: Revert.
10829 * dwarf2expr.h: Revert.
10830 * dwarf2expr.c: Revert.
10831 * dwarf2-frame.c: Revert.
10832 * dwarf2-frame-tailcall.c: Revert.
10833 * dwarf-index-write.h: Revert.
10834 * dwarf-index-write.c: Revert.
10835 * dwarf-index-common.c: Revert.
10836 * dwarf-index-cache.h: Revert.
10837 * dwarf-index-cache.c: Revert.
10838 * dummy-frame.c: Revert.
10839 * dtrace-probe.c: Revert.
10840 * disasm.h: Revert.
10841 * disasm.c: Revert.
10842 * disasm-selftests.c: Revert.
10843 * dictionary.c: Revert.
10844 * dicos-tdep.c: Revert.
10845 * demangle.c: Revert.
10846 * dcache.h: Revert.
10847 * dcache.c: Revert.
10848 * darwin-nat.h: Revert.
10849 * darwin-nat.c: Revert.
10850 * darwin-nat-info.c: Revert.
10851 * d-valprint.c: Revert.
10852 * d-namespace.c: Revert.
10853 * d-lang.c: Revert.
10855 * csky-tdep.c: Revert.
10856 * csky-linux-tdep.c: Revert.
10857 * cris-tdep.c: Revert.
10858 * cris-linux-tdep.c: Revert.
10859 * cp-valprint.c: Revert.
10860 * cp-support.c: Revert.
10861 * cp-namespace.c: Revert.
10862 * cp-abi.c: Revert.
10863 * corelow.c: Revert.
10864 * corefile.c: Revert.
10865 * continuations.c: Revert.
10866 * completer.h: Revert.
10867 * completer.c: Revert.
10868 * complaints.c: Revert.
10869 * coffread.c: Revert.
10870 * coff-pe-read.c: Revert.
10871 * cli-out.h: Revert.
10872 * cli-out.c: Revert.
10873 * charset.c: Revert.
10874 * c-varobj.c: Revert.
10875 * c-valprint.c: Revert.
10876 * c-typeprint.c: Revert.
10877 * c-lang.c: Revert.
10878 * buildsym.c: Revert.
10879 * buildsym-legacy.c: Revert.
10880 * build-id.h: Revert.
10881 * build-id.c: Revert.
10882 * btrace.c: Revert.
10883 * bsd-uthread.c: Revert.
10884 * breakpoint.h: Revert.
10885 * breakpoint.c: Revert.
10886 * break-catch-throw.c: Revert.
10887 * break-catch-syscall.c: Revert.
10888 * break-catch-sig.c: Revert.
10889 * blockframe.c: Revert.
10891 * bfin-tdep.c: Revert.
10892 * bfin-linux-tdep.c: Revert.
10893 * bfd-target.c: Revert.
10894 * bcache.c: Revert.
10895 * ax-general.c: Revert.
10896 * ax-gdb.h: Revert.
10897 * ax-gdb.c: Revert.
10898 * avr-tdep.c: Revert.
10900 * auto-load.c: Revert.
10901 * arm-wince-tdep.c: Revert.
10902 * arm-tdep.c: Revert.
10903 * arm-symbian-tdep.c: Revert.
10904 * arm-pikeos-tdep.c: Revert.
10905 * arm-obsd-tdep.c: Revert.
10906 * arm-nbsd-tdep.c: Revert.
10907 * arm-nbsd-nat.c: Revert.
10908 * arm-linux-tdep.c: Revert.
10909 * arm-linux-nat.c: Revert.
10910 * arm-fbsd-tdep.c: Revert.
10911 * arm-fbsd-nat.c: Revert.
10912 * arm-bsd-tdep.c: Revert.
10913 * arch-utils.c: Revert.
10914 * arc-tdep.c: Revert.
10915 * arc-newlib-tdep.c: Revert.
10916 * annotate.h: Revert.
10917 * annotate.c: Revert.
10918 * amd64-windows-tdep.c: Revert.
10919 * amd64-windows-nat.c: Revert.
10920 * amd64-tdep.c: Revert.
10921 * amd64-sol2-tdep.c: Revert.
10922 * amd64-obsd-tdep.c: Revert.
10923 * amd64-obsd-nat.c: Revert.
10924 * amd64-nbsd-tdep.c: Revert.
10925 * amd64-nbsd-nat.c: Revert.
10926 * amd64-nat.c: Revert.
10927 * amd64-linux-tdep.c: Revert.
10928 * amd64-linux-nat.c: Revert.
10929 * amd64-fbsd-tdep.c: Revert.
10930 * amd64-fbsd-nat.c: Revert.
10931 * amd64-dicos-tdep.c: Revert.
10932 * amd64-darwin-tdep.c: Revert.
10933 * amd64-bsd-nat.c: Revert.
10934 * alpha-tdep.c: Revert.
10935 * alpha-obsd-tdep.c: Revert.
10936 * alpha-nbsd-tdep.c: Revert.
10937 * alpha-mdebug-tdep.c: Revert.
10938 * alpha-linux-tdep.c: Revert.
10939 * alpha-linux-nat.c: Revert.
10940 * alpha-bsd-tdep.c: Revert.
10941 * alpha-bsd-nat.c: Revert.
10942 * aix-thread.c: Revert.
10944 * addrmap.c: Revert.
10945 * ada-varobj.c: Revert.
10946 * ada-valprint.c: Revert.
10947 * ada-typeprint.c: Revert.
10948 * ada-tasks.c: Revert.
10949 * ada-lang.c: Revert.
10950 * aarch64-tdep.c: Revert.
10951 * aarch64-ravenscar-thread.c: Revert.
10952 * aarch64-newlib-tdep.c: Revert.
10953 * aarch64-linux-tdep.c: Revert.
10954 * aarch64-linux-nat.c: Revert.
10955 * aarch64-fbsd-tdep.c: Revert.
10956 * aarch64-fbsd-nat.c: Revert.
10957 * aarch32-linux-nat.c: Revert.
10959 2019-04-05 Tom Tromey <tom@tromey.com>
10961 * ft32-tdep.c: Sort headers.
10962 * frv-tdep.c: Sort headers.
10963 * frv-linux-tdep.c: Sort headers.
10964 * frame.c: Sort headers.
10965 * frame-unwind.c: Sort headers.
10966 * frame-base.c: Sort headers.
10967 * fork-child.c: Sort headers.
10968 * findvar.c: Sort headers.
10969 * findcmd.c: Sort headers.
10970 * filesystem.c: Sort headers.
10971 * filename-seen-cache.h: Sort headers.
10972 * filename-seen-cache.c: Sort headers.
10973 * fbsd-tdep.c: Sort headers.
10974 * fbsd-nat.h: Sort headers.
10975 * fbsd-nat.c: Sort headers.
10976 * f-valprint.c: Sort headers.
10977 * f-typeprint.c: Sort headers.
10978 * f-lang.c: Sort headers.
10979 * extension.h: Sort headers.
10980 * extension.c: Sort headers.
10981 * extension-priv.h: Sort headers.
10982 * expprint.c: Sort headers.
10983 * exec.h: Sort headers.
10984 * exec.c: Sort headers.
10985 * exceptions.c: Sort headers.
10986 * event-top.c: Sort headers.
10987 * event-loop.c: Sort headers.
10988 * eval.c: Sort headers.
10989 * elfread.c: Sort headers.
10990 * dwarf2read.h: Sort headers.
10991 * dwarf2read.c: Sort headers.
10992 * dwarf2loc.c: Sort headers.
10993 * dwarf2expr.h: Sort headers.
10994 * dwarf2expr.c: Sort headers.
10995 * dwarf2-frame.c: Sort headers.
10996 * dwarf2-frame-tailcall.c: Sort headers.
10997 * dwarf-index-write.h: Sort headers.
10998 * dwarf-index-write.c: Sort headers.
10999 * dwarf-index-common.c: Sort headers.
11000 * dwarf-index-cache.h: Sort headers.
11001 * dwarf-index-cache.c: Sort headers.
11002 * dummy-frame.c: Sort headers.
11003 * dtrace-probe.c: Sort headers.
11004 * disasm.h: Sort headers.
11005 * disasm.c: Sort headers.
11006 * disasm-selftests.c: Sort headers.
11007 * dictionary.c: Sort headers.
11008 * dicos-tdep.c: Sort headers.
11009 * demangle.c: Sort headers.
11010 * dcache.h: Sort headers.
11011 * dcache.c: Sort headers.
11012 * darwin-nat.h: Sort headers.
11013 * darwin-nat.c: Sort headers.
11014 * darwin-nat-info.c: Sort headers.
11015 * d-valprint.c: Sort headers.
11016 * d-namespace.c: Sort headers.
11017 * d-lang.c: Sort headers.
11018 * ctf.c: Sort headers.
11019 * csky-tdep.c: Sort headers.
11020 * csky-linux-tdep.c: Sort headers.
11021 * cris-tdep.c: Sort headers.
11022 * cris-linux-tdep.c: Sort headers.
11023 * cp-valprint.c: Sort headers.
11024 * cp-support.c: Sort headers.
11025 * cp-namespace.c: Sort headers.
11026 * cp-abi.c: Sort headers.
11027 * corelow.c: Sort headers.
11028 * corefile.c: Sort headers.
11029 * continuations.c: Sort headers.
11030 * completer.h: Sort headers.
11031 * completer.c: Sort headers.
11032 * complaints.c: Sort headers.
11033 * coffread.c: Sort headers.
11034 * coff-pe-read.c: Sort headers.
11035 * cli-out.h: Sort headers.
11036 * cli-out.c: Sort headers.
11037 * charset.c: Sort headers.
11038 * c-varobj.c: Sort headers.
11039 * c-valprint.c: Sort headers.
11040 * c-typeprint.c: Sort headers.
11041 * c-lang.c: Sort headers.
11042 * buildsym.c: Sort headers.
11043 * buildsym-legacy.c: Sort headers.
11044 * build-id.h: Sort headers.
11045 * build-id.c: Sort headers.
11046 * btrace.c: Sort headers.
11047 * bsd-uthread.c: Sort headers.
11048 * breakpoint.h: Sort headers.
11049 * breakpoint.c: Sort headers.
11050 * break-catch-throw.c: Sort headers.
11051 * break-catch-syscall.c: Sort headers.
11052 * break-catch-sig.c: Sort headers.
11053 * blockframe.c: Sort headers.
11054 * block.c: Sort headers.
11055 * bfin-tdep.c: Sort headers.
11056 * bfin-linux-tdep.c: Sort headers.
11057 * bfd-target.c: Sort headers.
11058 * bcache.c: Sort headers.
11059 * ax-general.c: Sort headers.
11060 * ax-gdb.h: Sort headers.
11061 * ax-gdb.c: Sort headers.
11062 * avr-tdep.c: Sort headers.
11063 * auxv.c: Sort headers.
11064 * auto-load.c: Sort headers.
11065 * arm-wince-tdep.c: Sort headers.
11066 * arm-tdep.c: Sort headers.
11067 * arm-symbian-tdep.c: Sort headers.
11068 * arm-pikeos-tdep.c: Sort headers.
11069 * arm-obsd-tdep.c: Sort headers.
11070 * arm-nbsd-tdep.c: Sort headers.
11071 * arm-nbsd-nat.c: Sort headers.
11072 * arm-linux-tdep.c: Sort headers.
11073 * arm-linux-nat.c: Sort headers.
11074 * arm-fbsd-tdep.c: Sort headers.
11075 * arm-fbsd-nat.c: Sort headers.
11076 * arm-bsd-tdep.c: Sort headers.
11077 * arch-utils.c: Sort headers.
11078 * arc-tdep.c: Sort headers.
11079 * arc-newlib-tdep.c: Sort headers.
11080 * annotate.h: Sort headers.
11081 * annotate.c: Sort headers.
11082 * amd64-windows-tdep.c: Sort headers.
11083 * amd64-windows-nat.c: Sort headers.
11084 * amd64-tdep.c: Sort headers.
11085 * amd64-sol2-tdep.c: Sort headers.
11086 * amd64-obsd-tdep.c: Sort headers.
11087 * amd64-obsd-nat.c: Sort headers.
11088 * amd64-nbsd-tdep.c: Sort headers.
11089 * amd64-nbsd-nat.c: Sort headers.
11090 * amd64-nat.c: Sort headers.
11091 * amd64-linux-tdep.c: Sort headers.
11092 * amd64-linux-nat.c: Sort headers.
11093 * amd64-fbsd-tdep.c: Sort headers.
11094 * amd64-fbsd-nat.c: Sort headers.
11095 * amd64-dicos-tdep.c: Sort headers.
11096 * amd64-darwin-tdep.c: Sort headers.
11097 * amd64-bsd-nat.c: Sort headers.
11098 * alpha-tdep.c: Sort headers.
11099 * alpha-obsd-tdep.c: Sort headers.
11100 * alpha-nbsd-tdep.c: Sort headers.
11101 * alpha-mdebug-tdep.c: Sort headers.
11102 * alpha-linux-tdep.c: Sort headers.
11103 * alpha-linux-nat.c: Sort headers.
11104 * alpha-bsd-tdep.c: Sort headers.
11105 * alpha-bsd-nat.c: Sort headers.
11106 * aix-thread.c: Sort headers.
11107 * agent.c: Sort headers.
11108 * addrmap.c: Sort headers.
11109 * ada-varobj.c: Sort headers.
11110 * ada-valprint.c: Sort headers.
11111 * ada-typeprint.c: Sort headers.
11112 * ada-tasks.c: Sort headers.
11113 * ada-lang.c: Sort headers.
11114 * aarch64-tdep.c: Sort headers.
11115 * aarch64-ravenscar-thread.c: Sort headers.
11116 * aarch64-newlib-tdep.c: Sort headers.
11117 * aarch64-linux-tdep.c: Sort headers.
11118 * aarch64-linux-nat.c: Sort headers.
11119 * aarch64-fbsd-tdep.c: Sort headers.
11120 * aarch64-fbsd-nat.c: Sort headers.
11121 * aarch32-linux-nat.c: Sort headers.
11123 2019-04-04 Tom Tromey <tom@tromey.com>
11125 * varobj.c (varobj_create): Update.
11126 * rust-exp.y (struct rust_parser) <update_innermost_block,
11127 lookup_symbol>: New methods.
11128 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11130 (rust_parser::rust_lookup_type)
11131 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11132 * printcmd.c (display_command, do_one_display): Update.
11133 * parser-defs.h (struct parser_state) <parser_state>: Add
11134 "tracker" parameter.
11135 (block_tracker): New member.
11136 (class innermost_block_tracker) <innermost_block_tracker>: Add
11138 <reset>: Remove method.
11139 (innermost_block): Don't declare.
11140 (null_post_parser): Update.
11141 * parse.c (innermost_block): Remove global.
11142 (write_dollar_variable): Update.
11143 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11144 Remove "tracker_types" parameter.
11145 (parse_expression): Add "tracker" parameter.
11146 (parse_expression_for_completion): Update.
11147 (null_post_parser): Add "tracker" parameter.
11148 * p-exp.y: Update rules.
11149 * m2-exp.y: Update rules.
11150 * language.h (struct language_defn) <la_post_parser>: Add
11151 "tracker" parameter.
11152 * go-exp.y: Update rules.
11153 * f-exp.y: Update rules.
11154 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11156 * d-exp.y: Update rules.
11157 * c-exp.y: Update rules.
11158 * breakpoint.c (set_breakpoint_condition): Create an
11159 innermost_block_tracker.
11160 (watch_command_1): Likewise.
11161 * ada-lang.c (resolve): Add "tracker" parameter.
11162 (resolve_subexp): Likewise.
11163 * ada-exp.y (write_var_from_sym): Update.
11165 2019-04-04 Tom Tromey <tom@tromey.com>
11167 * type-stack.h: New file.
11168 * type-stack.c: New file.
11169 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11171 (insert_into_type_stack, insert_type, push_type, push_type_int)
11172 (insert_type_address_space, pop_type, pop_type_int)
11173 (pop_typelist, pop_type_stack, append_type_stack)
11174 (push_type_stack, get_type_stack, push_typelist)
11175 (follow_type_instance_flags, follow_types): Don't declare.
11176 * parse.c (type_stack): Remove global.
11177 (parse_exp_in_context): Update.
11178 (insert_into_type_stack, insert_type, push_type, push_type_int)
11179 (insert_type_address_space, pop_type, pop_type_int)
11180 (pop_typelist, pop_type_stack, append_type_stack)
11181 (push_type_stack, get_type_stack, push_typelist)
11182 (follow_type_instance_flags, follow_types): Remove (moved to
11184 * f-exp.y (type_stack): New global.
11186 (push_kind_type, f_parse): Update.
11187 * d-exp.y (type_stack): New global.
11190 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11192 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11193 (HFILES_NO_SRCDIR): Add type-stack.h.
11195 2019-04-04 Tom Tromey <tom@tromey.com>
11197 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11198 (rust_parser::convert_ast_to_expression, rust_parse)
11199 (rust_lex_test_completion, rust_lex_tests): Update.
11200 * parser-defs.h (struct expr_completion_state): New.
11201 (struct parser_state) <parser_state>: Add completion parameter.
11202 <mark_struct_expression, mark_completion_tag>: New methods.
11203 <parse_completion, m_completion_state>: New members.
11204 (prefixify_expression, null_post_parser): Update.
11205 (mark_struct_expression, mark_completion_tag): Don't declare.
11206 * parse.c (parse_completion, expout_last_struct)
11207 (expout_tag_completion_type, expout_completion_name): Remove
11209 (parser_state::mark_struct_expression)
11210 (parser_state::mark_completion_tag): Now methods.
11211 (prefixify_expression): Add last_struct parameter.
11212 (prefixify_subexp): Likewise.
11213 (parse_exp_1): Update.
11214 (parse_exp_in_context): Add cstate parameter. Update.
11215 (parse_expression_for_completion): Create an
11216 expr_completion_state.
11217 (null_post_parser): Add "completion" parameter.
11218 * p-exp.y: Update rules.
11220 * language.h (struct language_defn) <la_post_parser>: Add
11221 "completing" parameter.
11222 * go-exp.y: Update rules.
11223 (lex_one_token): Update.
11224 * expression.h (parse_completion): Don't declare.
11225 * d-exp.y: Update rules.
11226 (lex_one_token): Update rules.
11227 * c-exp.y: Update rules.
11228 (lex_one_token): Update.
11229 * ada-lang.c (resolve): Add "parse_completion" parameter.
11230 (resolve_subexp): Likewise.
11231 (ada_resolve_function): Likewise.
11233 2019-04-04 Tom Tromey <tom@tromey.com>
11235 * parser-defs.h (struct parser_state) <start_arglist,
11236 end_arglist>: New methods.
11237 <arglist_len, m_funcall_chain>: New members.
11238 (arglist_len, start_arglist, end_arglist): Don't declare.
11239 * parse.c (arglist_len, funcall_chain): Remove global.
11240 (start_arglist, end_arglist): Remove functions.
11241 (parse_exp_in_context): Update.
11242 * p-exp.y: Update rules.
11243 * m2-exp.y: Update rules.
11244 * go-exp.y: Update rules.
11245 * f-exp.y: Update rules.
11246 * d-exp.y: Update rules.
11247 * c-exp.y: Update rules.
11249 2019-04-04 Tom Tromey <tom@tromey.com>
11251 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11252 lex_operator, push_back>: New methods.
11254 (rust_parser::lex_hex, lex_escape): Rename and update.
11255 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11256 (rust_parser::lex_operator): Rename and update.
11257 (rust_parser::lex_number, rustyylex, rustyyerror)
11258 (rust_lex_test_init, rust_lex_test_sequence)
11259 (rust_lex_test_push_back, rust_lex_tests): Update.
11260 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11262 <lexptr, prev_lexptr>: New members.
11263 (lexptr, prev_lexptr): Don't declare.
11264 * parse.c (lexptr, prev_lexptr): Remove globals.
11265 (parse_exp_in_context): Update.
11266 * p-exp.y (yylex, yyerror): Update.
11267 * m2-exp.y (parse_number, yylex, yyerror): Update.
11268 * go-exp.y (lex_one_token, yyerror): Update.
11269 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11270 * d-exp.y (lex_one_token, yyerror): Update.
11271 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11272 (lex_one_token, yyerror): Update.
11273 * ada-lex.l (YY_INPUT): Update.
11274 (rewind_to_char): Update.
11275 * ada-exp.y (yyerror): Update.
11277 2019-04-04 Tom Tromey <tom@tromey.com>
11279 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11280 * parser-defs.h (struct parser_state) <parser_state>: Add new
11282 <comma_terminates>: New member.
11283 (comma_terminates): Don't declare global.
11284 * parse.c (comma_terminates): Remove global.
11285 (parse_exp_in_context): Update.
11286 * p-exp.y (yylex): Update.
11287 * m2-exp.y (yylex): Update.
11288 * go-exp.y (lex_one_token): Update.
11289 * f-exp.y (yylex): Update.
11290 * d-exp.y (lex_one_token): Update.
11291 * c-exp.y (lex_one_token): Update.
11292 * ada-lex.l: Update.
11294 2019-04-04 Tom Tromey <tom@tromey.com>
11296 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11297 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11298 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11299 * parser-defs.h (paren_depth): Don't declare.
11300 * parse.c (paren_depth): Remove global.
11301 (parse_exp_in_context): Update.
11302 * p-exp.y (paren_depth): New global.
11303 (pascal_parse): Initialize it.
11304 * m2-exp.y (paren_depth): New global.
11305 (m2_parse): Initialize it.
11306 * go-exp.y (paren_depth): New global.
11307 (go_parse): Initialize it.
11308 * f-exp.y (paren_depth): New global.
11309 (f_parse): Initialize it.
11310 * d-exp.y (paren_depth): New global.
11311 (d_parse): Initialize it.
11312 * c-exp.y (paren_depth): New global.
11313 (c_parse): Initialize it.
11314 * ada-lex.l (paren_depth): New global.
11315 (lexer_init): Initialize it.
11317 2019-04-04 Tom Tromey <tom@tromey.com>
11319 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11320 (rust_parser::convert_ast_to_type)
11321 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11322 * parser-defs.h (struct parser_state) <parser_state>: Add
11323 parameters. Initialize new members.
11324 <expression_context_block, expression_context_pc>: New members.
11325 * parse.c (expression_context_block, expression_context_pc):
11327 (parse_exp_in_context): Update.
11328 * p-exp.y: Update all rules.
11330 * m2-exp.y: Update all rules.
11332 * go-exp.y (yylex): Update.
11333 * f-exp.y (yylex): Update.
11334 * d-exp.y: Update all rules.
11336 * c-exp.y: Update all rules.
11337 (lex_one_token, classify_name, yylex, c_parse): Update.
11338 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11340 2019-04-04 Tom Tromey <tom@tromey.com>
11342 * gdbarch.h, gdbarch.c: Rebuild.
11343 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11345 (struct stap_parse_info): Replace "parser_state" with
11347 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11348 (parser_state): New class.
11349 * parse.c (expr_builder): Rename.
11350 (expr_builder::release): Rename.
11351 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11352 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11353 (write_exp_elt_longcst, write_exp_elt_floatcst)
11354 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11355 (write_exp_string_vector, write_exp_bitstring)
11356 (write_exp_msymbol, mark_struct_expression)
11357 (write_dollar_variable)
11358 (insert_type_address_space, increase_expout_size): Replace
11359 "parser_state" with "expr_builder".
11360 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11361 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11362 "parser_state" with "expr_builder".
11364 2019-04-04 Tom Tromey <tom@tromey.com>
11366 * rust-exp.y: Replace "parse_language" with method call.
11368 (yylex): Replace "parse_language" with method call.
11370 (yylex): Replace "parse_language" with method call.
11371 * go-exp.y (classify_name): Replace "parse_language" with method
11373 * f-exp.y (yylex): Replace "parse_language" with method call.
11374 * d-exp.y (lex_one_token): Replace "parse_language" with method
11377 (lex_one_token, classify_name, yylex): Replace "parse_language"
11379 * ada-exp.y (find_primitive_type, type_char)
11380 (type_system_address): Replace "parse_language" with method call.
11382 2019-04-04 Tom Tromey <tom@tromey.com>
11384 * rust-exp.y: Replace "parse_gdbarch" with method call.
11385 * parse.c (write_dollar_variable, insert_type_address_space):
11386 Replace "parse_gdbarch" with method call.
11387 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11389 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11391 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11392 "parse_gdbarch" with method call.
11393 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11395 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11396 "parse_gdbarch" with method call.
11397 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11398 "parse_gdbarch" with method call.
11399 * c-exp.y (parse_type, parse_number, classify_name): Replace
11400 "parse_gdbarch" with method call.
11401 * ada-lex.l: Replace "parse_gdbarch" with method call.
11402 * ada-exp.y (parse_type, find_primitive_type, type_char)
11403 (type_system_address): Replace "parse_gdbarch" with method call.
11405 2019-04-04 Tom Tromey <tom@tromey.com>
11407 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11408 * stap-probe.c (stap_parse_argument): Update.
11409 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11410 initial_size parameter.
11411 * rust-exp.y (rust_lex_tests): Update.
11412 * parse.c (parser_state): Update.
11413 (parse_exp_in_context): Update.
11414 * parser-defs.h (struct parser_state) <parser_state>: Remove
11415 "initial_size" parameter.
11417 2019-04-04 Tom Tromey <tom@tromey.com>
11419 * parser-defs.h (increase_expout_size): Don't declare.
11420 * parse.c (increase_expout_size): Now static.
11422 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11424 * gnu-nat.c (gnu_nat_target::wait): Fix
11425 target_waitstatus_to_string call.
11427 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11429 * eval.c (evaluate_subexp_standard): Handle internal functions
11430 during Fortran function call handling.
11432 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11434 * NEWS: Mention new internal functions.
11435 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11436 (read_base_type): Use dwarf2_init_complex_target_type.
11437 * value.c (creal_internal_fn): New function.
11438 (cimag_internal_fn): New function.
11439 (_initialize_values): Register new internal functions.
11441 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11443 * infrun.c (stop_all_threads): If debug_infrun, always
11444 trace the wait status after wait_one, using
11445 target_waitstatus_to_string and target_pid_to_str.
11446 (handle_inferior_event): Replace various trace of
11447 wait status kind by a single trace.
11448 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11449 wait status kind image by target_waitstatus_to_string.
11450 * target/waitstatus.c (target_waitstatus_to_string): Fix
11453 2019-04-01 Tom Tromey <tromey@adacore.com>
11456 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11458 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11459 Pedro Alves <palves@redhat.com>
11461 * top.c (quit_force): Call 'finalize_values'.
11462 * value.c (finalize_values): New function.
11463 * value.h (finalize_values): Declare.
11465 2019-03-30 Eli Zaretskii <eliz@gnu.org>
11467 * NEWS: Announce $_gdb_major and $_gdb_minor.
11469 * top.c (init_gdb_version_vars): New function.
11470 (gdb_init): Call init_gdb_version_vars.
11472 2019-03-29 Tom Tromey <tromey@adacore.com>
11474 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11475 help text. Remove dead code.
11477 2019-03-29 Keith Seitz <keiths@redhat.com>
11479 From Siddhesh Poyarekar:
11480 * f-lang.h (f77_get_upperbound): Return LONGEST.
11481 (f77_get_lowerbound): Likewise.
11482 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11483 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11485 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11486 plongest to format print it.
11487 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11488 (f77_get_upperbound): Likewise.
11489 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11490 LOWER_BOUND to LONGEST.
11491 (f77_create_arrayprint_offset_tbl): Likewise.
11493 2019-03-29 Keith Seitz <keiths@redhat.com>
11495 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11496 %s/pulongest for TYPE_LENGTH instead of %d in format
11498 * ada-typerint.c (ada_print_type): Likewise.
11499 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11500 * compile/compile-c-support.c (generate_register_struct): Likewise.
11501 * gdbtypes.c (recursive_dump_type): Likewise.
11502 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11503 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11504 instead of %d in format strings.
11505 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11506 to std::min to ULONGEST.
11507 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11508 instead of %d in format strings.
11509 * tracepoint.c (info_scope_command): Likewise.
11510 * typeprint.c (print_offset_data::update)
11511 (print_offset_data::finish): Likewise.
11512 * xtensa-tdep.c (xtensa_store_return_value)
11513 (xtensa_push_dummy_call): Likewise.
11515 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11517 * windows-nat.c (display_selector): Fixed format specifications
11520 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11522 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11524 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11526 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11527 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11528 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11529 (nios2_linux_init_abi): Install it.
11531 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11533 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11535 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11537 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11539 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11540 Tom Tromey <tromey@adacore.com>
11542 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11544 2019-03-26 Joel Brobecker <brobecker@adacore.com>
11546 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11547 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11548 method to compute the bounds of range types. Also print "[evaluated]"
11549 if the bounds' values come from a dynamic evaluation.
11551 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11553 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11554 whitespace when pretty printing is on.
11556 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11558 * ppc-linux-nat.c: Add include.
11560 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11562 * NEWS: Mention AArch64 Pointer Authentication.
11564 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11566 * arm-linux-nat.c: Add include.
11568 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11570 * source-cache.c (source_cache::get_source_lines): Re-read
11571 fullname after calling open_source_file.
11573 2019-03-25 John Baldwin <jhb@FreeBSD.org>
11575 * NEWS: Mention TLS support for FreeBSD.
11577 2019-03-25 Tom Tromey <tromey@adacore.com>
11579 * minsyms.c (BUNCH_SIZE): Update comment.
11580 (~minimal_symbol_reader): Remove old comment.
11581 (compact_minimal_symbols): Update comment.
11582 (minimal_symbol_reader::install): Remove old comment. Update
11585 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11587 * s390-linux-nat.c: Add include.
11589 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11591 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11592 Call linux_get_hwcap.
11593 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11595 (aarch64_linux_get_hwcap): Remove function.
11596 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11598 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11600 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11601 * linux-tdep.c (linux_get_hwcap): Add function.
11602 (linux_get_hwcap2): Likewise.
11603 * linux-tdep.h (linux_get_hwcap): Add declaration.
11604 (linux_get_hwcap2): Likewise.
11605 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11606 (ppc_linux_get_hwcap2): Likewise.
11607 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11609 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11610 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11611 (ppc_linux_nat_target::read_description): Likewise.
11612 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11613 * s390-linux-nat.c: Likewise.
11614 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11616 2019-03-24 Tom Tromey <tom@tromey.com>
11618 * ada-lang.c (standard_lookup): Simplify initialization.
11619 (ada_lookup_symbol_nonlocal): Simplify return.
11620 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11621 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11622 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11623 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11625 * solib.c (solib_global_lookup): Simplify.
11626 * symtab.c (null_block_symbol): Remove.
11627 (symbol_cache_lookup): Simplify returns.
11628 (lookup_language_this): Simplify returns.
11629 (lookup_symbol_aux): Simplify return.
11630 (lookup_local_symbol): Simplify returns.
11631 (lookup_global_symbol_from_objfile): Simplify return.
11632 (lookup_symbol_in_objfile_symtabs)
11633 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11634 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11635 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11636 * cp-namespace.c (cp_lookup_bare_symbol)
11637 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11638 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11639 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11640 (cp_lookup_symbol_via_imports): Simplify initialization.
11641 (find_symbol_in_baseclass): Likewise.
11642 * symtab.h (null_block_symbol): Remove.
11643 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11644 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11645 (d_lookup_symbol_module): Likewise.
11646 (find_symbol_in_baseclass): Simplify initialization.
11648 2019-03-24 Tom Tromey <tom@tromey.com>
11650 * expression.h: Don't include symtab.h.
11651 (struct block): Forward declare.
11653 2019-03-24 Tom Tromey <tom@tromey.com>
11655 * c-exp.y (typebase): Remove casts.
11656 * gdbtypes.c (lookup_unsigned_typename, )
11657 (lookup_signed_typename): Remove cast.
11658 * eval.c (parse_to_comma_and_eval): Remove cast.
11659 * parse.c (write_dollar_variable): Remove cast.
11660 * block.h (struct block) <superblock>: Now const.
11661 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11662 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11663 (map_block): Make "block" const.
11664 * symfile.h (struct quick_symbol_functions)
11665 <map_matching_symbols>: Constify block argument to "callback".
11666 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11668 (find_pc_sect_compunit_symtab): Make "b" const.
11669 (find_symbol_at_address): Likewise.
11670 (search_symbols): Likewise.
11671 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11672 (dw2_debug_names_lookup_symbol): Likewise.
11673 (dw2_map_matching_symbols): Update.
11674 * p-valprint.c (pascal_val_print): Remove "block".
11675 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11676 (aux_add_nonlocal_symbols): Make "block" const.
11677 (resolve_subexp): Remove cast.
11678 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11680 (iterate_over_file_blocks): Likewise.
11681 * f-exp.y (%union) <bval>: Remove.
11682 * coffread.c (patch_opaque_types): Make "b" const.
11683 * spu-tdep.c (spu_catch_start): Make "block" const.
11684 * c-valprint.c (print_unpacked_pointer): Remove "block".
11685 * symmisc.c (dump_symtab_1): Make "b" const.
11686 (block_depth): Make "block" const.
11687 * d-exp.y (%union) <bval>: Remove.
11688 * cp-support.h (cp_lookup_rtti_type): Update.
11689 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11690 * psymtab.c (psym_lookup_symbol): Make "block" const.
11691 (maintenance_check_psymtabs): Make "b" const.
11692 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11693 (enumerate_locals, enumerate_args): Update.
11694 * python/py-symtab.c (stpy_global_block): Make "block" const.
11695 (stpy_static_block): Likewise.
11696 * inline-frame.c (block_starting_point_at): Make "new_block"
11698 * block.c (find_block_in_blockvector): Make return type const.
11699 (blockvector_for_pc_sect): Make "b" const.
11700 (find_block_in_blockvector): Make "b" const.
11702 2019-03-23 Tom Tromey <tom@tromey.com>
11704 * varobj.c (varobj_create): Update.
11705 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11706 * printcmd.c (display_command, do_one_display): Don't reset
11708 * parser-defs.h (enum innermost_block_tracker_type): Move to
11710 (innermost_block): Update comment.
11711 * parse.c (parse_exp_1): Add tracker_types parameter.
11712 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11713 tracker_types parameter. Reset innermost_block.
11714 (parse_exp_in_context): Remove.
11715 (parse_expression_for_completion): Update.
11716 * objfiles.c (~objfile): Don't reset expression_context_block or
11718 * expression.h (enum innermost_block_tracker_type): Move from
11720 (parse_exp_1): Add tracker_types parameter.
11721 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11722 reset innermost_block.
11724 2019-03-23 Tom Tromey <tom@tromey.com>
11726 * objfiles.h: Include bcache.h.
11728 2019-03-23 Tom Tromey <tom@tromey.com>
11730 * linespec.c (get_current_search_block): Use
11731 scoped_restore_current_language.
11732 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11734 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11735 Jiong Wang <jiong.wang@arm.com>
11737 * aarch64-linux-tdep.c
11738 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11740 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11742 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11743 Jiong Wang <jiong.wang@arm.com>
11745 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11747 (aarch64_analyze_prologue_test): Add PACIASP test.
11748 (aarch64_prologue_prev_register): Unmask PC value.
11750 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11751 Jiong Wang <jiong.wang@arm.com>
11753 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11754 (aarch64_dwarf2_prev_register): Unmask PC value.
11755 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11756 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11757 DW_CFA_AARCH64_negate_ra_state.
11758 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11760 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11761 Jiong Wang <jiong.wang@arm.com>
11763 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11765 (aarch64_pseudo_register_name): Likewise.
11766 (aarch64_pseudo_register_type): Likewise.
11767 (aarch64_pseudo_register_reggroup_p): Likewise.
11768 (aarch64_gdbarch_init): Add pauth registers.
11769 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11770 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11771 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11772 (struct gdbarch_tdep): Add regnum for ra_state.
11774 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11775 Jiong Wang <jiong.wang@arm.com>
11777 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11779 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11780 Jiong Wang <jiong.wang@arm.com>
11782 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11784 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11785 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11786 (aarch64_gdbarch_init): Add puth registers.
11787 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11788 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11789 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11791 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11792 Jiong Wang <jiong.wang@arm.com>
11794 * aarch64-linux-nat.c
11795 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11796 * aarch64-linux-tdep.c
11797 (aarch64_linux_core_read_description): Likewise.
11798 (aarch64_linux_get_hwcap): New function.
11799 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11800 (aarch64_linux_get_hwcap): New declaration.
11802 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11803 Jiong Wang <jiong.wang@arm.com>
11805 * aarch64-linux-nat.c
11806 (aarch64_linux_nat_target::read_description): Add pauth param.
11807 * aarch64-linux-tdep.c
11808 (aarch64_linux_core_read_description): Likewise.
11809 * aarch64-tdep.c (struct target_desc): Add in pauth.
11810 (aarch64_read_description): Add pauth param.
11811 (aarch64_gdbarch_init): Likewise.
11812 * aarch64-tdep.h (aarch64_read_description): Likewise.
11813 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11814 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11815 * features/Makefile: Add new files.
11816 * features/aarch64-pauth.c: New file.
11817 * features/aarch64-pauth.xml: New file.
11819 2019-03-20 Tom Tromey <tromey@adacore.com>
11821 * infrun.c (handle_inferior_event): Rename from
11822 handle_inferior_event_1. Create a scoped_value_mark.
11823 (handle_inferior_event): Remove.
11825 2019-03-19 Tom Tromey <tromey@adacore.com>
11827 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11828 * infrun.h (print_stop_event): Add "displays" parameter.
11829 * infrun.c (print_stop_event): Add "displays" parameter.
11831 2019-03-19 Pedro Alves <palves@redhat.com>
11833 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11834 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11835 to -1. Fix TABs vs spaces.
11836 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11837 * tui/tui-out.h (tui_ui_out) Add intro comments.
11838 <m_line, m_start_of_line>: In-class initialize, and add describing
11841 2019-03-18 Alan Hayward <alan.hayward@arm.com>
11843 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
11845 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
11847 2019-03-18 Pedro Alves <palves@redhat.com>
11848 Eli Zaretskii <eliz@gnu.org>
11850 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
11851 m_line and m_start_of_line.
11853 2019-03-18 Eli Zaretskii <eliz@gnu.org>
11855 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
11856 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
11857 it returns a newline. This fixes a regression in TU mode, whereby
11858 the next line is output on the same screen line as the user input.
11860 2019-03-18 Tom Tromey <tromey@adacore.com>
11862 * minsyms.c (minimal_symbol_reader::install): Remove call to
11865 2019-03-18 Pedro Alves <palves@redhat.com>
11867 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
11869 (apply_style): New, factored out from ...
11870 (apply_ansi_escape): ... this. Handle reverse video mode.
11871 (tui_set_reverse_mode): New function.
11872 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
11873 * tui/tui-winsource.c (tui_show_source_line): Use
11874 tui_set_reverse_mode instead of setting A_STANDOUT.
11875 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
11876 New setter methods.
11878 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
11880 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
11883 2019-03-18 Tom Tromey <tromey@adacore.com>
11885 * ada-lang.c (empty_array): Add "high" parameter.
11886 (ada_evaluate_subexp): Update.
11888 2019-03-17 Sergei Trofimovich <siarheit@google.com>
11890 * unittests/string_view-selftests.c: Define
11891 _initialize_string_view_selftests unconditionally.
11893 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11896 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
11898 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
11901 * windows-nat.c (display_selector): Fix format specifiers.
11903 2019-03-17 Eli Zaretskii <eliz@gnu.org>
11905 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
11906 tui_refill_source_window instead of tui_refresh_win, to update the
11907 current execution line. This fixes redisplay of the current line
11908 when stepping through the code with "next" or "step".
11910 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11912 * source-cache.c (source_cache::get_source_lines): Call
11913 find_source_lines to initialize s->nlines. This fixes vertical
11914 scrolling of TUI source window when the DOWN arrow is pressed.
11916 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11918 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
11919 linux-thread-db.c (_initialize_thread_db): Likewise.
11921 2019-03-16 Eli Zaretskii <eliz@gnu.org>
11923 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
11924 wclrtoeol in tui_show_source_line". This reverts changes made in
11925 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
11927 2019-03-15 Tom Tromey <tom@tromey.com>
11929 * symtab.h (struct minimal_symbol): Derive from
11930 general_symbol_info.
11931 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
11932 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11933 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11934 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11935 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
11936 (MSYMBOL_SEARCH_NAME): Update.
11937 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
11938 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
11939 * minsyms.c (minimal_symbol_reader::record_full): Update.
11941 2019-03-15 Tom Tromey <tom@tromey.com>
11943 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
11945 2019-03-15 Tom Tromey <tom@tromey.com>
11947 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
11948 unique_xmalloc_ptr.
11949 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
11951 * minsyms.c (lookup_minimal_symbol_by_pc_section)
11952 (build_minimal_symbol_hash_tables)
11953 (minimal_symbol_reader::install): Update.
11955 2019-03-15 Tom Tromey <tom@tromey.com>
11957 * symtab.c (create_demangled_names_hash): Update.
11958 (symbol_set_names): Update.
11959 * objfiles.h (struct objfile_per_bfd_storage)
11960 <demangled_names_hash>: Now an htab_up.
11961 * objfiles.c (objfile_per_bfd_storage): Simplify.
11963 2019-03-15 Tom Tromey <tom@tromey.com>
11965 * objfiles.h (struct objfile_per_bfd_storage): Declare
11967 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
11969 (get_objfile_bfd_data): Use new. Don't initialize
11971 (free_objfile_per_bfd_storage): Remove.
11972 (objfile_bfd_data_free, objfile::~objfile): Use delete.
11974 2019-03-15 Tom Tromey <tom@tromey.com>
11976 * symfile.c (reread_symbols): Update.
11977 * objfiles.c (objfile::objfile): Update.
11978 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
11979 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
11981 (minimal_symbol_reader::install): Update.
11982 (terminate_minimal_symbol_table): Remove.
11983 * jit.c (jit_object_close_impl): Update.
11985 2019-03-15 Tom Tromey <tom@tromey.com>
11987 * minsyms.c (minimal_symbol_reader::record_full): Remove some
11990 2019-03-15 Tom Tromey <tom@tromey.com>
11992 * objfiles.h (struct objfile_per_bfd_storage)
11993 <demangled_hash_languages>: Now a bitset.
11994 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
11995 (lookup_minimal_symbol): Update.
11997 2019-03-15 Tom Tromey <tom@tromey.com>
11999 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12000 Don't return the symbol.
12001 * coffread.c (record_minimal_symbol): Use record_full.
12003 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12005 The MS-Windows port of ncurses fails to switch to a color pair if
12006 one or both of the colors are the implicit default colors. This
12007 change records the default colors when TUI is initialized, and
12008 then specifies them explicitly when a color pair uses the default
12009 colors. This allows color styling in TUI mode on MS-Windows.
12011 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12013 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12014 colors in ncurses_norm_attr.
12015 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12016 "none", replace it with the default color recorded in
12019 2019-03-14 Tom Tromey <tromey@adacore.com>
12021 * source-cache.h (class source_cache) <get_source_lines>: Return
12023 * source-cache.c (source_cache::extract_lines): Handle case where
12024 first_pos==npos. Return std::string.
12025 (source_cache::get_source_lines): Update.
12027 2019-03-14 Tom Tromey <tromey@adacore.com>
12029 * NEWS: Add item for "style sources" commands.
12030 * source-cache.c (source_cache::get_source_lines): Check
12032 * cli/cli-style.c (source_styling): New global.
12033 (_initialize_cli_style): Add "style sources" commands.
12034 (show_style_sources): New function.
12035 * cli/cli-style.h (source_styling): Declare.
12037 2019-03-14 Pedro Alves <palves@redhat.com>
12038 Tom Tromey <tromey@adacore.com>
12040 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12041 * tui/tui-winsource.c (tui_refill_source_window): New function,
12043 (tui_horizontal_source_scroll): ... here. Move some logic.
12044 * cli/cli-style.c (set_style_enabled): Notify new observable.
12045 * tui/tui-hooks.c (tui_redisplay_source): New function.
12046 (tui_attach_detach_observers): Attach or detach
12047 tui_redisplay_source.
12048 * observable.h (source_styling_changed): New observable.
12049 * observable.c: Define source_styling_changed observable.
12051 2019-03-13 Tom Tromey <tromey@adacore.com>
12053 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12054 (i386_gnu_nat_target::store_registers): Update.
12055 * target-debug.h (target_debug_print_std_string): New macro.
12056 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12057 * windows-tdep.c (display_one_tib): Update.
12058 * tui/tui-stack.c (tui_make_status_line): Update.
12059 * top.c (print_inferior_quit_action): Update.
12060 * thread.c (thr_try_catch_cmd): Update.
12061 (add_thread_with_info): Update.
12062 (thread_target_id_str): Update.
12063 (thr_try_catch_cmd): Update.
12064 (thread_command): Update.
12065 (thread_find_command): Update.
12066 * record-btrace.c (record_btrace_target::info_record)
12067 (record_btrace_resume_thread, record_btrace_target::resume)
12068 (record_btrace_cancel_resume, record_btrace_step_thread)
12069 (record_btrace_target::wait, record_btrace_target::wait)
12070 (record_btrace_target::wait, record_btrace_target::stop): Update.
12071 * progspace.c (print_program_space): Update.
12072 * process-stratum-target.c
12073 (process_stratum_target::thread_address_space): Update.
12074 * linux-fork.c (linux_fork_mourn_inferior)
12075 (detach_checkpoint_command, info_checkpoints_command)
12076 (linux_fork_context): Update.
12077 (linux_fork_detach): Update.
12078 (class scoped_switch_fork_info): Update.
12079 (delete_checkpoint_command): Update.
12080 * infrun.c (follow_fork_inferior): Update.
12081 (follow_fork_inferior): Update.
12082 (proceed_after_vfork_done): Update.
12083 (handle_vfork_child_exec_or_exit): Update.
12084 (follow_exec): Update.
12085 (displaced_step_prepare_throw): Update.
12086 (displaced_step_restore): Update.
12087 (start_step_over): Update.
12088 (resume_1): Update.
12089 (clear_proceed_status_thread): Update.
12091 (print_target_wait_results): Update.
12092 (do_target_wait): Update.
12093 (context_switch): Update.
12094 (stop_all_threads): Update.
12095 (restart_threads): Update.
12096 (finish_step_over): Update.
12097 (handle_signal_stop): Update.
12098 (switch_back_to_stepped_thread): Update.
12099 (keep_going_pass_signal): Update.
12100 (print_exited_reason): Update.
12101 (normal_stop): Update.
12102 * inferior.c (inferior_pid_to_str): Change return type.
12103 (print_selected_inferior): Update.
12104 (add_inferior): Update.
12105 (detach_inferior): Update.
12106 * dummy-frame.c (fprint_dummy_frames): Update.
12107 * dcache.c (dcache_info_1): Update.
12108 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12109 (btrace_fetch, btrace_clear): Update.
12110 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12111 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12113 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12114 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12115 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12116 * gdbarch.c, gdbarch.h: Rebuild.
12117 * gdbarch.sh (core_pid_to_str): Change return type.
12118 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12120 (windows_nat_target::pid_to_str): Change return type.
12121 (windows_delete_thread): Update.
12122 (windows_nat_target::attach): Update.
12123 (windows_nat_target::files_info): Update.
12124 * target-delegates.c: Rebuild.
12125 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12127 (sol_thread_target::pid_to_str): Change return type.
12128 * remote.c (class remote_target) <pid_to_str>: Change return
12130 (remote_target::pid_to_str): Change return type.
12131 (extended_remote_target::attach, remote_target::remote_stop_ns)
12132 (remote_target::remote_notif_remove_queued_reply)
12133 (remote_target::push_stop_reply, remote_target::disable_btrace):
12135 (extended_remote_target::attach): Update.
12136 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12138 (gdbsim_target::pid_to_str): Change return type.
12139 * ravenscar-thread.c (struct ravenscar_thread_target)
12140 <pid_to_str>: Change return type.
12141 (ravenscar_thread_target::pid_to_str): Change return type.
12142 * procfs.c (class procfs_target) <pid_to_str>: Change return
12144 (procfs_target::pid_to_str): Change return type.
12145 (procfs_target::attach): Update.
12146 (procfs_target::detach): Update.
12147 (procfs_target::fetch_registers): Update.
12148 (procfs_target::store_registers): Update.
12149 (procfs_target::wait): Update.
12150 (procfs_target::files_info): Update.
12151 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12152 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12154 (nto_procfs_target::pid_to_str): Change return type.
12155 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12156 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12158 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12159 (exit_lwp): Update.
12160 (attach_proc_task_lwp_callback, get_detach_signal)
12161 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12162 (linux_nat_target::resume, wait_lwp, stop_callback)
12163 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12164 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12165 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12166 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12167 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12169 (inf_ptrace_target::attach): Update.
12170 (inf_ptrace_target::files_info): Update.
12171 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12173 (go32_nat_target::pid_to_str): Change return type.
12174 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12175 (gnu_nat_target::wait): Update.
12176 (gnu_nat_target::wait): Update.
12177 (gnu_nat_target::resume): Update.
12178 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12179 (fbsd_nat_target::wait): Update.
12180 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12182 (darwin_nat_target::attach): Update.
12183 * corelow.c (class core_target) <pid_to_str>: Change return type.
12184 (core_target::pid_to_str): Change return type.
12185 * target.c (normal_pid_to_str): Change return type.
12186 (default_pid_to_str): Likewise.
12187 (target_pid_to_str): Change return type.
12188 (target_translate_tls_address): Update.
12189 (target_announce_detach): Update.
12190 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12192 (bsd_uthread_target::pid_to_str): Change return type.
12193 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12195 (bsd_kvm_target::pid_to_str): Change return type.
12196 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12198 (aix_thread_target::pid_to_str): Change return type.
12199 * target.h (struct target_ops) <pid_to_str>: Change return type.
12200 (target_pid_to_str, normal_pid_to_str): Likewise.
12201 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12203 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12205 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12207 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12209 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12211 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12214 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12216 * NEWS: Mention that the new default MI version is 3. Mention
12217 changes to the output of commands and events that deal with
12218 multi-location breakpoints.
12219 * breakpoint.c: Include "mi/mi-out.h".
12220 (print_one_breakpoint): Change output syntax if using MI version
12222 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12224 (mi_multi_location_breakpoint_output_fixed): New.
12225 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12226 (mi_cmd_fix_multi_location_breakpoint_output): New.
12227 (mi_multi_location_breakpoint_output_fixed): New.
12228 * mi/mi-cmds.c (mi_cmds): Register command
12229 -fix-multi-location-breakpoint-output.
12230 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12233 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12235 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12236 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12237 instantiate mi_ui_out based on interpreter name.
12238 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12239 * mi/mi-main.c (mi_load_progress): Likewise.
12241 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12243 * NEWS: Combine separate "New targets" sections for 8.3.
12245 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12247 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12248 (ppcfbsd_init_abi): Install gdbarch
12249 "fetch_tls_load_module_address" and "get_thread_local_address"
12252 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12254 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12255 (riscv_fbsd_init_abi): Install gdbarch
12256 "fetch_tls_load_module_address" and "get_thread_local_address"
12259 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12261 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12262 (i386fbsd_init_abi): Install gdbarch
12263 "fetch_tls_load_module_address" and "get_thread_local_address"
12266 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12268 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12269 (amd64fbsd_init_abi): Install gdbarch
12270 "fetch_tls_load_module_address" and "get_thread_local_address"
12273 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12275 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12276 (struct fbsd_pspace_data): New type.
12277 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12278 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12279 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12280 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12281 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12283 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12285 * gdbtypes.c (lookup_struct_elt): New function.
12286 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12287 * gdbtypes.h (struct struct_elt): New type.
12288 (lookup_struct_elt): New prototype.
12290 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12292 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12293 remove disabled code block.
12295 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12297 * gdbarch.sh (get_thread_local_address): New method.
12298 * gdbarch.h, gdbarch.c: Regenerate.
12299 * target.c (target_translate_tls_address): Use
12300 gdbarch_get_thread_local_address if present instead of
12301 target::get_thread_local_address.
12303 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12305 * target.h (target::get_thread_local_address): Update comment.
12307 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12309 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12310 objfile->separate_debug_objfile_backlink if not NULL.
12312 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12314 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12315 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12316 (amd64bsd_store_inferior_registers): Likewise.
12317 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12318 Enable segment base registers.
12319 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12320 PT_GETFSBASE and PT_GETGSBASE.
12321 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12323 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12324 segment base registers.
12325 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12327 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12329 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12330 Update calls to i386_target_description to add 'segments'
12332 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12333 add segment base registers.
12334 * arch/i386.c (i386_create_target_description): Add 'segments'
12335 parameter to enable segment base registers.
12336 * arch/i386.h (i386_create_target_description): Likewise.
12337 * features/i386/32bit-segments.xml: New file.
12338 * features/i386/32bit-segments.c: Generate.
12339 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12340 call to i386_target_description to add 'segments' parameter.
12341 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12342 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12343 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12344 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12345 if feature is present.
12346 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12347 Add 'segments' parameter to call to i386_target_description.
12348 (i386_target_description): Add 'segments' parameter to enable
12349 segment base registers.
12350 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12351 to call to i386_target_description.
12352 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12353 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12354 Define I386_NUM_REGS.
12355 (i386_target_description): Add 'segments' parameter to enable
12356 segment base registers.
12358 2019-03-12 Eli Zaretskii <eliz@gnu.org>
12361 * source-cache.c: #undef open and close, to avoid unresolved
12362 externals during linking.
12364 2019-03-12 Tom Tromey <tromey@adacore.com>
12366 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12367 const. Add initializers.
12368 (_initialize_remote): Don't initialize ptid globals.
12370 2019-03-12 Pedro Alves <palves@redhat.com>
12372 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12374 2019-03-12 Pedro Alves <palves@redhat.com>
12376 * cp-name-parser.y (main): Remove unused 'len' variable.
12378 2019-03-12 Tom Tromey <tromey@adacore.com>
12380 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12381 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12383 2019-03-12 Tom Tromey <tromey@adacore.com>
12385 * linux-nat.c (iterate_over_lwps): Update.
12386 (stop_callback): Remove parameter.
12387 (stop_wait_callback, detach_callback, resume_set_callback)
12388 (select_singlestep_lwp_callback, set_ignore_sigint)
12389 (status_callback, resumed_callback, resume_clear_callback)
12390 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12392 (linux_nat_target::detach, linux_nat_target::resume)
12393 (linux_stop_and_wait_all_lwps, select_event_lwp)
12394 (linux_nat_filter_event, linux_nat_wait_1)
12395 (linux_nat_target::kill, linux_nat_target::stop)
12396 (linux_nat_target::stop): Update.
12397 (linux_nat_resume_callback): Change type.
12398 (resume_stopped_resumed_lwps, count_events_callback)
12399 (select_event_lwp_callback): Likewise.
12400 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12401 * arm-linux-nat.c (struct update_registers_data): Remove.
12402 (update_registers_callback): Change type.
12403 (arm_linux_insert_hw_breakpoint1): Update.
12404 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12406 (x86_linux_dr_set_addr): Update.
12407 (x86_linux_dr_set_control): Update.
12408 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12409 (iterate_over_lwps): Use gdb::function_view.
12410 * nat/aarch64-linux-hw-point.c (struct
12411 aarch64_dr_update_callback_param): Remove.
12412 (debug_reg_change_callback): Change type.
12413 (aarch64_notify_debug_reg_change): Update.
12414 * s390-linux-nat.c (s390_refresh_per_info): Update.
12416 2019-03-11 Tom Tromey <tromey@adacore.com>
12418 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12419 redundant assignment to "this_cu".
12421 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12423 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12425 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12427 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12429 (rank_one_type): ... this.
12431 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12433 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12435 (rank_one_type): ... this.
12437 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12439 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12441 (rank_one_type): ... this.
12443 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12445 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12447 (rank_one_type): ... this.
12449 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12451 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12453 (rank_one_type): ... this.
12455 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12457 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12459 (rank_one_type): ... this.
12461 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12463 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12465 (rank_one_type): ... this.
12467 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12469 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12471 (rank_one_type): ... this.
12473 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12475 * gdbtypes.c (rank_one_type_parm_int): 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_func): 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_array): 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_ptr): New function extracted
12495 (rank_one_type): ... this.
12497 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12499 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12500 inferior-events' shows the example events.
12502 2019-03-08 Eli Zaretskii <eliz@gnu.org>
12504 Support styling on native MS-Windows console
12507 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12508 on MS-Windows if $TERM is not defined.
12510 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12512 * posix-hdep.c (gdb_console_fputs):
12513 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12515 * ui-file.h (gdb_console_fputs): Add prototype.
12517 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12518 back to fputs only if the former returns zero.
12520 2019-03-07 Tom Tromey <tom@tromey.com>
12522 * symmisc.c (print_symbol_bcache_statistics): Update.
12523 (print_objfile_statistics): Update.
12524 * symfile.c (allocate_symtab): Update.
12525 * stabsread.c: Don't include bcache.h.
12526 * psymtab.h (struct psymbol_bcache): Don't declare.
12527 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12528 (psymbol_bcache_init, psymbol_bcache_free)
12529 (psymbol_bcache_get_bcache): Don't declare.
12530 * psymtab.c (struct psymbol_bcache): Remove.
12531 (psymtab_storage::psymtab_storage): Update.
12532 (psymtab_storage::~psymtab_storage): Update.
12533 (psymbol_bcache_init, psymbol_bcache_free)
12534 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12535 (add_psymbol_to_bcache): Update.
12536 (allocate_psymtab): Update.
12537 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12538 macro_cache>: No longer pointers.
12539 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12540 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12541 * macrotab.c (macro_bcache): Update.
12542 * macroexp.c: Don't include bcache.h.
12543 * gdbtypes.c (check_types_worklist): Update.
12544 (types_deeply_equal): Remove TRY/CATCH. Update.
12545 * elfread.c (elf_symtab_read): Update.
12546 * dwarf2read.c: Don't include bcache.h.
12547 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12548 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12549 (print_bcache_statistics, bcache_memory_used): Don't declare.
12550 (struct bcache): Move from bcache.c. Add constructor, destructor,
12551 methods. Rename all data members.
12552 * bcache.c (struct bcache): Move to bcache.h.
12553 (bcache::expand_hash_table): Rename from expand_hash_table.
12555 (bcache::insert): Rename from bcache_full.
12556 (bcache::compare): Rename from bcache_compare.
12557 (bcache_xmalloc): Remove.
12558 (bcache::~bcache): Rename from bcache_xfree.
12559 (bcache::print_statistics): Rename from print_bcache_statistics.
12560 (bcache::memory_used): Rename from bcache_memory_used.
12562 2019-03-07 Pedro Alves <palves@redhat.com>
12564 * infrun.c (normal_stop): Also check for
12565 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12567 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12569 * f-lang.c (value_from_host_double): Moved to...
12570 * value.c (value_from_host_double): ...here.
12571 * value.h (value_from_host_double): Declare.
12572 * guile/scm-math.c (vlscm_convert_typed_number): Use
12573 value_from_host_double.
12574 (vlscm_convert_number): Likewise.
12575 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12576 * python/py-value.c (convert_value_from_python): Likewise.
12578 2019-03-06 Tom Tromey <tom@tromey.com>
12580 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12582 2019-03-06 Tom Tromey <tom@tromey.com>
12584 * utils.h (free_current_contents): Don't declare.
12585 * utils.c (free_current_contents): Remove.
12587 2019-03-06 Tom Tromey <tom@tromey.com>
12589 * top.c (quit_force): Update.
12590 * main.c (captured_command_loop): Update.
12591 * common/new-op.c (operator new): Update.
12592 * common/common-exceptions.c (struct catcher)
12593 <save_cleanup_chain>: Remove member.
12594 (exceptions_state_mc_init): Update.
12595 (exception_try_scope_entry): Return nullptr.
12596 (exception_try_scope_exit, exception_rethrow)
12597 (throw_exception_sjlj, throw_exception_cxx): Update.
12598 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12599 (all_cleanups, do_cleanups, discard_cleanups)
12600 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12601 (restore_cleanups, restore_final_cleanups): Don't declare.
12602 (do_final_cleanups): Remove parameter.
12603 * common/cleanups.c (cleanup_chain, make_cleanup)
12604 (make_cleanup_dtor, all_cleanups, do_cleanups)
12605 (discard_my_cleanups, discard_cleanups)
12606 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12607 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12608 (null_cleanup): Remove.
12609 (do_final_cleanups): Remove parameter.
12611 2019-03-06 Tom Tromey <tom@tromey.com>
12613 * remote.c (remote_target::remote_parse_stop_reply): Use
12614 unique_xmalloc_ptr.
12616 2019-03-06 Tom Tromey <tom@tromey.com>
12618 * stabsread.c (struct stabs_field_info): Rename from field_info.
12619 <list, fnlist>: Add initializers.
12620 <obstack>: New member.
12621 (read_member_functions, read_struct_fields, read_baseclasses):
12622 Allocate on obstack. Don't use cleanups.
12623 (read_one_struct_field, read_member_functions, read_struct_fields)
12624 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12625 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12626 (read_struct_type): Update.
12628 2019-03-06 Tom Tromey <tom@tromey.com>
12630 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12631 * common/filestuff.h (make_cleanup_close): Don't declare.
12632 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12635 2019-03-06 Tom Tromey <tom@tromey.com>
12637 * solib-aix.c: Use make_scope_exit.
12639 2019-03-06 Tom Tromey <tom@tromey.com>
12641 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12642 Use make_scope_exit.
12644 2019-03-06 Tom Tromey <tom@tromey.com>
12646 * solib-svr4.c (disable_probes_interface): Remove parameter.
12647 (svr4_handle_solib_event): Use make_scope_exit.
12649 2019-03-06 Tom Tromey <tom@tromey.com>
12651 * remote.c (struct stop_reply_deleter): Remove.
12652 (stop_reply_up): Update.
12653 (struct stop_reply): Derive from notif_event. Don't typedef.
12654 <regcache>: Now a std::vector.
12655 (stop_reply_xfree): Remove.
12656 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12657 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12658 (remote_target::discard_pending_stop_replies): Use delete.
12659 (remote_target::remote_parse_stop_reply): Update.
12660 (remote_target::process_stop_reply): Update.
12661 * remote-notif.h (struct notif_event): Add virtual destructor.
12662 Remove "dtr" member.
12663 (struct notif_client) <alloc_event>: Return a unique_ptr.
12664 (notif_event_xfree): Don't declare.
12665 (notif_event_up): New typedef.
12666 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12667 (notif_event_xfree, do_notif_event_xfree): Remove.
12668 (remote_notif_state_xfree): Update.
12670 2019-03-06 Tom Tromey <tom@tromey.com>
12672 * infrun.c (displaced_step_clear_cleanup): Now a
12673 forward_scope_exit type.
12674 (displaced_step_prepare_throw): Update.
12675 (displaced_step_fixup): Update.
12677 2019-03-06 Tom Tromey <tom@tromey.com>
12679 * inferior.h (class inferior): Update comment.
12680 * gdbthread.h (class thread_info): Update comment.
12682 2019-03-06 Joel Brobecker <brobecker@adacore.com>
12683 Tom Tromey <tom@tromey.com>
12685 * stabsread.h (struct stab_section_list): Remove.
12686 (coffstab_build_psymtabs): Update.
12687 * dbxread.c (symbuf_sections): Now a std::vector.
12688 (sect_idx): New global.
12689 (fill_symbuf): Update.
12690 (coffstab_build_psymtabs): Change type of stabsects parameter.
12692 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12694 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12695 (coff_locate_sections): Update.
12696 (coff_symfile_read): Remove cleanups. Update.
12697 (init_stringtab): Add storage parameter.
12698 (free_stringtab, free_stringtab_cleanup): Remove.
12699 (init_lineno): Add storage parameter.
12700 (free_linetab, free_linetab_cleanup): Remove.
12702 2019-03-06 Pedro Alves <palves@redhat.com>
12704 * linux-fork.c (fork_info::clobber_regs): Delete.
12705 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12706 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12708 (scoped_switch_fork_info::scoped_switch_fork_info)
12709 (checkpoint_command, linux_fork_context): Adjust
12710 fork_save_infrun_state calls.
12712 2019-03-06 Pedro Alves <palves@redhat.com>
12714 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12715 (inf_has_multiple_threads): Return 'bool' and rewrite using
12716 inferior_info::threads().
12718 2019-03-06 Pedro Alves <palves@redhat.com>
12720 * linux-fork.c: Include <list>.
12721 (fork_list): Now a std::list instance.
12722 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12723 (forks_exist_p, find_last_fork): Adjust.
12724 (new_fork): Delete.
12726 (add_fork): Adjust.
12727 (free_fork): Delete, folded into fork_info::~fork_info().
12728 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12730 (init_fork_list): Delete.
12731 (linux_fork_killall, linux_fork_mourn_inferior)
12732 (linux_fork_detach, info_checkpoints_command): Adjust.
12733 (_initialize_linux_fork): No longer call init_fork_list.
12735 2019-03-06 Pedro Alves <palves@redhat.com>
12737 * linux-fork.c (new_fork): New, split out of ...
12738 (add_fork): ... this. Return void. Move "first fork" special
12739 case from here, to ...
12740 (checkpoint_command): ... here.
12741 * linux-linux.h (add_fork): Return void.
12743 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12745 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12747 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12748 Chris January <chris.january@arm.com>
12749 David Lecomber <david.lecomber@arm.com>
12751 * f-exp.y: New token, UNOP_INTRINSIC.
12752 (exp): New pattern using UNOP_INTRINSIC token.
12753 (f77_keywords): Add 'abs' keyword.
12754 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12755 (value_from_host_double): New function.
12756 (evaluate_subexp_f): Support UNOP_ABS.
12758 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12760 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12763 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12765 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12766 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12767 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12769 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12771 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12773 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12774 Chris January <chris.january@arm.com>
12776 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12777 * f-exp.y: Define 'KIND' token.
12778 (exp): New pattern for KIND expressions.
12779 (ptype): Handle types with a kind extension.
12780 (direct_abs_decl): Extend to spot kind extensions.
12781 (f77_keywords): Add 'kind' to the list.
12782 (push_kind_type): New function.
12783 (convert_to_kind_type): New function.
12784 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12785 * parse.c (operator_length_standard): Likewise.
12786 * parser-defs.h (enum type_pieces): Add tp_kind.
12787 * std-operator.def: Add UNOP_KIND.
12789 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12791 * f-exp.y (f_parse): Set yydebug.
12793 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12795 * f-lang.c (evaluate_subexp_f): New function.
12796 (exp_descriptor_f): New global.
12797 (f_language_defn): Use exp_descriptor_f instead of
12798 exp_descriptor_standard.
12800 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12802 * f-exp.y (struct token): Add comments.
12803 (dot_ops): Remove uppercase versions and the end marker.
12804 (f77_keywords): Likewise.
12805 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12806 entries in the dot_ops array are case insensitive, and use
12807 strncasecmp to compare strings. Also some whitespace cleanup in
12808 this area. Similar for the f77_keywords array, except entries in
12809 this list might be case sensitive.
12811 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12813 * f-exp.y (struct f77_boolean_val): Add comments.
12814 (boolean_values): Remove uppercase versions, and end marker.
12815 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12816 and use strncasecmp to achieve case insensitivity. Additionally,
12817 perform whitespace cleanup around this code.
12819 2019-03-06 Tom Tromey <tromey@adacore.com>
12821 * remote-sim.c (gdbsim_target_open): Use result of
12824 2019-03-06 Richard Bunt <richard.bunt@arm.com>
12825 Dirk Schubert <dirk.schubert@arm.com>
12826 Chris January <chris.january@arm.com>
12828 * eval.c (evaluate_subexp_standard): Call Fortran argument
12830 * f-lang.c (struct value): A value which can be passed into a
12831 Fortran function call.
12832 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12834 (struct type): Value ready for a Fortran function call.
12835 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12837 * f-lang.h (fortran_argument_convert): Declaration.
12838 (fortran_preserve_arg_pointer): Declaration.
12839 * infcall.c (value_arg_coerce): Call Fortran argument logic.
12841 2019-03-05 Tom Tromey <tromey@adacore.com>
12843 * python/py-prettyprint.c (print_string_repr): Remove #if.
12844 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
12846 2019-03-05 Tom Tromey <tromey@adacore.com>
12848 * target.c (the_dummy_target): Move later. Change type to
12850 (initialize_targets): Don't initialize the_dummy_target.
12852 2019-03-05 Tom Tromey <tromey@adacore.com>
12854 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
12855 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
12857 2019-03-05 Tom Tromey <tromey@adacore.com>
12859 * windows-nat.c (windows_nat_target::attach)
12860 (windows_nat_target::detach): Don't call gdb_flush.
12861 * valprint.c (generic_val_print, val_print, val_print_string):
12862 Don't call gdb_flush.
12863 * utils.c (defaulted_query): Don't call gdb_flush.
12864 * typeprint.c (print_type_scalar): Don't call gdb_flush.
12865 * target.c (target_announce_detach): Don't call gdb_flush.
12866 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
12867 * remote.c (extended_remote_target::attach): Don't call
12869 * procfs.c (procfs_target::detach): Don't call gdb_flush.
12870 * printcmd.c (do_examine): Don't call gdb_flush.
12871 (info_display_command): Don't call gdb_flush.
12872 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
12873 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
12874 * memattr.c (info_mem_command): Don't call gdb_flush.
12875 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
12876 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
12877 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
12878 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
12879 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
12880 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
12881 (gnu_nat_target::detach): Don't call gdb_flush.
12882 * f-valprint.c (f_val_print): Don't call gdb_flush.
12883 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
12884 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
12885 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
12887 * c-valprint.c (c_val_print): Don't call gdb_flush.
12888 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
12890 2019-03-05 Tom Tromey <tromey@adacore.com>
12892 * varobj.c (update_dynamic_varobj_children): Update.
12893 (install_default_visualizer): Use reset, not release.
12894 * value.c (set_internalvar): Update.
12895 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
12896 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
12897 ATTRIBUTE_UNUSED_RESULT.
12899 2019-03-05 Tom Tromey <tromey@adacore.com>
12901 * remote.c (class scoped_remote_fd) <release>: Add
12902 ATTRIBUTE_UNUSED_RESULT.
12904 2019-03-05 Tom Tromey <tromey@adacore.com>
12906 * macroexp.c (struct macro_buffer) <release>: Add
12907 ATTRIBUTE_UNUSED_RESULT.
12909 2019-03-05 Tom Tromey <tromey@adacore.com>
12911 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
12912 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
12913 ATTRIBUTE_UNUSED_RESULT.
12915 2019-03-05 Tom Tromey <tromey@adacore.com>
12917 * common/scoped_fd.h (class scoped_fd) <release>: Add
12918 ATTRIBUTE_UNUSED_RESULT.
12920 2019-03-05 Tom Tromey <tromey@adacore.com>
12922 * parser-defs.h (struct parser_state) <release>: Add
12923 ATTRIBUTE_UNUSED_RESULT.
12925 2019-03-05 Tom Tromey <tromey@adacore.com>
12927 * utils.h (class gdb_argv) <release>: Add
12928 ATTRIBUTE_UNUSED_RESULT.
12929 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
12931 2019-03-02 Eli Zaretskii <eliz@gnu.org>
12933 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
12934 for-loop range, to avoid compiler warnings.
12936 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
12937 avoid compiler warnings about unused variables.
12939 * NEWS: Mention end of support for native debugging on MS-Windows
12943 * common/netstuff.c:
12944 * gdbserver/gdbreplay.c
12945 * gdbserver/remote-utils.c:
12947 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
12948 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
12949 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
12950 'getaddrinfo' and 'freeaddrinfo' were not available before
12951 Windows XP, and mingw.org's MinGW headers by default define
12952 _WIN32_WINNT to 0x500.
12954 2019-03-01 Gary Benson <gbenson@redhat.com>
12956 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
12958 2019-02-28 Brian Vandenberg <phantall@gmail.com>
12959 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12962 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
12963 set_sigint_trap, clear_sigint_trap.
12965 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12967 * target.c (target_detach): Clear the regcache and the
12970 2019-02-27 Pedro Alves <palves@redhat.com>
12972 * utils.c (set_screen_size): When we cap the height/width sizes,
12973 tweak the corresponding command variable to show "unlimited":
12975 2019-02-27 Saagar Jha <saagar@saagarjha.com>
12976 Pedro Alves <palves@redhat.com>
12978 * utils.c (set_screen_size): Reduce "infinite" rows and columns
12979 before calling rl_set_screen_size.
12981 2019-02-27 Tom Tromey <tromey@adacore.com>
12983 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
12985 * python/py-value.c: Remove Python 2.4 workaround.
12986 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
12988 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
12989 Python 2.4 workaround.
12990 * python/python-internal.h: Remove Python 2.4 comment.
12991 (Py_ssize_t): Don't define.
12992 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
12993 (gdb_Py_DECREF): Remove Python 2.4 workaround.
12994 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
12995 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
12996 * python/python.c (do_start_initialization): Remove Python 2.4
12998 * python/py-prettyprint.c (class dummy_python_frame): Remove.
12999 (print_children): Remove Python 2.4 workaround.
13000 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13002 (CHARBUFFERPROC_NAME): Remove.
13003 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13004 Python 2.4 workaround.
13006 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13008 * NEWS: Note minimum Python version.
13010 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13012 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13013 code from these functions. Remove corresponding ifdefs. Use
13014 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13015 Remove gotos and target of gotos.
13016 (infpy_search_memory): Likewise.
13018 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13020 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13021 (hppa_gdbarch_init): Don't register deleted functions with
13024 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13026 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13027 (h8300_unwind_sp): Delete.
13028 (h8300_dummy_id): Delete.
13029 (h8300_gdbarch_init): Don't register deleted functions with
13032 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13034 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13035 (ft32_unwind_pc): Delete.
13036 (ft32_unwind_sp): Delete.
13037 (ft32_gdbarch_init): Don't register deleted functions with
13040 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13042 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13043 (frv_unwind_pc): Delete.
13044 (frv_unwind_sp): Delete.
13045 (frv_gdbarch_init): Don't register deleted functions with
13048 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13050 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13051 (riscv_unwind_pc): Delete.
13052 (riscv_unwind_sp): Delete.
13053 (riscv_gdbarch_init): Don't register deleted functions with
13056 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13058 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13059 (csky_unwind_pc): Delete.
13060 (csky_unwind_sp): Delete.
13061 (csky_gdbarch_init): Don't register deleted functions with
13064 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13066 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13067 (cris_unwind_pc): Delete.
13068 (cris_unwind_sp): Delete.
13069 (cris_gdbarch_init): Don't register deleted functions with
13072 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13074 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13075 (bfin_unwind_pc): Delete.
13076 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13078 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13080 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13081 (arm_unwind_pc): Delete.
13082 (arm_unwind_sp): Delete.
13083 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13085 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13087 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13088 (arc_unwind_pc): Delete.
13089 (arc_unwind_sp): Delete.
13090 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13092 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13094 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13095 (alpha_unwind_pc): Delete.
13096 (alpha_gdbarch_init): Don't register deleted functions with
13099 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13101 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13102 (aarch64_unwind_pc): Delete.
13103 (aarch64_unwind_sp): Delete.
13104 (aarch64_gdbarch_init): Don't register deleted functions with
13107 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13109 * gdbtypes.c (type_align): Don't consider static members when
13110 computing structure alignment.
13112 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13114 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13115 return 0 for other types.
13116 * arch-utils.c (default_type_align): Always return 0.
13117 * gdbarch.h: Regenerate.
13118 * gdbarch.sh (type_align): Extend comment.
13119 * gdbtypes.c (type_align): Add additional comments, always call
13120 gdbarch_type_align before applying the default rules.
13121 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13122 generic code will then apply a suitable default.
13123 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13124 types, return 0 for other types.
13126 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13128 * NEWS: Create a new section for the next release branch.
13129 Rename the section of the current branch, now that it has
13132 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13134 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13135 * version.in: Bump version to 8.3.50.DATE-git.
13137 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13139 * aix-thread.c (ptid_cmp): Remove unused variable.
13140 (get_signaled_thread): Likewise.
13141 (store_regs_user_thread): Likewise.
13142 (store_regs_kernel_thread): Likewise.
13143 (fetch_regs_kernel_thread): Remove shadowed variable.
13145 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13147 * features/riscv/32bit-cpu.xml: Add register numbers.
13148 * features/riscv/32bit-fpu.c: Regenerate.
13149 * features/riscv/32bit-fpu.xml: Add register numbers.
13150 * features/riscv/64bit-cpu.xml: Add register numbers.
13151 * features/riscv/64bit-fpu.c: Regenerate.
13152 * features/riscv/64bit-fpu.xml: Add register numbers.
13154 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13156 * NEWS: Mention two argument form of gdb.Value constructor.
13157 * python/py-value.c (convert_buffer_and_type_to_value): New
13159 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13160 Add support for handling an optional second argument. Call
13161 convert_buffer_and_type_to_value as appropriate.
13162 * python/python-internal.h (Py_buffer_deleter): New struct.
13163 (Py_buffer_up): New typedef.
13165 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13167 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13168 instead of releasing ownership.
13170 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13172 * dwarf2read.c (open_and_init_dwp_file): Call
13173 elf_numsections instead of bfd_count_sections to initialize
13174 dwp_file->num_sections.
13176 2019-02-25 Tom Tromey <tromey@adacore.com>
13178 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13180 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13182 * gcore.in: Add '--readnever' option when invoking GDB.
13184 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13186 * MAINTAINERS: Update my email address.
13188 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13190 * build-id.c (build_id_to_debug_bfd_1): New function.
13191 (build_id_to_debug_bfd): Look for separate debug file in
13194 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13196 * gdbarch.sh: Update the copyright year range that is placed into
13199 2019-02-22 Keith Seitz <keiths@redhat.com>
13202 * linespec.c (create_sals_line_offset): Search for the default
13203 symtab's filename instead of its fullname.
13205 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13207 * NEWS: Update style defaults.
13209 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13211 * main.c (captured_main_1): Disable styling in batch mode.
13213 2019-02-20 Tom Tromey <tom@tromey.com>
13215 * symtab.c (symtab_symbol_info): Fix typos.
13217 2019-02-20 Tom Tromey <tromey@adacore.com>
13219 * findcmd.c (_initialize_mem_search): Use upper case for
13220 metasyntactic variables.
13222 2019-02-20 Alan Hayward <alan.hayward@arm.com>
13224 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13225 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13227 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13229 * top.h (source_file_name): Change to std::string.
13230 * top.c (source_file_name): Likewise.
13231 (command_line_input): Adjust.
13232 * cli/cli-script.c (script_from_file): Adjust.
13234 2019-02-19 Tom Tromey <tromey@adacore.com>
13236 * ravenscar-thread.c
13237 (ravenscar_thread_target::update_thread_list): Don't call
13238 ada_build_task_list.
13239 * ada-lang.h (ada_build_task_list): Don't declare.
13240 * ada-tasks.c (struct ada_tasks_inferior_data)
13241 <task_list_valid_p>: Now bool.
13242 (read_known_tasks, ada_task_list_changed)
13243 (ada_tasks_invalidate_inferior_data): Update.
13244 (read_known_tasks_array): Return bool.
13245 (read_known_tasks_list): Likewise.
13246 (read_known_tasks): Return void.
13247 (ada_build_task_list): Now static.
13249 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13251 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13252 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13254 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13256 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13257 variant for ada_tasks_pspace_data_handle and
13258 ada_tasks_inferior_data_handle.
13259 (ada_tasks_pspace_data_cleanup): New function.
13260 (ada_tasks_inferior_data_cleanup): New function.
13262 2019-02-17 Tom Tromey <tom@tromey.com>
13264 * macrotab.h (macro_source_fullname): Return a std::string.
13265 * macrotab.c (macro_include, check_for_redefinition)
13266 (macro_undef, macro_lookup_definition, foreach_macro)
13267 (foreach_macro_in_scope): Update.
13268 (macro_source_fullname): Return a std::string.
13269 * macrocmd.c (show_pp_source_pos): Update.
13271 2019-02-17 Tom Tromey <tom@tromey.com>
13273 * macrocmd.c (show_pp_source_pos): Style the file names.
13275 2019-02-17 Tom Tromey <tom@tromey.com>
13278 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13280 2019-02-17 Tom Tromey <tom@tromey.com>
13282 * ada-lang.c (user_select_syms): Use filtered printing.
13283 * utils.c (wrap_style): New global.
13284 (desired_style): Remove.
13285 (emit_style_escape): Add stream parameter.
13286 (set_output_style, reset_terminal_style, prompt_for_continue):
13288 (flush_wrap_buffer): Only flush gdb_stdout.
13289 (wrap_here): Set wrap_style.
13290 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13291 treat escape sequences as a character. Change when wrap buffer is
13293 (fputs_styled): Do not set the output style when the default is
13295 * ui-style.h (struct ui_file_style) <is_default>: New method.
13296 * source.c (print_source_lines_base): Emit escape sequences in one
13299 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13301 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13302 integers and enumeration types.
13304 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13306 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13307 instead of lookup_symbol_in_language
13308 (do_exact_match): New function.
13309 (ada_get_symbol_name_matcher): Return do_exact_match when
13310 doing a verbatim match.
13312 2019-02-15 Tom Tromey <tromey@adacore.com>
13314 * ravenscar-thread.c (ravenscar_thread_target::resume)
13315 (ravenscar_thread_target::wait): Special case wildcard requests.
13317 2019-02-15 Tom Tromey <tromey@adacore.com>
13319 * ravenscar-thread.c (base_ptid): Remove.
13320 (struct ravenscar_thread_target) <close>: New method.
13321 <m_base_ptid>: New member.
13322 <update_inferior_ptid, active_task, task_is_currently_active,
13323 runtime_initialized>: Declare methods.
13324 <ravenscar_thread_target>: Add constructor.
13325 (ravenscar_thread_target::task_is_currently_active)
13326 (ravenscar_thread_target::update_inferior_ptid)
13327 (ravenscar_runtime_initialized): Rename. Now methods.
13328 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13329 (ravenscar_thread_target::update_thread_list): Update.
13330 (ravenscar_thread_target::active_task): Now method.
13331 (ravenscar_thread_target::store_registers)
13332 (ravenscar_thread_target::prepare_to_store)
13333 (ravenscar_thread_target::prepare_to_store)
13334 (ravenscar_thread_target::mourn_inferior): Update.
13335 (ravenscar_inferior_created): Use "new" to create target.
13336 (ravenscar_thread_target::get_ada_task_ptid): Update.
13337 (_initialize_ravenscar): Don't initialize base_ptid.
13338 (ravenscar_ops): Remove global.
13340 2019-02-15 Tom Tromey <tromey@adacore.com>
13342 * target.h (push_target): Declare new overload.
13343 * target.c (push_target): New overload, taking an rvalue reference.
13344 * remote.c (remote_target::open_1): Use push_target overload.
13345 * corelow.c (core_target_open): Use push_target overload.
13347 2019-02-15 Tom Tromey <tromey@adacore.com>
13349 * ravenscar-thread.c (is_ravenscar_task)
13350 (ravenscar_task_is_currently_active): Return bool.
13351 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13352 (_initialize_ravenscar): Remove "(void)".
13353 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13356 2019-02-15 Tom Tromey <tromey@adacore.com>
13358 * ravenscar-thread.c (ravenscar_runtime_initializer)
13359 (has_ravenscar_runtime, get_running_thread_id)
13360 (ravenscar_thread_target::resume): Fix indentation.
13362 2019-02-15 Tom Tromey <tromey@adacore.com>
13364 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13365 from ravenscar_arch_ops.
13366 (sparc_ravenscar_ops::fetch_registers)
13367 (sparc_ravenscar_ops::store_registers): Now methods.
13368 (sparc_ravenscar_prepare_to_store): Remove.
13369 (sparc_ravenscar_ops): Redefine.
13370 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13371 methods and destructor. Remove members.
13372 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13373 (ravenscar_thread_target::store_registers)
13374 (ravenscar_thread_target::prepare_to_store): Update.
13375 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13377 (struct ppc_ravenscar_powerpc_ops): Derive from
13378 ravenscar_arch_ops.
13379 (ppc_ravenscar_powerpc_ops::fetch_registers)
13380 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13381 (ppc_ravenscar_powerpc_ops): Redefine.
13382 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13383 (ppc_ravenscar_e500_ops::fetch_registers)
13384 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13385 (ppc_ravenscar_e500_ops): Redefine.
13386 * aarch64-ravenscar-thread.c
13387 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13388 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13389 (aarch64_ravenscar_fetch_registers)
13390 (aarch64_ravenscar_store_registers): Now methods.
13391 (aarch64_ravenscar_ops): Redefine.
13393 2019-02-15 Tom Tromey <tromey@adacore.com>
13395 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13396 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13397 (ravenscar_thread_target::stopped_by_watchpoint)
13398 (ravenscar_thread_target::stopped_data_address)
13399 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13401 2019-02-15 Tom Tromey <tromey@adacore.com>
13403 * ravenscar-thread.c: Fix some typos.
13405 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13406 Tom Tromey <tromey@adacore.com>
13408 * ada-lang.c (ada_exception_sal): Change addr_string to a
13410 (create_ada_exception_catchpoint): Update.
13412 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13413 Tom Tromey <tromey@adacore.com>
13415 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13416 (bp_location_ops): Remove.
13417 (base_breakpoint_allocate_location): Update.
13418 (free_bp_location): Update.
13419 * ada-lang.c (class ada_catchpoint_location)
13420 <ada_catchpoint_location>: Remove ops parameter.
13421 (ada_catchpoint_location_dtor): Remove.
13422 (ada_catchpoint_location_ops): Remove.
13423 (allocate_location_exception): Update.
13424 * breakpoint.h (struct bp_location_ops): Remove.
13425 (class bp_location) <bp_location>: Remove bp_location_ops
13427 <~bp_location>: Add destructor.
13430 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13431 Pedro Alves <palves@redhat.com>
13433 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13436 2019-02-14 David Michael <fedora.dm0@gmail.com>
13437 Samuel Thibault <samuel.thibault@gnu.org>
13438 Thomas Schwinge <thomas@codesourcery.com>
13440 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13441 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13443 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13445 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13446 (check_empty): Use "const char *".
13448 * gnu-nat.c (gnu_nat_target::detach): Instead of
13449 'detach_inferior (pid)' call
13450 'detach_inferior (find_inferior_pid (pid))'.
13452 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13453 'nat/fork-inferior.o'.
13454 * gnu-nat.c: #include "nat/fork-inferior.h".
13456 * gnu-nat.c (gnu_nat_target::detach): Instead of
13457 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13458 * gnu-nat.h: #include "inf-child.h".
13459 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13460 'i386_gnu_nat_target::fetch_registers'.
13461 (gnu_store_registers): Rename/move to
13462 'i386_gnu_nat_target::store_registers'.
13464 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13465 * gnu-nat.h (mach_thread_info): New function.
13466 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13468 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13470 2019-02-14 Frederic Konrad <konrad@adacore.com>
13472 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13474 2019-02-14 Joel Brobecker <brobecker@adacore.com>
13476 * windows-nat.c (windows_add_thread): Add new parameter
13477 "main_thread_p" with default value set to false. Update
13478 function documentation as well as all callers.
13479 (windows_delete_thread): Likewise.
13480 (fake_create_process): Update call to windows_add_thread.
13481 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13482 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13483 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13484 call to windows_delete_thread.
13486 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13488 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13490 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13492 * symfile.c (find_separate_debug_file): Use canonical path of
13493 sysroot with child_path instead of gdb_sysroot if it is valid.
13495 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13497 * symfile.c (find_separate_debug_file): Use child_path to
13498 determine if an object file is under a sysroot.
13500 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13502 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13503 unittests/child-path-selftests.c.
13504 * common/pathstuff.c (child_path): New function.
13505 * common/pathstuff.h (child_path): New prototype.
13506 * unittests/child-path-selftests.c: New file.
13508 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13510 * symfile.c (find_separate_debug_file): Look for separate debug
13511 files in debug directories under the sysroot.
13513 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13515 * symtab.h (struct minimal_symbol data_p): New const method.
13516 (struct minimal_symbol text_p): Likewise.
13517 * symtab.c (output_source_filename): Use file name style
13518 to print file name.
13519 (print_symbol_info): Likewise.
13520 (print_msymbol_info): Use address style to print addresses.
13521 Use function name style to print executable text symbols.
13522 (expand_symtab_containing_pc): Use data_p.
13523 (find_pc_sect_compunit_symtab): Likewise.
13525 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13527 * breakpoint.c (describe_other_breakpoints): Use address style
13528 to print addresses.
13529 (say_where): Likewise.
13531 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13533 * ada-typeprint.c (print_func_type): Print function name
13534 style to print function name.
13535 * c-typeprint.c (c_print_type_1): Likewise.
13537 2019-02-11 Alan Hayward <alan.hayward@arm.com>
13539 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13542 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13544 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13547 2019-02-10 Joel Brobecker <brobecker@adacore.com>
13549 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13550 TYPE_CODE_REF types.
13552 2019-02-08 Jim Wilson <jimw@sifive.com>
13554 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13555 (riscv_linux_fregset): New.
13556 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13558 2019-02-07 Tom Tromey <tom@tromey.com>
13560 * thread.c (thread_cancel_execution_command): Update.
13561 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13563 (struct thread_fsm_ops): Remove.
13564 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13565 (thread_fsm_should_stop, thread_fsm_return_value)
13566 (thread_fsm_set_finished, thread_fsm_finished_p)
13567 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13569 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13570 * infrun.c (clear_proceed_status_thread)
13571 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13572 (print_stop_event): Update.
13573 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13575 (step_command_fsm_ops): Remove.
13576 (new_step_command_fsm): Remove.
13578 (step_command_fsm::should_stop): Rename from
13579 step_command_fsm_should_stop.
13580 (step_command_fsm::clean_up): Rename from
13581 step_command_fsm_clean_up.
13582 (step_command_fsm::do_async_reply_reason): Rename from
13583 step_command_fsm_async_reply_reason.
13584 (struct until_next_fsm): Inherit from thread_fsm. Add
13586 (until_next_fsm_ops): Remove.
13587 (new_until_next_fsm): Remove.
13588 (until_next_fsm::should_stop): Rename from
13589 until_next_fsm_should_stop.
13590 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13591 (until_next_fsm::do_async_reply_reason): Rename from
13592 until_next_fsm_async_reply_reason.
13593 (struct finish_command_fsm): Inherit from thread_fsm. Add
13594 constructor. Change type of breakpoint.
13595 (finish_command_fsm_ops): Remove.
13596 (new_finish_command_fsm): Remove.
13597 (finish_command_fsm::should_stop): Rename from
13598 finish_command_fsm_should_stop.
13599 (finish_command_fsm::clean_up): Rename from
13600 finish_command_fsm_clean_up.
13601 (finish_command_fsm::return_value): Rename from
13602 finish_command_fsm_return_value.
13603 (finish_command_fsm::do_async_reply_reason): Rename from
13604 finish_command_fsm_async_reply_reason.
13605 (finish_command): Update.
13606 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13608 (call_thread_fsm_ops): Remove.
13609 (call_thread_fsm::call_thread_fsm): Rename from
13610 new_call_thread_fsm.
13611 (call_thread_fsm::should_stop): Rename from
13612 call_thread_fsm_should_stop.
13613 (call_thread_fsm::should_notify_stop): Rename from
13614 call_thread_fsm_should_notify_stop.
13615 (run_inferior_call, call_function_by_hand_dummy): Update.
13616 * cli/cli-interp.c (should_print_stop_to_console): Update.
13617 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13618 Add constructor. Change type of location_breakpoint,
13620 (until_break_fsm_ops): Remove.
13621 (new_until_break_fsm): Remove.
13622 (until_break_fsm::should_stop): Rename from
13623 until_break_fsm_should_stop.
13624 (until_break_fsm::clean_up): Rename from
13625 until_break_fsm_clean_up.
13626 (until_break_fsm::do_async_reply_reason): Rename from
13627 until_break_fsm_async_reply_reason.
13628 (until_break_command): Update.
13629 * thread-fsm.c: Remove.
13630 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13632 2019-02-07 Tom Tromey <tom@tromey.com>
13634 * yy-remap.h: Add include guard.
13635 * xtensa-tdep.h: Add include guard.
13636 * xcoffread.h: Rename include guard.
13637 * varobj-iter.h: Add include guard.
13638 * tui/tui.h: Rename include guard.
13639 * tui/tui-winsource.h: Rename include guard.
13640 * tui/tui-wingeneral.h: Rename include guard.
13641 * tui/tui-windata.h: Rename include guard.
13642 * tui/tui-win.h: Rename include guard.
13643 * tui/tui-stack.h: Rename include guard.
13644 * tui/tui-source.h: Rename include guard.
13645 * tui/tui-regs.h: Rename include guard.
13646 * tui/tui-out.h: Rename include guard.
13647 * tui/tui-layout.h: Rename include guard.
13648 * tui/tui-io.h: Rename include guard.
13649 * tui/tui-hooks.h: Rename include guard.
13650 * tui/tui-file.h: Rename include guard.
13651 * tui/tui-disasm.h: Rename include guard.
13652 * tui/tui-data.h: Rename include guard.
13653 * tui/tui-command.h: Rename include guard.
13654 * tic6x-tdep.h: Add include guard.
13655 * target/waitstatus.h: Rename include guard.
13656 * target/wait.h: Rename include guard.
13657 * target/target.h: Rename include guard.
13658 * target/resume.h: Rename include guard.
13659 * target-float.h: Rename include guard.
13660 * stabsread.h: Add include guard.
13661 * rs6000-tdep.h: Add include guard.
13662 * riscv-fbsd-tdep.h: Add include guard.
13663 * regformats/regdef.h: Rename include guard.
13664 * record.h: Rename include guard.
13665 * python/python.h: Rename include guard.
13666 * python/python-internal.h: Rename include guard.
13667 * python/py-stopevent.h: Rename include guard.
13668 * python/py-ref.h: Rename include guard.
13669 * python/py-record.h: Rename include guard.
13670 * python/py-record-full.h: Rename include guard.
13671 * python/py-record-btrace.h: Rename include guard.
13672 * python/py-instruction.h: Rename include guard.
13673 * python/py-events.h: Rename include guard.
13674 * python/py-event.h: Rename include guard.
13675 * procfs.h: Add include guard.
13676 * proc-utils.h: Add include guard.
13677 * p-lang.h: Add include guard.
13678 * or1k-tdep.h: Rename include guard.
13679 * observable.h: Rename include guard.
13680 * nto-tdep.h: Rename include guard.
13681 * nat/x86-linux.h: Rename include guard.
13682 * nat/x86-linux-dregs.h: Rename include guard.
13683 * nat/x86-gcc-cpuid.h: Add include guard.
13684 * nat/x86-dregs.h: Rename include guard.
13685 * nat/x86-cpuid.h: Rename include guard.
13686 * nat/ppc-linux.h: Rename include guard.
13687 * nat/mips-linux-watch.h: Rename include guard.
13688 * nat/linux-waitpid.h: Rename include guard.
13689 * nat/linux-ptrace.h: Rename include guard.
13690 * nat/linux-procfs.h: Rename include guard.
13691 * nat/linux-osdata.h: Rename include guard.
13692 * nat/linux-nat.h: Rename include guard.
13693 * nat/linux-namespaces.h: Rename include guard.
13694 * nat/linux-btrace.h: Rename include guard.
13695 * nat/glibc_thread_db.h: Rename include guard.
13696 * nat/gdb_thread_db.h: Rename include guard.
13697 * nat/gdb_ptrace.h: Rename include guard.
13698 * nat/fork-inferior.h: Rename include guard.
13699 * nat/amd64-linux-siginfo.h: Rename include guard.
13700 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13701 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13702 * nat/aarch64-linux.h: Rename include guard.
13703 * nat/aarch64-linux-hw-point.h: Rename include guard.
13704 * mn10300-tdep.h: Add include guard.
13705 * mips-linux-tdep.h: Add include guard.
13706 * mi/mi-parse.h: Rename include guard.
13707 * mi/mi-out.h: Rename include guard.
13708 * mi/mi-main.h: Rename include guard.
13709 * mi/mi-interp.h: Rename include guard.
13710 * mi/mi-getopt.h: Rename include guard.
13711 * mi/mi-console.h: Rename include guard.
13712 * mi/mi-common.h: Rename include guard.
13713 * mi/mi-cmds.h: Rename include guard.
13714 * mi/mi-cmd-break.h: Rename include guard.
13715 * m2-lang.h: Add include guard.
13716 * location.h: Rename include guard.
13717 * linux-record.h: Rename include guard.
13718 * linux-nat.h: Add include guard.
13719 * linux-fork.h: Add include guard.
13720 * i386-darwin-tdep.h: Rename include guard.
13721 * hppa-linux-offsets.h: Add include guard.
13722 * guile/guile.h: Rename include guard.
13723 * guile/guile-internal.h: Rename include guard.
13724 * gnu-nat.h: Rename include guard.
13725 * gdb-stabs.h: Rename include guard.
13726 * frv-tdep.h: Add include guard.
13727 * f-lang.h: Add include guard.
13728 * event-loop.h: Add include guard.
13729 * darwin-nat.h: Rename include guard.
13730 * cp-abi.h: Rename include guard.
13731 * config/sparc/nm-sol2.h: Rename include guard.
13732 * config/nm-nto.h: Rename include guard.
13733 * config/nm-linux.h: Add include guard.
13734 * config/i386/nm-i386gnu.h: Rename include guard.
13735 * config/djgpp/nl_types.h: Rename include guard.
13736 * config/djgpp/langinfo.h: Rename include guard.
13737 * compile/gcc-cp-plugin.h: Add include guard.
13738 * compile/gcc-c-plugin.h: Add include guard.
13739 * compile/compile.h: Rename include guard.
13740 * compile/compile-object-run.h: Rename include guard.
13741 * compile/compile-object-load.h: Rename include guard.
13742 * compile/compile-internal.h: Rename include guard.
13743 * compile/compile-cplus.h: Rename include guard.
13744 * compile/compile-c.h: Rename include guard.
13745 * common/xml-utils.h: Rename include guard.
13746 * common/x86-xstate.h: Rename include guard.
13747 * common/version.h: Rename include guard.
13748 * common/vec.h: Rename include guard.
13749 * common/tdesc.h: Rename include guard.
13750 * common/selftest.h: Rename include guard.
13751 * common/scoped_restore.h: Rename include guard.
13752 * common/scoped_mmap.h: Rename include guard.
13753 * common/scoped_fd.h: Rename include guard.
13754 * common/safe-iterator.h: Rename include guard.
13755 * common/run-time-clock.h: Rename include guard.
13756 * common/refcounted-object.h: Rename include guard.
13757 * common/queue.h: Rename include guard.
13758 * common/ptid.h: Rename include guard.
13759 * common/print-utils.h: Rename include guard.
13760 * common/preprocessor.h: Rename include guard.
13761 * common/pathstuff.h: Rename include guard.
13762 * common/observable.h: Rename include guard.
13763 * common/netstuff.h: Rename include guard.
13764 * common/job-control.h: Rename include guard.
13765 * common/host-defs.h: Rename include guard.
13766 * common/gdb_wait.h: Rename include guard.
13767 * common/gdb_vecs.h: Rename include guard.
13768 * common/gdb_unlinker.h: Rename include guard.
13769 * common/gdb_unique_ptr.h: Rename include guard.
13770 * common/gdb_tilde_expand.h: Rename include guard.
13771 * common/gdb_sys_time.h: Rename include guard.
13772 * common/gdb_string_view.h: Rename include guard.
13773 * common/gdb_splay_tree.h: Rename include guard.
13774 * common/gdb_setjmp.h: Rename include guard.
13775 * common/gdb_ref_ptr.h: Rename include guard.
13776 * common/gdb_optional.h: Rename include guard.
13777 * common/gdb_locale.h: Rename include guard.
13778 * common/gdb_assert.h: Rename include guard.
13779 * common/filtered-iterator.h: Rename include guard.
13780 * common/filestuff.h: Rename include guard.
13781 * common/fileio.h: Rename include guard.
13782 * common/environ.h: Rename include guard.
13783 * common/common-utils.h: Rename include guard.
13784 * common/common-types.h: Rename include guard.
13785 * common/common-regcache.h: Rename include guard.
13786 * common/common-inferior.h: Rename include guard.
13787 * common/common-gdbthread.h: Rename include guard.
13788 * common/common-exceptions.h: Rename include guard.
13789 * common/common-defs.h: Rename include guard.
13790 * common/common-debug.h: Rename include guard.
13791 * common/cleanups.h: Rename include guard.
13792 * common/buffer.h: Rename include guard.
13793 * common/btrace-common.h: Rename include guard.
13794 * common/break-common.h: Rename include guard.
13795 * cli/cli-utils.h: Rename include guard.
13796 * cli/cli-style.h: Rename include guard.
13797 * cli/cli-setshow.h: Rename include guard.
13798 * cli/cli-script.h: Rename include guard.
13799 * cli/cli-interp.h: Rename include guard.
13800 * cli/cli-decode.h: Rename include guard.
13801 * cli/cli-cmds.h: Rename include guard.
13802 * charset-list.h: Add include guard.
13803 * buildsym-legacy.h: Rename include guard.
13804 * bfin-tdep.h: Add include guard.
13805 * ax.h: Rename include guard.
13806 * arm-linux-tdep.h: Add include guard.
13807 * arm-fbsd-tdep.h: Add include guard.
13808 * arch/xtensa.h: Rename include guard.
13809 * arch/tic6x.h: Add include guard.
13810 * arch/i386.h: Add include guard.
13811 * arch/arm.h: Rename include guard.
13812 * arch/arm-linux.h: Rename include guard.
13813 * arch/arm-get-next-pcs.h: Rename include guard.
13814 * arch/amd64.h: Add include guard.
13815 * arch/aarch64-insn.h: Rename include guard.
13816 * arch-utils.h: Rename include guard.
13817 * annotate.h: Add include guard.
13818 * amd64-darwin-tdep.h: Rename include guard.
13819 * aarch64-linux-tdep.h: Add include guard.
13820 * aarch64-fbsd-tdep.h: Add include guard.
13821 * aarch32-linux-nat.h: Add include guard.
13823 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13825 * macrotab.c (macro_define_internal): New function that
13826 factorizes macro_define_object_internal and macro_define_function
13828 (macro_define_object_internal): Use macro_define_internal.
13829 (macro_define_function): Likewise.
13831 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13833 * macrocmd.c (extract_identifier): Return
13834 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13837 2019-02-06 John Baldwin <jhb@FreeBSD.org>
13839 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
13841 2019-02-05 Tom Tromey <tom@tromey.com>
13843 * target.c (target_stack::unpush): Move assertion earlier.
13845 2019-01-30 Tom Tromey <tom@tromey.com>
13848 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
13849 (gdbpy_parse_and_eval): Likewise.
13850 * python/python-internal.h (gdbpy_allow_threads): New class.
13852 2019-01-28 John Baldwin <jhb@FreeBSD.org>
13854 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
13855 (aarch64_fbsd_fpregmap): Move earlier.
13856 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
13857 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13858 instead of individual calls to trad_frame_set_reg_addr.
13859 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
13861 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
13862 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
13863 instead of individual calls to trad_frame_set_reg_addr.
13865 2019-01-28 Alan Hayward <alan.hayward@arm.com>
13867 * CONTRIBUTE: Replace contribution list with wiki link.
13869 2019-01-25 Tom Tromey <tom@tromey.com>
13871 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
13873 2019-01-25 Tom Tromey <tom@tromey.com>
13875 * xtensa-linux-nat.c: Fix common/ includes.
13876 * xml-support.h: Fix common/ includes.
13877 * xml-support.c: Fix common/ includes.
13878 * x86-linux-nat.c: Fix common/ includes.
13879 * windows-nat.c: Fix common/ includes.
13880 * varobj.h: Fix common/ includes.
13881 * varobj.c: Fix common/ includes.
13882 * value.c: Fix common/ includes.
13883 * valops.c: Fix common/ includes.
13884 * utils.c: Fix common/ includes.
13885 * unittests/xml-utils-selftests.c: Fix common/ includes.
13886 * unittests/utils-selftests.c: Fix common/ includes.
13887 * unittests/unpack-selftests.c: Fix common/ includes.
13888 * unittests/tracepoint-selftests.c: Fix common/ includes.
13889 * unittests/style-selftests.c: Fix common/ includes.
13890 * unittests/string_view-selftests.c: Fix common/ includes.
13891 * unittests/scoped_restore-selftests.c: Fix common/ includes.
13892 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
13893 * unittests/scoped_fd-selftests.c: Fix common/ includes.
13894 * unittests/rsp-low-selftests.c: Fix common/ includes.
13895 * unittests/parse-connection-spec-selftests.c: Fix common/
13897 * unittests/optional-selftests.c: Fix common/ includes.
13898 * unittests/offset-type-selftests.c: Fix common/ includes.
13899 * unittests/observable-selftests.c: Fix common/ includes.
13900 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
13901 * unittests/memrange-selftests.c: Fix common/ includes.
13902 * unittests/memory-map-selftests.c: Fix common/ includes.
13903 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
13904 * unittests/function-view-selftests.c: Fix common/ includes.
13905 * unittests/environ-selftests.c: Fix common/ includes.
13906 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
13907 * unittests/common-utils-selftests.c: Fix common/ includes.
13908 * unittests/cli-utils-selftests.c: Fix common/ includes.
13909 * unittests/array-view-selftests.c: Fix common/ includes.
13910 * ui-file.c: Fix common/ includes.
13911 * tui/tui-io.c: Fix common/ includes.
13912 * tracepoint.h: Fix common/ includes.
13913 * tracepoint.c: Fix common/ includes.
13914 * tracefile-tfile.c: Fix common/ includes.
13915 * top.h: Fix common/ includes.
13916 * top.c: Fix common/ includes.
13917 * thread.c: Fix common/ includes.
13918 * target/waitstatus.h: Fix common/ includes.
13919 * target/waitstatus.c: Fix common/ includes.
13920 * target.h: Fix common/ includes.
13921 * target.c: Fix common/ includes.
13922 * target-memory.c: Fix common/ includes.
13923 * target-descriptions.c: Fix common/ includes.
13924 * symtab.h: Fix common/ includes.
13925 * symfile.c: Fix common/ includes.
13926 * stap-probe.c: Fix common/ includes.
13927 * spu-linux-nat.c: Fix common/ includes.
13928 * sparc-nat.c: Fix common/ includes.
13929 * source.c: Fix common/ includes.
13930 * solib.c: Fix common/ includes.
13931 * solib-target.c: Fix common/ includes.
13932 * ser-unix.c: Fix common/ includes.
13933 * ser-tcp.c: Fix common/ includes.
13934 * ser-pipe.c: Fix common/ includes.
13935 * ser-base.c: Fix common/ includes.
13936 * selftest-arch.c: Fix common/ includes.
13937 * s12z-tdep.c: Fix common/ includes.
13938 * rust-exp.y: Fix common/ includes.
13939 * rs6000-aix-tdep.c: Fix common/ includes.
13940 * riscv-tdep.c: Fix common/ includes.
13941 * remote.c: Fix common/ includes.
13942 * remote-notif.h: Fix common/ includes.
13943 * remote-fileio.h: Fix common/ includes.
13944 * remote-fileio.c: Fix common/ includes.
13945 * regcache.h: Fix common/ includes.
13946 * regcache.c: Fix common/ includes.
13947 * record-btrace.c: Fix common/ includes.
13948 * python/python.c: Fix common/ includes.
13949 * python/py-type.c: Fix common/ includes.
13950 * python/py-inferior.c: Fix common/ includes.
13951 * progspace.h: Fix common/ includes.
13952 * producer.c: Fix common/ includes.
13953 * procfs.c: Fix common/ includes.
13954 * proc-api.c: Fix common/ includes.
13955 * printcmd.c: Fix common/ includes.
13956 * ppc-linux-nat.c: Fix common/ includes.
13957 * parser-defs.h: Fix common/ includes.
13958 * osdata.c: Fix common/ includes.
13959 * obsd-nat.c: Fix common/ includes.
13960 * nat/x86-linux.c: Fix common/ includes.
13961 * nat/x86-linux-dregs.c: Fix common/ includes.
13962 * nat/x86-dregs.h: Fix common/ includes.
13963 * nat/x86-dregs.c: Fix common/ includes.
13964 * nat/ppc-linux.c: Fix common/ includes.
13965 * nat/mips-linux-watch.h: Fix common/ includes.
13966 * nat/mips-linux-watch.c: Fix common/ includes.
13967 * nat/linux-waitpid.c: Fix common/ includes.
13968 * nat/linux-ptrace.h: Fix common/ includes.
13969 * nat/linux-ptrace.c: Fix common/ includes.
13970 * nat/linux-procfs.c: Fix common/ includes.
13971 * nat/linux-personality.c: Fix common/ includes.
13972 * nat/linux-osdata.c: Fix common/ includes.
13973 * nat/linux-namespaces.c: Fix common/ includes.
13974 * nat/linux-btrace.h: Fix common/ includes.
13975 * nat/linux-btrace.c: Fix common/ includes.
13976 * nat/fork-inferior.c: Fix common/ includes.
13977 * nat/amd64-linux-siginfo.c: Fix common/ includes.
13978 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
13979 * nat/aarch64-linux.c: Fix common/ includes.
13980 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
13981 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
13982 * namespace.h: Fix common/ includes.
13983 * mips-linux-tdep.c: Fix common/ includes.
13984 * minsyms.c: Fix common/ includes.
13985 * mi/mi-parse.h: Fix common/ includes.
13986 * mi/mi-main.c: Fix common/ includes.
13987 * mi/mi-cmd-env.c: Fix common/ includes.
13988 * memrange.h: Fix common/ includes.
13989 * memattr.c: Fix common/ includes.
13990 * maint.h: Fix common/ includes.
13991 * maint.c: Fix common/ includes.
13992 * main.c: Fix common/ includes.
13993 * machoread.c: Fix common/ includes.
13994 * location.c: Fix common/ includes.
13995 * linux-thread-db.c: Fix common/ includes.
13996 * linux-nat.c: Fix common/ includes.
13997 * linux-fork.c: Fix common/ includes.
13998 * inline-frame.c: Fix common/ includes.
13999 * infrun.c: Fix common/ includes.
14000 * inflow.c: Fix common/ includes.
14001 * inferior.h: Fix common/ includes.
14002 * inferior.c: Fix common/ includes.
14003 * infcmd.c: Fix common/ includes.
14004 * inf-ptrace.c: Fix common/ includes.
14005 * inf-child.c: Fix common/ includes.
14006 * ia64-linux-nat.c: Fix common/ includes.
14007 * i387-tdep.c: Fix common/ includes.
14008 * i386-tdep.c: Fix common/ includes.
14009 * i386-linux-tdep.c: Fix common/ includes.
14010 * i386-linux-nat.c: Fix common/ includes.
14011 * i386-go32-tdep.c: Fix common/ includes.
14012 * i386-fbsd-tdep.c: Fix common/ includes.
14013 * i386-fbsd-nat.c: Fix common/ includes.
14014 * guile/scm-type.c: Fix common/ includes.
14015 * guile/guile.c: Fix common/ includes.
14016 * go32-nat.c: Fix common/ includes.
14017 * gnu-nat.c: Fix common/ includes.
14018 * gdbthread.h: Fix common/ includes.
14019 * gdbarch-selftests.c: Fix common/ includes.
14020 * gdb_usleep.c: Fix common/ includes.
14021 * gdb_select.h: Fix common/ includes.
14022 * gdb_bfd.c: Fix common/ includes.
14023 * gcore.c: Fix common/ includes.
14024 * fork-child.c: Fix common/ includes.
14025 * findvar.c: Fix common/ includes.
14026 * fbsd-nat.c: Fix common/ includes.
14027 * event-top.c: Fix common/ includes.
14028 * event-loop.c: Fix common/ includes.
14029 * dwarf2read.c: Fix common/ includes.
14030 * dwarf2loc.c: Fix common/ includes.
14031 * dwarf2-frame.c: Fix common/ includes.
14032 * dwarf-index-cache.c: Fix common/ includes.
14033 * dtrace-probe.c: Fix common/ includes.
14034 * disasm-selftests.c: Fix common/ includes.
14035 * defs.h: Fix common/ includes.
14036 * csky-tdep.c: Fix common/ includes.
14037 * cp-valprint.c: Fix common/ includes.
14038 * cp-support.h: Fix common/ includes.
14039 * cp-support.c: Fix common/ includes.
14040 * corelow.c: Fix common/ includes.
14041 * completer.h: Fix common/ includes.
14042 * completer.c: Fix common/ includes.
14043 * compile/compile.c: Fix common/ includes.
14044 * compile/compile-loc2c.c: Fix common/ includes.
14045 * compile/compile-cplus-types.c: Fix common/ includes.
14046 * compile/compile-cplus-symbols.c: Fix common/ includes.
14047 * command.h: Fix common/ includes.
14048 * cli/cli-dump.c: Fix common/ includes.
14049 * cli/cli-cmds.c: Fix common/ includes.
14050 * charset.c: Fix common/ includes.
14051 * build-id.c: Fix common/ includes.
14052 * btrace.h: Fix common/ includes.
14053 * btrace.c: Fix common/ includes.
14054 * breakpoint.h: Fix common/ includes.
14055 * breakpoint.c: Fix common/ includes.
14057 (enum agent_op): Fix common/ includes.
14058 * ax-general.c (struct aop_map): Fix common/ includes.
14059 * ax-gdb.c: Fix common/ includes.
14060 * auxv.c: Fix common/ includes.
14061 * auto-load.c: Fix common/ includes.
14062 * arm-tdep.c: Fix common/ includes.
14063 * arch/riscv.c: Fix common/ includes.
14064 * arch/ppc-linux-common.c: Fix common/ includes.
14065 * arch/i386.c: Fix common/ includes.
14066 * arch/arm.c: Fix common/ includes.
14067 * arch/arm-linux.c: Fix common/ includes.
14068 * arch/arm-get-next-pcs.c: Fix common/ includes.
14069 * arch/amd64.c: Fix common/ includes.
14070 * arch/aarch64.c: Fix common/ includes.
14071 * arch/aarch64-insn.c: Fix common/ includes.
14072 * arch-utils.c: Fix common/ includes.
14073 * amd64-windows-tdep.c: Fix common/ includes.
14074 * amd64-tdep.c: Fix common/ includes.
14075 * amd64-sol2-tdep.c: Fix common/ includes.
14076 * amd64-obsd-tdep.c: Fix common/ includes.
14077 * amd64-nbsd-tdep.c: Fix common/ includes.
14078 * amd64-linux-tdep.c: Fix common/ includes.
14079 * amd64-linux-nat.c: Fix common/ includes.
14080 * amd64-fbsd-tdep.c: Fix common/ includes.
14081 * amd64-fbsd-nat.c: Fix common/ includes.
14082 * amd64-dicos-tdep.c: Fix common/ includes.
14083 * amd64-darwin-tdep.c: Fix common/ includes.
14084 * agent.c: Fix common/ includes.
14085 * ada-lang.h: Fix common/ includes.
14086 * ada-lang.c: Fix common/ includes.
14087 * aarch64-tdep.c: Fix common/ includes.
14089 2019-01-25 Tom Tromey <tom@tromey.com>
14091 * common/create-version.sh: Use common/version.h.
14093 2019-01-24 Pedro Alves <palves@redhat.com>
14095 * infrun.c (signal_stop, signal_print, signal_program)
14096 (signal_catch, signal_pass): Now arrays instead of pointers.
14097 (update_signals_program_target, do_target_resume)
14098 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14099 * linux-nat.c (linux_nat_target::pass_signals)
14100 (linux_nat_target::create_inferior, linux_nat_target::attach):
14102 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14103 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14104 * procfs.c (procfs_target::pass_signals): Adjust.
14105 * record-full.c (record_full_target::resume): Adjust.
14106 * remote.c (remote_target::pass_signals)
14107 (remote_target::program_signals): Adjust.
14108 * target-debug.h (target_debug_print_signals): Now takes a
14109 gdb::array_view as parameter. Adjust.
14110 * target.h (target_ops) <pass_signals, program_signals>: Replace
14111 pointer and length parameters with gdb::array_view.
14112 (target_pass_signals, target_program_signals): Likewise.
14113 * target-delegates.c: Regenerate.
14115 2019-01-24 Pedro Alves <palves@redhat.com>
14117 * common/forward-scope-exit.h
14118 (forward_scope_exit::forward_scope_exit): Pass arguments to
14119 m_bind_function directly, instead of creating a std::bind and
14122 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14124 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14125 for static members.
14126 (pass_in_v_vfp_candidate): Likewise.
14128 2019-01-23 Tom Tromey <tom@tromey.com>
14129 Pedro Alves <palves@redhat.com>
14131 * regcache.c (class regcache_invalidator): Remove.
14132 (regcache::raw_write): Use make_scope_exit.
14134 2019-01-23 Tom Tromey <tom@tromey.com>
14136 * ui-out.h (class ui_out_emit_type): Update comment.
14138 2019-01-23 Tom Tromey <tom@tromey.com>
14140 * infrun.c (fetch_inferior_event): Update comment.
14142 2019-01-23 Tom Tromey <tom@tromey.com>
14143 Pedro Alves <palves@redhat.com>
14145 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14147 (fetch_inferior_event): Use SCOPE_EXIT.
14150 2019-01-23 Tom Tromey <tom@tromey.com>
14151 Pedro Alves <palves@redhat.com>
14153 * infrun.c (disable_thread_events): Delete.
14154 (stop_all_threads): Use SCOPE_EXIT.
14156 2019-01-23 Tom Tromey <tom@tromey.com>
14157 Pedro Alves <palves@redhat.com>
14159 * symfile.c: Include forward-scope-exit.h.
14160 (clear_symtab_users_cleanup): Replace forward declaration with
14161 a FORWARD_SCOPE_EXIT.
14162 (syms_from_objfile_1): Use the forward_scope_exit and
14163 gdb::optional instead of cleanup_function.
14164 (reread_symbols): Use the forward_scope_exit instead of
14166 (clear_symtab_users_cleanup): Remove function.
14168 2019-01-23 Tom Tromey <tom@tromey.com>
14169 Pedro Alves <palves@redhat.com>
14171 * linux-nat.c: Include scope-exit.h.
14172 (cleanup_target_stop): Remove.
14173 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14176 2019-01-23 Tom Tromey <tom@tromey.com>
14177 Pedro Alves <palves@redhat.com>
14179 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14180 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14182 2019-01-23 Tom Tromey <tom@tromey.com>
14183 Andrew Burgess <andrew.burgess@embecosm.com>
14184 Pedro Alves <palves@redhat.com>
14186 * infrun.c (fetch_inferior_event): Use scope_exit.
14187 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14188 * top.c (execute_command): Use scope_exit.
14189 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14190 * utils.c (do_bpstat_clear_actions_cleanup)
14191 (make_bpstat_clear_actions_cleanup): Remove.
14193 2019-01-23 Tom Tromey <tom@tromey.com>
14194 Pedro Alves <palves@redhat.com>
14196 * infrun.c: Include "common/scope-exit.h"
14197 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14198 (wait_for_inferior): Use SCOPE_EXIT.
14199 (fetch_inferior_event): Use scope_exit.
14201 2019-01-23 Tom Tromey <tom@tromey.com>
14202 Pedro Alves <palves@redhat.com>
14204 * breakpoint.c (create_breakpoint): Remove cleanup.
14206 2019-01-23 Tom Tromey <tom@tromey.com>
14207 Andrew Burgess <andrew.burgess@embecosm.com>
14208 Pedro Alves <palves@redhat.com>
14210 2019-01-23 Pedro Alves <palves@redhat.com>
14212 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14214 2019-01-23 Pedro Alves <palves@redhat.com>
14215 Andrew Burgess <andrew.burgess@embecosm.com>
14217 * gdbthread.h: Include "common/forward-scope-exit.h".
14218 (scoped_finish_thread_state): Redefine custom class in terms of
14219 forward_scope_exit.
14221 2019-01-23 Pedro Alves <palves@redhat.com>
14222 Andrew Burgess <andrew.burgess@embecosm.com>
14224 * common/forward-scope-exit.h: New file.
14226 2019-01-23 Pedro Alves <palves@redhat.com>
14227 Andrew Burgess <andrew.burgess@embecosm.com>
14228 Tom Tromey <tom@tromey.com>
14230 * common/scope-exit.h: New file.
14232 2019-01-23 Pedro Alves <palves@redhat.com>
14234 * common/preprocessor.h (ESC): Rename to ...
14235 (ESC_PARENS): ... this.
14236 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14237 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14239 2019-01-23 Tom Tromey <tom@tromey.com>
14241 * language.h (class scoped_switch_to_sym_language_if_auto):
14242 Initialize m_lang in both cases.
14244 2019-01-23 Alan Hayward <alan.hayward@arm.com>
14246 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14249 2019-01-22 Tom Tromey <tom@tromey.com>
14251 * corelow.c: Do not include sys/file.h.
14253 2019-01-22 Tom Tromey <tom@tromey.com>
14255 * tui/tui-wingeneral.h: Include gdb_curses.h.
14257 2019-01-22 Tom Tromey <tom@tromey.com>
14259 * source-cache.h (class source_cache) <get_source_lines,
14260 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14262 2019-01-22 Tom Tromey <tom@tromey.com>
14264 * remote-fileio.h (struct remote_target): Declare.
14266 2019-01-22 Tom Tromey <tom@tromey.com>
14268 * python/py-arch.c: Do not include py-ref.h.
14269 * python/py-bpevent.c: Do not include py-ref.h.
14270 * python/py-cmd.c: Do not include py-ref.h.
14271 * python/py-continueevent.c: Do not include py-ref.h.
14272 * python/py-event.h: Do not include py-ref.h.
14273 * python/py-evtregistry.c: Do not include py-ref.h.
14274 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14275 * python/py-frame.c: Do not include py-ref.h.
14276 * python/py-framefilter.c: Do not include py-ref.h.
14277 * python/py-function.c: Do not include py-ref.h.
14278 * python/py-infevents.c: Do not include py-ref.h.
14279 * python/py-linetable.c: Do not include py-ref.h.
14280 * python/py-objfile.c: Do not include py-ref.h.
14281 * python/py-param.c: Do not include py-ref.h.
14282 * python/py-prettyprint.c: Do not include py-ref.h.
14283 * python/py-progspace.c: Do not include py-ref.h.
14284 * python/py-symbol.c: Do not include py-ref.h.
14285 * python/py-symtab.c: Do not include py-ref.h.
14286 * python/py-type.c: Do not include py-ref.h.
14287 * python/py-unwind.c: Do not include py-ref.h.
14288 * python/py-utils.c: Do not include py-ref.h.
14289 * python/py-value.c: Do not include py-ref.h.
14290 * python/py-varobj.c: Do not include py-ref.h.
14291 * python/py-xmethods.c: Do not include py-ref.h.
14292 * python/python.c: Do not include py-ref.h.
14293 * varobj.c: Do not include py-ref.h.
14295 2019-01-22 Tom Tromey <tom@tromey.com>
14297 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14298 keyword for bcache.
14300 2019-01-22 Tom Tromey <tom@tromey.com>
14302 * compile/compile-cplus-types.c: Remove a comment by #include.
14304 2019-01-22 Tom Tromey <tom@tromey.com>
14306 * compile/gcc-c-plugin.h: Include compile-internal.h.
14308 2019-01-22 Tom Tromey <tom@tromey.com>
14310 * stabsread.c (EXTERN): Do not define.
14311 (symnum, next_symbol_text_func, processing_gcc_compilation)
14312 (within_function, global_sym_chain, global_stabs)
14313 (previous_stab_code, this_object_header_files)
14314 (n_this_object_header_files)
14315 (n_allocated_this_object_header_files): Define.
14316 * stabsread.h (EXTERN): Never define. Use "extern".
14318 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14320 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14323 2019-01-21 Tom Tromey <tom@tromey.com>
14325 * ui-out.c: Fix includes.
14326 * tui/tui-source.c: Fix includes.
14327 * target.c: Fix includes.
14328 * remote.c: Fix includes.
14329 * regcache.c: Fix includes.
14330 * python/py-block.c: Fix includes.
14331 * printcmd.c: Fix includes.
14332 * or1k-tdep.c: Fix includes.
14333 * mi/mi-main.c: Fix includes.
14334 * m32r-tdep.c: Fix includes.
14335 * csky-tdep.c: Fix includes.
14336 * compile/compile-cplus-types.c: Fix includes.
14337 * cli/cli-interp.c: Fix includes.
14339 2019-01-21 Alan Hayward <alan.hayward@arm.com>
14341 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14344 2019-01-16 Tom Tromey <tom@tromey.com>
14346 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14348 (struct objfile) <msymbols_range>: Move from top level.
14349 <msymbols>: New method.
14350 (class objfile_msymbols): Remove.
14351 * symtab.c (default_collect_symbol_completion_matches_break_on):
14353 * symmisc.c (dump_msymbols): Update.
14354 * stabsread.c (scan_file_globals): Update.
14355 * objc-lang.c (info_selectors_command, info_classes_command)
14356 (find_methods): Update.
14357 * minsyms.c (find_solib_trampoline_target): Update.
14358 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14359 * coffread.c (coff_symfile_read): Update.
14360 * ada-lang.c (ada_lookup_simple_minsym)
14361 (ada_collect_symbol_completion_matches): Update.
14363 2019-01-16 Tom Tromey <tom@tromey.com>
14365 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14366 type. Remove no-argument constructor.
14367 <iterator::operator++>: Simplify.
14369 <end>: Use minimal_symbol_count.
14371 2019-01-16 Tom Tromey <tom@tromey.com>
14373 * objfiles.h (struct objfile) <psymtabs>: New method.
14374 (class objfile_psymtabs): Remove.
14375 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14377 <range>: New method.
14378 (require_partial_symbols): Change return type.
14379 * psymtab.c (require_partial_symbols)
14380 (psym_expand_symtabs_matching): Update.
14381 * mdebugread.c (parse_partial_symbols): Update.
14382 * dbxread.c (dbx_end_psymtab): Update.
14384 2019-01-15 Tom Tromey <tom@tromey.com>
14386 * symtab.c (lookup_objfile_from_block)
14387 (lookup_symbol_in_objfile_symtabs)
14388 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14389 (find_line_symtab, info_sources_command)
14390 (default_collect_symbol_completion_matches_break_on)
14391 (make_source_files_completion_list): Update.
14392 * symmisc.c (print_objfile_statistics, dump_objfile)
14393 (maintenance_print_symbols, maintenance_info_symtabs)
14394 (maintenance_check_symtabs, maintenance_info_line_tables):
14396 * source.c (select_source_symtab)
14397 (forget_cached_source_info_for_objfile): Update.
14398 * objfiles.h (class objfile_compunits): Remove.
14399 (struct objfile) <compunits_range>: New typedef.
14400 (compunits): New method.
14401 * objfiles.c (objfile_relocate1): Update.
14402 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14403 * maint.c (count_symtabs_and_blocks): Update.
14404 * linespec.c (iterate_over_all_matching_symtabs): Update.
14405 * cp-support.c (add_symbol_overload_list_qualified): Update.
14406 * coffread.c (coff_symtab_read): Update.
14407 * ada-lang.c (add_nonlocal_symbols)
14408 (ada_collect_symbol_completion_matches)
14409 (ada_add_global_exceptions): Update.
14411 2019-01-15 Tom Tromey <tom@tromey.com>
14413 * progspace.h (program_space) <objfiles_safe_range>: New
14415 <objfiles_safe>: New method.
14416 * objfiles.h (class all_objfiles_safe): Remove.
14417 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14418 * jit.c (jit_inferior_exit_hook): Update.
14420 2019-01-17 Tom Tromey <tom@tromey.com>
14422 * progspace.h (program_space) <objfiles_range>: New typedef.
14423 <objfiles>: New method.
14424 <objfiles_head>: Rename from objfiles.
14425 (object_files): Update.
14426 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14427 * guile/scm-pretty-print.c
14428 (ppscm_find_pretty_printer_from_objfiles): Update.
14429 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14430 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14432 * python/py-progspace.c (pspy_get_objfiles): Update.
14433 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14435 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14436 (objfpy_lookup_objfile_by_build_id): Update.
14437 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14438 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14440 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14441 (expand_symtab_containing_pc, lookup_objfile_from_block)
14442 (lookup_static_symbol, basic_lookup_transparent_type)
14443 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14444 (find_line_symtab, info_sources_command)
14445 (default_collect_symbol_completion_matches_break_on)
14446 (make_source_files_completion_list, find_main_name): Update.
14447 * symmisc.c (print_symbol_bcache_statistics)
14448 (print_objfile_statistics, maintenance_print_symbols)
14449 (maintenance_print_msymbols, maintenance_print_objfiles)
14450 (maintenance_info_symtabs, maintenance_check_symtabs)
14451 (maintenance_expand_symtabs, maintenance_info_line_tables):
14453 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14454 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14455 (map_overlay_command, unmap_overlay_command)
14456 (simple_overlay_update, expand_symtabs_matching)
14457 (map_symbol_filenames): Update.
14458 * symfile-debug.c (set_debug_symfile): Update.
14459 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14461 * source.c (select_source_symtab, forget_cached_source_info):
14463 * solib.c (solib_read_symbols): Update.
14464 * solib-spu.c (append_ocl_sos): Update.
14465 * psymtab.c (maintenance_print_psymbols)
14466 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14467 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14468 * printcmd.c (info_symbol_command): Update.
14469 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14471 * objfiles.h (class all_objfiles): Remove.
14472 * objfiles.c (have_partial_symbols, have_full_symbols)
14473 (have_minimal_symbols, qsort_cmp, update_section_map)
14474 (shared_objfile_contains_address_p)
14475 (default_iterate_over_objfiles_in_search_order): Update.
14476 * objc-lang.c (info_selectors_command, info_classes_command)
14477 (find_methods): Update.
14478 * minsyms.c (find_solib_trampoline_target): Update.
14479 * maint.c (maintenance_info_sections)
14480 (maintenance_translate_address, count_symtabs_and_blocks):
14482 * main.c (captured_main_1): Update.
14483 * linux-thread-db.c (try_thread_db_load_from_pdir)
14484 (has_libpthread): Update.
14485 * linespec.c (iterate_over_all_matching_symtabs)
14486 (search_minsyms_for_name): Update.
14487 * jit.c (jit_find_objf_with_entry_addr): Update.
14488 * hppa-tdep.c (find_unwind_entry)
14489 (hppa_lookup_stub_minimal_symbol): Update.
14490 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14492 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14493 (elf_gnu_ifunc_resolve_by_got): Update.
14494 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14495 * dwarf-index-write.c (save_gdb_index_command): Update.
14496 * cp-support.c (add_symbol_overload_list_qualified): Update.
14497 * breakpoint.c (create_overlay_event_breakpoint)
14498 (create_longjmp_master_breakpoint)
14499 (create_std_terminate_master_breakpoint)
14500 (create_exception_master_breakpoint): Update.
14501 * blockframe.c (find_pc_partial_function): Update.
14502 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14503 (ada_collect_symbol_completion_matches)
14504 (ada_add_global_exceptions): Update.
14506 2019-01-17 Tom Tromey <tom@tromey.com>
14508 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14510 (solib_target_parse_libraries): Change return type.
14511 (library_list_start_segment, library_list_start_section)
14512 (library_list_end_library, library_list_start_library); Update.
14513 (solib_target_free_library_list): Remove.
14514 (solib_target_parse_libraries): Remove cleanup. Change return
14516 (solib_target_current_sos): Update.
14518 2019-01-17 Tom Tromey <tromey@bapiya>
14520 * valprint.c: Replace "the the" with "the".
14521 * symtab.c: Replace "the the" with "the".
14522 * solib.c: Replace "the the" with "the".
14523 * solib-dsbt.c: Replace "the the" with "the".
14524 * linespec.c: Replace "the the" with "the".
14525 * dwarf2loc.h: Replace "the the" with "the".
14526 * amd64-windows-tdep.c: Replace "the the" with "the".
14527 * aarch64-tdep.c: Replace "the the" with "the".
14529 2019-01-16 Keith Seitz <keiths@redhat.com>
14532 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14533 <builder>: Rename to ..
14534 <m_builder>: ... this and make private.
14535 (dwarf2_cu::get_builder): New method. Change all users of
14536 `builder' to use this method.
14537 (dwarf2_start_symtab): Move to ...
14538 (dwarf2_cu::start_symtab): ... here. Update all callers
14539 (setup_type_unit_groups): Move to ...
14540 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14542 (dwarf2_cu::reset_builder): New method.
14543 (process_full_compunit, process_full_type_unit): Use
14544 dwarf2_cu::reset_builder.
14545 (follow_die_offset): Record the ancestor CU if it is different
14546 from the followed DIE's CU.
14547 (follow_die_sig_1): Likewise.
14549 2019-01-15 Tom Tromey <tom@tromey.com>
14551 * remote.c (class remote_state) <buf>: Now a char_vector.
14552 <buf_size>: Remove.
14553 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14555 (remote_target::getpkt_or_notif_sane_1)
14556 (remote_target::getpkt_sane)
14557 (remote_target::getpkt_or_notif_sane): Likewise.
14558 (class remote_target) <putpkt>: New overload.
14559 (remote_target::read_frame): Change type of "buf_p". Remove
14560 sizeof_p parameter.
14561 (packet_ok): New overload.
14562 (packet_check_result): New overload.
14565 2019-01-14 Tom Tromey <tom@tromey.com>
14567 * remote-notif.c (handle_notification, remote_notif_ack)
14568 (remote_notif_parse): Make "buf" const.
14569 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14571 (remote_notif_parse, remote_notif_ack, handle_notification):
14573 * remote.c (remote_notif_stop_parse): Make "buf" const.
14574 (remote_target::remote_parse_stop_reply): Make "buf" const.
14575 (remote_notif_stop_ack): Make "buf" const.
14577 2019-01-14 Tom Tromey <tom@tromey.com>
14579 * remote.c (remote_console_output): Make parameter const.
14581 2019-01-14 Tom Tromey <tom@tromey.com>
14583 * target-debug.h (target_debug_print_signals): Constify.
14584 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14585 * procfs.c (procfs_target::pass_signals): Update.
14586 * linux-nat.c (linux_nat_target::pass_signals): Update.
14587 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14588 * target-delegates.c: Rebuild.
14589 * remote.c (remote_target::program_signals): Update.
14590 (remote_target::pass_signals): Update.
14591 * target.c (target_pass_signals): Constify argument.
14592 (target_program_signals): Likewise.
14593 * target.h (struct target_ops) <pass_signals, program_signals>:
14595 (target_pass_signals, target_program_signals): Constify argument.
14597 2019-01-14 Tom Tromey <tom@tromey.com>
14600 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14602 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14604 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14606 * rs6000-tdep.c: Include reggroups.h.
14607 (IS_V_ALIAS_PSEUDOREG): Define.
14608 (rs6000_register_name): Return names for the "vX" aliases.
14609 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14610 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14611 aliases. Call default_register_reggroup_p for all other
14613 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14615 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14616 Handle "vX" aliases.
14617 (v_alias_pseudo_register_collect): New function.
14618 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14619 (rs6000_gdbarch_init): Initialize "vX" aliases as
14620 pseudo-registers. Restore registration of
14621 rs6000_pseudo_register_reggroup_p with
14622 set_tdesc_pseudo_register_reggroup_p.
14624 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14626 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14627 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14628 set_gdbarch_num_pseudo_regs.
14630 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14632 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14633 Remove arg prefixname, add do_set and do_show.
14634 Add member functions set_list and show_list.
14635 * cli/cli-style.c (class cli_style_option): Update accordingly.
14636 (style_set_list): Move to file scope.
14637 (style_show_list): Likewise.
14638 (set_style): Call help_list.
14639 (show_style): Call cmd_show_list.
14640 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14641 Update to use the new macro.
14643 2019-10-12 Joel Brobecker <brobecker@adacore.com>
14645 * ada-lang.c (_initialize_ada_language): Expand the help text
14646 for the "catch exception" command.
14648 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14650 * symtab.c (matching_obj_sections): Initialize obj,
14651 declare it closer to its usage.
14653 2019-01-10 Tom Tromey <tom@tromey.com>
14655 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14656 (basic_inf_threads_range): Remove.
14657 (inf_threads_range, inf_non_exited_threads_range)
14658 (safe_inf_threads_range): Use next_adapter.
14660 2019-01-10 Keith Seitz <keiths@redhat.com>
14664 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14665 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14667 2019-01-10 Keith Seitz <keiths@redhat.com>
14671 * dictionary.c (pending_to_vector): Remove.
14672 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14673 Remove _1 suffix, replacing functions of the same name. Update
14675 (dict_create_hashed, dict_create_hashed_expandable)
14676 (dict_create_linear, dict_create_linear_expandable, dict_free)
14677 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14678 Make functions static.
14680 2019-01-10 Keith Seitz <keiths@redhat.com>
14684 * dictionary.h (struct dictionary): Replace declaration with
14686 (dict_create_hashed, dict_create_hashed_expandable)
14687 (dict_create_linear, dict_create_linear_expandable)
14688 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14689 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14690 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14691 taking multidictionary argument.
14692 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14693 * block.h (struct block) <dict>: Change to multidictionary
14694 and rename `multidict'.
14695 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14696 symmisc.c: Update all dictionary references to multidictionary.
14698 2019-01-10 Keith Seitz <keiths@redhat.com>
14702 * dictionary.c: Include unordered_map.
14703 (pending_to_vector): New function.
14704 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14705 Rewrite the non-"_1" functions to take vector instead
14707 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14708 "new" _1 versions of the same name.
14709 (multidictionary): Define.
14710 (std::hash<enum language): New definition.
14711 (collate_pending_symbols_by_language, mdict_create_hashed)
14712 (mdict_create_hashed_expandable, mdict_create_linear)
14713 (mdict_create_linear_expandable, mdict_free)
14714 (find_language_dictionary, create_new_language_dictionary)
14715 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14716 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14717 (mdict_size, mdict_empty): New functions.
14718 * dictionary.h (mdict_iterator): Define.
14720 2019-01-10 Pedro Alves <palves@redhat.com>
14722 * breakpoint.c (read_uploaded_action)
14723 (create_tracepoint_from_upload): Adjust to use
14724 gdb::unique_xmalloc_ptr.
14725 * ctf.c (ctf_write_uploaded_tp):
14726 (SET_ARRAY_FIELD): Use emplace_back.
14727 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14728 * tracefile-tfile.c (tfile_write_uploaded_tp):
14729 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14730 gdb::unique_xmalloc_ptr.
14731 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14732 at_string, cond_string, cmd_strings>: Replace char pointers
14733 with gdb::unique_xmalloc_ptr.
14735 2019-01-10 Pedro Alves <palves@redhat.com>
14737 * solib-target.c (library_list_start_library): Don't xstrdup name.
14739 2019-01-10 Pedro Alves <palves@redhat.com>
14741 * mdebugread.c (parse_partial_symbols): Use
14742 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14744 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14746 * linux-fork.c (scoped_switch_fork_info)
14747 <~scoped_switch_fork_info>: Fix incorrect variable name.
14749 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14751 * linux-fork.c (scoped_switch_fork_info)
14752 <scoped_switch_fork_info>: Make explicit.
14753 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14755 2019-01-10 Tom Tromey <tom@tromey.com>
14757 * objfiles.h (objfile::reset_psymtabs): Update.
14758 * objfiles.c (objfile::objfile): Update.
14759 * psymtab.h (psymtab_storage::obstack): Update.
14760 (psymtab_storage::m_obstack): Use gdb::optional.
14761 (class psymtab_storage): Update comment. Remove objfile
14763 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14765 2019-01-10 Tom Tromey <tom@tromey.com>
14767 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14768 <free_psymtabs>: Now private.
14769 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14770 (allocate_psymtab): Use new method.
14772 2019-01-10 Tom Tromey <tom@tromey.com>
14774 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14775 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14776 * mdebugread.c (parse_partial_symbols): Use
14777 allocate_dependencies.
14778 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14779 allocate_dependencies.
14780 (process_psymtab_comp_unit_reader)
14781 (build_type_psymtab_dependencies): Likewise.
14782 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14784 2019-01-10 Tom Tromey <tom@tromey.com>
14786 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14787 PSYMBOL_SET_LANGUAGE.
14788 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14790 2019-01-10 Tom Tromey <tom@tromey.com>
14792 * psymtab.h (psymtab_storage::obstack): New method.
14793 <m_obstack>: Rename from obstack; now private.
14794 * psymtab.c (psymtab_storage): Update.
14795 * dwarf2read.c (create_addrmap_from_index)
14796 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14799 2019-01-10 Tom Tromey <tom@tromey.com>
14801 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14802 * objfiles.h (objfile::reset_psymtabs): New method.
14804 2019-01-10 Tom Tromey <tom@tromey.com>
14806 * symmisc.c (print_symbol_bcache_statistics): Update.
14807 (print_objfile_statistics): Update.
14808 * symfile.c (reread_symbols): Update.
14809 * psymtab.h (class psymtab_storage): New.
14810 * psymtab.c (psymtab_storage): New constructor.
14811 (~psymtab_storage): New destructor.
14812 (require_partial_symbols): Update.
14813 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14814 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14815 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14816 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14817 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14818 (start_psymtab_common, end_psymtab_common)
14819 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14820 (allocate_psymtab): Update.
14821 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14823 (dump_psymtab_addrmap, maintenance_print_psymbols)
14824 (maintenance_check_psymtabs): Update.
14825 (class objfile_psymtabs): Move to objfiles.h.
14826 * psympriv.h (discard_psymtab): Now inline.
14827 (psymtab_discarder::psymtab_discarder): Update.
14828 (psymtab_discarder::~psymtab_discarder): Update.
14829 (ALL_OBJFILE_PSYMTABS): Rewrite.
14830 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14831 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14833 <partial_symtabs>: New field.
14834 (class objfile_psymtabs): Move from psymtab.h. Update.
14835 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14837 (objfile::~objfile): Don't destroy psymbol_cache.
14838 * mdebugread.c (parse_partial_symbols): Update.
14839 * dwarf2read.c (create_addrmap_from_index)
14840 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14841 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
14842 (add_partial_subprogram, dwarf2_ranges_read): Update.
14843 * dwarf-index-write.c (write_address_map)
14844 (write_one_signatured_type, recursively_write_psymbols)
14845 (class debug_names, class debug_names, write_psymtabs_to_index):
14848 2019-01-10 Tom Tromey <tom@tromey.com>
14850 * symtab.h (SYMBOL_SET_NAMES): Update.
14851 (symbol_set_names): Update.
14852 (MSYMBOL_SET_NAMES): Update.
14853 * symtab.c (symbol_set_names): Change argument to be an
14854 objfile_per_bfd_storage.
14855 * psymtab.c (add_psymbol_to_bcache): Update.
14856 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
14858 2019-01-10 Tom Tromey <tom@tromey.com>
14860 * symtab.c (create_demangled_names_hash): Change argument to be an
14861 objfile_per_bfd_storage.
14862 (symbol_set_names): Update.
14864 2019-01-10 Tom Tromey <tom@tromey.com>
14866 * xcoffread.c (xcoff_initial_scan): Unconditionally call
14868 * psymtab.c (init_psymbol_list): Do nothing if already called.
14869 * psympriv.h (init_psymbol_list): Add comment.
14870 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
14872 * dbxread.c (dbx_symfile_read): Unconditionally call
14875 2019-01-10 Tom Tromey <tom@tromey.com>
14877 * xcoffread.c (scan_xcoff_symtab): Update.
14878 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
14880 * mdebugread.c (parse_partial_symbols)
14881 (handle_psymbol_enumerators): Update.
14882 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
14883 * dbxread.c (read_dbx_symtab): Update.
14884 * psympriv.h (psymbol_placement): New enum.
14885 (add_psymbol_to_list): Update.
14887 2019-01-10 Tom Tromey <tom@tromey.com>
14889 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
14890 static_psymbols parameters.
14891 (scan_xcoff_symtab): Update.
14892 * psymtab.c (start_psymtab_common): Remove global_psymbols and
14893 static_psymbols parameters.
14894 * psympriv.h (start_psymtab_common): Update.
14895 * mdebugread.c (parse_partial_symbols): Update.
14896 * dwarf2read.c (create_partial_symtab): Update.
14897 * dbxread.c (read_dbx_symtab): Update.
14898 (start_psymtab): Remove global_psymbols and static_psymbols
14901 2019-01-10 Tom Tromey <tom@tromey.com>
14903 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
14904 * psymtab.c (allocate_psymtab): Add comment.
14905 * psympriv.h (allocate_psymtab): Add comment.
14906 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
14908 * dbxread.c (dbx_end_psymtab): Remove some initializations.
14910 2019-01-10 Tom Tromey <tom@tromey.com>
14912 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14914 * mipsread.c: Include mdebugread.h.
14915 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
14917 * elfread.c: Include mdebugread.h.
14919 2019-01-09 Tom Tromey <tom@tromey.com>
14921 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
14922 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
14923 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
14924 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
14925 (psym_lookup_symbol, psym_find_last_source_symtab)
14926 (psym_forget_cached_source_info, psym_print_stats)
14927 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
14928 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
14929 (psym_map_matching_symbols, psym_expand_symtabs_matching)
14930 (psym_find_compunit_symtab_by_address)
14931 (maintenance_print_psymbols, maintenance_info_psymtabs)
14932 (maintenance_check_psymtabs): Use ranged for.
14933 * psymtab.h (class objfile_psymtabs): New.
14934 (require_partial_symbols): Return objfile_psymtabs.
14935 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
14937 2019-01-09 Tom Tromey <tom@tromey.com>
14939 * symfile.c (overlay_invalidate_all, find_pc_overlay)
14940 (find_pc_mapped_section, list_overlays_command)
14941 (map_overlay_command, unmap_overlay_command)
14942 (simple_overlay_update): Use all_objfiles.
14943 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
14944 * printcmd.c (info_symbol_command): Use all_objfiles.
14945 * objfiles.h (ALL_OBJSECTIONS): Remove.
14946 * maint.c (maintenance_translate_address): Use all_objfiles.
14947 * gcore.c (gcore_create_callback): Use all_objfiles.
14948 (objfile_find_memory_regions): Likewise.
14950 2019-01-09 Tom Tromey <tom@tromey.com>
14952 * symtab.c (find_line_symtab, info_sources_command)
14953 (make_source_files_completion_list): Use objfile_compunits.
14954 * source.c (select_source_symtab): Use objfile_compunits.
14955 * objfiles.h (struct objfile): Update comment.
14956 (ALL_OBJFILES): Remove.
14957 (ALL_FILETABS): Remove.
14958 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
14961 2019-01-09 Tom Tromey <tom@tromey.com>
14963 * symmisc.c (print_objfile_statistics, dump_objfile)
14964 (maintenance_print_symbols): Use compunit_filetabs.
14965 * source.c (forget_cached_source_info_for_objfile): Use
14967 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
14968 (ALL_FILETABS): Use compunit_filetabs.
14969 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
14970 * coffread.c (coff_symtab_read): Use compunit_filetabs.
14972 2019-01-09 Tom Tromey <tom@tromey.com>
14974 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
14975 (compunit_filetabs): New.
14976 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
14978 (info_sources_command, make_source_files_completion_list): Remove
14980 * symmisc.c (print_objfile_statistics, dump_objfile)
14981 (maintenance_print_symbols): Remove declaration.
14982 (maintenance_info_symtabs): Use compunit_filetabs.
14983 (maintenance_info_line_tables): Likewise.
14984 * source.c (select_source_symtab): Change local variable name.
14985 (forget_cached_source_info_for_objfile): Remove declaration.
14986 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
14987 * objfiles.c (objfile_relocate1): Remove declaration.
14988 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
14990 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
14991 * coffread.c (coff_symtab_read): Remove declaration.
14992 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
14995 2019-01-09 Tom Tromey <tom@tromey.com>
14997 * symtab.c (lookup_objfile_from_block)
14998 (find_pc_sect_compunit_symtab, search_symbols)
14999 (default_collect_symbol_completion_matches_break_on): Use
15001 * objfiles.h (ALL_COMPUNITS): Remove.
15002 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15003 * cp-support.c (add_symbol_overload_list_qualified): Use
15005 * ada-lang.c (ada_collect_symbol_completion_matches)
15006 (ada_add_global_exceptions): Use objfile_compunits.
15008 2019-01-09 Tom Tromey <tom@tromey.com>
15010 * source.c (select_source_symtab)
15011 (forget_cached_source_info_for_objfile): Remove declaration.
15012 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15014 * maint.c (count_symtabs_and_blocks): Remove declaration.
15015 * cp-support.c (add_symbol_overload_list_qualified): Remove
15017 * coffread.c (coff_symtab_read): Remove declaration.
15018 * symtab.c (lookup_symbol_in_objfile_symtabs)
15019 (basic_lookup_transparent_type_1): Use objfile_compunits.
15020 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15021 (info_sources_command, search_symbols)
15022 (default_collect_symbol_completion_matches_break_on)
15023 (make_source_files_completion_list): Remove declaration.
15024 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15025 (ada_collect_symbol_completion_matches)
15026 (ada_add_global_exceptions): Remove declaration.
15027 * linespec.c (iterate_over_all_matching_symtabs): Use
15029 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15030 (class objfile_compunits): New.
15031 (ALL_COMPUNITS): Use objfile_compunits.
15032 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15033 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15035 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15037 2019-01-09 Tom Tromey <tom@tromey.com>
15039 * symtab.c (search_symbols)
15040 (default_collect_symbol_completion_matches_break_on): Use
15042 * ada-lang.c (ada_lookup_simple_minsym)
15043 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15044 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15045 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15047 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15048 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15049 * objc-lang.c (find_methods): Use objfile_msymbols.
15050 (info_selectors_command, info_classes_command): Likewise.
15051 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15052 * objfiles.h (class objfile_msymbols): New.
15053 (ALL_OBJFILE_MSYMBOLS): Remove.
15054 (ALL_MSYMBOLS): Remove.
15056 2019-01-09 Tom Tromey <tom@tromey.com>
15058 * common/next-iterator.h (next_adapter): Add Iterator template
15060 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15061 (class all_objfiles_safe): New.
15062 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15063 * objfiles.c (put_objfile_before): Update comment.
15064 (add_separate_debug_objfile): Likewise.
15065 (free_all_objfiles): Use all_objfiles_safe.
15066 (objfile_purge_solibs): Likewise.
15068 2019-01-09 Tom Tromey <tom@tromey.com>
15070 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15071 (expand_symtab_containing_pc, lookup_static_symbol)
15072 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15073 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15075 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15076 * breakpoint.c (create_overlay_event_breakpoint)
15077 (create_longjmp_master_breakpoint)
15078 (create_std_terminate_master_breakpoint)
15079 (create_exception_master_breakpoint): Use all_objfiles.
15080 * linux-thread-db.c (try_thread_db_load_from_pdir)
15081 (has_libpthread): Use all_objfiles.
15082 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15083 * linespec.c (iterate_over_all_matching_symtabs)
15084 (search_minsyms_for_name): Use all_objfiles.
15085 * maint.c (maintenance_info_sections): Use all_objfiles.
15086 * main.c (captured_main_1): Use all_objfiles.
15087 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15088 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15089 * guile/scm-pretty-print.c
15090 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15091 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15092 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15093 (maintenance_print_msymbols): Use all_objfiles.
15094 * source.c (select_source_symtab): Use all_objfiles.
15095 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15096 * symfile.c (remove_symbol_file_command)
15097 (expand_symtabs_matching, map_symbol_filenames): Use
15099 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15101 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15102 * objc-lang.c (find_methods): Use all_objfiles.
15103 * objfiles.c (have_partial_symbols, have_full_symbols)
15104 (have_minimal_symbols, qsort_cmp)
15105 (default_iterate_over_objfiles_in_search_order): Use
15107 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15108 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15109 (maintenance_check_psymtabs): Use all_objfiles.
15110 (ALL_PSYMTABS): Remove.
15111 * compile/compile-object-run.c (do_module_cleanup): Use
15113 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15114 * cp-support.c (add_symbol_overload_list_qualified): Use
15116 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15118 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15119 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15121 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15122 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15123 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15125 * solib.c (solib_read_symbols): Use all_objfiles
15127 2019-01-09 Tom Tromey <tom@tromey.com>
15129 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15130 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15132 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15133 * symmisc.c (print_symbol_bcache_statistics)
15134 (print_objfile_statistics, maintenance_print_objfiles)
15135 (maintenance_info_symtabs, maintenance_check_symtabs)
15136 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15138 * source.c (forget_cached_source_info): Use all_objfiles.
15139 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15140 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15141 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15142 * objfiles.c (update_section_map): Use all_objfiles.
15143 (shared_objfile_contains_address_p): Likewise.
15144 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15145 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15147 2019-01-09 Tom Tromey <tom@tromey.com>
15149 * common/next-iterator.h: New file.
15150 * objfiles.h (class all_objfiles): New.
15151 (struct objfile_iterator): New.
15153 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15155 * NEWS: Move the description of the changed "frame", "select-frame",
15156 and "info frame" commands to the Changed commands section.
15158 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15160 * gdbtypes.c (check_stub_method_group): Remove handling of old
15162 * linespec.c (find_methods): Likewise.
15163 * stabsread.c (read_member_functions): Likewise.
15164 * valops.c (search_struct_method): Likewise.
15165 (value_struct_elt_for_reference): Likewise.
15166 * NEWS: Mention this change.
15168 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15170 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15171 print_source_lines.
15172 * source.c (print_source_lines_base): Update line number check.
15173 (print_source_lines): New function.
15174 (source_lines_range::source_lines_range): New function.
15175 * source.h (class source_lines_range): New class.
15176 (print_source_lines): New declaration.
15178 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15180 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15182 2019-01-08 Tom Tromey <tom@tromey.com>
15183 Simon Marchi <simon.marchi@ericsson.com>
15186 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15187 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15188 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15189 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15190 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15191 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15193 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15195 * source.c (select_source_symtab): Move header comment to
15196 declaration in source.h.
15197 (forget_cached_source_info_for_objfile): Likewise.
15198 (forget_cached_source_info): Likewise.
15199 (identify_source_line): Likewise.
15200 * source.h (identify_source_line): Move declaration from symtab.h
15201 and add comment from source.c
15202 (print_source_lines): Likewise.
15203 (forget_cached_source_info_for_objfile): Likewise.
15204 (forget_cached_source_info): Likewise.
15205 (select_source_symtab): Likewise.
15206 (enum print_source_lines_flag): Move definition from symtab.h.
15207 * symtab.h (identify_source_line): Move declaration to source.h.
15208 (print_source_lines): Likewise.
15209 (forget_cached_source_info_for_objfile): Likewise.
15210 (forget_cached_source_info): Likewise.
15211 (select_source_symtab): Likewise.
15212 (enum print_source_lines_flag): Move definition to source.h.
15213 * tui/tui-hooks.c: Add 'source.h' include.
15215 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15217 * source.c (print_source_lines_base): Handle requests to print
15218 reverse line number sequences, and guard against empty lines
15221 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15223 * source.c (print_source_lines_base): Fix skip of '\r' if next
15226 2019-01-06 Tom Tromey <tom@tromey.com>
15228 * c-exp.y (struct c_parse_state) <macro_original_text,
15229 expansion_obstack>: New member.
15230 (macro_original_text, expansion_obstack): Remove globals.
15231 (scan_macro_expansion, scanning_macro_expansion)
15232 (finished_macro_expansion): Update.
15233 (scan_macro_cleanup): Remove.
15234 (yylex, c_parse): Update.
15236 2019-01-06 Tom Tromey <tom@tromey.com>
15238 * c-exp.y (struct c_parse_state) <strings>: New member.
15239 (operator_stoken): Update.
15241 2019-01-06 Tom Tromey <tom@tromey.com>
15243 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15244 (union type_stack_elt) <typelist_val>: Now a pointer to
15246 (type_stack_cleanup): Don't declare.
15247 (push_typelist): Update.
15248 * parse.c (pop_typelist): Return a std::vector.
15249 (push_typelist): Take a std::vector.
15250 (follow_types): Update. Do not free args.
15251 (type_stack_cleanup): Remove.
15252 * c-exp.y (struct c_parse_state): New.
15253 (cpstate): New global.
15254 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15255 (nonempty_typelist): Update.
15256 (func_mod): Create a new vector.
15257 (c_parse): Create a c_parse_state.
15258 (check_parameter_typelist): Do not delete params.
15259 (function_method): Update. Do not delete type_list.
15261 2019-01-06 Tom Tromey <tom@tromey.com>
15264 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15266 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15267 (print_return_value): Likewise.
15269 2019-01-05 Tom Tromey <tom@tromey.com>
15271 * contrib/cleanup_check.py: Remove.
15272 * contrib/gcc-with-excheck: Remove.
15273 * contrib/exsummary.py: Remove.
15274 * contrib/excheck.py: Remove.
15276 2019-01-05 Joel Brobecker <brobecker@adacore.com>
15278 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15279 NULL. Initialize tpprev to NULL instead of assigning it
15280 to NULL on the next statement.
15281 * windows-nat.c (windows_delete_thread): Remove check for
15282 main_thread_id before printing thread exit notifications.
15283 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15284 Remove thread ID check against main_thread_id.
15285 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15286 windows_delete_thread.
15287 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15289 2019-01-04 Tom Tromey <tom@tromey.com>
15291 * compile/compile.c (_initialize_compile): Use upper case for
15292 metasyntactic variables.
15293 * symmisc.c (_initialize_symmisc): Use upper case for
15294 metasyntactic variables.
15295 * psymtab.c (_initialize_psymtab): Use upper case for
15296 metasyntactic variables.
15297 * demangle.c (demangle_command): Use upper case for metasyntactic
15299 (_initialize_demangler): Likewise.
15300 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15303 2019-01-03 Tom Tromey <tom@tromey.com>
15305 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15307 2019-01-03 Tom Tromey <tom@tromey.com>
15309 * python/py-symtab.c (salpy_str): Update.
15310 (struct salpy_sal_object) <symtab>: Now a PyObject.
15311 (salpy_dealloc): Update.
15312 (del_objfile_sal): Use gdbpy_ref.
15314 2019-01-03 Tom Tromey <tom@tromey.com>
15316 * python/py-type.c (convert_field): Use new_reference. Return
15318 (make_fielditem): Return gdbpy_ref.
15319 (typy_fields): Update.
15320 (typy_getitem): Update.
15321 (field_name): Return gdbpy_ref. Use new_reference.
15322 (typy_iterator_iternext): Update.
15324 2019-01-03 Tom Tromey <tom@tromey.com>
15326 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15328 2019-01-03 Tom Tromey <tom@tromey.com>
15330 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15331 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15332 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15333 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15334 (pspy_set_type_printers): Likewise.
15335 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15336 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15337 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15338 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15339 (objfpy_set_type_printers): Likewise.
15341 2019-01-03 Tom Tromey <tom@tromey.com>
15343 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15344 (gdbpy_print_stack): Use gdbpy_err_fetch.
15345 * python/python-internal.h (class gdbpy_err_fetch): New class.
15346 (class gdbpy_enter) <m_error_type, m_error_value,
15347 m_error_traceback>: Remove.
15348 <m_error>: New member.
15349 (gdbpy_exception_to_string): Don't declare.
15350 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15351 * python/py-value.c (convert_value_from_python): Use
15353 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15354 gdbpy_exception_to_string.
15355 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15356 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15359 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15361 * linux-nat.c (delete_lwp_cleanup): Delete.
15362 (struct lwp_deleter): New struct.
15363 (lwp_info_up): New typedef.
15364 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15367 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15369 * linux-fork.c (class scoped_switch_fork_info): New class.
15370 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15372 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15374 * valops.c (find_overload_match): Remove use of null_cleanup, and
15375 calls to do_cleanups.
15377 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15379 * compile/compile-cplus-types.c
15380 (compile_cplus_instance::decl_name): Handle changes to
15382 * cp-support.c (cp_func_name): Update header comment, update
15384 * cp-support.h (cp_func_name): Update return type in declaration.
15385 * valops.c (find_overload_match): Move temp_func local to top
15386 level of function and change its type. Use temp_func to hold and
15387 delete temporary string obtained from cp_func_name.
15389 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15391 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15392 gdb::char_vector, remove cleanup, and update uses of `msg`.
15394 2019-01-03 Jim Wilson <jimw@sifive.com>
15396 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15398 2019-01-02 Tom Tromey <tom@tromey.com>
15400 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15401 (tdesc_parse_xml): Remove cleanups.
15402 * target-descriptions.h (make_cleanup_free_target_description):
15404 (target_desc_deleter): New struct.
15405 (target_desc_up): New typedef.
15406 * target-descriptions.c (target_desc_deleter::operator()): Rename
15407 from free_target_description.
15408 (make_cleanup_free_target_description): Remove.
15410 2019-01-02 Tom Tromey <tom@tromey.com>
15412 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15413 constructor, destructor.
15414 (linespec_parser): Remove typedef.
15415 (~linespec_parser): Rename from linespec_parser_delete.
15416 (linespec_lex_to_end, linespec_complete_label)
15417 (linespec_complete): Update.
15418 (decode_line_full): Remove cleanups.
15419 (decode_line_1): Update.
15421 2019-01-02 Tom Tromey <tom@tromey.com>
15423 * python/python-internal.h (inferior_to_inferior_object): Change
15425 * python/py-exitedevent.c (create_exited_event_object): Update.
15426 * python/py-inferior.c (inferior_to_inferior_object): Return
15428 (python_new_inferior, python_inferior_deleted)
15429 (thread_to_thread_object, delete_thread_object)
15430 (build_inferior_list, gdbpy_selected_inferior): Update.
15431 * python/py-infthread.c (create_thread_object): Update. Also fail
15432 if inferior_to_inferior_object fails.
15434 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15436 * inferior.h (class inferior) <displaced_step_state>: New field.
15437 * infrun.h (struct displaced_step_state): Move here from
15438 infrun.c. Initialize fields, add constructor.
15439 <inf>: Remove field.
15440 <reset>: New method.
15441 * infrun.c (struct displaced_step_inferior_state): Move to
15443 (displaced_step_inferior_states): Remove.
15444 (get_displaced_stepping_state): Adust.
15445 (displaced_step_in_progress_any_inferior): Adjust.
15446 (displaced_step_in_progress_thread): Adjust.
15447 (displaced_step_in_progress): Adjust.
15448 (add_displaced_stepping_state): Remove.
15449 (get_displaced_step_closure_by_addr): Adjust.
15450 (remove_displaced_stepping_state): Remove.
15451 (infrun_inferior_exit): Call displaced_step_state.reset.
15452 (use_displaced_stepping): Don't check for NULL.
15453 (displaced_step_prepare_throw): Call
15454 get_displaced_stepping_state.
15455 (displaced_step_fixup): Don't check for NULL.
15456 (prepare_for_detach): Don't check for NULL.
15458 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15460 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15461 in case of call that did not complete.
15463 2019-01-02 Andrey Utkin <autkin@undo.io>
15465 * symfile.c (find_separate_debug_file): Fix search of debug files for
15468 2019-01-02 Tom Tromey <tom@tromey.com>
15470 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15472 * python/py-frame.c (frapy_older): Remove cast.
15473 (frapy_newer): Likewise.
15474 * python/py-breakpoint.c (local_setattro): Remove cast.
15475 * python/py-arch.c (archpy_name): Remove local variable.
15476 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15478 2019-01-02 Joel Brobecker <brobecker@adacore.com>
15480 * unittests/basic_string_view/element_access/char/empty.cc:
15481 Fix year range in copyright header.
15483 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15485 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15487 <operator==>: Update with for removed field.
15489 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15490 <isa_features>: ...this.
15491 <abi_features>: New field.
15492 (riscv_isa_flen): Update comment.
15493 (riscv_abi_xlen): New declaration.
15494 (riscv_abi_flen): New declaration.
15495 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15497 (riscv_abi_xlen): New function.
15498 (riscv_isa_flen): Update to get answer from isa_features.
15499 (riscv_abi_flen): New function.
15500 (riscv_has_fp_abi): Update to get answer from abi_features.
15501 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15503 (riscv_call_info) <xlen, flen>: Update comment.
15504 (riscv_call_arg_struct): Remove invalid assertions
15505 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15507 (riscv_gdbarch_init): Gather isa features and abi features
15508 separately, ensure both match on the gdbarch when reusing an old
15509 gdbarch. Relax an error check to allow 32-bit abi float to run on
15510 a target with 64-bit float hardware.
15512 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15514 * source.c (search_command_helper): Stop reverse search
15515 when line 1 has been searched.
15517 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15519 * record-full.c (record_full_base_target::close): Rewrite
15520 record_full_core_buf_list free logic.
15522 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15524 * break-catch-syscall.c (print_one_catch_syscall): xfree
15527 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15529 * top.c (print_gdb_version): Update Copyright year in version
15532 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15534 Update copyright year range in all GDB files.
15536 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
15538 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
15540 For older changes see ChangeLog-2018.
15546 version-control: never