1 2019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
4 restore_active_ext_lang, as GIL is needed for (indirectly)
5 called PyOS_InterruptOccurred.
7 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
9 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
12 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
14 * remote-sim.c (simulator_command): Make static, remove
17 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
19 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
21 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
22 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
24 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
26 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
28 * unittests/basic_string_view/element_access/char/1.cc (test01):
31 * unittests/basic_string_view/element_access/char/empty.cc (main):
33 * unittests/basic_string_view/element_access/char/front_back.cc
36 * unittests/basic_string_view/inserters/char/2.cc (test05):
39 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
42 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
45 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
47 * unittests/basic_string_view/operations/compare/char/1.cc
50 * unittests/basic_string_view/operations/compare/char/13650.cc
52 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
55 * unittests/basic_string_view/operations/data/char/1.cc (test01):
58 * unittests/basic_string_view/operations/find/char/1.cc (test01):
61 * unittests/basic_string_view/operations/find/char/2.cc (test02):
64 * unittests/basic_string_view/operations/find/char/3.cc (test03):
67 * unittests/basic_string_view/operations/find/char/4.cc (main):
69 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
72 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
75 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
78 * unittests/basic_string_view/operations/substr/char/1.cc
81 * unittests/basic_string_view/operators/char/2.cc (main):
83 * unittests/optional/assignment/1.cc (test): Likewise.
84 * unittests/optional/assignment/2.cc (test): Likewise.
85 * unittests/optional/assignment/3.cc (test): Likewise.
86 * unittests/optional/assignment/4.cc (test): Likewise.
87 * unittests/optional/assignment/5.cc (test): Likewise.
88 * unittests/optional/assignment/6.cc (test): Likewise.
89 * unittests/optional/assignment/7.cc (test): Likewise.
90 * unittests/optional/cons/copy.cc (test): Likewise.
91 * unittests/optional/cons/default.cc (test): Likewise.
92 * unittests/optional/cons/move.cc (test): Likewise.
93 * unittests/optional/cons/value.cc (test): Likewise.
94 * unittests/optional/in_place.cc (test): Likewise.
95 * unittests/optional/observers/1.cc (test): Likewise.
96 * unittests/optional/observers/2.cc (test): Likewise.
98 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
100 * tui-win.h (tui_set_var_cmd): Remove.
101 * tui-win.c (tui_set_var_cmd): Make static.
103 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
105 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
106 rbreak_command_wrapper): Remove.
107 * symtab.c (rbreak_command_wrapper): Remove.
109 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
111 * inferior.h (info_terminal_command): Remove declaration.
112 * inflow.c (info_terminal_command): Make static.
114 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
116 * inferior.c (exit_inferior_silent): Remove.
118 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
120 * dictionary.c (dict_empty, mdict_empty): Remove.
121 * dictionary.c (mdict_empty): Remove.
123 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
125 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
126 (arc_insn_get_memory_offset): Likewise.
127 (arc_insn_dump): Likewise.
128 * cp-support.c (test_cp_symbol_name_matches): Likewise.
129 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
130 * dictionary.c (dict_iterator_next): Likewise.
131 (dict_iter_match_first): Likewise.
132 (dict_iter_match_next): Likewise.
133 * f-lang.c (evaluate_subexp_f): Likewise.
134 * hppa-tdep.c (hppa_read_pc): Likewise.
135 * i386-tdep.c (i386_floatformat_for_type): Likewise.
136 * parse.c (write_exp_elt_msym): Likewise.
137 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
138 * remote.c (remote_packet_size): Likewise.
139 (remote_notif_stop_parse): Likewise.
140 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
141 * s12z-tdep.c (s12z_disassemble_info): Likewise.
142 * source.c (prepare_path_for_appending): Likewise.
143 * sparc64-linux-tdep.c
144 (sparc64_linux_handle_segmentation_fault); Likewise.
145 * stack.c (frame_selection_by_function_completer): Likewise.
147 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
149 * completer.c (set_gdb_completion_word_break_characters):
152 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
154 * dwarf-index-write.c: Include dwarf-index-write.h.
155 * mi/mi-interp.c: Include mi/mi-interp.h.
157 2019-11-26 Simon Marchi <simon.marchi@efficios.com>
159 * aarch32-tdep.c: Include aarch32-tdep.h.
160 * aarch32-tdep.h: Forward-declare struct target_desc.
162 2019-11-26 Christian Biesinger <cbiesinger@google.com>
164 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
166 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
167 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
169 2019-11-25 Tom de Vries <tdevries@suse.de>
171 * contrib/words.sh: Add -c option.
173 2019-11-25 Christian Biesinger <cbiesinger@google.com>
175 * solib.c (solib_find_1): Change int to bool.
176 (exec_file_find): Change int to bool.
177 (solib_find): Change int to bool.
178 (solib_read_symbols): Change int to bool.
179 (solib_used): Change int to bool.
180 (solib_add): Change int to bool.
181 (info_sharedlibrary_command): Change int to bool.
182 (solib_contains_address_p): Change int to bool.
183 (solib_keep_data_in_core): Change int to bool.
184 (in_solib_dynsym_resolve_code): Change int to bool.
185 (reload_shared_libraries_1): Change int to bool.
186 (gdb_sysroot_changed): Change int to bool.
187 * solib.h (solib_read_symbols): Change int to bool.
188 (solib_contains_address_p): Change int to bool.
189 (solib_keep_data_in_core): Change int to bool.
190 (in_solib_dynsym_resolve_code): Change int to bool.
191 (libpthread_name_p): Change int to bool.
193 2019-11-25 Luis Machado <luis.machado@linaro.org>
195 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
196 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
197 (remote_packet_max_chars): New static global.
198 (show_remote_packet_max_chars): New function.
199 (remote_target::putpkt_binary): Adjust to use new
200 remote_packet_max_chars option.
201 (remote_target::getpkt_or_notif_sane_1): Likewise.
202 (_initialize_remote): Register new remote-packet-max-chars option.
204 2019-11-24 Simon Marchi <simon.marchi@efficios.com>
206 * m68k-linux-nat.c: Include gdbarch.h.
208 2019-11-24 Tom Tromey <tom@tromey.com>
210 * symfile.c (read_symbols): Update.
211 * psymtab.c (require_partial_symbols): Change type of "verbose" to
213 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
214 (psym_lookup_symbol, psym_find_last_source_symtab)
215 (psym_forget_cached_source_info, psym_print_stats)
216 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
217 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
218 (psym_map_matching_symbols, psym_expand_symtabs_matching)
219 (psym_find_compunit_symtab_by_address)
220 (maintenance_print_psymbols, maintenance_info_psymtabs)
221 (maintenance_check_psymtabs): Update.
222 * psymtab.h (require_partial_symbols): Change type of "verbose" to
225 2019-11-22 Tom Tromey <tom@tromey.com>
227 * observable.h: Update comments.
229 2019-11-22 Tom Tromey <tromey@adacore.com>
231 * ada-tasks.c (ada_task_is_alive): Make parameter const.
232 (print_ada_task_info): Don't try to fetch thread id if task is not
235 2019-11-22 Christian Biesinger <cbiesinger@google.com>
238 * ada-lang.c (sort_choices): Update.
239 (ada_print_symbol_signature): Update.
240 (resolve_subexp): Update.
241 (ada_parse_renaming): Update.
242 (ada_read_renaming_var_value): Update.
243 (lesseq_defined_than): Update.
244 (remove_extra_symbols): Update.
245 (remove_irrelevant_renamings): Update.
246 (ada_add_block_symbols): Update.
247 (ada_collect_symbol_completion_matches): Update.
248 (ada_is_renaming_symbol): Update.
249 (aggregate_assign_from_choices): Update.
250 (ada_evaluate_subexp): Update.
251 (ada_has_this_exception_support): Update.
252 (ada_is_non_standard_exception_sym): Update.
253 (ada_add_exceptions_from_frame): Update.
254 (ada_add_global_exceptions): Update.
255 (ada_print_subexp): Update.
256 * ax-gdb.c (gen_var_ref): Update.
257 (gen_maybe_namespace_elt): Update.
258 (gen_expr_for_cast): Update.
261 * blockframe.c (find_pc_partial_function): Update.
262 * breakpoint.c (print_breakpoint_location): Update.
263 (update_static_tracepoint): Update.
264 * btrace.c (ftrace_print_function_name): Update.
265 (ftrace_function_switched): Update.
266 * buildsym.c (find_symbol_in_list): Update.
268 * c-typeprint.c (c_print_typedef): Update.
269 (c_type_print_template_args): Update.
270 * cli/cli-cmds.c (edit_command): Update.
271 (list_command): Update.
272 (print_sal_location): Update.
273 * coffread.c (patch_opaque_types): Update.
274 (process_coff_symbol): Update.
275 (coff_read_enum_type): Update.
276 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
277 (convert_one_symbol): Update.
278 (hash_symname): Update.
279 (eq_symname): Update.
280 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
281 * compile/compile-cplus-types.c (debug_print_scope): Update.
282 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
283 * compile/compile-object-load.c (get_out_value_type): Update.
284 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
285 (search_symbol_list): Update.
286 (cp_lookup_symbol_imports_or_template): Update.
287 * cp-support.c (overload_list_add_symbol): Update.
288 * ctfread.c (psymtab_to_symtab): Update.
289 * dbxread.c (cp_set_block_scope): Update.
290 * dictionary.c (iter_match_first_hashed): Update.
291 (iter_match_next_hashed): Update.
292 (insert_symbol_hashed): Update.
293 (iter_match_next_linear): Update.
294 * dictionary.h: Update.
295 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
296 (locexpr_describe_location_piece): Update.
297 (locexpr_describe_location_1): Update.
298 (locexpr_generate_c_location): Update.
299 (loclist_describe_location): Update.
300 (loclist_generate_c_location): Update.
301 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
302 (read_func_scope): Update.
303 (process_enumeration_scope): Update.
304 (new_symbol): Update.
305 (dwarf2_const_value): Update.
306 (dwarf2_symbol_mark_computed): Update.
307 * eval.c (evaluate_funcall): Update.
308 (evaluate_subexp_standard): Update.
309 * expprint.c (print_subexp_standard): Update.
310 (dump_subexp_body_standard): Update.
311 * f-valprint.c (info_common_command_for_block): Update.
312 * findvar.c (get_hosting_frame): Update.
313 (default_read_var_value): Update.
314 * go-lang.c (go_symbol_package_name): Update.
315 * guile/scm-block.c (bkscm_print_block_smob): Update.
316 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
317 (gdbscm_symbol_name): Update.
318 (gdbscm_symbol_linkage_name): Update.
319 (gdbscm_symbol_print_name): Update.
320 * infcall.c (get_function_name): Update.
321 * infcmd.c (jump_command): Update.
322 (finish_command): Update.
323 * infrun.c (insert_exception_resume_breakpoint): Update.
324 * linespec.c (canonicalize_linespec): Update.
325 (create_sals_line_offset): Update.
326 (convert_linespec_to_sals): Update.
327 (complete_label): Update.
328 (find_label_symbols_in_block): Update.
329 * m2-typeprint.c (m2_print_typedef): Update.
330 * mdebugread.c (mdebug_reg_to_regnum): Update.
331 (parse_symbol): Update.
332 (mylookup_symbol): Update.
333 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
334 (list_args_or_locals): Update.
335 * objc-lang.c (compare_selectors): Update.
336 (info_selectors_command): Update.
337 (compare_classes): Update.
338 (info_classes_command): Update.
340 * p-typeprint.c (pascal_print_typedef): Update.
341 * printcmd.c (build_address_symbolic): Update.
342 (info_address_command): Update.
343 (print_variable_and_value): Update.
344 * python/py-framefilter.c (extract_sym): Update.
345 (py_print_single_arg): Update.
346 * python/py-symbol.c (sympy_str): Update.
347 (sympy_get_name): Update.
348 (sympy_get_linkage_name): Update.
349 * python/python.c (gdbpy_rbreak): Update.
350 * record-btrace.c (btrace_get_bfun_name): Update.
351 (btrace_call_history): Update.
352 * rust-lang.c (rust_print_typedef): Update.
353 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
354 * stabsread.c (stab_reg_to_regnum): Update.
355 (define_symbol): Update.
356 (read_enum_type): Update.
357 (common_block_end): Update.
358 (cleanup_undefined_types_1): Update.
359 (scan_file_globals): Update.
360 * stack.c (print_frame_arg): Update.
361 (print_frame_args): Update.
362 (find_frame_funname): Update.
363 (info_frame_command_core): Update.
364 (iterate_over_block_locals): Update.
365 (print_block_frame_labels): Update.
366 (do_print_variable_and_value): Update.
367 (iterate_over_block_arg_vars): Update.
368 (return_command): Update.
369 * symmisc.c (dump_symtab_1): Update.
370 (print_symbol): Update.
371 * symtab.c (eq_symbol_entry): Update.
372 (symbol_cache_dump): Update.
373 (lookup_language_this): Update.
374 (find_pc_sect_line): Update.
375 (skip_prologue_sal): Update.
376 (symbol_search::compare_search_syms): Update.
377 (treg_matches_sym_type_name): Update.
378 (search_symbols): Update.
379 (print_symbol_info): Update.
380 (rbreak_command): Update.
381 (completion_list_add_symbol): Update.
382 (find_gnu_ifunc): Update.
383 (get_symbol_address): Update.
384 (search_module_symbols): Update.
385 (info_module_subcommand): Update.
386 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
387 (SYMBOL_LINKAGE_NAME): Remove.
388 (SYMBOL_DEMANGLED_NAME): Remove.
389 (SYMBOL_PRINT_NAME): Remove.
390 (SYMBOL_SEARCH_NAME): Remove.
391 * tracepoint.c (set_traceframe_context): Update.
392 (validate_actionline): Update.
393 (collection_list::collect_symbol): Update.
394 (encode_actions_1): Update.
395 (info_scope_command): Update.
396 (print_one_static_tracepoint_marker): Update.
397 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
398 * valops.c (address_of_variable): Update.
399 (find_overload_match): Update.
400 (find_oload_champ): Update.
402 2019-11-22 Christian Biesinger <cbiesinger@google.com>
404 * ada-lang.c (ada_lookup_simple_minsym): Update.
405 (ada_collect_symbol_completion_matches): Update.
406 * ada-tasks.c (read_atcb): Update.
407 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
408 (amd64_windows_skip_trampoline_code): Update.
409 * arm-tdep.c (skip_prologue_function): Update.
410 (arm_skip_stack_protector): Update.
411 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
412 (arm_wince_skip_main_prologue): Update.
413 * ax-gdb.c (gen_expr): Update.
414 * block.c (call_site_for_pc): Update.
415 * blockframe.c (find_pc_partial_function): Update.
416 * breakpoint.c (set_breakpoint_location_function): Update.
417 * btrace.c (ftrace_print_function_name): Update.
418 (ftrace_function_switched): Update.
419 * c-valprint.c (print_unpacked_pointer): Update.
420 * coffread.c (coff_symfile_read): Update.
421 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
422 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
423 * dwarf-index-write.c (write_psymbols): Update.
424 * dwarf2loc.c (call_site_to_target_addr): Update.
425 (func_verify_no_selftailcall): Update.
426 (tailcall_dump): Update.
427 (call_site_find_chain_1): Update.
428 (dwarf_expr_reg_to_entry_parameter): Update.
429 * elfread.c (elf_gnu_ifunc_record_cache): Update.
430 * eval.c (evaluate_funcall): Update.
431 (evaluate_subexp_standard): Update.
432 (evaluate_subexp_for_sizeof): Update.
433 * expprint.c (print_subexp_standard): Update.
434 (dump_subexp_body_standard): Update.
435 * frame.c (get_prev_frame_always_1): Update.
436 * frv-tdep.c (frv_skip_main_prologue): Update.
437 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
438 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
439 (gnuv3_get_typename_from_type_info): Update.
440 (gnuv3_skip_trampoline): Update.
441 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
442 * i386-tdep.c (i386_skip_main_prologue): Update.
443 (i386_pe_skip_trampoline_code): Update.
444 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
445 * infcall.c (get_function_name): Update.
446 * linespec.c (minsym_found): Update.
447 * linux-fork.c (info_checkpoints_command): Update.
448 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
449 (m32c_m16c_pointer_to_address): Update.
450 * maint.c (maintenance_translate_address): Update.
451 * minsyms.c (add_minsym_to_hash_table): Update.
452 (add_minsym_to_demangled_hash_table): Update.
453 (lookup_minimal_symbol_mangled): Update.
454 (lookup_minimal_symbol_demangled): Update.
455 (lookup_minimal_symbol_linkage): Update.
456 (lookup_minimal_symbol_text): Update.
457 (lookup_minimal_symbol_by_pc_name): Update.
458 (minimal_symbol_is_less_than): Update.
459 (compact_minimal_symbols): Update.
460 (build_minimal_symbol_hash_tables): Update.
461 (find_solib_trampoline_target): Update.
462 * mips-tdep.c (mips_stub_frame_sniffer): Update.
463 (mips_skip_pic_trampoline_code): Update.
464 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
465 * objc-lang.c (info_selectors_command): Update.
466 (info_classes_command): Update.
467 (find_methods): Update.
469 * p-valprint.c (pascal_val_print): Update.
470 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
471 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
472 * printcmd.c (build_address_symbolic): Update.
473 (info_symbol_command): Update.
474 * psymtab.c (psymbol_name_matches): Update.
475 (match_partial_symbol): Update.
476 (lookup_partial_symbol): Update.
477 (print_partial_symbols): Update.
478 (sort_pst_symbols): Update.
479 (maintenance_check_psymtabs): Update.
480 * python/py-framefilter.c (py_print_frame): Update.
481 * python/python.c (gdbpy_rbreak): Update.
482 * record-btrace.c (btrace_get_bfun_name): Update.
483 (btrace_call_history): Update.
484 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
485 (rs6000_skip_trampoline_code): Update.
486 * sol-thread.c (info_cb): Update.
487 * stabsread.c (scan_file_globals): Update.
488 * stack.c (find_frame_funname): Update.
489 (info_frame_command_core): Update.
490 * symmisc.c (dump_msymbols): Update.
491 * symtab.c (symbol_natural_name): Rename to..,
492 (general_symbol_info::natural_name): ...this.
493 (symbol_demangled_name): Rename to...
494 (general_symbol_info::demangled_name): ...this.
495 (symbol_search_name): Rename to...
496 (general_symbol_info::search_name): ...this.
497 (symbol_matches_search_name): Update.
498 (find_pc_sect_line): Update.
499 (skip_prologue_sal): Update.
500 (search_symbols): Update.
501 (print_msymbol_info): Update.
502 (rbreak_command): Update.
503 (completion_list_add_msymbol): Update.
504 (completion_list_objc_symbol): Update.
505 (get_msymbol_address): Update.
506 * symtab.h (struct general_symbol_info): Add member functions
507 natural_name (), linkage_name (), print_name (), demangled_name (),
509 (SYMBOL_NATURAL_NAME): Update.
510 (symbol_natural_name): Move to a member function on general_symbol_info.
511 (SYMBOL_DEMANGLED_NAME): Update.
512 (symbol_demangled_name): Move to a member function on
514 (SYMBOL_SEARCH_NAME): Update.
515 (symbol_search_name): Move to a member function on general_symbol_info.
516 (MSYMBOL_NATURAL_NAME): Remove.
517 (MSYMBOL_LINKAGE_NAME): Remove.
518 (MSYMBOL_PRINT_NAME): Remove.
519 (MSYMBOL_DEMANGLED_NAME): Remove.
520 (MSYMBOL_SEARCH_NAME): Remove.
521 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
523 2019-11-22 Christian Biesinger <cbiesinger@google.com>
525 * symtab.c (create_demangled_names_hash): Use per_bfd->
526 minimal_symbol_count for computing the initial size, if greater
527 than our default size.
529 2019-11-22 Tom de Vries <tdevries@suse.de>
531 * contrib/words.sh: Improve words extraction.
533 2019-11-22 Tom de Vries <tdevries@suse.de>
535 * contrib/words.sh: Combine sed invocations.
537 2019-11-21 Christian Biesinger <cbiesinger@google.com>
539 * Makefile.in: Update.
540 * demangle.c: Rename to...
541 * gdb-demangle.c: ..this.
542 (is_cplus_marker): Change return type to bool.
543 (_initialize_demangler): Rename to...
544 (_initialize_gdb_demangle): ...this.
545 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
546 * symtab.h (demangle): Remove declaration; instead include
549 2019-11-21 Tom Tromey <tromey@adacore.com>
551 * gdbsupport/format.c (format_pieces): Parse %I64d.
552 * unittests/format_pieces-selftests.c (test_windows_formats): New
554 (run_tests): Call it.
556 2019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
558 Byte reverse display of variables with DW_END_big, DW_END_little
559 (DW_AT_endianity) dwarf attributes if different than the native
561 * ada-lang.c (ada_value_binop):
562 Use type_byte_order instead of gdbarch_byte_order.
563 * ada-valprint.c (printstr):
564 (ada_val_print_string):
565 * ada-lang.c (value_pointer):
567 Use type_byte_order instead of gdbarch_byte_order.
568 * c-lang.c (c_get_string):
569 Use type_byte_order instead of gdbarch_byte_order.
570 * c-valprint.c (c_val_print_array):
571 Use type_byte_order instead of gdbarch_byte_order.
572 * cp-valprint.c (cp_print_class_member):
573 Use type_byte_order instead of gdbarch_byte_order.
574 * dwarf2loc.c (rw_pieced_value):
575 Use type_byte_order instead of gdbarch_byte_order.
576 * dwarf2read.c (read_base_type): Handle DW_END_big,
578 * f-lang.c (f_get_encoding):
579 Use type_byte_order instead of gdbarch_byte_order.
580 * findvar.c (default_read_var_value):
581 Use type_byte_order instead of gdbarch_byte_order.
582 * gdbtypes.c (check_types_equal):
583 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
584 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
585 and TYPE_ENDIANITY_LITTLE if set.
586 (type_byte_order): new function.
587 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
588 (struct main_type) <flag_endianity_not_default>:
590 (type_byte_order): New function.
591 * infcmd.c (default_print_one_register_info):
592 Use type_byte_order instead of gdbarch_byte_order.
593 * p-lang.c (pascal_printstr):
594 Use type_byte_order instead of gdbarch_byte_order.
595 * p-valprint.c (pascal_val_print):
596 Use type_byte_order instead of gdbarch_byte_order.
597 * printcmd.c (print_scalar_formatted):
598 Use type_byte_order instead of gdbarch_byte_order.
599 * solib-darwin.c (darwin_current_sos):
600 Use type_byte_order instead of gdbarch_byte_order.
601 * solib-svr4.c (solib_svr4_r_ldsomap):
602 Use type_byte_order instead of gdbarch_byte_order.
603 * stap-probe.c (stap_modify_semaphore):
604 Use type_byte_order instead of gdbarch_byte_order.
605 * target-float.c (target_float_same_format_p):
606 Use type_byte_order instead of gdbarch_byte_order.
607 * valarith.c (scalar_binop):
609 Use type_byte_order instead of gdbarch_byte_order.
610 * valops.c (value_cast):
611 Use type_byte_order instead of gdbarch_byte_order.
612 * valprint.c (generic_emit_char):
615 Use type_byte_order instead of gdbarch_byte_order.
616 * value.c (unpack_long):
617 (unpack_bits_as_long):
618 (unpack_value_bitfield):
621 (pack_unsigned_long):
622 Use type_byte_order instead of gdbarch_byte_order.
623 * findvar.c (unsigned_pointer_to_address):
624 (signed_pointer_to_address):
625 (unsigned_address_to_pointer):
626 (address_to_signed_pointer):
627 (default_read_var_value):
628 (default_value_from_register):
629 Use type_byte_order instead of gdbarch_byte_order.
630 * gnu-v3-abi.c (gnuv3_make_method_ptr):
631 Use type_byte_order instead of gdbarch_byte_order.
632 * riscv-tdep.c (riscv_print_one_register_info):
633 Use type_byte_order instead of gdbarch_byte_order.
635 2019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
637 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
638 (current_ui_gdb_stdin_ptr): Likewise.
639 (current_ui_gdb_stderr_ptr): Likewise.
640 (current_ui_gdb_stdlog_ptr): Likewise.
641 (current_ui_current_uiout_ptr): Likewise.
642 (gen_ret_current_ui_field_ptr): Remove.
644 2019-11-21 Tom de Vries <tdevries@suse.de>
647 * cli/cli-script.c (execute_control_command): Only switch to
648 INTERP_CONSOLE's ui_out when INTERP_MI is active.
650 2019-11-19 Tom Tromey <tom@tromey.com>
652 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
653 Now static. Change type of "name".
654 (tui_set_win_height_command): Don't copy "arg".
655 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
656 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
658 2019-11-19 Ali Tamur <tamur@google.com>
660 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
661 "if (attr != nullptr)".
662 (dwarf2_find_base_address): Likewise.
663 (dwarf2_build_include_psymtabs): Likewise.
664 (read_cutu_die_from_dwo): Likewise.
665 (read_func_scope): Likewise.
666 (read_call_site_scope): Likewise.
667 (dwarf2_get_pc_bounds): Likewise.
668 (dwarf2_record_block_ranges): Likewise.
669 (dwarf2_add_field): Likewise.
670 (dwarf2_add_member_fn): Likewise.
671 (read_structure_type): Likewise.
672 (read_enumeration_type): Likewise.
673 (read_array_type): Likewise.
674 (read_array_order): Likewise.
675 (read_set_type): Likewise.
676 (read_common_block): Likewise.
677 (read_tag_reference_type): Likewise.
678 (read_tag_string_type): Likewise.
679 (read_subroutine_type): Likewise.
680 (read_base_type): Likewise.
681 (read_subrange_type): Likewise.
682 (new_symbol): Likewise.
683 (prepare_one_comp_unit): Likewise.
685 2019-11-19 Tom Tromey <tromey@adacore.com>
687 * windows-nat.c (windows_nat_target::attach): Include GetLastError
688 result in error when DebugActiveProcess fails.
690 2019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
691 Pedro Alves <palves@redhat.com>
693 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
694 * target.c (target_stack::push): Call 'unpush' if there's a
695 target on top of the stack.
697 2019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
699 * python/py-block.c (blpy_dealloc): Call tp_free.
700 (blpy_block_syms_dealloc): Likewise.
701 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
702 * python/py-inferior.c (infpy_dealloc): Likewise.
703 * python/py-lazy-string.c (stpy_dealloc): Likewise.
704 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
705 * python/py-symbol.c (sympy_dealloc): Likewise.
706 * python/py-symtab.c (stpy_dealloc): Likewise.
707 * python/py-type.c (typy_iterator_dealloc): Likewise.
709 2019-11-18 Christian Biesinger <cbiesinger@google.com>
711 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
712 constructor instead of using a class initializer.
714 2019-11-15 Christian Biesinger <cbiesinger@google.com>
716 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
717 * configure: Regenerate.
718 * configure.ac: Don't source common.host.
719 * gdbsupport/common.host: Remove.
720 * gdbsupport/mingw-strerror.c: Remove.
721 * gdbsupport/posix-strerror.c: Rename to...
722 * gdbsupport/safe-strerror.c: ...this.
724 2019-11-15 Christian Biesinger <cbiesinger@google.com>
726 * maint.c (scoped_command_stats::print_time): Use localtime_r
727 instead of localtime (provided through gnulib if necessary).
728 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
731 2019-11-15 Christian Biesinger <cbiesinger@google.com>
733 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
734 avoid compile errors.
736 2019-11-15 Christian Biesinger <cbiesinger@google.com>
738 * config.in: Regenerate.
739 * configure: Regenerate.
740 * gdbsupport/common.m4: No longer check for strerror_r.
741 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
742 POSIX version of strerror_r, now that gnulib provides it if
745 2019-11-14 Christian Biesinger <cbiesinger@google.com>
747 * README (`configure' options): Update.
749 2019-11-14 Tom Tromey <tromey@adacore.com>
751 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
752 expected type for the RHS if the LHS is a convenience variable.
754 2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
756 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
757 Provide explicit default and copy constructor.
759 2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
761 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
762 only call Py_INCREF (newbp) in the bppy_pending_object case.
764 2019-11-13 Tom Tromey <tromey@adacore.com>
767 * psympriv.h (partial_symbol): Remove static assert.
768 * symtab.h (general_symbol_info, symbol): Remove static assert.
770 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
772 * gdbsupport/format.c (format_pieces::format_pieces): Support
773 printf 'z' size modifier.
774 * gdbsupport/format.h (enum argclass): Add size_t_arg.
775 * printcmd.c (ui_printf): Handle size_t_arg.
776 * ui-out.c (ui_out::vmessage): Likewise.
777 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
779 (run_tests): Call test_format_int_sizes.
781 2019-11-12 Christian Biesinger <cbiesinger@google.com>
783 * ada-exp.y (write_ambiguous_var): Update.
784 * buildsym.c (add_symbol_to_list): Update.
785 * dwarf2read.c (read_variable): Update.
786 (new_symbol): Update.
787 * jit.c (finalize_symtab): Update.
788 * language.c (language_alloc_type_symbol): Update.
789 * symtab.c (fixup_symbol_section): Update.
790 (initialize_objfile_symbol_1): Move code to...
791 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
792 (allocate_symbol): Update.
793 (allocate_template_symbol): Update.
794 (get_symbol_address): Update.
795 * symtab.h (struct symbol): Inherit from general_symbol_info instead
796 of having as a field, and add a constructor.
797 (SYMBOL_VALUE): Update.
798 (SYMBOL_VALUE_ADDRESS): Update.
799 (SET_SYMBOL_VALUE_ADDRESS): Update.
800 (SYMBOL_VALUE_BYTES): Update.
801 (SYMBOL_VALUE_COMMON_BLOCK): Update.
802 (SYMBOL_BLOCK_VALUE): Update.
803 (SYMBOL_VALUE_CHAIN): Update.
804 (SYMBOL_LANGUAGE): Update.
805 (SYMBOL_SECTION): Update.
806 (SYMBOL_OBJ_SECTION): Update.
807 (SYMBOL_SET_LANGUAGE): Update.
808 (SYMBOL_SET_LINKAGE_NAME): Update.
809 (SYMBOL_SET_NAMES): Update.
810 (SYMBOL_NATURAL_NAME): Update.
811 (SYMBOL_LINKAGE_NAME): Update.
812 (SYMBOL_DEMANGLED_NAME): Update.
813 (SYMBOL_SEARCH_NAME): Update.
814 (SYMBOL_MATCHES_SEARCH_NAME): Update.
815 (struct symbol): Update.
816 (struct template_symbol): Update.
817 (struct rust_vtable_symbol): Update.
818 * xcoffread.c (SYMBOL_DUP): Update.
820 2019-11-12 Tom Tromey <tom@tromey.com>
822 * tui/tui-layout.c (show_layout): Set current_layout.
823 (show_source_disasm_command, show_data)
824 (show_source_or_disasm_and_command): Don't set current_layout.
826 2019-11-12 Tom Tromey <tom@tromey.com>
828 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
830 2019-11-12 Tom Tromey <tom@tromey.com>
832 * tui/tui-win.c (resize_message): New global.
833 (show_tui_resize_message): New function.
834 (tui_async_resize_screen): Print message if requested.
835 (_initialize_tui_win): Add tui-resize-message setting.
836 * NEWS: Add entry for new commands.
838 2019-11-11 Tom Tromey <tom@tromey.com>
840 * tui/tui.c (tui_initialize_readline): Add new bindable readline
843 2019-11-11 Christian Biesinger <cbiesinger@google.com>
845 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
847 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
849 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
851 * python/python-internal.h (gdbpy_lookup_static_symbols):
852 Declare new function.
853 * python/python.c (python_GdbMethods): Add
854 gdb.lookup_static_symbols method.
855 * NEWS: Mention gdb.lookup_static_symbols.
857 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
859 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
860 static block of current object file first. Also fix typo in
863 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
865 * stack.c (set_last_displayed_sal): Delete.
866 (last_displayed_sal_valid): Delete.
867 (last_displayed_pspace): Delete.
868 (last_displayed_addr): Delete.
869 (last_displayed_symtab): Delete.
870 (last_displayed_line): Delete.
871 (class last_displayed_symtab_info_type): New.
872 (last_displayed_symtab_info): New static global variable.
873 (print_frame_info): Call methods on last_displayed_symtab_info.
874 (clear_last_displayed_sal): Update header comment, and make use of
875 last_displayed_symtab_info.
876 (last_displayed_sal_is_valid): Likewise.
877 (get_last_displayed_pspace): Likewise.
878 (get_last_displayed_addr): Likewise.
879 (get_last_displayed_symtab): Likewise.
880 (get_last_displayed_line): Likewise.
881 (get_last_displayed_sal): Likewise.
882 * stack.h (clear_last_displayed_sal): Update header comment.
883 (last_displayed_sal_is_valid): Likewise.
884 (get_last_displayed_pspace): Likewise.
885 (get_last_displayed_addr): Likewise.
886 (get_last_displayed_symtab): Likewise.
887 (get_last_displayed_line): Likewise.
888 (get_last_displayed_sal): Likewise.
890 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
892 * stack.c (frame_show_address): Convert return type to bool.
893 * stack.h (frame_show_address): Likewise, and update header
896 2019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
898 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
899 * unittests/vec-utils-selftests.c: New file.
900 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
902 2019-11-10 Tom Tromey <tom@tromey.com>
904 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
905 (tui_highlight_win): Likewise.
906 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
907 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
908 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
909 Don't set can_highlight.
911 2019-11-10 Tom Tromey <tom@tromey.com>
913 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
914 Remove unused declaration.
916 2019-11-08 Tom Tromey <tromey@adacore.com>
918 * top.c (read_command_file): Update.
919 (command_line_input): Make return type const.
920 * python/py-gdb-readline.c: Update.
921 * linespec.c (decode_line_2): Update.
922 * defs.h (command_line_input): Make return type const.
923 * cli/cli-script.c (read_next_line): Make return type const.
924 * ada-lang.c (get_selections): Update.
926 2019-11-06 Christian Biesinger <cbiesinger@google.com>
928 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
929 * mi/mi-main.c (output_cores): Likewise.
930 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
931 (linux_xfer_osdata_modules): Likewise.
932 * remote.c (register_remote_support_xml): Likewise.
933 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
934 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
936 2019-11-06 Tom Tromey <tom@tromey.com>
938 * tui/tui-interp.c: Don't include readline.h.
939 * tui/tui-hooks.c: Don't include readline.h.
940 * symmisc.c: Include tilde.h, not readline.h.
941 * symfile.c: Include tilde.h, not readline.h.
942 * source.c: Include tilde.h, not readline.h.
943 * solib.c: Include tilde.h, not readline.h.
944 * psymtab.c: Include tilde.h, not readline.h.
945 * exec.c: Include tilde.h, not readline.h.
946 * corelow.c: Include tilde.h, not readline.h.
947 * cli/cli-dump.c: Include tilde.h, not readline.h.
948 * cli/cli-cmds.c: Don't include readline.h.
950 2019-11-05 Tom Tromey <tom@tromey.com>
952 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
953 (tui_disassemble): Set addr_size.
954 (tui_disasm_window::set_contents): Use addr_size.
956 2019-11-05 Tom Tromey <tom@tromey.com>
958 * rust-lang.c (rust_language_defn): Update.
959 * python/py-value.c (valpy_string): Call c_get_string.
960 * p-lang.c (pascal_language_defn): Update.
961 * opencl-lang.c (opencl_language_defn): Update.
962 * objc-lang.c (objc_language_defn): Update.
963 * m2-lang.c (m2_language_defn): Update.
964 * language.c (unknown_language_defn, auto_language_defn): Update.
965 (default_get_string): Remove.
966 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
967 * go-lang.c (go_language_defn): Update.
968 * f-lang.c (f_language_defn): Update.
969 * d-lang.c (d_language_defn): Update.
970 * c-lang.c (c_language_defn, cplus_language_defn)
971 (asm_language_defn, minimal_language_defn): Update.
972 * ada-lang.c (ada_language_defn): Update.
973 * language.h (struct language_defn) <la_get_string>: Remove.
974 (LA_GET_STRING): Remove.
975 (default_get_string): Don't declare.
977 2019-11-05 Tom Tromey <tom@tromey.com>
979 * tui/tui-source.h (struct tui_source_window): Inline
980 constructor. Remove destructor.
981 <style_changed, m_observable>: Move to superclass.
982 * tui/tui-winsource.h (tui_copy_source_line): Declare.
983 (struct tui_source_window_base): Move private members to end.
984 <style_changed, m_observable>: Move from tui_source_window.
985 * tui/tui-winsource.c (tui_copy_source_line): Move from
986 tui-source.c. Rename from copy_source_line. Add special handling
987 for negative line number.
988 (tui_source_window_base::style_changed): Move from
990 (tui_source_window_base): Register observer.
991 (~tui_source_window_base): New.
992 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
994 (tui_source_window::set_contents): Use tui_copy_source_line.
995 (tui_source_window::tui_source_window): Move to tui-source.h.
996 (tui_source_window::~tui_source_window): Remove.
997 (tui_source_window::style_changed): Move to superclass.
998 * tui/tui-disasm.c (tui_disassemble): Create string file with
999 styling, when possible. Add "addr_size" parameter.
1000 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1001 Don't compute maximum size.
1002 (len_without_escapes): New function
1004 2019-11-05 Tom Tromey <tom@tromey.com>
1006 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1008 * tui/tui-winsource.c (tui_show_source_line): Update.
1009 * tui/tui-source.c (tui_source_window::set_contents): Update.
1010 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1012 2019-11-05 Christian Biesinger <cbiesinger@google.com>
1014 * symtab.h (gdb_static_assert): Put && operator at the beginning
1015 of the line instead of the end.
1017 2019-11-04 Christian Biesinger <cbiesinger@google.com>
1019 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1020 and sizeof (symbol).
1021 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1023 2019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1025 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1026 * configure.host: Mark *-*-solaris2.10* obsolete.
1027 * configure.tgt: Mark Solaris < 11 obsolete.
1028 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1029 Update target triplet.
1031 2019-11-01 Tom Tromey <tromey@adacore.com>
1033 * utils.c (print_sys_errmsg): Simplify.
1035 2019-11-01 Tom Tromey <tromey@adacore.com>
1037 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1039 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1041 * configure: Regenerate.
1042 * configure.ac: Remove check for strerror_r.
1043 * gdbsupport/common.m4: Check for strerror_r.
1045 2019-11-01 Luis Machado <luis.machado@linaro.org>
1049 * arm-tdep.c (arm_per_objfile): Rename to ...
1050 (arm_per_bfd): ... this.
1051 (arm_objfile_data_key): Rename to ...
1052 (arm_bfd_data_key): ... this.
1053 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1055 (arm_record_special_symbol): Likewise.
1057 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1059 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1061 * c-typeprint.c (c_print_typedef): Likewise.
1062 * f-typeprint.c (f_print_typedef): Likewise.
1063 * m2-typeprint.c (m2_print_typedef): Likewise.
1064 * p-typeprint.c (pascal_print_typedef): Likewise.
1065 * rust-lang.c (rust_print_typedef): Likewise.
1066 * symtab.c (print_symbol_info): Print a newline after calling
1069 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1071 * symtab.c (info_module_cmdlist): New variable.
1072 (info_module_command): New function.
1073 (search_module_symbols): New function.
1074 (info_module_subcommand): New function.
1075 (struct info_modules_var_func_options): New struct.
1076 (info_modules_var_func_options_defs): New variable.
1077 (make_info_modules_var_func_options_def_group): New function.
1078 (info_module_functions_command): New function.
1079 (info_module_variables_command): New function.
1080 (info_module_var_func_command_completer): New function.
1081 (_initialize_symtab): Register new 'info module functions' and
1082 'info module variables' commands.
1083 * symtab.h (typedef symbol_search_in_module): New typedef.
1084 (search_module_symbols): Declare new function.
1085 * NEWS: Mention new commands.
1087 2019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1089 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1090 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1091 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1093 (scan_partial_symbols): Only create partial module symbols for non
1095 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1097 * symtab.c (search_domain_name): Likewise.
1098 (search_symbols): Likewise.
1099 (print_symbol_info): Likewise.
1100 (symtab_symbol_info): Likewise.
1101 (info_modules_command): New function.
1102 (_initialize_symtab): Register 'info modules' command.
1103 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1104 * NEWS: Mention new 'info modules' command.
1106 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1108 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1109 and $_gdb_maint_setting_str.
1111 2019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1113 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1114 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1115 (str_value_from_setting, gdb_setting_str_internal_fn)
1116 (gdb_maint_setting_str_internal_fn): New functions.
1117 (_initialize_cli_cmds): Define the new convenience functions.
1118 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1119 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1121 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1123 * agent.c (set_can_use_agent): When the setting is turned on,
1124 look up agent symbols if we don't have them yet.
1125 (agent_new_objfile): Don't look up agent symbols when the agent
1128 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1130 * config.in: Regenerate.
1132 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1134 * configure: Regenerate.
1135 * configure.ac: Check for strerror_r.
1136 * gdbsupport/common-utils.h (safe_strerror): Change return value
1137 to const char * and document that this function is now threadsafe.
1138 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1139 thread_local and call strerror_r, if available.
1140 * utils.c (perror_string): Update.
1141 (print_sys_errmsg): Update.
1143 2019-10-31 Luis Machado <luis.machado@linaro.org>
1145 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1147 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1148 objfile to fetch per-bfd data.
1149 (arm_find_exidx_entry): Likewise.
1151 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1153 * gdbsupport/agent.c (debug_agent): Change type to bool.
1154 (use_agent): Likewise.
1155 (all_agent_symbols_look_up): Likewise.
1156 (agent_loaded_p): Change return value to bool.
1157 (agent_look_up_symbols): Update.
1158 (agent_capability_check): Change return value to bool.
1159 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1160 (debug_agent): Change type to bool.
1161 (use_agent): Likewise.
1162 (agent_capability_check): Change return value to bool.
1164 2019-10-30 Christian Biesinger <cbiesinger@google.com>
1166 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1167 (build_minimal_symbol_hash_tables): Code to clear the table moved
1168 to clear_minimal_symbol_hash_tables.
1169 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1172 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1174 * infcmd.c: Remove includes.
1175 * infrun.c: Remove includes.
1177 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1179 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1180 (grow_vect): Remove declaration.
1181 (ada_type_of_array): Remove declaration.
1182 (ada_update_initial_language): Remove declaration.
1183 (ada_fold_name): Remove declaration.
1184 (ada_fill_in_ada_prototype): Remove declaration.
1185 (user_select_syms): Remove declaration.
1186 (get_selections): Remove declaration.
1187 (ada_tag_type): Remove declaration.
1188 (ada_value_tag): Remove declaration.
1189 (ada_is_others_clause): Remove declaration.
1190 (ada_in_variant): Remove declaration.
1191 (ada_value_struct_elt): Remove declaration.
1192 (ada_attribute_name): Remove declaration.
1193 (ada_system_address_type): Remove declaration.
1194 * ada-lang.c (ada_watch_location_expression): Make static.
1195 (GROW_VECT): Move here from ada-lang.h.
1196 (grow_vect): Make static.
1197 (ada_update_initial_language): Make static.
1198 (ada_fold_name): Make static.
1199 (ada_type_of_array): Make static.
1200 (encoded_ordered_before): Move up.
1201 (sort_choices): Move up.
1202 (print_signatures): Move up.
1203 (ada_print_symbol_signature): Move up.
1204 (get_selections): Move up and make static.
1205 (user_select_syms): Move up and make static.
1206 (ada_value_struct_elt): Move up and make static.
1207 (ada_tag_type): Make static.
1208 (ada_value_tag): Make static.
1209 (ada_is_others_clause): Make static.
1210 (ada_in_variant): Make static.
1211 (ada_attribute_name): Make static.
1213 2019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1215 * ada-lang.c: Remove includes.
1216 * ada-typeprint.c: Remove includes.
1217 * ada-valprint.c: Remove includes.
1219 2019-10-29 Simon Marchi <simon.marchi@efficios.com>
1221 * addrmap.c: Add static assertions of type size, moved from
1222 _initialize_addrmap.
1223 (_initialize_addrmap): Remove.
1225 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1227 * coffread.c (record_minimal_symbol): Update.
1228 (process_coff_symbol): Update.
1229 * dbxread.c (read_dbx_symtab): Update.
1230 * dwarf2read.c (add_partial_symbol): Update.
1231 (fixup_go_packaging): Update.
1232 (load_partial_dies): Update.
1233 (new_symbol): Update.
1234 * elfread.c (record_minimal_symbol): Change signature to use
1235 gdb::string_view instead of name+len.
1236 (elf_symtab_read): Update.
1237 (elf_rel_plt_read): Update.
1238 * mdebugread.c (parse_partial_symbols): Update.
1239 (handle_psymbol_enumerators): Update.
1240 (new_symbol): Update.
1241 * minsyms.c (minimal_symbol_reader::record_full): Change signature
1242 to use gdb::string_view instead of name+len.
1243 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
1244 * psympriv.h (add_psymbol_to_list): Likewise.
1245 * psymtab.c (add_psymbol_to_bcache): Likewise.
1246 (add_psymbol_to_list): Likewise.
1247 * stabsread.c (define_symbol): Update.
1248 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
1249 * symtab.h (SYMBOL_SET_NAMES): Likewise.
1250 (symbol_set_names): Likewise.
1251 * xcoffread.c (scan_xcoff_symtab): Update.
1253 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1255 * symtab.h (symbol_set_names): Document that copy_name must be
1256 set to true for non-nullterminated strings.
1257 * symtab.c (symbol_set_names): Only make a nullterminated copy of
1258 linkage_name if the entry was not found and we need to demangle.
1260 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1262 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
1263 * dwarf2-frame.c (bsearch_fde_cmp): Update.
1264 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
1265 * gdbsupport/gdb_binary_search.h: New file.
1267 2019-10-29 Christian Biesinger <cbiesinger@google.com>
1269 * NEWS: Mention new --with-system-gdbinit-dir option.
1270 * config.in: Regenerate.
1271 * configure: Regenerate.
1272 * configure.ac: Add new option --with-system-gdbinit-dir.
1273 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
1274 for a ".gdb" suffix.
1275 * main.c (get_init_files): Change system_gdbinit argument to
1276 a vector and return the files in SYSTEM_GDBINIT_DIR in
1277 addition to SYSTEM_GDBINIT.
1278 (captured_main_1): Update.
1279 (print_gdb_help): Update.
1280 * top.c (print_gdb_configuration): Also print the value of
1283 2019-10-28 Christian Biesinger <cbiesinger@google.com>
1285 * gdbsupport/common-utils.h (startswith): Add an overloaded version
1286 that takes gdb::string_view arguments.
1288 2019-10-26 Tom de Vries <tdevries@suse.de>
1290 * aarch64-linux-tdep.c: Fix typos in comments.
1291 * aarch64-tdep.c: Same.
1293 * amd64-nat.c: Same.
1295 * arch/aarch64-insn.c: Same.
1297 * breakpoint.h: Same.
1300 * cli/cli-decode.c: Same.
1301 * cli/cli-script.c: Same.
1302 * cli/cli-utils.h: Same.
1303 * coff-pe-read.c: Same.
1305 * compile/compile-cplus-symbols.c: Same.
1306 * compile/compile-object-run.c: Same.
1307 * completer.c: Same.
1309 * cp-support.c: Same.
1311 * dwarf-index-write.c: Same.
1312 * dwarf2-frame.c: Same.
1313 * dwarf2-frame.h: Same.
1315 * frame-base.h: Same.
1320 * guile/scm-objfile.c: Same.
1321 * i386-tdep.c: Same.
1322 * i386-tdep.h: Same.
1325 * linux-nat.c: Same.
1326 * m68k-tdep.c: Same.
1329 * mi/mi-cmd-disas.c: Same.
1330 * mi/mi-getopt.h: Same.
1331 * mi/mi-main.c: Same.
1333 * nat/aarch64-sve-linux-sigcontext.h: Same.
1335 * ppc-linux-nat.c: Same.
1336 * ppc-linux-tdep.c: Same.
1338 * progspace.h: Same.
1339 * prologue-value.h: Same.
1340 * python/py-evtregistry.c: Same.
1341 * python/py-instruction.h: Same.
1342 * record-btrace.c: Same.
1343 * record-full.c: Same.
1345 * rs6000-tdep.c: Same.
1347 * sol-thread.c: Same.
1348 * sparc-sol2-tdep.c: Same.
1349 * sparc64-tdep.c: Same.
1350 * stabsread.c: Same.
1354 * tracepoint.c: Same.
1355 * tui/tui-data.h: Same.
1356 * tui/tui-io.c: Same.
1357 * tui/tui-win.c: Same.
1359 * unittests/rsp-low-selftests.c: Same.
1360 * user-regs.h: Same.
1371 * xtensa-tdep.c: Same.
1373 2019-10-25 Ali Tamur <tamur@google.com>
1375 * charset.c (find_charset_names): Reflect API change.
1377 2019-10-25 Christian Biesinger <cbiesinger@google.com>
1379 * symtab.c (struct demangled_name_entry): Change demangled name
1380 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
1381 part of the struct anymore.
1382 (symbol_set_names): No longer obstack allocate + copy the demangled
1383 name, just store the allocated name from bfd.
1385 2019-10-25 Tom Tromey <tromey@adacore.com>
1387 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
1388 (bsearch_cie_cmp, add_cie): Remove.
1389 (find_cie): Reimplement.
1390 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
1391 (dwarf2_build_frame_info): Update.
1393 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
1396 * symfile.c (reread_symbols): Call forget_cached_source_info to
1397 clear the stale source cache.
1399 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1401 * configure: Regenerate.
1402 * configure.ac: Remove code that sets python_has_threads.
1404 2019-10-24 Christian Biesinger <cbiesinger@google.com>
1406 * config.in: Regenerate.
1407 * configure: Regenerate.
1408 * configure.ac: Remove the code that uses sed to get the python
1409 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
1411 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
1413 * python/py-progspace.c (pspy_block_for_pc): Return None for all
1416 2019-10-23 Tom Tromey <tom@tromey.com>
1418 * arc-tdep.c: Remove ".." from include.
1419 * frv-tdep.c: Remove ".." from include.
1420 * lm32-tdep.c: Remove ".." from include.
1421 * microblaze-tdep.c: Remove ".." from include.
1422 * or1k-tdep.h: Remove ".." from include.
1423 * s12z-tdep.c: Remove ".." from include.
1424 * Makefile.in (OPCODES_CFLAGS): Add comment.
1425 (TOP_CFLAGS): New variable.
1426 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
1428 2019-10-23 Tom Tromey <tom@tromey.com>
1430 * Makefile.in (READLINE_DIR): Update.
1432 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1434 * infcall.c (call_function_by_hand_dummy): Fix the function
1435 comment. And extract out a code section into...
1436 (reserve_stack_space): ...this new function.
1438 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1440 * infcall.c (value_arg_coerce): Remove an unused parameter.
1441 (call_function_by_hand_dummy): Update the call to
1444 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1446 * infcall.c (call_function_by_hand_dummy): Refactor.
1448 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1450 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
1452 2019-10-23 Tom Tromey <tom@tromey.com>
1454 * configure: Rebuild.
1455 * configure.ac: Don't check for sigprocmask.
1456 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
1458 2019-10-23 Tom Tromey <tom@tromey.com>
1460 * configure: Rebuild.
1461 * acinclude.m4: Use m4_include, not sinclude.
1463 2019-10-23 Tom de Vries <tdevries@suse.de>
1465 PR breakpoints/24687
1466 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
1468 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1470 * symtab.c (struct demangled_name_entry) <language>: Change from
1471 bitfield to regular variable.
1473 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1475 * symtab.c (struct demangled_name_entry): Add a constructor.
1476 (free_demangled_name_entry): New function to call the destructor
1477 for demangled_name_entry.
1478 (create_demangled_names_hash): Pass free_demangled_name_entry to
1480 (symbol_set_names): Call placement new for demangled_name_entry.
1481 * utils.c: No longer include xxhash.h here, now that fast_hash
1482 is inlined in the header.
1483 * utils.h: Instead, include it here.
1485 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1487 * Makefile.in: Link with libxxhash.
1488 * config.in: Regenerate.
1489 * configure: Regenerate.
1490 * configure.ac: Search for libxxhash.
1491 * utils.c (fast_hash): Use xxhash if present.
1493 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1495 * utils.h (fast_hash): New function.
1496 * symtab.c (hash_demangled_name_entry): Call new function
1499 2019-10-22 Christian Biesinger <cbiesinger@google.com>
1501 * symtab.c (struct demangled_name_entry): Change type of mangled
1502 to gdb::string_view. Also adds a constructor that takes the
1504 (hash_demangled_name_entry): Update.
1505 (eq_demangled_name_entry): Update.
1506 (free_demangled_name_entry): New function to call the destructor
1507 now that this is not a POD anymore.
1508 (create_demangled_names_hash): Pass free_demangled_name_entry to
1510 (symbol_set_names): Update.
1512 2019-10-21 Ali Tamur <tamu@google.com>
1514 * dwarf2read.c (dir_index): Change type.
1515 (file_name_index): Likewise.
1516 (line_header::include_dir_at): Change comment and implementation on
1517 whether it is DWARF 5.
1518 (line_header::is_valid_file_index): New function.
1519 (line_header::file_name_at): Change comment and implementation on
1520 whether it is DWARF 5.
1521 (line_header::file_names): Change to private field renamed as
1522 m_file_names and introduce a new accessor method.
1523 (line_header::file_names_size): New method.
1524 (line_header::include_dirs): Change to private field and rename as
1526 (dw2_get_file_names_reader): Define local var at a smaller scope and
1528 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
1529 (process_structure_scope): Likewise.
1530 (line_header::add_include_dir): Change message and reflect renaming.
1531 (line_header::add_file_name): Likewise.
1532 (read_formatted_entries): Handle DW_FORM_data16.
1533 (dwarf_decode_line_header): Fix line header length calculation.
1534 (psymtab_include_file_name): Change comment and API.
1535 (lnp_state_machine::m_file): Update comment and reflect type change.
1536 (lnp_state_machine::record_line): Reflect type change.
1537 (dwarf_decode_lines): Reflect API change.
1538 (file_file_name): Likewise.
1539 (file_full_name): Likewise.
1541 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
1543 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
1545 2019-10-21 Tom Tromey <tom@tromey.com>
1547 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
1549 2019-10-21 Tom Tromey <tom@tromey.com>
1551 * configure.ac (nm.h): Conditionally create nm.h link. Subst
1552 NM_H. Use AC_CONFIG_LINKS.
1553 * configure: Rebuild.
1554 * Makefile.in (NM_H): New variable.
1555 (generated_files): Add NM_H. Remove gcore.
1556 (nm.h, stamp-nmh): New targets.
1558 2019-10-20 Tom Tromey <tom@tromey.com>
1560 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
1561 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
1563 (put_objfile_before): Now static.
1565 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
1567 * gdbsupport/common-utils.h (startswith): Change return type to
1570 2019-10-19 Christian Biesinger <cbiesinger@google.com>
1572 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
1573 * breakpoint.c (bp_locations_compare): Rename to...
1574 (bp_location_is_less_than): ...this, and change to std::sort semantics.
1575 (update_global_location_list): Use std::sort instead of qsort.
1576 * buildsym.c (compare_line_numbers): Rename to...
1577 (lte_is_less_than): ...this, and change to std::sort semantics.
1578 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
1580 * disasm.c (compare_lines): Rename to...
1581 (line_is_less_than): ...this, and change to std::sort semantics.
1582 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
1584 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
1585 (fde_is_less_than): ...this, and change to std::sort semantics.
1586 (dwarf2_build_frame_info): Call std::sort instead of qsort.
1587 * mdebugread.c (compare_blocks):
1588 (block_is_less_than): ...this, and change to std::sort semantics.
1589 (sort_blocks): Call std::sort instead of qsort.
1590 * objfiles.c (qsort_cmp): Rename to...
1591 (sort_cmp): ...this, and change to std::sort semantics.
1592 (update_section_map): Call std::sort instead of qsort.
1593 * remote.c (compare_pnums): Remove.
1594 (map_regcache_remote_table): Call std::sort instead of qsort.
1595 * utils.c (compare_positive_ints): Remove.
1596 * utils.h (compare_positive_ints): Remove.
1597 * xcoffread.c (compare_lte): Remove.
1598 (arrange_linetable): Call std::sort instead of qsort.
1600 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
1602 * symfile.c (init_entry_point_info): Fix typo.
1603 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
1605 2019-10-18 Tom de Vries <tdevries@suse.de>
1607 * aarch64-tdep.c: Fix typos in comments.
1609 * ada-tasks.c: Same.
1610 * alpha-tdep.c: Same.
1611 * alpha-tdep.h: Same.
1612 * amd64-nat.c: Same.
1613 * amd64-windows-tdep.c: Same.
1616 * arch-utils.c: Same.
1617 * arm-nbsd-tdep.c: Same.
1620 * blockframe.c: Same.
1623 * coff-pe-read.c: Same.
1625 * cris-tdep.c: Same.
1626 * darwin-nat.c: Same.
1630 * dtrace-probe.c: Same.
1631 * dwarf-index-write.c: Same.
1632 * dwarf2-frame-tailcall.c: Same.
1633 * dwarf2-frame.c: Same.
1634 * dwarf2read.c: Same.
1636 * exceptions.c: Same.
1637 * fbsd-tdep.c: Same.
1641 * gnu-v3-abi.c: Same.
1643 * h8300-tdep.c: Same.
1644 * hppa-tdep.c: Same.
1645 * i386-linux-tdep.c: Same.
1646 * i386-tdep.c: Same.
1647 * ia64-libunwind-tdep.c: Same.
1648 * ia64-tdep.c: Same.
1652 * linux-nat.c: Same.
1653 * linux-thread-db.c: Same.
1654 * machoread.c: Same.
1655 * mdebugread.c: Same.
1657 * mn10300-tdep.c: Same.
1658 * namespace.c: Same.
1660 * opencl-lang.c: Same.
1661 * or1k-tdep.c: Same.
1663 * ppc-linux-nat.c: Same.
1664 * ppc-linux-tdep.c: Same.
1665 * ppc-sysv-tdep.c: Same.
1668 * record-btrace.c: Same.
1669 * record-full.c: Same.
1670 * remote-fileio.c: Same.
1672 * rs6000-tdep.c: Same.
1673 * s12z-tdep.c: Same.
1674 * score-tdep.c: Same.
1678 * sol-thread.c: Same.
1679 * solib-svr4.c: Same.
1682 * sparc-nat.c: Same.
1683 * sparc-sol2-tdep.c: Same.
1684 * sparc-tdep.c: Same.
1685 * sparc64-tdep.c: Same.
1686 * stabsread.c: Same.
1690 * target-descriptions.c: Same.
1691 * target-float.c: Same.
1698 * windows-nat.c: Same.
1699 * xcoffread.c: Same.
1700 * xstormy16-tdep.c: Same.
1701 * xtensa-tdep.c: Same.
1703 2019-10-17 Tom Tromey <tromey@adacore.com>
1705 * configure: Rebuild.
1706 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1707 in AC_CONFIG_FILES invocation.
1708 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
1709 new-style config.status invocation.
1711 2019-10-17 Tom de Vries <tdevries@suse.de>
1713 * arm-nbsd-nat.c: Fix typos in comments.
1715 * darwin-nat-info.c: Same.
1716 * dwarf2read.c: Same.
1718 * event-top.c: Same.
1721 * hppa-tdep.c: Same.
1722 * i386-tdep.c: Same.
1725 * mdebugread.c: Same.
1726 * moxie-tdep.c: Same.
1727 * nto-procfs.c: Same.
1729 * ppc-linux-tdep.c: Same.
1731 * riscv-tdep.c: Same.
1732 * s390-tdep.c: Same.
1734 * sparc-linux-tdep.c: Same.
1735 * sparc-nat.c: Same.
1737 * target-descriptions.c: Same.
1741 2019-10-16 Tom Tromey <tom@tromey.com>
1743 * objfiles.h (struct objfile) <original_name>: Now const.
1745 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1747 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
1748 pass on to sigsetjmp's second argument.
1749 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
1751 2019-10-16 Keith Seitz <keiths@redhat.com>
1754 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
1755 sections whose size is greater than the file size.
1757 2019-10-16 Jim Wilson <jimw@sifive.com>
1759 * riscv-tdep.c (riscv_gcc_target_options): New.
1760 (riscv_gnu_triplet_regexp): New.
1761 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
1762 set_gdbarch_gnu_triplet_regexp.
1764 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1766 * Makefile.in: Add xml-builtin.h.
1767 * features/feature_to_c.sh: Add an include for xml-builtin.h
1768 to ensure that the compiler checks that the types match.
1769 * xml-builtin.h: New file.
1770 * xml-support.c (fetch_xml_builtin): Add missing const.
1771 * xml-support.h: Remove declaration of xml_builtins.
1773 2019-10-16 Tom de Vries <tdevries@suse.de>
1776 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
1777 (amd64_classify_aggregate): ... here.
1778 (amd64_classify_aggregate_field): Handled fiels of nested structs
1781 2019-10-16 Tom de Vries <tdevries@suse.de>
1784 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
1785 that handles 'theclass'.
1787 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1789 * linespec.c (decode_digits_ordinary): Update comment.
1790 * make-target-delegates: No longer need to handle VEC case.
1791 * memrange.c (normalize_mem_ranges): Update comment.
1792 * namespace.c (add_using_directive): Update comment.
1793 * objc-lang.c (uniquify_strings): Update comment.
1794 * ppc-linux-nat.c (struct thread_points): Update comment.
1795 * probe.h (find_probes_in_objfile): Update comment.
1796 * target.h (enum flash_preserve_mode): Update comment.
1797 * varobj.c (varobj_restrict_range): Update comment.
1798 * varobj.h (varobj_list_children): Update comment.
1800 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1802 * Makefile.in: Remove references to vec.h and vec.c.
1803 * aarch64-tdep.c: No longer include vec.h.
1804 * ada-lang.c: Likewise.
1805 * ada-lang.h: Likewise.
1806 * arm-tdep.c: Likewise.
1808 * breakpoint.h: Likewise.
1809 * charset.c: Likewise.
1810 * cp-support.h: Likewise.
1811 * dtrace-probe.c: Likewise.
1812 * dwarf2read.c: Likewise.
1813 * extension.h: Likewise.
1814 * gdb_bfd.c: Likewise.
1815 * gdbsupport/gdb_vecs.h: Likewise.
1816 * gdbsupport/vec.c: Remove.
1817 * gdbsupport/vec.h: Remove.
1818 * gdbthread.h: Likewise.
1819 * guile/scm-type.c: Likewise.
1820 * inline-frame.c: Likewise.
1821 * machoread.c: Likewise.
1822 * memattr.c: Likewise.
1823 * memrange.h: Likewise.
1824 * namespace.h: Likewise.
1825 * nat/linux-btrace.h: Likewise.
1826 * osdata.c: Likewise.
1827 * parser-defs.h: Likewise.
1828 * progspace.h: Likewise.
1829 * python/py-type.c: Likewise.
1830 * record-btrace.c: Likewise.
1831 * rust-exp.y: Likewise.
1832 * solib-target.c: Likewise.
1833 * stap-probe.c: Likewise.
1834 * target-descriptions.c: Likewise.
1835 * target-memory.c: Likewise.
1836 * target.h: Likewise.
1837 * varobj.c: Likewise.
1838 * varobj.h: Likewise.
1839 * xml-support.h: Likewise.
1841 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1843 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
1844 Update for new std::vector based implementation.
1845 (process_psymtab_comp_unit_reader): Likewise.
1846 (scan_partial_symbols): Likewise.
1847 (recursively_compute_inclusions): Likewise.
1848 (compute_compunit_symtab_includes): Likewise.
1849 (process_imported_unit_die): Likewise.
1850 (queue_and_load_dwo_tu): Likewise.
1851 (follow_die_sig_1): Likewise.
1852 * gdb/dwarf2read.h: Remove DEF_VEC_P.
1853 (typedef dwarf2_per_cu_ptr): Remove.
1854 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
1856 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
1857 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
1858 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
1859 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
1862 2019-10-15 Tom Tromey <tromey@adacore.com>
1864 * windows-nat.c (windows_nat_target::resume): Use %x when logging
1867 2019-10-15 Tom Tromey <tromey@adacore.com>
1869 * windows-nat.c (windows_nat_target::fetch_registers)
1870 (windows_nat_target::store_registers): Rename "pid" to "tid".
1872 2019-10-15 Tom Tromey <tromey@adacore.com>
1874 * gdbarch.h, gdbarch.c: Rebuild.
1875 * gdbarch.sh (gcc_target_options): Change return type to
1877 * compile/compile.c (get_args): Update.
1878 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
1879 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
1881 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
1883 * arch-utils.c (default_gcc_target_options): Return std::string.
1884 * arch-utils.h (default_gcc_target_options): Return std::string.
1885 * s390-tdep.c (s390_gcc_target_options): Return std::string.
1887 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1889 * breakpoint.c (breakpoint_chain): Make static.
1890 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
1891 of accessing breakpoint_chain.
1893 2019-10-15 Christian Biesinger <cbiesinger@google.com>
1895 * breakpoint.c (iterate_over_breakpoints): Change function pointer
1896 to a gdb::function_view and return value to bool.
1897 * breakpoint.h (iterate_over_breakpoints): Likewise.
1898 * dummy-frame.c (pop_dummy_frame_bpt): Update.
1899 (pop_dummy_frame): Update.
1900 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
1901 (gdbscm_breakpoints): Update.
1902 * python/py-breakpoint.c (build_bp_list): Update.
1903 (gdbpy_breakpoints): Update.
1904 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1906 (bpfinishpy_handle_stop): Update.
1907 (bpfinishpy_handle_exit): Update.
1908 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
1909 (svr4_update_solib_event_breakpoints): Update.
1911 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
1913 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
1914 when unwrapping single-field structs.
1916 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1918 * dwarf2read.c: Remove includes.
1920 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
1922 * ui-out.c (ui_out::call_do_message): Silence
1923 -Wformat-nonliteral warning.
1925 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
1927 * breakpoint.c: Remove some includes: continuations.h, skip.h,
1928 mi/mi-main.h, readline/readline.h, readline/history.h. Add
1929 include: readline/tilde.h.
1931 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1933 * remote.c (remote_target::get_trace_status): Remove declaration of
1934 trace_regblock_size.
1936 2019-10-12 Christian Biesinger <cbiesinger@google.com>
1938 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
1939 (show_user): Remove declaration of cmdlist.
1940 * cli/cli-cmds.h (max_user_call_depth): Declare.
1941 * cli/cli-script.c (execute_user_command): Remove declaration
1942 of max_user_call_depth.
1944 2019-10-11 Jim Wilson <jimw@sifive.com>
1946 * gdbsupport/print-utils.h (pulongest): Fix comment.
1947 (plongest): Likewise.
1948 (phex): Add missing comment, mention leading zeros.
1949 (phex_nz): Add mention of no leading zeros to comment.
1951 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
1952 plongest instead of unsigned long long cast.
1954 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1956 * main.c (captured_main_1): Include gdbtk.h and remove declarations
1957 for external_editor_command and gdbtk_test.
1959 2019-10-10 Christian Biesinger <cbiesinger@google.com>
1961 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
1962 * varobj.c (varobjdebug): Move comment to...
1963 * varobj.h (varobjdebug): ...here, and declare.
1965 2019-10-09 Tom Tromey <tom@tromey.com>
1967 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
1970 2019-10-09 Tom Tromey <tom@tromey.com>
1972 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
1973 * tui/tui-stack.c (tui_locator_window::rerender): Update.
1974 * tui/tui-command.c (tui_cmd_window::resize)
1975 (tui_refresh_cmd_win): Update.
1976 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
1977 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
1978 * tui/tui-data.c (~tui_gen_win_info): Remove.
1979 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
1980 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
1981 (tui_redisplay_readline, tui_mld_flush)
1982 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
1983 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
1984 (tui_data_window::erase_data_content)
1985 (tui_data_item_window::rerender)
1986 (tui_data_item_window::refresh_window): Update.
1987 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
1988 (box_win, tui_gen_win_info::make_window)
1989 (tui_gen_win_info::make_visible): Update.
1990 (tui_delete_win): Remove.
1991 * tui/tui-winsource.c
1992 (tui_source_window_base::do_erase_source_content): Update.
1993 (tui_show_source_line, tui_source_window_base::update_tab_width)
1994 (tui_source_window_base::update_exec_info): Update.
1995 * tui/tui-data.h (struct curses_deleter): New.
1996 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
1997 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
1999 2019-10-09 Tom Tromey <tom@tromey.com>
2001 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2003 2019-10-09 Tom Tromey <tom@tromey.com>
2005 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2006 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2008 2019-10-09 Tom Tromey <tom@tromey.com>
2010 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2011 window height directly.
2012 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2014 * tui/tui-layout.c (tui_default_win_height): Remove.
2015 (tui_default_win_viewport_height): Remove.
2017 2019-10-09 Tom Tromey <tom@tromey.com>
2019 * tui/tui.h: Remove comments.
2021 2019-10-09 Tom de Vries <tdevries@suse.de>
2023 * python/lib/gdb/printer/bound_registers.py: Use
2024 '^builtin_type_bound128' as regexp argument for
2025 add_builtin_pretty_printer.
2027 2019-10-09 Christian Biesinger <cbiesinger@google.com>
2029 * guile/guile.c (guile_extension_script_ops): Remove forward
2030 declaration and mark as static.
2031 (guile_script_ops): Likewise.
2032 (extension_language_guile): Move further down in the file so
2033 it can reference the definitions for guile_{extension_,}script_ops.
2035 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2037 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2038 except SORTL, DFLTCC, and KDSA.
2040 2019-10-08 Tom Tromey <tromey@adacore.com>
2042 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2043 (struct safe_symbol_file_add_args): Remove.
2045 2019-10-08 Tom Tromey <tromey@adacore.com>
2047 * windows-nat.c: Don't include buildsym-legacy.h.
2049 2019-10-08 Tom Tromey <tromey@adacore.com>
2051 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2053 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2055 * gdbtypes.c (overload_debug): Move comment to header.
2056 * gdbtypes.h (overload_debug): Declare.
2057 * valops.c: Remove declaration of overload_debug, instead
2060 2019-10-08 Christian Biesinger <cbiesinger@google.com>
2062 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2064 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2066 * language.h (lang_frame_mismatch_warn): ... here. Also add
2068 * top.c (lang_frame_mismatch_warn): Remove declaration.
2069 (check_frame_language_change): Pass lang_frame_mismatch_warn
2072 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2074 * c-lang.h (vtbl_ptr_name): Declare.
2075 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2077 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2079 2019-10-07 Christian Biesinger <cbiesinger@google.com>
2081 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2084 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2086 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2087 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
2088 * ctfread.c: New file.
2089 * ctfread.h: New file.
2090 * elfread.c: Include ctfread.h.
2091 (struct elfinfo text_p): New member ctfsect.
2092 (elf_locate_sections): Mark CTF section.
2093 (elf_symfile_read): Call elfctf_build_psymtabs.
2094 * Makefile.in (LIBCTF): Add.
2097 (DIST): Add ctfread.c.
2099 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2101 * ctfread.c (struct nextfield): Renamed to ...
2102 (struct ctf_nextfield): ... this.
2103 (struct field_info): Renamed to ...
2104 (strut ctf_field_info): ... this.
2105 (attach_fields_to_type): Update for renamed structures.
2106 (ctf_add_member_cb): Likewise.
2107 (ctf_add_enum_member_cb): Likewise.
2108 (process_struct_members): Likewise.
2109 (process_enum_type): Likewise.
2111 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
2113 * tracectf.h: Rename, was ctf.h.
2114 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2115 * tracefile.c: Likewise.
2116 * tracepoint.c: Remove unused include ctf.h.
2117 * mi/mi-main.c: Likewise.
2118 * Makefile.in Replace ctf.c with tracectf.c.
2120 2019-10-06 Joel Brobecker <brobecker@adacore.com>
2122 * version.in: Change version number to "9.0.50.DATE-git".
2124 2019-10-03 Tom Tromey <tom@tromey.com>
2127 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2129 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2131 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2132 cp_search_name_hash.
2133 * NEWS: Add entry about nested function support.
2135 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2136 Andrew Burgess <andrew.burgess@embecosm.com>
2138 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2139 for nested static variables when searchin VAR_DOMAIN.
2140 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2141 global scope, update comment.
2142 (add_partial_subprogram): Call add_partial_subprogram recursively
2143 for nested subroutines when processinng Fortran.
2144 (load_partial_dies): Process the child entities of a subprogram
2145 when processing Fortran.
2146 (partial_die_parent_scope): Handle building scope
2147 for Fortran nested functions.
2148 (process_die): Record that nested functions have a scope.
2149 (new_symbol): Always record Fortran subprograms on the global
2151 (determine_prefix): How to build the prefix for Fortran
2154 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2156 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2157 have just sent the thread a SIGSTOP and are waiting for it to
2160 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2162 * btrace.c (btrace_add_pc): Remove whitespace before the template
2163 parameter in 'std::vector <...>'.
2164 (parse_xml_btrace_block): Likewise.
2165 (btrace_maint_decode_pt): Likewise.
2166 (btrace_maint_update_packets): Likewise.
2167 (btrace_maint_print_packets): Likewise.
2168 * btrace.h (struct btrace_maint_info): Likewise.
2169 * dwarf2read.c (struct type_unit_group): Likewise.
2170 (build_type_psymtabs_reader): Likewise.
2171 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2172 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2173 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2175 2019-10-03 Tom de Vries <tdevries@suse.de>
2177 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2178 the first line of the help text for set/show style metadata.
2180 2019-10-02 Tom Tromey <tromey@adacore.com>
2182 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2183 * gdbsupport/common-inferior.c: New file.
2184 * infcmd.c (startup_with_shell): Don't define.
2185 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2186 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2187 * inferior.h (startup_with_shell): Don't declare.
2189 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2191 * gdbsupport/gdb_assert.h: Include errors.h.
2192 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2194 2019-10-02 Tom Tromey <tromey@adacore.com>
2196 * NEWS: Add $_ada_exception entry.
2197 * ada-lang.c (struct ada_catchpoint): Add constructor.
2198 <m_kind>: New member.
2199 (allocate_location_exception, re_set_exception): Remove
2201 (should_stop_exception): Compute $_ada_exception.
2202 (check_status_exception, print_it_exception)
2203 (print_one_exception, print_mention_exception): Remove
2205 (allocate_location_catch_exception, re_set_catch_exception)
2206 (check_status_exception, print_it_catch_exception)
2207 (print_one_catch_exception, print_mention_catch_exception)
2208 (print_recreate_catch_exception)
2209 (allocate_location_catch_exception_unhandled)
2210 (re_set_catch_exception_unhandled)
2211 (check_status_exception, print_it_catch_exception_unhandled)
2212 (print_one_catch_exception_unhandled)
2213 (print_mention_catch_exception_unhandled)
2214 (print_recreate_catch_exception_unhandled)
2215 (allocate_location_catch_assert, re_set_catch_assert)
2216 (check_status_assert, print_it_catch_assert)
2217 (print_one_catch_assert, print_mention_catch_assert)
2218 (print_recreate_catch_assert)
2219 (allocate_location_catch_handlers, re_set_catch_handlers)
2220 (check_status_handlers, print_it_catch_handlers)
2221 (print_one_catch_handlers, print_mention_catch_handlers)
2222 (print_recreate_catch_handlers): Remove.
2223 (create_ada_exception_catchpoint): Update.
2224 (initialize_ada_catchpoint_ops): Update.
2226 2019-10-02 Tom Tromey <tromey@adacore.com>
2228 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
2229 (create_excep_cond_exprs): Simplify exception string computation.
2230 (ada_exception_catchpoint_cond_string): Likewise.
2232 2019-10-02 Tom Tromey <tromey@adacore.com>
2234 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
2235 * ada-lang.c (lesseq_defined_than): Handle
2237 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
2239 (dwarf2_has_info): Likewise.
2240 (new_symbol): Set maybe_copied on symbol when
2242 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
2244 <can_copy>: New member.
2245 * elfread.c (record_minimal_symbol): Set maybe_copied
2246 on symbol when appropriate.
2247 (elf_symfile_read): Update call to dwarf2_has_info.
2248 * minsyms.c (lookup_minimal_symbol_linkage): New
2250 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
2251 * symtab.c (get_symbol_address, get_msymbol_address):
2253 * symtab.h (get_symbol_address, get_msymbol_address):
2255 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
2257 (struct symbol, struct minimal_symbol) <maybe_copied>:
2260 2019-10-02 Tom Tromey <tromey@adacore.com>
2262 * source.c (struct current_source_location): New.
2263 (current_source_key): New global.
2264 (current_source_symtab, current_source_line)
2265 (current_source_pspace): Remove.
2266 (get_source_location): New function.
2267 (get_current_source_symtab_and_line)
2268 (set_default_source_symtab_and_line)
2269 (set_current_source_symtab_and_line)
2270 (clear_current_source_symtab_and_line, select_source_symtab)
2271 (info_source_command, print_source_lines_base)
2272 (info_line_command, search_command_helper, _initialize_source):
2275 2019-10-02 Tom Tromey <tromey@adacore.com>
2277 * source.c (select_source_symtab): Don't call
2278 decode_line_with_current_source.
2280 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2282 * symtab.c (lookup_global_symbol): Search global block.
2284 2019-10-02 Tom Tromey <tromey@adacore.com>
2286 * coffread.c (process_coff_symbol): Update.
2287 * dwarf2read.c (var_decode_location, new_symbol): Update.
2288 * mdebugread.c (parse_symbol): Update.
2289 * objfiles.c (relocate_one_symbol): Update.
2290 * stabsread.c (define_symbol, fix_common_block)
2291 (scan_file_globals): Update.
2292 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2293 (SET_SYMBOL_VALUE_ADDRESS): New macro.
2294 * xcoffread.c (process_xcoff_symbol): Update.
2296 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
2298 * MAINTAINERS: Update my email address.
2300 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2302 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
2304 (build_type_psymtabs_reader): Update for std::vector.
2305 (build_type_psymtab_dependencies): Likewise.
2306 * dwarf2read.h: Remove use of DEF_VEC_P.
2307 (typedef sig_type_ptr): Delete.
2309 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2311 * btrace.c (btrace_maint_clear): Update to handle change from VEC
2313 (btrace_maint_decode_pt): Likewise, and move allocation of the
2314 vector outside of the loop.
2315 (btrace_maint_update_packets): Update to handle change from VEC to
2317 (btrace_maint_print_packets): Likewise.
2318 (maint_info_btrace_cmd): Likewise.
2319 * btrace.h: Remove use of DEF_VEC_O.
2320 (typedef btrace_pt_packet_s): Delete.
2321 (struct btrace_maint_info) <packets>: Change fromm VEC to
2323 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
2325 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2327 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
2328 make accesses into the vector constant references.
2329 (btrace_add_pc): Update for std::vector.
2330 (btrace_stitch_bts): Likewise.
2331 (parse_xml_btrace_block): Likewise.
2332 (btrace_maint_update_packets): Likewise.
2333 (btrace_maint_print_packets): Likewise.
2334 (maint_info_btrace_cmd): Likewise.
2335 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
2337 (btrace_data::empty): Likewise.
2338 (btrace_data_append): Likewise.
2339 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
2340 (typedef btrace_block_s): Delete.
2341 (struct btrace_block): Add constructor.
2342 (struct btrace_data_bts) <blocks>: Change to std::vector.
2343 * nat/linux-btrace.c (perf_event_read_bts): Update for
2345 (linux_read_bts): Likewise.
2347 2019-10-01 Tom Tromey <tom@tromey.com>
2349 * cli/cli-logging.c (show_logging_filename): Use styled_string.
2351 2019-10-01 Tom Tromey <tom@tromey.com>
2353 * stack.c (print_frame, info_frame_command_core): Use
2355 * linux-thread-db.c (try_thread_db_load_1)
2356 (try_thread_db_load_from_pdir_1): Use styled_string.
2357 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
2358 (auto_load_section_scripts, info_auto_load_local_gdbinit)
2359 (maybe_print_unsupported_script_warning)
2360 (maybe_print_script_not_found_warning): Use styled_string.
2361 * ada-lang.c (user_select_syms): Use styled_string.
2363 2019-10-01 Tom Tromey <tom@tromey.com>
2365 * p-lang.c (pascal_printstr): Use metadata style.
2366 * value.c (show_convenience): Use metadata style.
2367 * valprint.c (valprint_check_validity, val_print_optimized_out)
2368 (val_print_not_saved, val_print_unavailable)
2369 (val_print_invalid_address, generic_val_print, val_print)
2370 (value_check_printable, val_print_array_elements): Use metadata
2372 * ui-out.h (class ui_out) <field_fmt>: New overload.
2373 <do_field_fmt>: Add style parameter.
2374 * ui-out.c (ui_out::field_fmt): New overload.
2375 * typeprint.c (type_print_unknown_return_type)
2376 (val_print_not_allocated, val_print_not_associated): Use metadata
2378 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
2380 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
2381 * tracepoint.c (tvariables_info_1): Use metadata style.
2382 * stack.c (print_frame_arg, print_frame_info, print_frame)
2383 (info_frame_command_core): Use metadata style.
2384 * skip.c (info_skip_command): Use metadata style.
2385 * rust-lang.c (rust_print_enum): Use metadata style.
2386 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
2388 * python/py-framefilter.c (py_print_single_arg): Use metadata
2390 * printcmd.c (do_one_display, print_variable_and_value): Use
2392 * p-valprint.c (pascal_val_print)
2393 (pascal_object_print_value_fields): Use metadata style.
2394 * p-typeprint.c (pascal_type_print_base): Use metadata style.
2395 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
2397 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
2398 * m2-valprint.c (m2_print_long_set): Use metadata style.
2399 * m2-typeprint.c (m2_print_type): Use metadata style.
2400 * infcmd.c (print_return_value_1): Use metadata style.
2401 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
2402 * f-valprint.c (info_common_command_for_block): Use metadata
2404 * f-typeprint.c (f_type_print_base): Use metadata style.
2405 * expprint.c (print_subexp_standard): Use metadata style.
2406 * cp-valprint.c (cp_print_value_fields): Use metadata style.
2407 * cli/cli-style.h (class cli_style_option): Add constructor.
2408 (metadata_style): Declare.
2409 * cli/cli-style.c (metadata_style): New global.
2410 (_initialize_cli_style): Register metadata style.
2411 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
2413 * cli-out.c (cli_ui_out::do_field_fmt): Update.
2414 * c-typeprint.c (c_type_print_base_struct_union)
2415 (c_type_print_base_1): Use metadata style.
2416 * breakpoint.c (watchpoint_value_print)
2417 (print_one_breakpoint_location): Use metadata style.
2418 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
2420 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
2422 * ada-valprint.c (val_print_packed_array_elements, printstr)
2423 (print_field_values, ada_val_print_ref, ada_val_print): Use
2425 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
2427 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
2429 * ada-lang.c (user_select_syms): Use metadata style.
2431 2019-10-01 Tom Tromey <tom@tromey.com>
2433 * cli/cli-cmds.c (pwd_command): Style output.
2435 2019-10-01 Pedro Alves <palves@redhat.com>
2436 Tom Tromey <tom@tromey.com>
2438 * symtab.c (print_symbol_info): Use %ps.
2439 (print_msymbol_info): Use %ps.
2440 * symfile.c (symbol_file_add_with_addrs): Use %ps.
2441 * printcmd.c (print_variable_and_value): Use %ps.
2442 * macrocmd.c (show_pp_source_pos): Use %ps.
2443 * infrun.c (print_exited_reason): Use ui_out::message.
2444 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
2445 (describe_other_breakpoints): Use ui_out::message and new
2447 (say_where): Use new formats.
2448 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
2451 2019-10-01 Pedro Alves <palves@redhat.com>
2452 Tom Tromey <tom@tromey.com>
2454 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
2455 (test_gdb_formats): New function.
2456 (run_tests): Call it.
2457 (test_format_specifier): Update.
2458 * utils.h (fputs_filtered): Update comment.
2459 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
2460 (fputs_styled_unfiltered): Declare.
2461 * utils.c (fputs_styled_unfiltered): New function.
2462 (vfprintf_maybe_filtered): Add gdbfmt parameter.
2463 (vfprintf_filtered): Update.
2464 (vfprintf_unfiltered, vprintf_filtered): Update.
2465 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
2466 * ui-out.h (enum ui_out_flag) <unfiltered_output,
2467 disallow_ui_out_field>: New constants.
2468 (enum class field_kind): New.
2469 (struct base_field_s, struct signed_field_s): New.
2470 (signed_field): New function.
2471 (struct string_field_s): New.
2472 (string_field): New function.
2473 (struct styled_string_s): New.
2474 (styled_string): New function.
2475 (class ui_out) <message>: Add comment.
2476 <vmessage, call_do_message>: New methods.
2477 <do_message>: Add style parameter.
2478 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
2480 (ui_out::message): Rewrite.
2481 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
2483 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
2484 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
2485 gdb_extensions parameter.
2486 (class format_piece): Add parameter to constructor.
2487 (n_int_args): New field.
2488 * gdbsupport/format.c (format_pieces::format_pieces): Add
2489 gdb_extensions parameter. Handle '*'.
2490 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
2491 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
2492 vfprintf_styled_no_gdbfmt.
2493 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
2494 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
2496 * ui-style.h (struct ui_file_style) <ptr>: New method.
2498 2019-10-01 Tom Tromey <tom@tromey.com>
2500 * unittests/format_pieces-selftests.c: Update. Add final format.
2501 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
2502 empty literal pieces.
2504 2019-10-01 Tom Tromey <tom@tromey.com>
2506 * ui-out.h (enum class ui_out_style_kind): Remove.
2507 (class ui_out) <field_string, field_stsream, do_field_string>:
2508 Change type of "style".
2509 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
2510 (ui_out::field_string): Update.
2511 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
2513 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
2514 * tracepoint.c (print_one_static_tracepoint_marker): Update.
2515 * stack.c (print_frame_arg, print_frame_info, print_frame):
2517 * source.c (print_source_lines_base): Update.
2518 * solib.c (info_sharedlibrary_command): Update.
2519 * skip.c (info_skip_command): Update.
2520 * record-btrace.c (btrace_call_history_src_line)
2521 (btrace_call_history): Update.
2522 * python/py-framefilter.c (py_print_frame): Update.
2523 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
2525 * mi/mi-out.c (mi_ui_out::do_table_header)
2526 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
2527 (mi_ui_out::do_field_string): Update.
2528 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
2530 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
2532 * cli-out.c (cli_ui_out::do_table_header)
2533 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
2534 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
2535 (cli_ui_out::do_field_fmt): Update.
2536 * breakpoint.c (print_breakpoint_location): Update.
2537 (update_static_tracepoint): Update.
2539 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2541 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
2542 conversion of gdb_datadir.
2543 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
2544 remove not needed c_str ().
2546 2019-09-30 Ali Tamur <tamur@google.com>
2548 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
2549 (dwarf2_string_attr): Likewise.
2551 2019-09-30 Ali Tamur <tamur@google.com>
2553 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
2554 (process_full_type_unit): Likewise.
2555 (dump_die_shallow): Likewise.
2556 (cu_debug_loc_section): Likewise.
2558 2019-09-28 Christian Biesinger <cbiesinger@google.com>
2560 * minsyms.c (compare_minimal_symbols): Rename to...
2561 (minimal_symbol_is_less_than): ...this, and adjust to STL
2562 conventions (return bool, take arguments as references)
2563 (minimal_symbol_reader::install): Call std::sort instead
2566 2019-09-29 Christian Biesinger <cbiesinger@google.com>
2568 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
2570 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
2571 msymbol_hash, msymbol_demangled_hash>: Improve comments.
2573 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
2575 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
2576 * psympriv.h (add_psymbol_to_list): Move comment here and update
2579 2019-09-29 Tom de Vries <tdevries@suse.de>
2581 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
2582 Use $tmpdir/$(basename "$output_file").dwz instead of
2583 "${output_file}.dwz".
2585 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2588 * hppa-linux-nat.c: Include gdbarch.h.
2590 2019-09-26 Christian Biesinger <cbiesinger@google.com>
2592 * blockframe.c (find_pc_partial_function): Change return type to bool.
2593 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
2594 * minsyms.c (in_gnu_ifunc_stub): Likewise.
2595 (stub_gnu_ifunc_resolve_name): Likewise.
2596 * symtab.c (compare_filenames_for_search): Likewise.
2597 (compare_glob_filenames_for_search): Likewise.
2598 (matching_obj_sections): Likewise.
2599 (symbol_matches_domain): Likewise.
2600 (find_line_symtab): Change out param EXACT_MATCH to bool *.
2601 (find_line_pc): Change return type to bool.
2602 (find_line_pc_range): Likewise.
2603 (producer_is_realview): Likewise.
2604 * symtab.h (symbol_matches_domain): Likewise.
2605 (find_pc_partial_function): Likewise.
2606 (find_pc_line_pc_range): Likewise.
2607 (in_gnu_ifunc_stub): Likewise.
2608 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
2609 (find_line_pc): Likewise.
2610 (find_line_pc_range): Likewise.
2611 (matching_obj_sections): Likewise.
2612 (find_line_symtab): Change out parameter to bool.
2613 (producer_is_realview): Change return type to bool.
2614 (compare_filenames_for_search): Likewise.
2615 (compare_glob_filenames_for_search): Likewise.
2617 2019-09-26 Tom Tromey <tom@tromey.com>
2619 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
2620 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
2621 * gdb_usleep.h: Remove.
2622 * gdb_usleep.c: Remove.
2623 * utils.c: Don't include gdb_usleep.h.
2625 2019-09-26 Tom Tromey <tromey@adacore.com>
2627 * python/py-type.c (type_to_type_object): Call check_typedef
2630 2019-09-26 Tom Tromey <tom@tromey.com>
2632 * utils.h (initialize_utils): Don't declare.
2633 * top.c (gdb_init): Don't call initialize_utils.
2634 * utils.c (initialize_utils): Remove. Move contents...
2635 (_initialize_utils): ... here.
2637 2019-09-25 Tom Tromey <tom@tromey.com>
2639 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
2640 * utils.h (make_hex_string): Don't declare.
2641 * utils.c (make_hex_string): Remove.
2643 2019-09-24 Tom de Vries <tdevries@suse.de>
2646 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
2647 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
2649 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
2651 * NEWS: Mention new simulator port for PRU.
2653 2019-09-23 Christian Biesinger <cbiesinger@google.com>
2655 * ada-exp.y (write_object_remaining): Update.
2656 * ada-lang.c (ada_decode): Return a std::string instead of a char*
2657 and eliminate the static buffer.
2658 (ada_decode_symbol): Update.
2659 (ada_la_decode): Update.
2660 (ada_sniff_from_mangled_name): Update.
2661 (is_valid_name_for_wild_match): Update.
2662 (ada_lookup_name_info::matches): Update and simplify.
2663 (name_matches_regex): Update.
2664 (ada_add_global_exceptions): Update.
2665 * ada-lang.h (ada_decode): Update signature.
2666 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
2667 * dwarf-index-write.c (debug_names::insert): Update.
2669 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2671 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
2674 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
2676 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
2677 Change "nonzero" to "true" in documentation.
2679 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2681 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
2682 (_initialize_darwin_solib): Don't set
2683 darwin_so_ops.lookup_lib_global_symbol.
2684 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
2685 set_gdbarch_iterate_over_objfiles_in_search_order.
2686 (elf_lookup_lib_symbol): Rename to...
2687 (svr4_iterate_over_objfiles_in_search_order): this, and update
2688 to iterate semantics.
2689 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
2690 * solib.c (solib_global_lookup): Remove.
2691 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
2692 (solib_global_lookup): Remove.
2693 * symtab.c (lookup_global_or_static_symbol): Remove call to
2694 solib_global_lookup.
2696 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2698 * NEWS: Move entries about default MI version now being
2699 version 3, and about the GDB/MI fix for multi-location
2700 breakpoints to the "since GDB 8.3" section.
2702 2019-09-20 Joel Brobecker <brobecker@adacore.com>
2706 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2708 * NEWS: Mention that Cell/B.E. debugging support was removed.
2709 * MAINTAINERS: Remove spu target.
2711 * config/djgpp/fnchange.lst: Remove entries for removed files.
2713 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
2714 spu-multiarch.o, and spu-tdep.o.
2715 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
2716 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
2717 spu-multiarch.c, and spu-tdep.c.
2718 * spu-linux-nat.c: Remove file.
2719 * spu-multiarch.c: Remove file.
2720 * spu-tdep.c: Remove file.
2721 * spu-tdep.h: Remove file.
2722 * solib-spu.c: Remove file.
2723 * solib-spu.h: Remove file.
2725 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
2726 * configure.nat (spu-linux): Remove.
2727 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
2728 solib-multiarch.o from gdb_target_obs.
2731 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
2733 (ppc_linux_no_features): Update.
2734 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
2736 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
2737 (tdesc_powerpc_cell64l): Likewise.
2738 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
2739 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
2741 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
2742 Do not include "features/rs6000/powerpc-cell32l.c" or
2743 "features/rs6000/powerpc-cell64l.c".
2744 (ppc_linux_spu_section): Remove.
2745 (ppc_linux_core_read_description): Remove Cell/B.E. support.
2746 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
2747 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
2748 (ppc_linux_spe_context_lookup): Remove.
2749 (ppc_linux_spe_context_inferior_created): Remove.
2750 (ppc_linux_spe_context_solib_loaded): Remove.
2751 (ppc_linux_spe_context_solib_unloaded): Remove.
2752 (ppc_linux_spe_context): Remove.
2753 (struct ppu2spu_cache): Remove.
2754 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
2755 (struct ppu2spu_data): Remove.
2756 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
2757 ppu2spu_unwind): Remove.
2758 (ppc_linux_init_abi): Remove Cell/B.E. support.
2759 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
2761 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
2762 (rs6000/powerpc-cell64l-expedite): Likewise
2763 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
2764 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
2765 rs6000/powerpc-cell64l.xml.
2766 * features/rs6000/powerpc-cell32l.xml: Remove.
2767 * features/rs6000/powerpc-cell64l.xml: Likewise.
2768 * features/rs6000/powerpc-cell32l.c: Remove generated file.
2769 * features/rs6000/powerpc-cell64l.c: Likewise.
2770 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
2771 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
2772 * regformats/reg-spu.dat: Remove.
2774 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
2775 * corelow.c (struct spuid_list): Remove.
2776 (add_to_spuid_list): Remove.
2777 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2778 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
2779 (remote_protocol_features): Remove associated entries.
2780 (_initialize_remote): No longer initialize them.
2781 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2782 * linux-nat.c (SPUFS_MAGIC): Remove.
2783 (linux_proc_xfer_spu): Remove.
2784 (spu_enumerate_spu_ids): Remove.
2785 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
2786 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
2787 (linux_make_corefile_notes): No longer call it.
2789 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
2790 (cooked_write_test): Likewise.
2792 2019-09-20 Tom Tromey <tom@tromey.com>
2794 * NEWS: Mention case-sensitivity of TUI commands.
2795 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
2796 (tui_set_win_height_command, parse_scrolling_args): Likewise.
2797 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
2799 2019-09-20 Tom Tromey <tom@tromey.com>
2801 * tui/tui-source.c (tui_source_window::set_contents): Use
2802 make_unique_xstrdup.
2803 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
2804 make_unique_xstrdup.
2806 2019-09-20 Tom Tromey <tom@tromey.com>
2808 * tui/tui-data.c: Remove separator comments.
2809 * tui/tui-layout.c: Remove separator comments.
2810 * tui/tui-win.c: Remove separator comments.
2811 * tui/tui-wingeneral.c: Remove separator comments.
2813 2019-09-20 Tom Tromey <tom@tromey.com>
2815 * tui/tui.h (strcat_to_buf): Don't declare.
2816 * tui/tui.c (strcat_to_buf): Remove.
2818 2019-09-20 Tom Tromey <tom@tromey.com>
2820 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
2822 * tui/tui-source.c (tui_source_window::set_contents)
2823 (tui_source_window::location_matches_p)
2824 (tui_source_window::maybe_update): Update.
2826 2019-09-20 Tom Tromey <tom@tromey.com>
2828 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
2830 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
2832 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2833 (tui_data_window::line_from_reg_element_no)
2834 (tui_data_window::first_reg_element_no_inline)
2835 (tui_data_window::show_registers)
2836 (tui_data_window::show_register_group)
2837 (tui_data_window::display_registers_from)
2838 (tui_data_window::display_registers_from_line)
2839 (tui_data_window::first_data_item_displayed)
2840 (tui_data_window::delete_data_content_windows)
2841 (tui_data_window::erase_data_content)
2842 (tui_data_window::do_scroll_vertical)
2843 (tui_data_window::refresh_window)
2844 (tui_data_window::check_register_values): Update.
2846 2019-09-20 Tom Tromey <tom@tromey.com>
2848 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
2849 (struct tui_locator_window) <full_name, proc_name>: Now
2851 * tui/tui-stack.c (tui_locator_window::make_status_line)
2852 (tui_locator_window::set_locator_fullname)
2853 (tui_locator_window::set_locator_info): Update.
2854 * tui/tui-source.c (tui_source_window::set_contents)
2855 (tui_source_window::showing_source_p): Update.
2857 2019-09-20 Tom Tromey <tom@tromey.com>
2859 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2860 Don't call tui_locator_win_info_ptr.
2862 2019-09-20 Tom Tromey <tom@tromey.com>
2864 * tui/tui-win.c (tui_resize_all): Don't call refresh.
2866 2019-09-20 Tom Tromey <tom@tromey.com>
2868 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
2870 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
2871 * tui/tui-layout.c (show_source_disasm_command, show_data)
2872 (show_source_or_disasm_and_command): Use 1 as height for locator.
2874 2019-09-20 Tom Tromey <tom@tromey.com>
2876 * tui/tui.c (tui_enable): Update.
2877 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
2879 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
2881 * tui/tui-data.c (win_resized): Now bool.
2882 (tui_win_resized): Return bool.
2883 (tui_set_win_resized_to): Accept a bool.
2885 2019-09-20 Tom Tromey <tom@tromey.com>
2887 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
2888 Change type of "refresh_values_only".
2889 * tui/tui-regs.c (tui_data_window::show_register_group): Change
2890 type of "refresh_values_only".
2892 2019-09-20 Tom Tromey <tom@tromey.com>
2894 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
2896 (tui_disassemble): Add "pos" parameter.
2897 (tui_disasm_window::set_contents): Simplify.
2899 2019-09-20 Tom Tromey <tom@tromey.com>
2901 * tui/tui-winsource.h (struct tui_source_window_base)
2902 <show_source_content>: Now private.
2903 * tui/tui-winsource.c
2904 (tui_source_window_base::show_source_content): Don't handle empty
2907 2019-09-20 Tom Tromey <tom@tromey.com>
2909 * tui/tui-layout.c (show_source_disasm_command)
2910 (show_source_or_disasm_and_command): Don't call
2911 show_source_content.
2913 2019-09-20 Tom Tromey <tom@tromey.com>
2915 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
2917 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
2918 from tui_make_status_line.
2919 (tui_locator_window::rerender): Update.
2921 2019-09-20 Tom Tromey <tom@tromey.com>
2923 * tui/tui-stack.c (tui_make_status_line): Return std::string.
2924 (tui_locator_window::rerender): Update.
2926 2019-09-20 Tom Tromey <tom@tromey.com>
2928 * tui/tui-winsource.h (struct tui_source_window_base)
2929 <~tui_source_window_base>: Don't declare.
2931 * tui/tui-winsource.c (~tui_source_window_base): Remove.
2932 * tui/tui-source.h (struct tui_source_window) <fullname>: New
2934 * tui/tui-source.c (tui_source_window::set_contents): Update.
2935 (tui_source_window::location_matches_p)
2936 (tui_source_window::maybe_update): Update.
2938 2019-09-20 Tom Tromey <tom@tromey.com>
2940 * tui/tui-winsource.h (~tui_source_element): Remove.
2941 (tui_source_element): Update.
2942 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
2943 * tui/tui-winsource.c (tui_show_source_line): Update.
2944 * tui/tui-source.c (tui_source_window::set_contents): Update.
2945 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2947 2019-09-20 Tom Tromey <tom@tromey.com>
2949 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
2951 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
2952 tui_clear_source_windows_detail.
2953 * tui/tui-winsource.h (struct tui_source_window_base)
2954 <clear_detail>: Don't declare.
2955 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
2957 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
2959 2019-09-20 Tom Tromey <tromey@adacore.com>
2962 * block.c (contained_in): Fix final return value.
2964 2019-09-20 Alan Modra <amodra@gmail.com>
2966 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
2967 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
2968 (read_indirect_string_from_dwz): Use bfd accessor.
2969 * dwarf2read.h (struct dwz_file <filename>): Likewise.
2970 * machoread.c (macho_symfile_read_all_oso): Likewise.
2971 * solib.c (solib_bfd_open): Likewise.
2973 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2975 * eval.c: Move declaration of overload_resolution to...
2978 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2980 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
2981 * arm-linux-tdep.c: Likewise.
2982 * arm-nbsd-nat.c: Likewise.
2983 * arm-tdep.h: Declare arm_apcs_32.
2984 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
2986 2019-09-19 Christian Biesinger <cbiesinger@google.com>
2988 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
2989 * dwarf2read.h: Declare dwarf_always_disassemble.
2991 2019-09-19 Tom de Vries <tdevries@suse.de>
2994 * source-cache.c (source_cache::ensure): Catch exception thrown during
2995 construction of the highlighter.
2997 2019-09-18 Alan Modra <amodra@gmail.com>
2999 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3000 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3001 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3002 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3003 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3004 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3005 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3006 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3007 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3008 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3009 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3010 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3011 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3012 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3013 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3014 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3015 * mi/mi-interp.c: Update throughout for bfd section macro and
3017 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3018 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3020 2019-09-18 Tom Tromey <tom@tromey.com>
3023 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3025 (tui_enable): Do not call rl_initialize.
3027 2019-09-18 Christian Groessler <chris@groessler.org>
3029 * alpha-linux-nat.c: Include gdbarch.h.
3031 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3033 * ui-file.c: Include cli/cli-style.h.
3034 (term_cli_styling): Remove cli_styling declaration.
3036 2019-09-18 Alan Modra <amodra@gmail.com>
3038 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3039 to bfd_asymbol_section.
3041 2019-09-18 Alan Modra <amodra@gmail.com>
3043 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3044 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3045 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3047 2019-09-18 Alan Modra <amodra@gmail.com>
3049 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3050 * spu-linux-nat.c (spu_bfd_open): Likewise.
3052 2019-09-18 Christian Biesinger <cbiesinger@google.com>
3054 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3055 to bool to match definition in dwarf2read.c.
3057 2019-09-17 Christian Biesinger <cbiesinger@google.com>
3059 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3060 (print_signatures): Likewise.
3061 (trust_pad_over_xvs): Likewise.
3062 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3063 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3064 * arm-linux-nat.c (arm_apcs_32): Likewise.
3065 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3066 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3067 * arm-tdep.c (arm_debug): Likewise.
3068 (arm_apcs_32): Likewise.
3069 * auto-load.c (debug_auto_load): Likewise.
3070 (auto_load_gdb_scripts): Likewise.
3071 (global_auto_load): Likewise.
3072 (auto_load_local_gdbinit): Likewise.
3073 (auto_load_local_gdbinit_loaded): Likewise.
3074 * auto-load.h (global_auto_load): Likewise.
3075 (auto_load_local_gdbinit): Likewise.
3076 (auto_load_local_gdbinit_loaded): Likewise.
3077 * breakpoint.c (disconnected_dprintf): Likewise.
3078 (breakpoint_proceeded): Likewise.
3079 (automatic_hardware_breakpoints): Likewise.
3080 (always_inserted_mode): Likewise.
3081 (target_exact_watchpoints): Likewise.
3082 (_initialize_breakpoint): Update.
3083 * breakpoint.h (target_exact_watchpoints): Change to bool.
3084 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3085 * cli/cli-cmds.c (trace_commands): Likewise.
3086 * cli/cli-cmds.h (trace_commands): Likewise.
3087 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3089 * cli/cli-logging.c (logging_overwrite): Change to bool.
3090 (logging_redirect): Likewise.
3091 (debug_redirect): Likewise.
3092 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3093 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3095 <boolean_option_def>: Update.
3096 (struct flag_option_def): Change default type of Context to bool
3098 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3099 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3100 (get_setshow_command_value_string): Likewise.
3101 * cli/cli-style.c (cli_styling): Change to bool.
3102 (source_styling): Likewise.
3103 * cli/cli-style.h (source_styling): Likewise.
3104 (cli_styling): Likewise.
3105 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3107 * command.h (var_types): Update comment.
3108 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3109 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3111 (debug_compile_cplus_scopes): Likewise.
3112 * compile/compile-internal.h (compile_debug): Likewise.
3113 * compile/compile.c (compile_debug): Likewise.
3114 (struct compile_options) <raw>: Likewise.
3115 * cp-support.c (catch_demangler_crashes): Likewise.
3116 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3117 (usr_cmd_cris_dwarf2_cfi): Likewise.
3118 * csky-tdep.c (csky_debug): Likewise.
3119 * darwin-nat.c (enable_mach_exceptions): Likewise.
3120 * dcache.c (dcache_enabled_p): Likewise.
3121 * defs.h (info_verbose): Likewise.
3122 * demangle.c (demangle): Likewise.
3123 (asm_demangle): Likewise.
3124 * dwarf-index-cache.c (debug_index_cache): Likewise.
3125 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3126 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3127 * dwarf2read.c (check_physname): Likewise.
3128 (use_deprecated_index_sections): Likewise.
3129 (dwarf_always_disassemble): Likewise.
3130 * eval.c (overload_resolution): Likewise.
3131 * event-top.c (set_editing_cmd_var): Likewise.
3132 (exec_done_display_p): Likewise.
3133 * event-top.h (set_editing_cmd_var): Likewise.
3134 (exec_done_display_p): Likewise.
3135 * exec.c (write_files): Likewise.
3136 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3137 (debug_fbsd_nat): Likewise.
3138 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3140 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3141 <backtrace_past_entry> Likewise.
3142 * gdb-demangle.h (demangle): Likewise.
3143 (asm_demangle): Likewise.
3144 * gdb_bfd.c (bfd_sharing): Likewise.
3145 * gdbcore.h (write_files): Likewise.
3146 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3147 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3148 * gdbthread.h (print_thread_events): Likewise.
3149 * gdbtypes.c (opaque_type_resolution): Likewise.
3150 (strict_type_checking): Likewise.
3151 * gnu-nat.c (gnu_debug_flag): Likewise.
3152 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3153 * guile/scm-param.c (pascm_variable): Add boolval.
3154 (add_setshow_generic): Update.
3155 (pascm_param_value): Update.
3156 (pascm_set_param_value_x): Update.
3157 * hppa-tdep.c (hppa_debug): Change to bool..
3158 * infcall.c (may_call_functions_p): Likewise.
3159 (coerce_float_to_double_p): Likewise.
3160 (unwind_on_signal_p): Likewise.
3161 (unwind_on_terminating_exception_p): Likewise.
3162 * infcmd.c (startup_with_shell): Likewise.
3163 * inferior.c (print_inferior_events): Likewise.
3164 * inferior.h (startup_with_shell): Likewise.
3165 (print_inferior_events): Likewise.
3166 * infrun.c (step_stop_if_no_debug): Likewise.
3167 (detach_fork): Likewise.
3168 (debug_displaced): Likewise.
3169 (disable_randomization): Likewise.
3170 (non_stop): Likewise.
3171 (non_stop_1): Likewise.
3172 (observer_mode): Likewise.
3173 (observer_mode_1): Likewise.
3174 (set_observer_mode): Update.
3175 (sched_multi): Change to bool.
3176 * infrun.h (debug_displaced): Likewise.
3177 (sched_multi): Likewise.
3178 (step_stop_if_no_debug): Likewise.
3179 (non_stop): Likewise.
3180 (disable_randomization): Likewise.
3181 * linux-tdep.c (use_coredump_filter): Likewise.
3182 (dump_excluded_mappings): Likewise.
3183 * linux-thread-db.c (auto_load_thread_db): Likewise.
3184 (check_thread_db_on_load): Likewise.
3185 * main.c (captured_main_1): Update.
3186 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3187 xx2_opt, boolean_opt>: Change to bool.
3188 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3189 * maint.c (maintenance_profile_p): Likewise.
3190 (per_command_time): Likewise.
3191 (per_command_space): Likewise.
3192 (per_command_symtab): Likewise.
3193 * memattr.c (inaccessible_by_default): Likewise.
3194 * mi/mi-main.c (mi_async): Likewise.
3195 (mi_async_1): Likewise.
3196 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3197 * nat/fork-inferior.h (startup_with_shell): Likewise.
3198 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3199 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3200 * nios2-tdep.c (nios2_debug): Likewise.
3201 * or1k-tdep.c (or1k_debug): Likewise.
3202 * parse.c (parser_debug): Likewise.
3203 * parser-defs.h (parser_debug): Likewise.
3204 * printcmd.c (print_symbol_filename): Likewise.
3205 * proc-api.c (procfs_trace): Likewise.
3206 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3207 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3208 (set_parameter_value): Update.
3209 (add_setshow_generic): Update.
3210 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3212 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3214 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3215 * record-btrace.c (record_btrace_target::store_registers): Update.
3216 * record-full.c (record_full_memory_query): Change to bool.
3217 (record_full_stop_at_limit): Likewise.
3218 * record-full.h (record_full_memory_query): Likewise.
3219 * remote-notif.c (notif_debug): Likewise.
3220 * remote-notif.h (notif_debug): Likewise.
3221 * remote.c (use_range_stepping): Likewise.
3222 (interrupt_on_connect): Likewise.
3223 (remote_break): Likewise.
3224 * ser-tcp.c (tcp_auto_retry): Likewise.
3225 * ser-unix.c (serial_hwflow): Likewise.
3226 * skip.c (debug_skip): Likewise.
3227 * solib-aix.c (solib_aix_debug): Likewise.
3228 * spu-tdep.c (spu_stop_on_load_p): Likewise.
3229 (spu_auto_flush_cache_p): Likewise.
3230 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
3232 (struct info_print_options) <quiet>: Likewise.
3233 * symfile-debug.c (debug_symfile): Likewise.
3234 * symfile.c (auto_solib_add): Likewise.
3235 (separate_debug_file_debug): Likewise.
3236 * symfile.h (auto_solib_add): Likewise.
3237 (separate_debug_file_debug): Likewise.
3238 * symtab.c (basenames_may_differ): Likewise.
3239 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
3240 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
3241 (struct info_types_options) <quiet>: Likewise.
3242 * symtab.h (demangle): Likewise.
3243 (basenames_may_differ): Likewise.
3244 * target-dcache.c (stack_cache_enabled_1): Likewise.
3245 (code_cache_enabled_1): Likewise.
3246 * target.c (trust_readonly): Likewise.
3247 (may_write_registers): Likewise.
3248 (may_write_memory): Likewise.
3249 (may_insert_breakpoints): Likewise.
3250 (may_insert_tracepoints): Likewise.
3251 (may_insert_fast_tracepoints): Likewise.
3252 (may_stop): Likewise.
3253 (auto_connect_native_target): Likewise.
3254 (target_stop_and_wait): Update.
3255 (target_async_permitted): Change to bool.
3256 (target_async_permitted_1): Likewise.
3257 (may_write_registers_1): Likewise.
3258 (may_write_memory_1): Likewise.
3259 (may_insert_breakpoints_1): Likewise.
3260 (may_insert_tracepoints_1): Likewise.
3261 (may_insert_fast_tracepoints_1): Likewise.
3262 (may_stop_1): Likewise.
3263 * target.h (target_async_permitted): Likewise.
3264 (may_write_registers): Likewise.
3265 (may_write_memory): Likewise.
3266 (may_insert_breakpoints): Likewise.
3267 (may_insert_tracepoints): Likewise.
3268 (may_insert_fast_tracepoints): Likewise.
3269 (may_stop): Likewise.
3270 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
3271 (make_thread_apply_all_options_def_group): Change argument from int*
3273 (thread_apply_all_command): Update.
3274 (print_thread_events): Change to bool.
3275 * top.c (confirm): Likewise.
3276 (command_editing_p): Likewise.
3277 (history_expansion_p): Likewise.
3278 (write_history_p): Likewise.
3279 (info_verbose): Likewise.
3280 * top.h (confirm): Likewise.
3281 (history_expansion_p): Likewise.
3282 * tracepoint.c (disconnected_tracing): Likewise.
3283 (circular_trace_buffer): Likewise.
3284 * typeprint.c (print_methods): Likewise.
3285 (print_typedefs): Likewise.
3286 * utils.c (debug_timestamp): Likewise.
3287 (sevenbit_strings): Likewise.
3288 (pagination_enabled): Likewise.
3289 * utils.h (sevenbit_strings): Likewise.
3290 (pagination_enabled): Likewise.
3291 * valops.c (overload_resolution): Likewise.
3292 * valprint.h (struct value_print_options) <prettyformat_arrays,
3293 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
3294 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
3295 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
3297 * windows-nat.c (new_console): Likewise.
3298 (cygwin_exceptions): Likewise.
3299 (new_group): Likewise.
3300 (debug_exec): Likewise.
3301 (debug_events): Likewise.
3302 (debug_memory): Likewise.
3303 (debug_exceptions): Likewise.
3304 (useshell): Likewise.
3305 * windows-tdep.c (maint_display_all_tib): Likewise.
3306 * xml-support.c (debug_xml): Likewise.
3308 2019-09-17 Mike Gulick <mgulick@mathworks.com>
3310 * source.c (prepare_path_for_appending): New function.
3311 (openp): Make use of new function.
3312 (find_and_open_source): Search for the compilation directory and
3313 source file as a relative path beneath the directory search path.
3315 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
3317 * source-cache.c (source_cache::get_line_charpos): Catch
3318 exceptions and return false, this matches the behaviour documented
3321 2019-09-17 Joel Brobecker <brobecker@adacore.com>
3323 * ada-tasks.c (info_task): Remove quoting of the task's name.
3325 2019-09-16 Christian Biesinger <cbiesinger@google.com>
3327 * symfile.c (auto_solib_add): Replace comment with a reference
3330 2019-09-14 Christian Biesinger <cbiesinger@google.com>
3332 * NEWS: Mention that gdb can now be compiled with Python 3
3335 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3337 * maint.c (maint_print_section_data::maint_print_section_data):
3338 Force use of 'float log10 (float)' by casting the argument to
3341 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3343 * maint.c: Add 'cmath' include.
3344 (struct maint_print_section_data): New structure.
3345 (print_section_index): New function.
3346 (print_bfd_section_info): Add header comment, small whitespace
3347 cleanup, and update to call new print_section_index function.
3348 (print_objfile_section_info): Likewise.
3349 (maint_obj_section_from_bfd_section): New function.
3350 (print_bfd_section_info_maybe_relocated): New function.
3351 (maintenance_info_sections): Add header comment, always use
3352 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
3354 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
3356 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
3357 inner scope, add check that the objfile has psymtabs before
3358 checking psymtabs_addrmap.
3359 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
3361 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3363 * NEWS: Announce that Ada task names are now shown at more places,
3364 and between quotes (except in info task output).
3365 * gdb/ada-tasks.c (task_to_str): New function.
3366 (display_current_task_id): Call task_to_str.
3367 (task_command_1): Likewise.
3368 (print_ada_task_info): In non-mi mode, Properly align headers and data
3369 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
3371 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3373 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
3374 prstatus.pr_lwp.pr_info instead of making it up.
3376 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3378 * auto-load.c (auto_load_expand_dir_vars): Update.
3379 * defs.h (gdb_datadir): Change to std::string.
3380 (python_libdir): Likewise.
3381 (relocate_gdb_directory): Change return type to std::string.
3382 * guile/guile.c (gdbscm_data_directory): Update.
3383 (initialize_scheme_side): Update.
3384 * jit.c (jit_reader_dir): Change to std::string.
3385 (jit_reader_load_command): Update.
3386 * main.c (gdb_datadir): Change to std::string.
3387 (python_libdir): Likewise.
3388 (set_gdb_data_directory): Update.
3389 (relocate_path): Change to return std::string.
3390 (relocate_gdb_directory): Change to return std::string.
3391 (relocate_gdbinit_path_maybe_in_datadir): Update.
3392 (captured_main_1): Update.
3393 * python/python.c (do_start_initialization): Update.
3394 * top.c (show_gdb_datadir): Update.
3395 * xml-syscall.c (xml_init_syscalls_info): Update.
3396 (init_syscalls_info): Update.
3398 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3400 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
3401 out of get_init_files.
3402 (get_init_files): Update.
3404 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3406 * main.c (get_init_files): Change to use std::string.
3407 (captured_main_1): Update.
3408 (print_gdb_help): Update.
3410 2019-09-11 Ali Tamur <tamur@google.com>
3412 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
3415 2019-09-11 Christian Biesinger <cbiesinger@google.com>
3417 * dbxread.c (read_dbx_symtab): Update.
3418 * dwarf2read.c (load_partial_dies): Update.
3419 * mdebugread.c (parse_partial_symbols): Update.
3420 (handle_psymbol_enumerators): Update.
3421 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
3422 * psymtab.c (add_psymbol_to_bcache): Likewise.
3423 (add_psymbol_to_list): Likewise.
3424 * symtab.c (symbol_set_names): Likewise.
3425 * symtab.h (symbol_set_names): Likewise.
3426 * xcoffread.c (scan_xcoff_symtab): Update.
3428 2019-09-11 Tom Tromey <tom@tromey.com>
3430 * symfile-mem.c (symbol_file_add_from_memory): Use
3432 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
3433 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
3435 2019-09-10 Tom Tromey <tromey@adacore.com>
3437 * dwarf-index-write.c (write_psymbols): Extend error message.
3438 (debug_names::insert): Add Ada code.
3439 (debug_names::write_psymbols): Remove Ada check.
3440 (debug_names) <m_string_obstack>: New member.
3441 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
3442 (gdb_index_symbol_name_matcher::matches): Remove.
3443 (mapped_index_base::find_name_components_bounds): Add "lang"
3445 (mapped_index_base::build_name_components): Also split names
3446 according to Ada syntax.
3447 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
3448 type of "match_callback".
3449 (check_match, check_find_bounds_finds)
3450 (dw2_expand_symtabs_matching): Update.
3451 (dw2_debug_names_iterator): Add new constructor.
3452 (dw2_debug_names_map_matching_symbols): New function.
3453 (dw2_debug_names_expand_symtabs_matching): Update.
3454 (dwarf2_debug_names_functions): Use
3455 dw2_debug_names_map_matching_symbols.
3457 2019-09-10 Tom Tromey <tromey@adacore.com>
3459 * dwarf2read.c (dw2_get_file_names_reader): Add the
3460 CU's file name to the results.
3462 2019-09-10 Tom Tromey <tromey@adacore.com>
3464 * ada-lang.c (add_nonlocal_symbols): Combine calls to
3465 map_matching_symbols. Update.
3466 * dwarf2read.c (dw2_map_matching_symbols): Update.
3467 * psymtab.c (match_partial_symbol): Change type; update.
3468 (psym_map_matching_symbols): Likewise.
3469 * symfile-debug.c (debug_qf_map_matching_symbols): Change
3471 * symfile.h (struct quick_symbol_functions)
3472 <map_matching_symbols>: Change "name" to be a lookup_name_info.
3475 2019-09-10 Tom Tromey <tromey@adacore.com>
3477 * psymtab.c (map_block): Remove.
3478 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
3479 * symtab.c (iterate_over_symbols_terminated): New function.
3480 * symtab.c (iterate_over_symbols_terminated): Declare.
3482 2019-09-10 Tom Tromey <tromey@adacore.com>
3484 * ada-lang.c (ada_iterate_over_symbols): Return bool.
3485 * language.h (struct language_defn) <la_iterate_over_symbols>:
3487 * symtab.c (iterate_over_symbols): Return bool.
3488 * symtab.h (iterate_over_symbols): Return bool.
3490 2019-09-10 Tom Tromey <tromey@adacore.com>
3492 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
3493 (add_nonlocal_symbols): Update.
3494 * dwarf2read.c (dw2_map_matching_symbols): Change type.
3495 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
3496 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
3497 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
3498 Change type of "callback". Remove "data".
3501 2019-09-09 Ali Tamur <tamur@google.com>
3503 * dwarf2read.c (comp_unit_head): Update comment.
3504 (dwarf2_dwo_name): New function declaration.
3505 (dwarf_unit_type_name): New function declaration.
3506 (read_comp_unit_head): Add support for new compilation units,
3507 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
3508 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
3509 (currently named as "signature") in their header. Also clarify error
3511 (lookup_dwo_id): New function. Returns the dwo id of the given
3513 (lookup_dwo_unit): Use the new lookup_dwo_id function.
3514 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
3516 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
3517 (dwarf2_dwo_name): Get the dwo name if present.
3518 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
3521 2019-09-09 Tom Tromey <tom@tromey.com>
3523 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
3525 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3527 * python/python.c (do_start_initialization): Make progname_copy static,
3528 to avoid a leak report.
3530 2019-09-08 Tom Tromey <tom@tromey.com>
3532 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
3534 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
3536 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
3537 Change type to gdb::optional<block_enum>.
3538 (dw2_symtab_iter_init): Change block_index parameter type
3539 to gdb::optional<block_enum>.
3540 (dw2_lookup_symbol): Change block_index parameter
3541 type to block_enum.c
3542 (dw2_debug_names_lookup_symbol): Likewise.
3543 * psymtab.c (psym_lookup_symbol): Likewise.
3544 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
3545 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
3548 2019-09-06 Christian Biesinger <cbiesinger@google.com>
3550 * defs.h (relocate_gdb_directory): Change int to bool in
3551 signature and rename flag to relocatable.
3552 * main.c (relocate_path): Likewise.
3553 (relocate_gdb_directory): Likewise.
3555 2019-09-06 Alan Modra <amodra@gmail.com>
3557 * coffread.c (coff_symfile_read): Constify filename variable.
3558 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
3559 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
3560 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
3561 * solib.c (reload_shared_libraries_1): Likewise.
3562 * symfile.c (reread_symbols): Likewise.
3563 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
3564 * solib-darwin.c (darwin_bfd_open): Likewise.
3565 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
3567 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3569 * psymtab.c (print_partial_symbols): Handle missing domain_enum
3570 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
3572 2019-09-03 Tom Tromey <tromey@adacore.com>
3574 * ada-valprint.c (ada_val_print_num): Don't recurse for range
3576 (has_negatives): Unbias a range type bound.
3577 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
3578 * gdbtypes.c (operator==): Handle new field.
3579 (create_range_type): Add "bias" parameter.
3580 (create_static_range_type, resolve_dynamic_range): Update.
3581 * gdbtypes.h (struct range_bounds) <bias>: New member.
3582 (create_range_type): Add bias parameter.
3583 * printcmd.c (print_scalar_formatted): Unbias range types.
3584 * value.c (unpack_long): Unbias range types.
3585 (pack_long): Bias range types.
3587 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3589 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
3592 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3594 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
3595 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
3596 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
3597 (compile_probe_arg): Likewise.
3598 * probe.h (get_argument_count): Likewise.
3599 * solib-svr4.c (solib_event_probe_action): Likewise.
3600 * stap-probe.c (stap_probe::get_argument_count): Likewise.
3602 2019-09-02 Alan Hayward <alan.hayward@arm.com>
3604 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
3606 (svr4_create_solib_event_breakpoints): ...from here.
3608 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
3610 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
3611 suffix from warning message.
3613 2019-08-30 Tom Tromey <tom@tromey.com>
3615 * tui/tui-winsource.h (struct tui_source_window_base)
3616 <refresh_all>: Don't declare.
3617 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
3619 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
3620 tui_show_locator_content.
3621 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
3623 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
3624 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
3627 2019-08-30 Tom Tromey <tom@tromey.com>
3629 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
3631 2019-08-30 Tom Tromey <tom@tromey.com>
3633 * tui/tui-stack.c (_initialize_tui_stack): Move later.
3634 Remove unnecessary forward declarations.
3636 2019-08-30 Tom Tromey <tom@tromey.com>
3638 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
3640 (tui_update_locator_fullname, tui_show_frame_info): Don't call
3641 tui_show_locator_content.
3643 2019-08-30 Tom Tromey <tom@tromey.com>
3645 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
3646 (tui_locator_window::rerender): Rewrite using body of previous
3647 tui_show_locator_content.
3649 2019-08-30 Tom Tromey <tom@tromey.com>
3651 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
3652 set_locator_fullname>: New methods.
3653 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3654 Rename from tui_set_locator_fullname.
3655 (tui_locator_window::set_locator_info): Rename from
3656 tui_set_locator_info. Return bool.
3657 (tui_update_locator_fullname, tui_show_frame_info): Update.
3659 2019-08-30 Tom Tromey <tom@tromey.com>
3661 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
3663 2019-08-30 Tom Tromey <tom@tromey.com>
3665 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
3668 2019-08-30 Tom Tromey <tom@tromey.com>
3670 * tui/tui-wingeneral.c (box_win): Assume win_info and
3671 win_info->handle cannot be NULL.
3673 2019-08-30 Tom Tromey <tom@tromey.com>
3675 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
3676 refresh_window>: Declare.
3677 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
3679 (tui_data_item_window::rerender): Rename from
3680 tui_display_register.
3681 (tui_data_item_window::refresh_window): New method.
3682 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
3685 2019-08-30 Tom Tromey <tom@tromey.com>
3687 * tui/tui-regs.h (struct tui_data_window) <regs_content,
3688 regs_column_count, current_group>: Move later. Now private.
3689 <get_current_group>: New method.
3690 * tui/tui-regs.c (tui_reg_command): Update.
3691 * tui/tui-layout.c (tui_set_layout): Update.
3693 2019-08-30 Tom Tromey <tom@tromey.com>
3695 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3696 (tui_data_window::rerender): Don't call
3697 check_and_display_highlight_if_needed.
3698 (tui_data_window::refresh_all): Remove call to
3701 2019-08-30 Tom Tromey <tom@tromey.com>
3703 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3704 (tui_data_window::display_registers_from)
3705 (tui_data_window::display_reg_element_at_line)
3706 (tui_data_window::display_registers_from_line): Remove checks of
3709 2019-08-30 Tom Tromey <tom@tromey.com>
3711 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
3713 * tui/tui-regs.c (tui_data_window::show_registers): Call
3715 (tui_data_window::rerender): Rename from display_all_data.
3716 (tui_data_window::rerender): Remove old implementation.
3718 2019-08-30 Tom Tromey <tom@tromey.com>
3720 * tui/tui-regs.c (tui_data_window::display_all_data): Change
3722 * tui/tui-data.h (NO_DATA_STRING): Remove define.
3724 2019-08-29 Bernhard Wodok <barto@gmx.net>
3725 Sergio Durigan Junior <sergiodj@redhat.com>
3728 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
3730 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3732 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
3733 when searching for types.
3735 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
3737 * f-lang.c (f_language_defn): Use f_print_typedef.
3738 * f-lang.h (f_print_typedef): Declare.
3739 * f-typeprint.c (f_print_typedef): Define.
3741 2019-08-27 Christian Biesinger <cbiesinger@google.com>
3743 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
3745 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
3747 * cli/cli-utils.c (info_print_options_defs): Delete.
3748 (make_info_print_options_def_group): Delete.
3749 (extract_info_print_options): Delete.
3750 (info_print_command_completer): Delete.
3751 (info_print_args_help): Add extra parameter, and optionally
3752 include text about -n flag.
3753 * cli/cli-utils.h (struct info_print_options): Delete.
3754 (extract_info_print_options): Delete declaration.
3755 (info_print_command_completer): Delete declaration.
3756 (info_print_args_help): Add extra parameter, extend header
3758 * python/python.c (gdbpy_rbreak): Pass additional parameter to
3760 * stack.c (struct info_print_options): New type.
3761 (info_print_options_defs): New file scoped variable.
3762 (make_info_print_options_def_group): New static function.
3763 (info_print_command_completer): New static function.
3764 (info_locals_command): Update to use new local functions.
3765 (info_args_command): Likewise.
3766 (_initialize_stack): Add extra parameter to calls to
3767 info_print_args_help.
3768 * symtab.c (search_symbols): Add extra parameter, use this to
3769 possibly excluse non-debug symbols.
3770 (symtab_symbol_info): Add extra parameter, which is passed on to
3772 (struct info_print_options): New type.
3773 (info_print_options_defs): New file scoped variable.
3774 (make_info_print_options_def_group): New static function.
3775 (info_print_command_completer): New static function.
3776 (info_variables_command): Update to use local functions, and pass
3777 extra parameter through to symtab_symbol_info.
3778 (info_functions_command): Likewise.
3779 (info_types_command): Pass additional argument through to
3781 (rbreak_command): Pass extra argument to search_symbols.
3782 (_initialize_symtab): Add extra arguments for calls to
3783 info_print_args_help, and update help text for 'info variables',
3784 'whereis', and 'info functions' commands.
3785 * symtab.h (search_symbols): Add extra argument to declaration.
3786 * NEWS: Mention new flags.
3788 2019-08-26 Christian Biesinger <cbiesinger@google.com>
3790 * symtab.c (lookup_static_symbol): Call the new function (and move
3791 it down to be next to lookup_global_symbol).
3792 (struct global_sym_lookup_data): Add block_enum member and rename to...
3793 (struct global_or_static_sym_lookup_data): ...this.
3794 (lookup_symbol_global_iterator_cb): Pass block_index instead of
3795 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
3796 (lookup_symbol_global_or_static_iterator_cb): ...this.
3797 (lookup_global_or_static_symbol): New function.
3798 (lookup_global_symbol): Call new function.
3800 2019-08-26 Tom de Vries <tdevries@suse.de>
3803 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
3804 when pc_probe.prob == NULL.
3806 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3808 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
3809 variable symbol_linkage to symbol_linkage_.
3811 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
3813 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
3814 represent whether the symbol is static, dynamic, or we don't
3817 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
3819 * gdb/rx-tdep.c (rx_register_names): New.
3820 (rx_register_name): Delete.
3821 (rx_psw_type): Delete.
3822 (rx_fpsw_type): Delete.
3823 (rx_register_type): Delete.
3824 (rx_gdbarch_init): Convert target-descriptions.
3825 (_initialize_rx_tdep): Add initialize_tdesc_rx.
3826 * gdb/features/Makefile: Add rx.xml.
3827 * gdb/features/rx.xml: New.
3828 * gdb/features/rx.c: Generated.
3829 * gdb/NEWS: Mention target description support.
3831 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3833 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
3836 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
3838 * configure.ac: Don't check for 'dlfcn.h' (moved to
3839 gdbsupport/common.m4).
3840 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
3842 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
3843 * compile/compile-c-support.c: Include
3844 'gdbsupport/gdb-dlfcn.h'.
3845 * gdbsupport/common.m4: Check for 'dlfcn.h'.
3846 * gdb-dlfcn.c: Move to...
3847 * gdbsupport/gdb-dlfcn.c: ... here.
3848 * gdb-dlfcn.h: Move to...
3849 * gdbsupport/gdb-dlfcn.h: ... here.
3851 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
3853 * nios2-tdep.c (struct reg_value): Improve comments. Make
3854 the offset field signed.
3856 2019-08-22 Christian Biesinger <cbiesinger@google.com>
3858 * python/lib/gdb/__init__.py (_execute_file): New function.
3859 * python/python.c (python_run_simple_file): Call gdb._execute_file
3862 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
3864 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
3865 all uses as this was never set to anything but a zero value.
3867 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
3869 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
3871 2019-08-21 Christian Biesinger <cbiesinger@google.com>
3873 * tui/tui-data.h (tui_gen_win_info): Add an =default
3874 move constructor, required by some GCC versions.
3876 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
3878 * go32-nat.c (go32_sysinfo): Add hygon_p.
3880 2019-08-20 Tom Tromey <tom@tromey.com>
3882 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
3883 line_from_reg_element_no, first_reg_element_no_inline,
3884 display_all_data, delete_data_content_windows,
3885 erase_data_content>: Now private.
3887 2019-08-20 Tom Tromey <tom@tromey.com>
3889 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
3890 (tui_unhighlight_win, tui_highlight_win)
3891 (tui_win_info::make_window): Update.
3892 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
3894 2019-08-20 Tom Tromey <tom@tromey.com>
3896 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3897 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3898 (MAX_PID_WIDTH): Move to tui-stack.c.
3899 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
3900 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
3901 (MAX_PID_WIDTH): Move from tui-data.h.
3903 2019-08-20 Tom Tromey <tom@tromey.com>
3905 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
3906 * tui/tui-wingeneral.c (box_win): Change type of win_info.
3908 (tui_gen_win_info::make_window): Rename from tui_make_window.
3909 (tui_win_info::make_window): New method.
3910 (tui_gen_win_info::make_visible): Update.
3911 * tui/tui-source.c (tui_source_window::set_contents): Update.
3912 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3913 (tui_data_window::display_registers_from): Update.
3914 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3915 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
3919 (struct tui_win_info) <make_window>: Declare.
3920 <can_box>: Now virtual.
3921 <title>: New member.
3922 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
3923 * tui/tui-command.c (tui_cmd_window::resize): Update.
3925 2019-08-20 Tom Tromey <tom@tromey.com>
3927 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
3928 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3929 (tui_data_window::check_register_values): Update.
3931 2019-08-20 Tom Tromey <tom@tromey.com>
3933 * tui/tui-regs.h (struct tui_data_window): Use
3934 DISABLE_COPY_AND_ASSIGN.
3935 <regs_content>: Change type, removing unique_ptr.
3936 <tui_data_window>: Add move constructor.
3937 * tui/tui-regs.c (tui_data_window::show_registers)
3938 (tui_data_window::show_register_group)
3939 (tui_data_window::display_registers_from)
3940 (tui_data_window::display_registers_from)
3941 (tui_data_window::first_data_item_displayed)
3942 (tui_data_window::delete_data_content_windows)
3943 (tui_data_window::rerender, tui_data_window::refresh_window)
3944 (tui_data_window::check_register_values): Update.
3946 2019-08-20 Tom Tromey <tom@tromey.com>
3948 * tui/tui-regs.h (struct tui_data_window) <show_registers,
3949 show_register_group>: Declare.
3950 (tui_show_register_group): Don't declare.
3951 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
3953 (tui_data_window::show_register_group): Rename from
3954 tui_show_register_group.
3955 (tui_data_window::check_register_values, tui_reg_command):
3957 * tui/tui-layout.c (tui_set_layout): Update.
3959 2019-08-20 Tom Tromey <tom@tromey.com>
3961 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
3963 (tui_check_register_values): Don't declare.
3964 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
3965 from tui_check_register_values.
3966 * tui/tui-hooks.c (tui_register_changed): Update.
3968 2019-08-20 Tom Tromey <tom@tromey.com>
3970 * tui/tui-regs.c (tui_reg_layout): Move later.
3971 (tui_show_registers): Don't enable TUI mode or change layout.
3973 2019-08-20 Tom Tromey <tom@tromey.com>
3975 * tui/tui-regs.h (struct tui_data_item_window)
3976 <~tui_data_item_window>: Remove.
3977 <content>: Now a unique_xmalloc_ptr.
3978 * tui/tui-regs.c (tui_register_format): Return a
3980 (tui_get_register): Update.
3981 (~tui_data_item_window): Remove.
3982 (tui_data_window::display_registers_from, tui_display_register):
3984 * tui/tui-io.h (tui_expand_tabs): Update.
3985 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
3986 Remove "col" parameter.
3988 2019-08-20 Tom Tromey <tom@tromey.com>
3990 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
3992 * tui/tui-regs.c (~tui_data_item_window): Update.
3994 2019-08-20 Tom Tromey <tom@tromey.com>
3996 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
3999 2019-08-20 Tom Tromey <tom@tromey.com>
4001 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4003 2019-08-20 Tom Tromey <tom@tromey.com>
4005 * tui/tui-source.h (struct tui_source_window): Update.
4006 * tui/tui-regs.c (tui_show_registers): Update.
4007 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4008 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4009 (NO_REGS_STRING): Remove defines.
4011 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
4013 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4014 unnecessary thread walk if remote doesn't support the packet.
4016 2019-08-19 Tom Tromey <tromey@adacore.com>
4018 * python/py-value.c (value_has_field): Fix indentation.
4020 2019-08-19 Tom Tromey <tromey@adacore.com>
4022 * printcmd.c (do_one_display, info_display_command): Update.
4023 * block.h (contained_in): Return bool. Add allow_nested
4025 * block.c (contained_in): Return bool. Add allow_nested
4028 2019-08-19 Tom Tromey <tom@tromey.com>
4030 * configure: Rebuild.
4031 * configure.ac: Disallow the combination of -static-libstdc++ and
4033 * source-cache.c (get_language_name): Handle rust.
4034 (source_cache::get_source_lines): Ignore highlighting exceptions.
4036 2019-08-16 Tom Tromey <tom@tromey.com>
4038 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4039 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4040 (struct tui_source_window_base) <make_visible, refresh_window,
4041 resize>: Remove methods.
4042 <execution_info>: Remove field.
4043 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4044 (tui_show_source_line, tui_source_window_base)
4045 (~tui_source_window_base): Update.
4046 (tui_source_window_base::resize)
4047 (tui_source_window_base::make_visible)
4048 (tui_source_window_base::refresh_window): Remove.
4049 (tui_source_window_base::update_exec_info): Update.
4050 * tui/tui-source.c (tui_source_window::set_contents): Update.
4051 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4053 2019-08-16 Tom Tromey <tom@tromey.com>
4055 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4056 deprecated_query_hook.
4058 2019-08-16 Tom Tromey <tom@tromey.com>
4060 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4061 (tui_update_source_windows_with_line): Update.
4062 * tui/tui-source.h (struct tui_source_window)
4063 <show_symtab_source>: Declare.
4064 (tui_show_symtab_source): Don't declare.
4065 * tui/tui-source.c (tui_show_symtab_source): Rename from
4066 tui_show_symtab_source.
4068 2019-08-16 Tom Tromey <tom@tromey.com>
4070 * tui/tui-winsource.h (struct tui_source_window_base)
4071 <set_contents>: Declare.
4072 * tui/tui-winsource.c
4073 (tui_source_window_base::update_source_window_as_is): Update.
4074 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4076 (tui_set_source_content): Don't declare.
4077 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4078 tui_set_source_content.
4079 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4081 (tui_set_disassem_content): Don't declare.
4082 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4083 tui_set_disassem_content.
4085 2019-08-16 Tom Tromey <tom@tromey.com>
4087 * tui/tui-winsource.h (struct tui_source_window_base)
4088 <update_breakpoint_info>: Declare.
4089 (tui_update_breakpoint_info): Don't declare.
4090 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4091 (tui_update_all_breakpoint_info): Update.
4092 (tui_source_window_base::update_breakpoint_info): Rename from
4093 tui_update_breakpoint_info.
4094 (tui_source_window_base::update_exec_info): Update.
4096 2019-08-16 Tom Tromey <tom@tromey.com>
4098 * tui/tui-winsource.h (struct tui_source_window_base)
4099 <update_source_window>: Declare.
4100 (tui_update_source_window): Don't declare.
4101 * tui/tui-winsource.c
4102 (tui_source_window_base::update_source_window): Rename from
4103 tui_update_source_window.
4104 (tui_source_window_base::rerender): Update.
4105 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4106 * tui/tui-disasm.c (tui_show_disassem)
4107 (tui_show_disassem_and_update_source)
4108 (tui_disasm_window::maybe_update): Update.
4110 2019-08-16 Tom Tromey <tom@tromey.com>
4112 * tui/tui-winsource.h (struct tui_source_window_base)
4113 <update_source_window_as_is>: Declare.
4114 (tui_update_source_window_as_is): Don't declare.
4115 * tui/tui-winsource.c (tui_update_source_window): Update
4116 (tui_source_window_base::update_source_window_as_is): Rename from
4117 tui_update_source_window_as_is.
4118 (tui_source_window_base::refill): Update.
4119 * tui/tui-source.c (tui_show_symtab_source): Update.
4120 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4123 2019-08-16 Tom Tromey <tom@tromey.com>
4125 * tui/tui-winsource.h (tui_update_source_window)
4126 (tui_update_source_window_as_is): Remove "noerror" parameter.
4127 * tui/tui-winsource.c (tui_update_source_window)
4128 (tui_update_source_window_as_is): Remove "noerror" parameter.
4129 (tui_update_source_windows_with_addr)
4130 (tui_update_source_windows_with_line)
4131 (tui_source_window_base::rerender)
4132 (tui_source_window_base::refill): Update.
4133 * tui/tui-source.h (tui_set_source_content)
4134 (tui_show_symtab_source): Remove "noerror" parameter.
4135 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4137 (tui_show_symtab_source): Likewise.
4138 (tui_source_window::maybe_update): Update.
4139 * tui/tui-disasm.c (tui_show_disassem)
4140 (tui_show_disassem_and_update_source)
4141 (tui_disasm_window::do_scroll_vertical)
4142 (tui_disasm_window::maybe_update): Update.
4144 2019-08-16 Tom Tromey <tom@tromey.com>
4146 * tui/tui.c (tui_is_window_visible): Update.
4147 * tui/tui-wingeneral.c (tui_make_window)
4148 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4149 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4150 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4151 (tui_set_win_height_command, parse_scrolling_args): Update.
4152 * tui/tui-source.c (tui_source_window::style_changed): Update.
4153 * tui/tui-regs.c (tui_show_registers)
4154 (tui_data_window::first_data_item_displayed)
4155 (tui_data_window::delete_data_content_windows)
4156 (tui_check_register_values, tui_reg_command): Update.
4157 * tui/tui-disasm.c (tui_show_disassem): Update.
4158 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4160 <is_visible>: Remove field.
4161 * tui/tui-data.c (tui_next_win, tui_prev_win)
4162 (tui_delete_invisible_windows): Update.
4164 2019-08-16 Tom Tromey <tom@tromey.com>
4166 * tui/tui-winsource.h (struct tui_source_window_base)
4167 <m_has_locator>: Remove.
4168 * tui/tui-layout.c (show_source_disasm_command, show_data)
4169 (show_source_or_disasm_and_command): Update.
4171 2019-08-16 Alan Hayward <alan.hayward@arm.com>
4173 * NEWS (Other MI changes): New subsection.
4174 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4175 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4176 * arch-utils.c (default_get_pc_address_flags): New function.
4177 * arch-utils.h (default_get_pc_address_flags): New declaration.
4178 * gdbarch.sh: Add get_pc_address_flags.
4179 * gdbarch.c: Regenerate.
4180 * gdbarch.h: Likewise.
4181 * stack.c (print_pc): New function.
4182 (print_frame_info) (print_frame): Call print_pc.
4184 2019-08-16 Tom de Vries <tdevries@suse.de>
4186 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4187 print_objfile_section_info.
4189 2019-08-15 Tom Tromey <tom@tromey.com>
4191 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4192 calling update_cmdwin_start_line.
4193 * tui/tui-winsource.h (struct tui_source_window_base)
4194 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4195 <rerender>: Declare.
4196 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4198 (tui_source_window_base::set_new_height): Remove.
4199 (tui_source_window_base::rerender): Rename from
4200 do_make_visible_with_new_height.
4201 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4203 (tui_win_info::make_invisible_and_set_new_height)
4204 (tui_win_info::make_visible_with_new_height): Remove.
4205 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4207 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4208 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4209 do_make_visible_with_new_height>: Don't declare.
4210 <rerender>: Declare.
4211 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4213 (tui_data_window::do_make_visible_with_new_height): Remove.
4214 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4215 call tui_show_locator_content.
4216 (tui_gen_win_info::resize): Call rerender.
4217 (show_source_or_disasm_and_command): Don't call
4218 tui_show_locator_content.
4219 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
4221 (struct tui_win_info) <rerender>: Declare.
4222 <set_new_height, make_invisible_and_set_new_height,
4223 make_visible_with_new_height>: Don't declare.
4224 * tui/tui-data.c (tui_win_list::rerender): New method.
4225 * tui/tui-command.h (struct tui_cmd_window)
4226 <do_make_visible_with_new_height>: Don't declare.
4228 (tui_cmd_window::do_make_visible_with_new_height): Remove.
4230 2019-08-15 Tom Tromey <tromey@adacore.com>
4232 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
4233 * ada-lang.c (ada_enum_name): Likewise.
4235 2019-08-15 Christian Biesinger <cbiesinger@google.com>
4237 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
4239 (GdbOutputErrorFile): Likewise.
4240 (global scope): Adjust constructor calls to GdbOutput{,Error}File
4242 (execute_unwinders): Rename to have a leading underscore.
4243 (auto_load_packages): Likewise.
4244 (global scope): Adjust call to auto_load_packages accordingly.
4245 (GdbSetPythonDirectory): Likewise.
4246 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
4247 instead of execute_unwinders.
4249 2019-08-15 Tom Tromey <tom@tromey.com>
4251 * tui/tui-layout.c (show_layout, show_source_disasm_command)
4252 (show_data): Don't change window visibility.
4253 (tui_gen_win_info::resize): Remove special case for command
4254 window. Use wresize, when available.
4255 (show_source_or_disasm_and_command): Don't change window
4257 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
4258 <make_visible>: New method.
4259 * tui/tui-command.c (tui_cmd_window::resize): New method.
4261 2019-08-15 Tom Tromey <tom@tromey.com>
4263 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
4264 (struct tui_source_windows): New.
4265 * tui/tui-winsource.c (tui_display_main): Update.
4266 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
4267 (new_height_ok, parse_scrolling_args): Update.
4268 * tui/tui-layout.c (show_layout, show_data): Update.
4269 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
4270 (tui_add_to_source_windows): Don't declare.
4271 * tui/tui-data.c (source_windows, tui_source_windows)
4272 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
4274 2019-08-15 Tom Tromey <tom@tromey.com>
4276 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
4278 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
4279 * tui/tui-layout.c (show_source_disasm_command, show_data):
4281 (tui_gen_win_info::resize): Rename.
4282 (show_source_or_disasm_and_command): Update.
4283 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
4286 2019-08-15 Tom Tromey <tom@tromey.com>
4288 * tui/tui-stack.c (tui_initialize_static_data): Remove.
4289 * tui/tui-interp.c (tui_interp::init): Don't call
4290 tui_initialize_static_data.
4291 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
4293 2019-08-15 Tom Tromey <tom@tromey.com>
4295 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
4296 examine tui_win_list.
4298 2019-08-15 Tom Tromey <tom@tromey.com>
4300 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
4301 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
4302 tui_clear_source_content.
4303 (tui_clear_source_content): Remove.
4304 (tui_source_window_base::do_erase_source_content): Hoist call to
4306 * tui/tui-stack.c (tui_show_frame_info): Don't call
4307 tui_clear_source_content.
4309 2019-08-15 Tom Tromey <tom@tromey.com>
4311 * tui/tui-winsource.h (struct tui_source_window_base)
4312 <do_erase_source_content>: New method.
4313 <erase_source_content>: New method.
4314 (tui_erase_source_content): Don't declare.
4315 * tui/tui-winsource.c (tui_clear_source_content): Update.
4316 (tui_source_window_base::do_erase_source_content): Rename from
4317 tui_erase_source_content.
4318 (tui_source_window_base::show_source_content): Update.
4319 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4320 * tui/tui-source.h (struct tui_source_window)
4321 <erase_source_content>: New method.
4322 * tui/tui-disasm.h (struct tui_disasm_window)
4323 <erase_source_content>: New method.
4325 2019-08-15 Tom Tromey <tom@tromey.com>
4327 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
4328 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
4330 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
4331 * tui/tui-source.c (tui_set_source_content): Update.
4332 * tui/tui-disasm.c (tui_set_disassem_content): Update.
4334 2019-08-15 Tom Tromey <tom@tromey.com>
4336 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
4337 * tui/tui-winsource.c (tui_line_is_displayed): Move to
4339 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
4341 * tui/tui-source.c (tui_source_window::line_is_displayed): New
4343 (tui_source_window::maybe_update): Update.
4345 2019-08-15 Tom Tromey <tom@tromey.com>
4347 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
4348 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
4350 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
4352 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
4354 (tui_disasm_window::maybe_update): Update.
4356 2019-08-15 Tom Tromey <tom@tromey.com>
4358 * tui/tui-winsource.h (struct tui_source_window_base)
4359 <maybe_update>: Declare.
4360 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
4362 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
4364 * tui/tui-source.c (tui_source_window::maybe_update): New method.
4365 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
4367 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
4369 2019-08-15 Tom Tromey <tom@tromey.com>
4371 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
4373 2019-08-15 Tom Tromey <tom@tromey.com>
4375 * tui/tui-wingeneral.c: Include tui-stack.h.
4376 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
4377 (struct tui_locator_window): Move from tui-data.h.
4378 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
4379 (tui_initialize_static_data): Move from tui-data.c.
4380 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
4381 (struct tui_locator_window): Move to tui-stack.c.
4382 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
4383 (tui_initialize_static_data): Move to tui-stack.c.
4385 2019-08-15 Tom Tromey <tom@tromey.com>
4387 * tui/tui-layout.c (show_source_disasm_command)
4388 (show_source_or_disasm_and_command): Use make_visible method, not
4390 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
4393 2019-08-15 Tom Tromey <tom@tromey.com>
4395 * tui/tui-wingeneral.h (tui_make_window): Update.
4396 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
4398 (tui_gen_win_info::make_visible): Update.
4399 * tui/tui-regs.c (tui_data_window::display_registers_from):
4401 * tui/tui-layout.c (show_source_disasm_command)
4402 (show_source_or_disasm_and_command): Update.
4403 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
4404 (enum tui_box): Remove.
4405 (struct tui_win_info) <can_box>: New method.
4406 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
4409 2019-08-15 Tom de Vries <tdevries@suse.de>
4411 * linux-nat-trad.c: Include gdbarch.h.
4413 2019-08-14 Alan Hayward <alan.hayward@arm.com>
4415 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
4418 2019-08-14 Tom Tromey <tromey@adacore.com>
4420 * darwin-nat.c: Include gdbarch.h.
4421 * darwin-nat-info.c: Include gdbarch.h.
4423 2019-08-13 Tom Tromey <tom@tromey.com>
4425 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
4427 * tui/tui-data.c (tui_initialize_static_data): Update.
4429 2019-08-13 Tom Tromey <tom@tromey.com>
4431 * tui/tui-winsource.h (struct tui_exec_info_window)
4432 <~tui_exec_info_window, maybe_allocate_content, get_content,
4434 (struct tui_source_window_base) <set_exec_info_content,
4435 show_exec_info_content>: Don't declare.
4436 * tui/tui-winsource.c
4437 (tui_exec_info_window::maybe_allocate_content): Remove.
4438 (tui_source_window_base::update_exec_info): Rename from
4439 set_exec_info_content.
4440 (tui_source_window_base::show_exec_info_content)
4441 (tui_source_window_base::update_exec_info): Remove.
4443 2019-08-13 Tom Tromey <tom@tromey.com>
4445 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
4447 * tui/tui-winsource.c (tui_update_source_window_as_is)
4448 (tui_update_source_windows_with_addr, tui_erase_source_content):
4450 (tui_clear_exec_info_content): Remove.
4452 2019-08-13 Tom Tromey <tom@tromey.com>
4454 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
4456 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
4457 call tui_erase_exec_info_content.
4458 (tui_clear_exec_info_content): Rename from
4459 tui_erase_exec_info_content.
4460 (tui_clear_exec_info_content): Delete.
4462 2019-08-13 Tom Tromey <tom@tromey.com>
4464 * tui/tui-winsource.h (struct tui_source_window_base)
4465 <show_exec_info_content>: Declare.
4466 (tui_show_exec_info_content): Don't declare.
4467 * tui/tui-winsource.c
4468 (tui_source_window_base::show_exec_info_content): Rename from
4469 tui_show_exec_info_content.
4470 (tui_source_window_base::update_exec_info): Update.
4472 2019-08-13 Tom Tromey <tom@tromey.com>
4474 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
4475 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
4476 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
4477 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
4478 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
4479 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
4482 2019-08-13 Tom Tromey <tom@tromey.com>
4484 * tui/tui-winsource.h (struct tui_source_window_base)
4485 <update_exec_info>: Declare.
4486 (tui_update_exec_info): Don't declare.
4487 * tui/tui-winsource.c (tui_update_source_window_as_is)
4488 (tui_source_window_base::refresh_all)
4489 (tui_update_all_breakpoint_info): Update.
4490 (tui_source_window_base::update_exec_info): Rename from
4491 tui_update_exec_info.
4492 * tui/tui-stack.c (tui_show_frame_info): Update.
4494 2019-08-13 Tom Tromey <tom@tromey.com>
4496 * tui/tui-winsource.h (struct tui_source_window_base)
4497 <set_exec_info_content>: Declare.
4498 (tui_set_exec_info_content): Don't declare.
4499 * tui/tui-winsource.c
4500 (tui_source_window_base::set_exec_info_content): Rename from
4501 tui_set_exec_info_content.
4502 (tui_update_exec_info): Update.
4504 2019-08-13 Tom Tromey <tom@tromey.com>
4506 * tui/tui-winsource.h (struct tui_source_window_base)
4507 <show_source_content>: Declare.
4508 (tui_show_source_content): Don't declare.
4509 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4510 (tui_source_window_base::show_source_content): Rename from
4511 tui_show_source_content.
4512 (tui_source_window_base::refresh_all): Update.
4513 * tui/tui-layout.c (show_source_disasm_command)
4514 (show_source_or_disasm_and_command): Update.
4516 2019-08-13 Tom Tromey <tom@tromey.com>
4518 * tui/tui-winsource.c (tui_erase_source_content)
4519 (tui_show_source_content, tui_source_window_base::refresh_all):
4521 * tui/tui-wingeneral.h
4522 (tui_check_and_display_highlight_if_needed): Don't declare.
4523 * tui/tui-wingeneral.c
4524 (tui_win_info::check_and_display_highlight_if_needed): Rename from
4525 check_and_display_highlight_if_needed.
4526 * tui/tui-win.c (tui_rehighlight_all)
4527 (tui_win_info::make_visible_with_new_height): Update.
4528 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4529 (tui_data_window::erase_data_content)
4530 (tui_data_window::display_all_data): Update.
4531 * tui/tui-data.h (struct tui_win_info)
4532 <check_and_display_highlight_if_needed>: Declare.
4534 2019-08-13 Tom Tromey <tom@tromey.com>
4536 * tui/tui-win.c (tui_resize_all): Call
4537 tui_delete_invisible_windows.
4538 * tui/tui-layout.c (show_layout): Call
4539 tui_delete_invisible_windows.
4540 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
4541 * tui/tui-data.c (tui_delete_invisible_windows): New function.
4543 2019-08-13 Tom Tromey <tom@tromey.com>
4545 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
4546 tui_add_win_to_layout.
4548 2019-08-13 Tom Tromey <tom@tromey.com>
4550 * tui/tui-layout.h (tui_default_win_height): Don't declare.
4551 * tui/tui-layout.c (tui_default_win_height): Now static.
4553 2019-08-13 Tom Tromey <tom@tromey.com>
4555 * tui/tui-layout.c (show_layout): Unify all layout cases into a
4557 (show_source_disasm_command, show_source_or_disasm_and_command):
4558 Don't check current layout.
4560 2019-08-13 Tom Tromey <tom@tromey.com>
4562 * tui/tui-wingeneral.c (make_all_visible): Remove.
4563 (tui_make_all_invisible): Simplify.
4564 * tui/tui-layout.c (tui_make_all_invisible): Move from
4565 tui-wingeneral.c; simplify.
4566 (show_layout): Hoist call to tui_make_all_invisible.
4567 (show_data): Don't call tui_make_all_invisible.
4569 2019-08-13 Tom Tromey <tom@tromey.com>
4571 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
4572 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
4574 2019-08-13 Tom Tromey <tom@tromey.com>
4576 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
4578 (show_source_disasm_command, show_data)
4579 (show_source_or_disasm_and_command): Don't use
4580 tui_set_current_layout_to.
4581 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
4582 * tui/tui-data.c (current_layout, tui_current_layout): Move to
4584 (tui_set_current_layout_to): Remove.
4586 2019-08-13 Tom Tromey <tom@tromey.com>
4588 * tui/tui-layout.c (tui_set_layout): Update.
4589 * tui/tui-data.h (struct tui_layout_def): Remove.
4590 (tui_layout_def): Don't declare.
4591 * tui/tui-data.c (layout_def): Remove.
4592 (tui_layout_def): Remove.
4594 2019-08-13 Tom Tromey <tom@tromey.com>
4596 * tui/tui-winsource.h (struct tui_source_window_base)
4597 <clear_detail>: No longer "override".
4598 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
4599 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
4600 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
4601 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
4603 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
4605 2019-08-13 Tom Tromey <tromey@adacore.com>
4607 * tracepoint.c: Don't include readline.h or history.h.
4609 2019-08-12 Tom Tromey <tom@tromey.com>
4611 * configure: Rebuild.
4612 * configure.ac: Check for readline 7.
4613 * NEWS: Mention readline 7 requirement.
4616 2019-08-12 Tom Tromey <tom@tromey.com>
4618 * mingw-hdep.c (gdb_select): Remove readline hack.
4620 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4622 * blockframe.c (find_pc_partial_function): Set *block to nullptr
4623 when the function fails.
4625 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
4627 * s390-tdep.c (s390_type_align): New function.
4628 (s390_gdbarch_init): Set it as type_align gdbarch method.
4630 2019-08-09 Tom de Vries <tdevries@suse.de>
4633 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
4634 pc_low with relocation offset.
4636 2019-08-07 Tom Tromey <tromey@adacore.com>
4638 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
4639 (print_frame_args): Update.
4640 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
4642 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
4643 * frame.h (struct frame_arg): Add initializers.
4644 <error>: Now a unique_xmalloc_ptr.
4646 2019-08-07 Alan Hayward <alan.hayward@arm.com>
4648 * NEWS: Expand the Pointer Authentication entry.
4649 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
4650 (aarch64_frame_unmask_lr): ... to this.
4651 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
4652 Call aarch64_frame_unmask_lr.
4653 * frame.c (struct frame_info): Add "masked" variable.
4654 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
4655 (fprint_frame): Check for masked pc.
4656 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
4658 * python/py-framefilter.c (py_print_frame): Check for masked pc.
4659 * stack.c (print_frame): Check for masked pc.
4661 2019-08-06 Tom Tromey <tom@tromey.com>
4663 * stabsread.c (patch_block_stabs, read_one_struct_field)
4664 (read_enum_type): Use obstack_strndup.
4665 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
4666 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
4667 * dwarf2read.c (guess_full_die_structure_name)
4668 (anonymous_struct_prefix): Use obstack_strndup.
4669 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
4670 * c-exp.y (yylex): Use obstack_strndup.
4671 * ada-exp.y (write_object_renaming, write_ambiguous_var)
4672 (write_var_or_type): Use obstack_strndup.
4674 2019-08-06 Tom Tromey <tom@tromey.com>
4676 * symfile.c (reread_symbols): Use obstack_strdup.
4677 * stabsread.c (read_type): Use obstack_strdup.
4678 * gdb_obstack.h (obstack_strdup): New overload.
4679 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
4680 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
4681 (dwarf2_canonicalize_name): Use obstack_strdup.
4682 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
4683 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
4686 2019-08-06 Tom Tromey <tom@tromey.com>
4688 * gdb_obstack.h (obstack_strdup): Define.
4689 * gdb_obstack.c (obstack_strdup): Don't define.
4691 2019-08-06 Tom Tromey <tom@tromey.com>
4693 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
4695 * typeprint.c (typedef_hash_table::find_global_typedef): Use
4697 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
4698 * stabsread.c (common_block_start): Use obstack_strdup.
4699 * objfiles.c (set_objfile_main_name, objfile): Use
4701 * namespace.c (add_using_directive): Use obstack_strdup.
4702 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
4703 * jit.c (finalize_symtab): Use obstack_strdup.
4704 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
4705 (guess_partial_die_structure_name, partial_die_info::fixup)
4706 (dwarf2_name): Use obstack_strdup.
4707 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
4709 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
4710 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
4712 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
4714 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4716 * unittests/help-doc-selftests.c: New file.
4717 * Makefile.in: Add the new file.
4719 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4721 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
4722 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
4723 the full first line, except when FOR_VALUE_PREFIX. In this case,
4724 the trailing '.' is not output, and the first character is uppercased.
4725 (print_help_for_command): Update call to print_doc_line.
4726 (print_doc_of_command): Likewise.
4727 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
4728 * cli/cli-option.c (append_indented_doc): Do not append newline.
4729 (build_help_option): Append newline after first appended_indented_doc
4730 only if a second call is done.
4731 (build_help): Append 2 new lines before each option, except the first
4733 * compile/compile.c (_initialize_compile): Add new lines after
4734 %OPTIONS%, when not at the end of the help.
4735 Change help doc or code
4736 producing the help doc to respect the invariants.
4737 * maint-test-options.c (_initialize_maint_test_options): Likewise.
4738 Also removed the new line after 'Options:', as all other commands
4739 do not put an empty line between 'Options:' and the first option.
4740 * printcmd.c (_initialize_printcmd): Likewise.
4741 * stack.c (_initialize_stack): Likewise.
4742 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
4743 incorrectly telling COMMAND is optional.
4744 * ada-lang.c (_initialize_ada_language): Change help doc or code
4745 producing the help doc to respect the invariants.
4746 * ada-tasks.c (_initialize_ada_tasks): Likewise.
4747 * breakpoint.c (_initialize_breakpoint): Likewise.
4748 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
4749 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
4750 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
4751 * cli/cli-style.c (cli_style_option::add_setshow_commands,
4752 _initialize_cli_style): Likewise.
4753 * corelow.c (core_target_info): Likewise.
4754 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
4755 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
4756 * filesystem.c (_initialize_filesystem): Likewise.
4757 * frame.c (_initialize_frame): Likewise.
4758 * gnu-nat.c (add_task_commands): Likewise.
4759 * infcall.c (_initialize_infcall): Likewise.
4760 * infcmd.c (_initialize_infcmd): Likewise.
4761 * interps.c (_initialize_interpreter): Likewise.
4762 * language.c (_initialize_language): Likewise.
4763 * linux-fork.c (_initialize_linux_fork): Likewise.
4764 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
4765 * maint.c (_initialize_maint_cmds): Likewise.
4766 * memattr.c (_initialize_mem): Likewise.
4767 * printcmd.c (_initialize_printcmd): Likewise.
4768 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
4770 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
4771 * record-btrace.c (_initialize_record_btrace): Likewise.
4772 * record-full.c (_initialize_record_full): Likewise.
4773 * record.c (_initialize_record): Likewise.
4774 * regcache-dump.c (_initialize_regcache_dump): Likewise.
4775 * regcache.c (_initialize_regcache): Likewise.
4776 * remote.c (add_packet_config_cmd, init_remote_threadtests,
4777 _initialize_remote): Likewise.
4778 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4779 * serial.c (_initialize_serial): Likewise.
4780 * skip.c (_initialize_step_skip): Likewise.
4781 * source.c (_initialize_source): Likewise.
4782 * stack.c (_initialize_stack): Likewise.
4783 * symfile.c (_initialize_symfile): Likewise.
4784 * symtab.c (_initialize_symtab): Likewise.
4785 * target-descriptions.c (_initialize_target_descriptions): Likewise.
4786 * top.c (init_main): Likewise.
4787 * tracefile-tfile.c (tfile_target_info): Likewise.
4788 * tracepoint.c (_initialize_tracepoint): Likewise.
4789 * tui/tui-win.c (_initialize_tui_win): Likewise.
4790 * utils.c (add_internal_problem_command): Likewise.
4791 * valprint.c (value_print_option_defs): Likewise.
4793 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4796 * configure.ac: Drop enable-libmcheck support.
4797 * configure, config.in: Rebuild.
4798 * libmcheck.m4: Remove.
4799 * acinclude.m4: Don't include it.
4800 * Makefile.in: Don't distribute it.
4801 * top.c (print_gdb_configuration): Don't mention it.
4803 2019-08-06 Tom Tromey <tom@tromey.com>
4805 * utils.c (set_output_style): Sometimes pass stream to
4807 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
4808 * record-btrace.c (btrace_insn_history): Update.
4809 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
4811 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
4812 Update initializers.
4813 <m_uiout>: New field.
4815 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4816 Remove "uiout" parameter.
4817 (dump_insns): Update.
4818 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
4819 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
4821 2019-08-06 Christian Biesinger <cbiesinger@google.com>
4823 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
4824 (error_in_psymtab_expansion): Likewise.
4825 (lookup_symbol_via_quick_fns): Likewise.
4826 (basic_lookup_transparent_type_quick): Likewise.
4827 (basic_lookup_transparent_type_1): Likewise.
4829 2019-08-06 Tom Tromey <tromey@adacore.com>
4831 * source.c (last_source_error): Now bool.
4832 (print_source_lines_base): Make "noprint" bool. Only open
4833 source file when last_source_visited changes.
4835 2019-08-06 Tom Tromey <tromey@adacore.com>
4837 * annotate.c (annotate_source_line): Use g_source_cache.
4838 * source-cache.c (source_cache::get_plain_source_lines): Change
4839 parameters. Populate m_offset_cache.
4840 (source_cache::ensure): New method.
4841 (source_cache::get_line_charpos): New method.
4842 (extract_lines): Move lower. Change parameters.
4843 (source_cache::get_source_lines): Move lower.
4844 * source-cache.h (class source_cache): Update comment.
4845 <get_line_charpos>: New method.
4846 <get_source_lines>: Update comment.
4847 <clear>: Clear m_offset_cache.
4848 <get_plain_source_lines>: Change parameters.
4849 <ensure>: New method
4850 <m_offset_cache>: New member.
4851 * source.c (forget_cached_source_info_for_objfile): Update.
4852 (info_source_command): Use g_source_cache.
4853 (find_source_lines, open_source_file_with_line_charpos): Remove.
4854 (print_source_lines_base, search_command_helper): Use g_source_cache.
4855 * source.h (open_source_file_with_line_charpos): Don't declare.
4856 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
4857 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
4860 2019-08-06 Tom Tromey <tromey@adacore.com>
4862 * source-cache.c (source_cache::get_plain_source_lines):
4863 Remove "first_line" and "last_line" parameters.
4864 (source_cache::get_source_lines): Cache plain text.
4865 * source-cache.h (class source_cache)
4866 <get_plain_source_lines>: Update.
4868 2019-08-06 Tom Tromey <tromey@adacore.com>
4870 * source-cache.c (extract_lines): No longer a method.
4871 Changed type of parameter. Include final newline.
4872 (selftests::extract_lines_test): New function.
4873 (_initialize_source_cache): Likewise.
4874 * source-cache.h (class source_cache)
4875 <extract_lines>: Don't declare.
4877 2019-08-06 Tom Tromey <tromey@adacore.com>
4879 * breakpoint.c (init_breakpoint_sal): Update.
4880 (breakpoint): Update.
4881 * breakpoint.h (struct breakpoint) <filter>: Now a
4884 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4886 * NEWS: Mention dictionary access on blocks.
4887 * python/py-block.c (blpy_getitem): New function.
4888 (block_object_as_mapping): New struct.
4889 (block_object_type): Use new struct for tp_as_mapping field.
4891 2019-08-05 Christian Biesinger <cbiesinger@google.com>
4893 * objfiles.h (objfile): Add a comment describing partial symbols.
4895 2019-08-05 Tom Tromey <tromey@adacore.com>
4897 * compile/compile.c (_initialize_compile): Use _(), not N_().
4898 * thread.c (_initialize_thread): Use _(), not N_().
4899 * stack.c (_initialize_stack): Use _(), not N_().
4900 * printcmd.c (_initialize_printcmd): Use _(), not N_().
4902 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
4904 * dwarf2read.c (struct dw2_symtab_iterator):
4905 <want_specific_block>: Remove.
4906 <block_index>: Change type to gdb::optional.
4907 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
4908 change type of BLOCK_INDEX parameter to gdb::optional.
4909 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
4910 (dw2_lookup_symbol): Don't pass argument for
4911 WANT_SPECIFIC_BLOCK.
4912 (dw2_expand_symtabs_for_function): Don't pass argument for
4913 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
4914 (class dw2_debug_names_iterator)
4915 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
4916 parameter, change BLOCK_INDEX type to gdb::optional.
4917 <m_want_specific_block>: Remove.
4918 <m_block_index>: Change type to gdb::optional.
4919 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
4920 gdb::optional. Re-write in function of gdb::optional.
4921 (dw2_debug_names_lookup_symbol): Don't pass argument for
4922 WANT_SPECIFIC_BLOCK.
4923 (dw2_debug_names_expand_symtabs_for_function): Don't pass
4924 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
4927 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4929 * NEWS: Mention changes to "info sources" command.
4931 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4933 * symtab.c (filename_partial_match_opts): New struct type.
4934 (struct output_source_filename_data): New members
4935 regexp, c_regexp, partial_match.
4936 (output_source_filename): Use new members to decide to print file.
4937 (info_sources_option_defs): New variable.
4938 (make_info_sources_options_def_group, print_info_sources_header,
4939 info_sources_command_completer):
4941 (info_sources_command): Read new optional arguments.
4942 (_initialize_symtab): Update info sources help.
4944 2019-08-02 Alexandre Oliva <oliva@adacore.com>
4946 * ada-lang.c (exception_support_info_v0): Renamed from...
4947 (default_exception_support_info): ... this. Create new
4949 (ada_has_this_exception_support): Look up catch_handlers_sym.
4950 (ada_exception_support_info_sniffer): Try v0 after default.
4952 2019-08-01 Tom Tromey <tromey@adacore.com>
4954 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
4957 2019-08-01 Christian Biesinger <cbiesinger@google.com>
4959 * s12z-tdep.c: Fix include path for s12z-opc.h.
4961 2019-08-01 Alan Hayward <alan.hayward@arm.com>
4963 * NEWS: Require GNU make 3.82.
4965 2019-07-16 Tom Tromey <tom@tromey.com>
4967 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
4970 2019-07-30 Tom Tromey <tromey@adacore.com>
4972 * block.c (contained_in): Remove BLOCK_FUNCTION check.
4974 2019-07-30 Kevin Buettner <kevinb@redhat.com>
4976 * printcmd.c (print_address_symbolic): Print negative offsets.
4977 (build_address_symbolic): Force signed arithmetic when computing
4980 2019-07-30 Christian Biesinger <cbiesinger@google.com>
4982 PR/24474: Add a function to lookup static variables.
4983 * NEWS: Mention this new function.
4984 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
4985 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
4986 * python/python.c (python_GdbMethods): Add new function.
4988 2019-07-29 Christian Biesinger <cbiesinger@google.com>
4990 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
4991 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
4992 (objfpy_lookup_static_symbol): New function.
4993 (objfile_object_methods): Add new functions.
4995 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4997 * NEWS: Mention 'set|show print frame-info'. Mention new
4998 'presence' value for 'frame-arguments'. Mention new '-frame-info'
4999 backtrace argument. Mention that python frame filtering code
5000 is now consistent with what 'backtrace' command prints.
5002 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5004 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5006 (print_frame_info_auto, print_frame_info_source_line,
5007 print_frame_info_location, print_frame_info_source_and_location,
5008 print_frame_info_location_and_address, print_frame_info_short_location):
5010 (struct frame_print_options): New member print_frame_info.
5011 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5012 * stack.h (get_user_print_what_frame_info): New declaration.
5013 (frame_show_address): New declaration.
5014 * stack.c (print_frame_arguments_choices): New value 'presence'.
5015 (print_frame_info_auto, print_frame_info_source_line,
5016 print_frame_info_location, print_frame_info_source_and_location,
5017 print_frame_info_location_and_address, print_frame_info_short_location,
5018 print_frame_info_choices, print_frame_info_print_what): New definitions.
5019 (print_frame_args): Only print dots for args if print frame-arguments
5021 (frame_print_option_defs): New element for "frame-info".
5022 (get_user_print_what_frame_info): New function.
5023 (frame_show_address): Make non static. Move comment to stack.h.
5024 (print_frame_info_to_print_what): New function.
5025 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5026 to decide what to print.
5027 (backtrace_command_1): Handle the new print_frame_arguments_presence
5029 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5030 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5031 (py_print_frame): In non-mi mode, use LOCATION as default for
5032 print_what, similarly to frame information printed directly by
5033 backtrace command. Handle frame-info user option in non MI mode.
5035 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5037 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5038 Add case for debugging 32-bit target on 64-bit host. Revise
5041 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5043 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5044 instead of find_function_entry_range_from_pc.
5046 2019-07-27 Kevin Buettner <kevinb@redhat.com>
5048 * stack.c (find_frame_funname): Remove code which preferred
5049 minsym over symtab sym in "certain pathological cases".
5051 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5052 parameter. Change type of "do_demangle" to bool.
5053 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5054 Pass suitable "prefer_sym_over_minsym" flag to
5055 build_address_symbolic(). Don't output "+" for negative offsets.
5056 * printcmd.c (print_address_symbolic): Update invocation of
5057 build_address_symbolic to include a "prefer_sym_over_minsym"
5059 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5060 Restrict cases in which use of minimal symbol is preferred to that
5061 of a found symbol. Update comments.
5063 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5064 for entry pc when entry pc is out of range for that FDE.
5066 2019-07-26 Brian Callahan <bcallah@openbsd.org>
5069 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5072 2019-07-25 Christian Biesinger <cbiesinger@google.com>
5074 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5075 this function's Python signature.
5078 2019-07-24 Christian Biesinger <cbiesinger@google.com>
5080 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5081 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5082 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5083 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5084 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5087 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5089 * h8300-tdep.c (h8300_register_name_common): New.
5090 h8300_register_name): Use h8300_register_name_common.
5091 (h8300s_register_name): Likewise.
5092 (h8300sx_register_name): Likewise.
5093 (h8300h_register_nam): New.
5094 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5097 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5099 * arm-tdep.c (arm_skip_cmse_entry): New function.
5100 (arm_is_sgstubs_section): New function.
5101 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5103 2019-07-22 Tom Tromey <tom@tromey.com>
5105 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5108 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5110 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5113 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5115 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5116 so that GDB doesn't match any msymbols when searching in the
5118 (print_symbol_info): Print using typedef_print or type_print based
5119 on the type of the symbol. Add updated FIXME comment moved from...
5120 (_initialize_symtab): ... move and update FIXME comment to above.
5122 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5124 * NEWS: Mention adding -q option to "info types".
5125 * symtab.c (struct info_types_options): New struct.
5126 (info_types_options_defs): New variable.
5127 (make_info_types_options_def_group): New function.
5128 (info_types_command): Use gdb::option framework to parse options.
5129 (info_types_command_completer): New function.
5130 (_initialize_symtab): Extend the help text on "info types" and
5131 register command completer.
5133 2019-07-21 Christian Biesinger <cbiesinger@google.com>
5135 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5136 (lookup_symbol_in_objfile): Change int to block_enum and add a
5137 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5139 2019-07-20 Christian Biesinger <cbiesinger@google.com>
5141 * MAINTAINERS (Write After Approval): Add self.
5143 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5145 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5146 instruction to the dummy code region.
5148 2019-07-19 Tom Tromey <tromey@adacore.com>
5150 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5151 (ARGSUSED, PARAMS, __func__): Remove rules.
5153 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5155 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5156 * features/arm/arm-with-iwmmxt.c: Remove.
5157 * features/arm/arm-with-iwmmxt.xml: Remove.
5158 * features/arm/arm-with-m-fpa-layout.c: Remove.
5159 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5160 * features/arm/arm-with-m-vfp-d16.c: Remove.
5161 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5162 * features/arm/arm-with-m.c: Remove.
5163 * features/arm/arm-with-m.xml: Remove.
5164 * features/arm/arm-with-neon.c: Remove.
5165 * features/arm/arm-with-neon.xml: Remove.
5166 * features/arm/arm-with-vfpv2.c: Remove.
5167 * features/arm/arm-with-vfpv2.xml: Remove.
5168 * features/arm/arm-with-vfpv3.c: Remove.
5169 * features/arm/arm-with-vfpv3.xml: Remove.
5171 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5173 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5175 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5177 * arch/aarch32.c (aarch32_create_target_description): Create
5178 target descriptions using features.
5179 * arch/arm.c (arm_create_target_description)
5180 (arm_create_mprofile_target_description): Likewise.
5181 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5183 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5185 * Makefile.in: Add new files.
5186 * aarch32-tdep.c: New file.
5187 * aarch32-tdep.h: New file.
5188 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5189 Call aarch32_read_description.
5190 * arch/aarch32.c: New file.
5191 * arch/aarch32.h: New file.
5192 * arch/arm.c (arm_create_target_description)
5193 (arm_create_mprofile_target_description): New function.
5194 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5195 (arm_create_target_description)
5196 (arm_create_mprofile_target_description): New declaration.
5197 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5198 read_description functions.
5199 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5201 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5202 * arm-tdep.c (tdesc_arm_list): New variable.
5203 (arm_register_g_packet_guesses): Call create description functions.
5204 (arm_read_description) (arm_read_mprofile_description): New
5206 * arm-tdep.h (arm_read_description)
5207 (arm_read_mprofile_description): Add declaration.
5208 * configure.tgt: Add new files.
5210 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5212 * top.c (new_ui_command): Open specified terminal just once.
5214 2019-07-18 Tom Tromey <tromey@adacore.com>
5216 * symtab.c (main_name): Constify return type.
5217 * symfile.c (set_initial_language): Update.
5218 * symtab.h (main_name): Constify return type.
5220 2019-07-17 Tom Tromey <tom@tromey.com>
5222 * tui/tui-winsource.c (tui_update_source_window)
5223 (tui_update_source_window_as_is)
5224 (tui_update_source_windows_with_line): Remove return.
5225 * tui/tui-disasm.c (tui_show_disassem)
5226 (tui_show_disassem_and_update_source): Remove return.
5227 * tui/tui.c (tui_reset): Remove return.
5228 * tui/tui-wingeneral.c
5229 (tui_check_and_display_highlight_if_needed): Remove return.
5231 2019-07-17 Tom Tromey <tom@tromey.com>
5233 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
5235 2019-07-17 Tom Tromey <tom@tromey.com>
5237 * tui/tui-winsource.h (struct tui_exec_info_window)
5238 (struct tui_source_window_base): Move from tui-data.h.
5239 * tui/tui-winsource.c: Move many method definitions from
5240 elsewhere. Remove "structuring" comments.
5241 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
5242 (tui_source_window_base::refresh_window): Move to
5244 * tui/tui-win.c (tui_source_window_base::refresh_all)
5245 (tui_source_window_base::update_tab_width)
5246 (tui_source_window_base::set_new_height)
5247 (tui_source_window_base::do_make_visible_with_new_height): Move to
5249 * tui/tui-source.h: Update.
5250 * tui/tui-source.c (tui_source_window_base::reset): Move to
5252 * tui/tui-disasm.h: Update.
5253 * tui/tui-data.h (struct tui_exec_info_window): Move to
5255 (struct tui_source_window_base): Likewise.
5256 * tui/tui-data.c (tui_source_window_base::clear_detail)
5257 (tui_source_window_base, ~tui_source_window_base): Move to
5260 2019-07-17 Tom Tromey <tom@tromey.com>
5262 * tui/tui-win.c (tui_resize_all)
5263 (tui_source_window_base::update_tab_width)
5264 (tui_adjust_win_heights): Update.
5265 (tui_win_info::make_invisible_and_set_new_height): Rename from
5266 make_invisible_and_set_new_height.
5267 * tui/tui-data.h (struct tui_win_info)
5268 <make_invisible_and_set_new_height>: New method.
5270 2019-07-17 Tom Tromey <tom@tromey.com>
5272 * tui/tui.c: Update.
5273 * tui/tui-source.h (struct tui_source_window): Move from
5275 * tui/tui-layout.c: Update.
5276 * tui/tui-disasm.c: Update.
5277 * tui/tui-data.h (struct tui_source_window): Move to
5280 2019-07-17 Tom Tromey <tom@tromey.com>
5282 * tui/tui-disasm.h (struct tui_disasm_window): Move from
5284 * tui/tui-data.h (struct tui_disasm_window): Move to
5287 2019-07-17 Tom Tromey <tom@tromey.com>
5289 * tui/tui-regs.h (struct tui_data_item_window): Move from
5291 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
5292 * tui/tui-data.h (struct tui_data_item_window): Move to
5294 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
5296 2019-07-17 Tom Tromey <tom@tromey.com>
5298 * tui/tui.c: Update.
5299 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
5300 (tui_cmd_window::max_height): Move to tui-command.c.
5301 * tui/tui-layout.c: Update.
5302 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
5303 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
5305 * tui/tui-command.h (struct tui_cmd_window): Move from
5307 * tui/tui-command.c: Remove "structuring" comments.
5308 (tui_cmd_window::clear_detail)
5309 (tui_cmd_window::do_make_visible_with_new_height)
5310 (tui_cmd_window::max_height): Move from elsewhere.
5312 2019-07-17 Tom Tromey <tom@tromey.com>
5314 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
5316 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
5317 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
5319 2019-07-17 Tom Tromey <tom@tromey.com>
5321 * tui/tui.c: Update.
5322 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
5324 * tui/tui-windata.h: Remove file.
5325 * tui/tui-windata.c: Remove file.
5326 * tui/tui-win.c (tui_data_window::set_new_height)
5327 (tui_data_window::do_make_visible_with_new_height): Move to
5329 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
5330 * tui/tui-regs.c: Remove "structuring" comments.
5331 (tui_data_window::first_data_item_displayed)
5332 (tui_data_window::delete_data_content_windows)
5333 (tui_data_window::erase_data_content)
5334 (tui_data_window::display_all_data)
5335 (tui_data_window::refresh_all)
5336 (tui_data_window::do_scroll_vertical)
5337 (tui_data_window::clear_detail, tui_data_window::set_new_height)
5338 (tui_data_window::do_make_visible_with_new_height)
5339 (tui_data_window::refresh_window): Move from elsewhere.
5340 (_initialize_tui_regs): Move to end of file.
5341 * tui/tui-layout.c: Update.
5342 * tui/tui-hooks.c: Update.
5343 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
5344 * tui/tui-data.c (tui_data_window::clear_detail): Move to
5346 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
5348 2019-07-17 Tom Tromey <tom@tromey.com>
5350 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
5353 2019-07-17 Tom Tromey <tom@tromey.com>
5355 * tui/tui-win.c (tui_source_window_base::set_new_height)
5356 (tui_source_window_base::do_make_visible_with_new_height): Use
5357 m_has_locator field directly.
5358 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
5360 (struct tui_source_window_base) <has_locator>: Likewise.
5362 2019-07-17 Tom Tromey <tom@tromey.com>
5364 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
5366 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
5368 * tui/tui-win.c (tui_source_window_base::set_new_height)
5369 (tui_source_window_base::set_new_height)
5370 (make_invisible_and_set_new_height)
5371 (tui_source_window_base::do_make_visible_with_new_height)
5372 (tui_source_window_base::do_make_visible_with_new_height):
5374 * tui/tui-layout.c (show_source_disasm_command, show_data)
5375 (show_source_or_disasm_and_command): Update.
5376 * tui/tui-layout.c (show_layout): Update.
5378 2019-07-17 Tom Tromey <tom@tromey.com>
5380 * tui/tui-layout.c (make_data_window): Remove.
5381 (show_data): Unify creation and re-initialization cases.
5383 2019-07-17 Tom Tromey <tom@tromey.com>
5385 * tui/tui-layout.c (make_source_window, make_disasm_window):
5387 (show_data): Unify creation and re-initialization cases.
5389 2019-07-17 Tom Tromey <tom@tromey.com>
5391 * tui/tui-layout.c (make_command_window): Remove.
5392 (show_source_disasm_command, show_source_or_disasm_and_command):
5393 Unify creation and re-initialization cases.
5395 2019-07-17 Tom Tromey <tom@tromey.com>
5397 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
5398 creation and re-initialization cases.
5400 2019-07-17 Tom Tromey <tom@tromey.com>
5402 * tui/tui-regs.c (tui_get_register): Return void.
5404 2019-07-17 Tom Tromey <tom@tromey.com>
5406 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
5409 2019-07-17 Tom Tromey <tom@tromey.com>
5411 * tui/tui-layout.c (show_source_disasm_command): Simplify window
5414 2019-07-17 Tom Tromey <tom@tromey.com>
5416 * tui/tui.h (tui_set_layout_by_name): Don't declare.
5417 * tui/tui-regs.c (tui_reg_layout): New function.
5418 (tui_show_registers, tui_reg_command): Use it.
5419 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
5420 (tui_layout_command): Rename from tui_set_layout_by_name. Change
5422 (tui_layout_command): Remove.
5424 2019-07-17 Tom Tromey <tom@tromey.com>
5426 * tui/tui-layout.h (tui/tui-layout): Return void.
5427 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
5429 2019-07-17 Tom Tromey <tom@tromey.com>
5431 * tui/tui-layout.c (show_source_disasm_command, show_data):
5433 (reset_locator): Remove.
5434 (show_source_or_disasm_and_command): Update.
5436 2019-07-17 Tom Tromey <tom@tromey.com>
5438 * tui/tui-source.c (tui_source_window_base::reset): Remove
5440 * tui/tui-layout.c (make_command_window, make_source_window)
5441 (make_disasm_window, make_data_window)
5442 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
5443 (reset_locator, show_source_or_disasm_and_command): Update.
5444 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
5446 (struct tui_source_window_base) <reset>: Likewise.
5448 2019-07-17 Tom Tromey <tom@tromey.com>
5450 * tui/tui-layout.c (show_source_disasm_command): Use
5452 (reset_locator): New function.
5453 (init_and_make_win): Remove.
5454 (show_source_or_disasm_and_command): Use reset_locator.
5456 2019-07-17 Tom Tromey <tom@tromey.com>
5458 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
5460 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
5462 * tui/tui-source.c (tui_source_window_base::reset): New method.
5463 * tui/tui-layout.c (make_command_window): Don't call
5465 (make_source_window, make_disasm_window): Don't call
5466 make_source_or_disasm_window.
5467 (make_data_window): Don't call init_and_make_win. Change calling
5469 (show_source_disasm_command, show_data): Simplify.
5470 (make_source_or_disasm_window): Remove.
5471 (show_source_or_disasm_and_command): Simplify.
5472 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
5473 (struct tui_source_window_base) <reset>: Likewise.
5474 <execution_info>: Remove initializer.
5475 * tui/tui-data.c (tui_source_window_base): Initialize
5478 2019-07-17 Tom Tromey <tom@tromey.com>
5480 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
5483 2019-07-17 Tom Tromey <tom@tromey.com>
5485 * tui/tui.c (tui_rl_other_window): Update.
5486 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
5487 superclass method first. Always iterate over regs_content.
5488 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
5490 * tui/tui-win.c (tui_set_focus_command): Update.
5492 2019-07-17 Tom Tromey <tom@tromey.com>
5494 * tui/tui-win.c (tui_set_focus_command): Rename from
5495 tui_set_focus. Call tui_enable.
5496 (tui_set_focus_command): Remove.
5498 2019-07-17 Tom Tromey <tom@tromey.com>
5500 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
5502 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
5504 (tui_data_window::refresh_window): Call refresh_window on data
5505 items. Always call superclass refresh_window.
5506 (tui_win_info::refresh): Remove.
5507 (tui_source_window_base::refresh_window): Update.
5508 (tui_refresh_all): Update.
5509 * tui/tui-layout.c (show_source_disasm_command): Remove call to
5511 (show_source_or_disasm_and_command): Likewise.
5512 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
5513 (struct tui_source_window_base) <refresh>: Likewise.
5515 2019-07-17 Tom Tromey <tom@tromey.com>
5517 * tui/tui-winsource.c (tui_clear_source_content)
5518 (tui_show_source_content): Update.
5519 * tui/tui-source.c (tui_source_window::showing_source_p): Check
5520 whether content is empty.
5521 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
5524 2019-07-17 Tom Tromey <tom@tromey.com>
5526 * tui/tui-winsource.c (tui_erase_source_content): Clear the
5528 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
5529 * tui/tui-source.c (tui_set_source_content_nil): Remove.
5531 2019-07-17 Tom Tromey <tom@tromey.com>
5533 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
5534 (struct tui_data_item_window): Update.
5536 2019-07-17 Tom Tromey <tom@tromey.com>
5538 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
5539 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
5542 2019-07-17 Tom Tromey <tom@tromey.com>
5544 * tui/tui-winsource.h (tui_erase_source_content)
5545 (tui_clear_source_content): Remove "display_prompt" parameter.
5546 * tui/tui-winsource.c (tui_update_source_window_as_is)
5547 (tui_update_source_windows_with_addr): Update.
5548 (tui_clear_source_content): Remove "display_prompt" parameter.
5549 (tui_erase_source_content): Likewise. Simplify.
5550 (tui_show_source_content): Update.
5551 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5552 * tui/tui-stack.c (tui_show_frame_info): Update.
5553 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
5556 2019-07-17 Tom Tromey <tom@tromey.com>
5558 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5559 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
5561 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
5564 2019-07-17 Tom Tromey <tom@tromey.com>
5566 * tui/tui-winsource.c (tui_clear_source_content)
5567 (tui_show_source_content, tui_show_exec_info_content)
5568 (tui_clear_exec_info_content): Update.
5569 * tui/tui-stack.c (tui_show_locator_content): Update.
5570 (tui_show_frame_info): Update.
5571 * tui/tui-source.h (tui_source_window): Don't declare.
5572 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
5573 from tui_source_is_displayed.
5574 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
5576 (struct tui_source_window_base) <content_in_use>: New field. Now
5578 (struct tui_source_window) <showing_source_p>: New method.
5579 (TUI_SRC_WIN): Change cast.
5580 * tui/tui-data.c (tui_initialize_static_data): Update.
5582 2019-07-17 Tom Tromey <tom@tromey.com>
5584 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
5586 * tui/tui-source.c (tui_source_window::location_matches_p): New
5588 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
5590 * tui/tui-data.h (struct tui_source_window_base)
5591 <location_matches_p>: New method.
5592 (struct tui_source_window, struct tui_disasm_window)
5593 <location_matches_p>: Likewise.
5595 2019-07-17 Tom Tromey <tom@tromey.com>
5597 * tui/tui-win.c (tui_set_win_height_command): Rename from
5599 (tui_set_win_height_command): Remove.
5601 2019-07-17 Tom Tromey <tom@tromey.com>
5603 * tui/tui-source.c (tui_source_window): New constructor. Add
5605 (~tui_source_window): New destructor.
5606 (tui_source_window::style_changed): New method.
5607 * tui/tui-hooks.c (tui_redisplay_source): Remove.
5608 (tui_attach_detach_observers): Update.
5609 * tui/tui-data.h (struct tui_source_window): Make constructor not
5610 inline. Add destructor.
5611 (struct tui_source_window) <style_changed>: New method.
5612 <m_observable>: New member.
5614 2019-07-17 Tom Tromey <tom@tromey.com>
5616 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
5617 * tui/tui-win.c (tui_resize_all): Fix typo.
5619 2019-07-17 Tom Tromey <tom@tromey.com>
5621 * tui/tui-wingeneral.h (tui_refresh_all): Update.
5622 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
5623 (tui_refresh_all): Remove "list" parameter. Use foreach.
5624 * tui/tui-win.c (window_name_completer): Use foreach.
5625 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
5626 (update_tab_width): Likewise.
5627 * tui/tui-layout.c (show_layout): Update.
5628 * tui/tui-data.h (class tui_window_iterator): New.
5629 (struct all_tui_windows): New.
5630 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
5632 2019-07-17 Tom Tromey <tom@tromey.com>
5634 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
5635 parameter. Don't reference globals.
5636 (tui_reg_command): Update.
5638 2019-07-17 Tom Tromey <tom@tromey.com>
5640 * tui/tui-regs.c (tui_show_registers): Simplify.
5642 2019-07-17 Tom Tromey <tom@tromey.com>
5644 * tui/tui-regs.c (tui_show_registers): Update.
5645 (tui_show_register_group): Add win_info parameter.
5647 2019-07-17 Tom Tromey <tom@tromey.com>
5649 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
5650 Rename from tui_display_reg_element_at_line.
5651 (tui_data_window::display_registers_from_line): Update.
5652 * tui/tui-data.h (struct tui_data_window)
5653 <display_reg_element_at_line>: New method.
5655 2019-07-17 Tom Tromey <tom@tromey.com>
5657 * tui/tui-regs.h (tui_display_registers_from)
5658 (tui_display_registers_from_line): Don't declare.
5659 * tui/tui-windata.c (tui_data_window::display_all_data)
5660 (tui_data_window::refresh_all)
5661 (tui_data_window::do_scroll_vertical): Update.
5662 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
5663 from tui_display_registers_from.
5664 (tui_display_reg_element_at_line): Update.
5665 (tui_data_window::display_registers_from_line): Rename from
5666 tui_display_registers_from_line.
5667 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
5668 display_registers_from_line>: New methods.
5670 2019-07-17 Tom Tromey <tom@tromey.com>
5672 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
5673 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
5674 from tui_erase_data_content.
5675 (tui_data_window::display_all_data)
5676 (tui_data_window::refresh_all)
5677 (tui_data_window::do_scroll_vertical): Update.
5678 * tui/tui-regs.c (tui_show_registers): Update.
5679 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
5682 2019-07-17 Tom Tromey <tom@tromey.com>
5684 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
5687 (tui_data_window::delete_data_content_windows): Rename from
5688 tui_delete_data_content_windows.
5689 (tui_data_window::display_all_data)
5690 (tui_data_window::do_scroll_vertical): Update.
5691 * tui/tui-data.h (struct tui_data_window)
5692 <delete_data_content_windows>: New method.
5694 2019-07-17 Tom Tromey <tom@tromey.com>
5696 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
5697 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
5699 2019-07-17 Tom Tromey <tom@tromey.com>
5701 * tui/tui-windata.h (tui_display_all_data): Don't declare.
5702 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
5703 from tui_display_all_data.
5705 (tui_data_window::do_make_visible_with_new_height): Update.
5706 * tui/tui-regs.c (tui_show_registers): Update.
5707 * tui/tui-layout.c (tui_set_layout): Update.
5708 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
5711 2019-07-17 Tom Tromey <tom@tromey.com>
5713 * tui/tui-windata.h (tui_display_data_from): Don't declare.
5714 * tui/tui-windata.c (tui_display_data_from): Remove.
5715 (tui_data_window::refresh_all): Update.
5717 2019-07-17 Tom Tromey <tom@tromey.com>
5719 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
5720 * tui/tui-windata.c (tui_display_data_from_line): Remove.
5721 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
5722 tui_display_registers_from_line.
5723 * tui/tui-regs.h (tui_display_registers_from_line): Update.
5724 * tui/tui-regs.c (tui_display_registers_from_line): Remove
5725 "force_display" parameter.
5727 2019-07-17 Tom Tromey <tom@tromey.com>
5729 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
5731 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
5732 Rename from tui_first_reg_element_no_inline.
5733 (tui_display_reg_element_at_line)
5734 (tui_display_registers_from_line): Update.
5735 * tui/tui-data.h (struct tui_data_window)
5736 <first_reg_element_no_inline>: New method.
5738 2019-07-17 Tom Tromey <tom@tromey.com>
5740 * tui/tui-windata.c (tui_display_data_from)
5741 (tui_data_window::do_scroll_vertical): Update.
5742 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
5743 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
5744 Rename from tui_line_from_reg_element_no.
5745 (tui_display_registers_from_line): Update.
5746 * tui/tui-data.h (struct tui_data_window)
5747 <line_from_reg_element_no>: New method.
5749 2019-07-17 Tom Tromey <tom@tromey.com>
5751 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
5752 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
5753 tui_last_regs_line_no.
5754 (tui_display_reg_element_at_line)
5755 (tui_display_registers_from_line): Update.
5756 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
5759 2019-07-17 Tom Tromey <tom@tromey.com>
5762 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
5763 (tui_update_breakpoint_info): Add "being_deleted" parameter.
5764 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5765 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
5766 (tui_update_breakpoint_info): Likewise.
5767 * tui/tui-hooks.c (tui_event_create_breakpoint)
5768 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
5771 2019-07-17 Tom Tromey <tom@tromey.com>
5773 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
5775 2019-07-17 Tom Tromey <tom@tromey.com>
5777 * tui/tui-winsource.c (tui_update_source_window_as_is)
5778 (tui_update_source_windows_with_addr): Update.
5779 * tui/tui-source.h (tui_set_source_content)
5780 (tui_show_symtab_source): Add "win_info" parameter.
5781 * tui/tui-source.c (tui_set_source_content): Add "win_info"
5783 (tui_show_symtab_source): Likewise.
5785 2019-07-17 Tom Tromey <tom@tromey.com>
5787 * tui/tui-wingeneral.c
5788 (tui_check_and_display_highlight_if_needed): Check can_highlight.
5790 2019-07-17 Tom Tromey <tom@tromey.com>
5792 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
5793 (struct tui_cmd_window) <can_scroll>: New method.
5794 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
5797 2019-07-17 Tom Tromey <tromey@adacore.com>
5799 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
5800 do_field_signed>: Rename. Change type of "value".
5801 * ui-out.c (ui_out::field_signed): Rename from field_int.
5802 Change type of "value".
5803 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
5805 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
5806 do_field_int. Change type of "value".
5807 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
5808 do_field_int. Change type of "value".
5809 * tracepoint.c (trace_status_mi, tfind_1)
5810 (print_one_static_tracepoint_marker): Update.
5811 * thread.c (print_thread_info_1, print_selected_thread_frame):
5813 * stack.c (print_frame, print_frame_info): Update.
5814 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
5816 * source.c (print_source_lines_base): Update.
5817 * skip.c (info_skip_command): Update.
5818 * record-btrace.c (btrace_ui_out_decode_error)
5819 (btrace_call_history_src_line): Update.
5820 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
5822 * progspace.c (print_program_space): Update.
5823 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
5824 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
5825 do_field_int. Change type of "value".
5826 * mi/mi-out.c (mi_ui_out::do_table_begin)
5827 (mi_ui_out::do_table_header): Update.
5828 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
5830 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
5831 (mi_cmd_data_list_changed_registers, output_register)
5832 (mi_cmd_data_read_memory, mi_load_progress)
5833 (mi_cmd_trace_frame_collected): Update.
5834 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
5836 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
5837 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
5838 (mi_cmd_var_list_children, varobj_update_one): Update.
5839 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
5840 (mi_cmd_stack_list_args, list_arg_or_local): Update.
5841 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
5842 * inferior.c (print_inferior): Update.
5843 * gdb_bfd.c (print_one_bfd): Update.
5844 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5846 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
5847 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
5848 do_field_int. Change type of "value".
5849 * cli-out.c (cli_ui_out::do_field_signed): Rename from
5850 do_field_int. Change type of "value".
5851 * breakpoint.c (watchpoint_check, print_breakpoint_location)
5852 (print_one_breakpoint_location, print_it_catch_fork)
5853 (print_one_catch_fork, print_it_catch_vfork)
5854 (print_one_catch_vfork, print_it_catch_solib)
5855 (print_it_catch_exec, print_it_ranged_breakpoint)
5856 (print_mention_watchpoint, print_mention_masked_watchpoint)
5857 (bkpt_print_it, update_static_tracepoint): Update.
5858 * break-catch-throw.c (print_it_exception_catchpoint): Update.
5859 * break-catch-syscall.c (print_it_catch_syscall): Update.
5860 * ada-tasks.c (print_ada_task_info): Update.
5861 * ada-lang.c (print_it_exception, print_mention_exception):
5864 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
5866 PR breakpoints/24541
5867 * gdbarch.c: Regenerate.
5868 * gdbarch.h: Regenerate.
5869 * gdbarch.sh: Adjust return type and parameter types for
5870 'stap_adjust_register'.
5871 (i386_stap_adjust_register): Adjust signature and return new
5873 * stap-probe.c (stap_parse_register_operand): Adjust use of
5874 'gdbarch_stap_adjust_register'.
5876 2019-07-17 Tom Tromey <tromey@adacore.com>
5878 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
5880 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
5882 (struct s390_process_info): Add initializers.
5883 (s390_add_process): Use new.
5884 (s390_linux_nat_target::low_forget_process): Use delete.
5885 (s390_linux_nat_target::low_new_fork)
5886 (s390_linux_nat_target::stopped_by_watchpoint)
5887 (s390_linux_nat_target::low_prepare_to_resume)
5888 (s390_linux_nat_target::insert_watchpoint)
5889 (s390_linux_nat_target::insert_hw_breakpoint)
5890 (s390_linux_nat_target::remove_watchpoint)
5891 (s390_linux_nat_target::remove_hw_breakpoint): Update.
5893 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5895 * aarch64-fbsd-nat.c: Include regcache.h.
5896 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
5898 (aarch64_fbsd_nat_target::fetch_registers)
5899 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
5901 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
5903 2019-07-16 John Baldwin <jhb@FreeBSD.org>
5905 * fbsd-nat.c: Include gdbarch.h.
5907 2019-07-15 Tom Tromey <tromey@adacore.com>
5909 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
5911 2019-07-15 Tom Tromey <tromey@adacore.com>
5913 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
5914 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
5915 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
5916 * cli-out.c (cli_ui_out::do_field_int): New method.
5917 * ui-out.c (ui_out::field_unsigned): New method.
5918 * symfile.c (generic_load): Use field_unsigned.
5919 (print_transfer_performance): Likewise.
5920 * record-btrace.c (ui_out_field_uint): Remove.
5921 (btrace_call_history_insn_range, btrace_call_history): Use
5923 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
5925 * ui-out.h (class ui_out) <field_unsigned>: New method.
5926 <do_field_unsigned>: Likewise.
5928 2019-07-15 Tom Tromey <tromey@adacore.com>
5930 * mi/mi-main.c (list_available_thread_groups): Use field_string.
5931 * mi/mi-interp.c (mi_memory_changed): Use field_string.
5932 * target.c (flash_erase_command): Use field_string.
5933 * infrun.c (print_signal_received_reason): Use field_string.
5934 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
5935 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
5937 * ada-tasks.c (print_ada_task_info): Use field_string.
5939 2019-07-15 Tom Tromey <tromey@adacore.com>
5941 * target.c (flash_erase_command): Use field_core_addr.
5942 * symfile.c (generic_load): Use field_core_addr.
5943 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5944 Use field_core_addr.
5945 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
5948 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5950 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
5951 value if its desired type is smaller than a CORE_ADDR and signed.
5953 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5955 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
5956 of changes to field names, and use new is_reference field to
5957 decide if a property is a reference or not.
5958 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
5960 (struct dwarf2_property_baton): Update header comment, rename
5961 'referenced_type' to 'property_type' and update comments.
5962 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
5963 default property type, store in property baton, update to take
5964 accound of renamed field.
5965 (read_func_scope): Update call to attr_to_dynamic_prop.
5966 (read_array_type): Likewise.
5967 (dwarf2_per_cu_addr_sized_int_type): New function.
5968 (read_subrange_index_type): Move type finding code to
5969 dwarf2_per_cu_addr_sized_int_type.
5970 (read_subrange_type): Update calls to attr_to_dynamic_prop.
5971 (dwarf2_per_cu_addr_type): New function.
5972 (set_die_type): Update calls to attr_to_dynamic_prop.
5974 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5976 * dwarf2read.c (read_subrange_index_type): New function.
5977 (read_subrange_type): Move code into new function and call it.
5978 * gdbtypes.c (create_range_type): Add some asserts.
5980 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5982 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
5983 update return statements.
5984 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
5985 declaration, and update comment to match.
5986 * gdbtypes.c (resolve_dynamic_array): Update call to
5987 dwarf2_evaluate_property to match new return type.
5989 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
5991 * valarith.c (value_subscripted_rvalue): Change lowerbound
5992 parameter type from int to LONGEST.
5993 * value.h (value_subscripted_rvalue): Likewise in declaration.
5995 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
5997 * cli/cli-utils.c (info_print_command_completer): New function.
5998 * cli/cli-utils.h: Add 'completer.h' include, and forward
5999 declaration for 'struct cmd_list_element'.
6000 (info_print_command_completer): Declare.
6001 * stack.c (_initialize_stack): Add completer for 'info locals' and
6003 * symtab.c (_initialize_symtab): Add completer for 'info
6004 variables' and 'info functions'.
6005 * NEWS: Mention completion for additional info commands.
6007 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6009 * cli/cli-utils.c (extract_info_print_args): Delete.
6010 (extract_arg_maybe_quoted): Delete.
6011 (info_print_options_defs): New variable.
6012 (make_info_print_options_def_group): New function.
6013 (extract_info_print_options): Define new function.
6014 * cli/cli-utils.h (extract_info_print_args): Delete.
6015 (struct info_print_options): New structure.
6016 (extract_info_print_options): Declare new function.
6017 * stack.c (info_locals_command): Update to use new
6018 extract_info_print_options, also add a header comment.
6019 (info_args_command): Likewise.
6020 * symtab.c (info_variables_command): Likewise.
6021 (info_functions_command): Likewise.
6023 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6025 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6026 to extract string arguments.
6027 * common/common-utils.c (extract_string_maybe_quoted): New function.
6028 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6030 2019-07-11 Tom Tromey <tromey@adacore.com>
6032 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6033 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6034 * top.h (gdbinit): Don't declare.
6035 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6037 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6038 * top.c (gdb_init): Don't call init_cli_cmds.
6040 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6042 2019-07-11 Tom Tromey <tromey@adacore.com>
6044 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6045 after it has been moved.
6047 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6049 * valops.c (value_must_coerce_to_target): Change return type to
6051 * value.h (value_must_coerce_to_target): Likewise.
6053 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
6055 * breakpoint.c (is_hardware_watchpoint): Remove
6056 forward-declaration.
6057 (is_masked_watchpoint): Change return type to bool.
6058 (is_tracepoint): Likewise.
6059 (is_breakpoint): Likewise.
6060 (is_hardware_watchpoint): Likewise.
6061 (is_watchpoint): Likewise.
6062 (is_no_memory_software_watchpoint): Likewise.
6063 (is_catchpoint): Likewise.
6064 (breakpoint_1): Make FILTER parameter's return type bool.
6065 is_masked_watchpoint): Change return type to bool.
6066 (save_breakpoints): Make FILTER parameter's return type bool.
6067 * breakpoint.h (is_breakpoint): Change return type to bool.
6068 (is_watchpoint): Likewise.
6069 (is_catchpoint): Likewise.
6070 (is_tracepoint): Likewise.
6072 2019-07-10 Tom Tromey <tom@tromey.com>
6074 * defs.h: Don't include gdbarch.h.
6075 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6076 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6077 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6078 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6079 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6080 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6081 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6082 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6083 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6084 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6085 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6086 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6087 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6088 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6089 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6090 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6091 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6092 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6093 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6094 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6095 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6096 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6097 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6098 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6099 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6100 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6101 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6103 2019-07-10 Tom Tromey <tromey@adacore.com>
6105 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6106 * breakpoint.c (init_ada_exception_breakpoint): Register as
6108 (print_one_breakpoint_location, print_one_breakpoint): Use
6109 is_ada_exception_catchpoint.
6110 * ada-lang.c (class ada_catchpoint_location): Pass
6111 bp_loc_software_breakpoint to bp_location constructor.
6112 (is_ada_exception_catchpoint): New function.
6114 2019-07-10 Tom Tromey <tromey@adacore.com>
6116 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6118 (struct arm_exidx_entry): New method operator<.
6119 (struct arm_exidx_data) <section_maps>: Change type.
6120 (arm_exidx_data_free): Remove.
6121 (arm_exidx_data_key): Change type. Move lower.
6122 (arm_exidx_new_objfile): Update.
6123 (arm_compare_exidx_entries): Remove.
6124 (arm_find_exidx_entry, _initialize_arm_tdep)
6126 2019-07-10 Tom Tromey <tromey@adacore.com>
6128 * solib-spu.c (ocl_program_data_key): Change type.
6129 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6132 2019-07-10 Tom Tromey <tromey@adacore.com>
6134 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6135 (struct solib_aix_inferior_data) <library_list>: Change type.
6136 (solib_aix_inferior_data_handle): Change type.
6137 (get_solib_aix_inferior_data): Update.
6138 (solib_aix_free_library_list): Remove.
6139 (library_list_start_library): Update.
6140 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6142 (solib_aix_get_library_list)
6143 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6144 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6146 2019-07-10 Tom Tromey <tromey@adacore.com>
6148 * solib-dsbt.c (struct dsbt_info): Add initializers.
6149 (solib_dsbt_pspace_data): Change type.
6150 (dsbt_pspace_data_cleanup): Remove.
6151 (get_dsbt_info, _initialize_dsbt_solib): Update.
6153 2019-07-10 Tom Tromey <tromey@adacore.com>
6155 * spu-tdep.c (spu_overlay_data): Change type.
6156 (spu_get_overlay_table, spu_overlay_new_objfile)
6157 (_initialize_spu_tdep): Update.
6159 2019-07-10 Tom Tromey <tromey@adacore.com>
6161 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6163 (dbx_objfile_data_key): Change type and declare later.
6164 (DBX_SYMFILE_INFO): Rewrite.
6165 * dbxread.c (dbx_objfile_data_key): Change type.
6166 (dbx_symfile_init): Update.
6167 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6168 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6169 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6171 2019-07-10 Tom Tromey <tromey@adacore.com>
6173 * jit.c (jit_program_space_key): Change type. Move lower.
6174 (get_jit_program_space_data): Update.
6175 (jit_program_space_data_cleanup): Remove.
6176 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6178 (struct jit_program_space_data): Add initializers.
6180 2019-07-10 Tom Tromey <tromey@adacore.com>
6182 * solib-darwin.c (struct darwin_info): Add initializers.
6183 (solib_darwin_pspace_data): Change type.
6184 (darwin_pspace_data_cleanup): Remove.
6185 (get_darwin_info, _initialize_darwin_solib): Update.
6187 2019-07-10 Tom Tromey <tromey@adacore.com>
6189 * remote-sim.c (struct sim_inferior_data): Add initializers,
6190 constructor, and destructor.
6191 (sim_inferior_data_key): Change type. Move lower.
6192 (check_for_duplicate_sim_descriptor): Update.
6193 (get_sim_inferior_data): Use new. Update.
6194 (~sim_inferior_data_cleanup): Rename from
6195 sim_inferior_data_cleanup. Simplify.
6196 (gdbsim_close_inferior, simulator_command)
6197 (sim_command_completer, _initialize_remote_sim): Update.
6198 (next_pid, INITIAL_PID): Move earlier.
6200 2019-07-10 Tom Tromey <tromey@adacore.com>
6202 * python/python-internal.h (create_thread_object): Return
6204 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6205 * python/py-inferior.c (struct threadlist_entry): Add
6207 <thread_obj>: Now a gdbpy_ref.
6208 (thread_to_thread_object): Update.
6209 (add_thread_object): Use new.
6210 (delete_thread_object): Use delete.
6211 (infpy_threads): Update.
6212 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6215 2019-07-10 Tom Tromey <tromey@adacore.com>
6217 * valops.c (value_cast): Specialize error message for Ada.
6219 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6221 * breakpoint.c (breakpoint_1): Update doc and parameter names.
6223 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6225 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
6226 bpstat_should_step): Return bool, adjust comments.
6227 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
6228 bpstat_should_step): Likewise.
6230 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6232 * features/Makefile: Use feature target descriptions for Arm.
6233 * features/arm/arm-core.c: Generate new file.
6234 * features/arm/arm-fpa.c: Likewise.
6235 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
6236 * features/arm/arm-m-profile.c: Likewise.
6237 * features/arm/arm-vfpv2.c: Likewise.
6238 * features/arm/arm-vfpv3.c: Likewise.
6239 * features/arm/xscale-iwmmxt.c: Likewise.
6240 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
6242 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6244 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
6247 2019-07-10 Alan Hayward <alan.hayward@arm.com>
6249 * features/aarch64-pauth.c: Regenerate.
6251 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
6253 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
6255 (bpstat_what): Use false instead of 0.
6257 2019-07-09 Pedro Alves <palves@redhat.com>
6259 * break-catch-throw.c (is_exception_catchpoint): New.
6260 * breakpoint.c (print_one_breakpoint_location): New parameter
6261 'raw_loc'. Handle it. Use
6262 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
6263 looking at the breakpoint's type.
6264 (print_one_breakpoint): If handling "maint info breakpoints", also
6265 print locations of exception catchpoints.
6266 * breakpoint.h (is_exception_catchpoint): Declare.
6268 2019-07-09 Pedro Alves <palves@redhat.com>
6270 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
6272 (allocate_location_exception_catchpoint): New.
6273 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
6274 (initialize_throw_catchpoint_ops): Install
6275 allocate_location_exception_catchpoint as allocate_location
6277 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
6278 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
6280 (breakpoint_address_is_meaningful): Delete.
6281 (bl_address_is_meaningful): New.
6282 (breakpoint_locations_match): Adjust comment.
6283 (bp_location_from_bp_type): New, factored out of...
6284 (bp_location::bp_location(breakpoint *)): ... this.
6285 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
6287 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
6288 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
6289 breakpoint_address_is_meaningful.
6290 (bp_locations_compare): Adjust comment.
6291 (update_global_location_list): Use bl_address_is_meaningful
6292 instead of breakpoint_address_is_meaningful.
6293 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
6295 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
6296 * python/py-breakpoint.c (bppy_get_location): No longer check
6297 whether location is null.
6299 2019-07-09 Pedro Alves <palves@redhat.com>
6302 * breakpoint.c (print_one_breakpoint_location): Remove
6303 single-location assert.
6305 2019-07-09 Tom Tromey <tom@tromey.com>
6307 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
6308 * configure: Rebuild.
6309 * configure.ac: Change common to gdbsupport.
6310 * gdbsupport: Rename from common.
6311 * acinclude.m4: Change common to gdbsupport.
6312 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
6313 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
6315 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
6316 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
6317 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
6318 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
6319 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
6320 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
6321 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
6322 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
6323 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
6324 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
6325 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
6326 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
6327 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
6328 coff-pe-read.c, command.h, compile/compile-c-support.c,
6329 compile/compile-c.h, compile/compile-cplus-symbols.c,
6330 compile/compile-cplus-types.c, compile/compile-cplus.h,
6331 compile/compile-loc2c.c, compile/compile.c, completer.c,
6332 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
6333 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
6334 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
6335 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
6336 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
6337 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
6338 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
6339 features/aarch64-core.c, features/aarch64-fpu.c,
6340 features/aarch64-pauth.c, features/aarch64-sve.c,
6341 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
6342 features/i386/32bit-core.c, features/i386/32bit-linux.c,
6343 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
6344 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
6345 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
6346 features/i386/64bit-core.c, features/i386/64bit-linux.c,
6347 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
6348 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
6349 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
6350 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
6351 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
6352 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
6353 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
6354 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
6355 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
6356 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
6357 go32-nat.c, guile/guile.c, guile/scm-ports.c,
6358 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
6359 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
6360 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
6361 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
6362 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
6363 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
6364 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
6365 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
6366 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
6367 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
6368 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
6369 minsyms.c, mips-linux-tdep.c, namespace.h,
6370 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
6371 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
6372 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
6373 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
6374 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
6375 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
6376 nat/linux-waitpid.c, nat/mips-linux-watch.c,
6377 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
6378 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
6379 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
6380 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
6381 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
6382 procfs.c, producer.c, progspace.h, psymtab.h,
6383 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
6384 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
6385 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
6386 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
6387 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
6388 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
6389 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
6390 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
6391 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
6392 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
6393 target-memory.c, target.c, target.h, target/waitstatus.c,
6394 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
6395 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
6396 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
6397 unittests/array-view-selftests.c,
6398 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
6399 unittests/common-utils-selftests.c,
6400 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
6401 unittests/format_pieces-selftests.c,
6402 unittests/function-view-selftests.c,
6403 unittests/lookup_name_info-selftests.c,
6404 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
6405 unittests/mkdir-recursive-selftests.c,
6406 unittests/observable-selftests.c,
6407 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
6408 unittests/parse-connection-spec-selftests.c,
6409 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
6410 unittests/scoped_fd-selftests.c,
6411 unittests/scoped_mmap-selftests.c,
6412 unittests/scoped_restore-selftests.c,
6413 unittests/string_view-selftests.c, unittests/style-selftests.c,
6414 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
6415 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
6416 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
6417 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
6418 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
6419 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
6421 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6423 * linespec.c (decode_digits_list_mode): Set explicit_line to a
6425 (decode_digits_ordinary): Set explicit_line field in sal.
6426 * symtab.c (skip_prologue_sal): Don't skip prologue for a
6427 symtab_and_line that was set on an explicit line number in
6428 assembler code. Do always update the recorded symtab and line if
6429 we do skip the prologue.
6431 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6433 * breakpoint.c (set_breakpoint_location_function): Remove
6434 explicit_loc parameter.
6435 (momentary_breakpoint_from_master): Update call to
6436 set_breakpoint_location_function.
6437 (add_location_to_breakpoint): Likewise.
6439 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6441 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
6442 required features based on default bfd type when no specific bfd
6445 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6447 * NEWS: Mention that GDB printf and eval commands can now print
6448 C-style and Ada-style convenience var strings without
6449 calling the inferior.
6450 * printcmd.c (printf_c_string): Locally print GDB internal var
6451 instead of transiting via the inferior.
6452 (printf_wide_c_string): Likewise.
6454 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6456 PR breakpoints/25011
6457 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
6459 2019-07-04 Tom Tromey <tom@tromey.com>
6462 * tui/tui-winsource.c (tui_clear_source_content): Update.
6463 (tui_source_window_base::set_is_exec_point_at): Fix comment.
6464 (tui_update_breakpoint_info): Update.
6465 (tui_set_exec_info_content): Update.
6466 * tui/tui-source.c (tui_set_source_content_nil): Update.
6467 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
6469 * tui/tui-data.h (enum tui_bp_flag): New.
6470 (tui_bp_flags): New enum flags type.
6471 (struct tui_source_element) <break_mode>: Change type. Rename
6473 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
6474 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
6476 * tui/tui-winsource.h: Fix comment.
6478 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6480 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
6481 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
6482 (store_fpregs_to_thread)
6483 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6484 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
6485 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
6486 (IWMMXT_REGS_SIZE): Add define.
6487 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
6488 (fetch_vfp_regs, store_vfp_regs)
6489 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
6490 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
6492 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6494 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
6496 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
6497 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
6498 (ARM_INT_REGISTER_SIZE): ...to this.
6499 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
6500 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
6501 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
6502 (arm_linux_collect_gregset, supply_nwfpe_register)
6503 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
6505 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
6506 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
6507 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
6508 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
6509 (arm_return_in_memory, arm_store_return_value)
6510 (arm_get_longjmp_target, arm_register_g_packet_guesses)
6511 (arm_record_ld_st_multiple): Likewise.
6512 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
6513 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
6515 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6517 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
6518 AARCH64_DISPLACED_MODIFIED_INSNS.
6519 * aarch64-tdep.c (struct aarch64_displaced_step_data)
6520 (aarch64_displaced_step_copy_insn): Likewise.
6521 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6522 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
6523 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
6524 ARM_DISPLACED_MODIFIED_INSNS.
6525 * arm-tdep.c (arm_gdbarch_init): Likewise.
6526 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
6527 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
6528 (struct arm_displaced_step_closure): Use
6529 ARM_DISPLACED_MODIFIED_INSNS.
6531 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6533 * features/Makefile: Remove unused xml files.
6534 * features/aarch64.xml: Remove.
6535 * features/i386/amd64-avx-avx512-linux.xml: Remove.
6536 * features/i386/amd64-avx-avx512.xml: Remove.
6537 * features/i386/amd64-avx-linux.xml: Remove.
6538 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
6539 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
6540 * features/i386/amd64-avx-mpx-linux.xml: Remove.
6541 * features/i386/amd64-avx-mpx.xml: Remove.
6542 * features/i386/amd64-avx.xml: Remove.
6543 * features/i386/amd64-linux.xml: Remove.
6544 * features/i386/amd64-mpx-linux.xml: Remove.
6545 * features/i386/amd64-mpx.xml: Remove.
6546 * features/i386/amd64.xml: Remove.
6547 * features/i386/i386-avx-avx512-linux.xml: Remove.
6548 * features/i386/i386-avx-avx512.xml: Remove.
6549 * features/i386/i386-avx-linux.xml: Remove.
6550 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
6551 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
6552 * features/i386/i386-avx-mpx-linux.xml: Remove.
6553 * features/i386/i386-avx-mpx.xml: Remove.
6554 * features/i386/i386-avx.xml: Remove.
6555 * features/i386/i386-linux.xml: Remove.
6556 * features/i386/i386-mmx-linux.xml: Remove.
6557 * features/i386/i386-mmx.xml: Remove.
6558 * features/i386/i386-mpx-linux.xml: Remove.
6559 * features/i386/i386-mpx.xml: Remove.
6560 * features/i386/i386.xml: Remove.
6561 * features/i386/x32-avx-avx512-linux.xml: Remove.
6562 * features/i386/x32-avx-linux.xml: Remove.
6563 * features/i386/x32-linux.xml: Remove.
6565 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6567 * regformats/aarch64.dat: Remove.
6568 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
6569 * regformats/i386/amd64-avx-linux.dat: Remove.
6570 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
6571 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
6572 * regformats/i386/amd64-linux.dat: Remove.
6573 * regformats/i386/amd64-mpx-linux.dat: Remove.
6574 * regformats/i386/amd64.dat: Remove.
6575 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
6576 * regformats/i386/i386-avx-linux.dat: Remove.
6577 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
6578 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
6579 * regformats/i386/i386-linux.dat: Remove.
6580 * regformats/i386/i386-mmx-linux.dat: Remove.
6581 * regformats/i386/i386-mpx-linux.dat: Remove.
6582 * regformats/i386/i386.dat: Remove.
6583 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
6584 * regformats/i386/x32-avx-linux.dat: Remove.
6585 * regformats/i386/x32-linux.dat: Remove.
6587 2019-07-04 Alan Hayward <alan.hayward@arm.com>
6589 * aarch64-tdep.c: Remove xml self tests.
6590 * amd64-linux-tdep.c: Likewise.
6591 * amd64-tdep.c: Likewise.
6592 * i386-linux-tdep.c: Likewise.
6593 * i386-tdep.c: Likewise.
6595 2019-07-03 Pedro Alves <palves@redhat.com>
6598 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
6599 (pipe_cmd_option_defs): New.
6600 (make_pipe_cmd_options_def_group): New.
6601 (pipe_command): Use gdb::option::process_options.
6602 (pipe_command_completer): New function.
6603 (_initialize_cli_cmds): Install completer for "pipe" command.
6605 2019-07-03 Pedro Alves <palves@redhat.com>
6607 * cli/cli-option.c (union option_value) <string>: New field.
6608 (struct option_def_and_value): Add ctor, move ctor, dtor and
6609 use DISABLE_COPY_AND_ASSIGN.
6610 (option_def_and_value::clear_value): New.
6611 (parse_option, save_option_value_in_ctx, get_val_type_str)
6612 (add_setshow_cmds_for_options): Handle var_string.
6613 * cli-option.h (union option_def::var_address) <string>: New
6615 (struct string_option_def): New.
6616 * maint-test-options.c (struct test_options_opts): Add default
6617 ctor and use DISABLE_COPY_AND_ASSIGN.
6618 <string_opt>: New field.
6619 (test_options_opts::~test_options_opts): New.
6620 (test_options_opts::dump): Also dump "-string".
6621 (test_options_option_defs): Install "string.
6623 2019-07-03 Pedro Alves <palves@redhat.com>
6625 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
6626 option_value with a null enumeration.
6627 (complete_options): Save the option values in the context.
6628 (save_option_value_in_ctx): New, factored out from ...
6629 (process_options): ... here.
6630 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
6632 * maint-test-options.c (test_options_opts::dump): New, factored
6634 (maintenance_test_options_command_mode): ... here.
6635 (maintenance_test_options_command_completion_result): Delete.
6636 (maintenance_test_options_command_completion_text): Update
6638 (maintenance_show_test_options_completion_result): Change
6639 prototype. Just print
6640 maintenance_test_options_command_completion_text.
6641 (save_completion_result): New.
6642 (maintenance_test_options_completer_mode): Pass options context to
6643 complete_options, and then save a dump.
6644 (_initialize_maint_test_options): Use add_cmd to install "maint
6645 show test-options-completion-result".
6647 2019-07-03 Pedro Alves <palves@redhat.com>
6649 * NEWS (New commands): Mention "with" and "maint with".
6650 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
6651 (with_command, with_command_completer): New.
6652 (pipe_command): Adjust to new repeat_previous
6654 (_initialize_cli_cmds): Install the "with" command and its "w"
6656 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
6658 * cli/cli-setshow.c (parse_cli_var_uinteger)
6659 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
6660 argument strings for all var_types.
6661 (get_setshow_command_value_string): New, factored out from ...
6662 (do_show_command): ... this.
6663 * cli/cli-setshow.h: Include <string>.
6664 (get_setshow_command_value_string): Declare.
6665 * command.h (repeat_previous): Now returns const char *. Adjust
6667 * maint.c: Include "cli/cli-cmds.h".
6668 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
6669 (_initialize_maint_cmds): Register the "maintenance with" command.
6670 * top.c (repeat_previous): Move bits from pipe_command here:
6671 Return the saved command line, if any; error out if there's no
6672 command to relaunch.
6674 2019-07-03 Pedro Alves <palves@redhat.com>
6676 * NEWS (New commands): Mention "maint set/show test-settings"
6677 instead of "maint test-settings".
6678 * maint-test-settings.c (maintenance_test_settings_list): Delete.
6679 (maintenance_test_settings_set_list): Rename to ...
6680 (maintenance_set_test_settings_list): ... this.
6681 (maintenance_test_settings_show_list): Rename to ...
6682 (maintenance_show_test_settings_list): ... this.
6683 (maintenance_test_settings_cmd): Delete.
6684 (maintenance_test_settings_set_cmd): ...
6685 (maintenance_set_test_settings_cmd): ... this.
6686 (maintenance_test_settings_show_cmd): ...
6687 (maintenance_show_test_settings_cmd): ... this.
6688 (maintenance_test_settings_show_value_cmd):
6689 (maintenance_show_test_settings_value_cmd): ... this.
6690 (_initialize_maint_test_settings): No longer install the "maint
6691 test-settings" prefix command. Rename "maint test-settings set"
6692 to "maint set test-settings", and "maint test-settings show" to
6693 "maint show test-settings". Adjust all subcommands.
6695 2019-07-03 Pedro Alves <palves@redhat.com>
6697 * maint-test-settings.c: Fix file's intro comment. Replace all
6698 references to "test-options" with references to "test-settings",
6701 2019-07-03 Pedro Alves <palves@redhat.com>
6703 * maint-test-settings.c (maintenance_test_settings_xxx)
6704 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
6706 (maintenance_test_settings_enums): Use them.
6707 (maintenance_test_settings_enum): Default to
6708 maintenance_test_settings_xxx.
6709 (_initialize_maint_test_settings): Initialize
6710 MAINTENANCE_TEST_SETTINGS_FILENAME.
6712 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6714 * breakpoint.h (remove_breakpoints_inf): Change return type to
6715 void, move function documentation here.
6716 * breakpoint.c (remove_breakpoints_inf): Change return type to
6717 void, move function documentation to header.
6719 2019-07-02 Pedro Alves <palves@redhat.com>
6721 * NEWS (Completion improvements): Mention "info threads".
6722 * thread.c (struct info_threads_opts, info_threads_option_defs)
6723 (make_info_threads_options_def_group): New.
6724 (info_threads_command): Use gdb::option::process_options.
6725 (info_threads_command_completer): New.
6726 (_initialize_thread): Use gdb::option::build_help to build the
6727 help text for "info threads".
6729 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6731 * defs.h (generic_load): Move from here...
6732 * symfile.h (generic_load): ... to here. Rename name parameter
6734 * symfile.c (generic_load): Add comment.
6736 2019-07-01 Tom Tromey <tromey@adacore.com>
6739 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
6740 declaration of without_params. Fix formatting.
6742 2019-07-01 Tom Tromey <tromey@adacore.com>
6744 * ada-exp.y (find_primitive_type): Update.
6745 * ada-lang.h (ada_lookup_symbol): Update.
6746 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
6748 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
6750 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6752 PR breakpoints/24541
6753 * gdbarch.c: Regenerate.
6754 * gdbarch.h: Regenerate.
6755 * gdbarch.sh: Add 'stap_adjust_register'.
6756 * i386-tdep.c: Include '<unordered_set>'.
6757 (i386_stap_adjust_register): New function.
6758 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
6759 * stap-probe.c (stap_parse_register_operand): Call
6760 'gdbarch_stap_adjust_register'.
6762 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
6765 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
6766 * python/python.c (do_start_initialization): Use 'xmalloc'
6767 instead of 'PyMem_Malloc'.
6769 2019-06-28 Tom Tromey <tromey@adacore.com>
6771 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
6774 2019-06-27 Tom Tromey <tromey@adacore.com>
6776 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
6778 (arm_find_mapping_symbol, arm_record_special_symbol)
6779 (_initialize_arm_tdep): Update.
6780 (arm_objfile_data_free): Remove.
6782 2019-06-27 Tom Tromey <tromey@adacore.com>
6784 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
6785 to cp_print_static_field.
6787 2019-06-26 Tom Tromey <tromey@adacore.com>
6789 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
6790 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
6793 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6795 * features/aarch64-core.c (create_feature_aarch64_core):
6797 * features/aarch64-core.xml: Add cpsr flags.
6799 2019-06-26 Alan Hayward <alan.hayward@arm.com>
6801 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
6802 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
6804 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6806 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
6808 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
6810 (arm_record_special_symbol): Don't insert new symbol in sorted
6811 position, push it at the end.
6813 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
6815 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
6816 (arm_mapping_symbol_s): Remove.
6817 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
6818 (arm_mapping_symbol_vec): New typedef.
6819 (struct arm_per_objfile): Add constructor.
6820 <section_maps>: Change type to
6821 std::unique_ptr<arm_mapping_symbol_vec[]>.
6822 (arm_compare_mapping_symbols): Remove.
6823 (arm_find_mapping_symbol): Adjust to section_maps type change.
6824 (arm_objfile_data_free): Call delete on arm_per_objfile.
6825 (arm_record_special_symbol): Adjust to section_maps type change.
6826 Allocate arm_per_objfile with new.
6828 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6830 * cli/cli-cmds.c (alias_command): Compare the alias prefix
6831 with the command prefix.
6833 2019-06-25 Tom Tromey <tom@tromey.com>
6835 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
6836 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
6838 2019-06-25 Tom Tromey <tom@tromey.com>
6840 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
6842 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
6845 2019-06-25 Tom Tromey <tom@tromey.com>
6847 * tui/tui-winsource.c
6848 (tui_source_window_base::set_is_exec_point_at): Add check against
6851 2019-06-25 Tom Tromey <tom@tromey.com>
6853 * tui/tui-source.c (tui_set_source_content): Don't check before
6855 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
6857 2019-06-25 Tom Tromey <tom@tromey.com>
6859 * tui/tui-winsource.h (tui_update_source_window_as_is)
6860 (tui_alloc_source_buffer, tui_line_is_displayed)
6861 (tui_addr_is_displayed): Change type of win_info.
6862 * tui/tui-winsource.c (tui_update_source_window_as_is)
6863 (tui_clear_source_content, tui_show_source_line)
6864 (tui_show_source_content, tui_source_window_base::refill)
6865 (tui_source_window_base::set_is_exec_point_at)
6866 (tui_source_window_base::set_is_exec_point_at)
6867 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
6868 (tui_alloc_source_buffer, tui_line_is_displayed)
6869 (tui_addr_is_displayed): Change type of win_info. Update.
6870 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6871 (tui_source_window_base::do_make_visible_with_new_height):
6873 * tui/tui-source.c (tui_set_source_content)
6874 (tui_set_source_content_nil)
6875 (tui_source_window::do_scroll_vertical): Update.
6876 * tui/tui-layout.c (show_layout): Update.
6877 * tui/tui-disasm.c (tui_set_disassem_content)
6878 (tui_disasm_window::do_scroll_vertical): Update.
6879 * tui/tui-data.h (tui_win_content): Remove.
6880 (struct tui_gen_win_info) <content, content_size>: Remove.
6881 (struct tui_source_element): Add initializers and destructor.
6882 (union tui_which_element, struct tui_win_element): Remove.
6883 (struct tui_source_window_base) <content>: New field.
6884 (struct tui_data_window): Remove destructor.
6885 (tui_alloc_content, tui_free_win_content)
6886 (tui_free_all_source_wins_content): Don't declare.
6887 * tui/tui-data.c (tui_initialize_static_data): Update.
6888 (init_content_element, tui_alloc_content): Remove.
6889 (~tui_gen_win_info): Update.
6890 (~tui_data_window, tui_free_all_source_wins_content)
6891 (tui_free_win_content, free_content, free_content_elements):
6894 2019-06-25 Tom Tromey <tom@tromey.com>
6896 * tui/tui-winsource.h (tui_clear_source_content)
6897 (tui_erase_source_content, tui_show_source_content): Change type
6899 * tui/tui-winsource.c (tui_clear_source_content)
6900 (tui_erase_source_content, tui_show_source_content): Change type
6902 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6903 * tui/tui-source.h (tui_set_source_content_nil): Change type of
6905 * tui/tui-source.c (tui_set_source_content_nil): Change type of
6907 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
6909 2019-06-25 Tom Tromey <tom@tromey.com>
6911 * tui/tui-winsource.c (tui_clear_source_content)
6912 (tui_source_window_base::set_is_exec_point_at): Update.
6913 * tui/tui-source.c (tui_set_source_content_nil): Update.
6914 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
6916 * tui/tui-data.c (init_content_element): Update.
6918 2019-06-25 Tom Tromey <tom@tromey.com>
6920 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
6921 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
6922 * tui/tui-layout.c (init_and_make_win): Update.
6923 * tui/tui.h (enum tui_win_type): Update.
6924 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
6925 tui_win_is_auxillary.
6926 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
6927 tui_win_is_auxillary.
6929 2019-06-25 Tom Tromey <tom@tromey.com>
6931 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
6932 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
6933 (tui_delete_data_content_windows, tui_display_all_data)
6934 (tui_data_window::do_scroll_vertical, tui_display_data_from):
6936 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
6937 * tui/tui-regs.c (tui_last_regs_line_no)
6938 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6939 (tui_show_registers): Update.
6940 (tui_show_register_group): Return void. Update.
6941 (tui_display_registers_from, tui_display_reg_element_at_line)
6942 (tui_display_registers_from_line, tui_check_register_values):
6944 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
6946 (struct tui_data_window) <regs_content>: Now a std::vector.
6947 <regs_content_count>: Remove.
6948 (tui_add_content_elements, tui_free_data_content): Don't declare.
6949 * tui/tui-data.c (tui_data_window::clear_detail): Update.
6950 (init_content_element): Remove DATA_WIN case. Add assert.
6951 (tui_add_content_elements): Remove.
6952 (tui_data_window): Update.
6953 (tui_free_data_content): Remove.
6954 (free_content_elements): Remove DATA_WIN case.
6956 2019-06-25 Tom Tromey <tom@tromey.com>
6958 * tui/tui-data.c (tui_data_item_window): Update.
6959 * tui/tui-windata.h (tui_check_data_values): Don't declare.
6960 * tui/tui-windata.c (tui_display_all_data)
6961 (tui_display_data_from_line): Update.
6962 (tui_check_data_values): Remove.
6963 * tui/tui-regs.c (tui_show_register_group)
6964 (tui_display_reg_element_at_line): Update.
6965 * tui/tui-hooks.c (tui_register_changed)
6966 (tui_refresh_frame_and_register_information): Call
6967 tui_check_register_values.
6968 * tui/tui-data.h (struct tui_data_window) <data_content,
6969 data_content_count, data_type>: Remove.
6970 (enum tui_data_type): Remove.
6972 * tui/tui-data.c (tui_data_window::clear_detail)
6973 (~tui_data_window): Update.
6975 2019-06-25 Tom Tromey <tom@tromey.com>
6977 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
6979 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
6980 Rename from tui_first_data_item_displayed. Update.
6981 (tui_data_window::refresh_all)
6982 (tui_data_window::do_scroll_vertical): Update.
6983 * tui/tui-data.h (struct tui_data_window)
6984 <first_data_item_displayed>: Declare new method.
6986 2019-06-25 Tom Tromey <tom@tromey.com>
6988 * tui/tui-data.h (tui_init_generic_part): Don't declare.
6989 * tui/tui-data.c (tui_init_generic_part): Remove, moving
6991 (tui_initialize_static_data): ...here.
6993 2019-06-25 Tom Tromey <tom@tromey.com>
6995 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6996 (tui_display_registers_from, tui_check_register_values): Update.
6997 (tui_display_register): Remove win_info parameter; update.
6998 (tui_get_register): Change type of parameters.
6999 * tui/tui-data.h (struct tui_data_element): Remove.
7000 (union tui_which_element) <data>: Remove.
7001 <data_window>: Change type.
7002 (struct tui_data_item_window): New.
7003 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7005 (~tui_data_item_window): New destructor.
7006 (free_content_elements): Remove DATA_ITEM_WIN case.
7008 2019-06-25 Tom Tromey <tom@tromey.com>
7010 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7013 2019-06-25 Tom Tromey <tom@tromey.com>
7015 * tui/tui-data.h (struct tui_command_element): Remove.
7016 (union tui_which_element) <command>: Remove.
7017 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7019 (free_content_elements): Remove CMD_WIN case.
7021 2019-06-25 Tom Tromey <tom@tromey.com>
7023 * tui/tui-layout.c (tui_set_layout): Update.
7024 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7025 * tui/tui-data.c (layout_def): Update.
7027 2019-06-25 Tom Tromey <tom@tromey.com>
7029 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7030 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7031 (tui_source_window_base::set_new_height): Update.
7032 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7034 (tui_set_locator_fullname, tui_set_locator_info)
7035 (tui_show_frame_info): Update.
7036 * tui/tui-source.c (tui_set_source_content)
7037 (tui_source_is_displayed): Update.
7038 * tui/tui-layout.c (show_source_disasm_command, show_data)
7039 (show_source_or_disasm_and_command): Update.
7040 * tui/tui-disasm.c (tui_set_disassem_content)
7041 (tui_get_begin_asm_address): Update.
7042 * tui/tui-data.h (struct tui_locator_element): Remove.
7043 (union tui_which_element) <locator>: Remove.
7044 (struct tui_locator_window): New.
7045 (tui_locator_win_info_ptr): Change return type.
7046 * tui/tui-data.c (_locator): Change type.
7047 (tui_locator_win_info_ptr): Change return type.
7048 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7049 (tui_alloc_content): Add assert.
7051 2019-06-25 Tom Tromey <tom@tromey.com>
7053 * tui/tui-winsource.c
7054 (tui_exec_info_window::maybe_allocate_content): New method.
7055 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7056 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7057 (make_source_or_disasm_window): Add cast.
7058 * tui/tui-data.h (union tui_which_element) <simple_string>:
7060 (struct tui_source_info): New.
7061 (struct tui_source_window_base) <execution_info>: Change type.
7062 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7063 case, and add assert.
7064 (tui_alloc_content): Add assert.
7066 2019-06-25 Tom Tromey <tom@tromey.com>
7068 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7069 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7070 * tui/tui-data.c (tui_alloc_win_info): Remove.
7072 2019-06-25 Tom Tromey <tom@tromey.com>
7074 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7075 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7078 2019-06-25 Tom Tromey <tom@tromey.com>
7080 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7081 make_visible_with_new_height method.
7082 (tui_win_info::make_visible_with_new_height): New method.
7083 (tui_source_window_base::do_make_visible_with_new_height)
7084 (tui_data_window::do_make_visible_with_new_height)
7085 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7086 (make_visible_with_new_height): Remove.
7087 (tui_resize_all, tui_adjust_win_heights): Use
7088 make_visible_with_new_height method.
7089 * tui/tui-data.h (struct tui_win_info)
7090 <do_make_visible_with_new_height, make_visible_with_new_height>:
7092 (struct tui_source_window_base, struct tui_data_window)
7093 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7096 2019-06-25 Tom Tromey <tom@tromey.com>
7098 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7100 (update_tab_width): Call update_tab_width method.
7101 * tui/tui-data.h (struct tui_win_info)
7102 (struct tui_source_window_base) <update_tab_width>: New methods.
7104 2019-06-25 Tom Tromey <tom@tromey.com>
7106 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7108 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7110 (tui_gen_win_info::make_visible): Update.
7111 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7113 * tui/tui-data.h (enum tui_box): New enum.
7114 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7116 2019-06-25 Tom Tromey <tom@tromey.com>
7118 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7119 init_and_make_win for EXEC_INFO_WIN.
7120 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7122 (struct tui_win_info) <~tui_win_info>: Inline.
7123 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7125 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7126 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7128 (tui_initialize_static_data): Update.
7129 (~tui_gen_win_info): Handle more cleanup here.
7130 (~tui_source_window_base): Delete "execution_info".
7131 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7133 2019-06-25 Tom Tromey <tom@tromey.com>
7135 * tui/tui-layout.c (make_command_window): Don't set
7137 (show_source_disasm_command): Call the reset method.
7138 (show_data): Don't set can_highlight. Call the reset method.
7139 (tui_gen_win_info::reset): Rename from init_gen_win_info
7140 (init_and_make_win): Simplify. Return tui_gen_win_info.
7141 (show_source_or_disasm_and_command): Call the reset method.
7142 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7143 (struct tui_cmd_window): Set can_highlight.
7145 2019-06-25 Tom Tromey <tom@tromey.com>
7147 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7149 (tui_make_visible, tui_make_invisible): Rewrite.
7150 (tui_win_info::make_visible): Remove.
7151 (tui_source_window_base::make_visible): Update.
7152 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7153 method. Moved from...
7154 (struct tui_win_info) <make_visible>: ...here.
7156 2019-06-25 Tom Tromey <tom@tromey.com>
7158 * tui/tui-winsource.c
7159 (tui_source_window_base::do_scroll_horizontal): Remove direction
7161 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7162 direction parameter.
7163 * tui/tui-win.c (tui_win_info::forward_scroll)
7164 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7165 (tui_win_info::right_scroll): Update.
7166 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7167 direction parameter.
7168 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7169 direction parameter.
7170 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7171 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7172 Remove direction parameter.
7173 (struct tui_source_window_base, struct tui_source_window)
7174 (struct tui_disasm_window, struct tui_data_window)
7175 (struct tui_cmd_window): Update.
7177 2019-06-25 Tom Tromey <tom@tromey.com>
7179 * tui/tui-winsource.h (tui_set_exec_info_content)
7180 (tui_show_exec_info_content, tui_erase_exec_info_content)
7181 (tui_clear_exec_info_content, tui_update_exec_info): Change
7182 argument to tui_source_window_base.
7183 * tui/tui-winsource.c (tui_set_exec_info_content)
7184 (tui_show_exec_info_content, tui_erase_exec_info_content)
7185 (tui_clear_exec_info_content, tui_update_exec_info): Change
7186 argument to tui_source_window_base.
7188 2019-06-25 Tom Tromey <tom@tromey.com>
7190 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7191 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7193 2019-06-25 Tom Tromey <tom@tromey.com>
7195 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7198 2019-06-25 Tom Tromey <tom@tromey.com>
7200 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7202 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7204 * tui/tui-source.c (tui_set_source_content): Update.
7205 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7207 2019-06-25 Tom Tromey <tom@tromey.com>
7209 * tui/tui-win.c (window_name_completer, tui_set_focus)
7210 (tui_all_windows_info): Use name method.
7211 * tui/tui-data.h (struct tui_gen_win_info)
7212 (struct tui_source_window, struct tui_disasm_window)
7213 (struct tui_data_window, struct tui_cmd_window) <name>: New
7215 (tui_win_name): Don't declare.
7216 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7217 (tui_win_name): Remove.
7219 2019-06-25 Tom Tromey <tom@tromey.com>
7221 * tui/tui-winsource.h (tui_update_source_window)
7222 (tui_update_source_window_as_is): Change parameter type.
7223 * tui/tui-winsource.c (tui_update_source_window): Change win_info
7224 to be a tui_source_window_base.
7225 (tui_update_source_window_as_is): Likewise.
7226 * tui/tui-win.c (make_visible_with_new_height): Update.
7228 2019-06-25 Tom Tromey <tom@tromey.com>
7230 * tui/tui-winsource.c (tui_erase_source_content)
7231 (tui_show_source_content, tui_show_exec_info_content)
7232 (tui_erase_exec_info_content): Use refresh_window method.
7233 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
7234 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
7235 from tui_refresh_win.
7236 (tui_data_window::refresh_window): New method.
7237 (tui_win_info::refresh, tui_source_window_base::refresh)
7238 (tui_refresh_all): Use refresh_window method.
7239 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
7241 * tui/tui-regs.c (tui_display_register): Call refresh_window
7243 * tui/tui-layout.c (show_source_disasm_command)
7244 (show_source_or_disasm_and_command): Call refresh_window method.
7245 * tui/tui-data.h (struct tui_gen_win_info)
7246 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
7249 2019-06-25 Tom Tromey <tom@tromey.com>
7251 * tui/tui.c (tui_rl_other_window, tui_enable)
7252 (tui_is_window_visible, tui_get_command_dimension): Update.
7253 * tui/tui-winsource.c (tui_update_source_window_as_is)
7254 (tui_clear_source_content, tui_erase_source_content)
7255 (tui_show_source_line, tui_source_window_base::refill)
7256 (tui_source_window_base::do_scroll_horizontal)
7257 (tui_source_window_base::set_is_exec_point_at)
7258 (tui_update_breakpoint_info, tui_set_exec_info_content)
7259 (tui_alloc_source_buffer, tui_line_is_displayed)
7260 (tui_addr_is_displayed): Update.
7261 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7262 (tui_check_and_display_highlight_if_needed)
7263 (tui_win_info::make_visible, tui_win_info::refresh)
7264 (tui_refresh_all): Update.
7265 * tui/tui-windata.c (tui_first_data_item_displayed)
7266 (tui_delete_data_content_windows, tui_erase_data_content)
7267 (tui_display_all_data, tui_data_window::refresh_all)
7268 (tui_check_data_values): Update.
7269 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
7270 (tui_set_win_focus_to, tui_win_info::forward_scroll)
7271 (tui_win_info::backward_scroll, tui_refresh_all_win)
7272 (tui_resize_all, tui_set_focus, tui_all_windows_info)
7273 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
7274 (tui_source_window_base::set_new_height)
7275 (tui_data_window::set_new_height)
7276 (make_invisible_and_set_new_height)
7277 (make_visible_with_new_height, new_height_ok)
7278 (parse_scrolling_args): Update.
7279 * tui/tui-stack.c (tui_show_frame_info): Update.
7280 * tui/tui-source.c (tui_set_source_content)
7281 (tui_set_source_content_nil, tui_source_is_displayed)
7282 (tui_source_window::do_scroll_vertical): Update.
7283 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7284 (tui_display_registers_from, tui_display_reg_element_at_line)
7285 (tui_check_register_values, tui_reg_command): Update.
7286 * tui/tui-layout.c (tui_default_win_height)
7287 (show_source_disasm_command, show_data, init_and_make_win)
7288 (show_source_or_disasm_and_command): Update.
7289 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
7290 (tui_redisplay_readline, tui_mld_flush)
7291 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
7293 * tui/tui-disasm.c (tui_set_disassem_content)
7294 (tui_disasm_window::do_scroll_vertical): Update.
7295 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
7297 (struct tui_win_info): Derive from tui_gen_win_info.
7298 <~tui_win_info>: Mark as override.
7299 <generic>: Remove member.
7300 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
7301 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
7302 (~tui_data_window, ~tui_win_info)
7303 (tui_free_all_source_wins_content): Update.
7304 * tui/tui-command.c (tui_refresh_cmd_win): Update.
7306 2019-06-25 Tom Tromey <tom@tromey.com>
7308 * tui/tui-layout.c (init_and_make_win): Use new.
7309 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
7310 destructor, initializers.
7311 (tui_alloc_generic_win_info): Don't declare.
7312 * tui/tui-data.c (_locator): Add argument to constructor.
7313 (source_win, disasm_win): New globals.
7314 (exec_info): Remove.
7315 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7317 (tui_alloc_generic_win_info): Remove.
7318 (init_content_element): Use new.
7319 (tui_win_info::tui_win_info): Update.
7320 (free_content_elements) <case DATA_WIN>: Use delete.
7322 2019-06-25 Tom Tromey <tom@tromey.com>
7324 * tui/tui-wingeneral.c (tui_refresh_win): Update.
7325 * tui/tui-windata.c (tui_first_data_item_displayed)
7326 (tui_delete_data_content_windows): Update.
7327 * tui/tui-win.c (tui_data_window::set_new_height): Update.
7328 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7329 (tui_display_registers_from, tui_check_register_values): Update.
7330 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
7332 * tui/tui-data.c (init_content_element): Update. Allocate the new
7334 (tui_free_data_content): Update.
7335 (free_content_elements) <case DATA_WIN>: Free the window.
7337 2019-06-25 Tom Tromey <tom@tromey.com>
7339 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
7341 * tui/tui-layout.c (make_command_window)
7342 (show_source_disasm_command, show_data, init_and_make_win)
7343 (show_source_or_disasm_and_command): Update.
7344 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
7346 <can_highight, is_highlighted>: Now bool.
7347 (tui_set_win_highlight): Don't declare.
7348 * tui/tui-data.c (tui_set_win_highlight): Remove.
7350 2019-06-25 Tom Tromey <tom@tromey.com>
7352 * tui/tui-wingeneral.c (make_visible): Remove check of window
7355 2019-06-25 Tom Tromey <tom@tromey.com>
7357 * tui/tui-win.c (tui_win_info::max_height)
7358 (tui_cmd_window::max_height): New methods.
7359 (new_height_ok): Call max_height.
7360 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
7361 <max_height>: New method.
7363 2019-06-25 Tom Tromey <tom@tromey.com>
7365 * tui/tui-win.c (tui_source_window_base::set_new_height)
7366 (tui_data_window::set_new_height): New methods.
7367 (make_invisible_and_set_new_height): Call set_new_height method.
7368 * tui/tui-data.h (struct tui_win_info)
7369 (struct tui_source_window_base, struct tui_data_window)
7370 <set_new_height>: New method.
7372 2019-06-25 Tom Tromey <tom@tromey.com>
7374 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
7375 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
7376 tui_refresh_data_win.
7377 * tui/tui-win.c (tui_source_window_base::refresh_all): New
7379 (tui_refresh_all_win): Call the refresh_all method.
7380 (tui_set_focus): Likewise.
7381 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
7382 (struct tui_source_window_base, struct tui_data_window) <refresh>:
7385 2019-06-25 Tom Tromey <tom@tromey.com>
7387 * tui/tui-winsource.h (tui_refill_source_window)
7388 (tui_set_is_exec_point_at): Don't declare.
7389 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
7390 (tui_source_window_base::refill): Rename from
7391 tui_refill_source_window.
7392 (tui_source_window_base::do_scroll_horizontal): Update.
7393 (tui_source_window_base::set_is_exec_point_at): Rename from
7394 tui_set_is_exec_point_at.
7395 (tui_update_all_breakpoint_info): Update.
7396 * tui/tui-stack.c (tui_show_frame_info): Update.
7397 * tui/tui-layout.c (show_data): Add cast.
7398 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
7399 * tui/tui-data.h (struct tui_source_window_base) <refill,
7400 set_is_exec_point_at>: New methods.
7401 (tui_source_windows, tui_add_to_source_windows): Update types.
7402 (tui_add_to_source_windows): Remove redundant declaration.
7403 * tui/tui-data.c (source_windows): Store tui_source_window_base.
7404 (tui_source_windows): Change return type.
7405 (tui_clear_source_windows_detail): Update.
7406 (tui_add_to_source_windows): Change type of parameter.
7407 (tui_free_all_source_wins_content): Update.
7409 2019-06-25 Tom Tromey <tom@tromey.com>
7411 * tui/tui-wingeneral.c (tui_win_info::refresh)
7412 (tui_source_window_base::refresh): New methods.
7413 (tui_refresh_all): Call the refresh method.
7414 * tui/tui-data.h (struct tui_win_info)
7415 (struct tui_source_window_base) <refresh>: New method.
7417 2019-06-25 Tom Tromey <tom@tromey.com>
7419 * tui/tui.h (tui_is_window_visible): Return bool.
7420 * tui/tui.c (tui_is_window_visible): Return bool.
7421 * tui/tui-wingeneral.c (tui_make_window, make_visible)
7422 (tui_make_visible, tui_make_invisible)
7423 (tui_win_info::make_visible)
7424 (tui_source_window_base::make_visible, make_all_visible)
7425 (tui_make_all_visible, tui_make_all_invisible): Update.
7426 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
7427 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
7429 (struct tui_win_info, struct tui_source_window_base)
7430 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
7431 * tui/tui-data.c (tui_init_generic_part): Update.
7433 2019-06-25 Tom Tromey <tom@tromey.com>
7435 * tui/tui-wingeneral.c (tui_win_info::make_visible)
7436 (tui_source_window_base::make_visible): New methods.
7437 (make_all_visible): Make method call.
7438 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
7439 (struct tui_source_window_base, struct tui_cmd_window): Override
7441 (tui_win_is_source_type): Don't declare.
7442 * tui/tui-data.c (tui_win_is_source_type): Remove.
7444 2019-06-25 Tom Tromey <tom@tromey.com>
7446 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
7449 2019-06-25 Tom Tromey <tom@tromey.com>
7451 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
7452 Inline constructor. Add initializers for members.
7453 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
7454 constructors; now inline in class.
7456 2019-06-25 Tom Tromey <tom@tromey.com>
7458 * tui/tui-regs.c (tui_show_registers): Update.
7459 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
7461 * tui/tui-data.c (tui_data_window::clear_detail)
7462 (tui_data_window): Update.
7464 2019-06-25 Tom Tromey <tom@tromey.com>
7466 * tui/tui-windata.c (tui_display_all_data)
7467 (tui_display_data_from_line, tui_display_data_from)
7468 (tui_check_data_values, tui_data_window::do_scroll_vertical):
7470 * tui/tui-regs.c (tui_last_regs_line_no)
7471 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7472 (tui_show_registers, tui_show_register_group)
7473 (tui_display_registers_from, tui_display_reg_element_at_line)
7474 (tui_display_registers_from_line, tui_check_register_values)
7475 (tui_reg_next, tui_reg_prev): Update.
7476 * tui/tui-layout.c (tui_set_layout, show_data): Update.
7477 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
7479 (struct tui_win_info) <detail>: Remove. Add new fields from
7481 (TUI_DATA_WIN): Add cast.
7482 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
7483 (~tui_data_window): Simplify.
7485 2019-06-25 Tom Tromey <tom@tromey.com>
7487 * tui/tui-layout.c (show_source_disasm_command)
7488 (show_source_or_disasm_and_command): Update.
7489 * tui/tui-io.c (update_cmdwin_start_line)
7490 (tui_redisplay_readline): Update.
7491 * tui/tui-data.h (struct tui_command_info): Remove.
7492 (struct tui_win_info) <detail>: Remove command_info member.
7493 (struct tui_data_window) <start_line>: New member, from
7495 (TUI_CMD_WIN): Add casts.
7497 2019-06-25 Tom Tromey <tom@tromey.com>
7499 * tui/tui-winsource.c (tui_update_source_window)
7500 (tui_refill_source_window)
7501 (tui_source_window_base::do_scroll_horizontal)
7502 (tui_update_breakpoint_info, tui_set_exec_info_content)
7503 (tui_show_exec_info_content, tui_erase_exec_info_content)
7504 (tui_clear_exec_info_content): Update.
7505 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
7507 * tui/tui-win.c (make_invisible_and_set_new_height)
7508 (make_visible_with_new_height): Update.
7509 * tui/tui-source.c (tui_set_source_content)
7510 (tui_show_symtab_source): Update.
7511 * tui/tui-layout.c (extract_display_start_addr)
7512 (show_source_disasm_command, show_data)
7513 (make_source_or_disasm_window)
7514 (show_source_or_disasm_and_command): Update.
7515 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
7516 (tui_disasm_window::do_scroll_vertical): Remove shadowing
7518 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
7519 to tui_source_window_base.
7520 (struct tui_win_info) <detail>: Remove source_info member.
7521 (struct tui_source_window_base) <has_locator>: Inline.
7522 Move contents from tui_source_info; rename has_locator member to
7524 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
7525 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
7527 (tui_source_window_base::clear_detail, ~tui_source_window_base):
7529 (tui_free_all_source_wins_content): Cast to
7530 tui_source_window_base.
7532 2019-06-25 Tom Tromey <tom@tromey.com>
7534 * tui/tui-win.c (make_invisible_and_set_new_height)
7535 (make_visible_with_new_height): Call has_locator method.
7536 * tui/tui-layout.c (show_source_disasm_command, show_data)
7537 (show_source_or_disasm_and_command): Update for bool change.
7538 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
7539 (tui_win_info) <has_locator>: New method.
7540 (struct tui_source_window_base) <has_locator>: New method.
7541 (tui_win_has_locator): Don't declare.
7542 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
7543 from tui_win_has_locator.
7544 (tui_source_window_base): Use false, not FALSE.
7546 2019-06-25 Tom Tromey <tom@tromey.com>
7548 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
7549 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
7550 clear_detail method directly.
7551 (tui_clear_win_detail): Remove.
7553 2019-06-25 Tom Tromey <tom@tromey.com>
7555 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
7556 "this", not TUI_DISASM_WIN.
7558 2019-06-25 Tom Tromey <tom@tromey.com>
7560 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
7562 * tui/tui-winsource.c
7563 (tui_source_window_base::do_scroll_horizontal): Rename from
7564 tui_horizontal_source_scroll.
7565 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
7566 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
7567 from tui_vertical_data_scroll.
7568 * tui/tui-win.h (tui_scroll): Don't declare.
7569 * tui/tui-win.c (tui_win_info::forward_scroll)
7570 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7571 (tui_win_info::right_scroll): Rename and update.
7572 (tui_scroll_forward_command, tui_scroll_backward_command)
7573 (tui_scroll_left_command, tui_scroll_right_command): Update.
7574 (tui_scroll): Remove.
7575 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
7576 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
7577 from tui_vertical_source_scroll.
7578 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
7579 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
7580 from tui_vertical_disassem_scroll.
7581 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
7582 do_scroll_horizontal>: New methods.
7583 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
7585 (struct tui_source_window_base): Add do_scroll_horizontal.
7586 (struct tui_source_window, struct tui_disasm_window): Add
7588 (struct tui_data_window, struct tui_cmd_window): Add
7589 do_scroll_horizontal and do_scroll_vertical.
7590 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
7592 2019-06-25 Tom Tromey <tom@tromey.com>
7594 * tui/tui-data.h (struct tui_source_window_base): New struct.
7595 (struct tui_source_window): Derive from tui_source_window_base.
7596 (struct tui_disasm_window): New struct.
7597 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
7598 from tui_source_window::clear_detail.
7599 (tui_source_window_base): Rename from tui_source_window.
7600 (~tui_source_window_base): Rename from ~tui_source_window.
7601 (tui_alloc_win_info): Create a tui_disasm_window.
7603 2019-06-25 Tom Tromey <tom@tromey.com>
7605 * tui/tui-data.h (struct tui_source_window)
7606 (struct tui_data_window): Declare destructors.
7607 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
7609 (tui_win_info): Simplify.
7611 2019-06-25 Tom Tromey <tom@tromey.com>
7613 * tui/tui-winsource.c (tui_display_main)
7614 (tui_update_source_windows_with_addr)
7615 (tui_update_all_breakpoint_info): Update.
7616 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7617 (new_height_ok, parse_scrolling_args): Update.
7618 * tui/tui-stack.c (tui_show_frame_info): Update.
7619 * tui/tui-data.h (struct tui_list): Remove.
7620 (tui_source_windows): Return a reference to a std::vector.
7621 * tui/tui-data.c (source_windows): Now a std::vector.
7622 (tui_source_windows): Change return type.
7623 (tui_clear_source_windows): Rewrite.
7624 (tui_clear_source_windows_detail, tui_add_to_source_windows)
7625 (tui_free_all_source_wins_content): Rewrite.
7627 2019-06-25 Tom Tromey <tom@tromey.com>
7629 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
7630 (struct tui_data_window, struct tui_cmd_window): Declare
7631 clear_detail method.
7632 * tui/tui-data.c (tui_source_window::clear_detail)
7633 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
7635 (tui_clear_win_detail): Simplify.
7637 2019-06-25 Tom Tromey <tom@tromey.com>
7639 * tui/tui-layout.c (make_source_window, make_disasm_window)
7640 (make_source_or_disasm_window): Remove win_info_ptr parameter.
7641 Return the new window.
7642 (show_source_disasm_command, show_data)
7643 (show_source_or_disasm_and_command): Update.
7645 2019-06-25 Tom Tromey <tom@tromey.com>
7647 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
7648 parameter. Return the new window.
7649 (show_source_disasm_command): Update and remove NULL check.
7650 (show_source_or_disasm_and_command): Update.
7652 2019-06-25 Tom Tromey <tom@tromey.com>
7654 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
7656 2019-06-25 Tom Tromey <tom@tromey.com>
7658 * tui/tui-data.h (struct tui_win_info): Make constructor
7659 protected. Make destructor virtual. Add initializers.
7660 (tui_source_window, tui_data_window, tui_cmd_window): New
7662 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
7663 constructor. Add "type" parameter.
7664 (tui_source_window, tui_data_window, tui_cmd_window): New
7666 (tui_alloc_win_info): Instantiate the appropriate subclass.
7668 2019-06-25 Tom Tromey <tom@tromey.com>
7670 * tui/tui-win.c (tui_resize_all): Use delete.
7671 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
7673 (tui_free_window): Don't declare.
7674 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
7677 2019-06-25 Tom Tromey <tom@tromey.com>
7679 * tui/tui-data.h (struct tui_win_info): Add constructor.
7680 * tui/tui-data.c (tui_alloc_win_info): Use new.
7681 (tui_free_window): Use delete.
7683 2019-06-22 Tom Tromey <tom@tromey.com>
7685 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
7687 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
7689 2019-06-22 Tom Tromey <tom@tromey.com>
7691 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
7693 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
7695 2019-06-22 Tom de Vries <tdevries@suse.de>
7697 * dwarf2read.c (create_addrmap_from_aranges)
7698 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
7701 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
7703 * dwarf2read.h (dwarf2_section_info_def): Remove.
7704 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
7705 * dwarf2read.c (struct dwo_sections) <types>: Change type to
7706 std::vector<dwarf2_section_info>.
7707 (struct dwo_file) <~dwo_file>: Remove.
7708 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
7710 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
7711 (dwarf2_read_debug_names): Likewise.
7712 (create_debug_types_hash_table): Change parameter type to
7713 array_view, adjust code accordingly.
7714 (dwarf2_locate_dwo_sections): Adjust to std::vector.
7715 (partial_die_info::fixup): Likewise.
7716 (determine_prefix): Likewise.
7717 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
7719 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7721 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
7723 <~dwo_file>: Remove call to gdb_bfd_unref.
7724 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
7725 gdb_bfd_ref_ptr::get.
7727 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7729 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
7731 * dwarf2read.c (struct dwo_file): Initialize fields.
7733 (free_dwo_file): Remove, move content to ~dwo_file.
7734 (struct dwo_file_deleter): Remove.
7735 (dwo_file_up>: Remove custom deleter.
7736 (free_dwo_files): Remove.
7737 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
7739 (process_skeletonless_type_units): Call unique_ptr::get.
7740 (allocate_dwo_file_hash_table): Add deleter to created hash
7741 table. Change return type to htab_up.
7742 (lookup_dwo_file_slot): Don't memset dwo_file, call
7744 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
7745 (create_dwo_unit_in_dwp_v2): Likewise.
7746 (open_and_init_dwo_file): Likewise.
7747 (free_dwo_file_from_slot): Remove.
7749 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
7751 * dwarf2read.h (struct dwarf2_section_info) <readin,
7752 is_virtual>: Change type to bool.
7753 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
7756 2019-06-19 Tom Tromey <tom@tromey.com>
7758 * tui/tui-data.h (tui_init_content_element): Don't declare.
7760 2019-06-19 Tom Tromey <tom@tromey.com>
7762 * tui/tui-data.h (tui_init_win_info): Don't declare.
7764 2019-06-19 Tom de Vries <tdevries@suse.de>
7766 * dwarf2read.h (abstract_to_concrete): Change type to
7767 std::unordered_map<sect_offset, std::vector<sect_offset>,
7768 gdb::hash_enum<sect_offset>>.
7770 2019-06-19 Tom Tromey <tromey@adacore.com>
7772 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
7773 EVAL_AVOID_SIDE_EFFECTS specially.
7775 2019-06-19 Tom Tromey <tromey@adacore.com>
7777 * source-cache.c (highlighter): New global.
7778 (source_cache::get_source_lines): Create a highlighter on demand.
7780 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
7782 * defs.h (deprecated_interactive_hook): Delete declaration.
7783 * interps.c (clear_interpreter_hooks): Remove use of
7784 deprecated_interactive_hook.
7785 * top.c (deprecated_interactive_hook): Delete definition.
7786 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
7788 2019-06-18 Tom de Vries <tdevries@suse.de>
7791 * dwarf2read.h (abstract_to_concrete): Change type from
7792 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
7793 std::unordered_map<sect_offset, std::vector<sect_offset>>.
7794 * dwarf2read.c (read_variable): Update.
7795 (dwarf2_fetch_die_loc_sect_off): Update.
7797 2019-06-17 Tom de Vries <tdevries@suse.de>
7800 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
7801 accessing parent[parent_len - 1].
7803 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
7806 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
7807 call dtrace_process_dof with NULL dof.
7809 2019-06-16 Tom de Vries <tdevries@suse.de>
7812 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
7814 2019-06-16 Tom Tromey <tom@tromey.com>
7816 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
7817 (make_all_visible): Use address of member.
7819 2019-06-16 Tom Tromey <tom@tromey.com>
7821 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
7822 (tui_free_window, free_content, free_content_elements): Remove
7824 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
7826 * tui/tui-regs.c (tui_show_register_group)
7827 (tui_display_registers_from, tui_display_reg_element_at_line):
7828 Remove unnecessary cast.
7830 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7832 * linux-nat.c (normal_mask): Delete.
7833 (_initialize_linux_nat): Don't initialise normal_mask.
7835 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
7838 * dwarf-index-write.h (write_psymtabs_to_index): Add
7839 dwz_basename parameter.
7840 * dwarf-index-write.c (write_gdbindex): Move file writing to
7841 write_gdbindex_1. Change return type void.
7842 (assert_file_size): Move up, remove filename parameter.
7843 (write_gdbindex_1): New function.
7844 (write_debug_names): Change return type to void, call
7846 (struct index_wip_file): New struct.
7847 (write_psymtabs_to_index): Add dwz_basename parameter. Move
7848 file logic to index_wip_file. Write index for dwz file if
7850 (save_gdb_index_command): Pass basename of dwz file, if present.
7851 * dwarf-index-cache.c (index_cache::store): Obtain and pass
7852 build-id of dwz file, if present.
7853 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
7854 (dwarf2_get_dwz_file): Likewise.
7855 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
7856 (dwarf2_get_dwz_file): Likewise.
7858 2019-06-16 Tom Tromey <tom@tromey.com>
7860 * coffread.c (process_coff_symbol): Use xstrdup.
7861 * value.c (create_internalvar): Use xstrdup.
7863 2019-06-16 Tom Tromey <tom@tromey.com>
7865 * valops.c (value_cast, value_slice): Remove unnecessary cast.
7866 * breakpoint.c (stopin_command, stopat_command)
7867 (until_break_command, decode_location_default): Remove unnecessary
7869 * utils.c (subset_compare): Remove unnecessary cast.
7870 * ada-lang.c (ada_update_initial_language): Remove unnecessary
7872 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
7874 * infcmd.c (path_command): Remove unnecessary cast.
7875 * coffread.c (decode_type): Remove unnecessary cast.
7876 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
7877 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
7878 * tui/tui-stack.c (tui_show_locator_content)
7879 (tui_show_frame_info): Remove unnecessary cast.
7880 * tui/tui-win.c (tui_scroll_forward_command)
7881 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
7882 (parse_scrolling_args): Remove unnecessary cast.
7883 * tui/tui-data.c (init_win_info, tui_del_window)
7884 (tui_free_window, tui_del_data_windows, tui_free_data_content)
7885 (free_content_elements): Remove unnecessary cast.
7886 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
7888 * tui/tui-source.c (tui_set_source_content)
7889 (tui_vertical_source_scroll): Remove unnecessary cast.
7890 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
7892 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
7893 * tui/tui-regs.c (tui_display_registers_from)
7894 (tui_display_register): Remove unnecessary cast.
7895 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
7896 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
7897 (make_visible): Remove unnecessary cast.
7898 * tui/tui-winsource.c (tui_erase_source_content)
7899 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
7901 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
7902 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
7903 * stabsread.c (read_type, read_array_type, read_range_type):
7904 Remove unnecessary cast.
7905 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
7906 (parse_symbol, parse_type, upgrade_type, parse_external)
7907 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
7909 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
7911 2019-06-16 Tom Tromey <tom@tromey.com>
7913 * tui/tui-data.c (tui_alloc_generic_win_info)
7914 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
7917 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
7918 Andrew Burgess <andrew.burgess@embecosm.com>
7920 * f-typeprint.c (f_print_type): Don't return early for not
7921 associated or not allocated types.
7922 (f_type_print_varspec_suffix): Add print_rank parameter and print
7923 ranks of array types in case they dangling.
7924 (f_type_print_base): Add print_rank parameter.
7926 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7928 * NEWS: Mention new MI commands.
7929 * break-catch-throw.c (enum exception_event_kind): Move to
7931 (print_mention_exception_catchpoint): Output text as a single
7933 (catch_exception_command_1): Rename to...
7934 (catch_exception_event): ...this, make non-static, update header
7935 command, and change some parameter types.
7936 (catch_catch_command): Update for changes to
7937 catch_exception_command_1.
7938 (catch_throw_command): Likewise.
7939 (catch_rethrow_command): Likewise.
7940 * breakpoint.c (enum exception_event_kind): Delete.
7941 * breakpoint.h (enum exception_event_kind): Moved here from
7942 break-catch-throw.c.
7943 (catch_exception_event): Declare.
7944 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
7945 (mi_cmd_catch_throw): New function.
7946 (mi_cmd_catch_rethrow): New function.
7947 (mi_cmd_catch_catch): New function.
7948 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
7949 'catch-catch' entries.
7950 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
7951 (mi_cmd_catch_rethrow): Declare.
7952 (mi_cmd_catch_catch): Declare.
7954 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7956 * annotate.c (annotate_source_line): Change return type to void,
7957 update implementation to match.
7958 * annotate.h (annotate_source_line): Change return type to void,
7959 update header comment.
7960 * stack.c (print_frame_info): Don't change what frame information
7961 is printed based on whether annotations are on or not.
7963 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7965 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
7966 (annotate_source): Make static.
7967 (annotate_source_line): Moved from source.c and renamed from
7968 identify_source_line. Update the return type.
7969 * annotate.h (annotate_source): Delete declaration.
7970 (annotate_source_line): Declaration moved from source.h, and
7971 renamed from identify_source_line. Return type updated.
7972 * source.c (identify_source_line): Moved to annotate.c and renamed
7973 to annotate_source_line.
7974 (info_line_command): Remove check of annotation_level.
7975 * source.h (identify_source_line): Move declaration to annotate.h
7976 and rename to annotate_source_line.
7977 * stack.c: Add 'annotate.h' include.
7978 (print_frame_info): Remove check of annotation_level before
7979 calling annotate_source_line.
7981 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
7983 * source-cache.c (source_cache::get_plain_source_lines): Use
7984 open_source_file_with_line_charpos instead of just
7985 open_source_file, remove call to find_source_lines.
7986 (source_cache::get_source_lines): Likewise.
7987 * source.c (find_source_lines): Make static.
7988 (get_filename_and_charpos): Renamed into...
7989 (open_source_file_with_line_charpos): ..this along with changes to
7990 return a scoped_fd, and some other minor clean ups.
7991 (identify_source_line): Use open_source_file_with_line_charpos.
7992 (search_command_helper): Use open_source_file_with_line_charpos
7993 instead of just open_source_file, remove call to
7995 * source.h (open_source_file_with_line_charpos): Declare new
7997 (find_source_lines): Delete declaration.
7999 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8001 * source.c (get_filename_and_charpos): Remove fullname
8003 (identify_source_line): Update call to get_filename_and_charpos.
8005 2019-06-14 Tom Tromey <tromey@adacore.com>
8008 * ui-style.h (skip_ansi_escape): Update comment.
8009 * ui-file.h (class no_terminal_escape_file): New class.
8010 * ui-file.c (no_terminal_escape_file::write)
8011 (no_terminal_escape_file::puts): New methods.
8012 * cli/cli-logging.c (handle_redirections): Use
8013 no_terminal_escape_file.
8015 2019-06-14 Tom Tromey <tromey@adacore.com>
8017 * NEWS: Move convenience variable news above Python news.
8019 2019-06-14 Tom Tromey <tom@tromey.com>
8021 * gnulib: Move directory to top-level.
8022 * configure.ac: Don't configure gnulib.
8023 * configure: Rebuild.
8024 * common/common-defs.h: Use new path to gnulib.
8025 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8027 (INCGNU): Look in new gnulib location.
8028 (HFILES_NO_SRCDIR): Remove gnulib files.
8029 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8030 (generated_files): Remove GNULIB_H.
8031 ($(LIBGNU), all-lib): Remove targets.
8032 (distclean): Don't mention GNULIB_BUILDDIR.
8033 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8035 2019-06-14 Tom Tromey <tromey@adacore.com>
8037 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8038 Warn if symbol file does not provide any symbols.
8040 2019-06-14 Tom Tromey <tromey@adacore.com>
8042 * source.c (find_and_open_source): Respect basenames_may_differ.
8044 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8046 * annotate.c (annotate_breakpoints_invalid): Make use of
8047 scoped_restore_terminal_state.
8048 (annotate_frames_invalid): Likewise.
8050 2019-06-14 Tom Tromey <tromey@adacore.com>
8052 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8053 allow assignment to an internalvar.
8055 2019-06-14 Tom Tromey <tromey@adacore.com>
8057 * ada-lex.l: Allow "_" in attribute names.
8059 2019-06-14 Tom Tromey <tromey@adacore.com>
8062 * regcache.c (registers_changed): Don't call alloca.
8063 * top.c (execute_command): Don't call alloca.
8065 2019-06-13 Pedro Alves <palves@redhat.com>
8067 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8068 'expression'. When parsing an expression, error out if there's
8069 junk after "unlimited".
8070 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8071 (do_set_command): Adjust calls to is_unlimited_literal.
8073 2019-06-13 Pedro Alves <palves@redhat.com>
8075 * compile/compile.c (make_compile_options_def_group): Add braces
8076 around array_view initializer.
8077 * thread.c (make_thread_apply_all_options_def_group)
8078 (make_thread_apply_all_options_def_group): Likewise.
8080 2019-06-13 Pedro Alves <palves@redhat.com>
8082 * NEWS (New commands): Mention "maint test-options
8083 require-delimiter", "maint test-options unknown-is-error", "maint
8084 test-options unknown-is-operand" and "maint show
8085 test-options-completion-result".
8086 (New command options, command completion): New section.
8087 (Completion improvements): New section.
8088 Mention that you can abbreviate "unlimited".
8090 2019-06-13 Pedro Alves <palves@redhat.com>
8092 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8093 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8094 * unittests/cli-utils-selftests.c (test_parse_flags)
8095 (test_parse_flags_qcs): Delete.
8096 (test_cli_utils): Don't call deleted functions.
8098 2019-06-13 Pedro Alves <palves@redhat.com>
8100 * thread.c: Include "cli/cli-option.h".
8101 (tp_array_compar_ascending): Global.
8102 (tp_array_compar): Delete function.
8103 (tp_array_compar_ascending, tp_array_compar_descending): New
8105 (ascending_option_def, qcs_flag_option_def)
8106 (thr_qcs_flags_option_defs)
8107 (make_thread_apply_all_options_def_group)
8108 (make_thread_apply_options_def_group): New.
8109 (thread_apply_all_command): Use gdb::option::process_options.
8110 (thread_apply_command_completer)
8111 (thread_apply_all_command_completer): New.
8112 (thread_apply_command): Use gdb::option::process_options.
8113 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8114 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8115 to generate help text of "thread apply". Adjust "taas"'s help.
8116 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8117 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8119 2019-06-13 Pedro Alves <palves@redhat.com>
8121 * thread.c (thread_apply_command): Check for invalid TID with
8122 isdigit instead of !isalpha.
8124 2019-06-13 Pedro Alves <palves@redhat.com>
8126 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8127 (validate_flags_qcs): New.
8128 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8129 (validate_flags_qcs): Declare.
8130 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8131 (make_frame_apply_options_def_group): New.
8132 (frame_apply_command_count): Process options with
8133 gdb::option::process_options.
8134 (frame_apply_completer): New.
8135 (frame_apply_level_completer, frame_apply_all_completer)
8136 (frame_apply_completer): New.
8137 (_initialize_stack): Update help of "frame apply", "frame apply
8138 level", "frame apply all" and "faas" to mention supported options
8139 and install command completers.
8140 * stack.h (frame_apply_all_completer): Declare.
8141 * thread.c: Include "stack.h".
8142 (tfaas_command): Add "--".
8143 (_initialize_thread): Update help "tfaas" to mention supported
8144 options and install command completer.
8146 2019-06-13 Pedro Alves <palves@redhat.com>
8148 * completer.c (complete_nested_command_line): New.
8149 (gdb_completion_word_break_characters_throw): Add assertion.
8150 * completer.h (complete_nested_command_line): Declare.
8152 2019-06-13 Pedro Alves <palves@redhat.com>
8154 * stack.c (parse_backtrace_qualifiers): New.
8155 (backtrace_command): Use it.
8156 (backtrace_command_completer): Complete on qualifiers.
8158 2019-06-13 Pedro Alves <palves@redhat.com>
8160 * frame.c: Include "cli/cli-option.h.
8161 (user_set_backtrace_options): New.
8162 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8164 (get_prev_frame): Adjust.
8165 (boolean_option_def, uinteger_option_def)
8166 (set_backtrace_option_defs): New.
8167 (_initialize_frame): Adjust and use
8168 gdb::option::add_setshow_cmds_for_options to install "set
8169 backtrace past-main" and "set backtrace past-entry".
8170 * frame.h: Include "cli/cli-option.h".
8171 (struct frame_print_options): Forward declare.
8172 (print_frame_arguments_all, print_frame_arguments_scalars)
8173 (print_frame_arguments_none): Declare.
8174 (print_entry_values): Delete declaration.
8175 (struct frame_print_options, user_frame_print_options): New.
8176 (struct set_backtrace_options): New.
8177 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8178 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8179 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8180 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8181 (list_args_or_locals): Add frame_print_options parameter.
8182 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8183 * python/py-framefilter.c (enumerate_args): Pass down
8184 USER_FRAME_PRINT_OPTIONS.
8185 * stack.c: Include "cli/cli-option.h".
8186 (print_frame_arguments_all, print_frame_arguments_scalars)
8187 (print_frame_arguments_none): Declare.
8188 (print_raw_frame_arguments, print_entry_values): Delete.
8189 (user_frame_print_options): New.
8190 (boolean_option_def, enum_option_def, frame_print_option_defs):
8192 (struct backtrace_cmd_options): New.
8193 (bt_flag_option_def): New.
8194 (backtrace_command_option_defs): New.
8195 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8196 (print_frame_arg, read_frame_arg, print_frame_args)
8197 (print_frame_info, print_frame): Add frame_print_options parameter
8199 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8200 (backtrace_command_1): Add frame_print_options and
8201 backtrace_cmd_options parameters and use them.
8202 (make_backtrace_options_def_group): New.
8203 (backtrace_command): Process command options with
8204 gdb::option::process_options.
8205 (backtrace_command_completer): New.
8206 (_initialize_stack): Extend "backtrace"'s help to mention
8207 supported options. Install completer for "backtrace".
8208 Install some settings commands with add_setshow_cmds_for_options.
8210 2019-06-13 Pedro Alves <palves@redhat.com>
8212 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8213 and that "set/show print raw frame-arguments" are now deprecated.
8215 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8217 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
8218 * stack.c (_initialize_stack): Install "set/show print
8219 raw-frame-arguments", and deprecate "set/show print raw
8221 * valprint.c (_initialize_valprint): Deprecate "set/show print
8224 2019-06-13 Pedro Alves <palves@redhat.com>
8226 * compile/compile.c (struct compile_options): New.
8227 (compile_flag_option_def, compile_command_option_defs)
8228 (make_compile_options_def_group): New.
8229 (compile_file_command): Handle options with
8230 gdb::option::process_options.
8231 (compile_file_command_completer): New function.
8232 (compile_code_command): Handle options with
8233 gdb::option::process_options.
8234 (compile_code_command_completer): New function.
8235 (_initialize_compiler): Install completers for "compile code" and
8236 "compile file". Mention available options in "compile code" and
8237 "compile code"'s help.
8238 * completer.c (advance_to_completion_word): New, factored out from
8240 (advance_to_expression_complete_word_point): ... this.
8241 (advance_to_filename_complete_word_point): New.
8242 * completer.h (advance_to_filename_complete_word_point): New
8245 2019-06-13 Pedro Alves <palves@redhat.com>
8247 * compile/compile.c: Include "cli/cli-option.h".
8248 (compile_print_value): Scope data pointer is now a
8249 value_print_options pointer; adjust.
8250 (compile_print_command): Process options. Scope data pointer is
8251 now a value_print_options pointer; adjust.
8252 (_initialize_compile): Update "compile print"'s help to include
8253 supported options. Install a completer for "compile print".
8254 * cp-valprint.c (show_vtblprint, show_objectprint)
8255 (show_static_field_print): Delete.
8256 (_initialize_cp_valprint): Don't install "set print
8257 static-members", "set print vtbl", "set print object" here.
8258 * printcmd.c: Include "cli/cli-option.h" and
8259 "common/gdb_optional.h".
8260 (print_command_parse_format): Rework to fill in a
8261 value_print_options instead of a format_data.
8262 (print_value): Change parameter type from format_data pointer to
8263 value_print_options reference. Adjust.
8264 (print_command_1): Process options. Adjust to pass down a
8265 value_print_options.
8266 (print_command_completer): New.
8267 (_initialize_printcmd): Install print_command_completer as
8268 handle_brkchars completer for the "print" command. Update
8269 "print"'s help to include supported options.
8270 * valprint.c: Include "cli/cli-option.h".
8271 (show_vtblprint, show_objectprint, show_static_field_print): Moved
8272 here from cp-valprint.c.
8273 (boolean_option_def, uinteger_option_def)
8274 (value_print_option_defs, make_value_print_options_def_group):
8275 New. Use gdb::option::add_setshow_cmds_for_options to install
8276 "set print elements", "set print null-stop", "set print repeats",
8277 "set print pretty", "set print union", "set print array", "set
8278 print address", "set print symbol", "set print array-indexes".
8279 * valprint.h: Include <string> and "cli/cli-option.h".
8280 (make_value_print_options_def_group): Declare.
8281 (print_value): Change parameter type from format_data pointer to
8282 value_print_options reference.
8283 (print_command_completer): Declare.
8285 2019-06-13 Pedro Alves <palves@redhat.com>
8287 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
8288 (COMMON_SFILES): Add maint-test-settings.c.
8289 * cli/cli-decode.c (boolean_enums): New global, factored out from
8291 (add_setshow_boolean_cmd): ... here.
8292 * cli/cli-decode.h (boolean_enums): Declare.
8293 * cli/cli-option.c: New file.
8294 * cli/cli-option.h: New file.
8295 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
8296 factored out from ...
8297 (parse_cli_boolean_value(const char *)): ... this.
8298 (is_unlimited_literal): Change parameter type to pointer to
8299 pointer. Adjust and advance ARG pointer.
8300 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8301 (parse_cli_var_enum): New, factored out from ...
8302 (do_set_command): ... this. Adjust.
8303 * cli/cli-setshow.h (parse_cli_boolean_value)
8304 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8305 (parse_cli_var_enum): Declare.
8306 * cli/cli-utils.c: Include "cli/cli-option.h".
8307 (get_ulongest): New.
8308 * cli/cli-utils.h (get_ulongest): Declare.
8309 (check_for_argument): New overloads.
8310 * maint-test-options.c: New file.
8312 2019-06-13 Pedro Alves <palves@redhat.com>
8314 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
8315 parse a range if "-" is at the end of the string.
8317 2019-06-13 Pedro Alves <palves@redhat.com>
8319 * cli/cli-setshow.c (parse_auto_binary_operation)
8320 (parse_cli_boolean_value): Don't allow "o".
8322 2019-06-13 Pedro Alves <palves@redhat.com>
8324 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
8325 * NEWS: Mention maint test-settings KIND.
8326 * maint-test-settings.c: New file.
8328 2019-06-13 Pedro Alves <palves@redhat.com>
8330 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
8332 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
8335 2019-06-13 Pedro Alves <palves@redhat.com>
8337 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
8340 2019-06-13 Pedro Alves <palves@redhat.com>
8342 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
8344 2019-06-13 Pedro Alves <palves@redhat.com>
8346 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
8347 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
8349 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
8350 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
8352 (check_for_argument): Skip spaces after argument.
8354 2019-06-13 Pedro Alves <palves@redhat.com>
8356 * thread.c (thread_apply_command): Adjust TID parsing.
8357 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
8358 detected before end of string.
8359 (tid_is_in_list): Error out if LIST is invalid.
8361 2019-06-13 Pedro Alves <palves@redhat.com>
8363 * completer.c (complete_line_internal_1): Rewind completion word
8365 (completion_tracker::advance_custom_word_point_by): Change
8366 parameter type to int.
8367 * completer.h (completion_tracker::advance_custom_word_point_by):
8370 2019-06-13 Pedro Alves <palves@redhat.com>
8372 * completer.c (advance_to_completion_word): Handle delimiters.
8374 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
8376 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
8378 2019-06-11 Tom Tromey <tom@tromey.com>
8380 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
8381 (xmalloc_failed): Move to alloc.c.
8382 * alloc.c: New file.
8383 * Makefile.in (COMMON_SFILES): Add alloc.c.
8385 2019-06-11 Tom Tromey <tom@tromey.com>
8387 * nat/linux-waitpid.c: Don't include server.h.
8388 (linux_debug): Remove.
8389 (my_waitpid): Update.
8391 2019-06-11 Tom Tromey <tromey@adacore.com>
8393 * infcall.c (_initialize_infcall): Remove trailing newline from
8395 * user-regs.c (_initialize_user_regs): Remove trailing newline
8397 * typeprint.c (_initialize_typeprint): Remove trailing newline
8399 * reverse.c (_initialize_reverse): Remove trailing newlines from
8401 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
8403 * language.c (add_set_language_command): Remove trailing newline
8405 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
8407 * disasm.c (_initialize_disasm): Remove trailing newline from
8409 * top.c (init_main): Remove trailing newline from help.
8410 * interps.c (_initialize_interpreter): Remove trailing newline
8412 * btrace.c (_initialize_btrace): Remove trailing newlines from
8414 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
8416 * python/python.c (_initialize_python): Remove trailing newline
8418 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
8420 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
8421 from help. Reformat some text.
8422 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
8424 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
8427 2019-06-11 Tom Tromey <tromey@adacore.com>
8429 * darwin-nat.c (darwin_decode_exception_message)
8430 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
8432 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
8434 * valops.c (value_slice): Check for not allocated or not
8437 2019-06-10 Tom de Vries <tdevries@suse.de>
8440 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
8441 sure an empty slot (defined by a 32-bit zero pair) is recognized as
8444 2019-06-10 Tom de Vries <tdevries@suse.de>
8447 * linespec.c (linespec_lexer_lex_string): Remove incorrect
8448 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
8450 2019-06-10 Tom de Vries <tdevries@suse.de>
8453 * symtab.c (struct demangled_name_entry): Add language field.
8454 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
8455 static minimal symbol". Set and use language field.
8457 2019-06-10 Tom Tromey <tromey@adacore.com>
8459 * ada-lang.c (_initialize_ada_language): Update help text.
8461 2019-06-10 Tom Tromey <tromey@adacore.com>
8463 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
8465 * guile/guile.c (handle_boot_error): Don't end warning with a
8467 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
8468 warning with a newline.
8469 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
8471 (s12z_frame_cache): Likewise.
8472 * dwarf-index-cache.c (index_cache::store): Don't end warning with
8474 * solib-svr4.c (disable_probes_interface): Don't end warning with
8476 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
8478 * python/python.c (do_finish_initialization): Don't end warning
8481 2019-06-10 Tom Tromey <tom@tromey.com>
8483 * python/py-breakpoint.c (gdbpy_breakpoint_created)
8484 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
8487 2019-06-10 Tom Tromey <tromey@adacore.com>
8489 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
8491 (elf_new_init): Don't call stabsread_new_init.
8492 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
8493 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
8494 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
8496 2019-06-10 Tom de Vries <tdevries@suse.de>
8500 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
8502 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
8504 * source.c (find_and_open_source): Also rewrite relative file
8507 2019-04-26 Amos Bird <amosbird@gmail.com>
8509 * annotate.c (annotate_thread_exited): Add "thread-exited"
8512 2019-06-06 Tom Tromey <tromey@adacore.com>
8514 * maint.h (class scoped_command_stats): Use
8515 DISABLE_COPY_AND_ASSIGN.
8516 <print_time>: New method.
8517 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
8519 (scoped_command_stats::print_time): New method.
8521 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8523 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
8524 instructions of lengths 6 or 8 bytes.
8526 2019-06-04 Pedro Alves <palves@redhat.com>
8528 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
8530 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
8531 * breakpoint.c (condition_completer): Likewise.
8532 * cli/cli-dump.c (scan_expression): Likewise.
8533 * common/filestuff.c (mkdir_recursive): Likewise.
8534 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
8535 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
8536 (gdb_abspath): Likewise.
8537 * compile/compile-cplus-types.c
8538 (compile_cplus_instance::decl_name): Likewise.
8539 * completer.c (complete_explicit_location):
8540 (signal_completer, reg_or_group_completer_1): Likewise.
8541 * cp-support.c (cp_remove_params_if_any): Likewise.
8542 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
8543 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
8544 * infcmd.c (strip_bg_char): Likewise.
8545 * linespec.c (copy_token_string): Likewise.
8546 * mi/mi-main.c (output_cores): Likewise.
8547 * psymtab.c (psymtab_search_name):
8548 * symfile.c (test_set_ext_lang_command): Likewise.
8549 * target.c (target_fileio_read_stralloc): Likewise.
8550 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
8551 * value.c (complete_internalvar): Likewise.
8553 2019-06-04 Christian Biesinger <cbiesinger@google.com>
8555 Add objfile property to gdb.Type.
8556 * NEWS: Mention Python API addition.
8557 * python/py-type.c (typy_get_objfile): New method.
8559 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8561 * NEWS: Mention the new set|show style [title|highlight].
8562 Mention changes to "show style", "help" and "apropos".
8564 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8566 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
8567 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
8568 instead of print_help_for_command.
8569 (print_doc_of_command): New function.
8570 (help_list): Add 'apropos -v word' suggestion.
8571 (print_help_for_command): Style the command name using title style.
8572 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
8573 (_initialize_cli_cmds): Describe -v in apropos_command help.
8575 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8577 * cli/cli-style.h (cli_style_option): Add name in constructor,
8578 add m_name class member, add constructor with intensity,
8579 add name class function.
8580 (cli_style_option::add_setshow_commands): Remove name argument.
8581 (highlight_style, title_style): New styles.
8582 * cli/cli-style.c (do_show): New function that shows a style
8583 characteristic styling the style name with itself.
8584 (set_style_name): New function.
8585 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
8586 Update all callers according to the changes in cli/cli-style.h.
8587 * utils.h (fputs_highlighted): New function.
8588 * utils.c (fputs_highlighted): Likewise.
8590 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8592 * NEWS: Mention new pipe command and new convenience variables.
8594 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8596 * cli/cli-cmds.c (pipe_command): New function.
8597 (_initialize_cli_cmds): Call add_com for pipe_command.
8598 Define | as an alias for pipe.
8599 (exit_status_set_internal_vars): New function.
8600 (shell_escape): Call exit_status_set_internal_vars.
8601 cli/cli-decode.c (find_command_name_length): Recognize | as
8602 a single character command.
8604 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8606 * gdbcmd.h (execute_command_to_ui_file): New declaration.
8607 top.c (execute_command_to_ui_file): New function, mostly a copy
8608 of execute_command_to_string.
8609 (execute_command_to_string): Implement by calling
8610 execute_command_to_ui_file.
8612 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8614 * top.h (saved_command_line): Remove declaration.
8615 * top.c (previous_saved_command_line, previous_repeat_arguments):
8617 (saved_command_line): Make static, define together with other
8619 (dont_repeat): Clear repeat_arguments.
8620 (repeat_previous, get_saved_command_line, save_command_line):
8622 (gdb_init): Initialize saved_command_line
8623 and previous_saved_command_line.
8624 * main.c (captured_main_1): Remove saved_command_line initialization.
8625 * event-top.c (handle_line_of_input): Update to use
8626 the new 'repeat' related functions instead of direct access to
8628 * command.h (repeat_previous, get_saved_command_line,
8629 save_command_line): New declarations.
8630 (dont_repeat): Add comment.
8632 2019-05-30 Tom Tromey <tromey@adacore.com>
8634 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
8636 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
8638 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
8641 * completer.c (complete): Initialize variable word.
8643 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
8645 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8646 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
8647 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
8648 'body' is NULL to the outter 'if', protecting the '!is_define'
8651 2019-05-29 Tom Tromey <tromey@adacore.com>
8653 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
8654 (dwarf_unknown): New function.
8655 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
8656 (dwarf_type_encoding_name): Use dwarf_unknown.
8658 2019-05-29 Tom Tromey <tromey@adacore.com>
8661 * cp-valprint.c (cp_print_value_fields): Call
8662 cp_print_static_field inside "try".
8664 2019-05-29 Tom Tromey <tromey@adacore.com>
8666 * inflow.c (struct terminal_info): Add default operator=.
8667 * configure: Rebuild.
8668 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
8669 -Wdeprecated-copy-dtor, -Wredundant-move.
8671 2019-05-29 Tom Tromey <tromey@adacore.com>
8674 * infcmd.c (print_return_value_1): Handle finish_print
8676 (show_print_finish): New function.
8677 (_initialize_infcmd): Add "set/show print finish" commands.
8678 * valprint.c (user_print_options): Initialize new member.
8679 * valprint.h (struct value_print_options) <finish_print>: New
8682 2019-05-28 Tom Tromey <tromey@adacore.com>
8684 * ada-lang.c (ada_remove_Xbn_suffix)
8685 (find_old_style_renaming_symbol)
8686 (parse_old_style_renaming): Remove.
8687 (ada_find_renaming_symbol): Don't call
8688 find_old_style_renaming_symbol.
8689 (ada_is_renaming_symbol): Rename from
8690 ada_find_renaming_symbol. Remove "block" parameter. Return
8692 (ada_read_var_value): Update and simplify.
8693 * ada-exp.y (write_var_or_type): Remove old code.
8695 2019-05-28 Alan Hayward <alan.hayward@arm.com>
8698 * event-top.c: Remove include comment.
8699 * inflow.c (class scoped_ignore_sigttou): Move from here...
8700 * inflow.h (class scoped_ignore_sigttou): ...to here.
8701 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
8702 * top.c: Remove include comment.
8704 2019-05-27 Tom Tromey <tom@tromey.com>
8708 2019-05-22 Tom Tromey <tromey@adacore.com>
8710 * target.c (target_follow_exec): Constify parameter.
8711 * target-delegates.c: Rebuild.
8712 * remote.c (remote_target::follow_exec): Constify parameter.
8713 * infrun.c (follow_exec): Constify parameter.
8714 * target.h (struct target_ops) <follow_exec>: Constify parameter.
8715 (target_follow_exec): Likewise.
8717 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8719 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
8720 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
8722 2019-05-22 Alan Hayward <alan.hayward@arm.com>
8724 * NEWS: Add debugredirect and testsuite sections.
8726 2019-05-22 Simon Cook <simon.cook@embecosm.com>
8728 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
8729 target descriptions using exclusively floating point register name
8732 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8735 * f-lang.c (build_fortran_types): Handle the case where
8736 gdbarch_floatformat_for_type returns a nullptr.
8738 2019-05-21 Tom de Vries <tdevries@suse.de>
8741 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
8743 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8746 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
8748 * i386-tdep.c (i386_floatformat_for_type): Use
8749 floatformats_ia64_quad for the 16-byte floating point component
8750 within a fortran 32-byte complex number.
8752 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
8754 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
8755 delete default constructor.
8756 (find_partial_die): Update to return const struct.
8757 (partial_die_parent_scope): Move variable declaration into scope
8758 of its use and change its type to auto.
8759 (guess_partial_die_structure_name): Likewise.
8760 (partial_die_info::fixup): Likewise.
8762 2019-05-17 Tom Tromey <tromey@adacore.com>
8764 * source.c (find_and_open_source): Remove cast.
8766 2019-05-17 Tom Tromey <tromey@adacore.com>
8768 * annotate.c (annotate_source): Make "filename" const.
8769 * annotate.h (annotate_source): Use const.
8771 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8773 * disasm.c (set_disassembler_options): Send errors to stderr.
8775 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8777 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
8778 (cli_interp_base::set_logging): Check debug_redirect.
8779 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
8780 * cli/cli-logging.c (debug_redirect): Add static variable.
8781 (pop_output_files): Add default param.
8782 (handle_redirections): Print debug setting.
8783 (show_logging_command): Likewise.
8784 (_initialize_cli_logging): Add debugredirect command.
8785 * interps.c (current_interp_set_logging): Add debug_redirect
8787 * interps.h (set_logging): Add debug_redirect parameter.
8788 (current_interp_set_logging): Likewise.
8789 * mi/mi-common.h: Likewise.
8790 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
8792 2019-05-17 Alan Hayward <alan.hayward@arm.com>
8793 Tom Tromey <tromey@adacore.com>
8795 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
8797 * cli/cli-interp.h (make_logging_output): Remove declaration.
8798 * cli/cli-logging.c (make_logging_output): Remove function.
8799 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
8801 * ui-file.c (tee_file::tee_file): Remove bools.
8802 (tee_file::~tee_file): Remove deletes.
8803 * ui-file.h (tee_file): Remove bools.
8805 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
8807 * mi/mi-cmds.h (mi_cmd_complete): New function.
8808 * mi/mi-main.c (mi_cmd_complete): Likewise.
8809 * mi/mi-cmds.c: Define new MI command -complete.
8810 * NEWS: Mention new -complete command.
8812 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
8814 * completer.h (complete): New function.
8815 * completer.c (complete): Likewise.
8816 * cli/cli-cmds.c: (complete_command): Update to use new complete()
8817 function defined in completer.h.
8819 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
8821 * MAINTAINERS (Write After Approval): Add myself.
8823 2019-05-17 Tom de Vries <tdevries@suse.de>
8826 * dwarf2read.c (struct cu_partial_die_info): New struct.
8827 (find_partial_die): Return cu_partial_die_info.
8828 (partial_die_parent_scope, guess_partial_die_structure_name)
8829 (partial_die_info::fixup): Handle new return type of find_partial_die.
8831 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8833 PR breakpoints/24541
8834 * stap-probe.c (stap_parse_register_operand): Make "regname" an
8835 "std::string", simplifying the algorithm.
8837 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8839 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
8840 (stap_static_probe_ops::get_probes): Likewise.
8842 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8844 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
8845 '-')" and "else if".
8846 (stap_parse_single_operand): Join checks for
8847 "gdbarch_stap_parse_special_token_p" and
8848 "gdbarch_stap_parse_special_token" in the same "if" statement.
8849 Invert check when verifying for operation on register
8852 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8854 * stap-probe.c (stap_get_opcode): Update comment.
8855 (stap_get_expected_argument_type): Likewise.
8856 (handle_stap_probe): Likewise.
8858 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
8860 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
8861 return type to 'bool'. Adjust comment. Use 'bool' when
8863 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8864 * stap-probe.c (stap_parse_argument_1): Likewise.
8865 (stap_is_operator): Likewise.
8866 (stap_is_generic_prefix): Likewise.
8867 (stap_is_register_prefix): Likewise.
8868 (stap_is_register_indirection_prefix): Likewise.
8869 (stap_is_integer_prefix): Likewise.
8870 (stap_generic_check_suffix): Likewise.
8871 (stap_check_integer_suffix): Likewise.
8872 (stap_check_register_suffix): Likewise.
8873 (stap_check_register_indirection_suffix): Likewise.
8874 (stap_parse_register_operand): Likewise.
8875 (stap_parse_single_operand): Likewise.
8876 (stap_parse_argument_1): Likewise.
8877 (stap_probe::get_argument_count): Likewise.
8878 (stap_is_operator): Likewise.
8880 2019-05-16 Tom Tromey <tromey@adacore.com>
8882 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
8885 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
8887 * linux-thread-db.c (try_thread_db_load_1): Change return type
8889 (try_thread_db_load): Likewise.
8890 (try_thread_db_load_from_pdir_1): Likewise.
8891 (try_thread_db_load_from_pdir): Likewise.
8892 (try_thread_db_load_from_sdir): Likewise.
8893 (try_thread_db_load_from_dir): Likewise.
8894 (thread_db_load_search): Likewise.
8895 (has_libpthread): Likewise.
8896 (thread_db_load): Likewise.
8898 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
8900 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
8901 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
8902 NULL, and complain/return if that's the case.
8904 2019-05-15 John Darrington <john@darrington.wattle.id.au>
8906 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
8907 (advance, posn, abstract_read_memory): New functions.
8908 [struct mem_read_abstraction]: New struct.
8909 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
8911 2019-05-14 Tom Tromey <tromey@adacore.com>
8913 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
8914 value is not lval_memory.
8916 2019-05-14 Tom Tromey <tromey@adacore.com>
8918 * solib.c (info_sharedlibrary_command): Style the file name.
8920 2019-05-14 Alan Hayward <alan.hayward@arm.com>
8922 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
8923 (aarch64_vnv_type): Likewise.
8924 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
8925 * common/tdesc.c: Likewise.
8926 * common/tdesc.h (enum tdesc_type_kind): Likewise.
8927 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
8928 * features/aarch64-fpu.xml: Add ieee half view.
8929 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
8930 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
8931 * gdbtypes.h (struct builtin_type): Likewise.
8932 (struct objfile_type): Likewise.
8934 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
8936 * language.c (language_sniff_from_mangled_name): Fix "langauge"
8938 * location.h (string_to_event_location): Likewise.
8940 2019-05-11 Joel Brobecker <brobecker@adacore.com>
8944 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8946 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
8947 New variable declaration.
8948 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
8950 (print_one_breakpoint): Use ui_out::test_flags and new global
8951 variable to compute use_fixed_output.
8952 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
8954 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
8955 (mi_multi_location_breakpoint_output_fixed): Remove.
8956 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
8958 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
8959 fix_multi_location_breakpoint_output flag if version >= 3.
8960 * ui-out.h (enum ui_out_flag)
8961 <fix_multi_location_breakpoint_output>: New enumerator.
8963 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
8965 * contrib/cc-with-tweaks.sh: Validate dwz's work.
8967 2019-05-10 Tom Tromey <tromey@adacore.com>
8969 * ada-lang.c (catch_ada_completer): New function.
8970 (_initialize_ada_language): Use it.
8972 2019-05-10 Tom Tromey <tromey@adacore.com>
8974 * thread.c (print_thread_info): Make "requested_threads" const.
8975 * gdbthread.h (print_thread_info): Make "requested_threads"
8977 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
8978 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
8980 2019-05-08 Tom Tromey <tom@tromey.com>
8982 * gdbtypes.c (objfile_type_data): Change type.
8983 (objfile_type, _initialize_gdbtypes): Update.
8985 2019-05-08 Tom Tromey <tom@tromey.com>
8987 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
8988 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
8989 (_initialize_dwarf2_frame): Update.
8991 2019-05-08 Tom Tromey <tom@tromey.com>
8993 * objc-lang.c (objc_objfile_data): Change type.
8994 (find_methods): Update.
8995 (_initialize_objc_lang): Remove.
8997 2019-05-08 Tom Tromey <tom@tromey.com>
8999 * stabsread.c (rs6000_builtin_type_data): Change type.
9000 (rs6000_builtin_type, _initialize_stabsread): Update.
9002 2019-05-08 Tom Tromey <tom@tromey.com>
9004 * mips-tdep.c (mips_pdr_data): Remove.
9005 (_initialize_mips_tdep): Update.
9007 2019-05-08 Tom Tromey <tom@tromey.com>
9009 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9010 (hppa_init_objfile_priv_data, read_unwind_info)
9011 (find_unwind_entry, _initialize_hppa_tdep): Update.
9013 2019-05-08 Tom Tromey <tom@tromey.com>
9015 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9016 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9018 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9020 2019-05-08 Tom Tromey <tom@tromey.com>
9022 * mdebugread.c (basic_type_data): Change type.
9023 (basic_type, _initialize_mdebugread): Update.
9025 2019-05-08 Tom Tromey <tom@tromey.com>
9027 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9029 2019-05-08 Tom Tromey <tom@tromey.com>
9031 * nto-tdep.c (nto_inferior_data_reg): Change type.
9032 (nto_inferior_data): Update.
9033 (nto_inferior_data_cleanup, nto_new_inferior_data)
9034 (_initialize_nto_tdep): Remove.
9035 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9037 2019-05-08 Tom Tromey <tom@tromey.com>
9039 * ada-lang.c (struct ada_inferior_data): Add initializers.
9040 (ada_inferior_data): Change type.
9041 (ada_inferior_data_cleanup): Remove.
9042 (get_ada_inferior_data, ada_inferior_exit)
9043 (struct ada_pspace_data): Add initializers, destructor.
9044 (ada_pspace_data_handle): Change type.
9045 (get_ada_pspace_data): Update.
9046 (ada_pspace_data_cleanup): Remove.
9048 2019-05-08 Tom Tromey <tom@tromey.com>
9050 * coffread.c (struct coff_symfile_info): Add initializers.
9051 (coff_objfile_data_key): Move lower. Change type.
9052 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9054 (coff_free_info): Remove.
9056 2019-05-08 Tom Tromey <tom@tromey.com>
9058 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9059 (fbsd_pspace_data_handle): Move lower. Change type.
9060 (get_fbsd_pspace_data): Update.
9061 (fbsd_pspace_data_cleanup): Remove.
9062 (_initialize_fbsd_tdep): Update.
9064 2019-05-08 Tom Tromey <tom@tromey.com>
9066 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9067 (get_ada_tasks_pspace_data): Update.
9068 (ada_tasks_pspace_data_cleanup): Remove.
9069 (_initialize_tasks): Update.
9070 (ada_tasks_inferior_data_handle): Change type.
9071 (get_ada_tasks_inferior_data): Update.
9072 (ada_tasks_inferior_data_cleanup): Remove.
9073 (struct ada_tasks_pspace_data): Add initializers.
9075 2019-05-08 Tom Tromey <tom@tromey.com>
9077 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9078 * symfile-debug.c (debug_sym_get_probes): Change type.
9079 * stap-probe.c (handle_stap_probe):
9080 (stap_static_probe_ops::get_probes): Change type.
9081 * probe.h (class static_probe_ops) <get_probes>: Change type.
9082 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9083 (parse_probes_in_pspace): Update.
9084 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9086 (any_static_probe_ops::get_probes): Change type.
9087 * elfread.c (elfread_data): New typedef.
9088 (probe_key): Change type.
9089 (elf_get_probes): Likewise. Update.
9090 (probe_key_free): Remove.
9091 (_initialize_elfread): Update.
9092 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9094 (dtrace_process_dof_probe, dtrace_process_dof)
9095 (dtrace_static_probe_ops::get_probe): Change type.
9097 2019-05-08 Tom Tromey <tom@tromey.com>
9099 * xcoffread.c (struct xcoff_symfile_info): Rename from
9100 coff_symfile_info. Add initializers.
9101 (xcoff_objfile_data_key): Move lower. Change type.
9102 (XCOFF_DATA): Rewrite.
9103 (xcoff_free_info): Remove.
9104 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9105 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9106 (xcoff_initial_scan): Update.
9108 2019-05-08 Tom Tromey <tom@tromey.com>
9110 * solib-svr4.c (struct svr4_info): Add initializers and
9112 <probes_table>: Now an htab_up.
9113 (solib_svr4_pspace_data): Change type.
9114 (free_probes_table): Simplify.
9115 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9116 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9117 (probes_table_remove_objfile_probes, register_solib_event_probe)
9118 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9119 (_initialize_svr4_solib): Update.
9121 2019-05-08 Tom Tromey <tom@tromey.com>
9123 * remote.c (remote_pspace_data): Change type.
9124 (remote_pspace_data_cleanup): Remove.
9125 (get_remote_exec_file, set_pspace_remote_exec_file)
9126 (_initialize_remote): Update.
9128 2019-05-08 Tom Tromey <tom@tromey.com>
9130 * breakpoint.c (breakpoint_objfile_key): Change type.
9131 (get_breakpoint_objfile_data): Update.
9132 (free_breakpoint_objfile_data): Remove.
9133 (_initialize_breakpoint): Update.
9135 2019-05-08 Tom Tromey <tom@tromey.com>
9137 * linux-tdep.c (struct linux_info): Add initializers.
9138 (linux_inferior_data): Move. Change type.
9139 (invalidate_linux_cache_inf): Update.
9140 (linux_inferior_data_cleanup): Remove.
9141 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9143 2019-05-08 Tom Tromey <tom@tromey.com>
9145 * auxv.c (auxv_inferior_data): Move. Change type.
9146 (auxv_inferior_data_cleanup): Remove.
9147 (invalidate_auxv_cache_inf): Rewrite.
9148 (get_auxv_inferior_data, _initialize_auxv): Update.
9150 2019-05-08 Tom Tromey <tom@tromey.com>
9152 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9153 (symfile_debug_objfile_data_key): Change type.
9154 (symfile_debug_installed, debug_qf_has_symbols)
9155 (debug_qf_find_last_source_symtab)
9156 (debug_qf_forget_cached_source_info)
9157 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9158 (debug_qf_print_stats, debug_qf_dump)
9159 (debug_qf_expand_symtabs_for_function)
9160 (debug_qf_expand_all_symtabs)
9161 (debug_qf_expand_symtabs_with_fullname)
9162 (debug_qf_map_matching_symbols)
9163 (debug_qf_expand_symtabs_matching)
9164 (debug_qf_find_pc_sect_compunit_symtab)
9165 (debug_qf_map_symbol_filenames)
9166 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9167 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9168 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9169 (debug_sym_read_linetable, debug_sym_relocate): Update.
9170 (symfile_debug_free_objfile): Remove.
9171 (install_symfile_debug_logging, _initialize_symfile_debug):
9174 2019-05-08 Tom Tromey <tom@tromey.com>
9176 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9177 allocate_on_obstack.
9178 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9179 (get_dwarf2_per_objfile): Update.
9180 (set_dwarf2_per_objfile): Remove.
9181 (dwarf2_has_info, dwarf2_get_section_info): Update.
9182 (dwarf2_free_objfile): Remove.
9183 (_initialize_dwarf2_read): Update.
9185 2019-05-08 Tom Tromey <tom@tromey.com>
9187 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9189 <unsupported_script_warning_printed,
9190 script_not_found_warning_printed>: Now bool.
9191 (auto_load_pspace_data): Change type.
9192 (~auto_load_pspace_info): Rename from
9193 auto_load_pspace_data_cleanup.
9194 (get_auto_load_pspace_data, init_loaded_scripts_info)
9195 (clear_section_scripts, maybe_print_unsupported_script_warning)
9196 (maybe_print_script_not_found_warning, _initialize_auto_load):
9199 2019-05-08 Tom Tromey <tom@tromey.com>
9201 * objfiles.c (objfile_pspace_info): Add destructor and
9203 (objfiles_pspace_data): Change type.
9204 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9205 (get_objfile_pspace_data): Update.
9206 (objfiles_bfd_data): Change type.
9207 (get_objfile_bfd_data): Update.
9208 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9210 2019-05-08 Tom Tromey <tom@tromey.com>
9212 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9214 (get_catch_syscall_inferior_data): Update.
9215 (catch_syscall_inferior_data_cleanup): Remove.
9216 (_initialize_break_catch_syscall): Update.
9218 2019-05-08 Tom Tromey <tom@tromey.com>
9220 * inflow.c (struct terminal_info): Add destructor and
9222 (inflow_inferior_data): Change type.
9223 (~terminal_info): Rename from inflow_inferior_data_cleanup.
9224 (get_inflow_inferior_data, inflow_inferior_exit)
9225 (swap_terminal_info, _initialize_inflow): Update.
9227 2019-05-08 Tom Tromey <tom@tromey.com>
9229 * target-dcache.c (target_dcache_cleanup): Remove.
9230 (target_dcache_aspace_key): Change type.
9231 (target_dcache_init_p, target_dcache_invalidate)
9232 (target_dcache_get, target_dcache_get_or_init)
9233 (_initialize_target_dcache): Update.
9234 * dcache.h (struct dcache_deleter): New.
9236 2019-05-08 Tom Tromey <tom@tromey.com>
9238 * symtab.c (struct symbol_cache): Add destructor and
9240 (symbol_cache_key): Move. Change type.
9241 (make_symbol_cache, free_symbol_cache): Remove.
9242 (get_symbol_cache): Update.
9243 (symbol_cache_cleanup): Remove.
9244 (ALL_PSPACES, symbol_cache_flush)
9245 (maintenance_print_symbol_cache)
9246 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
9249 2019-05-08 Tom Tromey <tom@tromey.com>
9251 * symtab.c (struct main_info): Add destructor and initializers.
9252 (main_progspace_key): Move. Change type.
9253 (get_main_info): Update.
9254 (main_info_cleanup): Remove.
9255 (_initialize_symtab): Update.
9257 2019-05-08 Tom Tromey <tom@tromey.com>
9259 * registry.h (DECLARE_REGISTRY): Define the _key class.
9261 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9263 * NEWS: Merge two 'New commands' sections.
9265 2019-05-08 Joel Brobecker <brobecker@adacore.com>
9267 * ada-valprint.c (ada_val_print_gnat_array): Remove language
9268 parameter and use Ada language definition instead.
9269 (ada_val_print_ptr): Remove unused language parameter.
9270 (ada_val_print_num): Remove language parameter and use Ada language
9272 (ada_val_print_enum, ada_val_print_flt): Remove unused language
9274 (ada_val_print_struct_union, ada_val_print_ref): Remove language
9275 parameter and use Ada language definition instead.
9276 (ada_val_print_1): Update all ada_val_print_xxx calls.
9277 Remove language parameter.
9278 (ada_val_print): Update ada_val_print_1 call.
9280 2019-05-08 Tom Tromey <tromey@adacore.com>
9282 * remote.c (remote_hw_watchpoint_limit)
9283 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
9286 2019-05-08 Tom Tromey <tromey@adacore.com>
9288 * maint.c (_initialize_maint_cmds): Move initialization code to
9290 (watchdog, show_watchdog): Move to remote.c.
9291 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
9293 (_initialize_remote): Move initialization code from maint.c.
9294 * defs.h (watchdog): Don't declare.
9296 2019-05-08 Tom Tromey <tromey@adacore.com>
9298 * tui/tui-interp.c: Include main.h.
9299 * interps.c: Include main.h.
9300 * main.h (interpreter_p): Declare.
9301 * defs.h (interpreter_p): Don't declare.
9303 2019-05-08 Tom Tromey <tromey@adacore.com>
9305 * dwarf2loc.c: Include dwarf2read.h.
9306 * defs.h (read_unsigned_leb128): Don't declare.
9307 * dwarf2read.h (read_unsigned_leb128): Declare.
9309 2019-05-08 Tom Tromey <tromey@adacore.com>
9311 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
9314 2019-05-08 Tom Tromey <tromey@adacore.com>
9316 * utils.c (fputs_maybe_filtered): Reset style after paging, even
9317 when no wrap column is set.
9319 2019-05-08 Tom Tromey <tromey@adacore.com>
9321 * c-lang.c (c_get_string): Handle non-C-style arrays.
9323 2019-05-08 Tom Tromey <tromey@adacore.com>
9325 * typeprint.c (print_offset_data::update): Print the bit offset,
9326 not the number of bits remaining.
9328 2019-05-08 Tom Tromey <tromey@adacore.com>
9330 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
9331 padding at end of comment.
9333 2019-05-08 Tom Tromey <tromey@adacore.com>
9335 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
9338 2019-05-06 Tom Tromey <tom@tromey.com>
9340 * common/scoped_mmap.c: Include common-defs.h.
9341 * common/scoped_mmap.h: Don't include config.h.
9343 2019-05-04 Tom Tromey <tom@tromey.com>
9345 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
9346 (struct aarch64_call_info): Add initializers.
9347 <si>: Now a std::vector.
9348 (pass_on_stack, aarch64_push_dummy_call): Update.
9350 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
9351 Tom Tromey <tom@tromey.com>
9353 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
9354 (ppc_threads): Now a std::vector. Now static.
9355 (hwdebug_find_thread_points_by_tid)
9356 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
9359 2019-05-04 Tom Tromey <tom@tromey.com>
9361 * arc-tdep.c (arc_tdesc_init): Return bool.
9363 2019-05-04 Tom Tromey <tom@tromey.com>
9365 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
9366 Use gdb_assert_not_reached.
9368 2019-05-04 Tom Tromey <tom@tromey.com>
9370 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
9373 2019-05-04 Tom Tromey <tom@tromey.com>
9375 * arc-tdep.c (arc_tdesc_init): Use bool.
9377 2019-05-04 Tom Tromey <tom@tromey.com>
9379 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
9381 2019-05-04 Tom Tromey <tom@tromey.com>
9383 * cli/cli-cmds.c (valid_command_p): Return bool.
9385 2019-05-04 Tom Tromey <tom@tromey.com>
9387 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
9388 * command.h (valid_user_defined_cmd_name_p): Channge return type.
9390 2019-05-04 Raul Tambre <raul@tambre.ee>
9392 * python/lib/gdb/prompt.py (_ExtendedPrompt)
9393 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
9394 operator for comparison.
9396 2019-05-04 Tom Tromey <tom@tromey.com>
9398 * psymtab.c (psymbol_name_matches, match_partial_symbol)
9399 (lookup_partial_symbol, print_partial_symbols)
9400 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
9401 (psymbol_compare): Update.
9402 (add_psymbol_to_bcache): Clear the entire psymbol.
9403 (maintenance_check_psymtabs): Update.
9404 * psympriv.h (struct partial_symbol): Don't derive from
9405 general_symbol_info.
9406 <obj_section, unrelocated_address, address,
9407 set_unrelocated_address>: Update.
9408 <ginfo>: New member.
9409 * dwarf-index-write.c (write_psymbols, debug_names::insert)
9410 (debug_names::write_psymbols): Update.
9412 2019-05-04 Tom de Vries <tdevries@suse.de>
9414 * contrib/cc-with-tweaks.sh: Support -n arg.
9416 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9418 * corelow.c (core_target::detach): Ensure frame cache and
9419 register caches are cleared.
9420 inferior.c (exit_inferior_1): Likewise.
9422 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
9423 Tom Tromey <tom@tromey.com>
9425 * dictionary.c (collate_pending_symbols_by_language): Remove
9426 "struct" from foreach.
9427 * symtab.c (lookup_global_symbol_from_objfile)
9428 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
9430 * ser-tcp.c (net_open): Remove "struct" from foreach.
9431 * objfiles.c (objfile_relocate, objfile_rebase)
9432 (objfile_has_symbols): Remove "struct" from foreach.
9433 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
9435 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
9437 * darwin-nat.c (thread_info_from_private_thread_info): Remove
9438 "struct" from foreach.
9439 * ada-lang.c (create_excep_cond_exprs)
9440 (ada_exception_catchpoint_cond_string): Remove "struct" from
9443 2019-05-03 Tom Tromey <tromey@adacore.com>
9445 * ada-exp.y (convert_char_literal): Check suffix of each
9448 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9451 * ada-exp.y (yywrap): Don't define.
9452 * ada-lex.l (%option): Add noyywrap
9455 2019-05-03 Eli Zaretskii <eliz@gnu.org>
9457 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
9458 _WIN32_WINNT to the XP level, unless already defined to a higher
9461 * unittests/parse-connection-spec-selftests.c:
9463 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
9466 * symfile.c (find_separate_debug_file): Remove colon from the
9467 drive spec of DOS/Windows file names of the target, so that the
9468 file name produced from DEBUGDIR and the target's directory will
9469 be valid on DOS/Windows systems.
9471 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
9473 * rust-lang.c (val_print_struct): Handle printing structures
9476 2019-05-02 Tom Tromey <tromey@adacore.com>
9478 * valarith.c (_initialize_valarith): Remove.
9480 2019-05-01 Tom Tromey <tromey@adacore.com>
9482 * ada-lang.c (ada_value_primitive_field): Treat more fields as
9485 2019-05-01 Tom Tromey <tromey@adacore.com>
9487 * ada-lang.c (ada_value_assign): Correctly compute starting offset
9488 for big-endian copies.
9490 2019-04-30 Ali Tamur <tamur@google.com>
9491 * gdb/dwarf2read.c (read_3_bytes): New declaration.
9492 (read_attribute_value): Added DW_FORM_strx1-4 cases.
9493 (read_3_bytes): New function.
9495 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9497 * windows-nat.c (main_thread_id): Delete.
9498 (handle_output_debug_string): Replace main_thread_id by
9499 current_event.dwThreadId.
9500 (fake_create_process): Likewise.
9501 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
9502 Do not set main_thread_id.
9503 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
9504 current_event.dwThreadId.
9505 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
9507 2019-04-30 Joel Brobecker <brobecker@adacore.com>
9509 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
9510 Use current_event.dwThreadId instead of main_thread_id.
9512 2019-04-30 Tom Tromey <tromey@adacore.com>
9514 * ada-lang.c (ada_lookup_simple_minsyms): New function.
9515 (create_excep_cond_exprs): Iterate over program spaces.
9516 (ada_exception_catchpoint_cond_string): Examine all minimal
9517 symbols for exception types.
9519 2019-04-30 Tom Tromey <tromey@adacore.com>
9522 * dwarf2read.c (process_structure_scope): Handle case where type
9523 has template parameters but no symbol was created.
9525 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9526 Chris January <chris.january@arm.com>
9528 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
9530 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
9532 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9534 * f-typeprint.c (f_print_type): Update rules for printing
9536 (f_type_print_varspec_suffix): Likewise.
9538 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9539 Chris January <chris.january@arm.com>
9541 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
9544 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9546 * f-lang.c (build_fortran_types): Change name of void type to
9548 * f-typeprint.c (f_type_print_base): Print the name of the void
9549 type, rather than a fixed string.
9550 * f-valprint.c (f_decorations): Use lower case void string.
9552 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9553 Chris January <chris.january@arm.com>
9555 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
9558 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9559 Chris January <chris.january@arm.com>
9560 David Lecomber <david.lecomber@arm.com>
9562 * f-exp.y (BINOP_INTRINSIC): New token.
9563 (exp): New parser rule handling BINOP_INTRINSIC.
9564 (f77_keywords): Add new builtin procedures.
9565 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
9566 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9567 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
9568 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9569 (print_unop_subexp_f): New function.
9570 (print_binop_subexp_f): New function.
9571 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9572 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
9573 (dump_subexp_body_f): Likewise.
9574 (operator_check_f): Likewise.
9575 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
9576 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
9578 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9580 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
9582 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
9583 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
9584 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
9585 (operator_length_f): New fuction.
9586 (print_subexp_f): New function.
9587 (op_name_f): New function.
9588 (dump_subexp_body_f): New function.
9589 (operator_check_f): New function.
9590 (exp_descriptor_f): Replace standard expression handling functions
9592 * gdb/fortran-operator.def: New file.
9593 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
9594 * gdb/std-operator.def: Remove UNOP_KIND.
9596 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
9598 * std-operator.def: Remove unbalanced, stray double quote
9601 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9602 Chris January <chris.january@arm.com>
9603 Daniel Everett <daniel.everett@arm.com>
9604 Nick Forrington <nick.forrington@arm.com>
9605 Richard Bunt <richard.bunt@arm.com>
9607 * cp-valprint.c (cp_print_value_fields): Allow an additional level
9608 of depth when printing anonymous structs or unions.
9609 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
9610 Don't print either the top-level value, or the children if the
9611 max-depth is exceeded.
9612 (ppscm_print_children): When printing the key of a map, allow one
9613 extra level of depth.
9614 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
9615 print either the top-level value, or the children if the max-depth
9617 (print_children): When printing the key of a map, allow one extra
9619 * python/py-value.c (valpy_format_string): Add max_depth keyword.
9620 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
9621 (user_print_options): Initialise max_depth field.
9622 (val_print_scalar_or_string_type_p): New function.
9623 (val_print): Check to see if the max depth has been reached.
9624 (val_print_check_max_depth): Define new function.
9625 (show_print_max_depth): New function.
9626 (_initialize_valprint): Add 'print max-depth' option.
9627 * valprint.h (struct value_print_options) <max_depth>: New field.
9628 (val_print_check_max_depth): Declare new function.
9629 * NEWS: Document new feature.
9631 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9633 * ada-lang.c (ada_language_defn): Initialise new field.
9634 * c-lang.c (c_is_string_type_p): New function.
9635 (c_language_defn): Initialise new field.
9636 (cplus_language_defn): Initialise new field.
9637 (asm_language_defn): Initialise new field.
9638 (minimal_language_defn): Initialise new field.
9639 * c-lang.h (c_is_string_type_p): Declare new function.
9640 * d-lang.c (d_language_defn): Initialise new field.
9641 * f-lang.c (f_is_string_type_p): New function.
9642 (f_language_defn): Initialise new field.
9643 * go-lang.c (go_is_string_type_p): New function.
9644 (go_language_defn): Initialise new field.
9645 * language.c (default_is_string_type_p): New function.
9646 (unknown_language_defn): Initialise new field.
9647 (auto_language_defn): Initialise new field.
9648 * language.h (struct language_defn) <la_is_string_type_p>: New
9650 (default_is_string_type_p): Declare new function.
9651 * m2-lang.c (m2_language_defn): Initialise new field.
9652 * objc-lang.c (objc_language_defn): Initialise new field.
9653 * opencl-lang.c (opencl_language_defn): Initialise new field.
9654 * p-lang.c (pascal_is_string_type_p): New function.
9655 (pascal_language_defn): Initialise new field.
9656 * rust-lang.c (rust_is_string_type_p): New function.
9657 (rust_language_defn): Initialise new field.
9659 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9661 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
9663 * ada-lang.c (ada_language_defn): Initialise new field.
9664 * c-lang.c (c_language_defn): Likewise.
9665 (cplus_language_defn): Likewise.
9666 (asm_language_defn): Likewise.
9667 (minimal_language_defn): Likewise.
9668 * d-lang.c (d_language_defn): Likewise.
9669 * f-lang.c (f_language_defn): Likewise.
9670 * go-lang.c (go_language_defn): Likewise.
9671 * language.c (unknown_language_defn): Likewise.
9672 (auto_language_defn): Likewise.
9673 * m2-lang.c (m2_language_defn): Likewise.
9674 * objc-lang.c (objc_language_defn): Likewise.
9675 * opencl-lang.c (opencl_language_defn): Likewise.
9676 * p-lang.c (pascal_language_defn): Likewise.
9677 * rust-lang.c (rust_language_defn): Likewise.
9679 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9681 * ada-lang.c (ada_is_character_type): Change return type to bool.
9682 (ada_is_string_type): Likewise.
9683 * ada-lang.h (ada_is_character_type): Update declaration
9684 (ada_is_string_type): Likewise.
9686 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9688 Support style in 'frame|thread apply'
9690 * gdbcmd.h (execute_command_to_string): New term_out parameter.
9691 * record.c (record_start, record_stop): Update callers of
9692 execute_command_to_string with false.
9693 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
9694 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
9696 (class string_file): New constructor with term_out parameter.
9697 Override methods term_out and can_emit_style_escape. New member
9699 (class stdio_file): Override can_emit_style_escape.
9700 (class tee_file): Override term_out and can_emit_style_escape.
9701 * utils.h (can_emit_style_escape): Remove.
9702 * utils.c (can_emit_style_escape): Likewise.
9703 Update all callers of can_emit_style_escape (SOMESTREAM) to
9704 SOMESTREAM->can_emit_style_escape.
9705 * source-cache.c (source_cache::get_source_lines): Likewise.
9706 * stack.c (frame_apply_command_count): Call execute_command_to_string
9707 passing the term_out characteristic of the current gdb_stdout.
9708 * thread.c (thr_try_catch_cmd): Likewise.
9709 * top.c (execute_command_to_string): pass term_out parameter
9710 to construct the string_file for the command output.
9711 * ui-file.c (term_cli_styling): New function (most code moved
9712 from utils.c can_emit_style_escape).
9713 (string_file::string_file, string_file::can_emit_style_escape,
9714 stdio_file::can_emit_style_escape, tee_file::term_out,
9715 tee_file::can_emit_style_escape): New functions.
9717 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9719 * NEWS: Mention the new set|show may-call-functions.
9720 * infcall.c (may_call_functions_p): New variable.
9721 (show_may_call_functions_p): New function.
9722 (call_function_by_hand_dummy): Throws an error if not
9724 (_initialize_infcall): Call add_setshow_boolean_cmd for
9727 2019-04-25 Keith Seitz <keiths@redhat.com>
9730 * cp-support.c (inspect_type): Don't attempt substitutions
9731 of symbol with the same name.
9733 2019-04-25 Tom Tromey <tromey@adacore.com>
9736 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
9739 2019-04-25 Tom Tromey <tromey@adacore.com>
9741 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
9743 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
9744 (gdb_xml_parser::parse): Use std::move.
9745 * python/python-internal.h (gdbpy_convert_exception): Take a const
9747 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
9749 * python/py-utils.c (gdbpy_convert_exception): Take a const
9751 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9753 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9755 * mi/mi-main.c (mi_print_exception): Take a const reference.
9756 * main.c (handle_command_errors): Take a const reference.
9757 * linespec.c (parse_linespec): Use std::move.
9758 * infcall.c (run_inferior_call): Use std::move.
9759 (call_function_by_hand_dummy): Use std::move.
9760 * exec.c (try_open_exec_file): Use std::move.
9761 * exceptions.h (exception_print, exception_fprintf)
9762 (exception_print_same): Update.
9763 * exceptions.c (print_exception, exception_print)
9764 (exception_fprintf, exception_print_same): Change parameters to
9766 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
9767 * common/new-op.c: Use std::move.
9768 * common/common-exceptions.h (struct gdb_exception): Add move
9770 (struct gdb_exception_error, struct gdb_exception_quit, struct
9771 gdb_quit_bad_alloc): Change constructor to move constructor.
9772 (throw_exception): Change parameter to rvalue reference.
9773 * common/common-exceptions.c (throw_exception): Take rvalue
9775 * cli/cli-interp.c (safe_execute_command): Use std::move.
9776 * breakpoint.c (insert_bp_location, location_to_sals): Use
9779 2019-04-25 Tom Tromey <tromey@adacore.com>
9781 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
9782 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
9783 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
9784 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
9785 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
9786 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
9787 guile/scm-value.c: Use unpack.
9788 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
9789 gdbscm_gdb_exception.
9790 (gdbscm_throw_gdb_exception): Likewise.
9791 (struct gdbscm_gdb_exception): New.
9792 (unpack): New function.
9793 (gdbscm_wrap): Use unpack.
9795 2019-04-25 Tom Tromey <tromey@adacore.com>
9797 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9798 (gdb_rl_callback_handler): Use std::move.
9799 * common/common-exceptions.h (struct gdb_exception): Add move
9800 assignment operator.
9801 (throw_exception_sjlj): Change "exception" to const reference.
9802 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
9803 (throw_exception_sjlj): Change "exception" to const reference.
9805 2019-04-25 Tom Tromey <tromey@adacore.com>
9807 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
9808 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
9809 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
9811 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
9813 * mi/mi-interp.c (mi_interp::exec): Update.
9814 * linespec.c (parse_linespec): Update.
9815 * infcall.c (run_inferior_call): Update.
9816 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
9817 * guile/scm-symbol.c (gdbscm_lookup_symbol)
9818 (gdbscm_lookup_global_symbol): Update.
9819 * guile/scm-param.c (gdbscm_parameter_value): Update.
9820 * guile/scm-frame.c (gdbscm_frame_read_register)
9821 (gdbscm_frame_read_var): Update.
9822 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9823 * exec.c (try_open_exec_file): Update.
9824 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
9825 (gdb_rl_callback_handler): Update.
9826 * common/common-exceptions.h (exception_none): Don't declare.
9827 * common/common-exceptions.c (exception_none): Don't define.
9828 (struct catcher) <exception>: Update.
9829 * cli/cli-interp.c (safe_execute_command): Update.
9830 * breakpoint.c (insert_bp_location, location_to_sals): Update.
9832 2019-04-25 Ali Tamur <tamur@google.com>
9834 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
9835 (read_attribute_value): Likewise.
9836 (dwarf2_read_addr_index): Update comment.
9837 (read_str_index): Add DW_FORM_strx.
9838 (dwarf2_string_attr): Likewise.
9839 (dwarf2_const_value_attr): Likewise.
9840 (dump_die_shallow): Likewise.
9841 (dwarf2_fetch_constant_bytes): Likewise.
9842 (skip_form_bytes): Likewise.
9843 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
9845 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
9849 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
9850 OFFSET. Verify if current mapping contains an ELF header.
9851 (linux_find_memory_regions_full): Adjust call to
9854 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
9855 Kang Li <kanglictf@gmail.com>
9859 * dwarf2-frame.c (read_initial_length): Be consistent about using
9860 unsigned representation of length.
9861 (decode_frame_entry_1): Likewise. Check for wraparound of
9862 end pointer as well as buffer overflow.
9864 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
9866 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
9869 2019-04-24 Tom Tromey <tromey@adacore.com>
9871 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
9873 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9875 * s12z-tdep.c (s12z_unwind_pc): Delete.
9876 (s12z_unwind_sp): Delete.
9877 (s12z_gdbarch_init): Don't register deleted functions with
9880 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9882 * rl78-tdep.c (rl78_unwind_sp): Delete.
9883 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
9885 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9887 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
9888 (xstormy16_unwind_pc): Delete.
9889 (xstormy16_dummy_id): Delete.
9890 (xstormy16_gdbarch_init): Don't register deleted functions with
9893 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9895 * vax-tdep.c (vax_unwind_pc): Delete.
9896 (vax_gdbarch_init): Don't register deleted function with gdbarch.
9898 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9900 * v850-tdep.c (v850_unwind_sp): Delete.
9901 (v850_unwind_pc): Delete.
9902 (v850_dummy_id): Delete.
9903 (v850_gdbarch_init): Don't register deleted functions with
9906 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9908 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
9909 (tilegx_unwind_pc): Delete.
9910 (tilegx_unwind_dummy_id): Delete.
9911 (tilegx_gdbarch_init): Don't register deleted functions with
9914 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9916 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
9917 (tic6x_dummy_id): Delete.
9918 (tic6x_gdbarch_init): Don't register deleted functions with
9921 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9923 * sparc-tdep.c (sparc_unwind_pc): Delete.
9924 (sparc32_gdbarch_init): Don't register deleted function with
9927 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9929 * sh-tdep.c (sh_unwind_sp): Delete.
9930 (sh_unwind_pc): Delete.
9931 (sh_dummy_id): Delete.
9932 (sh_gdbarch_init): Don't register deleted functions with
9935 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9937 * score-tdep.c (score_unwind_sp): Delete.
9938 (score_unwind_pc): Delete.
9939 (score_dummy_id): Delete.
9940 (score_gdbarch_init): Don't register deleted functions with
9943 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9945 * rx-tdep.c (rx_unwind_pc): Delete.
9946 (rx_unwind_sp): Delete.
9947 (rx_dummy_id): Delete.
9948 (rx_gdbarch_init): Don't register deleted functions with
9949 gdbarch. Update comment.
9951 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9953 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
9954 (rs6000_dummy_id): Delete.
9955 (rs6000_gdbarch_init): Don't register deleted functions with
9958 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9960 * or1k-tdep.c (or1k_dummy_id): Delete.
9961 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
9963 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9965 * nios2-tdep.c (nios2_dummy_id): Delete.
9966 (nios2_unwind_sp): Delete.
9967 (nios2_gdbarch_init): Don't register deleted functions with
9970 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9972 * nds32-tdep.c (nds32_dummy_id): Delete.
9973 (nds32_unwind_pc): Delete.
9974 (nds32_unwind_sp): Delete.
9975 (nds32_gdbarch_init): Don't register deleted functions with
9978 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9980 * msp430-tdep.c (msp430_unwind_pc): Delete.
9981 (msp430_unwind_sp): Delete.
9982 (msp430_dummy_id): Delete.
9983 (msp430_gdbarch_init): Don't register deleted functions with
9986 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9988 * moxie-tdep.c (moxie_unwind_sp): Delete.
9989 (moxie_unwind_pc): Delete.
9990 (moxie_dummy_id): Delete.
9991 (moxie_gdbarch_init): Don't register deleted functions with
9994 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
9996 * mn10300-tdep.c (mn10300_dummy_id): Delete.
9997 (mn10300_unwind_pc): Delete.
9998 (mn10300_unwind_sp): Delete.
9999 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10001 (mn10300_frame_unwind_init): Don't register deleted functions with
10004 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10006 * mep-tdep.c (mep_unwind_pc): Delete.
10007 (mep_unwind_sp): Delete.
10008 (mep_dummy_id): Delete.
10009 (mep_gdbarch_init): Don't register deleted functions with
10012 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10014 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10015 (m68hc11_unwind_sp): Delete.
10016 (m68hc11_gdbarch_init): Don't register deleted functions with
10019 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10021 * m32r-tdep.c (m32r_unwind_sp): Delete.
10022 (m32r_unwind_pc): Delete.
10023 (m32r_dummy_id): Delete.
10024 (m32r_gdbarch_init): Don't register deleted functions with
10027 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10029 * m32c-tdep.c (m32c_unwind_pc): Delete.
10030 (m32c_unwind_sp): Delete.
10031 (m32c_dummy_id): Delete.
10032 (m32c_gdbarch_init): Don't register deleted functions with
10035 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10037 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10038 (lm32_unwind_pc): Delete.
10039 (lm32_dummy_id): Delete.
10040 (lm32_gdbarch_init): Don't register deleted functions with
10043 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10045 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10046 (iq2000_unwind_pc): Delete.
10047 (iq2000_dummy_id): Delete.
10048 (iq2000_gdbarch_init): Don't register deleted functions with
10051 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10053 * nds32-tdep.c (nds32_type_align): Delete.
10054 (nds32_push_dummy_call): Use type_align instead.
10056 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10058 * arm-tdep.c (arm_type_align): Only handle vector override case.
10059 (arm_push_dummy_call): Use type_align.
10060 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10062 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10064 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10066 (pass_on_stack): Use type_align.
10067 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10070 2019-04-23 Tom Tromey <tromey@adacore.com>
10072 * dwarf2read.c (line_header::file_name_at): Remove unused
10075 2019-04-23 Tom de Vries <tdevries@suse.de>
10078 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10082 2019-03-27 Ali Tamur <tamur@google.com>
10084 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10085 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10086 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10087 (dwarf_expr_context::get_addr_index): Likewise
10088 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10089 (symbol_needs_eval_context::get_addr_index): Likewise
10090 (disassemble_dwarf_expression): Add DW_OP_addrx
10091 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10092 (read_cutu_die_from_dwo): Update comment
10093 (skip_one_die): Add DW_FORM_addrx
10094 (read_attribute_value): Likewise
10095 (var_decode_location): Add DW_OP_addrx
10096 (dwarf2_const_value_attr): Add DW_FORM_addrx
10097 (dump_die_shallow): Likewise
10098 (dwarf2_fetch_constant_bytes): Likewise
10099 (decode_locdesc): Add DW_OP_addrx
10100 (skip_form_bytes): Add DW_FORM_addrx
10102 2019-04-22 Ali Tamur <tamur@google.com>
10104 * MAINTAINERS (Write After Approval): Add self.
10106 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
10108 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10109 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10110 (open_symbol_file_object): Likewise.
10111 (svr4_default_sos): Add info parameter.
10112 (svr4_read_so_list): Likewise.
10113 (svr4_current_sos_direct): Adjust functions calls to pass down
10115 (svr4_current_sos_1): Add info parameter.
10116 (svr4_current_sos): Call get_svr4_info, pass info down to
10117 svr4_current_sos_1.
10118 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10120 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10122 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10124 (probes_table_remove_objfile_probes): Likewise.
10125 (register_solib_event_probe): Add info parameter.
10126 (solist_update_incremental): Pass info parameter down to
10128 (disable_probes_interface): Add info parameter.
10129 (svr4_handle_solib_event): Pass current_program_space to
10130 get_svr4_info. Adjust disable_probes_interface cleanup.
10131 (svr4_create_probe_breakpoints): Add info parameter, pass it
10132 down to register_solib_event_probe.
10133 (svr4_create_solib_event_breakpoints): Add info parameter,
10134 pass it down to svr4_create_probe_breakpoints.
10135 (enable_break): Pass info down to
10136 svr4_create_solib_event_breakpoints.
10137 (svr4_solib_create_inferior_hook): Pass current_program_space to
10139 (svr4_clear_solib): Likewise.
10141 2019-04-22 Pedro Alves <palves@redhat.com>
10143 * solib-svr4.c (svr4_free_objfile_observer): New.
10144 (probe_and_action::objfile): New field.
10145 (probes_table_htab_remove_objfile_probes)
10146 (probes_table_remove_objfile_probes): New functions.
10147 (register_solib_event_probe): Add 'objfile' parameter. Store it
10148 in the new probe_and_action. Don't store the probe in 'lookup'.
10149 (svr4_create_probe_breakpoints): Pass objfile to
10150 register_solib_event_probe.
10151 (_initialize_svr4_solib): Register a free_objfile observer.
10153 2019-04-19 Tom Tromey <tom@tromey.com>
10155 * common/queue.h: Remove.
10157 2019-04-19 Tom Tromey <tom@tromey.com>
10159 * event-loop.c: Don't include "common/queue.h".
10161 2019-04-19 Tom Tromey <tom@tromey.com>
10163 * remote.c (remote_target): Use delete.
10164 * remote-notif.h: Include <list>, not "common/queue.h".
10165 (notif_client_p): Remove typedef.
10166 (remote_notif_state): Add constructor, destructor, initializer.
10167 <notif_queue>: Now a std::list.
10168 (remote_notif_state_xfree): Don't declare.
10169 * remote-notif.c (remote_notif_process, handle_notification)
10170 (remote_notif_state_allocate): Update.
10171 (~remote_notif_state): Rename from remote_notif_state_xfree.
10173 2019-04-19 Tom Tromey <tom@tromey.com>
10175 * symfile.c (reread_symbols): Update.
10176 * objfiles.c (objfile_register_static_link)
10177 (objfile_lookup_static_link): Update
10178 (~objfile) Don't delete static_links.
10179 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10181 2019-04-19 Tom Tromey <tom@tromey.com>
10183 * type-stack.h (struct type_stack) <insert>: Constify string.
10184 * type-stack.c (type_stack::insert): Constify string.
10185 * gdbtypes.h (lookup_template_type): Update.
10186 (address_space_name_to_int): Update.
10187 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10189 (lookup_template_type): Make name const.
10190 * c-exp.y: Update rules.
10191 (lex_one_token, classify_name, classify_inner_name)
10192 (c_print_token): Update.
10193 * p-exp.y: Update rules.
10195 * f-exp.y: Update rules.
10197 * d-exp.y: Update rules.
10198 (lex_one_token, classify_name, classify_inner_name): Update.
10199 * parse.c (write_dollar_variable, copy_name): Return std::string.
10200 * parser-defs.h (copy_name): Change return type.
10201 * m2-exp.y: Update rules.
10203 * go-exp.y (lex_one_token): Update.
10205 (classify_unsafe_function, classify_packaged_name)
10206 (classify_name, yylex): Update.
10208 2019-04-19 Sergei Trofimovich <siarheit@google.com>
10210 * configure.ac: add --enable-source-highlight switch.
10211 * configure: Regenerate.
10212 * top.c (print_gdb_version): plumb --enable-source-highlight
10213 status to "show configuration".
10215 2019-04-19 Tom Tromey <tromey@adacore.com>
10217 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
10219 (empty_record, ada_template_to_fixed_record_type_1)
10220 (template_to_static_fixed_type)
10221 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
10222 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
10223 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
10226 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
10229 * source.c (print_source_lines_base): Advance "iter" when a
10230 control character is seen.
10232 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10234 * inferior.h (struct infcall_suspend_state_deleter):
10235 Catch exception in destructor to avoid crash.
10237 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10239 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
10240 close to the add_com "shell".
10242 2019-04-18 Tom Tromey <tromey@adacore.com>
10244 * process-stratum-target.h (class process_stratum_target)
10245 <stratum>: Add "final".
10247 2019-04-17 Tom Tromey <tromey@adacore.com>
10249 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
10250 against nullptr before use.
10252 2019-04-17 Alan Hayward <alan.hayward@arm.com>
10254 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
10256 2019-04-17 Jim Wilson <jimw@sifive.com>
10257 Andrew Burgess <andrew.burgess@embecosm.com>
10259 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
10260 code read might fail, assume 4-byte breakpoint in that case.
10262 2019-04-15 Leszek Swirski <leszeks@google.com>
10264 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
10265 rather than a hand-rolled POD check when checking for forced MEMORY
10268 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10270 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
10271 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
10273 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
10274 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
10275 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
10278 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10280 * aarch64-linux-nat.c
10281 (aarch64_linux_nat_target::thread_architecture): Add override.
10282 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
10285 2019-04-15 Alan Hayward <alan.hayward@arm.com>
10287 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
10289 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
10291 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
10292 target types of size 96-bits, add some additional comments, and
10293 check that the builtin type we found was the correct size.
10295 2019-04-12 Eli Zaretskii <eliz@gnu.org>
10297 * utils.c (prompt_for_continue): Don't restore the styling at the
10298 end, as applied_style has the wrong value. This fixes styling in
10299 long lists of file names that are interrupted by the "Continue?"
10302 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
10304 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
10305 * c-lang.c (c_language_defn): Likewise.
10306 (cplus_language_defn): Likewise.
10307 (asm_language_defn): Likewise.
10308 (minimal_language_defn): Likewise.
10309 * d-lang.c (d_language_defn): Likewise.
10310 * f-lang.c (f_language_defn): Likewise.
10311 * go-lang.c (go_language_defn): Likewise.
10312 * language.c (unknown_language_defn): Likewise.
10313 (auto_language_defn): Likewise.
10314 * language.h (struct language_defn): Remove la_magic field.
10315 (LANG_MAGIC): Delete.
10316 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
10317 * objc-lang.c (objc_language_defn): Likewise.
10318 * opencl-lang.c (opencl_language_defn): Likewise.
10319 * p-lang.c (pascal_language_defn): Likewise.
10320 * rust-lang.c (rust_language_defn): Likewise.
10322 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10324 * riscv-tdep.c (riscv_type_align): New function.
10325 (riscv_type_alignment): Delete.
10326 (riscv_arg_location): Use 'type_align'.
10327 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
10329 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10331 * gdbtypes.c (type_align): A struct with no non-static fields also
10332 has alignment of 1.
10334 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
10336 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
10338 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
10340 (riscv_struct_info::analyse): New implementation using new
10341 analyse_inner member function.
10342 (riscv_struct_info::field_offset): New member function.
10343 (riscv_struct_info::m_offsets): New member variable.
10344 (riscv_struct_info::analyse_inner): New private member function,
10345 takes the old implementation of riscv_struct_info::analyse but
10346 extended to track field offsets.
10347 (riscv_call_arg_struct): Update the struct folding special cases
10348 to handle cases where empty C++ structs, which are non-zero
10350 (riscv_arg_location): Initialise the length of each location, a
10351 non-zero length now indicates the location is in use.
10352 (riscv_push_dummy_call): Allow for the first location having a
10353 non-zero offset when setting up arguments.
10354 (riscv_return_value): Likewise, but for return values.
10356 2019-04-11 Tom Tromey <tromey@adacore.com>
10358 * utils.c (internal_vproblem): Make "msg" const.
10360 2019-04-11 Alan Hayward <alan.hayward@arm.com>
10362 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
10363 * trad-frame.c (trad_frame_reset_saved_regs): New function.
10364 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
10365 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
10367 2019-04-10 Kevin Buettner <kevinb@redhat.com>
10369 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
10371 (fill_gregset): Call amd64_linux_collect_native_gregset instead
10372 of amd64_collect_native_gregset.
10373 (amd64_linux_nat_target::store_registers): Likewise.
10375 2019-04-10 Tom Tromey <tom@tromey.com>
10377 * symtab.c (lookup_global_symbol_from_objfile)
10378 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
10379 * objfiles.h (class separate_debug_iterator): New.
10380 (class separate_debug_range): New.
10381 (struct objfile) <separate_debug_objfiles>: New method.
10382 (objfile_separate_debug_iterate): Don't declare.
10383 * objfiles.c (separate_debug_iterator::operator++): Rename from
10384 objfile_separate_debug_iterate.
10385 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
10387 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
10390 2019-04-10 Tom Tromey <tom@tromey.com>
10392 * symfile.c (reread_symbols): Remove old comment.
10393 * objfiles.c (free_all_objfiles): Fix a typo.
10395 2019-04-10 Tom Tromey <tom@tromey.com>
10397 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
10398 * minsyms.c (lookup_minimal_symbol): Use foreach.
10399 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10400 (lookup_minimal_symbol_solib_trampoline): Likewise.
10401 * symfile.c (reread_symbols): Use foreach.
10403 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
10404 Tom Tromey <tromey@adacore.com>
10407 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
10408 (rust_lex_int_test): Change "value" to be LONGEST.
10409 (rust_lex_tests): Add test for long integer literal.
10411 2019-04-09 Tom Tromey <tromey@adacore.com>
10413 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
10415 (extended_remote_target::attach): Update.
10416 (remote_target::remote_notice_new_inferior): Update.
10417 (remote_target::add_current_inferior_and_thread): Update.
10418 * inferior.c (exit_inferior_1): Use "false".
10419 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
10421 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
10423 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
10424 the "start" command.
10426 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10428 * python/py-inferior.c (infpy_thread_from_thread_handle):
10429 Adjust comments to reflect renaming of thread_from_thread_handle
10430 to thread_from_handle. Adjust keywords. Fix type error message.
10431 (inferior_object_methods): Add thread_from_handle. Retain
10432 thread_from_thread_handle, but mark it as deprecated.
10434 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10436 * gdbthread.h (find_thread_by_handle): Revise declaration.
10437 * thread.c (find_thread_by_handle): Likewise. Adjust
10438 implementation too.
10439 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
10440 support for buffer objects as handles.
10442 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10444 * python/py-infthread.c (thpy_thread_handle): New function.
10445 (thread_object_methods): Register thpy_thread_handle.
10447 2019-04-08 Kevin Buettner <kevinb@redhat.com>
10449 * gdbthread.h (thread_to_thread_handle): Declare.
10450 * thread.c (gdbtypes.h): Include.
10451 (thread_to_thread_handle): New function.
10453 * target.h (struct target_ops): Add thread_info_to_thread_handle.
10454 (target_thread_info_to_thread_handle): Declare.
10455 * target.c (target_thread_info_to_thread_handle): New function.
10456 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
10457 * target-delegates.c: Regenerate.
10459 * linux-thread-db.c (class thread_db_target): Add method
10460 thread_info_to_thread_handle.
10461 (thread_db_target::thread_info_to_thread_handle): Define.
10462 * remote.c (class remote_target): Add new method
10463 thread_info_to_thread_handle.
10464 (remote_target::thread_info_to_thread_handle): Define.
10466 2019-04-08 Pedro Alves <palves@redhat.com>
10468 * common/common-exceptions.c (throw_exception): Don't create
10469 named object to throw; throw directly.
10470 (throw_it): Likewise. Don't initialize gdb_exception::message
10471 here, with new; pass FMT and AP to the ctor instead.
10472 * common/common-exceptions.h: Include <string>.
10473 (gdb_exception::gdb_exception(enum return_reason, enum errors,
10474 const char *, va_list)): New ctor. Use std::make_shared.
10475 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
10477 (gdb_exception_error::gdb_exception_error(enum errors, const char
10479 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
10481 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
10483 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
10484 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
10487 2019-04-08 Tom Tromey <tom@tromey.com>
10489 * valops.c (value_rtti_indirect_type): Replace throw_exception
10491 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
10493 * thread.c (thr_try_catch_cmd): Replace throw_exception with
10495 * target.c (target_translate_tls_address): Replace throw_exception
10497 * stack.c (frame_apply_command_count): Replace throw_exception
10499 * solib-spu.c (append_ocl_sos): Replace throw_exception with
10501 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
10503 * rs6000-tdep.c (rs6000_frame_cache)
10504 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
10505 * remote.c: Replace throw_exception with throw.
10506 * record-full.c (record_full_message, record_full_wait_1)
10507 (record_full_restore): Replace throw_exception with throw.
10509 (get_thread_current_frame_id, record_btrace_start_replaying)
10510 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
10511 (cmd_record_btrace_start): Replace throw_exception with throw.
10512 * parse.c (parse_exp_in_context_1): Replace throw_exception with
10514 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
10515 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
10517 (find_linespec_symbols): Replace throw_exception with throw.
10518 * infrun.c (displaced_step_prepare, resume): Replace
10519 throw_exception with throw.
10520 * infcmd.c (post_create_inferior): Replace throw_exception with
10522 * inf-loop.c (inferior_event_handler): Replace throw_exception
10524 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10525 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
10526 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
10527 (get_prev_frame_always, get_frame_pc_if_available)
10528 (get_frame_address_in_block_if_available, get_frame_language):
10529 Replace throw_exception with throw.
10530 * frame-unwind.c (frame_unwind_try_unwinder): Replace
10531 throw_exception with throw.
10532 * eval.c (fetch_subexp_value, evaluate_var_value)
10533 (evaluate_funcall, evaluate_subexp_standard): Replace
10534 throw_exception with throw.
10535 * dwarf2loc.c (call_site_find_chain)
10536 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
10537 Replace throw_exception with throw.
10538 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
10540 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
10542 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
10543 * completer.c (complete_line_internal): Replace throw_exception
10545 * compile/compile-object-run.c (compile_object_run): Replace
10546 throw_exception with throw.
10547 * cli/cli-script.c (process_next_line): Replace throw_exception
10549 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
10550 (btrace_enable, btrace_maint_update_pt_packets): Replace
10551 throw_exception with throw.
10552 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
10553 throw_exception with throw.
10554 * break-catch-throw.c (re_set_exception_catchpoint): Replace
10555 throw_exception with throw.
10556 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10557 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
10558 * aarch64-tdep.c (aarch64_make_prologue_cache)
10559 (aarch64_make_stub_cache): Replace throw_exception with throw.
10561 2019-04-08 Tom Tromey <tom@tromey.com>
10563 * common/common-exceptions.c (throw_exception): Rename from
10564 throw_exception_cxx. Remove old copy. Make argument const.
10565 (throw_it): Create and throw exception objects directly.
10566 * common/common-exceptions.h (throw_exception): Make argument
10568 (struct gdb_exception_error): Add constructor.
10569 (struct gdb_exception_quit): Add constructor.
10571 2019-04-08 Tom Tromey <tom@tromey.com>
10573 * common/common-exceptions.h (exception_rethrow): Don't declare.
10574 (TRY_SJLJ): Update comment.
10575 (TRY, CATCH, END_CATCH): Remove.
10576 * common/common-exceptions.c (exception_rethrow): Remove.
10578 2019-04-08 Tom Tromey <tom@tromey.com>
10580 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
10582 (gdb_exception_error): Rename from
10583 gdb_exception_RETURN_MASK_ERROR.
10584 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
10585 (gdb_quit_bad_alloc): Update.
10586 * aarch64-tdep.c: Update.
10587 * ada-lang.c: Update.
10588 * ada-typeprint.c: Update.
10589 * ada-valprint.c: Update.
10590 * amd64-tdep.c: Update.
10591 * arch-utils.c: Update.
10592 * break-catch-throw.c: Update.
10593 * breakpoint.c: Update.
10594 * btrace.c: Update.
10595 * c-varobj.c: Update.
10596 * cli/cli-cmds.c: Update.
10597 * cli/cli-interp.c: Update.
10598 * cli/cli-script.c: Update.
10599 * common/common-exceptions.c: Update.
10600 * common/new-op.c: Update.
10601 * common/selftest.c: Update.
10602 * compile/compile-c-symbols.c: Update.
10603 * compile/compile-cplus-symbols.c: Update.
10604 * compile/compile-object-load.c: Update.
10605 * compile/compile-object-run.c: Update.
10606 * completer.c: Update.
10607 * corelow.c: Update.
10608 * cp-abi.c: Update.
10609 * cp-support.c: Update.
10610 * cp-valprint.c: Update.
10611 * darwin-nat.c: Update.
10612 * disasm-selftests.c: Update.
10613 * dtrace-probe.c: Update.
10614 * dwarf-index-cache.c: Update.
10615 * dwarf-index-write.c: Update.
10616 * dwarf2-frame-tailcall.c: Update.
10617 * dwarf2-frame.c: Update.
10618 * dwarf2loc.c: Update.
10619 * dwarf2read.c: Update.
10621 * event-loop.c: Update.
10622 * event-top.c: Update.
10624 * f-valprint.c: Update.
10625 * fbsd-tdep.c: Update.
10626 * frame-unwind.c: Update.
10628 * gdbtypes.c: Update.
10629 * gnu-v3-abi.c: Update.
10630 * guile/guile-internal.h: Update.
10631 * guile/scm-block.c: Update.
10632 * guile/scm-breakpoint.c: Update.
10633 * guile/scm-cmd.c: Update.
10634 * guile/scm-disasm.c: Update.
10635 * guile/scm-frame.c: Update.
10636 * guile/scm-lazy-string.c: Update.
10637 * guile/scm-math.c: Update.
10638 * guile/scm-param.c: Update.
10639 * guile/scm-ports.c: Update.
10640 * guile/scm-pretty-print.c: Update.
10641 * guile/scm-symbol.c: Update.
10642 * guile/scm-symtab.c: Update.
10643 * guile/scm-type.c: Update.
10644 * guile/scm-value.c: Update.
10645 * i386-linux-tdep.c: Update.
10646 * i386-tdep.c: Update.
10647 * inf-loop.c: Update.
10648 * infcall.c: Update.
10649 * infcmd.c: Update.
10650 * infrun.c: Update.
10652 * language.c: Update.
10653 * linespec.c: Update.
10654 * linux-fork.c: Update.
10655 * linux-nat.c: Update.
10656 * linux-tdep.c: Update.
10657 * linux-thread-db.c: Update.
10659 * mi/mi-cmd-break.c: Update.
10660 * mi/mi-cmd-stack.c: Update.
10661 * mi/mi-interp.c: Update.
10662 * mi/mi-main.c: Update.
10663 * objc-lang.c: Update.
10664 * p-valprint.c: Update.
10666 * ppc-linux-tdep.c: Update.
10667 * printcmd.c: Update.
10668 * python/py-arch.c: Update.
10669 * python/py-breakpoint.c: Update.
10670 * python/py-cmd.c: Update.
10671 * python/py-finishbreakpoint.c: Update.
10672 * python/py-frame.c: Update.
10673 * python/py-framefilter.c: Update.
10674 * python/py-gdb-readline.c: Update.
10675 * python/py-inferior.c: Update.
10676 * python/py-infthread.c: Update.
10677 * python/py-lazy-string.c: Update.
10678 * python/py-linetable.c: Update.
10679 * python/py-objfile.c: Update.
10680 * python/py-param.c: Update.
10681 * python/py-prettyprint.c: Update.
10682 * python/py-progspace.c: Update.
10683 * python/py-record-btrace.c: Update.
10684 * python/py-record.c: Update.
10685 * python/py-symbol.c: Update.
10686 * python/py-type.c: Update.
10687 * python/py-unwind.c: Update.
10688 * python/py-utils.c: Update.
10689 * python/py-value.c: Update.
10690 * python/python.c: Update.
10691 * record-btrace.c: Update.
10692 * record-full.c: Update.
10693 * remote-fileio.c: Update.
10694 * remote.c: Update.
10695 * riscv-tdep.c: Update.
10696 * rs6000-aix-tdep.c: Update.
10697 * rs6000-tdep.c: Update.
10698 * rust-exp.y: Update.
10699 * rust-lang.c: Update.
10700 * s390-tdep.c: Update.
10701 * selftest-arch.c: Update.
10702 * solib-dsbt.c: Update.
10703 * solib-frv.c: Update.
10704 * solib-spu.c: Update.
10705 * solib-svr4.c: Update.
10707 * sparc64-linux-tdep.c: Update.
10709 * symfile-mem.c: Update.
10710 * symmisc.c: Update.
10711 * target.c: Update.
10712 * thread.c: Update.
10714 * tracefile-tfile.c: Update.
10715 * tui/tui.c: Update.
10716 * typeprint.c: Update.
10717 * unittests/cli-utils-selftests.c: Update.
10718 * unittests/parse-connection-spec-selftests.c: Update.
10719 * valops.c: Update.
10720 * valprint.c: Update.
10722 * varobj.c: Update.
10723 * windows-nat.c: Update.
10724 * x86-linux-nat.c: Update.
10725 * xml-support.c: Update.
10727 2019-04-08 Tom Tromey <tom@tromey.com>
10729 * xml-support.c: Use C++ exception handling.
10730 * x86-linux-nat.c: Use C++ exception handling.
10731 * windows-nat.c: Use C++ exception handling.
10732 * varobj.c: Use C++ exception handling.
10733 * value.c: Use C++ exception handling.
10734 * valprint.c: Use C++ exception handling.
10735 * valops.c: Use C++ exception handling.
10736 * unittests/parse-connection-spec-selftests.c: Use C++ exception
10738 * unittests/cli-utils-selftests.c: Use C++ exception handling.
10739 * typeprint.c: Use C++ exception handling.
10740 * tui/tui.c: Use C++ exception handling.
10741 * tracefile-tfile.c: Use C++ exception handling.
10742 * top.c: Use C++ exception handling.
10743 * thread.c: Use C++ exception handling.
10744 * target.c: Use C++ exception handling.
10745 * symmisc.c: Use C++ exception handling.
10746 * symfile-mem.c: Use C++ exception handling.
10747 * stack.c: Use C++ exception handling.
10748 * sparc64-linux-tdep.c: Use C++ exception handling.
10749 * solib.c: Use C++ exception handling.
10750 * solib-svr4.c: Use C++ exception handling.
10751 * solib-spu.c: Use C++ exception handling.
10752 * solib-frv.c: Use C++ exception handling.
10753 * solib-dsbt.c: Use C++ exception handling.
10754 * selftest-arch.c: Use C++ exception handling.
10755 * s390-tdep.c: Use C++ exception handling.
10756 * rust-lang.c: Use C++ exception handling.
10757 * rust-exp.y: Use C++ exception handling.
10758 * rs6000-tdep.c: Use C++ exception handling.
10759 * rs6000-aix-tdep.c: Use C++ exception handling.
10760 * riscv-tdep.c: Use C++ exception handling.
10761 * remote.c: Use C++ exception handling.
10762 * remote-fileio.c: Use C++ exception handling.
10763 * record-full.c: Use C++ exception handling.
10764 * record-btrace.c: Use C++ exception handling.
10765 * python/python.c: Use C++ exception handling.
10766 * python/py-value.c: Use C++ exception handling.
10767 * python/py-utils.c: Use C++ exception handling.
10768 * python/py-unwind.c: Use C++ exception handling.
10769 * python/py-type.c: Use C++ exception handling.
10770 * python/py-symbol.c: Use C++ exception handling.
10771 * python/py-record.c: Use C++ exception handling.
10772 * python/py-record-btrace.c: Use C++ exception handling.
10773 * python/py-progspace.c: Use C++ exception handling.
10774 * python/py-prettyprint.c: Use C++ exception handling.
10775 * python/py-param.c: Use C++ exception handling.
10776 * python/py-objfile.c: Use C++ exception handling.
10777 * python/py-linetable.c: Use C++ exception handling.
10778 * python/py-lazy-string.c: Use C++ exception handling.
10779 * python/py-infthread.c: Use C++ exception handling.
10780 * python/py-inferior.c: Use C++ exception handling.
10781 * python/py-gdb-readline.c: Use C++ exception handling.
10782 * python/py-framefilter.c: Use C++ exception handling.
10783 * python/py-frame.c: Use C++ exception handling.
10784 * python/py-finishbreakpoint.c: Use C++ exception handling.
10785 * python/py-cmd.c: Use C++ exception handling.
10786 * python/py-breakpoint.c: Use C++ exception handling.
10787 * python/py-arch.c: Use C++ exception handling.
10788 * printcmd.c: Use C++ exception handling.
10789 * ppc-linux-tdep.c: Use C++ exception handling.
10790 * parse.c: Use C++ exception handling.
10791 * p-valprint.c: Use C++ exception handling.
10792 * objc-lang.c: Use C++ exception handling.
10793 * mi/mi-main.c: Use C++ exception handling.
10794 * mi/mi-interp.c: Use C++ exception handling.
10795 * mi/mi-cmd-stack.c: Use C++ exception handling.
10796 * mi/mi-cmd-break.c: Use C++ exception handling.
10797 * main.c: Use C++ exception handling.
10798 * linux-thread-db.c: Use C++ exception handling.
10799 * linux-tdep.c: Use C++ exception handling.
10800 * linux-nat.c: Use C++ exception handling.
10801 * linux-fork.c: Use C++ exception handling.
10802 * linespec.c: Use C++ exception handling.
10803 * language.c: Use C++ exception handling.
10804 * jit.c: Use C++ exception handling.
10805 * infrun.c: Use C++ exception handling.
10806 * infcmd.c: Use C++ exception handling.
10807 * infcall.c: Use C++ exception handling.
10808 * inf-loop.c: Use C++ exception handling.
10809 * i386-tdep.c: Use C++ exception handling.
10810 * i386-linux-tdep.c: Use C++ exception handling.
10811 * guile/scm-value.c: Use C++ exception handling.
10812 * guile/scm-type.c: Use C++ exception handling.
10813 * guile/scm-symtab.c: Use C++ exception handling.
10814 * guile/scm-symbol.c: Use C++ exception handling.
10815 * guile/scm-pretty-print.c: Use C++ exception handling.
10816 * guile/scm-ports.c: Use C++ exception handling.
10817 * guile/scm-param.c: Use C++ exception handling.
10818 * guile/scm-math.c: Use C++ exception handling.
10819 * guile/scm-lazy-string.c: Use C++ exception handling.
10820 * guile/scm-frame.c: Use C++ exception handling.
10821 * guile/scm-disasm.c: Use C++ exception handling.
10822 * guile/scm-cmd.c: Use C++ exception handling.
10823 * guile/scm-breakpoint.c: Use C++ exception handling.
10824 * guile/scm-block.c: Use C++ exception handling.
10825 * guile/guile-internal.h: Use C++ exception handling.
10826 * gnu-v3-abi.c: Use C++ exception handling.
10827 * gdbtypes.c: Use C++ exception handling.
10828 * frame.c: Use C++ exception handling.
10829 * frame-unwind.c: Use C++ exception handling.
10830 * fbsd-tdep.c: Use C++ exception handling.
10831 * f-valprint.c: Use C++ exception handling.
10832 * exec.c: Use C++ exception handling.
10833 * event-top.c: Use C++ exception handling.
10834 * event-loop.c: Use C++ exception handling.
10835 * eval.c: Use C++ exception handling.
10836 * dwarf2read.c: Use C++ exception handling.
10837 * dwarf2loc.c: Use C++ exception handling.
10838 * dwarf2-frame.c: Use C++ exception handling.
10839 * dwarf2-frame-tailcall.c: Use C++ exception handling.
10840 * dwarf-index-write.c: Use C++ exception handling.
10841 * dwarf-index-cache.c: Use C++ exception handling.
10842 * dtrace-probe.c: Use C++ exception handling.
10843 * disasm-selftests.c: Use C++ exception handling.
10844 * darwin-nat.c: Use C++ exception handling.
10845 * cp-valprint.c: Use C++ exception handling.
10846 * cp-support.c: Use C++ exception handling.
10847 * cp-abi.c: Use C++ exception handling.
10848 * corelow.c: Use C++ exception handling.
10849 * completer.c: Use C++ exception handling.
10850 * compile/compile-object-run.c: Use C++ exception handling.
10851 * compile/compile-object-load.c: Use C++ exception handling.
10852 * compile/compile-cplus-symbols.c: Use C++ exception handling.
10853 * compile/compile-c-symbols.c: Use C++ exception handling.
10854 * common/selftest.c: Use C++ exception handling.
10855 * common/new-op.c: Use C++ exception handling.
10856 * cli/cli-script.c: Use C++ exception handling.
10857 * cli/cli-interp.c: Use C++ exception handling.
10858 * cli/cli-cmds.c: Use C++ exception handling.
10859 * c-varobj.c: Use C++ exception handling.
10860 * btrace.c: Use C++ exception handling.
10861 * breakpoint.c: Use C++ exception handling.
10862 * break-catch-throw.c: Use C++ exception handling.
10863 * arch-utils.c: Use C++ exception handling.
10864 * amd64-tdep.c: Use C++ exception handling.
10865 * ada-valprint.c: Use C++ exception handling.
10866 * ada-typeprint.c: Use C++ exception handling.
10867 * ada-lang.c: Use C++ exception handling.
10868 * aarch64-tdep.c: Use C++ exception handling.
10870 2019-04-08 Tom Tromey <tom@tromey.com>
10872 * xml-support.c (gdb_xml_parser::parse): Update.
10873 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10874 * value.c (show_convenience): Update.
10875 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
10876 (test_parse_flags_qcs): Update.
10877 * thread.c (thr_try_catch_cmd): Update.
10878 * target.c (target_translate_tls_address): Update.
10879 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
10880 (info_frame_command_core, frame_apply_command_count): Update.
10881 * rust-exp.y (rust_lex_exception_test): Update.
10882 * riscv-tdep.c (riscv_print_one_register_info): Update.
10883 * remote.c (remote_target::enable_btrace): Update.
10884 * record-btrace.c (record_btrace_enable_warn): Update.
10885 * python/py-utils.c (gdbpy_convert_exception): Update.
10886 * printcmd.c (do_one_display, print_variable_and_value): Update.
10887 * mi/mi-main.c (mi_print_exception): Update.
10888 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
10889 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
10890 * linux-nat.c (linux_nat_target::attach): Update.
10891 * linux-fork.c (class scoped_switch_fork_info): Update.
10892 * infrun.c (displaced_step_prepare): Update.
10893 * infcall.c (call_function_by_hand_dummy): Update.
10894 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
10895 * gnu-v3-abi.c (print_one_vtable): Update.
10896 * frame.c (get_prev_frame_always): Update.
10897 * f-valprint.c (info_common_command_for_block): Update.
10898 * exec.c (try_open_exec_file): Update.
10899 * exceptions.c (print_exception, exception_print)
10900 (exception_fprintf, exception_print_same): Update.
10901 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
10902 * dwarf-index-cache.c (index_cache::store)
10903 (index_cache::lookup_gdb_index): Update.
10904 * darwin-nat.c (maybe_cache_shell): Update.
10905 * cp-valprint.c (cp_print_value_fields): Update.
10906 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
10907 (gcc_cplus_symbol_address): Update.
10908 * compile/compile-c-symbols.c (gcc_convert_symbol)
10909 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
10910 * common/selftest.c: Update.
10911 * common/common-exceptions.h (struct gdb_exception) <message>: Now
10913 (exception_try_scope_entry, exception_try_scope_exit): Don't
10915 (struct exception_try_scope): Remove.
10916 (TRY): Don't use exception_try_scope.
10917 (struct gdb_exception): Add constructor, operator=.
10918 <what>: New method.
10919 (struct gdb_exception_RETURN_MASK_ALL)
10920 (struct gdb_exception_RETURN_MASK_ERROR)
10921 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
10922 (struct gdb_quit_bad_alloc): Update.
10923 * common/common-exceptions.c (exception_none): Change
10925 (struct catcher) <state, exception>: Initialize inline.
10926 <prev>: Remove member.
10927 (current_catcher): Remove.
10928 (catchers): New global.
10929 (exceptions_state_mc_init): Simplify.
10930 (catcher_pop): Remove.
10931 (exceptions_state_mc, exceptions_state_mc_catch): Update.
10932 (try_scope_depth, exception_try_scope_entry)
10933 (exception_try_scope_exit): Remove.
10934 (throw_exception_sjlj): Update.
10935 (exception_messages, exception_messages_size): Remove.
10936 (throw_it): Simplify.
10937 (gdb_exception_sliced_copy): Remove.
10938 (throw_exception_cxx): Update.
10939 * cli/cli-script.c (script_from_file): Update.
10940 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
10942 * ada-valprint.c (ada_val_print): Update.
10943 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
10944 (create_excep_cond_exprs): Update.
10946 2019-04-08 Tom Tromey <tom@tromey.com>
10948 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
10949 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
10950 (TRY, CATCH, END_CATCH): Remove some definitions.
10951 * common/common-exceptions.c: Don't use GDB_XCPT.
10952 (catcher_list_size): Remove.
10953 (throw_exception, throw_it): Simplify.
10955 2019-04-05 Tom Tromey <tom@tromey.com>
10957 Revert the header-sorting patch.
10958 * ft32-tdep.c: Revert.
10959 * frv-tdep.c: Revert.
10960 * frv-linux-tdep.c: Revert.
10962 * frame-unwind.c: Revert.
10963 * frame-base.c: Revert.
10964 * fork-child.c: Revert.
10965 * findvar.c: Revert.
10966 * findcmd.c: Revert.
10967 * filesystem.c: Revert.
10968 * filename-seen-cache.h: Revert.
10969 * filename-seen-cache.c: Revert.
10970 * fbsd-tdep.c: Revert.
10971 * fbsd-nat.h: Revert.
10972 * fbsd-nat.c: Revert.
10973 * f-valprint.c: Revert.
10974 * f-typeprint.c: Revert.
10975 * f-lang.c: Revert.
10976 * extension.h: Revert.
10977 * extension.c: Revert.
10978 * extension-priv.h: Revert.
10979 * expprint.c: Revert.
10982 * exceptions.c: Revert.
10983 * event-top.c: Revert.
10984 * event-loop.c: Revert.
10986 * elfread.c: Revert.
10987 * dwarf2read.h: Revert.
10988 * dwarf2read.c: Revert.
10989 * dwarf2loc.c: Revert.
10990 * dwarf2expr.h: Revert.
10991 * dwarf2expr.c: Revert.
10992 * dwarf2-frame.c: Revert.
10993 * dwarf2-frame-tailcall.c: Revert.
10994 * dwarf-index-write.h: Revert.
10995 * dwarf-index-write.c: Revert.
10996 * dwarf-index-common.c: Revert.
10997 * dwarf-index-cache.h: Revert.
10998 * dwarf-index-cache.c: Revert.
10999 * dummy-frame.c: Revert.
11000 * dtrace-probe.c: Revert.
11001 * disasm.h: Revert.
11002 * disasm.c: Revert.
11003 * disasm-selftests.c: Revert.
11004 * dictionary.c: Revert.
11005 * dicos-tdep.c: Revert.
11006 * demangle.c: Revert.
11007 * dcache.h: Revert.
11008 * dcache.c: Revert.
11009 * darwin-nat.h: Revert.
11010 * darwin-nat.c: Revert.
11011 * darwin-nat-info.c: Revert.
11012 * d-valprint.c: Revert.
11013 * d-namespace.c: Revert.
11014 * d-lang.c: Revert.
11016 * csky-tdep.c: Revert.
11017 * csky-linux-tdep.c: Revert.
11018 * cris-tdep.c: Revert.
11019 * cris-linux-tdep.c: Revert.
11020 * cp-valprint.c: Revert.
11021 * cp-support.c: Revert.
11022 * cp-namespace.c: Revert.
11023 * cp-abi.c: Revert.
11024 * corelow.c: Revert.
11025 * corefile.c: Revert.
11026 * continuations.c: Revert.
11027 * completer.h: Revert.
11028 * completer.c: Revert.
11029 * complaints.c: Revert.
11030 * coffread.c: Revert.
11031 * coff-pe-read.c: Revert.
11032 * cli-out.h: Revert.
11033 * cli-out.c: Revert.
11034 * charset.c: Revert.
11035 * c-varobj.c: Revert.
11036 * c-valprint.c: Revert.
11037 * c-typeprint.c: Revert.
11038 * c-lang.c: Revert.
11039 * buildsym.c: Revert.
11040 * buildsym-legacy.c: Revert.
11041 * build-id.h: Revert.
11042 * build-id.c: Revert.
11043 * btrace.c: Revert.
11044 * bsd-uthread.c: Revert.
11045 * breakpoint.h: Revert.
11046 * breakpoint.c: Revert.
11047 * break-catch-throw.c: Revert.
11048 * break-catch-syscall.c: Revert.
11049 * break-catch-sig.c: Revert.
11050 * blockframe.c: Revert.
11052 * bfin-tdep.c: Revert.
11053 * bfin-linux-tdep.c: Revert.
11054 * bfd-target.c: Revert.
11055 * bcache.c: Revert.
11056 * ax-general.c: Revert.
11057 * ax-gdb.h: Revert.
11058 * ax-gdb.c: Revert.
11059 * avr-tdep.c: Revert.
11061 * auto-load.c: Revert.
11062 * arm-wince-tdep.c: Revert.
11063 * arm-tdep.c: Revert.
11064 * arm-symbian-tdep.c: Revert.
11065 * arm-pikeos-tdep.c: Revert.
11066 * arm-obsd-tdep.c: Revert.
11067 * arm-nbsd-tdep.c: Revert.
11068 * arm-nbsd-nat.c: Revert.
11069 * arm-linux-tdep.c: Revert.
11070 * arm-linux-nat.c: Revert.
11071 * arm-fbsd-tdep.c: Revert.
11072 * arm-fbsd-nat.c: Revert.
11073 * arm-bsd-tdep.c: Revert.
11074 * arch-utils.c: Revert.
11075 * arc-tdep.c: Revert.
11076 * arc-newlib-tdep.c: Revert.
11077 * annotate.h: Revert.
11078 * annotate.c: Revert.
11079 * amd64-windows-tdep.c: Revert.
11080 * amd64-windows-nat.c: Revert.
11081 * amd64-tdep.c: Revert.
11082 * amd64-sol2-tdep.c: Revert.
11083 * amd64-obsd-tdep.c: Revert.
11084 * amd64-obsd-nat.c: Revert.
11085 * amd64-nbsd-tdep.c: Revert.
11086 * amd64-nbsd-nat.c: Revert.
11087 * amd64-nat.c: Revert.
11088 * amd64-linux-tdep.c: Revert.
11089 * amd64-linux-nat.c: Revert.
11090 * amd64-fbsd-tdep.c: Revert.
11091 * amd64-fbsd-nat.c: Revert.
11092 * amd64-dicos-tdep.c: Revert.
11093 * amd64-darwin-tdep.c: Revert.
11094 * amd64-bsd-nat.c: Revert.
11095 * alpha-tdep.c: Revert.
11096 * alpha-obsd-tdep.c: Revert.
11097 * alpha-nbsd-tdep.c: Revert.
11098 * alpha-mdebug-tdep.c: Revert.
11099 * alpha-linux-tdep.c: Revert.
11100 * alpha-linux-nat.c: Revert.
11101 * alpha-bsd-tdep.c: Revert.
11102 * alpha-bsd-nat.c: Revert.
11103 * aix-thread.c: Revert.
11105 * addrmap.c: Revert.
11106 * ada-varobj.c: Revert.
11107 * ada-valprint.c: Revert.
11108 * ada-typeprint.c: Revert.
11109 * ada-tasks.c: Revert.
11110 * ada-lang.c: Revert.
11111 * aarch64-tdep.c: Revert.
11112 * aarch64-ravenscar-thread.c: Revert.
11113 * aarch64-newlib-tdep.c: Revert.
11114 * aarch64-linux-tdep.c: Revert.
11115 * aarch64-linux-nat.c: Revert.
11116 * aarch64-fbsd-tdep.c: Revert.
11117 * aarch64-fbsd-nat.c: Revert.
11118 * aarch32-linux-nat.c: Revert.
11120 2019-04-05 Tom Tromey <tom@tromey.com>
11122 * ft32-tdep.c: Sort headers.
11123 * frv-tdep.c: Sort headers.
11124 * frv-linux-tdep.c: Sort headers.
11125 * frame.c: Sort headers.
11126 * frame-unwind.c: Sort headers.
11127 * frame-base.c: Sort headers.
11128 * fork-child.c: Sort headers.
11129 * findvar.c: Sort headers.
11130 * findcmd.c: Sort headers.
11131 * filesystem.c: Sort headers.
11132 * filename-seen-cache.h: Sort headers.
11133 * filename-seen-cache.c: Sort headers.
11134 * fbsd-tdep.c: Sort headers.
11135 * fbsd-nat.h: Sort headers.
11136 * fbsd-nat.c: Sort headers.
11137 * f-valprint.c: Sort headers.
11138 * f-typeprint.c: Sort headers.
11139 * f-lang.c: Sort headers.
11140 * extension.h: Sort headers.
11141 * extension.c: Sort headers.
11142 * extension-priv.h: Sort headers.
11143 * expprint.c: Sort headers.
11144 * exec.h: Sort headers.
11145 * exec.c: Sort headers.
11146 * exceptions.c: Sort headers.
11147 * event-top.c: Sort headers.
11148 * event-loop.c: Sort headers.
11149 * eval.c: Sort headers.
11150 * elfread.c: Sort headers.
11151 * dwarf2read.h: Sort headers.
11152 * dwarf2read.c: Sort headers.
11153 * dwarf2loc.c: Sort headers.
11154 * dwarf2expr.h: Sort headers.
11155 * dwarf2expr.c: Sort headers.
11156 * dwarf2-frame.c: Sort headers.
11157 * dwarf2-frame-tailcall.c: Sort headers.
11158 * dwarf-index-write.h: Sort headers.
11159 * dwarf-index-write.c: Sort headers.
11160 * dwarf-index-common.c: Sort headers.
11161 * dwarf-index-cache.h: Sort headers.
11162 * dwarf-index-cache.c: Sort headers.
11163 * dummy-frame.c: Sort headers.
11164 * dtrace-probe.c: Sort headers.
11165 * disasm.h: Sort headers.
11166 * disasm.c: Sort headers.
11167 * disasm-selftests.c: Sort headers.
11168 * dictionary.c: Sort headers.
11169 * dicos-tdep.c: Sort headers.
11170 * demangle.c: Sort headers.
11171 * dcache.h: Sort headers.
11172 * dcache.c: Sort headers.
11173 * darwin-nat.h: Sort headers.
11174 * darwin-nat.c: Sort headers.
11175 * darwin-nat-info.c: Sort headers.
11176 * d-valprint.c: Sort headers.
11177 * d-namespace.c: Sort headers.
11178 * d-lang.c: Sort headers.
11179 * ctf.c: Sort headers.
11180 * csky-tdep.c: Sort headers.
11181 * csky-linux-tdep.c: Sort headers.
11182 * cris-tdep.c: Sort headers.
11183 * cris-linux-tdep.c: Sort headers.
11184 * cp-valprint.c: Sort headers.
11185 * cp-support.c: Sort headers.
11186 * cp-namespace.c: Sort headers.
11187 * cp-abi.c: Sort headers.
11188 * corelow.c: Sort headers.
11189 * corefile.c: Sort headers.
11190 * continuations.c: Sort headers.
11191 * completer.h: Sort headers.
11192 * completer.c: Sort headers.
11193 * complaints.c: Sort headers.
11194 * coffread.c: Sort headers.
11195 * coff-pe-read.c: Sort headers.
11196 * cli-out.h: Sort headers.
11197 * cli-out.c: Sort headers.
11198 * charset.c: Sort headers.
11199 * c-varobj.c: Sort headers.
11200 * c-valprint.c: Sort headers.
11201 * c-typeprint.c: Sort headers.
11202 * c-lang.c: Sort headers.
11203 * buildsym.c: Sort headers.
11204 * buildsym-legacy.c: Sort headers.
11205 * build-id.h: Sort headers.
11206 * build-id.c: Sort headers.
11207 * btrace.c: Sort headers.
11208 * bsd-uthread.c: Sort headers.
11209 * breakpoint.h: Sort headers.
11210 * breakpoint.c: Sort headers.
11211 * break-catch-throw.c: Sort headers.
11212 * break-catch-syscall.c: Sort headers.
11213 * break-catch-sig.c: Sort headers.
11214 * blockframe.c: Sort headers.
11215 * block.c: Sort headers.
11216 * bfin-tdep.c: Sort headers.
11217 * bfin-linux-tdep.c: Sort headers.
11218 * bfd-target.c: Sort headers.
11219 * bcache.c: Sort headers.
11220 * ax-general.c: Sort headers.
11221 * ax-gdb.h: Sort headers.
11222 * ax-gdb.c: Sort headers.
11223 * avr-tdep.c: Sort headers.
11224 * auxv.c: Sort headers.
11225 * auto-load.c: Sort headers.
11226 * arm-wince-tdep.c: Sort headers.
11227 * arm-tdep.c: Sort headers.
11228 * arm-symbian-tdep.c: Sort headers.
11229 * arm-pikeos-tdep.c: Sort headers.
11230 * arm-obsd-tdep.c: Sort headers.
11231 * arm-nbsd-tdep.c: Sort headers.
11232 * arm-nbsd-nat.c: Sort headers.
11233 * arm-linux-tdep.c: Sort headers.
11234 * arm-linux-nat.c: Sort headers.
11235 * arm-fbsd-tdep.c: Sort headers.
11236 * arm-fbsd-nat.c: Sort headers.
11237 * arm-bsd-tdep.c: Sort headers.
11238 * arch-utils.c: Sort headers.
11239 * arc-tdep.c: Sort headers.
11240 * arc-newlib-tdep.c: Sort headers.
11241 * annotate.h: Sort headers.
11242 * annotate.c: Sort headers.
11243 * amd64-windows-tdep.c: Sort headers.
11244 * amd64-windows-nat.c: Sort headers.
11245 * amd64-tdep.c: Sort headers.
11246 * amd64-sol2-tdep.c: Sort headers.
11247 * amd64-obsd-tdep.c: Sort headers.
11248 * amd64-obsd-nat.c: Sort headers.
11249 * amd64-nbsd-tdep.c: Sort headers.
11250 * amd64-nbsd-nat.c: Sort headers.
11251 * amd64-nat.c: Sort headers.
11252 * amd64-linux-tdep.c: Sort headers.
11253 * amd64-linux-nat.c: Sort headers.
11254 * amd64-fbsd-tdep.c: Sort headers.
11255 * amd64-fbsd-nat.c: Sort headers.
11256 * amd64-dicos-tdep.c: Sort headers.
11257 * amd64-darwin-tdep.c: Sort headers.
11258 * amd64-bsd-nat.c: Sort headers.
11259 * alpha-tdep.c: Sort headers.
11260 * alpha-obsd-tdep.c: Sort headers.
11261 * alpha-nbsd-tdep.c: Sort headers.
11262 * alpha-mdebug-tdep.c: Sort headers.
11263 * alpha-linux-tdep.c: Sort headers.
11264 * alpha-linux-nat.c: Sort headers.
11265 * alpha-bsd-tdep.c: Sort headers.
11266 * alpha-bsd-nat.c: Sort headers.
11267 * aix-thread.c: Sort headers.
11268 * agent.c: Sort headers.
11269 * addrmap.c: Sort headers.
11270 * ada-varobj.c: Sort headers.
11271 * ada-valprint.c: Sort headers.
11272 * ada-typeprint.c: Sort headers.
11273 * ada-tasks.c: Sort headers.
11274 * ada-lang.c: Sort headers.
11275 * aarch64-tdep.c: Sort headers.
11276 * aarch64-ravenscar-thread.c: Sort headers.
11277 * aarch64-newlib-tdep.c: Sort headers.
11278 * aarch64-linux-tdep.c: Sort headers.
11279 * aarch64-linux-nat.c: Sort headers.
11280 * aarch64-fbsd-tdep.c: Sort headers.
11281 * aarch64-fbsd-nat.c: Sort headers.
11282 * aarch32-linux-nat.c: Sort headers.
11284 2019-04-04 Tom Tromey <tom@tromey.com>
11286 * varobj.c (varobj_create): Update.
11287 * rust-exp.y (struct rust_parser) <update_innermost_block,
11288 lookup_symbol>: New methods.
11289 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
11291 (rust_parser::rust_lookup_type)
11292 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11293 * printcmd.c (display_command, do_one_display): Update.
11294 * parser-defs.h (struct parser_state) <parser_state>: Add
11295 "tracker" parameter.
11296 (block_tracker): New member.
11297 (class innermost_block_tracker) <innermost_block_tracker>: Add
11299 <reset>: Remove method.
11300 (innermost_block): Don't declare.
11301 (null_post_parser): Update.
11302 * parse.c (innermost_block): Remove global.
11303 (write_dollar_variable): Update.
11304 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
11305 Remove "tracker_types" parameter.
11306 (parse_expression): Add "tracker" parameter.
11307 (parse_expression_for_completion): Update.
11308 (null_post_parser): Add "tracker" parameter.
11309 * p-exp.y: Update rules.
11310 * m2-exp.y: Update rules.
11311 * language.h (struct language_defn) <la_post_parser>: Add
11312 "tracker" parameter.
11313 * go-exp.y: Update rules.
11314 * f-exp.y: Update rules.
11315 * expression.h (parse_expression, parse_exp_1): Add "tracker"
11317 * d-exp.y: Update rules.
11318 * c-exp.y: Update rules.
11319 * breakpoint.c (set_breakpoint_condition): Create an
11320 innermost_block_tracker.
11321 (watch_command_1): Likewise.
11322 * ada-lang.c (resolve): Add "tracker" parameter.
11323 (resolve_subexp): Likewise.
11324 * ada-exp.y (write_var_from_sym): Update.
11326 2019-04-04 Tom Tromey <tom@tromey.com>
11328 * type-stack.h: New file.
11329 * type-stack.c: New file.
11330 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
11332 (insert_into_type_stack, insert_type, push_type, push_type_int)
11333 (insert_type_address_space, pop_type, pop_type_int)
11334 (pop_typelist, pop_type_stack, append_type_stack)
11335 (push_type_stack, get_type_stack, push_typelist)
11336 (follow_type_instance_flags, follow_types): Don't declare.
11337 * parse.c (type_stack): Remove global.
11338 (parse_exp_in_context): Update.
11339 (insert_into_type_stack, insert_type, push_type, push_type_int)
11340 (insert_type_address_space, pop_type, pop_type_int)
11341 (pop_typelist, pop_type_stack, append_type_stack)
11342 (push_type_stack, get_type_stack, push_typelist)
11343 (follow_type_instance_flags, follow_types): Remove (moved to
11345 * f-exp.y (type_stack): New global.
11347 (push_kind_type, f_parse): Update.
11348 * d-exp.y (type_stack): New global.
11351 * c-exp.y (struct c_parse_state) <type_stack>: New member.
11353 * Makefile.in (COMMON_SFILES): Add type-stack.c.
11354 (HFILES_NO_SRCDIR): Add type-stack.h.
11356 2019-04-04 Tom Tromey <tom@tromey.com>
11358 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
11359 (rust_parser::convert_ast_to_expression, rust_parse)
11360 (rust_lex_test_completion, rust_lex_tests): Update.
11361 * parser-defs.h (struct expr_completion_state): New.
11362 (struct parser_state) <parser_state>: Add completion parameter.
11363 <mark_struct_expression, mark_completion_tag>: New methods.
11364 <parse_completion, m_completion_state>: New members.
11365 (prefixify_expression, null_post_parser): Update.
11366 (mark_struct_expression, mark_completion_tag): Don't declare.
11367 * parse.c (parse_completion, expout_last_struct)
11368 (expout_tag_completion_type, expout_completion_name): Remove
11370 (parser_state::mark_struct_expression)
11371 (parser_state::mark_completion_tag): Now methods.
11372 (prefixify_expression): Add last_struct parameter.
11373 (prefixify_subexp): Likewise.
11374 (parse_exp_1): Update.
11375 (parse_exp_in_context): Add cstate parameter. Update.
11376 (parse_expression_for_completion): Create an
11377 expr_completion_state.
11378 (null_post_parser): Add "completion" parameter.
11379 * p-exp.y: Update rules.
11381 * language.h (struct language_defn) <la_post_parser>: Add
11382 "completing" parameter.
11383 * go-exp.y: Update rules.
11384 (lex_one_token): Update.
11385 * expression.h (parse_completion): Don't declare.
11386 * d-exp.y: Update rules.
11387 (lex_one_token): Update rules.
11388 * c-exp.y: Update rules.
11389 (lex_one_token): Update.
11390 * ada-lang.c (resolve): Add "parse_completion" parameter.
11391 (resolve_subexp): Likewise.
11392 (ada_resolve_function): Likewise.
11394 2019-04-04 Tom Tromey <tom@tromey.com>
11396 * parser-defs.h (struct parser_state) <start_arglist,
11397 end_arglist>: New methods.
11398 <arglist_len, m_funcall_chain>: New members.
11399 (arglist_len, start_arglist, end_arglist): Don't declare.
11400 * parse.c (arglist_len, funcall_chain): Remove global.
11401 (start_arglist, end_arglist): Remove functions.
11402 (parse_exp_in_context): Update.
11403 * p-exp.y: Update rules.
11404 * m2-exp.y: Update rules.
11405 * go-exp.y: Update rules.
11406 * f-exp.y: Update rules.
11407 * d-exp.y: Update rules.
11408 * c-exp.y: Update rules.
11410 2019-04-04 Tom Tromey <tom@tromey.com>
11412 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
11413 lex_operator, push_back>: New methods.
11415 (rust_parser::lex_hex, lex_escape): Rename and update.
11416 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
11417 (rust_parser::lex_operator): Rename and update.
11418 (rust_parser::lex_number, rustyylex, rustyyerror)
11419 (rust_lex_test_init, rust_lex_test_sequence)
11420 (rust_lex_test_push_back, rust_lex_tests): Update.
11421 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
11423 <lexptr, prev_lexptr>: New members.
11424 (lexptr, prev_lexptr): Don't declare.
11425 * parse.c (lexptr, prev_lexptr): Remove globals.
11426 (parse_exp_in_context): Update.
11427 * p-exp.y (yylex, yyerror): Update.
11428 * m2-exp.y (parse_number, yylex, yyerror): Update.
11429 * go-exp.y (lex_one_token, yyerror): Update.
11430 * f-exp.y (match_string_literal, yylex, yyerror): Update.
11431 * d-exp.y (lex_one_token, yyerror): Update.
11432 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
11433 (lex_one_token, yyerror): Update.
11434 * ada-lex.l (YY_INPUT): Update.
11435 (rewind_to_char): Update.
11436 * ada-exp.y (yyerror): Update.
11438 2019-04-04 Tom Tromey <tom@tromey.com>
11440 * rust-exp.y (rustyylex, rust_lex_tests): Update.
11441 * parser-defs.h (struct parser_state) <parser_state>: Add new
11443 <comma_terminates>: New member.
11444 (comma_terminates): Don't declare global.
11445 * parse.c (comma_terminates): Remove global.
11446 (parse_exp_in_context): Update.
11447 * p-exp.y (yylex): Update.
11448 * m2-exp.y (yylex): Update.
11449 * go-exp.y (lex_one_token): Update.
11450 * f-exp.y (yylex): Update.
11451 * d-exp.y (lex_one_token): Update.
11452 * c-exp.y (lex_one_token): Update.
11453 * ada-lex.l: Update.
11455 2019-04-04 Tom Tromey <tom@tromey.com>
11457 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
11458 (rustyylex, rust_lex_test_init, rust_lex_test_one)
11459 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
11460 * parser-defs.h (paren_depth): Don't declare.
11461 * parse.c (paren_depth): Remove global.
11462 (parse_exp_in_context): Update.
11463 * p-exp.y (paren_depth): New global.
11464 (pascal_parse): Initialize it.
11465 * m2-exp.y (paren_depth): New global.
11466 (m2_parse): Initialize it.
11467 * go-exp.y (paren_depth): New global.
11468 (go_parse): Initialize it.
11469 * f-exp.y (paren_depth): New global.
11470 (f_parse): Initialize it.
11471 * d-exp.y (paren_depth): New global.
11472 (d_parse): Initialize it.
11473 * c-exp.y (paren_depth): New global.
11474 (c_parse): Initialize it.
11475 * ada-lex.l (paren_depth): New global.
11476 (lexer_init): Initialize it.
11478 2019-04-04 Tom Tromey <tom@tromey.com>
11480 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
11481 (rust_parser::convert_ast_to_type)
11482 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
11483 * parser-defs.h (struct parser_state) <parser_state>: Add
11484 parameters. Initialize new members.
11485 <expression_context_block, expression_context_pc>: New members.
11486 * parse.c (expression_context_block, expression_context_pc):
11488 (parse_exp_in_context): Update.
11489 * p-exp.y: Update all rules.
11491 * m2-exp.y: Update all rules.
11493 * go-exp.y (yylex): Update.
11494 * f-exp.y (yylex): Update.
11495 * d-exp.y: Update all rules.
11497 * c-exp.y: Update all rules.
11498 (lex_one_token, classify_name, yylex, c_parse): Update.
11499 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
11501 2019-04-04 Tom Tromey <tom@tromey.com>
11503 * gdbarch.h, gdbarch.c: Rebuild.
11504 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
11506 (struct stap_parse_info): Replace "parser_state" with
11508 * parser-defs.h (struct expr_builder): Rename from "parser_state".
11509 (parser_state): New class.
11510 * parse.c (expr_builder): Rename.
11511 (expr_builder::release): Rename.
11512 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
11513 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
11514 (write_exp_elt_longcst, write_exp_elt_floatcst)
11515 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
11516 (write_exp_string_vector, write_exp_bitstring)
11517 (write_exp_msymbol, mark_struct_expression)
11518 (write_dollar_variable)
11519 (insert_type_address_space, increase_expout_size): Replace
11520 "parser_state" with "expr_builder".
11521 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
11522 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
11523 "parser_state" with "expr_builder".
11525 2019-04-04 Tom Tromey <tom@tromey.com>
11527 * rust-exp.y: Replace "parse_language" with method call.
11529 (yylex): Replace "parse_language" with method call.
11531 (yylex): Replace "parse_language" with method call.
11532 * go-exp.y (classify_name): Replace "parse_language" with method
11534 * f-exp.y (yylex): Replace "parse_language" with method call.
11535 * d-exp.y (lex_one_token): Replace "parse_language" with method
11538 (lex_one_token, classify_name, yylex): Replace "parse_language"
11540 * ada-exp.y (find_primitive_type, type_char)
11541 (type_system_address): Replace "parse_language" with method call.
11543 2019-04-04 Tom Tromey <tom@tromey.com>
11545 * rust-exp.y: Replace "parse_gdbarch" with method call.
11546 * parse.c (write_dollar_variable, insert_type_address_space):
11547 Replace "parse_gdbarch" with method call.
11548 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
11550 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
11552 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
11553 "parse_gdbarch" with method call.
11554 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
11556 * f-exp.y (parse_type, parse_f_type, yylex): Replace
11557 "parse_gdbarch" with method call.
11558 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
11559 "parse_gdbarch" with method call.
11560 * c-exp.y (parse_type, parse_number, classify_name): Replace
11561 "parse_gdbarch" with method call.
11562 * ada-lex.l: Replace "parse_gdbarch" with method call.
11563 * ada-exp.y (parse_type, find_primitive_type, type_char)
11564 (type_system_address): Replace "parse_gdbarch" with method call.
11566 2019-04-04 Tom Tromey <tom@tromey.com>
11568 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
11569 * stap-probe.c (stap_parse_argument): Update.
11570 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
11571 initial_size parameter.
11572 * rust-exp.y (rust_lex_tests): Update.
11573 * parse.c (parser_state): Update.
11574 (parse_exp_in_context): Update.
11575 * parser-defs.h (struct parser_state) <parser_state>: Remove
11576 "initial_size" parameter.
11578 2019-04-04 Tom Tromey <tom@tromey.com>
11580 * parser-defs.h (increase_expout_size): Don't declare.
11581 * parse.c (increase_expout_size): Now static.
11583 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
11585 * gnu-nat.c (gnu_nat_target::wait): Fix
11586 target_waitstatus_to_string call.
11588 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11590 * eval.c (evaluate_subexp_standard): Handle internal functions
11591 during Fortran function call handling.
11593 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
11595 * NEWS: Mention new internal functions.
11596 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
11597 (read_base_type): Use dwarf2_init_complex_target_type.
11598 * value.c (creal_internal_fn): New function.
11599 (cimag_internal_fn): New function.
11600 (_initialize_values): Register new internal functions.
11602 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11604 * infrun.c (stop_all_threads): If debug_infrun, always
11605 trace the wait status after wait_one, using
11606 target_waitstatus_to_string and target_pid_to_str.
11607 (handle_inferior_event): Replace various trace of
11608 wait status kind by a single trace.
11609 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
11610 wait status kind image by target_waitstatus_to_string.
11611 * target/waitstatus.c (target_waitstatus_to_string): Fix
11614 2019-04-01 Tom Tromey <tromey@adacore.com>
11617 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
11619 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
11620 Pedro Alves <palves@redhat.com>
11622 * top.c (quit_force): Call 'finalize_values'.
11623 * value.c (finalize_values): New function.
11624 * value.h (finalize_values): Declare.
11626 2019-03-30 Eli Zaretskii <eliz@gnu.org>
11628 * NEWS: Announce $_gdb_major and $_gdb_minor.
11630 * top.c (init_gdb_version_vars): New function.
11631 (gdb_init): Call init_gdb_version_vars.
11633 2019-03-29 Tom Tromey <tromey@adacore.com>
11635 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
11636 help text. Remove dead code.
11638 2019-03-29 Keith Seitz <keiths@redhat.com>
11640 From Siddhesh Poyarekar:
11641 * f-lang.h (f77_get_upperbound): Return LONGEST.
11642 (f77_get_lowerbound): Likewise.
11643 * f-typeprint.c (f_type_print_varspec_suffix): Expand
11644 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
11646 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
11647 plongest to format print it.
11648 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
11649 (f77_get_upperbound): Likewise.
11650 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
11651 LOWER_BOUND to LONGEST.
11652 (f77_create_arrayprint_offset_tbl): Likewise.
11654 2019-03-29 Keith Seitz <keiths@redhat.com>
11656 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
11657 %s/pulongest for TYPE_LENGTH instead of %d in format
11659 * ada-typerint.c (ada_print_type): Likewise.
11660 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
11661 * compile/compile-c-support.c (generate_register_struct): Likewise.
11662 * gdbtypes.c (recursive_dump_type): Likewise.
11663 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
11664 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
11665 instead of %d in format strings.
11666 * riscv-tdep.c (riscv_type_alignment): Cast second argument
11667 to std::min to ULONGEST.
11668 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
11669 instead of %d in format strings.
11670 * tracepoint.c (info_scope_command): Likewise.
11671 * typeprint.c (print_offset_data::update)
11672 (print_offset_data::finish): Likewise.
11673 * xtensa-tdep.c (xtensa_store_return_value)
11674 (xtensa_push_dummy_call): Likewise.
11676 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
11678 * windows-nat.c (display_selector): Fixed format specifications
11681 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11683 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
11685 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
11687 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
11688 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
11689 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
11690 (nios2_linux_init_abi): Install it.
11692 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11694 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
11696 2019-03-28 Alan Hayward <alan.hayward@arm.com>
11698 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
11700 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11701 Tom Tromey <tromey@adacore.com>
11703 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
11705 2019-03-26 Joel Brobecker <brobecker@adacore.com>
11707 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
11708 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
11709 method to compute the bounds of range types. Also print "[evaluated]"
11710 if the bounds' values come from a dynamic evaluation.
11712 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
11714 * cp-valprint.c (cp_print_value_fields): Don't print trailing
11715 whitespace when pretty printing is on.
11717 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11719 * ppc-linux-nat.c: Add include.
11721 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11723 * NEWS: Mention AArch64 Pointer Authentication.
11725 2019-03-26 Alan Hayward <alan.hayward@arm.com>
11727 * arm-linux-nat.c: Add include.
11729 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
11731 * source-cache.c (source_cache::get_source_lines): Re-read
11732 fullname after calling open_source_file.
11734 2019-03-25 John Baldwin <jhb@FreeBSD.org>
11736 * NEWS: Mention TLS support for FreeBSD.
11738 2019-03-25 Tom Tromey <tromey@adacore.com>
11740 * minsyms.c (BUNCH_SIZE): Update comment.
11741 (~minimal_symbol_reader): Remove old comment.
11742 (compact_minimal_symbols): Update comment.
11743 (minimal_symbol_reader::install): Remove old comment. Update
11746 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11748 * s390-linux-nat.c: Add include.
11750 2019-03-25 Alan Hayward <alan.hayward@arm.com>
11752 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
11753 Call linux_get_hwcap.
11754 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
11756 (aarch64_linux_get_hwcap): Remove function.
11757 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
11759 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
11761 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
11762 * linux-tdep.c (linux_get_hwcap): Add function.
11763 (linux_get_hwcap2): Likewise.
11764 * linux-tdep.h (linux_get_hwcap): Add declaration.
11765 (linux_get_hwcap2): Likewise.
11766 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
11767 (ppc_linux_get_hwcap2): Likewise.
11768 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
11770 (ppc_linux_nat_target::insert_watchpoint): Likewise.
11771 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
11772 (ppc_linux_nat_target::read_description): Likewise.
11773 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
11774 * s390-linux-nat.c: Likewise.
11775 * s390-linux-tdep.c (s390_core_read_description): Likewise.
11777 2019-03-24 Tom Tromey <tom@tromey.com>
11779 * ada-lang.c (standard_lookup): Simplify initialization.
11780 (ada_lookup_symbol_nonlocal): Simplify return.
11781 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
11782 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
11783 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
11784 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
11786 * solib.c (solib_global_lookup): Simplify.
11787 * symtab.c (null_block_symbol): Remove.
11788 (symbol_cache_lookup): Simplify returns.
11789 (lookup_language_this): Simplify returns.
11790 (lookup_symbol_aux): Simplify return.
11791 (lookup_local_symbol): Simplify returns.
11792 (lookup_global_symbol_from_objfile): Simplify return.
11793 (lookup_symbol_in_objfile_symtabs)
11794 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
11795 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
11796 (lookup_static_symbol, lookup_global_symbol): Simplify return.
11797 * cp-namespace.c (cp_lookup_bare_symbol)
11798 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
11799 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
11800 (cp_lookup_nested_symbol): Don't use null_block_symbol.
11801 (cp_lookup_symbol_via_imports): Simplify initialization.
11802 (find_symbol_in_baseclass): Likewise.
11803 * symtab.h (null_block_symbol): Remove.
11804 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
11805 (d_lookup_nested_symbol, d_lookup_symbol_imports)
11806 (d_lookup_symbol_module): Likewise.
11807 (find_symbol_in_baseclass): Simplify initialization.
11809 2019-03-24 Tom Tromey <tom@tromey.com>
11811 * expression.h: Don't include symtab.h.
11812 (struct block): Forward declare.
11814 2019-03-24 Tom Tromey <tom@tromey.com>
11816 * c-exp.y (typebase): Remove casts.
11817 * gdbtypes.c (lookup_unsigned_typename, )
11818 (lookup_signed_typename): Remove cast.
11819 * eval.c (parse_to_comma_and_eval): Remove cast.
11820 * parse.c (write_dollar_variable): Remove cast.
11821 * block.h (struct block) <superblock>: Now const.
11822 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
11823 * psymtab.c (psym_map_matching_symbols): Make "block" const.
11824 (map_block): Make "block" const.
11825 * symfile.h (struct quick_symbol_functions)
11826 <map_matching_symbols>: Constify block argument to "callback".
11827 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
11829 (find_pc_sect_compunit_symtab): Make "b" const.
11830 (find_symbol_at_address): Likewise.
11831 (search_symbols): Likewise.
11832 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
11833 (dw2_debug_names_lookup_symbol): Likewise.
11834 (dw2_map_matching_symbols): Update.
11835 * p-valprint.c (pascal_val_print): Remove "block".
11836 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
11837 (aux_add_nonlocal_symbols): Make "block" const.
11838 (resolve_subexp): Remove cast.
11839 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
11841 (iterate_over_file_blocks): Likewise.
11842 * f-exp.y (%union) <bval>: Remove.
11843 * coffread.c (patch_opaque_types): Make "b" const.
11844 * spu-tdep.c (spu_catch_start): Make "block" const.
11845 * c-valprint.c (print_unpacked_pointer): Remove "block".
11846 * symmisc.c (dump_symtab_1): Make "b" const.
11847 (block_depth): Make "block" const.
11848 * d-exp.y (%union) <bval>: Remove.
11849 * cp-support.h (cp_lookup_rtti_type): Update.
11850 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
11851 * psymtab.c (psym_lookup_symbol): Make "block" const.
11852 (maintenance_check_psymtabs): Make "b" const.
11853 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
11854 (enumerate_locals, enumerate_args): Update.
11855 * python/py-symtab.c (stpy_global_block): Make "block" const.
11856 (stpy_static_block): Likewise.
11857 * inline-frame.c (block_starting_point_at): Make "new_block"
11859 * block.c (find_block_in_blockvector): Make return type const.
11860 (blockvector_for_pc_sect): Make "b" const.
11861 (find_block_in_blockvector): Make "b" const.
11863 2019-03-23 Tom Tromey <tom@tromey.com>
11865 * varobj.c (varobj_create): Update.
11866 * symfile.c (clear_symtab_users): Don't reset innermost_block.
11867 * printcmd.c (display_command, do_one_display): Don't reset
11869 * parser-defs.h (enum innermost_block_tracker_type): Move to
11871 (innermost_block): Update comment.
11872 * parse.c (parse_exp_1): Add tracker_types parameter.
11873 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
11874 tracker_types parameter. Reset innermost_block.
11875 (parse_exp_in_context): Remove.
11876 (parse_expression_for_completion): Update.
11877 * objfiles.c (~objfile): Don't reset expression_context_block or
11879 * expression.h (enum innermost_block_tracker_type): Move from
11881 (parse_exp_1): Add tracker_types parameter.
11882 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
11883 reset innermost_block.
11885 2019-03-23 Tom Tromey <tom@tromey.com>
11887 * objfiles.h: Include bcache.h.
11889 2019-03-23 Tom Tromey <tom@tromey.com>
11891 * linespec.c (get_current_search_block): Use
11892 scoped_restore_current_language.
11893 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11895 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11896 Jiong Wang <jiong.wang@arm.com>
11898 * aarch64-linux-tdep.c
11899 (aarch64_linux_iterate_over_regset_sections): Check for pauth
11901 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
11903 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11904 Jiong Wang <jiong.wang@arm.com>
11906 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
11908 (aarch64_analyze_prologue_test): Add PACIASP test.
11909 (aarch64_prologue_prev_register): Unmask PC value.
11911 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11912 Jiong Wang <jiong.wang@arm.com>
11914 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
11915 (aarch64_dwarf2_prev_register): Unmask PC value.
11916 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
11917 (aarch64_execute_dwarf_cfa_vendor_op): Check for
11918 DW_CFA_AARCH64_negate_ra_state.
11919 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
11921 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11922 Jiong Wang <jiong.wang@arm.com>
11924 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
11926 (aarch64_pseudo_register_name): Likewise.
11927 (aarch64_pseudo_register_type): Likewise.
11928 (aarch64_pseudo_register_reggroup_p): Likewise.
11929 (aarch64_gdbarch_init): Add pauth registers.
11930 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11931 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
11932 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
11933 (struct gdbarch_tdep): Add regnum for ra_state.
11935 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11936 Jiong Wang <jiong.wang@arm.com>
11938 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
11940 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11941 Jiong Wang <jiong.wang@arm.com>
11943 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
11945 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
11946 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
11947 (aarch64_gdbarch_init): Add puth registers.
11948 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
11949 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
11950 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
11952 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11953 Jiong Wang <jiong.wang@arm.com>
11955 * aarch64-linux-nat.c
11956 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
11957 * aarch64-linux-tdep.c
11958 (aarch64_linux_core_read_description): Likewise.
11959 (aarch64_linux_get_hwcap): New function.
11960 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
11961 (aarch64_linux_get_hwcap): New declaration.
11963 2019-03-22 Alan Hayward <alan.hayward@arm.com>
11964 Jiong Wang <jiong.wang@arm.com>
11966 * aarch64-linux-nat.c
11967 (aarch64_linux_nat_target::read_description): Add pauth param.
11968 * aarch64-linux-tdep.c
11969 (aarch64_linux_core_read_description): Likewise.
11970 * aarch64-tdep.c (struct target_desc): Add in pauth.
11971 (aarch64_read_description): Add pauth param.
11972 (aarch64_gdbarch_init): Likewise.
11973 * aarch64-tdep.h (aarch64_read_description): Likewise.
11974 * arch/aarch64.c (aarch64_create_target_description): Likewise.
11975 * arch/aarch64.h (aarch64_create_target_description): Likewise.
11976 * features/Makefile: Add new files.
11977 * features/aarch64-pauth.c: New file.
11978 * features/aarch64-pauth.xml: New file.
11980 2019-03-20 Tom Tromey <tromey@adacore.com>
11982 * infrun.c (handle_inferior_event): Rename from
11983 handle_inferior_event_1. Create a scoped_value_mark.
11984 (handle_inferior_event): Remove.
11986 2019-03-19 Tom Tromey <tromey@adacore.com>
11988 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
11989 * infrun.h (print_stop_event): Add "displays" parameter.
11990 * infrun.c (print_stop_event): Add "displays" parameter.
11992 2019-03-19 Pedro Alves <palves@redhat.com>
11994 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
11995 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
11996 to -1. Fix TABs vs spaces.
11997 (tui_ui_out::tui_ui_out): Don't initialize fields here.
11998 * tui/tui-out.h (tui_ui_out) Add intro comments.
11999 <m_line, m_start_of_line>: In-class initialize, and add describing
12002 2019-03-18 Alan Hayward <alan.hayward@arm.com>
12004 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12006 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12008 2019-03-18 Pedro Alves <palves@redhat.com>
12009 Eli Zaretskii <eliz@gnu.org>
12011 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12012 m_line and m_start_of_line.
12014 2019-03-18 Eli Zaretskii <eliz@gnu.org>
12016 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12017 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12018 it returns a newline. This fixes a regression in TU mode, whereby
12019 the next line is output on the same screen line as the user input.
12021 2019-03-18 Tom Tromey <tromey@adacore.com>
12023 * minsyms.c (minimal_symbol_reader::install): Remove call to
12026 2019-03-18 Pedro Alves <palves@redhat.com>
12028 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12030 (apply_style): New, factored out from ...
12031 (apply_ansi_escape): ... this. Handle reverse video mode.
12032 (tui_set_reverse_mode): New function.
12033 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12034 * tui/tui-winsource.c (tui_show_source_line): Use
12035 tui_set_reverse_mode instead of setting A_STANDOUT.
12036 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12037 New setter methods.
12039 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
12041 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12044 2019-03-18 Tom Tromey <tromey@adacore.com>
12046 * ada-lang.c (empty_array): Add "high" parameter.
12047 (ada_evaluate_subexp): Update.
12049 2019-03-17 Sergei Trofimovich <siarheit@google.com>
12051 * unittests/string_view-selftests.c: Define
12052 _initialize_string_view_selftests unconditionally.
12054 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12057 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12059 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12062 * windows-nat.c (display_selector): Fix format specifiers.
12064 2019-03-17 Eli Zaretskii <eliz@gnu.org>
12066 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12067 tui_refill_source_window instead of tui_refresh_win, to update the
12068 current execution line. This fixes redisplay of the current line
12069 when stepping through the code with "next" or "step".
12071 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12073 * source-cache.c (source_cache::get_source_lines): Call
12074 find_source_lines to initialize s->nlines. This fixes vertical
12075 scrolling of TUI source window when the DOWN arrow is pressed.
12077 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12079 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12080 linux-thread-db.c (_initialize_thread_db): Likewise.
12082 2019-03-16 Eli Zaretskii <eliz@gnu.org>
12084 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12085 wclrtoeol in tui_show_source_line". This reverts changes made in
12086 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12088 2019-03-15 Tom Tromey <tom@tromey.com>
12090 * symtab.h (struct minimal_symbol): Derive from
12091 general_symbol_info.
12092 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12093 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12094 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12095 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12096 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12097 (MSYMBOL_SEARCH_NAME): Update.
12098 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12099 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12100 * minsyms.c (minimal_symbol_reader::record_full): Update.
12102 2019-03-15 Tom Tromey <tom@tromey.com>
12104 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12106 2019-03-15 Tom Tromey <tom@tromey.com>
12108 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12109 unique_xmalloc_ptr.
12110 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12112 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12113 (build_minimal_symbol_hash_tables)
12114 (minimal_symbol_reader::install): Update.
12116 2019-03-15 Tom Tromey <tom@tromey.com>
12118 * symtab.c (create_demangled_names_hash): Update.
12119 (symbol_set_names): Update.
12120 * objfiles.h (struct objfile_per_bfd_storage)
12121 <demangled_names_hash>: Now an htab_up.
12122 * objfiles.c (objfile_per_bfd_storage): Simplify.
12124 2019-03-15 Tom Tromey <tom@tromey.com>
12126 * objfiles.h (struct objfile_per_bfd_storage): Declare
12128 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12130 (get_objfile_bfd_data): Use new. Don't initialize
12132 (free_objfile_per_bfd_storage): Remove.
12133 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12135 2019-03-15 Tom Tromey <tom@tromey.com>
12137 * symfile.c (reread_symbols): Update.
12138 * objfiles.c (objfile::objfile): Update.
12139 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12140 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12142 (minimal_symbol_reader::install): Update.
12143 (terminate_minimal_symbol_table): Remove.
12144 * jit.c (jit_object_close_impl): Update.
12146 2019-03-15 Tom Tromey <tom@tromey.com>
12148 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12151 2019-03-15 Tom Tromey <tom@tromey.com>
12153 * objfiles.h (struct objfile_per_bfd_storage)
12154 <demangled_hash_languages>: Now a bitset.
12155 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12156 (lookup_minimal_symbol): Update.
12158 2019-03-15 Tom Tromey <tom@tromey.com>
12160 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12161 Don't return the symbol.
12162 * coffread.c (record_minimal_symbol): Use record_full.
12164 2019-03-14 Eli Zaretskii <eliz@gnu.org>
12166 The MS-Windows port of ncurses fails to switch to a color pair if
12167 one or both of the colors are the implicit default colors. This
12168 change records the default colors when TUI is initialized, and
12169 then specifies them explicitly when a color pair uses the default
12170 colors. This allows color styling in TUI mode on MS-Windows.
12172 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12174 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12175 colors in ncurses_norm_attr.
12176 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12177 "none", replace it with the default color recorded in
12180 2019-03-14 Tom Tromey <tromey@adacore.com>
12182 * source-cache.h (class source_cache) <get_source_lines>: Return
12184 * source-cache.c (source_cache::extract_lines): Handle case where
12185 first_pos==npos. Return std::string.
12186 (source_cache::get_source_lines): Update.
12188 2019-03-14 Tom Tromey <tromey@adacore.com>
12190 * NEWS: Add item for "style sources" commands.
12191 * source-cache.c (source_cache::get_source_lines): Check
12193 * cli/cli-style.c (source_styling): New global.
12194 (_initialize_cli_style): Add "style sources" commands.
12195 (show_style_sources): New function.
12196 * cli/cli-style.h (source_styling): Declare.
12198 2019-03-14 Pedro Alves <palves@redhat.com>
12199 Tom Tromey <tromey@adacore.com>
12201 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12202 * tui/tui-winsource.c (tui_refill_source_window): New function,
12204 (tui_horizontal_source_scroll): ... here. Move some logic.
12205 * cli/cli-style.c (set_style_enabled): Notify new observable.
12206 * tui/tui-hooks.c (tui_redisplay_source): New function.
12207 (tui_attach_detach_observers): Attach or detach
12208 tui_redisplay_source.
12209 * observable.h (source_styling_changed): New observable.
12210 * observable.c: Define source_styling_changed observable.
12212 2019-03-13 Tom Tromey <tromey@adacore.com>
12214 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12215 (i386_gnu_nat_target::store_registers): Update.
12216 * target-debug.h (target_debug_print_std_string): New macro.
12217 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12218 * windows-tdep.c (display_one_tib): Update.
12219 * tui/tui-stack.c (tui_make_status_line): Update.
12220 * top.c (print_inferior_quit_action): Update.
12221 * thread.c (thr_try_catch_cmd): Update.
12222 (add_thread_with_info): Update.
12223 (thread_target_id_str): Update.
12224 (thr_try_catch_cmd): Update.
12225 (thread_command): Update.
12226 (thread_find_command): Update.
12227 * record-btrace.c (record_btrace_target::info_record)
12228 (record_btrace_resume_thread, record_btrace_target::resume)
12229 (record_btrace_cancel_resume, record_btrace_step_thread)
12230 (record_btrace_target::wait, record_btrace_target::wait)
12231 (record_btrace_target::wait, record_btrace_target::stop): Update.
12232 * progspace.c (print_program_space): Update.
12233 * process-stratum-target.c
12234 (process_stratum_target::thread_address_space): Update.
12235 * linux-fork.c (linux_fork_mourn_inferior)
12236 (detach_checkpoint_command, info_checkpoints_command)
12237 (linux_fork_context): Update.
12238 (linux_fork_detach): Update.
12239 (class scoped_switch_fork_info): Update.
12240 (delete_checkpoint_command): Update.
12241 * infrun.c (follow_fork_inferior): Update.
12242 (follow_fork_inferior): Update.
12243 (proceed_after_vfork_done): Update.
12244 (handle_vfork_child_exec_or_exit): Update.
12245 (follow_exec): Update.
12246 (displaced_step_prepare_throw): Update.
12247 (displaced_step_restore): Update.
12248 (start_step_over): Update.
12249 (resume_1): Update.
12250 (clear_proceed_status_thread): Update.
12252 (print_target_wait_results): Update.
12253 (do_target_wait): Update.
12254 (context_switch): Update.
12255 (stop_all_threads): Update.
12256 (restart_threads): Update.
12257 (finish_step_over): Update.
12258 (handle_signal_stop): Update.
12259 (switch_back_to_stepped_thread): Update.
12260 (keep_going_pass_signal): Update.
12261 (print_exited_reason): Update.
12262 (normal_stop): Update.
12263 * inferior.c (inferior_pid_to_str): Change return type.
12264 (print_selected_inferior): Update.
12265 (add_inferior): Update.
12266 (detach_inferior): Update.
12267 * dummy-frame.c (fprint_dummy_frames): Update.
12268 * dcache.c (dcache_info_1): Update.
12269 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
12270 (btrace_fetch, btrace_clear): Update.
12271 * linux-tdep.c (linux_core_pid_to_str): Change return type.
12272 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
12274 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
12275 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
12276 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
12277 * gdbarch.c, gdbarch.h: Rebuild.
12278 * gdbarch.sh (core_pid_to_str): Change return type.
12279 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
12281 (windows_nat_target::pid_to_str): Change return type.
12282 (windows_delete_thread): Update.
12283 (windows_nat_target::attach): Update.
12284 (windows_nat_target::files_info): Update.
12285 * target-delegates.c: Rebuild.
12286 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
12288 (sol_thread_target::pid_to_str): Change return type.
12289 * remote.c (class remote_target) <pid_to_str>: Change return
12291 (remote_target::pid_to_str): Change return type.
12292 (extended_remote_target::attach, remote_target::remote_stop_ns)
12293 (remote_target::remote_notif_remove_queued_reply)
12294 (remote_target::push_stop_reply, remote_target::disable_btrace):
12296 (extended_remote_target::attach): Update.
12297 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
12299 (gdbsim_target::pid_to_str): Change return type.
12300 * ravenscar-thread.c (struct ravenscar_thread_target)
12301 <pid_to_str>: Change return type.
12302 (ravenscar_thread_target::pid_to_str): Change return type.
12303 * procfs.c (class procfs_target) <pid_to_str>: Change return
12305 (procfs_target::pid_to_str): Change return type.
12306 (procfs_target::attach): Update.
12307 (procfs_target::detach): Update.
12308 (procfs_target::fetch_registers): Update.
12309 (procfs_target::store_registers): Update.
12310 (procfs_target::wait): Update.
12311 (procfs_target::files_info): Update.
12312 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
12313 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
12315 (nto_procfs_target::pid_to_str): Change return type.
12316 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
12317 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
12319 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
12320 (exit_lwp): Update.
12321 (attach_proc_task_lwp_callback, get_detach_signal)
12322 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
12323 (linux_nat_target::resume, wait_lwp, stop_callback)
12324 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
12325 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
12326 (linux_nat_wait_1, resume_stopped_resumed_lwps)
12327 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
12328 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
12330 (inf_ptrace_target::attach): Update.
12331 (inf_ptrace_target::files_info): Update.
12332 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
12334 (go32_nat_target::pid_to_str): Change return type.
12335 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
12336 (gnu_nat_target::wait): Update.
12337 (gnu_nat_target::wait): Update.
12338 (gnu_nat_target::resume): Update.
12339 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
12340 (fbsd_nat_target::wait): Update.
12341 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
12343 (darwin_nat_target::attach): Update.
12344 * corelow.c (class core_target) <pid_to_str>: Change return type.
12345 (core_target::pid_to_str): Change return type.
12346 * target.c (normal_pid_to_str): Change return type.
12347 (default_pid_to_str): Likewise.
12348 (target_pid_to_str): Change return type.
12349 (target_translate_tls_address): Update.
12350 (target_announce_detach): Update.
12351 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
12353 (bsd_uthread_target::pid_to_str): Change return type.
12354 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
12356 (bsd_kvm_target::pid_to_str): Change return type.
12357 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
12359 (aix_thread_target::pid_to_str): Change return type.
12360 * target.h (struct target_ops) <pid_to_str>: Change return type.
12361 (target_pid_to_str, normal_pid_to_str): Likewise.
12362 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
12364 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
12366 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
12368 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
12370 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
12372 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
12375 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
12377 * NEWS: Mention that the new default MI version is 3. Mention
12378 changes to the output of commands and events that deal with
12379 multi-location breakpoints.
12380 * breakpoint.c: Include "mi/mi-out.h".
12381 (print_one_breakpoint): Change output syntax if using MI version
12383 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
12385 (mi_multi_location_breakpoint_output_fixed): New.
12386 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
12387 (mi_cmd_fix_multi_location_breakpoint_output): New.
12388 (mi_multi_location_breakpoint_output_fixed): New.
12389 * mi/mi-cmds.c (mi_cmds): Register command
12390 -fix-multi-location-breakpoint-output.
12391 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
12394 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12396 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
12397 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
12398 instantiate mi_ui_out based on interpreter name.
12399 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
12400 * mi/mi-main.c (mi_load_progress): Likewise.
12402 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12404 * NEWS: Combine separate "New targets" sections for 8.3.
12406 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12408 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
12409 (ppcfbsd_init_abi): Install gdbarch
12410 "fetch_tls_load_module_address" and "get_thread_local_address"
12413 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12415 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
12416 (riscv_fbsd_init_abi): Install gdbarch
12417 "fetch_tls_load_module_address" and "get_thread_local_address"
12420 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12422 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
12423 (i386fbsd_init_abi): Install gdbarch
12424 "fetch_tls_load_module_address" and "get_thread_local_address"
12427 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12429 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
12430 (amd64fbsd_init_abi): Install gdbarch
12431 "fetch_tls_load_module_address" and "get_thread_local_address"
12434 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12436 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
12437 (struct fbsd_pspace_data): New type.
12438 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
12439 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
12440 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
12441 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
12442 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
12444 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12446 * gdbtypes.c (lookup_struct_elt): New function.
12447 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
12448 * gdbtypes.h (struct struct_elt): New type.
12449 (lookup_struct_elt): New prototype.
12451 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12453 * gdbtypes.c (lookup_struct_elt_type): Update comment and
12454 remove disabled code block.
12456 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12458 * gdbarch.sh (get_thread_local_address): New method.
12459 * gdbarch.h, gdbarch.c: Regenerate.
12460 * target.c (target_translate_tls_address): Use
12461 gdbarch_get_thread_local_address if present instead of
12462 target::get_thread_local_address.
12464 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12466 * target.h (target::get_thread_local_address): Update comment.
12468 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12470 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
12471 objfile->separate_debug_objfile_backlink if not NULL.
12473 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12475 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
12476 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
12477 (amd64bsd_store_inferior_registers): Likewise.
12478 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12479 Enable segment base registers.
12480 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
12481 PT_GETFSBASE and PT_GETGSBASE.
12482 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
12484 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
12485 segment base registers.
12486 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12488 2019-03-12 John Baldwin <jhb@FreeBSD.org>
12490 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
12491 Update calls to i386_target_description to add 'segments'
12493 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
12494 add segment base registers.
12495 * arch/i386.c (i386_create_target_description): Add 'segments'
12496 parameter to enable segment base registers.
12497 * arch/i386.h (i386_create_target_description): Likewise.
12498 * features/i386/32bit-segments.xml: New file.
12499 * features/i386/32bit-segments.c: Generate.
12500 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
12501 call to i386_target_description to add 'segments' parameter.
12502 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
12503 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
12504 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
12505 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
12506 if feature is present.
12507 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
12508 Add 'segments' parameter to call to i386_target_description.
12509 (i386_target_description): Add 'segments' parameter to enable
12510 segment base registers.
12511 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
12512 to call to i386_target_description.
12513 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
12514 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
12515 Define I386_NUM_REGS.
12516 (i386_target_description): Add 'segments' parameter to enable
12517 segment base registers.
12519 2019-03-12 Eli Zaretskii <eliz@gnu.org>
12522 * source-cache.c: #undef open and close, to avoid unresolved
12523 externals during linking.
12525 2019-03-12 Tom Tromey <tromey@adacore.com>
12527 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
12528 const. Add initializers.
12529 (_initialize_remote): Don't initialize ptid globals.
12531 2019-03-12 Pedro Alves <palves@redhat.com>
12533 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
12535 2019-03-12 Pedro Alves <palves@redhat.com>
12537 * cp-name-parser.y (main): Remove unused 'len' variable.
12539 2019-03-12 Tom Tromey <tromey@adacore.com>
12541 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
12542 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
12544 2019-03-12 Tom Tromey <tromey@adacore.com>
12546 * linux-nat.c (iterate_over_lwps): Update.
12547 (stop_callback): Remove parameter.
12548 (stop_wait_callback, detach_callback, resume_set_callback)
12549 (select_singlestep_lwp_callback, set_ignore_sigint)
12550 (status_callback, resumed_callback, resume_clear_callback)
12551 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
12553 (linux_nat_target::detach, linux_nat_target::resume)
12554 (linux_stop_and_wait_all_lwps, select_event_lwp)
12555 (linux_nat_filter_event, linux_nat_wait_1)
12556 (linux_nat_target::kill, linux_nat_target::stop)
12557 (linux_nat_target::stop): Update.
12558 (linux_nat_resume_callback): Change type.
12559 (resume_stopped_resumed_lwps, count_events_callback)
12560 (select_event_lwp_callback): Likewise.
12561 (linux_stop_lwp, linux_nat_stop_lwp): Update.
12562 * arm-linux-nat.c (struct update_registers_data): Remove.
12563 (update_registers_callback): Change type.
12564 (arm_linux_insert_hw_breakpoint1): Update.
12565 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
12567 (x86_linux_dr_set_addr): Update.
12568 (x86_linux_dr_set_control): Update.
12569 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
12570 (iterate_over_lwps): Use gdb::function_view.
12571 * nat/aarch64-linux-hw-point.c (struct
12572 aarch64_dr_update_callback_param): Remove.
12573 (debug_reg_change_callback): Change type.
12574 (aarch64_notify_debug_reg_change): Update.
12575 * s390-linux-nat.c (s390_refresh_per_info): Update.
12577 2019-03-11 Tom Tromey <tromey@adacore.com>
12579 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
12580 redundant assignment to "this_cu".
12582 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12584 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
12586 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12588 * gdbtypes.c (rank_one_type_parm_set): New function extracted
12590 (rank_one_type): ... this.
12592 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12594 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
12596 (rank_one_type): ... this.
12598 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12600 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
12602 (rank_one_type): ... this.
12604 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12606 * gdbtypes.c (rank_one_type_parm_float): New function extracted
12608 (rank_one_type): ... this.
12610 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12612 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
12614 (rank_one_type): ... this.
12616 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12618 * gdbtypes.c (rank_one_type_parm_range): New function extracted
12620 (rank_one_type): ... this.
12622 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12624 * gdbtypes.c (rank_one_type_parm_char): New function extracted
12626 (rank_one_type): ... this.
12628 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12630 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
12632 (rank_one_type): ... this.
12634 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12636 * gdbtypes.c (rank_one_type_parm_int): New function extracted
12638 (rank_one_type): ... this.
12640 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12642 * gdbtypes.c (rank_one_type_parm_func): New function extracted
12644 (rank_one_type): ... this.
12646 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12648 * gdbtypes.c (rank_one_type_parm_array): New function extracted
12650 (rank_one_type): ... this.
12652 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
12654 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
12656 (rank_one_type): ... this.
12658 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12660 * inferior.c (initialize_inferiors): Ensure 'help set/show print
12661 inferior-events' shows the example events.
12663 2019-03-08 Eli Zaretskii <eliz@gnu.org>
12665 Support styling on native MS-Windows console
12668 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
12669 on MS-Windows if $TERM is not defined.
12671 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
12673 * posix-hdep.c (gdb_console_fputs):
12674 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
12676 * ui-file.h (gdb_console_fputs): Add prototype.
12678 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
12679 back to fputs only if the former returns zero.
12681 2019-03-07 Tom Tromey <tom@tromey.com>
12683 * symmisc.c (print_symbol_bcache_statistics): Update.
12684 (print_objfile_statistics): Update.
12685 * symfile.c (allocate_symtab): Update.
12686 * stabsread.c: Don't include bcache.h.
12687 * psymtab.h (struct psymbol_bcache): Don't declare.
12688 (class psymtab_storage) <psymbol_cache>: Now a bcache.
12689 (psymbol_bcache_init, psymbol_bcache_free)
12690 (psymbol_bcache_get_bcache): Don't declare.
12691 * psymtab.c (struct psymbol_bcache): Remove.
12692 (psymtab_storage::psymtab_storage): Update.
12693 (psymtab_storage::~psymtab_storage): Update.
12694 (psymbol_bcache_init, psymbol_bcache_free)
12695 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
12696 (add_psymbol_to_bcache): Update.
12697 (allocate_psymtab): Update.
12698 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
12699 macro_cache>: No longer pointers.
12700 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
12701 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
12702 * macrotab.c (macro_bcache): Update.
12703 * macroexp.c: Don't include bcache.h.
12704 * gdbtypes.c (check_types_worklist): Update.
12705 (types_deeply_equal): Remove TRY/CATCH. Update.
12706 * elfread.c (elf_symtab_read): Update.
12707 * dwarf2read.c: Don't include bcache.h.
12708 * buildsym.c (buildsym_compunit::get_macro_table): Update.
12709 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
12710 (print_bcache_statistics, bcache_memory_used): Don't declare.
12711 (struct bcache): Move from bcache.c. Add constructor, destructor,
12712 methods. Rename all data members.
12713 * bcache.c (struct bcache): Move to bcache.h.
12714 (bcache::expand_hash_table): Rename from expand_hash_table.
12716 (bcache::insert): Rename from bcache_full.
12717 (bcache::compare): Rename from bcache_compare.
12718 (bcache_xmalloc): Remove.
12719 (bcache::~bcache): Rename from bcache_xfree.
12720 (bcache::print_statistics): Rename from print_bcache_statistics.
12721 (bcache::memory_used): Rename from bcache_memory_used.
12723 2019-03-07 Pedro Alves <palves@redhat.com>
12725 * infrun.c (normal_stop): Also check for
12726 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
12728 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12730 * f-lang.c (value_from_host_double): Moved to...
12731 * value.c (value_from_host_double): ...here.
12732 * value.h (value_from_host_double): Declare.
12733 * guile/scm-math.c (vlscm_convert_typed_number): Use
12734 value_from_host_double.
12735 (vlscm_convert_number): Likewise.
12736 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
12737 * python/py-value.c (convert_value_from_python): Likewise.
12739 2019-03-06 Tom Tromey <tom@tromey.com>
12741 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
12743 2019-03-06 Tom Tromey <tom@tromey.com>
12745 * utils.h (free_current_contents): Don't declare.
12746 * utils.c (free_current_contents): Remove.
12748 2019-03-06 Tom Tromey <tom@tromey.com>
12750 * top.c (quit_force): Update.
12751 * main.c (captured_command_loop): Update.
12752 * common/new-op.c (operator new): Update.
12753 * common/common-exceptions.c (struct catcher)
12754 <save_cleanup_chain>: Remove member.
12755 (exceptions_state_mc_init): Update.
12756 (exception_try_scope_entry): Return nullptr.
12757 (exception_try_scope_exit, exception_rethrow)
12758 (throw_exception_sjlj, throw_exception_cxx): Update.
12759 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
12760 (all_cleanups, do_cleanups, discard_cleanups)
12761 (discard_final_cleanups, save_cleanups, save_final_cleanups)
12762 (restore_cleanups, restore_final_cleanups): Don't declare.
12763 (do_final_cleanups): Remove parameter.
12764 * common/cleanups.c (cleanup_chain, make_cleanup)
12765 (make_cleanup_dtor, all_cleanups, do_cleanups)
12766 (discard_my_cleanups, discard_cleanups)
12767 (discard_final_cleanups, save_my_cleanups, save_cleanups)
12768 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
12769 (null_cleanup): Remove.
12770 (do_final_cleanups): Remove parameter.
12772 2019-03-06 Tom Tromey <tom@tromey.com>
12774 * remote.c (remote_target::remote_parse_stop_reply): Use
12775 unique_xmalloc_ptr.
12777 2019-03-06 Tom Tromey <tom@tromey.com>
12779 * stabsread.c (struct stabs_field_info): Rename from field_info.
12780 <list, fnlist>: Add initializers.
12781 <obstack>: New member.
12782 (read_member_functions, read_struct_fields, read_baseclasses):
12783 Allocate on obstack. Don't use cleanups.
12784 (read_one_struct_field, read_member_functions, read_struct_fields)
12785 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
12786 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
12787 (read_struct_type): Update.
12789 2019-03-06 Tom Tromey <tom@tromey.com>
12791 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
12792 * common/filestuff.h (make_cleanup_close): Don't declare.
12793 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
12796 2019-03-06 Tom Tromey <tom@tromey.com>
12798 * solib-aix.c: Use make_scope_exit.
12800 2019-03-06 Tom Tromey <tom@tromey.com>
12802 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
12803 Use make_scope_exit.
12805 2019-03-06 Tom Tromey <tom@tromey.com>
12807 * solib-svr4.c (disable_probes_interface): Remove parameter.
12808 (svr4_handle_solib_event): Use make_scope_exit.
12810 2019-03-06 Tom Tromey <tom@tromey.com>
12812 * remote.c (struct stop_reply_deleter): Remove.
12813 (stop_reply_up): Update.
12814 (struct stop_reply): Derive from notif_event. Don't typedef.
12815 <regcache>: Now a std::vector.
12816 (stop_reply_xfree): Remove.
12817 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
12818 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
12819 (remote_target::discard_pending_stop_replies): Use delete.
12820 (remote_target::remote_parse_stop_reply): Update.
12821 (remote_target::process_stop_reply): Update.
12822 * remote-notif.h (struct notif_event): Add virtual destructor.
12823 Remove "dtr" member.
12824 (struct notif_client) <alloc_event>: Return a unique_ptr.
12825 (notif_event_xfree): Don't declare.
12826 (notif_event_up): New typedef.
12827 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
12828 (notif_event_xfree, do_notif_event_xfree): Remove.
12829 (remote_notif_state_xfree): Update.
12831 2019-03-06 Tom Tromey <tom@tromey.com>
12833 * infrun.c (displaced_step_clear_cleanup): Now a
12834 forward_scope_exit type.
12835 (displaced_step_prepare_throw): Update.
12836 (displaced_step_fixup): Update.
12838 2019-03-06 Tom Tromey <tom@tromey.com>
12840 * inferior.h (class inferior): Update comment.
12841 * gdbthread.h (class thread_info): Update comment.
12843 2019-03-06 Joel Brobecker <brobecker@adacore.com>
12844 Tom Tromey <tom@tromey.com>
12846 * stabsread.h (struct stab_section_list): Remove.
12847 (coffstab_build_psymtabs): Update.
12848 * dbxread.c (symbuf_sections): Now a std::vector.
12849 (sect_idx): New global.
12850 (fill_symbuf): Update.
12851 (coffstab_build_psymtabs): Change type of stabsects parameter.
12853 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
12855 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
12856 (coff_locate_sections): Update.
12857 (coff_symfile_read): Remove cleanups. Update.
12858 (init_stringtab): Add storage parameter.
12859 (free_stringtab, free_stringtab_cleanup): Remove.
12860 (init_lineno): Add storage parameter.
12861 (free_linetab, free_linetab_cleanup): Remove.
12863 2019-03-06 Pedro Alves <palves@redhat.com>
12865 * linux-fork.c (fork_info::clobber_regs): Delete.
12866 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
12867 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
12869 (scoped_switch_fork_info::scoped_switch_fork_info)
12870 (checkpoint_command, linux_fork_context): Adjust
12871 fork_save_infrun_state calls.
12873 2019-03-06 Pedro Alves <palves@redhat.com>
12875 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
12876 (inf_has_multiple_threads): Return 'bool' and rewrite using
12877 inferior_info::threads().
12879 2019-03-06 Pedro Alves <palves@redhat.com>
12881 * linux-fork.c: Include <list>.
12882 (fork_list): Now a std::list instance.
12883 (fork_info): Add ctor, dtor, and in-class initialize all fields.
12884 (forks_exist_p, find_last_fork): Adjust.
12885 (new_fork): Delete.
12887 (add_fork): Adjust.
12888 (free_fork): Delete, folded into fork_info::~fork_info().
12889 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
12891 (init_fork_list): Delete.
12892 (linux_fork_killall, linux_fork_mourn_inferior)
12893 (linux_fork_detach, info_checkpoints_command): Adjust.
12894 (_initialize_linux_fork): No longer call init_fork_list.
12896 2019-03-06 Pedro Alves <palves@redhat.com>
12898 * linux-fork.c (new_fork): New, split out of ...
12899 (add_fork): ... this. Return void. Move "first fork" special
12900 case from here, to ...
12901 (checkpoint_command): ... here.
12902 * linux-linux.h (add_fork): Return void.
12904 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12906 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
12908 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12909 Chris January <chris.january@arm.com>
12910 David Lecomber <david.lecomber@arm.com>
12912 * f-exp.y: New token, UNOP_INTRINSIC.
12913 (exp): New pattern using UNOP_INTRINSIC token.
12914 (f77_keywords): Add 'abs' keyword.
12915 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
12916 (value_from_host_double): New function.
12917 (evaluate_subexp_f): Support UNOP_ABS.
12919 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12921 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
12924 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12926 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
12927 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
12928 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
12930 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12932 * f-exp.y (convert_to_kind_type): Handle more type kinds.
12934 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12935 Chris January <chris.january@arm.com>
12937 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
12938 * f-exp.y: Define 'KIND' token.
12939 (exp): New pattern for KIND expressions.
12940 (ptype): Handle types with a kind extension.
12941 (direct_abs_decl): Extend to spot kind extensions.
12942 (f77_keywords): Add 'kind' to the list.
12943 (push_kind_type): New function.
12944 (convert_to_kind_type): New function.
12945 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
12946 * parse.c (operator_length_standard): Likewise.
12947 * parser-defs.h (enum type_pieces): Add tp_kind.
12948 * std-operator.def: Add UNOP_KIND.
12950 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12952 * f-exp.y (f_parse): Set yydebug.
12954 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12956 * f-lang.c (evaluate_subexp_f): New function.
12957 (exp_descriptor_f): New global.
12958 (f_language_defn): Use exp_descriptor_f instead of
12959 exp_descriptor_standard.
12961 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12963 * f-exp.y (struct token): Add comments.
12964 (dot_ops): Remove uppercase versions and the end marker.
12965 (f77_keywords): Likewise.
12966 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
12967 entries in the dot_ops array are case insensitive, and use
12968 strncasecmp to compare strings. Also some whitespace cleanup in
12969 this area. Similar for the f77_keywords array, except entries in
12970 this list might be case sensitive.
12972 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12974 * f-exp.y (struct f77_boolean_val): Add comments.
12975 (boolean_values): Remove uppercase versions, and end marker.
12976 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
12977 and use strncasecmp to achieve case insensitivity. Additionally,
12978 perform whitespace cleanup around this code.
12980 2019-03-06 Tom Tromey <tromey@adacore.com>
12982 * remote-sim.c (gdbsim_target_open): Use result of
12985 2019-03-06 Richard Bunt <richard.bunt@arm.com>
12986 Dirk Schubert <dirk.schubert@arm.com>
12987 Chris January <chris.january@arm.com>
12989 * eval.c (evaluate_subexp_standard): Call Fortran argument
12991 * f-lang.c (struct value): A value which can be passed into a
12992 Fortran function call.
12993 (fortran_argument_convert): Wrap Fortran arguments in a pointer
12995 (struct type): Value ready for a Fortran function call.
12996 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
12998 * f-lang.h (fortran_argument_convert): Declaration.
12999 (fortran_preserve_arg_pointer): Declaration.
13000 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13002 2019-03-05 Tom Tromey <tromey@adacore.com>
13004 * python/py-prettyprint.c (print_string_repr): Remove #if.
13005 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13007 2019-03-05 Tom Tromey <tromey@adacore.com>
13009 * target.c (the_dummy_target): Move later. Change type to
13011 (initialize_targets): Don't initialize the_dummy_target.
13013 2019-03-05 Tom Tromey <tromey@adacore.com>
13015 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13016 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13018 2019-03-05 Tom Tromey <tromey@adacore.com>
13020 * windows-nat.c (windows_nat_target::attach)
13021 (windows_nat_target::detach): Don't call gdb_flush.
13022 * valprint.c (generic_val_print, val_print, val_print_string):
13023 Don't call gdb_flush.
13024 * utils.c (defaulted_query): Don't call gdb_flush.
13025 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13026 * target.c (target_announce_detach): Don't call gdb_flush.
13027 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13028 * remote.c (extended_remote_target::attach): Don't call
13030 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13031 * printcmd.c (do_examine): Don't call gdb_flush.
13032 (info_display_command): Don't call gdb_flush.
13033 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13034 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13035 * memattr.c (info_mem_command): Don't call gdb_flush.
13036 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13037 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13038 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13039 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13040 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13041 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13042 (gnu_nat_target::detach): Don't call gdb_flush.
13043 * f-valprint.c (f_val_print): Don't call gdb_flush.
13044 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13045 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13046 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13048 * c-valprint.c (c_val_print): Don't call gdb_flush.
13049 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13051 2019-03-05 Tom Tromey <tromey@adacore.com>
13053 * varobj.c (update_dynamic_varobj_children): Update.
13054 (install_default_visualizer): Use reset, not release.
13055 * value.c (set_internalvar): Update.
13056 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13057 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13058 ATTRIBUTE_UNUSED_RESULT.
13060 2019-03-05 Tom Tromey <tromey@adacore.com>
13062 * remote.c (class scoped_remote_fd) <release>: Add
13063 ATTRIBUTE_UNUSED_RESULT.
13065 2019-03-05 Tom Tromey <tromey@adacore.com>
13067 * macroexp.c (struct macro_buffer) <release>: Add
13068 ATTRIBUTE_UNUSED_RESULT.
13070 2019-03-05 Tom Tromey <tromey@adacore.com>
13072 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13073 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13074 ATTRIBUTE_UNUSED_RESULT.
13076 2019-03-05 Tom Tromey <tromey@adacore.com>
13078 * common/scoped_fd.h (class scoped_fd) <release>: Add
13079 ATTRIBUTE_UNUSED_RESULT.
13081 2019-03-05 Tom Tromey <tromey@adacore.com>
13083 * parser-defs.h (struct parser_state) <release>: Add
13084 ATTRIBUTE_UNUSED_RESULT.
13086 2019-03-05 Tom Tromey <tromey@adacore.com>
13088 * utils.h (class gdb_argv) <release>: Add
13089 ATTRIBUTE_UNUSED_RESULT.
13090 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13092 2019-03-02 Eli Zaretskii <eliz@gnu.org>
13094 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13095 for-loop range, to avoid compiler warnings.
13097 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13098 avoid compiler warnings about unused variables.
13100 * NEWS: Mention end of support for native debugging on MS-Windows
13104 * common/netstuff.c:
13105 * gdbserver/gdbreplay.c
13106 * gdbserver/remote-utils.c:
13108 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13109 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13110 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13111 'getaddrinfo' and 'freeaddrinfo' were not available before
13112 Windows XP, and mingw.org's MinGW headers by default define
13113 _WIN32_WINNT to 0x500.
13115 2019-03-01 Gary Benson <gbenson@redhat.com>
13117 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13119 2019-02-28 Brian Vandenberg <phantall@gmail.com>
13120 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13123 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13124 set_sigint_trap, clear_sigint_trap.
13126 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13128 * target.c (target_detach): Clear the regcache and the
13131 2019-02-27 Pedro Alves <palves@redhat.com>
13133 * utils.c (set_screen_size): When we cap the height/width sizes,
13134 tweak the corresponding command variable to show "unlimited":
13136 2019-02-27 Saagar Jha <saagar@saagarjha.com>
13137 Pedro Alves <palves@redhat.com>
13139 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13140 before calling rl_set_screen_size.
13142 2019-02-27 Tom Tromey <tromey@adacore.com>
13144 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13146 * python/py-value.c: Remove Python 2.4 workaround.
13147 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13149 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13150 Python 2.4 workaround.
13151 * python/python-internal.h: Remove Python 2.4 comment.
13152 (Py_ssize_t): Don't define.
13153 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13154 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13155 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13156 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13157 * python/python.c (do_start_initialization): Remove Python 2.4
13159 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13160 (print_children): Remove Python 2.4 workaround.
13161 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13163 (CHARBUFFERPROC_NAME): Remove.
13164 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13165 Python 2.4 workaround.
13167 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13169 * NEWS: Note minimum Python version.
13171 2019-02-27 Kevin Buettner <kevinb@redhat.com>
13173 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13174 code from these functions. Remove corresponding ifdefs. Use
13175 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13176 Remove gotos and target of gotos.
13177 (infpy_search_memory): Likewise.
13179 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13181 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13182 (hppa_gdbarch_init): Don't register deleted functions with
13185 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13187 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13188 (h8300_unwind_sp): Delete.
13189 (h8300_dummy_id): Delete.
13190 (h8300_gdbarch_init): Don't register deleted functions with
13193 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13195 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13196 (ft32_unwind_pc): Delete.
13197 (ft32_unwind_sp): Delete.
13198 (ft32_gdbarch_init): Don't register deleted functions with
13201 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13203 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13204 (frv_unwind_pc): Delete.
13205 (frv_unwind_sp): Delete.
13206 (frv_gdbarch_init): Don't register deleted functions with
13209 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13211 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13212 (riscv_unwind_pc): Delete.
13213 (riscv_unwind_sp): Delete.
13214 (riscv_gdbarch_init): Don't register deleted functions with
13217 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13219 * gdb/csky-tdep.c (csky_dummy_id): Delete.
13220 (csky_unwind_pc): Delete.
13221 (csky_unwind_sp): Delete.
13222 (csky_gdbarch_init): Don't register deleted functions with
13225 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13227 * gdb/cris-tdep.c (cris_dummy_id): Delete.
13228 (cris_unwind_pc): Delete.
13229 (cris_unwind_sp): Delete.
13230 (cris_gdbarch_init): Don't register deleted functions with
13233 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13235 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
13236 (bfin_unwind_pc): Delete.
13237 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
13239 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13241 * gdb/arm-tdep.c (arm_dummy_id): Delete.
13242 (arm_unwind_pc): Delete.
13243 (arm_unwind_sp): Delete.
13244 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
13246 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13248 * gdb/arc-tdep.c (arc_dummy_id): Delete.
13249 (arc_unwind_pc): Delete.
13250 (arc_unwind_sp): Delete.
13251 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
13253 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13255 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
13256 (alpha_unwind_pc): Delete.
13257 (alpha_gdbarch_init): Don't register deleted functions with
13260 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13262 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
13263 (aarch64_unwind_pc): Delete.
13264 (aarch64_unwind_sp): Delete.
13265 (aarch64_gdbarch_init): Don't register deleted functions with
13268 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13270 * gdbtypes.c (type_align): Don't consider static members when
13271 computing structure alignment.
13273 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13275 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
13276 return 0 for other types.
13277 * arch-utils.c (default_type_align): Always return 0.
13278 * gdbarch.h: Regenerate.
13279 * gdbarch.sh (type_align): Extend comment.
13280 * gdbtypes.c (type_align): Add additional comments, always call
13281 gdbarch_type_align before applying the default rules.
13282 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
13283 generic code will then apply a suitable default.
13284 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
13285 types, return 0 for other types.
13287 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13289 * NEWS: Create a new section for the next release branch.
13290 Rename the section of the current branch, now that it has
13293 2019-02-27 Joel Brobecker <brobecker@adacore.com>
13295 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
13296 * version.in: Bump version to 8.3.50.DATE-git.
13298 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
13300 * aix-thread.c (ptid_cmp): Remove unused variable.
13301 (get_signaled_thread): Likewise.
13302 (store_regs_user_thread): Likewise.
13303 (store_regs_kernel_thread): Likewise.
13304 (fetch_regs_kernel_thread): Remove shadowed variable.
13306 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
13308 * features/riscv/32bit-cpu.xml: Add register numbers.
13309 * features/riscv/32bit-fpu.c: Regenerate.
13310 * features/riscv/32bit-fpu.xml: Add register numbers.
13311 * features/riscv/64bit-cpu.xml: Add register numbers.
13312 * features/riscv/64bit-fpu.c: Regenerate.
13313 * features/riscv/64bit-fpu.xml: Add register numbers.
13315 2019-02-26 Kevin Buettner <kevinb@redhat.com>
13317 * NEWS: Mention two argument form of gdb.Value constructor.
13318 * python/py-value.c (convert_buffer_and_type_to_value): New
13320 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
13321 Add support for handling an optional second argument. Call
13322 convert_buffer_and_type_to_value as appropriate.
13323 * python/python-internal.h (Py_buffer_deleter): New struct.
13324 (Py_buffer_up): New typedef.
13326 2019-02-25 John Baldwin <jhb@FreeBSD.org>
13328 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
13329 instead of releasing ownership.
13331 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
13333 * dwarf2read.c (open_and_init_dwp_file): Call
13334 elf_numsections instead of bfd_count_sections to initialize
13335 dwp_file->num_sections.
13337 2019-02-25 Tom Tromey <tromey@adacore.com>
13339 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
13341 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
13343 * gcore.in: Add '--readnever' option when invoking GDB.
13345 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13347 * MAINTAINERS: Update my email address.
13349 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
13351 * build-id.c (build_id_to_debug_bfd_1): New function.
13352 (build_id_to_debug_bfd): Look for separate debug file in
13355 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
13357 * gdbarch.sh: Update the copyright year range that is placed into
13360 2019-02-22 Keith Seitz <keiths@redhat.com>
13363 * linespec.c (create_sals_line_offset): Search for the default
13364 symtab's filename instead of its fullname.
13366 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13368 * NEWS: Update style defaults.
13370 2019-02-21 Alan Hayward <alan.hayward@arm.com>
13372 * main.c (captured_main_1): Disable styling in batch mode.
13374 2019-02-20 Tom Tromey <tom@tromey.com>
13376 * symtab.c (symtab_symbol_info): Fix typos.
13378 2019-02-20 Tom Tromey <tromey@adacore.com>
13380 * findcmd.c (_initialize_mem_search): Use upper case for
13381 metasyntactic variables.
13383 2019-02-20 Alan Hayward <alan.hayward@arm.com>
13385 * aarch64-tdep.c (aarch64_add_reggroups): New function.
13386 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
13388 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
13390 * top.h (source_file_name): Change to std::string.
13391 * top.c (source_file_name): Likewise.
13392 (command_line_input): Adjust.
13393 * cli/cli-script.c (script_from_file): Adjust.
13395 2019-02-19 Tom Tromey <tromey@adacore.com>
13397 * ravenscar-thread.c
13398 (ravenscar_thread_target::update_thread_list): Don't call
13399 ada_build_task_list.
13400 * ada-lang.h (ada_build_task_list): Don't declare.
13401 * ada-tasks.c (struct ada_tasks_inferior_data)
13402 <task_list_valid_p>: Now bool.
13403 (read_known_tasks, ada_task_list_changed)
13404 (ada_tasks_invalidate_inferior_data): Update.
13405 (read_known_tasks_array): Return bool.
13406 (read_known_tasks_list): Likewise.
13407 (read_known_tasks): Return void.
13408 (ada_build_task_list): Now static.
13410 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
13412 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
13413 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
13415 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13417 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
13418 variant for ada_tasks_pspace_data_handle and
13419 ada_tasks_inferior_data_handle.
13420 (ada_tasks_pspace_data_cleanup): New function.
13421 (ada_tasks_inferior_data_cleanup): New function.
13423 2019-02-17 Tom Tromey <tom@tromey.com>
13425 * macrotab.h (macro_source_fullname): Return a std::string.
13426 * macrotab.c (macro_include, check_for_redefinition)
13427 (macro_undef, macro_lookup_definition, foreach_macro)
13428 (foreach_macro_in_scope): Update.
13429 (macro_source_fullname): Return a std::string.
13430 * macrocmd.c (show_pp_source_pos): Update.
13432 2019-02-17 Tom Tromey <tom@tromey.com>
13434 * macrocmd.c (show_pp_source_pos): Style the file names.
13436 2019-02-17 Tom Tromey <tom@tromey.com>
13439 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
13441 2019-02-17 Tom Tromey <tom@tromey.com>
13443 * ada-lang.c (user_select_syms): Use filtered printing.
13444 * utils.c (wrap_style): New global.
13445 (desired_style): Remove.
13446 (emit_style_escape): Add stream parameter.
13447 (set_output_style, reset_terminal_style, prompt_for_continue):
13449 (flush_wrap_buffer): Only flush gdb_stdout.
13450 (wrap_here): Set wrap_style.
13451 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
13452 treat escape sequences as a character. Change when wrap buffer is
13454 (fputs_styled): Do not set the output style when the default is
13456 * ui-style.h (struct ui_file_style) <is_default>: New method.
13457 * source.c (print_source_lines_base): Emit escape sequences in one
13460 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13462 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
13463 integers and enumeration types.
13465 2019-02-17 Joel Brobecker <brobecker@adacore.com>
13467 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
13468 instead of lookup_symbol_in_language
13469 (do_exact_match): New function.
13470 (ada_get_symbol_name_matcher): Return do_exact_match when
13471 doing a verbatim match.
13473 2019-02-15 Tom Tromey <tromey@adacore.com>
13475 * ravenscar-thread.c (ravenscar_thread_target::resume)
13476 (ravenscar_thread_target::wait): Special case wildcard requests.
13478 2019-02-15 Tom Tromey <tromey@adacore.com>
13480 * ravenscar-thread.c (base_ptid): Remove.
13481 (struct ravenscar_thread_target) <close>: New method.
13482 <m_base_ptid>: New member.
13483 <update_inferior_ptid, active_task, task_is_currently_active,
13484 runtime_initialized>: Declare methods.
13485 <ravenscar_thread_target>: Add constructor.
13486 (ravenscar_thread_target::task_is_currently_active)
13487 (ravenscar_thread_target::update_inferior_ptid)
13488 (ravenscar_runtime_initialized): Rename. Now methods.
13489 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
13490 (ravenscar_thread_target::update_thread_list): Update.
13491 (ravenscar_thread_target::active_task): Now method.
13492 (ravenscar_thread_target::store_registers)
13493 (ravenscar_thread_target::prepare_to_store)
13494 (ravenscar_thread_target::prepare_to_store)
13495 (ravenscar_thread_target::mourn_inferior): Update.
13496 (ravenscar_inferior_created): Use "new" to create target.
13497 (ravenscar_thread_target::get_ada_task_ptid): Update.
13498 (_initialize_ravenscar): Don't initialize base_ptid.
13499 (ravenscar_ops): Remove global.
13501 2019-02-15 Tom Tromey <tromey@adacore.com>
13503 * target.h (push_target): Declare new overload.
13504 * target.c (push_target): New overload, taking an rvalue reference.
13505 * remote.c (remote_target::open_1): Use push_target overload.
13506 * corelow.c (core_target_open): Use push_target overload.
13508 2019-02-15 Tom Tromey <tromey@adacore.com>
13510 * ravenscar-thread.c (is_ravenscar_task)
13511 (ravenscar_task_is_currently_active): Return bool.
13512 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
13513 (_initialize_ravenscar): Remove "(void)".
13514 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
13517 2019-02-15 Tom Tromey <tromey@adacore.com>
13519 * ravenscar-thread.c (ravenscar_runtime_initializer)
13520 (has_ravenscar_runtime, get_running_thread_id)
13521 (ravenscar_thread_target::resume): Fix indentation.
13523 2019-02-15 Tom Tromey <tromey@adacore.com>
13525 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
13526 from ravenscar_arch_ops.
13527 (sparc_ravenscar_ops::fetch_registers)
13528 (sparc_ravenscar_ops::store_registers): Now methods.
13529 (sparc_ravenscar_prepare_to_store): Remove.
13530 (sparc_ravenscar_ops): Redefine.
13531 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
13532 methods and destructor. Remove members.
13533 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
13534 (ravenscar_thread_target::store_registers)
13535 (ravenscar_thread_target::prepare_to_store): Update.
13536 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
13538 (struct ppc_ravenscar_powerpc_ops): Derive from
13539 ravenscar_arch_ops.
13540 (ppc_ravenscar_powerpc_ops::fetch_registers)
13541 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
13542 (ppc_ravenscar_powerpc_ops): Redefine.
13543 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
13544 (ppc_ravenscar_e500_ops::fetch_registers)
13545 (ppc_ravenscar_e500_ops::store_registers): Now methods.
13546 (ppc_ravenscar_e500_ops): Redefine.
13547 * aarch64-ravenscar-thread.c
13548 (aarch64_ravenscar_generic_prepare_to_store): Remove.
13549 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
13550 (aarch64_ravenscar_fetch_registers)
13551 (aarch64_ravenscar_store_registers): Now methods.
13552 (aarch64_ravenscar_ops): Redefine.
13554 2019-02-15 Tom Tromey <tromey@adacore.com>
13556 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
13557 (ravenscar_thread_target::stopped_by_hw_breakpoint)
13558 (ravenscar_thread_target::stopped_by_watchpoint)
13559 (ravenscar_thread_target::stopped_data_address)
13560 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
13562 2019-02-15 Tom Tromey <tromey@adacore.com>
13564 * ravenscar-thread.c: Fix some typos.
13566 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13567 Tom Tromey <tromey@adacore.com>
13569 * ada-lang.c (ada_exception_sal): Change addr_string to a
13571 (create_ada_exception_catchpoint): Update.
13573 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13574 Tom Tromey <tromey@adacore.com>
13576 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
13577 (bp_location_ops): Remove.
13578 (base_breakpoint_allocate_location): Update.
13579 (free_bp_location): Update.
13580 * ada-lang.c (class ada_catchpoint_location)
13581 <ada_catchpoint_location>: Remove ops parameter.
13582 (ada_catchpoint_location_dtor): Remove.
13583 (ada_catchpoint_location_ops): Remove.
13584 (allocate_location_exception): Update.
13585 * breakpoint.h (struct bp_location_ops): Remove.
13586 (class bp_location) <bp_location>: Remove bp_location_ops
13588 <~bp_location>: Add destructor.
13591 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13592 Pedro Alves <palves@redhat.com>
13594 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
13597 2019-02-14 David Michael <fedora.dm0@gmail.com>
13598 Samuel Thibault <samuel.thibault@gnu.org>
13599 Thomas Schwinge <thomas@codesourcery.com>
13601 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
13602 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
13604 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
13606 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
13607 (check_empty): Use "const char *".
13609 * gnu-nat.c (gnu_nat_target::detach): Instead of
13610 'detach_inferior (pid)' call
13611 'detach_inferior (find_inferior_pid (pid))'.
13613 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
13614 'nat/fork-inferior.o'.
13615 * gnu-nat.c: #include "nat/fork-inferior.h".
13617 * gnu-nat.c (gnu_nat_target::detach): Instead of
13618 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
13619 * gnu-nat.h: #include "inf-child.h".
13620 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
13621 'i386_gnu_nat_target::fetch_registers'.
13622 (gnu_store_registers): Rename/move to
13623 'i386_gnu_nat_target::store_registers'.
13625 * config/i386/nm-i386gnu.h: Don't "#include" any files.
13626 * gnu-nat.h (mach_thread_info): New function.
13627 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
13629 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
13631 2019-02-14 Frederic Konrad <konrad@adacore.com>
13633 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
13635 2019-02-14 Joel Brobecker <brobecker@adacore.com>
13637 * windows-nat.c (windows_add_thread): Add new parameter
13638 "main_thread_p" with default value set to false. Update
13639 function documentation as well as all callers.
13640 (windows_delete_thread): Likewise.
13641 (fake_create_process): Update call to windows_add_thread.
13642 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
13643 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
13644 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
13645 call to windows_delete_thread.
13647 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
13649 * MAINTAINERS: Add Andrew Burgess as global maintainer.
13651 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13653 * symfile.c (find_separate_debug_file): Use canonical path of
13654 sysroot with child_path instead of gdb_sysroot if it is valid.
13656 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13658 * symfile.c (find_separate_debug_file): Use child_path to
13659 determine if an object file is under a sysroot.
13661 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13663 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13664 unittests/child-path-selftests.c.
13665 * common/pathstuff.c (child_path): New function.
13666 * common/pathstuff.h (child_path): New prototype.
13667 * unittests/child-path-selftests.c: New file.
13669 2019-02-12 John Baldwin <jhb@FreeBSD.org>
13671 * symfile.c (find_separate_debug_file): Look for separate debug
13672 files in debug directories under the sysroot.
13674 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13676 * symtab.h (struct minimal_symbol data_p): New const method.
13677 (struct minimal_symbol text_p): Likewise.
13678 * symtab.c (output_source_filename): Use file name style
13679 to print file name.
13680 (print_symbol_info): Likewise.
13681 (print_msymbol_info): Use address style to print addresses.
13682 Use function name style to print executable text symbols.
13683 (expand_symtab_containing_pc): Use data_p.
13684 (find_pc_sect_compunit_symtab): Likewise.
13686 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13688 * breakpoint.c (describe_other_breakpoints): Use address style
13689 to print addresses.
13690 (say_where): Likewise.
13692 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13694 * ada-typeprint.c (print_func_type): Print function name
13695 style to print function name.
13696 * c-typeprint.c (c_print_type_1): Likewise.
13698 2019-02-11 Alan Hayward <alan.hayward@arm.com>
13700 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
13703 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13705 * c-exp.y (direct_abs_decl): Use emplace_back to record the
13708 2019-02-10 Joel Brobecker <brobecker@adacore.com>
13710 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
13711 TYPE_CODE_REF types.
13713 2019-02-08 Jim Wilson <jimw@sifive.com>
13715 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
13716 (riscv_linux_fregset): New.
13717 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
13719 2019-02-07 Tom Tromey <tom@tromey.com>
13721 * thread.c (thread_cancel_execution_command): Update.
13722 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
13724 (struct thread_fsm_ops): Remove.
13725 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
13726 (thread_fsm_should_stop, thread_fsm_return_value)
13727 (thread_fsm_set_finished, thread_fsm_finished_p)
13728 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
13730 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
13731 * infrun.c (clear_proceed_status_thread)
13732 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
13733 (print_stop_event): Update.
13734 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
13736 (step_command_fsm_ops): Remove.
13737 (new_step_command_fsm): Remove.
13739 (step_command_fsm::should_stop): Rename from
13740 step_command_fsm_should_stop.
13741 (step_command_fsm::clean_up): Rename from
13742 step_command_fsm_clean_up.
13743 (step_command_fsm::do_async_reply_reason): Rename from
13744 step_command_fsm_async_reply_reason.
13745 (struct until_next_fsm): Inherit from thread_fsm. Add
13747 (until_next_fsm_ops): Remove.
13748 (new_until_next_fsm): Remove.
13749 (until_next_fsm::should_stop): Rename from
13750 until_next_fsm_should_stop.
13751 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
13752 (until_next_fsm::do_async_reply_reason): Rename from
13753 until_next_fsm_async_reply_reason.
13754 (struct finish_command_fsm): Inherit from thread_fsm. Add
13755 constructor. Change type of breakpoint.
13756 (finish_command_fsm_ops): Remove.
13757 (new_finish_command_fsm): Remove.
13758 (finish_command_fsm::should_stop): Rename from
13759 finish_command_fsm_should_stop.
13760 (finish_command_fsm::clean_up): Rename from
13761 finish_command_fsm_clean_up.
13762 (finish_command_fsm::return_value): Rename from
13763 finish_command_fsm_return_value.
13764 (finish_command_fsm::do_async_reply_reason): Rename from
13765 finish_command_fsm_async_reply_reason.
13766 (finish_command): Update.
13767 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
13769 (call_thread_fsm_ops): Remove.
13770 (call_thread_fsm::call_thread_fsm): Rename from
13771 new_call_thread_fsm.
13772 (call_thread_fsm::should_stop): Rename from
13773 call_thread_fsm_should_stop.
13774 (call_thread_fsm::should_notify_stop): Rename from
13775 call_thread_fsm_should_notify_stop.
13776 (run_inferior_call, call_function_by_hand_dummy): Update.
13777 * cli/cli-interp.c (should_print_stop_to_console): Update.
13778 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
13779 Add constructor. Change type of location_breakpoint,
13781 (until_break_fsm_ops): Remove.
13782 (new_until_break_fsm): Remove.
13783 (until_break_fsm::should_stop): Rename from
13784 until_break_fsm_should_stop.
13785 (until_break_fsm::clean_up): Rename from
13786 until_break_fsm_clean_up.
13787 (until_break_fsm::do_async_reply_reason): Rename from
13788 until_break_fsm_async_reply_reason.
13789 (until_break_command): Update.
13790 * thread-fsm.c: Remove.
13791 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
13793 2019-02-07 Tom Tromey <tom@tromey.com>
13795 * yy-remap.h: Add include guard.
13796 * xtensa-tdep.h: Add include guard.
13797 * xcoffread.h: Rename include guard.
13798 * varobj-iter.h: Add include guard.
13799 * tui/tui.h: Rename include guard.
13800 * tui/tui-winsource.h: Rename include guard.
13801 * tui/tui-wingeneral.h: Rename include guard.
13802 * tui/tui-windata.h: Rename include guard.
13803 * tui/tui-win.h: Rename include guard.
13804 * tui/tui-stack.h: Rename include guard.
13805 * tui/tui-source.h: Rename include guard.
13806 * tui/tui-regs.h: Rename include guard.
13807 * tui/tui-out.h: Rename include guard.
13808 * tui/tui-layout.h: Rename include guard.
13809 * tui/tui-io.h: Rename include guard.
13810 * tui/tui-hooks.h: Rename include guard.
13811 * tui/tui-file.h: Rename include guard.
13812 * tui/tui-disasm.h: Rename include guard.
13813 * tui/tui-data.h: Rename include guard.
13814 * tui/tui-command.h: Rename include guard.
13815 * tic6x-tdep.h: Add include guard.
13816 * target/waitstatus.h: Rename include guard.
13817 * target/wait.h: Rename include guard.
13818 * target/target.h: Rename include guard.
13819 * target/resume.h: Rename include guard.
13820 * target-float.h: Rename include guard.
13821 * stabsread.h: Add include guard.
13822 * rs6000-tdep.h: Add include guard.
13823 * riscv-fbsd-tdep.h: Add include guard.
13824 * regformats/regdef.h: Rename include guard.
13825 * record.h: Rename include guard.
13826 * python/python.h: Rename include guard.
13827 * python/python-internal.h: Rename include guard.
13828 * python/py-stopevent.h: Rename include guard.
13829 * python/py-ref.h: Rename include guard.
13830 * python/py-record.h: Rename include guard.
13831 * python/py-record-full.h: Rename include guard.
13832 * python/py-record-btrace.h: Rename include guard.
13833 * python/py-instruction.h: Rename include guard.
13834 * python/py-events.h: Rename include guard.
13835 * python/py-event.h: Rename include guard.
13836 * procfs.h: Add include guard.
13837 * proc-utils.h: Add include guard.
13838 * p-lang.h: Add include guard.
13839 * or1k-tdep.h: Rename include guard.
13840 * observable.h: Rename include guard.
13841 * nto-tdep.h: Rename include guard.
13842 * nat/x86-linux.h: Rename include guard.
13843 * nat/x86-linux-dregs.h: Rename include guard.
13844 * nat/x86-gcc-cpuid.h: Add include guard.
13845 * nat/x86-dregs.h: Rename include guard.
13846 * nat/x86-cpuid.h: Rename include guard.
13847 * nat/ppc-linux.h: Rename include guard.
13848 * nat/mips-linux-watch.h: Rename include guard.
13849 * nat/linux-waitpid.h: Rename include guard.
13850 * nat/linux-ptrace.h: Rename include guard.
13851 * nat/linux-procfs.h: Rename include guard.
13852 * nat/linux-osdata.h: Rename include guard.
13853 * nat/linux-nat.h: Rename include guard.
13854 * nat/linux-namespaces.h: Rename include guard.
13855 * nat/linux-btrace.h: Rename include guard.
13856 * nat/glibc_thread_db.h: Rename include guard.
13857 * nat/gdb_thread_db.h: Rename include guard.
13858 * nat/gdb_ptrace.h: Rename include guard.
13859 * nat/fork-inferior.h: Rename include guard.
13860 * nat/amd64-linux-siginfo.h: Rename include guard.
13861 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
13862 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
13863 * nat/aarch64-linux.h: Rename include guard.
13864 * nat/aarch64-linux-hw-point.h: Rename include guard.
13865 * mn10300-tdep.h: Add include guard.
13866 * mips-linux-tdep.h: Add include guard.
13867 * mi/mi-parse.h: Rename include guard.
13868 * mi/mi-out.h: Rename include guard.
13869 * mi/mi-main.h: Rename include guard.
13870 * mi/mi-interp.h: Rename include guard.
13871 * mi/mi-getopt.h: Rename include guard.
13872 * mi/mi-console.h: Rename include guard.
13873 * mi/mi-common.h: Rename include guard.
13874 * mi/mi-cmds.h: Rename include guard.
13875 * mi/mi-cmd-break.h: Rename include guard.
13876 * m2-lang.h: Add include guard.
13877 * location.h: Rename include guard.
13878 * linux-record.h: Rename include guard.
13879 * linux-nat.h: Add include guard.
13880 * linux-fork.h: Add include guard.
13881 * i386-darwin-tdep.h: Rename include guard.
13882 * hppa-linux-offsets.h: Add include guard.
13883 * guile/guile.h: Rename include guard.
13884 * guile/guile-internal.h: Rename include guard.
13885 * gnu-nat.h: Rename include guard.
13886 * gdb-stabs.h: Rename include guard.
13887 * frv-tdep.h: Add include guard.
13888 * f-lang.h: Add include guard.
13889 * event-loop.h: Add include guard.
13890 * darwin-nat.h: Rename include guard.
13891 * cp-abi.h: Rename include guard.
13892 * config/sparc/nm-sol2.h: Rename include guard.
13893 * config/nm-nto.h: Rename include guard.
13894 * config/nm-linux.h: Add include guard.
13895 * config/i386/nm-i386gnu.h: Rename include guard.
13896 * config/djgpp/nl_types.h: Rename include guard.
13897 * config/djgpp/langinfo.h: Rename include guard.
13898 * compile/gcc-cp-plugin.h: Add include guard.
13899 * compile/gcc-c-plugin.h: Add include guard.
13900 * compile/compile.h: Rename include guard.
13901 * compile/compile-object-run.h: Rename include guard.
13902 * compile/compile-object-load.h: Rename include guard.
13903 * compile/compile-internal.h: Rename include guard.
13904 * compile/compile-cplus.h: Rename include guard.
13905 * compile/compile-c.h: Rename include guard.
13906 * common/xml-utils.h: Rename include guard.
13907 * common/x86-xstate.h: Rename include guard.
13908 * common/version.h: Rename include guard.
13909 * common/vec.h: Rename include guard.
13910 * common/tdesc.h: Rename include guard.
13911 * common/selftest.h: Rename include guard.
13912 * common/scoped_restore.h: Rename include guard.
13913 * common/scoped_mmap.h: Rename include guard.
13914 * common/scoped_fd.h: Rename include guard.
13915 * common/safe-iterator.h: Rename include guard.
13916 * common/run-time-clock.h: Rename include guard.
13917 * common/refcounted-object.h: Rename include guard.
13918 * common/queue.h: Rename include guard.
13919 * common/ptid.h: Rename include guard.
13920 * common/print-utils.h: Rename include guard.
13921 * common/preprocessor.h: Rename include guard.
13922 * common/pathstuff.h: Rename include guard.
13923 * common/observable.h: Rename include guard.
13924 * common/netstuff.h: Rename include guard.
13925 * common/job-control.h: Rename include guard.
13926 * common/host-defs.h: Rename include guard.
13927 * common/gdb_wait.h: Rename include guard.
13928 * common/gdb_vecs.h: Rename include guard.
13929 * common/gdb_unlinker.h: Rename include guard.
13930 * common/gdb_unique_ptr.h: Rename include guard.
13931 * common/gdb_tilde_expand.h: Rename include guard.
13932 * common/gdb_sys_time.h: Rename include guard.
13933 * common/gdb_string_view.h: Rename include guard.
13934 * common/gdb_splay_tree.h: Rename include guard.
13935 * common/gdb_setjmp.h: Rename include guard.
13936 * common/gdb_ref_ptr.h: Rename include guard.
13937 * common/gdb_optional.h: Rename include guard.
13938 * common/gdb_locale.h: Rename include guard.
13939 * common/gdb_assert.h: Rename include guard.
13940 * common/filtered-iterator.h: Rename include guard.
13941 * common/filestuff.h: Rename include guard.
13942 * common/fileio.h: Rename include guard.
13943 * common/environ.h: Rename include guard.
13944 * common/common-utils.h: Rename include guard.
13945 * common/common-types.h: Rename include guard.
13946 * common/common-regcache.h: Rename include guard.
13947 * common/common-inferior.h: Rename include guard.
13948 * common/common-gdbthread.h: Rename include guard.
13949 * common/common-exceptions.h: Rename include guard.
13950 * common/common-defs.h: Rename include guard.
13951 * common/common-debug.h: Rename include guard.
13952 * common/cleanups.h: Rename include guard.
13953 * common/buffer.h: Rename include guard.
13954 * common/btrace-common.h: Rename include guard.
13955 * common/break-common.h: Rename include guard.
13956 * cli/cli-utils.h: Rename include guard.
13957 * cli/cli-style.h: Rename include guard.
13958 * cli/cli-setshow.h: Rename include guard.
13959 * cli/cli-script.h: Rename include guard.
13960 * cli/cli-interp.h: Rename include guard.
13961 * cli/cli-decode.h: Rename include guard.
13962 * cli/cli-cmds.h: Rename include guard.
13963 * charset-list.h: Add include guard.
13964 * buildsym-legacy.h: Rename include guard.
13965 * bfin-tdep.h: Add include guard.
13966 * ax.h: Rename include guard.
13967 * arm-linux-tdep.h: Add include guard.
13968 * arm-fbsd-tdep.h: Add include guard.
13969 * arch/xtensa.h: Rename include guard.
13970 * arch/tic6x.h: Add include guard.
13971 * arch/i386.h: Add include guard.
13972 * arch/arm.h: Rename include guard.
13973 * arch/arm-linux.h: Rename include guard.
13974 * arch/arm-get-next-pcs.h: Rename include guard.
13975 * arch/amd64.h: Add include guard.
13976 * arch/aarch64-insn.h: Rename include guard.
13977 * arch-utils.h: Rename include guard.
13978 * annotate.h: Add include guard.
13979 * amd64-darwin-tdep.h: Rename include guard.
13980 * aarch64-linux-tdep.h: Add include guard.
13981 * aarch64-fbsd-tdep.h: Add include guard.
13982 * aarch32-linux-nat.h: Add include guard.
13984 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13986 * macrotab.c (macro_define_internal): New function that
13987 factorizes macro_define_object_internal and macro_define_function
13989 (macro_define_object_internal): Use macro_define_internal.
13990 (macro_define_function): Likewise.
13992 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13994 * macrocmd.c (extract_identifier): Return
13995 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
13998 2019-02-06 John Baldwin <jhb@FreeBSD.org>
14000 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14002 2019-02-05 Tom Tromey <tom@tromey.com>
14004 * target.c (target_stack::unpush): Move assertion earlier.
14006 2019-01-30 Tom Tromey <tom@tromey.com>
14009 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14010 (gdbpy_parse_and_eval): Likewise.
14011 * python/python-internal.h (gdbpy_allow_threads): New class.
14013 2019-01-28 John Baldwin <jhb@FreeBSD.org>
14015 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14016 (aarch64_fbsd_fpregmap): Move earlier.
14017 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14018 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14019 instead of individual calls to trad_frame_set_reg_addr.
14020 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14022 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14023 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14024 instead of individual calls to trad_frame_set_reg_addr.
14026 2019-01-28 Alan Hayward <alan.hayward@arm.com>
14028 * CONTRIBUTE: Replace contribution list with wiki link.
14030 2019-01-25 Tom Tromey <tom@tromey.com>
14032 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14034 2019-01-25 Tom Tromey <tom@tromey.com>
14036 * xtensa-linux-nat.c: Fix common/ includes.
14037 * xml-support.h: Fix common/ includes.
14038 * xml-support.c: Fix common/ includes.
14039 * x86-linux-nat.c: Fix common/ includes.
14040 * windows-nat.c: Fix common/ includes.
14041 * varobj.h: Fix common/ includes.
14042 * varobj.c: Fix common/ includes.
14043 * value.c: Fix common/ includes.
14044 * valops.c: Fix common/ includes.
14045 * utils.c: Fix common/ includes.
14046 * unittests/xml-utils-selftests.c: Fix common/ includes.
14047 * unittests/utils-selftests.c: Fix common/ includes.
14048 * unittests/unpack-selftests.c: Fix common/ includes.
14049 * unittests/tracepoint-selftests.c: Fix common/ includes.
14050 * unittests/style-selftests.c: Fix common/ includes.
14051 * unittests/string_view-selftests.c: Fix common/ includes.
14052 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14053 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14054 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14055 * unittests/rsp-low-selftests.c: Fix common/ includes.
14056 * unittests/parse-connection-spec-selftests.c: Fix common/
14058 * unittests/optional-selftests.c: Fix common/ includes.
14059 * unittests/offset-type-selftests.c: Fix common/ includes.
14060 * unittests/observable-selftests.c: Fix common/ includes.
14061 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14062 * unittests/memrange-selftests.c: Fix common/ includes.
14063 * unittests/memory-map-selftests.c: Fix common/ includes.
14064 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14065 * unittests/function-view-selftests.c: Fix common/ includes.
14066 * unittests/environ-selftests.c: Fix common/ includes.
14067 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14068 * unittests/common-utils-selftests.c: Fix common/ includes.
14069 * unittests/cli-utils-selftests.c: Fix common/ includes.
14070 * unittests/array-view-selftests.c: Fix common/ includes.
14071 * ui-file.c: Fix common/ includes.
14072 * tui/tui-io.c: Fix common/ includes.
14073 * tracepoint.h: Fix common/ includes.
14074 * tracepoint.c: Fix common/ includes.
14075 * tracefile-tfile.c: Fix common/ includes.
14076 * top.h: Fix common/ includes.
14077 * top.c: Fix common/ includes.
14078 * thread.c: Fix common/ includes.
14079 * target/waitstatus.h: Fix common/ includes.
14080 * target/waitstatus.c: Fix common/ includes.
14081 * target.h: Fix common/ includes.
14082 * target.c: Fix common/ includes.
14083 * target-memory.c: Fix common/ includes.
14084 * target-descriptions.c: Fix common/ includes.
14085 * symtab.h: Fix common/ includes.
14086 * symfile.c: Fix common/ includes.
14087 * stap-probe.c: Fix common/ includes.
14088 * spu-linux-nat.c: Fix common/ includes.
14089 * sparc-nat.c: Fix common/ includes.
14090 * source.c: Fix common/ includes.
14091 * solib.c: Fix common/ includes.
14092 * solib-target.c: Fix common/ includes.
14093 * ser-unix.c: Fix common/ includes.
14094 * ser-tcp.c: Fix common/ includes.
14095 * ser-pipe.c: Fix common/ includes.
14096 * ser-base.c: Fix common/ includes.
14097 * selftest-arch.c: Fix common/ includes.
14098 * s12z-tdep.c: Fix common/ includes.
14099 * rust-exp.y: Fix common/ includes.
14100 * rs6000-aix-tdep.c: Fix common/ includes.
14101 * riscv-tdep.c: Fix common/ includes.
14102 * remote.c: Fix common/ includes.
14103 * remote-notif.h: Fix common/ includes.
14104 * remote-fileio.h: Fix common/ includes.
14105 * remote-fileio.c: Fix common/ includes.
14106 * regcache.h: Fix common/ includes.
14107 * regcache.c: Fix common/ includes.
14108 * record-btrace.c: Fix common/ includes.
14109 * python/python.c: Fix common/ includes.
14110 * python/py-type.c: Fix common/ includes.
14111 * python/py-inferior.c: Fix common/ includes.
14112 * progspace.h: Fix common/ includes.
14113 * producer.c: Fix common/ includes.
14114 * procfs.c: Fix common/ includes.
14115 * proc-api.c: Fix common/ includes.
14116 * printcmd.c: Fix common/ includes.
14117 * ppc-linux-nat.c: Fix common/ includes.
14118 * parser-defs.h: Fix common/ includes.
14119 * osdata.c: Fix common/ includes.
14120 * obsd-nat.c: Fix common/ includes.
14121 * nat/x86-linux.c: Fix common/ includes.
14122 * nat/x86-linux-dregs.c: Fix common/ includes.
14123 * nat/x86-dregs.h: Fix common/ includes.
14124 * nat/x86-dregs.c: Fix common/ includes.
14125 * nat/ppc-linux.c: Fix common/ includes.
14126 * nat/mips-linux-watch.h: Fix common/ includes.
14127 * nat/mips-linux-watch.c: Fix common/ includes.
14128 * nat/linux-waitpid.c: Fix common/ includes.
14129 * nat/linux-ptrace.h: Fix common/ includes.
14130 * nat/linux-ptrace.c: Fix common/ includes.
14131 * nat/linux-procfs.c: Fix common/ includes.
14132 * nat/linux-personality.c: Fix common/ includes.
14133 * nat/linux-osdata.c: Fix common/ includes.
14134 * nat/linux-namespaces.c: Fix common/ includes.
14135 * nat/linux-btrace.h: Fix common/ includes.
14136 * nat/linux-btrace.c: Fix common/ includes.
14137 * nat/fork-inferior.c: Fix common/ includes.
14138 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14139 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14140 * nat/aarch64-linux.c: Fix common/ includes.
14141 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14142 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14143 * namespace.h: Fix common/ includes.
14144 * mips-linux-tdep.c: Fix common/ includes.
14145 * minsyms.c: Fix common/ includes.
14146 * mi/mi-parse.h: Fix common/ includes.
14147 * mi/mi-main.c: Fix common/ includes.
14148 * mi/mi-cmd-env.c: Fix common/ includes.
14149 * memrange.h: Fix common/ includes.
14150 * memattr.c: Fix common/ includes.
14151 * maint.h: Fix common/ includes.
14152 * maint.c: Fix common/ includes.
14153 * main.c: Fix common/ includes.
14154 * machoread.c: Fix common/ includes.
14155 * location.c: Fix common/ includes.
14156 * linux-thread-db.c: Fix common/ includes.
14157 * linux-nat.c: Fix common/ includes.
14158 * linux-fork.c: Fix common/ includes.
14159 * inline-frame.c: Fix common/ includes.
14160 * infrun.c: Fix common/ includes.
14161 * inflow.c: Fix common/ includes.
14162 * inferior.h: Fix common/ includes.
14163 * inferior.c: Fix common/ includes.
14164 * infcmd.c: Fix common/ includes.
14165 * inf-ptrace.c: Fix common/ includes.
14166 * inf-child.c: Fix common/ includes.
14167 * ia64-linux-nat.c: Fix common/ includes.
14168 * i387-tdep.c: Fix common/ includes.
14169 * i386-tdep.c: Fix common/ includes.
14170 * i386-linux-tdep.c: Fix common/ includes.
14171 * i386-linux-nat.c: Fix common/ includes.
14172 * i386-go32-tdep.c: Fix common/ includes.
14173 * i386-fbsd-tdep.c: Fix common/ includes.
14174 * i386-fbsd-nat.c: Fix common/ includes.
14175 * guile/scm-type.c: Fix common/ includes.
14176 * guile/guile.c: Fix common/ includes.
14177 * go32-nat.c: Fix common/ includes.
14178 * gnu-nat.c: Fix common/ includes.
14179 * gdbthread.h: Fix common/ includes.
14180 * gdbarch-selftests.c: Fix common/ includes.
14181 * gdb_usleep.c: Fix common/ includes.
14182 * gdb_select.h: Fix common/ includes.
14183 * gdb_bfd.c: Fix common/ includes.
14184 * gcore.c: Fix common/ includes.
14185 * fork-child.c: Fix common/ includes.
14186 * findvar.c: Fix common/ includes.
14187 * fbsd-nat.c: Fix common/ includes.
14188 * event-top.c: Fix common/ includes.
14189 * event-loop.c: Fix common/ includes.
14190 * dwarf2read.c: Fix common/ includes.
14191 * dwarf2loc.c: Fix common/ includes.
14192 * dwarf2-frame.c: Fix common/ includes.
14193 * dwarf-index-cache.c: Fix common/ includes.
14194 * dtrace-probe.c: Fix common/ includes.
14195 * disasm-selftests.c: Fix common/ includes.
14196 * defs.h: Fix common/ includes.
14197 * csky-tdep.c: Fix common/ includes.
14198 * cp-valprint.c: Fix common/ includes.
14199 * cp-support.h: Fix common/ includes.
14200 * cp-support.c: Fix common/ includes.
14201 * corelow.c: Fix common/ includes.
14202 * completer.h: Fix common/ includes.
14203 * completer.c: Fix common/ includes.
14204 * compile/compile.c: Fix common/ includes.
14205 * compile/compile-loc2c.c: Fix common/ includes.
14206 * compile/compile-cplus-types.c: Fix common/ includes.
14207 * compile/compile-cplus-symbols.c: Fix common/ includes.
14208 * command.h: Fix common/ includes.
14209 * cli/cli-dump.c: Fix common/ includes.
14210 * cli/cli-cmds.c: Fix common/ includes.
14211 * charset.c: Fix common/ includes.
14212 * build-id.c: Fix common/ includes.
14213 * btrace.h: Fix common/ includes.
14214 * btrace.c: Fix common/ includes.
14215 * breakpoint.h: Fix common/ includes.
14216 * breakpoint.c: Fix common/ includes.
14218 (enum agent_op): Fix common/ includes.
14219 * ax-general.c (struct aop_map): Fix common/ includes.
14220 * ax-gdb.c: Fix common/ includes.
14221 * auxv.c: Fix common/ includes.
14222 * auto-load.c: Fix common/ includes.
14223 * arm-tdep.c: Fix common/ includes.
14224 * arch/riscv.c: Fix common/ includes.
14225 * arch/ppc-linux-common.c: Fix common/ includes.
14226 * arch/i386.c: Fix common/ includes.
14227 * arch/arm.c: Fix common/ includes.
14228 * arch/arm-linux.c: Fix common/ includes.
14229 * arch/arm-get-next-pcs.c: Fix common/ includes.
14230 * arch/amd64.c: Fix common/ includes.
14231 * arch/aarch64.c: Fix common/ includes.
14232 * arch/aarch64-insn.c: Fix common/ includes.
14233 * arch-utils.c: Fix common/ includes.
14234 * amd64-windows-tdep.c: Fix common/ includes.
14235 * amd64-tdep.c: Fix common/ includes.
14236 * amd64-sol2-tdep.c: Fix common/ includes.
14237 * amd64-obsd-tdep.c: Fix common/ includes.
14238 * amd64-nbsd-tdep.c: Fix common/ includes.
14239 * amd64-linux-tdep.c: Fix common/ includes.
14240 * amd64-linux-nat.c: Fix common/ includes.
14241 * amd64-fbsd-tdep.c: Fix common/ includes.
14242 * amd64-fbsd-nat.c: Fix common/ includes.
14243 * amd64-dicos-tdep.c: Fix common/ includes.
14244 * amd64-darwin-tdep.c: Fix common/ includes.
14245 * agent.c: Fix common/ includes.
14246 * ada-lang.h: Fix common/ includes.
14247 * ada-lang.c: Fix common/ includes.
14248 * aarch64-tdep.c: Fix common/ includes.
14250 2019-01-25 Tom Tromey <tom@tromey.com>
14252 * common/create-version.sh: Use common/version.h.
14254 2019-01-24 Pedro Alves <palves@redhat.com>
14256 * infrun.c (signal_stop, signal_print, signal_program)
14257 (signal_catch, signal_pass): Now arrays instead of pointers.
14258 (update_signals_program_target, do_target_resume)
14259 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
14260 * linux-nat.c (linux_nat_target::pass_signals)
14261 (linux_nat_target::create_inferior, linux_nat_target::attach):
14263 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
14264 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
14265 * procfs.c (procfs_target::pass_signals): Adjust.
14266 * record-full.c (record_full_target::resume): Adjust.
14267 * remote.c (remote_target::pass_signals)
14268 (remote_target::program_signals): Adjust.
14269 * target-debug.h (target_debug_print_signals): Now takes a
14270 gdb::array_view as parameter. Adjust.
14271 * target.h (target_ops) <pass_signals, program_signals>: Replace
14272 pointer and length parameters with gdb::array_view.
14273 (target_pass_signals, target_program_signals): Likewise.
14274 * target-delegates.c: Regenerate.
14276 2019-01-24 Pedro Alves <palves@redhat.com>
14278 * common/forward-scope-exit.h
14279 (forward_scope_exit::forward_scope_exit): Pass arguments to
14280 m_bind_function directly, instead of creating a std::bind and
14283 2019-01-24 Alan Hayward <alan.hayward@arm.com>
14285 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14286 for static members.
14287 (pass_in_v_vfp_candidate): Likewise.
14289 2019-01-23 Tom Tromey <tom@tromey.com>
14290 Pedro Alves <palves@redhat.com>
14292 * regcache.c (class regcache_invalidator): Remove.
14293 (regcache::raw_write): Use make_scope_exit.
14295 2019-01-23 Tom Tromey <tom@tromey.com>
14297 * ui-out.h (class ui_out_emit_type): Update comment.
14299 2019-01-23 Tom Tromey <tom@tromey.com>
14301 * infrun.c (fetch_inferior_event): Update comment.
14303 2019-01-23 Tom Tromey <tom@tromey.com>
14304 Pedro Alves <palves@redhat.com>
14306 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
14308 (fetch_inferior_event): Use SCOPE_EXIT.
14311 2019-01-23 Tom Tromey <tom@tromey.com>
14312 Pedro Alves <palves@redhat.com>
14314 * infrun.c (disable_thread_events): Delete.
14315 (stop_all_threads): Use SCOPE_EXIT.
14317 2019-01-23 Tom Tromey <tom@tromey.com>
14318 Pedro Alves <palves@redhat.com>
14320 * symfile.c: Include forward-scope-exit.h.
14321 (clear_symtab_users_cleanup): Replace forward declaration with
14322 a FORWARD_SCOPE_EXIT.
14323 (syms_from_objfile_1): Use the forward_scope_exit and
14324 gdb::optional instead of cleanup_function.
14325 (reread_symbols): Use the forward_scope_exit instead of
14327 (clear_symtab_users_cleanup): Remove function.
14329 2019-01-23 Tom Tromey <tom@tromey.com>
14330 Pedro Alves <palves@redhat.com>
14332 * linux-nat.c: Include scope-exit.h.
14333 (cleanup_target_stop): Remove.
14334 (linux_nat_target::static_tracepoint_markers_by_strid): Use
14337 2019-01-23 Tom Tromey <tom@tromey.com>
14338 Pedro Alves <palves@redhat.com>
14340 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
14341 (call_function_by_hand_dummy): Use SCOPE_EXIT.
14343 2019-01-23 Tom Tromey <tom@tromey.com>
14344 Andrew Burgess <andrew.burgess@embecosm.com>
14345 Pedro Alves <palves@redhat.com>
14347 * infrun.c (fetch_inferior_event): Use scope_exit.
14348 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
14349 * top.c (execute_command): Use scope_exit.
14350 * breakpoint.c (bpstat_do_actions): Use scope_exit.
14351 * utils.c (do_bpstat_clear_actions_cleanup)
14352 (make_bpstat_clear_actions_cleanup): Remove.
14354 2019-01-23 Tom Tromey <tom@tromey.com>
14355 Pedro Alves <palves@redhat.com>
14357 * infrun.c: Include "common/scope-exit.h"
14358 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
14359 (wait_for_inferior): Use SCOPE_EXIT.
14360 (fetch_inferior_event): Use scope_exit.
14362 2019-01-23 Tom Tromey <tom@tromey.com>
14363 Pedro Alves <palves@redhat.com>
14365 * breakpoint.c (create_breakpoint): Remove cleanup.
14367 2019-01-23 Tom Tromey <tom@tromey.com>
14368 Andrew Burgess <andrew.burgess@embecosm.com>
14369 Pedro Alves <palves@redhat.com>
14371 2019-01-23 Pedro Alves <palves@redhat.com>
14373 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
14375 2019-01-23 Pedro Alves <palves@redhat.com>
14376 Andrew Burgess <andrew.burgess@embecosm.com>
14378 * gdbthread.h: Include "common/forward-scope-exit.h".
14379 (scoped_finish_thread_state): Redefine custom class in terms of
14380 forward_scope_exit.
14382 2019-01-23 Pedro Alves <palves@redhat.com>
14383 Andrew Burgess <andrew.burgess@embecosm.com>
14385 * common/forward-scope-exit.h: New file.
14387 2019-01-23 Pedro Alves <palves@redhat.com>
14388 Andrew Burgess <andrew.burgess@embecosm.com>
14389 Tom Tromey <tom@tromey.com>
14391 * common/scope-exit.h: New file.
14393 2019-01-23 Pedro Alves <palves@redhat.com>
14395 * common/preprocessor.h (ESC): Rename to ...
14396 (ESC_PARENS): ... this.
14397 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
14398 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
14400 2019-01-23 Tom Tromey <tom@tromey.com>
14402 * language.h (class scoped_switch_to_sym_language_if_auto):
14403 Initialize m_lang in both cases.
14405 2019-01-23 Alan Hayward <alan.hayward@arm.com>
14407 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
14410 2019-01-22 Tom Tromey <tom@tromey.com>
14412 * corelow.c: Do not include sys/file.h.
14414 2019-01-22 Tom Tromey <tom@tromey.com>
14416 * tui/tui-wingeneral.h: Include gdb_curses.h.
14418 2019-01-22 Tom Tromey <tom@tromey.com>
14420 * source-cache.h (class source_cache) <get_source_lines,
14421 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
14423 2019-01-22 Tom Tromey <tom@tromey.com>
14425 * remote-fileio.h (struct remote_target): Declare.
14427 2019-01-22 Tom Tromey <tom@tromey.com>
14429 * python/py-arch.c: Do not include py-ref.h.
14430 * python/py-bpevent.c: Do not include py-ref.h.
14431 * python/py-cmd.c: Do not include py-ref.h.
14432 * python/py-continueevent.c: Do not include py-ref.h.
14433 * python/py-event.h: Do not include py-ref.h.
14434 * python/py-evtregistry.c: Do not include py-ref.h.
14435 * python/py-finishbreakpoint.c: Do not include py-ref.h.
14436 * python/py-frame.c: Do not include py-ref.h.
14437 * python/py-framefilter.c: Do not include py-ref.h.
14438 * python/py-function.c: Do not include py-ref.h.
14439 * python/py-infevents.c: Do not include py-ref.h.
14440 * python/py-linetable.c: Do not include py-ref.h.
14441 * python/py-objfile.c: Do not include py-ref.h.
14442 * python/py-param.c: Do not include py-ref.h.
14443 * python/py-prettyprint.c: Do not include py-ref.h.
14444 * python/py-progspace.c: Do not include py-ref.h.
14445 * python/py-symbol.c: Do not include py-ref.h.
14446 * python/py-symtab.c: Do not include py-ref.h.
14447 * python/py-type.c: Do not include py-ref.h.
14448 * python/py-unwind.c: Do not include py-ref.h.
14449 * python/py-utils.c: Do not include py-ref.h.
14450 * python/py-value.c: Do not include py-ref.h.
14451 * python/py-varobj.c: Do not include py-ref.h.
14452 * python/py-xmethods.c: Do not include py-ref.h.
14453 * python/python.c: Do not include py-ref.h.
14454 * varobj.c: Do not include py-ref.h.
14456 2019-01-22 Tom Tromey <tom@tromey.com>
14458 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
14459 keyword for bcache.
14461 2019-01-22 Tom Tromey <tom@tromey.com>
14463 * compile/compile-cplus-types.c: Remove a comment by #include.
14465 2019-01-22 Tom Tromey <tom@tromey.com>
14467 * compile/gcc-c-plugin.h: Include compile-internal.h.
14469 2019-01-22 Tom Tromey <tom@tromey.com>
14471 * stabsread.c (EXTERN): Do not define.
14472 (symnum, next_symbol_text_func, processing_gcc_compilation)
14473 (within_function, global_sym_chain, global_stabs)
14474 (previous_stab_code, this_object_header_files)
14475 (n_this_object_header_files)
14476 (n_allocated_this_object_header_files): Define.
14477 * stabsread.h (EXTERN): Never define. Use "extern".
14479 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14481 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
14484 2019-01-21 Tom Tromey <tom@tromey.com>
14486 * ui-out.c: Fix includes.
14487 * tui/tui-source.c: Fix includes.
14488 * target.c: Fix includes.
14489 * remote.c: Fix includes.
14490 * regcache.c: Fix includes.
14491 * python/py-block.c: Fix includes.
14492 * printcmd.c: Fix includes.
14493 * or1k-tdep.c: Fix includes.
14494 * mi/mi-main.c: Fix includes.
14495 * m32r-tdep.c: Fix includes.
14496 * csky-tdep.c: Fix includes.
14497 * compile/compile-cplus-types.c: Fix includes.
14498 * cli/cli-interp.c: Fix includes.
14500 2019-01-21 Alan Hayward <alan.hayward@arm.com>
14502 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
14505 2019-01-16 Tom Tromey <tom@tromey.com>
14507 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
14509 (struct objfile) <msymbols_range>: Move from top level.
14510 <msymbols>: New method.
14511 (class objfile_msymbols): Remove.
14512 * symtab.c (default_collect_symbol_completion_matches_break_on):
14514 * symmisc.c (dump_msymbols): Update.
14515 * stabsread.c (scan_file_globals): Update.
14516 * objc-lang.c (info_selectors_command, info_classes_command)
14517 (find_methods): Update.
14518 * minsyms.c (find_solib_trampoline_target): Update.
14519 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
14520 * coffread.c (coff_symfile_read): Update.
14521 * ada-lang.c (ada_lookup_simple_minsym)
14522 (ada_collect_symbol_completion_matches): Update.
14524 2019-01-16 Tom Tromey <tom@tromey.com>
14526 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
14527 type. Remove no-argument constructor.
14528 <iterator::operator++>: Simplify.
14530 <end>: Use minimal_symbol_count.
14532 2019-01-16 Tom Tromey <tom@tromey.com>
14534 * objfiles.h (struct objfile) <psymtabs>: New method.
14535 (class objfile_psymtabs): Remove.
14536 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
14538 <range>: New method.
14539 (require_partial_symbols): Change return type.
14540 * psymtab.c (require_partial_symbols)
14541 (psym_expand_symtabs_matching): Update.
14542 * mdebugread.c (parse_partial_symbols): Update.
14543 * dbxread.c (dbx_end_psymtab): Update.
14545 2019-01-15 Tom Tromey <tom@tromey.com>
14547 * symtab.c (lookup_objfile_from_block)
14548 (lookup_symbol_in_objfile_symtabs)
14549 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
14550 (find_line_symtab, info_sources_command)
14551 (default_collect_symbol_completion_matches_break_on)
14552 (make_source_files_completion_list): Update.
14553 * symmisc.c (print_objfile_statistics, dump_objfile)
14554 (maintenance_print_symbols, maintenance_info_symtabs)
14555 (maintenance_check_symtabs, maintenance_info_line_tables):
14557 * source.c (select_source_symtab)
14558 (forget_cached_source_info_for_objfile): Update.
14559 * objfiles.h (class objfile_compunits): Remove.
14560 (struct objfile) <compunits_range>: New typedef.
14561 (compunits): New method.
14562 * objfiles.c (objfile_relocate1): Update.
14563 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14564 * maint.c (count_symtabs_and_blocks): Update.
14565 * linespec.c (iterate_over_all_matching_symtabs): Update.
14566 * cp-support.c (add_symbol_overload_list_qualified): Update.
14567 * coffread.c (coff_symtab_read): Update.
14568 * ada-lang.c (add_nonlocal_symbols)
14569 (ada_collect_symbol_completion_matches)
14570 (ada_add_global_exceptions): Update.
14572 2019-01-15 Tom Tromey <tom@tromey.com>
14574 * progspace.h (program_space) <objfiles_safe_range>: New
14576 <objfiles_safe>: New method.
14577 * objfiles.h (class all_objfiles_safe): Remove.
14578 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
14579 * jit.c (jit_inferior_exit_hook): Update.
14581 2019-01-17 Tom Tromey <tom@tromey.com>
14583 * progspace.h (program_space) <objfiles_range>: New typedef.
14584 <objfiles>: New method.
14585 <objfiles_head>: Rename from objfiles.
14586 (object_files): Update.
14587 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
14588 * guile/scm-pretty-print.c
14589 (ppscm_find_pretty_printer_from_objfiles): Update.
14590 * guile/scm-objfile.c (gdbscm_objfiles): Update.
14591 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
14593 * python/py-progspace.c (pspy_get_objfiles): Update.
14594 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14596 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14597 (objfpy_lookup_objfile_by_build_id): Update.
14598 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
14599 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14601 * symtab.c (iterate_over_symtabs, matching_obj_sections)
14602 (expand_symtab_containing_pc, lookup_objfile_from_block)
14603 (lookup_static_symbol, basic_lookup_transparent_type)
14604 (find_pc_sect_compunit_symtab, find_symbol_at_address)
14605 (find_line_symtab, info_sources_command)
14606 (default_collect_symbol_completion_matches_break_on)
14607 (make_source_files_completion_list, find_main_name): Update.
14608 * symmisc.c (print_symbol_bcache_statistics)
14609 (print_objfile_statistics, maintenance_print_symbols)
14610 (maintenance_print_msymbols, maintenance_print_objfiles)
14611 (maintenance_info_symtabs, maintenance_check_symtabs)
14612 (maintenance_expand_symtabs, maintenance_info_line_tables):
14614 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
14615 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
14616 (map_overlay_command, unmap_overlay_command)
14617 (simple_overlay_update, expand_symtabs_matching)
14618 (map_symbol_filenames): Update.
14619 * symfile-debug.c (set_debug_symfile): Update.
14620 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
14622 * source.c (select_source_symtab, forget_cached_source_info):
14624 * solib.c (solib_read_symbols): Update.
14625 * solib-spu.c (append_ocl_sos): Update.
14626 * psymtab.c (maintenance_print_psymbols)
14627 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
14628 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
14629 * printcmd.c (info_symbol_command): Update.
14630 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
14632 * objfiles.h (class all_objfiles): Remove.
14633 * objfiles.c (have_partial_symbols, have_full_symbols)
14634 (have_minimal_symbols, qsort_cmp, update_section_map)
14635 (shared_objfile_contains_address_p)
14636 (default_iterate_over_objfiles_in_search_order): Update.
14637 * objc-lang.c (info_selectors_command, info_classes_command)
14638 (find_methods): Update.
14639 * minsyms.c (find_solib_trampoline_target): Update.
14640 * maint.c (maintenance_info_sections)
14641 (maintenance_translate_address, count_symtabs_and_blocks):
14643 * main.c (captured_main_1): Update.
14644 * linux-thread-db.c (try_thread_db_load_from_pdir)
14645 (has_libpthread): Update.
14646 * linespec.c (iterate_over_all_matching_symtabs)
14647 (search_minsyms_for_name): Update.
14648 * jit.c (jit_find_objf_with_entry_addr): Update.
14649 * hppa-tdep.c (find_unwind_entry)
14650 (hppa_lookup_stub_minimal_symbol): Update.
14651 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
14653 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14654 (elf_gnu_ifunc_resolve_by_got): Update.
14655 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
14656 * dwarf-index-write.c (save_gdb_index_command): Update.
14657 * cp-support.c (add_symbol_overload_list_qualified): Update.
14658 * breakpoint.c (create_overlay_event_breakpoint)
14659 (create_longjmp_master_breakpoint)
14660 (create_std_terminate_master_breakpoint)
14661 (create_exception_master_breakpoint): Update.
14662 * blockframe.c (find_pc_partial_function): Update.
14663 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
14664 (ada_collect_symbol_completion_matches)
14665 (ada_add_global_exceptions): Update.
14667 2019-01-17 Tom Tromey <tom@tromey.com>
14669 * solib-target.c (lm_info_target_p): Remove typedef. Don't
14671 (solib_target_parse_libraries): Change return type.
14672 (library_list_start_segment, library_list_start_section)
14673 (library_list_end_library, library_list_start_library); Update.
14674 (solib_target_free_library_list): Remove.
14675 (solib_target_parse_libraries): Remove cleanup. Change return
14677 (solib_target_current_sos): Update.
14679 2019-01-17 Tom Tromey <tromey@bapiya>
14681 * valprint.c: Replace "the the" with "the".
14682 * symtab.c: Replace "the the" with "the".
14683 * solib.c: Replace "the the" with "the".
14684 * solib-dsbt.c: Replace "the the" with "the".
14685 * linespec.c: Replace "the the" with "the".
14686 * dwarf2loc.h: Replace "the the" with "the".
14687 * amd64-windows-tdep.c: Replace "the the" with "the".
14688 * aarch64-tdep.c: Replace "the the" with "the".
14690 2019-01-16 Keith Seitz <keiths@redhat.com>
14693 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
14694 <builder>: Rename to ..
14695 <m_builder>: ... this and make private.
14696 (dwarf2_cu::get_builder): New method. Change all users of
14697 `builder' to use this method.
14698 (dwarf2_start_symtab): Move to ...
14699 (dwarf2_cu::start_symtab): ... here. Update all callers
14700 (setup_type_unit_groups): Move to ...
14701 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
14703 (dwarf2_cu::reset_builder): New method.
14704 (process_full_compunit, process_full_type_unit): Use
14705 dwarf2_cu::reset_builder.
14706 (follow_die_offset): Record the ancestor CU if it is different
14707 from the followed DIE's CU.
14708 (follow_die_sig_1): Likewise.
14710 2019-01-15 Tom Tromey <tom@tromey.com>
14712 * remote.c (class remote_state) <buf>: Now a char_vector.
14713 <buf_size>: Remove.
14714 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
14716 (remote_target::getpkt_or_notif_sane_1)
14717 (remote_target::getpkt_sane)
14718 (remote_target::getpkt_or_notif_sane): Likewise.
14719 (class remote_target) <putpkt>: New overload.
14720 (remote_target::read_frame): Change type of "buf_p". Remove
14721 sizeof_p parameter.
14722 (packet_ok): New overload.
14723 (packet_check_result): New overload.
14726 2019-01-14 Tom Tromey <tom@tromey.com>
14728 * remote-notif.c (handle_notification, remote_notif_ack)
14729 (remote_notif_parse): Make "buf" const.
14730 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
14732 (remote_notif_parse, remote_notif_ack, handle_notification):
14734 * remote.c (remote_notif_stop_parse): Make "buf" const.
14735 (remote_target::remote_parse_stop_reply): Make "buf" const.
14736 (remote_notif_stop_ack): Make "buf" const.
14738 2019-01-14 Tom Tromey <tom@tromey.com>
14740 * remote.c (remote_console_output): Make parameter const.
14742 2019-01-14 Tom Tromey <tom@tromey.com>
14744 * target-debug.h (target_debug_print_signals): Constify.
14745 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
14746 * procfs.c (procfs_target::pass_signals): Update.
14747 * linux-nat.c (linux_nat_target::pass_signals): Update.
14748 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
14749 * target-delegates.c: Rebuild.
14750 * remote.c (remote_target::program_signals): Update.
14751 (remote_target::pass_signals): Update.
14752 * target.c (target_pass_signals): Constify argument.
14753 (target_program_signals): Likewise.
14754 * target.h (struct target_ops) <pass_signals, program_signals>:
14756 (target_pass_signals, target_program_signals): Constify argument.
14758 2019-01-14 Tom Tromey <tom@tromey.com>
14761 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
14763 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
14765 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
14767 * rs6000-tdep.c: Include reggroups.h.
14768 (IS_V_ALIAS_PSEUDOREG): Define.
14769 (rs6000_register_name): Return names for the "vX" aliases.
14770 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
14771 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
14772 aliases. Call default_register_reggroup_p for all other
14774 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
14776 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
14777 Handle "vX" aliases.
14778 (v_alias_pseudo_register_collect): New function.
14779 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
14780 (rs6000_gdbarch_init): Initialize "vX" aliases as
14781 pseudo-registers. Restore registration of
14782 rs6000_pseudo_register_reggroup_p with
14783 set_tdesc_pseudo_register_reggroup_p.
14785 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
14787 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
14788 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
14789 set_gdbarch_num_pseudo_regs.
14791 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14793 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
14794 Remove arg prefixname, add do_set and do_show.
14795 Add member functions set_list and show_list.
14796 * cli/cli-style.c (class cli_style_option): Update accordingly.
14797 (style_set_list): Move to file scope.
14798 (style_show_list): Likewise.
14799 (set_style): Call help_list.
14800 (show_style): Call cmd_show_list.
14801 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
14802 Update to use the new macro.
14804 2019-10-12 Joel Brobecker <brobecker@adacore.com>
14806 * ada-lang.c (_initialize_ada_language): Expand the help text
14807 for the "catch exception" command.
14809 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14811 * symtab.c (matching_obj_sections): Initialize obj,
14812 declare it closer to its usage.
14814 2019-01-10 Tom Tromey <tom@tromey.com>
14816 * thread-iter.h (inf_threads_iterator): Use next_iterator.
14817 (basic_inf_threads_range): Remove.
14818 (inf_threads_range, inf_non_exited_threads_range)
14819 (safe_inf_threads_range): Use next_adapter.
14821 2019-01-10 Keith Seitz <keiths@redhat.com>
14825 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
14826 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
14828 2019-01-10 Keith Seitz <keiths@redhat.com>
14832 * dictionary.c (pending_to_vector): Remove.
14833 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14834 Remove _1 suffix, replacing functions of the same name. Update
14836 (dict_create_hashed, dict_create_hashed_expandable)
14837 (dict_create_linear, dict_create_linear_expandable, dict_free)
14838 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
14839 Make functions static.
14841 2019-01-10 Keith Seitz <keiths@redhat.com>
14845 * dictionary.h (struct dictionary): Replace declaration with
14847 (dict_create_hashed, dict_create_hashed_expandable)
14848 (dict_create_linear, dict_create_linear_expandable)
14849 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
14850 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
14851 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
14852 taking multidictionary argument.
14853 [ALL_DICT_SYMBOLS]: Update for multidictionary.
14854 * block.h (struct block) <dict>: Change to multidictionary
14855 and rename `multidict'.
14856 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
14857 symmisc.c: Update all dictionary references to multidictionary.
14859 2019-01-10 Keith Seitz <keiths@redhat.com>
14863 * dictionary.c: Include unordered_map.
14864 (pending_to_vector): New function.
14865 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
14866 Rewrite the non-"_1" functions to take vector instead
14868 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
14869 "new" _1 versions of the same name.
14870 (multidictionary): Define.
14871 (std::hash<enum language): New definition.
14872 (collate_pending_symbols_by_language, mdict_create_hashed)
14873 (mdict_create_hashed_expandable, mdict_create_linear)
14874 (mdict_create_linear_expandable, mdict_free)
14875 (find_language_dictionary, create_new_language_dictionary)
14876 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
14877 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
14878 (mdict_size, mdict_empty): New functions.
14879 * dictionary.h (mdict_iterator): Define.
14881 2019-01-10 Pedro Alves <palves@redhat.com>
14883 * breakpoint.c (read_uploaded_action)
14884 (create_tracepoint_from_upload): Adjust to use
14885 gdb::unique_xmalloc_ptr.
14886 * ctf.c (ctf_write_uploaded_tp):
14887 (SET_ARRAY_FIELD): Use emplace_back.
14888 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
14889 * tracefile-tfile.c (tfile_write_uploaded_tp):
14890 * tracepoint.c (parse_tracepoint_definition): Adjust to use
14891 gdb::unique_xmalloc_ptr.
14892 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
14893 at_string, cond_string, cmd_strings>: Replace char pointers
14894 with gdb::unique_xmalloc_ptr.
14896 2019-01-10 Pedro Alves <palves@redhat.com>
14898 * solib-target.c (library_list_start_library): Don't xstrdup name.
14900 2019-01-10 Pedro Alves <palves@redhat.com>
14902 * mdebugread.c (parse_partial_symbols): Use
14903 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
14905 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14907 * linux-fork.c (scoped_switch_fork_info)
14908 <~scoped_switch_fork_info>: Fix incorrect variable name.
14910 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
14912 * linux-fork.c (scoped_switch_fork_info)
14913 <scoped_switch_fork_info>: Make explicit.
14914 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
14916 2019-01-10 Tom Tromey <tom@tromey.com>
14918 * objfiles.h (objfile::reset_psymtabs): Update.
14919 * objfiles.c (objfile::objfile): Update.
14920 * psymtab.h (psymtab_storage::obstack): Update.
14921 (psymtab_storage::m_obstack): Use gdb::optional.
14922 (class psymtab_storage): Update comment. Remove objfile
14924 * psymtab.c (psymtab_storage::psymtab_storage): Update.
14926 2019-01-10 Tom Tromey <tom@tromey.com>
14928 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
14929 <free_psymtabs>: Now private.
14930 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
14931 (allocate_psymtab): Use new method.
14933 2019-01-10 Tom Tromey <tom@tromey.com>
14935 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
14936 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
14937 * mdebugread.c (parse_partial_symbols): Use
14938 allocate_dependencies.
14939 * dwarf2read.c (dwarf2_create_include_psymtab): Use
14940 allocate_dependencies.
14941 (process_psymtab_comp_unit_reader)
14942 (build_type_psymtab_dependencies): Likewise.
14943 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
14945 2019-01-10 Tom Tromey <tom@tromey.com>
14947 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
14948 PSYMBOL_SET_LANGUAGE.
14949 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
14951 2019-01-10 Tom Tromey <tom@tromey.com>
14953 * psymtab.h (psymtab_storage::obstack): New method.
14954 <m_obstack>: Rename from obstack; now private.
14955 * psymtab.c (psymtab_storage): Update.
14956 * dwarf2read.c (create_addrmap_from_index)
14957 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
14960 2019-01-10 Tom Tromey <tom@tromey.com>
14962 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
14963 * objfiles.h (objfile::reset_psymtabs): New method.
14965 2019-01-10 Tom Tromey <tom@tromey.com>
14967 * symmisc.c (print_symbol_bcache_statistics): Update.
14968 (print_objfile_statistics): Update.
14969 * symfile.c (reread_symbols): Update.
14970 * psymtab.h (class psymtab_storage): New.
14971 * psymtab.c (psymtab_storage): New constructor.
14972 (~psymtab_storage): New destructor.
14973 (require_partial_symbols): Update.
14974 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
14975 (find_pc_sect_psymtab, find_pc_sect_psymbol)
14976 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
14977 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
14978 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
14979 (start_psymtab_common, end_psymtab_common)
14980 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
14981 (allocate_psymtab): Update.
14982 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
14984 (dump_psymtab_addrmap, maintenance_print_psymbols)
14985 (maintenance_check_psymtabs): Update.
14986 (class objfile_psymtabs): Move to objfiles.h.
14987 * psympriv.h (discard_psymtab): Now inline.
14988 (psymtab_discarder::psymtab_discarder): Update.
14989 (psymtab_discarder::~psymtab_discarder): Update.
14990 (ALL_OBJFILE_PSYMTABS): Rewrite.
14991 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
14992 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
14994 <partial_symtabs>: New field.
14995 (class objfile_psymtabs): Move from psymtab.h. Update.
14996 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
14998 (objfile::~objfile): Don't destroy psymbol_cache.
14999 * mdebugread.c (parse_partial_symbols): Update.
15000 * dwarf2read.c (create_addrmap_from_index)
15001 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15002 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15003 (add_partial_subprogram, dwarf2_ranges_read): Update.
15004 * dwarf-index-write.c (write_address_map)
15005 (write_one_signatured_type, recursively_write_psymbols)
15006 (class debug_names, class debug_names, write_psymtabs_to_index):
15009 2019-01-10 Tom Tromey <tom@tromey.com>
15011 * symtab.h (SYMBOL_SET_NAMES): Update.
15012 (symbol_set_names): Update.
15013 (MSYMBOL_SET_NAMES): Update.
15014 * symtab.c (symbol_set_names): Change argument to be an
15015 objfile_per_bfd_storage.
15016 * psymtab.c (add_psymbol_to_bcache): Update.
15017 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15019 2019-01-10 Tom Tromey <tom@tromey.com>
15021 * symtab.c (create_demangled_names_hash): Change argument to be an
15022 objfile_per_bfd_storage.
15023 (symbol_set_names): Update.
15025 2019-01-10 Tom Tromey <tom@tromey.com>
15027 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15029 * psymtab.c (init_psymbol_list): Do nothing if already called.
15030 * psympriv.h (init_psymbol_list): Add comment.
15031 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15033 * dbxread.c (dbx_symfile_read): Unconditionally call
15036 2019-01-10 Tom Tromey <tom@tromey.com>
15038 * xcoffread.c (scan_xcoff_symtab): Update.
15039 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15041 * mdebugread.c (parse_partial_symbols)
15042 (handle_psymbol_enumerators): Update.
15043 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15044 * dbxread.c (read_dbx_symtab): Update.
15045 * psympriv.h (psymbol_placement): New enum.
15046 (add_psymbol_to_list): Update.
15048 2019-01-10 Tom Tromey <tom@tromey.com>
15050 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15051 static_psymbols parameters.
15052 (scan_xcoff_symtab): Update.
15053 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15054 static_psymbols parameters.
15055 * psympriv.h (start_psymtab_common): Update.
15056 * mdebugread.c (parse_partial_symbols): Update.
15057 * dwarf2read.c (create_partial_symtab): Update.
15058 * dbxread.c (read_dbx_symtab): Update.
15059 (start_psymtab): Remove global_psymbols and static_psymbols
15062 2019-01-10 Tom Tromey <tom@tromey.com>
15064 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15065 * psymtab.c (allocate_psymtab): Add comment.
15066 * psympriv.h (allocate_psymtab): Add comment.
15067 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15069 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15071 2019-01-10 Tom Tromey <tom@tromey.com>
15073 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15075 * mipsread.c: Include mdebugread.h.
15076 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15078 * elfread.c: Include mdebugread.h.
15080 2019-01-09 Tom Tromey <tom@tromey.com>
15082 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15083 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15084 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15085 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15086 (psym_lookup_symbol, psym_find_last_source_symtab)
15087 (psym_forget_cached_source_info, psym_print_stats)
15088 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15089 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15090 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15091 (psym_find_compunit_symtab_by_address)
15092 (maintenance_print_psymbols, maintenance_info_psymtabs)
15093 (maintenance_check_psymtabs): Use ranged for.
15094 * psymtab.h (class objfile_psymtabs): New.
15095 (require_partial_symbols): Return objfile_psymtabs.
15096 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15098 2019-01-09 Tom Tromey <tom@tromey.com>
15100 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15101 (find_pc_mapped_section, list_overlays_command)
15102 (map_overlay_command, unmap_overlay_command)
15103 (simple_overlay_update): Use all_objfiles.
15104 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15105 * printcmd.c (info_symbol_command): Use all_objfiles.
15106 * objfiles.h (ALL_OBJSECTIONS): Remove.
15107 * maint.c (maintenance_translate_address): Use all_objfiles.
15108 * gcore.c (gcore_create_callback): Use all_objfiles.
15109 (objfile_find_memory_regions): Likewise.
15111 2019-01-09 Tom Tromey <tom@tromey.com>
15113 * symtab.c (find_line_symtab, info_sources_command)
15114 (make_source_files_completion_list): Use objfile_compunits.
15115 * source.c (select_source_symtab): Use objfile_compunits.
15116 * objfiles.h (struct objfile): Update comment.
15117 (ALL_OBJFILES): Remove.
15118 (ALL_FILETABS): Remove.
15119 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15122 2019-01-09 Tom Tromey <tom@tromey.com>
15124 * symmisc.c (print_objfile_statistics, dump_objfile)
15125 (maintenance_print_symbols): Use compunit_filetabs.
15126 * source.c (forget_cached_source_info_for_objfile): Use
15128 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15129 (ALL_FILETABS): Use compunit_filetabs.
15130 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15131 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15133 2019-01-09 Tom Tromey <tom@tromey.com>
15135 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15136 (compunit_filetabs): New.
15137 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15139 (info_sources_command, make_source_files_completion_list): Remove
15141 * symmisc.c (print_objfile_statistics, dump_objfile)
15142 (maintenance_print_symbols): Remove declaration.
15143 (maintenance_info_symtabs): Use compunit_filetabs.
15144 (maintenance_info_line_tables): Likewise.
15145 * source.c (select_source_symtab): Change local variable name.
15146 (forget_cached_source_info_for_objfile): Remove declaration.
15147 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15148 * objfiles.c (objfile_relocate1): Remove declaration.
15149 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15151 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15152 * coffread.c (coff_symtab_read): Remove declaration.
15153 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15156 2019-01-09 Tom Tromey <tom@tromey.com>
15158 * symtab.c (lookup_objfile_from_block)
15159 (find_pc_sect_compunit_symtab, search_symbols)
15160 (default_collect_symbol_completion_matches_break_on): Use
15162 * objfiles.h (ALL_COMPUNITS): Remove.
15163 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15164 * cp-support.c (add_symbol_overload_list_qualified): Use
15166 * ada-lang.c (ada_collect_symbol_completion_matches)
15167 (ada_add_global_exceptions): Use objfile_compunits.
15169 2019-01-09 Tom Tromey <tom@tromey.com>
15171 * source.c (select_source_symtab)
15172 (forget_cached_source_info_for_objfile): Remove declaration.
15173 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15175 * maint.c (count_symtabs_and_blocks): Remove declaration.
15176 * cp-support.c (add_symbol_overload_list_qualified): Remove
15178 * coffread.c (coff_symtab_read): Remove declaration.
15179 * symtab.c (lookup_symbol_in_objfile_symtabs)
15180 (basic_lookup_transparent_type_1): Use objfile_compunits.
15181 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15182 (info_sources_command, search_symbols)
15183 (default_collect_symbol_completion_matches_break_on)
15184 (make_source_files_completion_list): Remove declaration.
15185 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15186 (ada_collect_symbol_completion_matches)
15187 (ada_add_global_exceptions): Remove declaration.
15188 * linespec.c (iterate_over_all_matching_symtabs): Use
15190 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15191 (class objfile_compunits): New.
15192 (ALL_COMPUNITS): Use objfile_compunits.
15193 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15194 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15196 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15198 2019-01-09 Tom Tromey <tom@tromey.com>
15200 * symtab.c (search_symbols)
15201 (default_collect_symbol_completion_matches_break_on): Use
15203 * ada-lang.c (ada_lookup_simple_minsym)
15204 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15205 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15206 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15208 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15209 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15210 * objc-lang.c (find_methods): Use objfile_msymbols.
15211 (info_selectors_command, info_classes_command): Likewise.
15212 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15213 * objfiles.h (class objfile_msymbols): New.
15214 (ALL_OBJFILE_MSYMBOLS): Remove.
15215 (ALL_MSYMBOLS): Remove.
15217 2019-01-09 Tom Tromey <tom@tromey.com>
15219 * common/next-iterator.h (next_adapter): Add Iterator template
15221 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
15222 (class all_objfiles_safe): New.
15223 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
15224 * objfiles.c (put_objfile_before): Update comment.
15225 (add_separate_debug_objfile): Likewise.
15226 (free_all_objfiles): Use all_objfiles_safe.
15227 (objfile_purge_solibs): Likewise.
15229 2019-01-09 Tom Tromey <tom@tromey.com>
15231 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15232 (expand_symtab_containing_pc, lookup_static_symbol)
15233 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
15234 (find_symbol_at_address, find_line_symtab, find_main_name): Use
15236 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
15237 * breakpoint.c (create_overlay_event_breakpoint)
15238 (create_longjmp_master_breakpoint)
15239 (create_std_terminate_master_breakpoint)
15240 (create_exception_master_breakpoint): Use all_objfiles.
15241 * linux-thread-db.c (try_thread_db_load_from_pdir)
15242 (has_libpthread): Use all_objfiles.
15243 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
15244 * linespec.c (iterate_over_all_matching_symtabs)
15245 (search_minsyms_for_name): Use all_objfiles.
15246 * maint.c (maintenance_info_sections): Use all_objfiles.
15247 * main.c (captured_main_1): Use all_objfiles.
15248 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
15249 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
15250 * guile/scm-pretty-print.c
15251 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
15252 * solib-spu.c (append_ocl_sos): Use all_objfiles.
15253 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
15254 (maintenance_print_msymbols): Use all_objfiles.
15255 * source.c (select_source_symtab): Use all_objfiles.
15256 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
15257 * symfile.c (remove_symbol_file_command)
15258 (expand_symtabs_matching, map_symbol_filenames): Use
15260 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
15262 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
15263 * objc-lang.c (find_methods): Use all_objfiles.
15264 * objfiles.c (have_partial_symbols, have_full_symbols)
15265 (have_minimal_symbols, qsort_cmp)
15266 (default_iterate_over_objfiles_in_search_order): Use
15268 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
15269 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
15270 (maintenance_check_psymtabs): Use all_objfiles.
15271 (ALL_PSYMTABS): Remove.
15272 * compile/compile-object-run.c (do_module_cleanup): Use
15274 * blockframe.c (find_pc_partial_function): Use all_objfiles.
15275 * cp-support.c (add_symbol_overload_list_qualified): Use
15277 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15279 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
15280 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
15282 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15283 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
15284 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15286 * solib.c (solib_read_symbols): Use all_objfiles
15288 2019-01-09 Tom Tromey <tom@tromey.com>
15290 * probe.c (parse_probes_in_pspace): Use all_objfiles.
15291 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
15293 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
15294 * symmisc.c (print_symbol_bcache_statistics)
15295 (print_objfile_statistics, maintenance_print_objfiles)
15296 (maintenance_info_symtabs, maintenance_check_symtabs)
15297 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
15299 * source.c (forget_cached_source_info): Use all_objfiles.
15300 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
15301 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15302 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
15303 * objfiles.c (update_section_map): Use all_objfiles.
15304 (shared_objfile_contains_address_p): Likewise.
15305 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
15306 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
15308 2019-01-09 Tom Tromey <tom@tromey.com>
15310 * common/next-iterator.h: New file.
15311 * objfiles.h (class all_objfiles): New.
15312 (struct objfile_iterator): New.
15314 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15316 * NEWS: Move the description of the changed "frame", "select-frame",
15317 and "info frame" commands to the Changed commands section.
15319 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
15321 * gdbtypes.c (check_stub_method_group): Remove handling of old
15323 * linespec.c (find_methods): Likewise.
15324 * stabsread.c (read_member_functions): Likewise.
15325 * valops.c (search_struct_method): Likewise.
15326 (value_struct_elt_for_reference): Likewise.
15327 * NEWS: Mention this change.
15329 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15331 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
15332 print_source_lines.
15333 * source.c (print_source_lines_base): Update line number check.
15334 (print_source_lines): New function.
15335 (source_lines_range::source_lines_range): New function.
15336 * source.h (class source_lines_range): New class.
15337 (print_source_lines): New declaration.
15339 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15341 * linespec.c (linespec_state_destructor): Free self->canonical_names.
15343 2019-01-08 Tom Tromey <tom@tromey.com>
15344 Simon Marchi <simon.marchi@ericsson.com>
15347 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
15348 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
15349 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15350 * f-exp.y (DOLLAR_VARIABLE): Likewise.
15351 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
15352 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
15354 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15356 * source.c (select_source_symtab): Move header comment to
15357 declaration in source.h.
15358 (forget_cached_source_info_for_objfile): Likewise.
15359 (forget_cached_source_info): Likewise.
15360 (identify_source_line): Likewise.
15361 * source.h (identify_source_line): Move declaration from symtab.h
15362 and add comment from source.c
15363 (print_source_lines): Likewise.
15364 (forget_cached_source_info_for_objfile): Likewise.
15365 (forget_cached_source_info): Likewise.
15366 (select_source_symtab): Likewise.
15367 (enum print_source_lines_flag): Move definition from symtab.h.
15368 * symtab.h (identify_source_line): Move declaration to source.h.
15369 (print_source_lines): Likewise.
15370 (forget_cached_source_info_for_objfile): Likewise.
15371 (forget_cached_source_info): Likewise.
15372 (select_source_symtab): Likewise.
15373 (enum print_source_lines_flag): Move definition to source.h.
15374 * tui/tui-hooks.c: Add 'source.h' include.
15376 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15378 * source.c (print_source_lines_base): Handle requests to print
15379 reverse line number sequences, and guard against empty lines
15382 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
15384 * source.c (print_source_lines_base): Fix skip of '\r' if next
15387 2019-01-06 Tom Tromey <tom@tromey.com>
15389 * c-exp.y (struct c_parse_state) <macro_original_text,
15390 expansion_obstack>: New member.
15391 (macro_original_text, expansion_obstack): Remove globals.
15392 (scan_macro_expansion, scanning_macro_expansion)
15393 (finished_macro_expansion): Update.
15394 (scan_macro_cleanup): Remove.
15395 (yylex, c_parse): Update.
15397 2019-01-06 Tom Tromey <tom@tromey.com>
15399 * c-exp.y (struct c_parse_state) <strings>: New member.
15400 (operator_stoken): Update.
15402 2019-01-06 Tom Tromey <tom@tromey.com>
15404 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
15405 (union type_stack_elt) <typelist_val>: Now a pointer to
15407 (type_stack_cleanup): Don't declare.
15408 (push_typelist): Update.
15409 * parse.c (pop_typelist): Return a std::vector.
15410 (push_typelist): Take a std::vector.
15411 (follow_types): Update. Do not free args.
15412 (type_stack_cleanup): Remove.
15413 * c-exp.y (struct c_parse_state): New.
15414 (cpstate): New global.
15415 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
15416 (nonempty_typelist): Update.
15417 (func_mod): Create a new vector.
15418 (c_parse): Create a c_parse_state.
15419 (check_parameter_typelist): Do not delete params.
15420 (function_method): Update. Do not delete type_list.
15422 2019-01-06 Tom Tromey <tom@tromey.com>
15425 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
15427 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
15428 (print_return_value): Likewise.
15430 2019-01-05 Tom Tromey <tom@tromey.com>
15432 * contrib/cleanup_check.py: Remove.
15433 * contrib/gcc-with-excheck: Remove.
15434 * contrib/exsummary.py: Remove.
15435 * contrib/excheck.py: Remove.
15437 2019-01-05 Joel Brobecker <brobecker@adacore.com>
15439 * thread.c (delete_thread_1): Add gdb_assert that THR is not
15440 NULL. Initialize tpprev to NULL instead of assigning it
15441 to NULL on the next statement.
15442 * windows-nat.c (windows_delete_thread): Remove check for
15443 main_thread_id before printing thread exit notifications.
15444 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
15445 Remove thread ID check against main_thread_id.
15446 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
15447 windows_delete_thread.
15448 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
15450 2019-01-04 Tom Tromey <tom@tromey.com>
15452 * compile/compile.c (_initialize_compile): Use upper case for
15453 metasyntactic variables.
15454 * symmisc.c (_initialize_symmisc): Use upper case for
15455 metasyntactic variables.
15456 * psymtab.c (_initialize_psymtab): Use upper case for
15457 metasyntactic variables.
15458 * demangle.c (demangle_command): Use upper case for metasyntactic
15460 (_initialize_demangler): Likewise.
15461 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
15464 2019-01-03 Tom Tromey <tom@tromey.com>
15466 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
15468 2019-01-03 Tom Tromey <tom@tromey.com>
15470 * python/py-symtab.c (salpy_str): Update.
15471 (struct salpy_sal_object) <symtab>: Now a PyObject.
15472 (salpy_dealloc): Update.
15473 (del_objfile_sal): Use gdbpy_ref.
15475 2019-01-03 Tom Tromey <tom@tromey.com>
15477 * python/py-type.c (convert_field): Use new_reference. Return
15479 (make_fielditem): Return gdbpy_ref.
15480 (typy_fields): Update.
15481 (typy_getitem): Update.
15482 (field_name): Return gdbpy_ref. Use new_reference.
15483 (typy_iterator_iternext): Update.
15485 2019-01-03 Tom Tromey <tom@tromey.com>
15487 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
15489 2019-01-03 Tom Tromey <tom@tromey.com>
15491 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
15492 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
15493 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
15494 (pspy_set_frame_filters, pspy_set_frame_unwinders)
15495 (pspy_set_type_printers): Likewise.
15496 * python/py-function.c (fnpy_init): Use gdbpy_ref.
15497 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
15498 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
15499 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
15500 (objfpy_set_type_printers): Likewise.
15502 2019-01-03 Tom Tromey <tom@tromey.com>
15504 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
15505 (gdbpy_print_stack): Use gdbpy_err_fetch.
15506 * python/python-internal.h (class gdbpy_err_fetch): New class.
15507 (class gdbpy_enter) <m_error_type, m_error_value,
15508 m_error_traceback>: Remove.
15509 <m_error>: New member.
15510 (gdbpy_exception_to_string): Don't declare.
15511 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
15512 * python/py-value.c (convert_value_from_python): Use
15514 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
15515 gdbpy_exception_to_string.
15516 (gdbpy_handle_exception): Use gdbpy_err_fetch.
15517 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
15520 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15522 * linux-nat.c (delete_lwp_cleanup): Delete.
15523 (struct lwp_deleter): New struct.
15524 (lwp_info_up): New typedef.
15525 (linux_nat_target::follow_fork): Delete cleanup, and make use of
15528 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15530 * linux-fork.c (class scoped_switch_fork_info): New class.
15531 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
15533 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15535 * valops.c (find_overload_match): Remove use of null_cleanup, and
15536 calls to do_cleanups.
15538 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15540 * compile/compile-cplus-types.c
15541 (compile_cplus_instance::decl_name): Handle changes to
15543 * cp-support.c (cp_func_name): Update header comment, update
15545 * cp-support.h (cp_func_name): Update return type in declaration.
15546 * valops.c (find_overload_match): Move temp_func local to top
15547 level of function and change its type. Use temp_func to hold and
15548 delete temporary string obtained from cp_func_name.
15550 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
15552 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
15553 gdb::char_vector, remove cleanup, and update uses of `msg`.
15555 2019-01-03 Jim Wilson <jimw@sifive.com>
15557 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
15559 2019-01-02 Tom Tromey <tom@tromey.com>
15561 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
15562 (tdesc_parse_xml): Remove cleanups.
15563 * target-descriptions.h (make_cleanup_free_target_description):
15565 (target_desc_deleter): New struct.
15566 (target_desc_up): New typedef.
15567 * target-descriptions.c (target_desc_deleter::operator()): Rename
15568 from free_target_description.
15569 (make_cleanup_free_target_description): Remove.
15571 2019-01-02 Tom Tromey <tom@tromey.com>
15573 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
15574 constructor, destructor.
15575 (linespec_parser): Remove typedef.
15576 (~linespec_parser): Rename from linespec_parser_delete.
15577 (linespec_lex_to_end, linespec_complete_label)
15578 (linespec_complete): Update.
15579 (decode_line_full): Remove cleanups.
15580 (decode_line_1): Update.
15582 2019-01-02 Tom Tromey <tom@tromey.com>
15584 * python/python-internal.h (inferior_to_inferior_object): Change
15586 * python/py-exitedevent.c (create_exited_event_object): Update.
15587 * python/py-inferior.c (inferior_to_inferior_object): Return
15589 (python_new_inferior, python_inferior_deleted)
15590 (thread_to_thread_object, delete_thread_object)
15591 (build_inferior_list, gdbpy_selected_inferior): Update.
15592 * python/py-infthread.c (create_thread_object): Update. Also fail
15593 if inferior_to_inferior_object fails.
15595 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
15597 * inferior.h (class inferior) <displaced_step_state>: New field.
15598 * infrun.h (struct displaced_step_state): Move here from
15599 infrun.c. Initialize fields, add constructor.
15600 <inf>: Remove field.
15601 <reset>: New method.
15602 * infrun.c (struct displaced_step_inferior_state): Move to
15604 (displaced_step_inferior_states): Remove.
15605 (get_displaced_stepping_state): Adust.
15606 (displaced_step_in_progress_any_inferior): Adjust.
15607 (displaced_step_in_progress_thread): Adjust.
15608 (displaced_step_in_progress): Adjust.
15609 (add_displaced_stepping_state): Remove.
15610 (get_displaced_step_closure_by_addr): Adjust.
15611 (remove_displaced_stepping_state): Remove.
15612 (infrun_inferior_exit): Call displaced_step_state.reset.
15613 (use_displaced_stepping): Don't check for NULL.
15614 (displaced_step_prepare_throw): Call
15615 get_displaced_stepping_state.
15616 (displaced_step_fixup): Don't check for NULL.
15617 (prepare_for_detach): Don't check for NULL.
15619 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15621 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
15622 in case of call that did not complete.
15624 2019-01-02 Andrey Utkin <autkin@undo.io>
15626 * symfile.c (find_separate_debug_file): Fix search of debug files for
15629 2019-01-02 Tom Tromey <tom@tromey.com>
15631 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
15633 * python/py-frame.c (frapy_older): Remove cast.
15634 (frapy_newer): Likewise.
15635 * python/py-breakpoint.c (local_setattro): Remove cast.
15636 * python/py-arch.c (archpy_name): Remove local variable.
15637 * python/py-type.c (gdbpy_lookup_type): Remove cast.
15639 2019-01-02 Joel Brobecker <brobecker@adacore.com>
15641 * unittests/basic_string_view/element_access/char/empty.cc:
15642 Fix year range in copyright header.
15644 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
15646 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
15648 <operator==>: Update with for removed field.
15650 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
15651 <isa_features>: ...this.
15652 <abi_features>: New field.
15653 (riscv_isa_flen): Update comment.
15654 (riscv_abi_xlen): New declaration.
15655 (riscv_abi_flen): New declaration.
15656 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
15658 (riscv_abi_xlen): New function.
15659 (riscv_isa_flen): Update to get answer from isa_features.
15660 (riscv_abi_flen): New function.
15661 (riscv_has_fp_abi): Update to get answer from abi_features.
15662 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
15664 (riscv_call_info) <xlen, flen>: Update comment.
15665 (riscv_call_arg_struct): Remove invalid assertions
15666 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
15668 (riscv_gdbarch_init): Gather isa features and abi features
15669 separately, ensure both match on the gdbarch when reusing an old
15670 gdbarch. Relax an error check to allow 32-bit abi float to run on
15671 a target with 64-bit float hardware.
15673 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15675 * source.c (search_command_helper): Stop reverse search
15676 when line 1 has been searched.
15678 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15680 * record-full.c (record_full_base_target::close): Rewrite
15681 record_full_core_buf_list free logic.
15683 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15685 * break-catch-syscall.c (print_one_catch_syscall): xfree
15688 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15690 * top.c (print_gdb_version): Update Copyright year in version
15693 2019-01-01 Joel Brobecker <brobecker@adacore.com>
15695 Update copyright year range in all GDB files.
15697 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
15699 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
15701 For older changes see ChangeLog-2018.
15707 version-control: never